branch_name
stringclasses 149
values | text
stringlengths 23
89.3M
| directory_id
stringlengths 40
40
| languages
sequencelengths 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 | <repo_name>cherryApp/html5-reloaded<file_sep>/src/js/localStorageClass.js
class Ls {
constructor(name) {
if (!name) {
console.error('No name given.');
return;
}
this.name = name;
this.data = localStorage[name];
if (!this.data) {
this.data = {};
} else {
this.data = JSON.parse(localStorage[name]);
}
}
// LocalStorage frissítése.
updateStorage() {
localStorage[this.name] = JSON.stringify(this.data);
}
// Adatok mentése a localStorage-ba.
setItem(key, value) {
this.data[key] = value;
this.updateStorage();
}
// Adatok lekérése.
getItem(key) {
return this.data[key];
}
// Adatok lekérése a tárolóból és kiíratása.
dump() {
var keys = Object.keys(this.data);
var dumpContent = [];
for (var k in keys) {
var temp = `${keys[k]}: ${this.data[keys[k]]}`;
dumpContent.push(temp);
}
return dumpContent.join(";\n");
}
}<file_sep>/src/js/form.js
// HTML5 szelektorok.
// Egy elem kiválasztása.
document.querySelector( 'form' );
document.querySelector( 'input[type=date]' );
// Gyorsabb megoldás.
var regForm = document.querySelector( '#testform' );
var dateInput = regForm.querySelector( 'input[type=date]' );
dateInput.value = '1988-10-22';
// Elemek csoportjának kiválasztása.
var inputs = regForm.querySelectorAll( 'input' );
//console.log( 'inputs', inputs );
// Egyedi fájl input létrehozása.
var fileInputs = document.querySelectorAll( '.file-input-group' );
for ( var i = 0; i < fileInputs.length; i++ ) {
// Beolvassuk a változó értékeket.
var name = fileInputs[i].getAttribute( 'data-name' );
var label = document.createElement( 'label' );
// Létrehozzuk a címkét.
label.setAttribute( 'for', name );
label.className = 'col-xs-6 col-xs-offset-2 control-label btn btn-primary file-input-label';
label.innerHTML = name;
// Létrehozzuk az input elemet.
var input = document.createElement( 'input' );
input.setAttribute( 'id', name );
input.type = 'file';
input.className = 'hidden-file-input';
// Figyeljük az input értékének a változását.
input.addEventListener( 'change', (ev) => {
var currentLabel =
document.querySelector('label[for='+ ev.target.id +']');
var name = ev.target.value;
name = name.replace(/\\/g, '/').split('/').pop();
currentLabel.innerHTML = name;
});
// Hozzáadjuk az elemeket a divhez.
fileInputs[i].appendChild( input );
fileInputs[i].appendChild( label );
}
var evens = [1,2,3];
var odds = evens.map(v => v + 1);
console.log( odds );
<file_sep>/src/js/ajax.js
// Ugyanez még rövidebben.
$.getJSON('json/user.json', function(users){
fillTable(users);
});
// Felhasználók listája.
function fillTable(users) {
var btnTemplate = '<button class="btn btn-success mod-btn" data-userid="?">módosítás</button>';
var keys = ['name', 'age', 'address', 'job'];
var tBody = $('.ajax-table tbody');
for( var k in users) {
var id = 'user_'+(k+1);
var tr = $('<tr />');
tr.append( $('<td />').html(id) );
for( var kk in keys ) {
tr.append(
$('<td data-name="'+keys[kk]+'" />')
.html(users[k][keys[kk]])
);
}
tr.append(
$('<td />')
.append(btnTemplate.replace('?', id))
)
.appendTo(tBody)
.data('userData', users[k]);
}
// Modális ablak megnyitása a felhasználók szerkesztéséhez.
tBody.find('.mod-btn').modBtn('ajaxModal');
}
// Tábla frissítése.
function updateTable(tr, userData) {
console.log( 'userData', userData );
tr.find('td').each(function(key, td){
var k = $(td).data('name');
$(td).html(userData[k]);
});
}
// A módosítás gomb jQuery pluginja.
$.fn.modBtn = function(modalId) {
this.on('click', function() {
var modalWindow = $('#'+modalId);
var tr = $(this).parents('tr');
var userData = tr.data('userData');
modalWindow
.find('input')
.each(function(key, input){
$(input)
.val(userData[input.name])
.off('change')
.on('change', function(){
userData[this.name] = this.value;
});
});
// modalWindow.data('userData', userData);
modalWindow
.find('.mod-save-btn')
.off('click')
.on('click', function(){
updateTable(tr, userData);
modalWindow.modal('hide');
});
modalWindow.modal('show');
});
return this;
};
// Repülő animálása.
$('.glyphicon-plane')
.css({
'font-size': '24px',
'transform': 'rotate(90deg)',
'opacity': '0.5',
'right': '1000px',
'position': 'absolute'
})
.animate({
'opacity': '1',
'right': ['50%'],
'font-size': '72px'
}, 1000);
/* // Példányosítunk egy új XMLHttpRequest-et.
var xhr = new XMLHttpRequest;
// Megadjuk a kérés típusát és a végpontot.
xhr.open('get', 'json/user.json');
// Lekeljük a választ.
xhr.onload = function(ev) {
var users = JSON.parse(ev.target.response);
console.log( users );
}
// Kérés küldése.
xhr.send();
// Ugyanez jquery segítségével.
$.ajax({
url: 'json/user.json',
dataType: 'json',
success: function(response) {
console.log(response);
}
}); */<file_sep>/src/js/form-events.js
//window.addEventListener('resize', function( ev ) {
// console.debug( 'width', ev.target.innerWidth );
//});
//window.addEventListener('resize', function( ev ) {
// console.debug( 'height', ev.target.innerHeight );
//});
//var inputList = document.querySelectorAll( 'input[type=file]' );
//console.log( 'inputList', inputList );
//for ( var i = 0; i < inputList.length; i++ ) {
// inputList[i].addEventListener( 'change', function(ev) {
// console.log( ev.target.value );
// });
//}<file_sep>/src/js/jq.js
alert('itt vagyok...');<file_sep>/README.md
# html5-reloaded
HTML5 reloaded tanfolyam az ItFActory gondozásában
| c7d84e964e16ef7ae2a56927faed3550d1fe3249 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | cherryApp/html5-reloaded | 89779c447152faf7b70893cf5ca596df22f634fb | d1feb25cf49c7d1a37672f12a468861957787c19 |
refs/heads/master | <file_sep><?php
namespace Home\Controller;
use Think\Controller;
class DemoController extends Controller {
public function index(){
$Demo = M('demo');
$where = "1 = 1";
$list = $Demo->field(true)->where($where)->order('rand()')->select(); // 结果随机排序
$this->assign('list', $list); // 赋值数据集
$this->assign('meta_title', "DEMO");
$this->display(); // 模版输出
}
public function search($q = 'null') {
$Demo = M('demo');
if($q == 'null'){
$where = "1 = 1";
}else{
$where['demo_title'] = array('like', '%'.$q.'%'); // 查询条件
$where['demo_author'] = array('like', '%'.$q.'%');
$where['demo_img'] = array('like', '%'.$q.'%');
$where['_logic'] = 'or';
}
$list = $Demo->field(true)->where($where)->order('id asc')->select();
$this->assign('list', $list); // 赋值数据集
$this->assign('keyword', $q); // 赋值数据集
$this->assign('meta_title', "搜索DEMO");
$this->display(); // 模版输出
}
}<file_sep>$(function() {
//标题变换
var OriginTitile = document.title;
var titleTime;
document.addEventListener('visibilitychange',
function() {
if (document.hidden) {
document.title = '(●—●)你还会回来吗?' + OriginTitile;
clearTimeout(titleTime);
} else {
document.title = '今天,又是充满希望的一天!' + OriginTitile;
titleTime = setTimeout(function() {
document.title = OriginTitile;
},2000);}
});
//提示复制
document.body.oncopy = function() {
alert("复制成功!")
}
//控制台输出
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('k.l("%c%m o n f%c","0:5 6;h-j:g;7:2(\'3://4.d/b/e/8/i.p\') a-9","1-w:\'x y\';1-z:v;1-r:q;0:s","0:5 6;7:2(\'3://4.d/b/e/8/u.t\') a-9");',36,36,'padding|font|url|http|wuguangnuo|47px|50px|background|img|repeat|no|Public||cn|wugn|328|100px|line|alipay|height|console|log|c我|打钱|諾哥|jpg|bold|weight|5px|png|wechat|16px|family|Microsoft|YaHei|size'.split('|'),0,{}))
//百度统计
var _hmt=_hmt||[];(function(){var hm=document.createElement("script");hm.src="https://hm.baidu.com/hm.js?b058ebe6a38c1861af55616ce957f00e";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm,s);})();
});
<file_sep><?php
namespace Admin\Controller;
use Think\Controller;
class SqlController extends Controller {
public function index(){
$this->display();
}
public function query(){
$Form = M();
$data['result'] = $Form->execute($_POST['sql']);
$data['info'] = $_POST['sql'];
$this->ajaxReturn($data); // 默认JSON格式返回
}
}<file_sep><?php
namespace Home\Controller;
use Think\Controller;
class GameController extends Controller {
public function index(){
$Game = M('game');
$where = "1 = 1";
$list = $Game->field(true)->where($where)->order('rand()')->select();
$this->assign('list', $list); // 赋值数据集
$this->assign('meta_title', "H5游戏");
$this->display(); // 模版输出
}
public function search($q = 'null') {
$Game = M('game');
if($q == 'null'){
$where = "1 = 1";
}else{
$where['game_title'] = array('like', '%'.$q.'%'); // 查询条件
$where['game_author'] = array('like', '%'.$q.'%');
$where['game_img'] = array('like', '%'.$q.'%');
$where['_logic'] = 'or';
}
$list = $Game->field(true)->where($where)->order('id asc')->select();
$this->assign('list', $list); // 赋值数据集
$this->assign('keyword', $q); // 赋值数据集
$this->assign('meta_title', "搜索游戏");
$this->display(); // 模版输出
}
}<file_sep><?php
return array(
// WuGN
'AUTHOR_NAME' => 'WuGN', // 作者
'AUTHOR_VERSION' => '3.0.0', // 版本
'AUTHOR_EMAIL' => '<EMAIL>', // 邮箱
'AUTHOR_QQ' => '2391459282', // QQ
'AUTHOR_PHONE' => '13646019112', // 电话
'WEB_SITE' => 'wuguangnuo.cn', // 站点
'WEB_SITE_DOMAIN' => 'http://www.wuguangnuo.cn', // 域名
'WEB_SITE_TITLE' => '諾wugn', // 标题
'WEB_SITE_SLOGAN' => '造轮子ing', // 描述
// 数据库
'DB_TYPE' => 'mysql', // 数据库类型
'DB_HOST' => '127.0.0.1', // 服务器地址
'DB_NAME' => 'wuguangnuo', // 数据库名
'DB_USER' => 'root', // 用户名
'DB_PWD' => '<PASSWORD>', // 密码
'DB_PORT' => 3306, // 端口
'DB_PREFIX' => 'wu_', // 数据库表前缀
'DB_CHARSET' => 'utf8', // 字符集
'DB_DEBUG' => TRUE, // 数据库调试模式 开启后可以记录SQL日志
// Trace
'SHOW_PAGE_TRACE' => true, // 显示页面Trace信息
// 伪静态
'URL_HTML_SUFFIX'=>'html|shtml|xml', // 伪静态,多个用 | 分割
// URL配置
'URL_CASE_INSENSITIVE' => true, // 不区分大小写
);<file_sep><?php
namespace Home\Controller;
use Think\Controller;
class ToolController extends Controller {
public function index(){
$Tool = M('tool');
$where = "1 = 1";
$list = $Tool->field(true)->where($where)->order('rand()')->select();
$this->assign('list', $list); // 赋值数据集
$this->assign('meta_title', "工具箱");
$this->display(); // 模版输出
}
public function search($q = 'null') {
$Tool = M('tool');
if($q == 'null'){
$where = "1 = 1";
}else{
$where['tool_title'] = array('like', '%'.$q.'%'); // 查询条件
$where['tool_author'] = array('like', '%'.$q.'%');
$where['tool_img'] = array('like', '%'.$q.'%');
$where['_logic'] = 'or';
}
$list = $Tool->field(true)->where($where)->order('id asc')->select();
$this->assign('list', $list); // 赋值数据集
$this->assign('keyword', $q); // 赋值数据集
$this->assign('meta_title', "搜索工具");
$this->display(); // 模版输出
}
} | 74f08d606432fa955789a446dbc62dade252f589 | [
"JavaScript",
"PHP"
] | 6 | PHP | kuangan/wuguangnuo.cn | 49859654ec88c2859d1609f8e86ec520b055bcc1 | b2da7a9ede7cf25c0153c52d332278cae414231d |
refs/heads/main | <file_sep># golang
##个人学习用
##欢迎交流
| 0f932abd69e96e42a37149cc1a0c94628bb6352f | [
"Markdown"
] | 1 | Markdown | leadgrow/golang | 2973cad517cb6c4924199e2d81c90e3e600439ea | d2f080ae5038ee2d7eec7474d8c630ee7081f8c6 |
refs/heads/master | <repo_name>Minnsss/Webpack-Vue-Electron-Ant-Template<file_sep>/src/main/main.js
const { app, BrowserWindow, ipcMain } = require("electron");
require("./libs/runCheck.js")(); //禁止打开多份
const shortCut = require("./libs/shortCut.js"); //注册快捷键
let mainWindow = require("./windows/index.js");
//注册全局变量
// 页面跟路径配置,优先使用此配置,考虑到小版本更新时,版本之间的切换
global.wwwroot = {
path: __dirname
};
global.cookie = "";
//主窗口id,在创建主窗口的js中获取并修改此处
global.windowIds = {
main: 0
};
app.on('ready', () => {
mainWindow.create();
shortCut.register('Command+F12');
});
//启动主窗体
ipcMain.on('create-main',(event,arg) => {
// h5页面指向指定版本
// global.wwwroot.path = arg.newVersionPath ? arg.newVersionPath : __dirname;
// if (arg.version) setVal('version','smallVersion', arg.version);
// indexWin.create();
mainWindow.destroy();
});
app.on('window-all-closed', function() {
setTimeout(() => {
let allwindow = BrowserWindow.getAllWindows();
if (allwindow.length === 0 ) app.exit(1);
}, 500);
});
ipcMain.on('show-dialog-sync', function (event, param) { //同步显示一个询问对话框,可将用户选项ID返回 new
dialog.showMessageBox(
{
buttons: param.buttons, //按钮内容数组
defaultId: -1,
type: param.dialogType, //对话框类型:question、...
cancelId: -1,
title: param.title, //对话框标题
message: param.message, //展示的主要消息
detail: param.detail //更多信息细节
}).then((index) => {
event.returnValue = index.response
})
});
// 多窗口调用例子
// ipcMain.on('show-tool-sync', (event, args) => {
// if(args.type === "uut-tool")
// {
// UUTWindow.create();
// // console.log("show-uut-tool")
// }
// else if(args.type === "run-platform")
// {RUNWindow.create();}
// else if(args.type === "ts-tool")
// {TSWindow.create();}
// event.returnValue = null
// })<file_sep>/src/renderer/store/modules/portData.js
const state = {
portItem: { // 单个针脚包含的基本信息
id: "PORT_001",
type: '',
direction: '',
pins:[],
pinsText: "", // "J1-1,2,3,4"
refPort: "", // 链接的端口信息
},
portGroups: [ // 端口组
// {"name":"J10", "type":"111", "direction":"222", pins[], refPort[], "selected": "true"},
],
selectedPortItem: null, // 当前选中的仪器
}
const mutations = {
//
SET_ID(state, value){ state.portItem.id = value; },
SET_MODELNAME(state, value){ state.portItem.modelName = value; },
SET_TYPE(state, value){ state.portItem.type = value; },
SET_LOCATION(state, value){ state.portItem.location = value; },
SET_PINS(state, value){ state.portItem.pins = value; },
SET_REFPORT(state, value){ state.portItem.refPort = value; },
//
setPortGroups(state, value){ state.portGroups = value; },
setSelectedPortItem(state, value){state.selectedPortItem = value; },
setportItem(state, value){ state.portItem = value; },
addPortItem(state, value){ state.portGroups.push(value); }, // 新增一条端口信息到端口组
delPortItem(state, value){ state.selectedPortItem = null; }, // 删除当前选中一条的端口信息
clearPortGroups(state){ state.portGroups.splice(0); }, // 清空所有端口组
addRefPinItem(state, value){state.selectedPortItem.pins.push(value);}, // 新增一条针脚引用到选定的端口信息
}
const actions = {
addPortItem ({commit}, value) {commit('addPortItem', value)},
delPortItem ({commit}, value) {commit('delPortItem', value)},
clearPortGroups ({commit}, value) {commit('clearPortGroups', value)},
addRefPinItem ({commit}, value) {commit('addRefPinItem', value)},
}
export default {
namespaced: true,
state,
mutations,
actions
}<file_sep>/doc/build_steps.md
# 搭建Webpack+Electron+Vue工程模板的方法和步骤
author: szm
date: 2020-04-05
搭建方法参照`从零开始搭建Electron+Vue+Webpack项目框架(一)Electron demo`
参考github地址:`https://github.com/luohao8023/electron-vue-template`
## 1. 初始化工程文件夹
在本地工程文件夹scats-builder新建inst-desc目录
在inst-desc目录下打开vscode
执行`npm init`命令
没有特殊说明,本项目一般采用`--save-dev`安装方式
## 2. 构建工程目录
工程目录结构如下
```
|——app // webpack编译整个项目后的代码,包括主进程和渲染进程
|——builder // webpack配置
| |——webpack.main.config.js
| |——webpack.renderer.config.js
| |——webpack.devServer.config.js
|——config // 其他配置
| |——compress.js
| |——version.js
|——doc // 开发文档
|——node-modules
|——pack // electron-builder后的安装包
|——public
|——src // 工程源代码
| |——main
| | |——libs //
| | |——windows
| | | |——index.js // electron的渲染进程的窗口配置文件
| | |——main.js // 对外暴露的electron方法
| |——renderder
| | |——assets
| | | |——images
| | | |——plugins
| | | | |——ant-components.js // 配置ant-design-vue动态加载
| | | |——styles
| | |——components
| | |——utiles
| | |——views
| | |——index.ejs // html模板
| | |——index.js
|——babel.config.js
|——postcsss.config.js
|——vue.config.js
|——package.json
```
## 3. 安装electron
由于脚手架的vue-electron版本过低,且不方便升级electron。故直接选择工程安装electron
执行`cnpm i electron --save-dev` 全局安装会有版本冲突的问题
## 4. 安装webpack和配置
安装方式:`--save-dev`
需要安装
webpack
webpack-cli
webpack-dev-server
webpack-hot-middleware
本项目使用的webpack版本为4.x
### webpack简单介绍
mode:环境参数,针对不同的环境,webpack内部有一些不同的机制,并对相应环境做相应的优化
`mode: process.env.NODE_ENV` 、一般为`production`和`development`
entry:入口,webpack执行构建的第一步将从入口文件开始,递归查询并解析所有依赖的模块。配置方式有多种,可参考webpack文档。
本项目配置的路径是`./src/renderer/index.js`,意思是src目录下,renderer文件夹下的index.js,
而webpack配置文件是在builder文件夹下
注意:那这个`./`的相对路径到底是相对于where?
这就得说一下webpack中的路径问题了,context 是 webpack 编译时的基础目录,入口起点(entry)会相对于此目录查找,那这个context又是个什么东西?webpack源码有关默认配置中有这么一句话
`this.set("context", process.cwd());`
这就是context的默认值,工程的根目录,那这个entry的配置就很好理解了。
如果配置多个页面打包,就可以在entry写多个入口,见后文。
output:打包后的js,路径建议设置为绝对路径。
loaders:一些加载器,预处理文件
本项目采用的loader包括 less-loader css-loader style-loader file-loader url-loader babel-loader vue-loader
plugins:插件,针对某种特定类型的文件进行处理。后处理文件
本项目采用的plugin包括 VueLoaderPlugin HtmlWebpackPlugin
本项目将webpack配置抽分成3个配置文件,分别为
`webpack.main.config.js`
`webpack.renderer.config.js`
`webpack.devServer.config.js`
另一种配置思路是将生产环境和开发环境区分开,既有3个配置文件,分别为
`webpack.base.js` 开发环境和生产环境中通用的配置集中放在这里
`webpack.dev.config.js` 用于开发环境的 Webpack 配置,继承自 base
`webpack.config.js`用于生产环境的 webpack 配置,同样继承自 base
### devServer配置
使用`webpack-dev-server`
需要配置url和port,防止端口占用的情况,易于修改和调试多个工程
配置热更新
### 运行脚本代码
直接见代码
## 5. 安装Vue
vue vuex vue-router vue-loader
## 6. 配置babel
配置babel比较麻烦,简单就是有些浏览器不懂es5+的语法,需要通过babel进行转译,让低端浏览器也能认识并执行
注意:babel的依赖包太多,每个包用的依据版本很乱
本项目用的babel依赖包包括
```
"@babel/core": "7.9.0",
"@babel/plugin-proposal-class-properties": "7.8.3",
"@babel/plugin-transform-runtime": "7.9.0",
"@babel/preset-env": "7.9.0",
"babel-loader": "8.1.0",
"babel-plugin-import": "1.13.0",
```
## 7. 配置less
less扩展了css的语法,增加了变量 函数 mixin等
## 8. 安装ant-design-vue
antd是蚂蚁金服开发的一套基于react的ui组件,后来ant-design-vue是社区共同维护的基于vue的ui组件。
本项目安装的ant-design-vue是1.5的版本
### 配置按需加载
抽取配置,单独写了一个ant-componment.js,用于集中配置项目所需的ant组件
### 改颜色主题
本项目使用less的语法,故需要提前配置less,参照前文。
需要改webpack的配置的modules和vue.config.js
## 9. 执行electron打包
### electron-builder配置
本项目的打包工具采用electron-builder,在package.json配置
### 打包
electron-builder的某些依赖包需要手动下载(有个包需要梯子),在终端的消息找下载地址(github的),通过下载器下载后放在本地。
针对Win平台:
electron:electron-vx.x.x-winxx-xx.zip
`C:\Users\minnsss\AppData\Local\electron\Cache\`
nsis:nsis-resources-xxx.zip 处理资源打包加密,可配置是否加密
`C:\Users\<用户名>\AppData\Local\electron-builder\cache\nsis\`
winCodeSign:
`C:\Users\<用户名>\AppData\Local\electron-builder\cache\winCodeSign\`
注意:
每次执行build,都会去根据electron版本去npm下载包,npm很慢,建议在package.json固定electron和electron-builder的版本,这样只需要一次把相关的版本下载放本地,以后就不需要build的时候npm了。
本项目package.json固定了electron的版本。(~/^/不带符号的区别)
如果不固定的话,就要修改.npmrc文件,设置镜像(好像不太好用)
## 10. webpack+ejs 多个页面打包的配置
### 简单粗暴
`webpack.renderer.config.js`里面编辑:
`entry`里面写每个页面的入口js
```
entry: {
home: [ './src/renderer/index.js'],
uut: ['./src/renderer/ejs/uut/index.js']
},
```
`plugins`里面`new HtmlWebpackPlugin`
```
new HtmlWebpackPlugin({
template: './src/renderer/index.ejs',
filename: './index.html',
title: 'scats-home',
inject: false,
hash: true,
mode: devMode,
chunks: ['home']
}),
new HtmlWebpackPlugin({
template: './src/renderer/ejs/uut/index_UUT_ATPAC_2009.ejs',
filename: './index_UUT_ATPAC_2009.html',
title: 'scats-uut',
inject: false,
hash: true,
mode: devMode,
chunks: ['uut']
}),
```
注意`chunks`:
### 写循环
`new HtmlWebpackPlugin`用循环处理,暂时没实现
## 11. electron的进一步配置
### 多窗口处理
#### 混合
txf写法
#### 每个页面单独编写配置
清理主进程文件main.js,提取窗口配置文件:
之前我们是把创建窗口以及窗口配置都放在了main.js中,这样会让我们的主进程看起来很乱,掺杂了各种配置、各方面的代码,而且一旦我们的项目稍微复杂一些,比如同时维护多个窗口,或者有很多针对某个窗口的事件监听等。这里所说的一个个窗口其实就是electron的渲染进程,不同的渲染进程由主进程来统一维护和调度。把渲染进程提取为单独的配置文件,对外只暴露方法,这样就能简化主进程代码,也让我们的项目结构更清晰、更合理。
每个页面单独写各自的配置文件,调用在`main.js`里面调用
如:
home窗口的配置在`index.js`,uut窗口的配置在`uut.js`;
好处:
方便项目集成。
### 添加控制台快捷方式
开发者工具不是默认打开的,调试代码过程中最好一开始就打开控制台
### 还没有解决的:
1. 多窗口
http协议加载的时候 没有加载成功
file协议加载的时候 又不是开发环境,不能热更新
<file_sep>/src/renderer/store/modules/interfaceData.js
const state = {
interfaceItem: { // 单个端口
id: "PORT_001",
type: '',
direction: '',
refPort: [], // 链接的端口信息
refs: [ // 单端口链接的连接器和针脚信息
{
cons: "J1",
pins:[
{"PinID":"1a-true"},
{"PinID":"1a-comp"},
],
},
{
cons: "J2",
pins:[
{"PinID":"1"},
{"PinID":"2"},
],
},
]
},
interfaceGroups: [ // 端口组
],
selectedInterfaceItem: null, // 当前选中的仪器
}
const mutations = {
setInterfaceGroups(state, value){ state.interfaceGroups = value; },
clearInterfaceGroups(state){ state.interfaceGroups.splice(0); },
setSelectedInterfaceItem(state, value){state.selectedInterfaceItem = value; },
addInterfaceItem(state, value){ state.interfaceGroups.push(value); }, // 新增一条端口信息到端口组
delInterfaceItem(state, value){ state.selectedInterfaceItem = null; }, // 删除当前选中一条的端口信息
addRefPinItem(state, value){state.selectedInterfaceItem.refs.refPins.push(value);}, // 新增一条针脚引用到选定的端口信息
}
const actions = {
clearInterfaceGroups ({commit}, value) {commit('clearInterfaceGroups', value)},
addInterfaceItem ({commit}, value) {commit('addInterfaceItem', value)},
delInterfaceItem ({commit}, value) {commit('delInterfaceItem', value)},
addRefPinItem ({commit}, value) {commit('addRefPinItem', value)},
}
export default {
namespaced: true,
state,
mutations,
actions
}<file_sep>/src/renderer/store/index.js
import Vue from 'vue'
import Vuex from 'vuex'
import tsData from './modules/tsData'
import instData from './modules/instData'
import conData from './modules/conData'
import portData from './modules/portData'
Vue.use(Vuex)
export default new Vuex.Store({
modules: {
tsData,
instData,
conData,
portData
}
})
<file_sep>/builder/webpack.devServer.config.js
/**
* Tip: devServer的配置
* Author: szm
* Data: 2020-02-25
* Tips: 使用以下命令启动各环境配置,npm run dev [dev|test|release]
**/
let envList = ['dev', 'test', 'release'];
let currentEnv = 'release';
let envArg = process.argv[2];
if (envArg && envList.includes(envArg)) {
currentEnv = envArg;
}
//导出服务配置
module.exports = {
url: '127.0.0.1',
port: 8098,
// 运行环境
currentEnv: currentEnv,
// 调试完打开浏览器
devComplateOpened: true
};<file_sep>/scripts/build.js
/**
* Tip: 打包工程
* Author: szm
* Data: 2020-03-21
**/
process.env.NODE_ENV = 'production';
const path = require('path');
const fs = require('fs');
const del = require("del");
const chalk = require('chalk');
const builder = require('electron-builder');
const { spawn } = require('child_process');
const renderConfig = require('../builder/webpack.renderer.config.js');
const { buildMain } = require('./child/buildMain.js');
const { buildRender } = require('./child/buildRender.js');
const setup = require('../config/version.js');
const { compress } = require('../config/compress.js');
del(['./app/*']);
console.log(chalk.green('打包客户端.......'));
Promise.all([buildRender()]).then(resolve => {
resolve.forEach(log => {
console.log('打包输出===>', log);
});
const outpath = path.join(__dirname, '../pack/');
try {
fs.mkdirSync(outpath);
} catch(e) {
console.log('已创建pack文件夹', e);
}
console.log('打包渲染进程完毕!压缩小版本!');
const zipPath = renderConfig.output.path;
const fileName = setup.versionType + '-' + setup.version.join('.');
const filePath = path.join(zipPath, `../pack/${fileName}.zip`);
compress(zipPath, filePath, 7 , (type,msg) => {
if (type === 'error'){
Promise.reject('压缩文件时出错:' + msg);
} else {
console.log(`压缩包大小为:${(msg / 1024 / 1024).toFixed(2)}MB`);
}
});
Promise.all([buildMain()]).then(resolve => {
resolve.forEach(log => {
console.log('打包输出===>', log)
});
builder.build().then(() => {
del(['../pack/*.yaml', '../pack/*.blockmap']);
openFileManager();
});
});
});
function openFileManager() {
// 打开文件管理器
let dirPath = path.join(__dirname, '..', 'pack');
if (process.platform === 'darwin') {
spawn('open', [dirPath]);
} else if (process.platform === 'win32') {
spawn('explorer', [dirPath]);
} else if (process.platform === 'linux') {
spawn('nautilus', [dirPath]);
}
}<file_sep>/builder/webpack.renderer.config.js
/*
Name: 渲染进程配置
Author: szm
Date: 2020-04-05
*/
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const VueLoaderPlugin = require('vue-loader/lib/plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const devMode = process.env.NODE_ENV === 'development';
module.exports = {
mode: devMode ? 'development' : 'production',
entry: {
index: './src/renderer/index.js'
},
output: {
path: path.join(__dirname, '../app/'),
publicPath: devMode ? '/' : '',
filename: './js/[name].[hash:8].js'
},
module: {
rules: [
// {
// test: /\.vue$/,
// exclude: /node_modules/,
// loader: 'vue-loader'
// },
{
test: /\.(js|jsx)$/,
loader: "babel-loader",
exclude: /node_modules/,
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
},
{
test: /\.less$/,
use: ['style-loader', 'css-loader',
{
loader: 'less-loader',
options: {
modifyVars: {
'primary-color': '#007acd',
'link-color': '#007acd',
'border-radius-base': '4px'
},
javascriptEnabled: true
}
}]
},
{
test: /\.(gif|jpg|jpeg|png|svg)$/,
use:[{
loader: 'url-loader',
options: {
esModule: false,
limit: 1024,
name: './images/[name].[ext]'
}
}]
},
{
test: /\.vue$/,
use: {
loader: 'vue-loader',
options: {
extractCSS: process.env.NODE_ENV === 'production',
loaders: {
sass: 'vue-style-loader!css-loader!sass-loader?indentedSyntax=1',
scss: 'vue-style-loader!css-loader!sass-loader',
less: 'vue-style-loader!css-loader!less-loader'
}
}
}
}
]
},
resolve: {
extensions: ['.js', '.json', '.vue'],
alias: {
'@': path.resolve(__dirname, "../src"),
'@config': path.resolve(__dirname, "../config"),
'@builder': path.resolve(__dirname, "../builder")
}
},
plugins: [
new HtmlWebpackPlugin({
template: './src/renderer/index.ejs',
filename: './index.html',
title: 'electron-vue-template',
inject: false,
hash: true,
mode: devMode
}),
new VueLoaderPlugin(),
// new CopyWebpackPlugin({
// patterns:[
// {
// from: 'node_modules/sqljs/lib/sqljs.js',
// to: 'static/js/',
// }
// ]
// }),
],
target: 'electron-renderer'
}<file_sep>/vue.config.js
module.exports = {
css: {
loaderOptions:{
modifyVars: {
// 'primary-color': '#007BCF',
// 'link-color': '#ff0000',
// 'border-radius-base': '4px'
},
less:{
javascriptEnabled:true,
}
},
requireModuleExtension: true
}
}<file_sep>/scripts/dev.js
/**
* Tip: 调试渲染进程
* Author: szm
* Data: 2020-03-21
**/
process.env.NODE_ENV = 'development';//开发模式
const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const webpackHotMiddleware = require('webpack-hot-middleware');
const chalk = require('chalk');
const http = require('http');
const repl = require('repl');
const { spawn } = require('child_process');
const electron = require('electron');
const path = require('path');
const { buildMain } = require('./child/buildMain.js');
const devServerConfig = require('../builder/webpack.devServer.config.js');
const url = devServerConfig.url;
const port = devServerConfig.port;
// 构建渲染进程
function devRender() {
console.log('启动渲染进程调试......');
const webpackDevConfig = require('../builder/webpack.renderer.config.js');
const compiler = webpack(webpackDevConfig);
new WebpackDevServer(
compiler, {
contentBase: webpackDevConfig.output.path,
publicPath: webpackDevConfig.output.publicPath,
open: false,//打开默认浏览器
inline: true,//刷新模式
hot: true,//热更新
quiet: true,//除第一次编译外,其余不显示编译信息
progress: true,//显示打包进度
setup(app) {
app.use(webpackHotMiddleware(compiler));
app.use('*', (req, res, next) => {
if (String(req.originalUrl).indexOf('.html') > 0) {
console.log(req.originalUrl)
getHtml(res);
} else {
next();
}
});
}
}
).listen(port, function(err) {
if (err) return console.log(err);
console.log(`Listening at http://${url}:${port}`);
});
compiler.hooks.done.tap('doneCallback', (stats) => {
const compilation = stats.compilation;
Object.keys(compilation.assets).forEach(key => console.log(chalk.blue(key)));
compilation.warnings.forEach(key => console.log(chalk.yellow(key)));
compilation.errors.forEach(key => console.log(chalk.red(`${key}:${stats.compilation.errors[key]}`)));
console.log(chalk.green(`${chalk.white('渲染进程调试完毕\n')}time:${(stats.endTime-stats.startTime)/1000} s`));
});
}
// 启动Electron
function startElectron() {
let electronProcess = spawn(electron, [path.join(process.cwd(), 'app/main.js')]);
electronProcess.stdout.on('data', data => {
// 正常输出为蓝色
electronLog(data, 'blue');
});
electronProcess.stderr.on('data', data => {
// 错误信息为红色
electronLog(data, 'red');
});
// 监听关闭,并调出交互模块,快捷重启
electronProcess.on('close', () => {
callRepl("Electron Closed");
});
}
//调出交互模块
function callRepl(tipText) {
var tip = `${tipText},reStart?(${chalk.green("Y")}/n)`;
const r = repl.start({
prompt: tip,
eval: (cmd, context, filename, callback) => {
if (cmd === "" || cmd === "\n" || cmd === "Y\n" || cmd === "y\n") {
console.log("\n重新进行调试...");
r.close();
reBuildApp();
} else {
process.exit();
}
callback(null);
}
});
}
// 重启
function reBuildApp() {
Promise.all([buildMain()]).then(() => {
startElectron();
}).catch(err => {
callRepl(err);
});
}
// 美化输出
function electronLog(data, color) {
let log = '';
data.toString().split(/\r?\n/).forEach(line => {
log += `\n${line}`;
});
if (/[0-9A-z]+/.test(log)) {
console.log(
chalk[color].bold('┏ Electron -------------------') +
log +
chalk[color].bold('┗ ----------------------------')
);
}
}
function getHtml(res) {
http.get(`http://${url}:${port}`, (response) => {
response.pipe(res);
}).on('error', (err) => {
console.log(err);
});
}
// 构建
function build() {
Promise.all([buildMain(), devRender()]).then(() => {
startElectron();
}).catch(err => {
console.log(err);
process.exit();
});
}
build(); | 11ef067c261ae2a6b9adccf9dd5ec821d1a61065 | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | Minnsss/Webpack-Vue-Electron-Ant-Template | a9a0d82a882c2c1aa6a811d77ed2187412452adb | 49410be4fcfe184841e519869157bacb9038fbbc |
refs/heads/main | <repo_name>AllyssonMoura/sensor_de_temperaturalm35<file_sep>/sensor_de_temperatura_lm351.ino
void setup(){
pinMode(A0, INPUT);
Serial.begin(9600);
}
void loop(){
delay(5000);
int valorLido = analogRead(A0);
float temperatura = map(valorLido, 0, 350, 0, 150);
Serial.println("Valor Lido: " + (String)valorLido);
Serial.println("Temperatura: " + (String)temperatura);
} | f263eb1454278140b1a335558a8d418a1807caea | [
"C++"
] | 1 | C++ | AllyssonMoura/sensor_de_temperaturalm35 | 861fb246d4be45fd65d48fad9c4aa5caf4bac290 | 6040c2f7493cbf4d74412e542d6213faf26c1c20 |
refs/heads/master | <file_sep>using LoanCalculator.Logic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace LoanCalculator
{
public partial class CustomerQuestionnaire : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void ClientQuestionnaireSubmitButton_Click(object sender, EventArgs e)
{
Page.Validate("CustomerQuestionnaireGroup");
if(Page.IsValid)
{
CustomerLogic.InsertCustomer(FirstNameTextBox.Text, LastNameTextBox.Text, TazTextBox.Text, PasswordTextBox.Text, DateTime.Parse(BirthdateTextBox.Text), int.Parse(LoanAmountTextBox.Text), int.Parse(PeriodTextBox.Text));
}
}
}
}<file_sep>using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LoanCalculator.DAL
{
public static class DataManager
{
public static string _sqlConnection = ConfigurationManager.ConnectionStrings["HonlineConnectionString"].ConnectionString;
/// <summary>
/// Executes a Transact-SQL statement against the connection and returns the number
/// </summary>
/// <param name="commandText">the sql command</param>
/// <returns>
/// Returns the numbers of rows that are effected from the query
/// </returns>
public static int ExecuteQuery(string commandText)
{
using (SqlConnection connection = new SqlConnection(_sqlConnection))
{
int rc = 0;
connection.Open();
SqlCommand command = new SqlCommand(commandText, connection);
rc = command.ExecuteNonQuery();
connection.Close();
return rc;
}
}
/// <summary>
/// Executes the query, and returns the first column of the first row in the result set returned by the query
/// </summary>
/// <param name="commandText">the sql command</param>
/// <returns>The first column of the first row in the result set</returns>
public static object ExecuteScalarQuery(string commandText)
{
using (SqlConnection connection = new SqlConnection(_sqlConnection))
{
int scalar;
decimal amount;
connection.Open();
SqlCommand command = new SqlCommand(commandText, connection);
if(int.TryParse(command.ExecuteScalar().ToString(), out scalar))
{
connection.Close();
return scalar;
}
if (decimal.TryParse(command.ExecuteScalar().ToString(), out amount))
{
connection.Close();
return amount;
}
return null;
}
}
/// <summary>
/// Executes the query, and returns the result set
/// </summary>
/// <param name="commandText">the sql command</param>
/// <returns>
/// Data table of the result set
/// </returns>
public static DataTable ExecuteDataTableQuery(string commandText)
{
using (SqlConnection connection = new SqlConnection(_sqlConnection))
{
connection.Open();
SqlCommand command = new SqlCommand(commandText, connection);
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = command;
DataTable dt = new DataTable();
da.Fill(dt);
connection.Close();
return dt;
}
}
}
}
<file_sep>using LoanCalculator.DAL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LoanCalculator.Logic
{
public static class CustomerLogic
{
/// <summary>
/// Insert a customer to the DB
/// </summary>
/// <param name="firstName"></param>
/// <param name="lastName"></param>
/// <param name="taz"></param>
/// <param name="password"></param>
/// <param name="birthdate"></param>
/// <param name="loanAmount"></param>
/// <param name="period"></param>
public static void InsertCustomer(string firstName, string lastName, string taz, string password, DateTime birthdate, int loanAmount, int period)
{
string commandText = string.Format("insert into Moran_Customers ([First Name], [Last Name], [Taz], [Password], [Birthdate], [Loan Amount], [Period]) values ('{0}', '{1}', '{2}', '{3}', '{4}', {5}, {6})", firstName, lastName, taz, password, birthdate, loanAmount, period);
DataManager.ExecuteQuery(commandText);
}
/// <summary>
/// Validate the customer against the DB records
/// </summary>
/// <param name="taz">the customer id</param>
/// <param name="password">the customer password</param>
/// <returns>the customer id</returns>
public static int ValidateCustomer(string taz, string password)
{
string commandText = string.Format("select Id from Moran_Customers Where Taz = '{0}' and Password = '{1}'", taz, password);
int id = (int)DataManager.ExecuteScalarQuery(commandText);
if (id > 0)
{
return id;
}
return 0;
}
/// <summary>
/// Get the customer record from the DB
/// </summary>
/// <param name="id">the customer id</param>
/// <returns>the customer record</returns>
public static DataTable GetCustomer(int id)
{
DataTable dt = new DataTable();
string commandText = string.Format("select * from Moran_Customers Where id = '{0}'", id);
dt = DataManager.ExecuteDataTableQuery(commandText);
return dt;
}
/// <summary>
/// Get all the records from Customers table
/// </summary>
/// <returns>DataTable of all the customers</returns>
public static DataTable GetCustomers()
{
DataTable dt = new DataTable();
string commandText = string.Format("select * from Moran_Customers");
dt = DataManager.ExecuteDataTableQuery(commandText);
return dt;
}
}
}
<file_sep># HonLine-LoanCalculator
HonLine Project
<file_sep>using LoanCalculator.Logic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace LoanCalculator
{
public partial class CustomerDetails : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void CustomerValidationButton_Click(object sender, EventArgs e)
{
string taz = TazTextBox.Text;
string password = PasswordTextBox.Text;
int id = CustomerLogic.ValidateCustomer(TazTextBox.Text, PasswordTextBox.Text);
if (id != 0)
{
CustomerDetailsPanel.Visible = true;
CustomerDetailsGridView.DataSource = CustomerLogic.GetCustomer(id);
CustomerDetailsGridView.DataBind();
LoanPaymentsCalculator calc = new LoanPaymentsCalculator();
LoanPaymetsRepeater.DataSource = calc.GetPaymentList(id);
LoanPaymetsRepeater.DataBind();
CustomerLoginPanel.Visible = false;
}
}
}
}<file_sep>using LoanCalculator.Logic;
using System;
using System.Web.UI.WebControls;
namespace LoanCalculator
{
public partial class Agents : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
CustomerDetailsGridView.DataSource = CustomerLogic.GetCustomers();
CustomerDetailsGridView.DataBind();
}
protected void CustomerDetailsGridView_DataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes["onmouseover"] = "this.style.cursor='pointer';this.style.textDecoration='underline';";
e.Row.Attributes["onmouseout"] = "this.style.textDecoration='none';";
e.Row.ToolTip = "Click to select this row.";
e.Row.Attributes["onclick"] = Page.ClientScript.GetPostBackClientHyperlink(CustomerDetailsGridView, "Select$" + e.Row.RowIndex);
}
}
protected void CustomerDetailsGridView_SelectedIndexChanged(object sender, EventArgs e)
{
foreach (GridViewRow row in CustomerDetailsGridView.Rows)
{
if (row.RowIndex == CustomerDetailsGridView.SelectedIndex)
{
int id = int.Parse(row.Cells[0].Text);
LoanPaymentsCalculator calc = new LoanPaymentsCalculator();
LoanPaymetsRepeater.DataSource = calc.GetPaymentList(id);
LoanPaymetsRepeater.DataBind();
}
}
}
}
}<file_sep>using LoanCalculator.DAL;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LoanCalculator.Logic
{
public class LoanPaymentsCalculator
{
private decimal _intrestPerYear = decimal.Parse(ConfigurationManager.AppSettings["IntrestPerYear"].ToString());
private decimal _currentLoanAmount = 0;
public class LoanPayment
{
public int Period { get; set; }
public decimal Interest { get; set; }
public decimal ReturnFund { get; set; }
public decimal TotalFund { get; set; }
public decimal Bop { get; set; }
}
/// <summary>
/// Get the loan amount by customer id
/// </summary>
/// <param name="id">the customer id</param>
/// <returns>loan amount in decimal</returns>
private decimal GetLoanAmountById(int id)
{
decimal loanAmout = 0;
string command = string.Format("select [Loan Amount] from Moran_Customers Where Id = {0}", id);
loanAmout = (decimal)DataManager.ExecuteScalarQuery(command);
return loanAmout;
}
/// <summary>
/// Get the loan period by cusotmer id
/// </summary>
/// <param name="id">the customer id</param>
/// <returns>the loan period</returns>
private int GetPeriod(int id)
{
int period = 0;
string command = string.Format("select [Period] from Moran_Customers Where Id = {0}", id);
period = (int)DataManager.ExecuteScalarQuery(command);
return period;
}
/// <summary>
/// Calculate the loan payments list by customer id
/// </summary>
/// <param name="id">the customer id</param>
/// <returns>List of the loan payments</returns>
public List<LoanPayment> GetPaymentList(int id)
{
int period = GetPeriod(id);
decimal loanAmount = GetLoanAmountById(id);
List<LoanPayment> loanPayments = new List<LoanPayment>();
for (int i = period; i > 0; i--)
{
LoanPayment loanPayment = new LoanPayment()
{
ReturnFund = loanAmount / period,
Period = i
};
//First calculation
if(i == period)
{
loanPayment.Bop = loanAmount - loanPayment.ReturnFund;
_currentLoanAmount = loanAmount;
}
else
{
loanPayment.Bop = _currentLoanAmount - loanPayment.ReturnFund;
}
loanPayment.Interest = (_currentLoanAmount * _intrestPerYear) / period;
loanPayment.TotalFund = loanPayment.Interest + loanPayment.ReturnFund;
_currentLoanAmount = loanPayment.Bop;
loanPayments.Add(loanPayment);
}
return loanPayments;
}
}
}
| 44004820f254d45d85b05255b447bb849ad1e02a | [
"Markdown",
"C#"
] | 7 | C# | moranmono/HonLIne-LoanCalculator | a18a0753e30ad0f16036d85d77887a11e6e511ab | 353159b95cd0e8ce886b94eb688adac174c23b5d |
refs/heads/master | <repo_name>mpektkd/Q2A-mvc-saas-ntua<file_sep>/src/thread/thread.service.ts
import { Injectable, NotFoundException } from '@nestjs/common';
import { CreateThreadDto } from './dto/create-thread.dto';
import { UpdateThreadDto } from './dto/update-thread.dto';
import { InjectEntityManager } from '@nestjs/typeorm';
import { EntityManager } from 'typeorm';
import { Thread } from './entities/thread.entity';
import jwt_decode, { JwtPayload } from 'jwt-decode';
import { CreateThreadUsersUserDto } from '../thread-users-user/dto/create-thread-users-user.dto';
import { ThreadUsersUserService } from '../thread-users-user/thread-users-user.service';
@Injectable()
export class ThreadService {
constructor(
@InjectEntityManager() private manager: EntityManager,
private readonly threadsUsersService: ThreadUsersUserService,
) {}
async create(userId, createThreadDto: CreateThreadDto): Promise<Thread> {
console.log(userId);
const threadDto = {
...createThreadDto,
createdByUser: {
id: parseInt(userId),
},
};
const thread = await this.manager.create(Thread, threadDto);
const threadPromise = await this.manager.save(thread);
console.log(threadPromise);
const threadUsersDto = new CreateThreadUsersUserDto(
threadPromise.id,
userId,
);
await this.threadsUsersService.create(threadUsersDto);
return threadPromise;
}
async findAll(): Promise<Thread[]> {
return this.manager.find(Thread, {
relations: ['users', 'createdByUser', 'answers', 'question'],
});
}
async findOne(id: number): Promise<Thread> {
const thread = await this.manager.findOne(Thread, id, {
relations: ['users', 'createdByUser', 'answers', 'question'],
});
if (!thread) throw new NotFoundException(`Thread ${id} not found.`);
return thread;
}
async update(id: number, updateThreadDto: UpdateThreadDto): Promise<Thread> {
return this.manager.transaction(async (manager) => {
const thread = await this.manager.findOne(Thread, id);
if (!thread) throw new NotFoundException(`Thread ${id} not found.`);
manager.merge(Thread, thread, updateThreadDto);
return manager.save(thread);
});
}
async remove(id: number): Promise<void> {
return this.manager.transaction(async (manager) => {
const thread = await this.manager.findOne(Thread, id);
if (!thread) throw new NotFoundException(`Thread ${id} not found.`);
await manager.delete(Thread, id);
});
}
}
<file_sep>/src/keywords/dto/create-keyword.dto.ts
export class CreateKeywordDto {}
<file_sep>/src/thread-users-user/dto/create-thread-users-user.dto.ts
import { IsInt } from "class-validator";
export class CreateThreadUsersUserDto {
constructor(threadId, userId) {
this.threadId = threadId;
this.userId = userId;
}
@IsInt()
readonly threadId: number;
@IsInt()
readonly userId: number;
}
<file_sep>/src/answer/answer.repository.ts
import {
EntityRepository,
Repository,
getConnection,
getRepository,
} from 'typeorm';
import { Injectable } from '@nestjs/common';
import { Question } from '../question/entities/question.entity';
import { Answer } from './entities/answer.entity';
import { SubmitAnswer } from '../interfaces/submitAnswer';
@Injectable()
@EntityRepository(Question)
@EntityRepository(Answer)
export class AnswerFormRepository extends Repository<Question> {
public async DisplayQuestionList() {
return await getConnection()
.createQueryBuilder()
.select('question')
.from(Question, 'question')
.getMany();
}
public async SubmitAnswer(submitAnswer: SubmitAnswer) {
console.log(submitAnswer.body);
const body = submitAnswer.body.replace(/[']+/g, '`');
const qry =
"call submit_answer('" +
body +
"', " +
submitAnswer.qid +
", " +
submitAnswer.userId +
")";
await this.query(qry);
}
}
<file_sep>/src/user/user.controller.ts
import {
Controller,
Get,
Post,
Body,
Patch,
Param,
Delete,
Res,
Render,
UseGuards,
Req,
HttpStatus, Request,
} from '@nestjs/common';
import { UserService } from './user.service';
import { CreateUserDto } from './dto/create-user.dto';
import { UpdateUserDto } from './dto/update-user.dto';
import { JwtAuthGuard } from '../auth/jwt-auth.guard';
import { ProfileModel } from '../models/questionByDay';
import RequestWithUser from "../auth/requestWithUser.interface";
import {JwtService} from "@nestjs/jwt";
@Controller('user')
export class UserController {
constructor(private readonly userService: UserService,
private readonly jwtService: JwtService) {}
@Post()
create(@Body() createUserDto: CreateUserDto, @Res() res) {
return this.userService.create(createUserDto);
}
@Get()
findAll() {
return this.userService.findAll();
}
@UseGuards(JwtAuthGuard)
@Get(':id')
@Render('profile')
async findOne(@Param('id') id: number) {
const user = await this.userService.findOne(id);
if (!user) {
return HttpStatus.NOT_FOUND;
}
const contr = await this.userService.ShowContr(id);
const profile = new ProfileModel();
profile.user = user;
profile.contr = contr;
return { profile: profile };
}
@Post('update')
async update(@Request() req: RequestWithUser, @Body() updateUserDto: UpdateUserDto, @Res() res) {
const token = this.jwtService.decode(req.cookies.Authentication);
if(token){
updateUserDto.username = updateUserDto.username ? updateUserDto.username : req.body.hidden_username;
updateUserDto.email = updateUserDto.email ? updateUserDto.email : req.body.hidden_email;
updateUserDto.password = <PASSWORD>UserDto.password ? <PASSWORD>UserDto.password : req.body.hidden_password;
await this.userService.update(token['userId'], updateUserDto);
}
res.redirect(`/user/${token['userId']}`);
}
@Delete(':id')
remove(@Param('id') id: string) {
return this.userService.remove(+id);
}
}
<file_sep>/src/thread-users-user/entities/thread-users-user.entity.ts
import { Entity, PrimaryColumn } from "typeorm";
@Entity()
export class ThreadUsersUser {
@PrimaryColumn()
threadId: number;
@PrimaryColumn()
userId: number;
}
<file_sep>/src/user/user.service.ts
import { Injectable, NotFoundException } from '@nestjs/common';
import { InjectRepository, InjectEntityManager } from '@nestjs/typeorm';
import { CreateUserDto } from './dto/create-user.dto';
import { UpdateUserDto } from './dto/update-user.dto';
import { User } from './entities/user.entity';
import { EntityManager } from 'typeorm';
import { UserRepo } from './user.repository';
import {QuestionByDayModel} from "../models/questionByDay";
@Injectable()
export class UserService {
constructor(
@InjectEntityManager() private manager: EntityManager,
@InjectRepository(UserRepo) private readonly repo: UserRepo,
) {}
async create(createUserDto: CreateUserDto): Promise<User> {
const user = await this.manager.create(User, createUserDto);
console.log(user);
return this.manager.save(user);
}
async findAll(): Promise<User[]> {
return this.manager.find(User, {
relations: ['role', 'threads', 'threadsOwned'],
});
}
async ShowContr(id: number): Promise<QuestionByDayModel[]> {
return this.repo.ShowContr(id);
}
async findOne(id: number): Promise<User> {
const user = await this.manager.findOne(User, id, {
relations: ['role', 'threads', 'threadsOwned', 'answers'],
});
if (!user) throw new NotFoundException(`User ${id} not found.`);
return user;
}
async findByEmail(email: string): Promise<User> {
const user = await this.manager.findOne(User, { email: email });
if (!user) throw new NotFoundException(`User with ${email} not found.`);
return user;
}
async update(id: number, updateUserDto: UpdateUserDto): Promise<User> {
return this.manager.transaction(async (manager) => {
const user = await this.manager.findOne(User, id);
if (!user) throw new NotFoundException(`User ${id} not found.`);
manager.merge(User, user, updateUserDto);
return manager.save(user);
});
}
async remove(id: number): Promise<void> {
return this.manager.transaction(async (manager) => {
const user = await this.manager.findOne(User, id);
if (!user) throw new NotFoundException(`User ${id} not found.`);
await manager.delete(User, id);
});
}
}
<file_sep>/src/thread/dto/update-thread.dto.ts
import { PartialType } from '@nestjs/mapped-types';
import { CreateThreadDto } from './create-thread.dto';
export class UpdateThreadDto extends PartialType(CreateThreadDto) {}
<file_sep>/src/thread-users-user/thread-users-user.controller.ts
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { ThreadUsersUserService } from './thread-users-user.service';
import { CreateThreadUsersUserDto } from './dto/create-thread-users-user.dto';
import { UpdateThreadUsersUserDto } from './dto/update-thread-users-user.dto';
@Controller('thread-users-user')
export class ThreadUsersUserController {
constructor(private readonly threadUsersUserService: ThreadUsersUserService) {}
@Post()
create(@Body() createThreadUsersUserDto: CreateThreadUsersUserDto) {
return this.threadUsersUserService.create(createThreadUsersUserDto);
}
@Get()
findAll() {
return this.threadUsersUserService.findAll();
}
@Get(':id')
findOne(@Param('id') id: string) {
return this.threadUsersUserService.findOne(+id);
}
@Patch(':id')
update(@Param('id') id: string, @Body() updateThreadUsersUserDto: UpdateThreadUsersUserDto) {
return this.threadUsersUserService.update(+id, updateThreadUsersUserDto);
}
@Delete(':id')
remove(@Param('id') id: string) {
return this.threadUsersUserService.remove(+id);
}
}
<file_sep>/src/answer/dto/create-answer.dto.ts
import { IsInt, IsNotEmpty, IsString } from "class-validator";
export class CreateAnswerDto {
@IsNotEmpty()
@IsString()
readonly body: string;
@IsInt()
readonly threadId: number;
}
<file_sep>/src/question/question.service.ts
import { Injectable, NotFoundException, Param } from '@nestjs/common';
import { CreateQuestionDto } from './dto/create-question.dto';
import { UpdateQuestionDto } from './dto/update-question.dto';
import { InjectEntityManager, InjectRepository } from '@nestjs/typeorm';
import { EntityManager } from 'typeorm';
import { Question } from './entities/question.entity';
import { ThreadService } from '../thread/thread.service';
import { QuestionFormDto } from '../models/question-form';
import { NewQuestionRepo } from './new_question.repo';
import { QuestionByDayModel } from '../models/questionByDay';
@Injectable()
export class QuestionService {
constructor(
@InjectEntityManager() private manager: EntityManager,
@InjectRepository(NewQuestionRepo) private readonly repo: NewQuestionRepo,
) {}
async create(user, QuestionForm: QuestionFormDto): Promise<void> {
console.log(user);
await this.repo.AskQuestion(user, QuestionForm);
}
async ShowCharts(): Promise<QuestionByDayModel[]> {
return await this.repo.ShowCharts();
}
async PaginateQuestions(
kid: number,
pageNumber: number,
pageSize: number,
dateFrom: string,
dateTo: string,
): Promise<Question[]> {
return await this.repo.PaginateQuestions(kid, pageNumber, pageSize, dateFrom, dateTo);
}
async findAll(): Promise<Array<Question>> {
return this.manager.find(Question, { relations: ['thread'] });
}
async findOne(id: number): Promise<Question> {
const question = await this.manager.findOne(Question, id, {
relations: ['thread', 'user'],
});
if (!question) throw new NotFoundException(`Question ${id} not found.`);
return question;
}
async update(id: number, updateQuestionDto: UpdateQuestionDto) {
return this.manager.transaction(async (manager) => {
const question = await this.manager.findOne(Question, id);
if (!question) throw new NotFoundException(`Question ${id} not found.`);
manager.merge(Question, question, updateQuestionDto);
return manager.save(question);
});
}
async remove(id: number) {
return this.manager.transaction(async (manager) => {
const question = await this.manager.findOne(Question, id);
if (!question) throw new NotFoundException(`Question ${id} not found.`);
await manager.delete(Question, id);
});
}
}
<file_sep>/src/auth/constants.ts
//this should be secured, not upload it on github
export const jwtConstants = {
secret: 'secretKey',
};<file_sep>/src/question/new_question.repo.ts
import { EntityRepository, EntityManager, Repository } from 'typeorm';
import { QuestionFormDto } from '../models/question-form';
import { Injectable } from '@nestjs/common';
import { Question } from './entities/question.entity';
import { QuestionBykey } from '../interfaces/QuestionBykey';
import { QuestionByDayModel } from '../models/questionByDay';
@Injectable()
@EntityRepository(Question)
export class NewQuestionRepo extends Repository<Question> {
public async AskQuestion(user, QuestionForm: QuestionFormDto) {
const query =
"CALL ask_question('" +
QuestionForm.title +
"', '" +
QuestionForm.body +
"', array[" +
QuestionForm.keywords.map((x) => "'" + x + "'") +
'], ' +
user.userId +
')';
await this.query(query);
}
public async ShowCharts(): Promise<QuestionByDayModel[]> {
const qry = `select * from questions_per_day()`;
return await this.query(qry);
}
public async PaginateQuestions(
kid: number,
pageNumber: number,
pageSize: number,
dateFrom: string,
dateTo: string,
): Promise<Question[]> {
// const qry =
// `SELECT public.paginate_questions(` + pageNumber + `,` + pageSize + `)`;
const keyFilter = kid ? 'and thkey."keywordId" = ' + kid : '';
const joinKey = kid ? ' join thread_keywords_keyword as thkey on thkey."threadId"=th.id ' : '';
let dateFilter = null;
console.log(dateFrom);
console.log(dateTo);
if (dateFrom && dateTo){
dateFilter = ` and qu."dateCreated" between '` + dateFrom + `' and '` + dateTo + `'`;
}else if(dateFrom && !dateTo){
dateFilter = ` and qu."dateCreated" >= '` + dateFrom + `'` ;
}
else if (!dateFrom && dateTo){
dateFilter = ` and qu."dateCreated" <= '` + dateTo + `'` ;
}
else{
dateFilter = '';
}
console.log(dateFilter);
const start = (pageNumber - 1) * pageSize;
const qry = `
select
qu.id as id,
qu.body as body,
qu.title as title,
qu."dateCreated" as dateCreated,
qu."dateUpdated" as dateUpdated,
qu."totalThumbsUp" as totalThumbsUp,
qu."totalThumbsDown" as totalThumbsDown,
case
when count(an.id) is null then 0
else count(an.id)
end as answers
from question as qu
join thread as th on th."questionId" = qu.id `+
joinKey +
` left join answer as an on an."threadId" = th.id
where qu.id in
(
select q.id from question as q offset ` +
start +
` limit ` +
pageSize +
`
) ` + keyFilter + dateFilter + ` group by qu.id
order by qu."dateCreated";`;
return await this.query(qry);
}
}
<file_sep>/src/answer/answer.service.ts
import { Injectable, NotFoundException } from '@nestjs/common';
import { CreateAnswerDto } from './dto/create-answer.dto';
import { UpdateAnswerDto } from './dto/update-answer.dto';
import { Question } from '../question/entities/question.entity';
import { Answer } from './entities/answer.entity';
import { InjectEntityManager, InjectRepository } from '@nestjs/typeorm';
import { EntityManager } from 'typeorm';
import jwt_decode, { JwtPayload } from 'jwt-decode';
import { AnswerFormRepository } from './answer.repository';
import { SubmitAnswer } from '../interfaces/submitAnswer';
import { Thread } from '../thread/entities/thread.entity';
import {QuestionList} from "../models/questions_display";
import {Keyword} from "../keywords/entities/keyword.entity";
@Injectable()
export class AnswerService {
constructor(
@InjectEntityManager() private manager: EntityManager,
@InjectRepository(AnswerFormRepository)
private readonly repo: AnswerFormRepository,
) {}
async SubmitAnswer(submitAnswer: SubmitAnswer) {
try {
await this.repo.SubmitAnswer(submitAnswer);
return true;
} catch (error) {
return false;
}
}
async GetQuestionList(): Promise<QuestionList> {
const questionList = new QuestionList();
questionList.QList = await this.repo.DisplayQuestionList();
questionList.KList = await this.manager.find(Keyword);
return questionList;
}
async SeeThread(id: number, fromProfile: boolean): Promise<Thread> {
console.log('i am the question with ID: ', id);
let thid = null;
if(fromProfile){
thid = id;
}else{
const question = await this.manager.findOne(Question, id, {
relations: ['thread'],
});
console.log(question);
if (!question) throw new NotFoundException(`Question ${id} not found.`);
thid = question.thread.id;
}
const thread = await this.manager.findOne(Thread, thid, {
relations: ['users', 'createdByUser', 'answers', 'question', 'keywords'],
});
console.log(thread);
if (!thread)
throw new NotFoundException(`Thread ${thid} not found.`);
return thread;
}
async findAll(): Promise<Answer[]> {
return this.manager.find(Answer, { relations: ['thread', 'user'] });
}
async findOne(id: number): Promise<Answer> {
const answer = await this.manager.findOne(Answer, id);
if (!answer) throw new NotFoundException(`Answer ${id} not found.`);
return answer;
}
async update(id: number, updateAnswerDto: UpdateAnswerDto) {
return this.manager.transaction(async (manager) => {
const answer = await this.manager.findOne(Answer, id);
if (!answer) throw new NotFoundException(`Answer ${id} not found.`);
manager.merge(Answer, answer, updateAnswerDto);
return manager.save(answer);
});
}
async remove(id: number) {
return this.manager.transaction(async (manager) => {
const answer = await this.manager.findOne(Answer, id);
if (!answer) throw new NotFoundException(`Answer ${id} not found.`);
await manager.delete(Answer, id);
});
}
}
<file_sep>/src/answer/entities/answer.entity.ts
import {
Entity,
PrimaryGeneratedColumn,
Column,
CreateDateColumn,
UpdateDateColumn,
ManyToOne,
JoinColumn,
} from 'typeorm';
import { Thread } from '../../thread/entities/thread.entity';
import { User } from '../../user/entities/user.entity';
import { IsNotEmpty } from 'class-validator';
@Entity()
export class Answer {
@PrimaryGeneratedColumn()
id: number;
@Column()
body: string;
@CreateDateColumn()
dateCreated: Date;
@UpdateDateColumn()
dateUpdated: Date;
@Column({
type: 'int',
default: '0',
})
totalThumbsUp: number;
@Column({
type: 'int',
default: '0',
})
totalThumbsDown: number;
@ManyToOne(() => User, (user) => user.answers)
user: User;
@ManyToOne(() => Thread, (thread) => thread.answers)
thread: Thread;
}
<file_sep>/src/thread-users-user/thread-users-user.controller.spec.ts
import { Test, TestingModule } from '@nestjs/testing';
import { ThreadUsersUserController } from './thread-users-user.controller';
import { ThreadUsersUserService } from './thread-users-user.service';
describe('ThreadUsersUserController', () => {
let controller: ThreadUsersUserController;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
controllers: [ThreadUsersUserController],
providers: [ThreadUsersUserService],
}).compile();
controller = module.get<ThreadUsersUserController>(ThreadUsersUserController);
});
it('should be defined', () => {
expect(controller).toBeDefined();
});
});
<file_sep>/src/app.controller.ts
import { AppService } from './app.service';
import {
Controller,
Get,
Request,
Post,
Res,
Render,
UseGuards,
HttpCode,
Body,
Req, Redirect,
} from '@nestjs/common';
import { Response } from 'express';
import { LocalAuthGuard } from './auth/local-auth.guard';
import { AuthService } from './auth/auth.service';
import { JwtAuthGuard } from './auth/jwt-auth.guard';
import RequestWithUser from './auth/requestWithUser.interface';
import { CreateUserDto } from './user/dto/create-user.dto';
import {JwtService} from "@nestjs/jwt";
@Controller()
export class AppController {
constructor(
private readonly appService: AppService,
private authService: AuthService,
private jwtService: JwtService,
) {}
@Get('register')
@Render('register')
async registerPage() {
return {
pageTitle: 'Register',
};
}
@HttpCode(200)
@Post('register')
async register(@Body() registrationData: CreateUserDto, @Res() res) {
await this.authService.register(registrationData);
res.redirect(`/`);
}
@Get('login')
@Render('login')
loginPage(@Request() req) {
return {
pageTitle: 'Login',
};
}
@HttpCode(200)
@UseGuards(LocalAuthGuard)
@Post('login')
async logIn(@Req() request: RequestWithUser, @Res() res: Response) {
const { user } = request;
console.log(user);
const cookie = this.authService.getCookieWithJwtToken(user.id);
res.setHeader('Set-Cookie', cookie);
user.password = <PASSWORD>;
res.redirect(`user/${user.id}`);
}
@Get('/')
@Redirect()
index() {
return{
url: 'answer'
};
}
@UseGuards(JwtAuthGuard)
@Get('/profile')
@Render('profile')
getProfile(@Req() req: RequestWithUser, @Res() res: Response) {
console.log(this.jwtService.decode(req.cookies.Authentication));
const token = this.jwtService.decode(req.cookies.Authentication);
res.redirect(`user/${token['userId']}`);
}
@HttpCode(200)
@UseGuards(JwtAuthGuard)
@Get('/logout')
async logout(@Request() req, @Res() res: Response) {
await res.setHeader('Set-Cookie', this.authService.getCookieForLogOut());
// return res.sendStatus(200);
res.redirect(`/`);
}
}
<file_sep>/src/user/user.module.ts
import { Module } from '@nestjs/common';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from './entities/user.entity';
import { Thread } from '../thread/entities/thread.entity';
import { UserRepo } from './user.repository';
import {JwtModule} from "@nestjs/jwt";
import {jwtConstants} from "../auth/constants";
@Module({
imports: [TypeOrmModule.forFeature([User, Thread, UserRepo]),
JwtModule.register({
secret: jwtConstants.secret,
signOptions: { expiresIn: '1h' },
}),],
controllers: [UserController],
providers: [UserService],
exports: [TypeOrmModule],
})
export class UserModule {}
<file_sep>/src/answer/answer.controller.ts
import {
Controller,
Get,
Post,
Body,
Patch,
Param,
Delete,
UseGuards,
Headers,
HttpCode,
Request,
Res,
Render,
HttpStatus,
Redirect, UseFilters,
} from '@nestjs/common';
import { AnswerService } from './answer.service';
import { CreateAnswerDto } from './dto/create-answer.dto';
import { UpdateAnswerDto } from './dto/update-answer.dto';
import { JwtAuthGuard } from '../auth/jwt-auth.guard';
import RequestWithUser from '../auth/requestWithUser.interface';
import { KeyWordsArrayPipe } from '../pipes/pipe-keywords_array';
import { Response } from 'express';
import { QuestionList } from '../models/questions_display';
import { SubmitAnswerModel } from '../models/submitAnswerModel';
import {ExtractJwt} from "passport-jwt";
import {
HttpExceptionFilter,
HttpExceptionThread,
HttpExceptionToLogin
} from "../exception-filters/http-exception.filter";
@Controller('answer')
export class AnswerController {
constructor(private readonly answerService: AnswerService) {}
@Get()
@HttpCode(200)
@UseGuards(JwtAuthGuard)
@UseFilters(HttpExceptionFilter)
@Render(`index`)
async GetQuestions(@Request() req : RequestWithUser) {
const questionList = await this.answerService.GetQuestionList();
return {
length: questionList.QList.length,
KList: questionList.KList,
logged: true
};
}
@HttpCode(200)
@Get('/unLogged')
@Render(`index`)
async unLoggedGetQuestions(@Request() req : RequestWithUser) {
const questionList = await this.answerService.GetQuestionList();
const length = questionList.QList.length <= 10 ? questionList.QList.length : 10;
return {
length: length,
KList: questionList.KList,
logged: false
};
}
@HttpCode(200)
@UseGuards(JwtAuthGuard)
@UseFilters(HttpExceptionThread)
@Post('/answer-form')
@Render(`answer_form`)
async SeeThread(@Request() req: RequestWithUser) {
console.log(typeof req.body.fromProfile);
return {
res: await this.answerService.SeeThread(req.body.questionId, JSON.parse(req.body.fromProfile)),
logged: true
};
}
@HttpCode(200)
@Get('/answer-form/unLogged/:questionId')
@Render(`answer_form`)
async SeeThreadUnLogged(@Param('questionId') questionId: number) {
console.log(questionId);
return {
res: await this.answerService.SeeThread(questionId, false),
logged: false
};
}
@UseGuards(JwtAuthGuard)
@UseFilters(HttpExceptionToLogin)
@Post()
@Redirect()
async SubmitAnswer(@Request() req: RequestWithUser, @Res() res: Response) {
const submitAnswer = new SubmitAnswerModel(
req.body.answer,
req.body.qid,
req.user['userId'],
);
console.log(req.user);
console.log(submitAnswer);
const submitted = await this.answerService.SubmitAnswer(submitAnswer);
if (submitted) {
// res.redirect(HttpStatus.CREATED, `user/` + req.user['userId']);
return {
url: `answer`,
status: HttpStatus.CREATED,
};
} else {
return {
url: `answer`,
status: HttpStatus.BAD_REQUEST,
};
}
}
@Get(':id')
findOne(@Param('id') id: string) {
return this.answerService.findOne(+id);
}
@Patch(':id')
update(@Param('id') id: string, @Body() updateAnswerDto: UpdateAnswerDto) {
return this.answerService.update(+id, updateAnswerDto);
}
@Delete(':id')
remove(@Param('id') id: string) {
return this.answerService.remove(+id);
}
}
<file_sep>/src/keywords/keyword.repository.ts
import {
EntityRepository,
EntityManager,
Repository,
getConnection,
createQueryBuilder,
} from 'typeorm';
import { Injectable } from '@nestjs/common';
import { Key } from '../interfaces/interface.KeysByQuestion';
import { Thread } from '../thread/entities/thread.entity';
import { AnswerByQuestion } from '../interfaces/AnswerByQuestion';
import { QuestionBykey } from '../interfaces/QuestionBykey';
@Injectable()
@EntityRepository(Thread)
export class AnswerFormRepo extends Repository<Thread> {
public async GetKeywordsList(qid: number): Promise<Key[]> {
const query =
`select
d.id,
d.name
from thread as a
join question as b on b.id=a."questionId"
join thread_keywords_keyword as c on c."threadId"=a.id
join keyword as d on d.id=c."keywordId"
where b.id=` + qid;
return await this.query(query);
}
public async GetPrevAnswersList(qid: number): Promise<AnswerByQuestion[]> {
const qry =
`select
a."dateCreated",
a."dateUpdated",
a."totalThumbsUp",
a."totalThumbsDown",
a."userId",
a."threadId",
a.id,
a.body
from answer as a
join thread as b on b.id=a."threadId"
join question as c on c.id=b."questionId"
where c.id=` + qid;
return await this.query(qry);
}
public async ShowCharts(): Promise<QuestionBykey[]> {
const qry = `SELECT * FROM questions_per_key()`;
return await this.query(qry);
}
}
<file_sep>/src/user/user.repository.ts
import { EntityRepository, EntityManager, Repository } from 'typeorm';
import { Injectable } from '@nestjs/common';
import { QuestionByDayModel } from '../models/questionByDay';
import { User } from './entities/user.entity';
@Injectable()
@EntityRepository(User)
export class UserRepo extends Repository<User> {
public async ShowContr(id: number): Promise<QuestionByDayModel[]> {
const qry = `select * from contr_per_day(` + id + `)`;
return await this.query(qry);
}
}
<file_sep>/src/roles/roles.service.ts
import { Injectable, NotFoundException } from '@nestjs/common';
import { InjectEntityManager } from '@nestjs/typeorm';
import { CreateRoleDto } from './dto/create-role.dto';
import { UpdateRoleDto } from './dto/update-role.dto';
import { EntityManager } from 'typeorm';
import { Role } from './entities/role.entity';
@Injectable()
export class RolesService {
constructor(@InjectEntityManager() private manager: EntityManager) {}
async create(createRoleDto: CreateRoleDto): Promise<Role> {
const role = await this.manager.create(Role, createRoleDto);
return this.manager.save(role);
}
async findAll(): Promise<Role[]> {
return this.manager.find(Role);
}
async findOne(id: number): Promise<Role> {
const role = await this.manager.findOne(Role, id);
if (!role) throw new NotFoundException(`Role ${id} not found.`);
return role;
}
update(id: number, updateRoleDto: UpdateRoleDto) {
return this.manager.transaction(async (manager) => {
const role = await this.manager.findOne(Role, id);
if (!role) throw new NotFoundException(`Role ${id} not found.`);
manager.merge(Role, role, updateRoleDto);
return manager.save(role);
});
}
async remove(id: number) {
return this.manager.transaction(async (manager) => {
const role = await this.manager.findOne(Role, id);
if (!role) throw new NotFoundException(`Role ${id} not found.`);
await manager.delete(Role, id);
});
}
}
<file_sep>/src/interfaces/QuestionBykey.ts
export interface QuestionBykey {
id: number;
name: string;
RelatedThreads: number;
}
<file_sep>/src/thread/entities/thread.entity.ts
import {
Entity,
PrimaryGeneratedColumn,
Column,
CreateDateColumn,
UpdateDateColumn,
ManyToMany,
OneToMany,
JoinColumn,
OneToOne,
JoinTable,
ManyToOne,
} from 'typeorm';
import { User } from '../../user/entities/user.entity';
import { Answer } from '../../answer/entities/answer.entity';
import { Question } from '../../question/entities/question.entity';
import { Keyword } from '../../keywords/entities/keyword.entity';
import { Role } from '../../roles/entities/role.entity';
@Entity()
export class Thread {
@PrimaryGeneratedColumn()
id: number;
@Column()
title: string;
@CreateDateColumn()
dateCreated: Date;
@UpdateDateColumn()
dateUpdated: Date;
@ManyToMany(() => User, (user) => user.threads)
@JoinTable()
users: User[];
@OneToMany(() => Answer, (answer) => answer.thread)
answers: Answer[];
@OneToOne(() => Question, (question) => question.thread)
@JoinColumn()
question: Question;
@ManyToMany(() => Keyword, (keyword) => keyword.threads)
@JoinTable()
keywords: Keyword[];
@ManyToOne(() => User, (user) => user.threadsOwned)
createdByUser: User;
}
<file_sep>/src/keywords/keywords.module.ts
import { Module } from '@nestjs/common';
import { KeywordsService } from './keywords.service';
import { KeywordsController } from './keywords.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Question } from '../question/entities/question.entity';
import { AnswerFormRepo } from './keyword.repository';
import { Keyword } from './entities/keyword.entity';
import { Thread } from '../thread/entities/thread.entity';
import {JwtModule} from "@nestjs/jwt";
import {jwtConstants} from "../auth/constants";
@Module({
imports: [
TypeOrmModule.forFeature([Keyword, Question, Thread, AnswerFormRepo,]),
JwtModule.register({
secret: jwtConstants.secret,
signOptions: { expiresIn: '1m' },
}),
],
controllers: [KeywordsController],
providers: [KeywordsService],
exports: [KeywordsService],
})
export class KeywordsModule {}
<file_sep>/src/exception-filters/http-exception.filter.ts
import {ExceptionFilter, Catch, ArgumentsHost, HttpException, UnauthorizedException, Redirect} from '@nestjs/common';
import { Request, Response } from 'express';
@Catch(UnauthorizedException)
export class HttpExceptionFilter implements ExceptionFilter {
catch(exception: UnauthorizedException, host: ArgumentsHost) {
const ctx = host.switchToHttp();
const response = ctx.getResponse<Response>();
response.redirect('answer/unLogged');
}
}
@Catch(UnauthorizedException)
export class HttpExceptionToLogin implements ExceptionFilter {
catch(exception: UnauthorizedException, host: ArgumentsHost) {
const ctx = host.switchToHttp();
const response = ctx.getResponse<Response>();
response.redirect('../login');
}
}
@Catch(UnauthorizedException)
export class HttpExceptionThread implements ExceptionFilter {
catch(exception: UnauthorizedException, host: ArgumentsHost) {
const ctx = host.switchToHttp();
const response = ctx.getResponse<Response>();
const request = ctx.getRequest<Request>();
const status = exception.getStatus();
response.redirect('answer-form/unLogged/' + request.body.questionId);
}
}
<file_sep>/src/thread/dto/create-thread.dto.ts
import { IsInt, IsNotEmpty, IsString } from 'class-validator';
import { Question } from "../../question/entities/question.entity";
export class CreateThreadDto {
@IsNotEmpty()
@IsString()
readonly title: string;
}
<file_sep>/src/models/key.answers.ByQuestion.ts
import { Key } from '../interfaces/interface.KeysByQuestion';
import { AnswerByQuestion } from '../interfaces/AnswerByQuestion';
export class KeysAnswersResponse {
KList: Key[];
AList: AnswerByQuestion[];
}
<file_sep>/src/helpers.ts
const hbs = require('handlebars');
hbs.registerHelper("inc", function(value, options)
{
return parseInt(value) + 1;
});<file_sep>/src/question/question.controller.ts
import {
Controller,
Get,
Post,
Body,
Patch,
Param,
Delete,
Headers,
HttpCode,
UseGuards,
Request,
Res,
Render,
UsePipes, UseFilters,
} from '@nestjs/common';
import { QuestionService } from './question.service';
import { CreateQuestionDto } from './dto/create-question.dto';
import { UpdateQuestionDto } from './dto/update-question.dto';
import { LocalAuthGuard } from '../auth/local-auth.guard';
import { JwtAuthGuard } from '../auth/jwt-auth.guard';
import RequestWithUser from '../auth/requestWithUser.interface';
import { KeyWordsArrayPipe } from '../pipes/pipe-keywords_array';
import { Response } from 'express';
import { QuestionFormDto } from '../models/question-form';
import {HttpExceptionToLogin} from "../exception-filters/http-exception.filter";
@Controller('question')
export class QuestionController {
constructor(private readonly questionService: QuestionService) {}
@HttpCode(200)
@UseGuards(JwtAuthGuard)
@Post()
async create(
@Request() req: RequestWithUser,
@Body(KeyWordsArrayPipe) QuestionFormDto: QuestionFormDto,
@Res() res: Response,
) {
console.log(req.body);
await this.questionService.create(req.user, QuestionFormDto);
res.redirect(`/`);
}
@HttpCode(200)
@UseGuards(JwtAuthGuard)
@UseFilters(HttpExceptionToLogin)
@Get()
@Render('new_question')
form() {
//i have to insert model with user-info
return;
}
@HttpCode(200)
@Post('/charts')
async ShowCharts() {
const res = await this.questionService.ShowCharts();
return JSON.stringify(res);
}
@Get('/all')
findAll() {
return this.questionService.findAll();
}
@HttpCode(200)
@Post('/pagination')
async PaginateQuestions(@Request() req: RequestWithUser) {
const res = await this.questionService.PaginateQuestions(
req.body.kid,
req.body.pageNumber,
req.body.pageSize,
req.body.dateFrom,
req.body.dateTo,
);
return {
data: res,
};
}
@Get(':id')
findOne(@Param('id') id: string) {
return this.questionService.findOne(+id);
}
@Patch(':id')
update(
@Param('id') id: string,
@Body() updateQuestionDto: UpdateQuestionDto,
) {
return this.questionService.update(+id, updateQuestionDto);
}
@Delete(':id')
remove(@Param('id') id: string) {
return this.questionService.remove(+id);
}
}
<file_sep>/src/models/login.ts
import { Expose } from 'class-transformer';
import { IsDate, IsEmail, IsNotEmpty } from 'class-validator';
export class UserDto {
@Expose()
@IsNotEmpty()
readonly username: string;
@Expose()
@IsNotEmpty()
readonly password: string;
}
<file_sep>/src/interfaces/AnswerByQuestion.ts
export interface AnswerByQuestion {
id: number;
body: string;
dateCreated: Date;
dateUpdated: Date;
totalThumbsUp: number;
totalThumbsDown: number;
userId: number;
threadId: number;
}
<file_sep>/src/user/entities/user.entity.ts
import {
Entity,
PrimaryGeneratedColumn,
Column,
CreateDateColumn,
UpdateDateColumn,
ManyToMany,
OneToMany,
ManyToOne,
OneToOne, JoinColumn, BeforeInsert, BeforeUpdate
} from "typeorm";
import { Thread } from '../../thread/entities/thread.entity';
import { Role } from '../../roles/entities/role.entity';
import { Answer } from '../../answer/entities/answer.entity';
import { hash, hashSync } from "bcrypt";
@Entity()
export class User {
@PrimaryGeneratedColumn()
id: number;
@Column()
username: string;
@Column()
password: string;
@Column({ unique: true })
email: string;
@CreateDateColumn()
dateCreated: Date;
@UpdateDateColumn()
dateUpdated: Date;
@Column()
totalKarma: number;
@ManyToMany(() => Thread, (thread) => thread.users)
threads: Thread[];
@ManyToOne(() => Role, (role) => role.users)
role: Role;
@OneToMany(() => Thread, (thread) => thread.createdByUser)
threadsOwned: Thread[];
@OneToMany(() => Answer, (answer) => answer.user)
answers: Answer[];
@BeforeInsert()
@BeforeUpdate()
async hashPassword() {
this.password = hashSync(this.password, 10);
}
@BeforeInsert()
async default_values() {
this.totalKarma = 0;
}
}
<file_sep>/src/models/QuestionsByKeyModel.ts
import { QuestionBykey } from '../interfaces/QuestionBykey';
export class QuestionsByKeyModel implements QuestionBykey {
RelatedThreads: number;
id: number;
name: string;
}
<file_sep>/migration/1625012983302-NewStart2.ts
import {MigrationInterface, QueryRunner} from "typeorm";
export class NewStart21625012983302 implements MigrationInterface {
name = 'NewStart21625012983302'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "thread_users_user" DROP CONSTRAINT "FK_1cb65947909789a0101566ceab2"`);
await queryRunner.query(`ALTER TABLE "thread_users_user" DROP CONSTRAINT "FK_5f595612fc5b8b717e08b5e4871"`);
await queryRunner.query(`DROP INDEX "IDX_1cb65947909789a0101566ceab"`);
await queryRunner.query(`DROP INDEX "IDX_5f595612fc5b8b717e08b5e487"`);
await queryRunner.query(`CREATE INDEX "IDX_1cb65947909789a0101566ceab" ON "thread_users_user" ("threadId") `);
await queryRunner.query(`CREATE INDEX "IDX_5f595612fc5b8b717e08b5e487" ON "thread_users_user" ("userId") `);
await queryRunner.query(`ALTER TABLE "thread_users_user" ADD CONSTRAINT "FK_1cb65947909789a0101566ceab2" FOREIGN KEY ("threadId") REFERENCES "thread"("id") ON DELETE CASCADE ON UPDATE NO ACTION`);
await queryRunner.query(`ALTER TABLE "thread_users_user" ADD CONSTRAINT "FK_5f595612fc5b8b717e08b5e4871" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE NO ACTION`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "thread_users_user" DROP CONSTRAINT "FK_5f595612fc5b8b717e08b5e4871"`);
await queryRunner.query(`ALTER TABLE "thread_users_user" DROP CONSTRAINT "FK_1cb65947909789a0101566ceab2"`);
await queryRunner.query(`DROP INDEX "IDX_5f595612fc5b8b717e08b5e487"`);
await queryRunner.query(`DROP INDEX "IDX_1cb65947909789a0101566ceab"`);
await queryRunner.query(`CREATE INDEX "IDX_5f595612fc5b8b717e08b5e487" ON "thread_users_user" ("userId") `);
await queryRunner.query(`CREATE INDEX "IDX_1cb65947909789a0101566ceab" ON "thread_users_user" ("threadId") `);
await queryRunner.query(`ALTER TABLE "thread_users_user" ADD CONSTRAINT "FK_5f595612fc5b8b717e08b5e4871" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE NO ACTION`);
await queryRunner.query(`ALTER TABLE "thread_users_user" ADD CONSTRAINT "FK_1cb65947909789a0101566ceab2" FOREIGN KEY ("threadId") REFERENCES "thread"("id") ON DELETE CASCADE ON UPDATE NO ACTION`);
}
}
<file_sep>/src/models/questions_display.ts
import { PartialType } from "@nestjs/mapped-types";
import { CreateQuestionDto } from "../question/dto/create-question.dto";
import { IsInt, IsNotEmpty, IsString } from "class-validator";
import { Key } from '../interfaces/interface.KeysByQuestion';
import {Keyword} from "../keywords/entities/keyword.entity";
class Question extends PartialType(CreateQuestionDto) {
@IsInt()
readonly id: number;
}
export class QuestionList {
QList: Question[];
KList: Keyword[];
}
<file_sep>/src/thread-users-user/dto/update-thread-users-user.dto.ts
import { PartialType } from '@nestjs/mapped-types';
import { CreateThreadUsersUserDto } from './create-thread-users-user.dto';
export class UpdateThreadUsersUserDto extends PartialType(CreateThreadUsersUserDto) {}
<file_sep>/src/models/question-form.ts
import { IsNotEmpty, IsString } from 'class-validator';
export class QuestionFormDto {
@IsNotEmpty()
@IsString()
title: string;
@IsNotEmpty()
@IsString()
body: string;
@IsNotEmpty()
@IsString()
keywords: string[];
}
<file_sep>/src/main.ts
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { NestExpressApplication } from '@nestjs/platform-express';
import path, { join } from 'path';
import * as exphbs from 'express-handlebars';
import * as cookieParser from 'cookie-parser';
import * as express from 'express';
import moment from 'moment';
async function bootstrap() {
const app = await NestFactory.create<NestExpressApplication>(AppModule);
app.use(express.static(join(__dirname, '..', 'public/assets')));
app.use(express.static(join(__dirname, '..', 'public/assets/bootstrap')));
app.setBaseViewsDir(join(__dirname, '..', 'views'));
app.setViewEngine('hbs');
app.use(cookieParser());
app.engine(
'.hbs',
exphbs({
extname: '.hbs',
defaultLayout: 'main',
partialsDir: join(__dirname, '..', 'views/partials'),
helpers: {
json: function (value) {
const data = JSON.stringify(value);
return JSON.stringify(JSON.parse(data.replace(/"/g, '"')));
},
formatdate: function (datetime) {
return datetime.toString().slice(0, 25);
},
count: function (list) {
return list.length;
},
voteCalc: function (up, down): number {
return up - down;
},
},
}),
);
await app.listen(process.env.PORT || 3000);
console.log(`Application is running on: ${await app.getUrl()}`);
}
bootstrap();
<file_sep>/ormconfig.ts
import { ConnectionOptions } from 'typeorm';
const connectionOptions: ConnectionOptions = {
type: 'postgres',
host: 'ec2-54-220-195-236.eu-west-1.compute.amazonaws.com',
port: 5432,
username: 'vtzrffjbqxcrmn',
password: '<PASSWORD>',
database: 'd9hn101fd53u27',
entities: ['dist/**/*.entity{.ts,.js}'],
migrations: ['dist/migration/*{.ts,.js}'],
cli: {
migrationsDir: 'migration',
},
logging: true,
synchronize: false,
};
// const connectionOptions: ConnectionOptions = {
// type: 'postgres',
// host: 'localhost',
// port: 5432,
// username: 'postgres',
// password: '<PASSWORD>',
// database: 'ntua',
// entities: ['dist/**/*.entity{.ts,.js}'],
// migrations: ['dist/migration/*{.ts,.js}'],
// cli: {
// migrationsDir: 'migration',
// },
// logging: true,
// synchronize: false,
// };
export = connectionOptions;
<file_sep>/src/thread-users-user/thread-users-user.module.ts
import { Module } from '@nestjs/common';
import { ThreadUsersUserService } from './thread-users-user.service';
import { ThreadUsersUserController } from './thread-users-user.controller';
@Module({
controllers: [ThreadUsersUserController],
providers: [ThreadUsersUserService],
exports: [ThreadUsersUserService],
})
export class ThreadUsersUserModule {}
<file_sep>/src/pipes/pipes.module.ts
import { Module } from '@nestjs/common';
@Module({})
export class PipesModule {}
<file_sep>/src/models/questionByDay.ts
import { User } from '../user/entities/user.entity';
import { Question } from '../question/entities/question.entity';
import { Answer } from '../answer/entities/answer.entity';
export class QuestionByDayModel {
relatedthreads: number;
datepost: Date;
}
export class ProfileModel {
user: User;
contr: QuestionByDayModel[];
}
<file_sep>/src/question/entities/question.entity.ts
import {
Entity,
PrimaryGeneratedColumn,
Column,
CreateDateColumn,
UpdateDateColumn,
OneToOne,
JoinColumn,
} from 'typeorm';
import { Thread } from '../../thread/entities/thread.entity';
@Entity()
export class Question {
@PrimaryGeneratedColumn()
id: number;
@Column()
body: string;
@Column()
title: string;
@CreateDateColumn()
dateCreated: Date;
@UpdateDateColumn()
dateUpdated: Date;
@Column({
type: 'int',
default: '0',
})
totalThumbsUp: number;
@Column({
type: 'int',
default: '0',
})
totalThumbsDown: number;
@OneToOne(() => Thread, (thread) => thread.question)
thread: Thread;
}
<file_sep>/src/question/question.module.ts
import { Module } from '@nestjs/common';
import { QuestionService } from './question.service';
import { QuestionController } from './question.controller';
import { ThreadUsersUserModule } from '../thread-users-user/thread-users-user.module';
import { ThreadModule } from '../thread/thread.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { NewQuestionRepo } from './new_question.repo';
@Module({
imports: [
TypeOrmModule.forFeature([NewQuestionRepo]),
ThreadModule,
ThreadUsersUserModule,
],
controllers: [QuestionController],
providers: [QuestionService],
})
export class QuestionModule {}
<file_sep>/public/assets/js/script.js
'use strict';
function composeQuestionDiv(data) {
console.log(data);
let html =
'<div class="row mb-3 justify-content-between">' +
'<div class="col">' +
'<div class="card shadow mb-3">' +
'<div class="card-body">' +
'<div class="row">' +
'<div class="col-4">' +
'<div class="row">' +
'<div class="col-4">' +
'<span>' +
data.totalthumbsdown +
'</span><br>' +
'<span>Thumbs Down</span>' +
'</div>' +
'<div class="col-4">' +
'<span>' +
data.totalthumbsup +
'</span><br>' +
'<span>Thumbs Up</span>' +
'</div>' +
'<div class="col-4">' +
'<span>' +
data.answers +
'</span><br>' +
'<span>Answers</span>' +
'</div>' +
'</div>' +
'</div>' +
'<div class="col-4 d-flex justify-content-center">' +
'<div class="mb-3">' +
'<label class="form-label">' +
'<strong>' +
data.title +
'</strong>' +
'</label>' +
'</div>' +
'</div>' +
'<div class="col-2">' +
'<div class="mb-3">' +
'<label class="form-label">' +
'<strong>' +
new Date(Date.parse(data.datecreated)).toUTCString().slice(0,-3) +
'</strong>' +
'</label>' +
'</div>' +
'</div>' +
'<div class="col-2 float-right">' +
'<form action="../answer/answer-form" method="POST">' +
'<input type="hidden" value="' + data.id + '" name="questionId">' +
'<input type="hidden" value="false" name="fromProfile">' +
'<button class="submitAnswer btn btn-primary btn-sm" type="submit">See Thread</button>' +
'</form>' +
'</div>' +
'</div>' +
'</div>' +
'</div>' +
'</div>' +
'</div>';
return html;
}
<file_sep>/src/thread/thread.module.ts
import { Module } from '@nestjs/common';
import { ThreadService } from './thread.service';
import { ThreadController } from './thread.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Thread } from './entities/thread.entity';
import { Question } from '../question/entities/question.entity';
import { Answer } from '../answer/entities/answer.entity';
import { ThreadUsersUserModule } from '../thread-users-user/thread-users-user.module';
@Module({
imports: [
TypeOrmModule.forFeature([Thread, Question, Answer]),
ThreadUsersUserModule,
],
controllers: [ThreadController],
providers: [ThreadService],
exports: [ThreadService],
})
export class ThreadModule {}
<file_sep>/src/keywords/keywords.controller.ts
import {
Controller,
Get,
Post,
Body,
Patch,
Param,
Delete, Request, HttpCode, UseGuards, Render, UseFilters
} from '@nestjs/common';
import { KeywordsService } from './keywords.service';
import { CreateKeywordDto } from './dto/create-keyword.dto';
import { UpdateKeywordDto } from './dto/update-keyword.dto';
import RequestWithUser from '../auth/requestWithUser.interface';
import { JwtAuthGuard } from '../auth/jwt-auth.guard';
import {JwtService} from "@nestjs/jwt";
@Controller('keywords')
export class KeywordsController {
constructor(private readonly keywordsService: KeywordsService,
private readonly jwtService: JwtService) {}
@Post()
create(@Body() createKeywordDto: CreateKeywordDto) {
return this.keywordsService.create(createKeywordDto);
}
@HttpCode(200)
@UseGuards(JwtAuthGuard)
@Post('keys-by-qid')
async KeysAnswersByQuestion(@Request() req: RequestWithUser) {
const res = await this.keywordsService.KeysAnswersByQuestion(req.body.qid);
return JSON.stringify(res);
}
@HttpCode(200)
@Get('/charts')
@Render('site_stats')
async Stats(@Request() req: RequestWithUser) {
console.log(this.jwtService.decode(req.cookies.Authentication));
const token = this.jwtService.decode(req.cookies.Authentication);
if (token)
return {
logged: true
};
else{
return {
logged: false
};
}
return;
}
@HttpCode(200)
@Post('/charts')
async ShowCharts() {
const res = await this.keywordsService.ShowCharts();
return JSON.stringify(res);
}
@Get()
findAll() {
return this.keywordsService.findAll();
}
@Get(':id')
findOne(@Param('id') id: string) {
return this.keywordsService.findOne(+id);
}
@Patch(':id')
update(@Param('id') id: string, @Body() updateKeywordDto: UpdateKeywordDto) {
return this.keywordsService.update(+id, updateKeywordDto);
}
@Delete(':id')
remove(@Param('id') id: string) {
return this.keywordsService.remove(+id);
}
}
<file_sep>/src/thread/thread.controller.ts
import {
Controller,
Get,
Post,
Body,
Patch,
Param,
Delete,
UseGuards,
Headers
} from '@nestjs/common';
import { ThreadService } from './thread.service';
import { CreateThreadDto } from './dto/create-thread.dto';
import { UpdateThreadDto } from './dto/update-thread.dto';
import { JwtAuthGuard } from '../auth/jwt-auth.guard';
@Controller('thread')
export class ThreadController {
constructor(private readonly threadService: ThreadService) {}
@UseGuards(JwtAuthGuard)
@Post()
async create(@Headers() headers, @Body() createThreadDto: CreateThreadDto) {
const token = headers.authorization.slice(7);
return await this.threadService.create(token, createThreadDto);
}
@Get()
@UseGuards(JwtAuthGuard)
findAll() {
return this.threadService.findAll();
}
@Get(':id')
findOne(@Param('id') id: string) {
return this.threadService.findOne(+id);
}
@Patch(':id')
update(@Param('id') id: string, @Body() updateThreadDto: UpdateThreadDto) {
return this.threadService.update(+id, updateThreadDto);
}
@Delete(':id')
remove(@Param('id') id: string) {
return this.threadService.remove(+id);
}
}
<file_sep>/src/keywords/entities/keyword.entity.ts
import { Column, Entity, ManyToMany, PrimaryGeneratedColumn } from 'typeorm';
import { Thread } from '../../thread/entities/thread.entity';
import { User } from '../../user/entities/user.entity';
@Entity()
export class Keyword {
@PrimaryGeneratedColumn()
id: number;
@Column({ 'unique': true })
name: string;
@ManyToMany(() => Thread, (thread) => thread.keywords)
threads: Thread[];
}
<file_sep>/migration/1625012772937-NewStart.ts
import {MigrationInterface, QueryRunner} from "typeorm";
export class NewStart1625012772937 implements MigrationInterface {
name = 'NewStart1625012772937'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "thread_users_user" DROP CONSTRAINT "FK_1cb65947909789a0101566ceab2"`);
await queryRunner.query(`ALTER TABLE "thread_users_user" DROP CONSTRAINT "FK_5f595612fc5b8b717e08b5e4871"`);
await queryRunner.query(`DROP INDEX "IDX_1cb65947909789a0101566ceab"`);
await queryRunner.query(`DROP INDEX "IDX_5f595612fc5b8b717e08b5e487"`);
await queryRunner.query(`ALTER TABLE "user" ADD CONSTRAINT "UQ_78a916df40e02a9deb1c4b75edb" UNIQUE ("username")`);
await queryRunner.query(`ALTER TABLE "user" ALTER COLUMN "totalKarma" SET DEFAULT '0'`);
await queryRunner.query(`CREATE INDEX "IDX_1cb65947909789a0101566ceab" ON "thread_users_user" ("threadId") `);
await queryRunner.query(`CREATE INDEX "IDX_5f595612fc5b8b717e08b5e487" ON "thread_users_user" ("userId") `);
await queryRunner.query(`ALTER TABLE "thread_users_user" ADD CONSTRAINT "FK_1cb65947909789a0101566ceab2" FOREIGN KEY ("threadId") REFERENCES "thread"("id") ON DELETE CASCADE ON UPDATE NO ACTION`);
await queryRunner.query(`ALTER TABLE "thread_users_user" ADD CONSTRAINT "FK_5f595612fc5b8b717e08b5e4871" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE NO ACTION`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "thread_users_user" DROP CONSTRAINT "FK_5f595612fc5b8b717e08b5e4871"`);
await queryRunner.query(`ALTER TABLE "thread_users_user" DROP CONSTRAINT "FK_1cb65947909789a0101566ceab2"`);
await queryRunner.query(`DROP INDEX "IDX_5f595612fc5b8b717e08b5e487"`);
await queryRunner.query(`DROP INDEX "IDX_1cb65947909789a0101566ceab"`);
await queryRunner.query(`ALTER TABLE "user" ALTER COLUMN "totalKarma" DROP DEFAULT`);
await queryRunner.query(`ALTER TABLE "user" DROP CONSTRAINT "UQ_78a916df40e02a9deb1c4b75edb"`);
await queryRunner.query(`CREATE INDEX "IDX_5f595612fc5b8b717e08b5e487" ON "thread_users_user" ("userId") `);
await queryRunner.query(`CREATE INDEX "IDX_1cb65947909789a0101566ceab" ON "thread_users_user" ("threadId") `);
await queryRunner.query(`ALTER TABLE "thread_users_user" ADD CONSTRAINT "FK_5f595612fc5b8b717e08b5e4871" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE NO ACTION`);
await queryRunner.query(`ALTER TABLE "thread_users_user" ADD CONSTRAINT "FK_1cb65947909789a0101566ceab2" FOREIGN KEY ("threadId") REFERENCES "thread"("id") ON DELETE CASCADE ON UPDATE NO ACTION`);
}
}
<file_sep>/src/app.module.ts
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UserModule } from './user/user.module';
import { AnswerModule } from './answer/answer.module';
import { ThreadModule } from './thread/thread.module';
import { QuestionModule } from './question/question.module';
import { AuthModule } from './auth/auth.module';
import { RolesModule } from './roles/roles.module';
import { KeywordsModule } from './keywords/keywords.module';
import { ThreadUsersUserModule } from './thread-users-user/thread-users-user.module';
import { ModelsModule } from './models/models.module';
import * as connectionOptions from '../ormconfig';
import { join } from 'path';
import { ServeStaticModule } from '@nestjs/serve-static/dist/serve-static.module';
import { PipesModule } from './pipes/pipes.module';
import {JwtModule, JwtService} from "@nestjs/jwt";
import {JwtStrategy} from "./auth/jwt.strategy";
import {jwtConstants} from "./auth/constants";
@Module({
imports: [
TypeOrmModule.forRoot(connectionOptions),
UserModule,
AnswerModule,
ThreadModule,
QuestionModule,
AuthModule,
RolesModule,
KeywordsModule,
ThreadUsersUserModule,
ModelsModule,
PipesModule,
JwtModule.register({
secret: jwtConstants.secret,
signOptions: { expiresIn: '1h' },
}),
],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {}
<file_sep>/src/models/submitAnswerModel.ts
import { SubmitAnswer } from '../interfaces/submitAnswer';
import { IsInt, IsNotEmpty, IsString } from 'class-validator';
export class SubmitAnswerModel implements SubmitAnswer {
constructor(body: string, qid: number, userId: number) {
this.body = body;
this.qid = qid;
this.userId = userId;
}
@IsNotEmpty()
@IsString()
body: string;
@IsInt()
qid: number;
@IsInt()
userId: number;
}
<file_sep>/src/thread-users-user/thread-users-user.service.ts
import { Injectable } from '@nestjs/common';
import { CreateThreadUsersUserDto } from './dto/create-thread-users-user.dto';
import { UpdateThreadUsersUserDto } from './dto/update-thread-users-user.dto';
import { EntityManager } from "typeorm";
import { InjectEntityManager } from "@nestjs/typeorm";
import { ThreadUsersUser } from "./entities/thread-users-user.entity";
@Injectable()
export class ThreadUsersUserService {
constructor(@InjectEntityManager() private manager: EntityManager) {}
async create(createThreadUsersUserDto: CreateThreadUsersUserDto) {
console.log("iam here");
const threadUsers = await this.manager.create(
ThreadUsersUser,
createThreadUsersUserDto,
);
return this.manager.save(threadUsers);
}
findAll() {
return `This action returns all threadUsersUser`;
}
findOne(id: number) {
return `This action returns a #${id} threadUsersUser`;
}
update(id: number, updateThreadUsersUserDto: UpdateThreadUsersUserDto) {
return `This action updates a #${id} threadUsersUser`;
}
remove(id: number) {
return `This action removes a #${id} threadUsersUser`;
}
}
<file_sep>/src/pipes/pipe-keywords_array.ts
import {
PipeTransform,
Injectable,
ArgumentMetadata,
BadRequestException, Body
} from "@nestjs/common";
import { isEmpty } from '@nestjs/common/utils/shared.utils';
import { QuestionFormDto } from "../models/question-form";
@Injectable()
export class KeyWordsArrayPipe
implements PipeTransform<QuestionFormDto, QuestionFormDto>
{
transform(
value: QuestionFormDto,
metadata: ArgumentMetadata,
): QuestionFormDto {
const values = value.keywords.toString().split(', ');
if (isEmpty(values)) {
throw new BadRequestException('Keywords Array is Empty');
}
value.keywords = values;
return value;
}
}
<file_sep>/src/keywords/keywords.service.ts
import {
HttpException,
HttpStatus,
Injectable,
NotFoundException,
} from '@nestjs/common';
import { InjectEntityManager, InjectRepository } from '@nestjs/typeorm';
import { CreateKeywordDto } from './dto/create-keyword.dto';
import { UpdateKeywordDto } from './dto/update-keyword.dto';
import { EntityManager } from 'typeorm';
import { Keyword } from './entities/keyword.entity';
import { PostgresErrorCode } from '../database/postgresErrorCodes.enum';
import { AnswerFormRepo } from './keyword.repository';
import { KeysAnswersResponse } from '../models/key.answers.ByQuestion';
@Injectable()
export class KeywordsService {
constructor(
@InjectEntityManager() private manager: EntityManager,
@InjectRepository(AnswerFormRepo) private readonly repo: AnswerFormRepo,
) {}
async create(createKeywordDto: CreateKeywordDto) {
try {
const keyword = await this.manager.create(Keyword, createKeywordDto);
return this.manager.save(keyword);
} catch (error) {
if (error?.code === PostgresErrorCode.UniqueViolation) {
throw new HttpException(
'KeyWord with that name already exists',
HttpStatus.BAD_REQUEST,
);
}
}
}
async findAll(): Promise<Keyword[]> {
return this.manager.find(Keyword);
}
async ShowCharts() {
return await this.repo.ShowCharts();
}
async KeysAnswersByQuestion(qid: number) {
const res = new KeysAnswersResponse();
res.KList = await this.repo.GetKeywordsList(qid);
res.AList = await this.repo.GetPrevAnswersList(qid);
return res;
}
async findOne(id: number): Promise<Keyword> {
const keyword = await this.manager.findOne(Keyword, id);
if (!keyword) throw new NotFoundException(`Keyword ${id} not found.`);
return keyword;
}
async update(id: number, updateKeywordDto: UpdateKeywordDto) {
return this.manager.transaction(async (manager) => {
const keyword = await this.manager.findOne(Keyword, id);
if (!keyword) throw new NotFoundException(`Keyword ${id} not found.`);
manager.merge(Keyword, keyword, updateKeywordDto);
return manager.save(keyword);
});
return `This action updates a #${id} keyword`;
}
async remove(id: number) {
return this.manager.transaction(async (manager) => {
const keyword = await this.manager.findOne(Keyword, id);
if (!keyword) throw new NotFoundException(`Keyword ${id} not found.`);
await manager.delete(Keyword, id);
});
}
}
| 1ed9acd29750fb385606621ee8229233a2eff998 | [
"JavaScript",
"TypeScript"
] | 56 | TypeScript | mpektkd/Q2A-mvc-saas-ntua | 7510472db5d459ecbfc22268d3b0427c6ad122fe | cb6e46ebe350f8927a0fbb0eb8075c0d87fd7230 |
refs/heads/master | <file_sep>#!/bin/bash
#checks md5s for all fastq files in a directory
for i in *.fastq.gz
do
compare=`cat ${i}.md5`
compare=${compare:0:32}
curMD5=`md5 $i`
if echo $curMD5 | grep -q $compare
then echo ${i}" is valid"
else echo ${i}" is NOT valid"
fi
done
<file_sep># summarization portion of existing 190131 DE analysis pipeline
require(Rsubread)
params = commandArgs(trailingOnly = T) #grabs parameters from bash call
setwd(params[1]) #root directory of dataset
stranding = as.numeric(params[2])
threads = as.numeric(params[3])
gtfPath = params[4]
minFrag = as.numeric(params[5])
includeMM = as.numeric(params[6])
outPrefix = params[7]
isPaired = params[8]
#perform summarization with given parameters
files = list.files(path = "./alignment", pattern = "Aligned\\.out\\.sam$", full.names = T)
counts = Rsubread::featureCounts(files = files, annot.ext = gtfPath, minFragLength = minFrag,
nthreads = threads, isGTFAnnotationFile = T, countMultiMappingReads = includeMM,
isPairedEnd = isPaired, requireBothEndsMapped = T)
#output processed counts
outName = paste0(getwd(), "/counts/", outPrefix, "_subread_counts.rds")
saveRDS(counts, outName)<file_sep>#!/bin/bash
# Standard RNAseq data processing pipeline as of 190131
# fastqc --> trim_galore --> multiQC --> STAR alignment --> featureCounts
# parameters:
# param 1: root directory
# should contain raw_data subdirectory with gzipped fastq files
# param 2: stranding
# 0 = unstranded or paired, 1 = first-strand, 2 = second-strand
# param 3: number of processors
# param 4: quality score cutoff for trimming
# param 5: directory of STAR-indexed genome to align to
# param 6: GTF file for read assignment
# param 7: minimum fragment length for featureCounts
# param 8: count multi-mapping reads (boolean integer)
# param 9: prefix to give output file (study name)
cd "$1" #set working directory
wd="$1"
STRANDNG=$2
THREADS=$3
QCUTOFF=$4
GENOME="$5"
GTF="$6"
MINFRAG=$7
COUNTMM=$8
OUTPUTPREFIX="$9"
# ensure all parameters have been given
# note: $# is the number of arguments passed to the script
if [ $# -ne 9 ]
then
echo "Error: incorrect number of arguments" > logfile.log
exit 1
fi
#first determine if the files are paired
cd raw_data
isPaired=0
pairedFiles=`find . -type f -name "*_2.fastq.gz"` #if there are paired files, they will have this format
if [ ${#pairedFiles} -gt 0 ]
then
isPaired=1
echo 'files are in paired-end format'
else
echo 'files are in single-end format'
fi
# initial QC
cd "$wd"
mkdir -p fastqc
mkdir -p ./fastqc/before_trim
mkdir -p ./fastqc/after_trim
fastqc -t $THREADS -o ./fastqc/before_trim ./raw_data/*.fastq.gz
multiqc ./fastqc/before_trim/* -o ./fastqc/before_trim/
# trimming and final QC (using GNU parallel)
mkdir -p trimmed
if [ $isPaired -eq 0 ]
then
#-q prevents removal of quotes
parallel -q -j $THREADS trim_galore \
--quality $QCUTOFF --phred33 -o ./trimmed \
--fastqc_args "--outdir ./fastqc/after_trim" \
::: ./raw_data/*.fastq.gz
multiqc ./fastqc/after_trim/* -o ./fastqc/after_trim/
else
#-q prevents removal of quotes
#--xapply only runs pairs, as opposed to every combination of outputs
parallel -q --xapply -j $THREADS trim_galore --paired \
--quality $QCUTOFF --phred33 -o ./trimmed \
--fastqc_args "--outdir ./fastqc/after_trim" \
::: ./raw_data/*_1.fastq.gz ::: ./raw_data/*_2.fastq.gz
multiqc ./fastqc/after_trim/* -o ./fastqc/after_trim/
fi
# alignment
mkdir -p alignment
if [ $isPaired -eq 0 ]
then
for file in ./trimmed/*trimmed.fq.gz
do
prefix=$(basename "$file")
prefix="./alignment/""${prefix%_trimmed.fq.gz}"
STAR --runMode alignReads --genomeDir $GENOME --runThreadN $THREADS \
--readFilesCommand 'gunzip -c' --readFilesIn $file \
--outFileNamePrefix $prefix
done
else
leftFiles=./trimmed/*_1_val_1.fq.gz
for file in $leftFiles
do
outPrefix=$(basename "$file")
inPrefix="${outPrefix%_1_val_1.fq.gz}"
outPrefix="./alignment/""$inPrefix"
STAR --runMode alignReads --genomeDir $GENOME --runThreadN $THREADS \
--readFilesCommand 'gunzip -c' \
--readFilesIn ./trimmed/"$inPrefix"_1_val_1.fq.gz ./trimmed/"$inPrefix"_2_val_2.fq.gz \
--outFileNamePrefix $outPrefix
done
fi
# read assigment / summarization
mkdir -p counts
Rscript ~/Documents/GitHub/morimotoLab/190131_Rsubread_pipeline.r \
"$wd" $STRANDING $THREADS "$GTF" $MINFRAG $COUNTMM "$OUTPUTPREFIX" \
$isPaired
# prepare for DE (allow user to do by hand for now)
mkdir -p DE_analysis
<file_sep># Exactly like the homologene package, but uses most recent NCBI homologene dataset
tempLoc = tempfile()
raw = download.file("ftp://ftp.ncbi.nih.gov/pub/HomoloGene/current/homologene.data", tempLoc)
hg = read.delim(tempLoc, header = F)
colnames(hg) = c("HID", "taxid", "geneID", "symbol", "proteinID", "proteinAccession")
hg$symbol = as.character(hg$symbol) #remove factorization
hgConvert = function(geneSymbols, inTax, outTax) #analogous to hgConvert()
{
df_in = subset(hg, taxid == inTax)
df_out = subset(hg, taxid == outTax)
outData = data.frame(matrix(NA, nrow = length(geneSymbols), ncol = 4))
colnames(outData) = c(inTax, outTax, paste0(inTax, "_ID"), paste0(outTax, "_ID"))
for(i in 1:length(geneSymbols))
{
outData[i, 1] = geneSymbols[i] #inTax gene symbol
inSet = subset(df_in, symbol == geneSymbols[i])
curHID = inSet$HID #same between both taxa
inGeneID = inSet$geneID
outData[i, 3] = ifelse(length(inSet$geneID) == 1, inGeneID, NA) #inTax gene ID, make sure it's in the dataset first
outSet = subset(df_out, HID == curHID)
outSymbol = outSet$symbol[1] #hoping that this normally just returns one value
outData[i, 2] = ifelse(length(outSymbol) == 1, outSymbol, NA) #outTax gene symbol
outGeneID = outSet$geneID[1]
outData[i, 4] = ifelse(length(outGeneID) == 1, outGeneID, NA) #outTax geneID
}
return(na.omit(outData))
}<file_sep>#!/bin/bash
#Downloads a set of SRA files listed in a return-separated text file
#parameter 1: filepath of the text file
#parameter 2: number of threads to use
#parameter 3: scratch directory (created on the fly)
#parameter 4: output directory (fastq files will be overwritten!)
mkdir -p "$3"
#note: automatically splits paired reads
ids=$(<"$1") #put SRA/ERA IDs into single string to iterate through
for i in $ids
do
fasterq-dump "$i" -e $2 -t "$3" -O "$4" -f
done
#gzip all files
cd $4
parallel -j $2 gzip ::: *.fastq #run in parallel
#now remove tmp files
rm -r "$3"
| b64bfb65c5d50f0d55dba7a38e1fcb27b2bdb77b | [
"R",
"Shell"
] | 5 | Shell | morimotolab/sequence_analysis | 96e4efc00807897bcf14329a7ae5dcb5478dbfd3 | 6996c921b345f06b231abd3d54af161944681c16 |
refs/heads/main | <file_sep># Test_Backend
<file_sep><?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
class FilmController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
//
}
public function pagination(Request $request){
$this->validate($request, [
'keywords'=>'required',
'page'=>'required'
]);
$key = $request->keywords;
$page = $request->page;
try{
$curlConnection = curl_init();
curl_setopt($curlConnection, CURLOPT_URL, 'http://www.omdbapi.com/?apikey=faf7e5bb&s='.$key.'&type=movie&page='.$page);
curl_setopt($curlConnection, CURLOPT_RETURNTRANSFER, true);
$movieList = curl_exec($curlConnection);
curl_close($curlConnection);
$movieList = json_decode($movieList);
usort($movieList->Search, function ($a, $b) {
return $a->Year > $b->Year ? -1 : 1;
});
return response()->json([
'status'=>200,
'movie'=>$movieList->Search
]);
}catch(\Throwable $th){
return response()->json([
'status'=>201,
'message'=>'Fail'
]);
}
}
public function searching(Request $request){
$this->validate($request, [
'keywords'=>'required'
]);
$key = $request->keywords;
try {
$curlConnection = curl_init();
curl_setopt($curlConnection, CURLOPT_URL, 'http://www.omdbapi.com/?apikey=faf7e5bb&s=' . $key . '&type=movie');
curl_setopt($curlConnection, CURLOPT_RETURNTRANSFER, true);
$movieList = curl_exec($curlConnection);
curl_close($curlConnection);
$movieList = json_decode($movieList);
usort($movieList->Search, function($a, $b){
return $a->Year > $b->Year ? -1:1;
});
return response()->json([
'status' => 200,
'movie' => $movieList->Search
]);
} catch (\Throwable $th) {
return response()->json([
'status' => 201,
'message' => 'Fail'
]);
}
}
}
| 0bc76fffecb8c1b690567cb54c37d4e849d67ee2 | [
"Markdown",
"PHP"
] | 2 | Markdown | Sality32/Test_Backend | 197c1c13ec9c778b2176a53f1fa2e2a66c08fe58 | 72e137f5e9bf0142bb3f4b51f8649ea49cb8bae6 |
refs/heads/main | <file_sep># PREVISAO DO JOGO DO BICHO
Projeto desenvolvido em Node.js com uma inteligencia artificial, visando calcular as probabilidades de resultados
do jogo do bicho da loteria federal.
<file_sep>'use strict'
const AnimalDatas = use('App/Models/AnimalDatas');
class AnimalDatasRepository {
async findAnimalGroup(number) {
return await AnimalDatas.query()
.where('n1', number)
.orWhere('n2', number)
.orWhere('n3', number)
.orWhere('n4', number)
.first();
}
}
module.exports = AnimalDatasRepository;<file_sep>'use strict'
/** @type {typeof import('@adonisjs/framework/src/Route/Manager')} */
const Route = use('Route')
Route.get('/esprito-santo-onze', 'AnimalGameController.getElevenResult');
//AdminPainelRoute
Route.post('/login')
<file_sep>'use strict'
const TensorFlow = require('@tensorflow/tfjs');
const AnimalGameRepository = use('App/Repositories/AnimalGameRepository');
const AnimalDatasRepository = use('App/Repositories/AnimalDatasRepository');
class AnimalGameController {
async getElevenResult({ response }) {
try {
let animalGameRepository = new AnimalGameRepository();
let resultsByDayAsc = await animalGameRepository.getResultOrderByDayAsc()
resultsByDayAsc = resultsByDayAsc.toJSON();
let predict = await this.operationTensorFlow(resultsByDayAsc);
let predictions = await this.findGroup(predict)
let nextDayResult = {
predict: predict,
predictions: predictions
}
console.log('Regressão linear com previsão')
console.log('resultado: ' + predict)
console.log('grupo: ' + predictions.name)
console.log(predictions.n1 + ' ' + predictions.n2 + ' ' + predictions.n3 + ' ' + predictions.n4)
return response.status(200).send(nextDayResult)
} catch (e) {
console.log(e);
return response.status(500).send(e)
}
}
async operationTensorFlow(datas) {
let x = [];
let y = [];
let qtdLinhas = 0;
for (let i = 0; i < datas.length; i++) {
console.log(datas[i])
let celulas1 = [];
if (qtdLinhas == (datas.length - 1)) celulas1 = [9552];
else celulas1 = datas[i + 1]?.resultado;
const celulas2 = datas[i]?.resultado;
x.push([celulas1])
y.push([celulas2])
qtdLinhas++;
}
const model = TensorFlow.sequential();
const inputLayer = TensorFlow.layers.dense({ units: 1, inputShape: 1 })
model.add(inputLayer);
const learningRate = 0.000000001;
const optimizer = TensorFlow.train.sgd(learningRate);
model.compile({ loss: 'meanSquaredError', optimizer: optimizer });
const X = TensorFlow.tensor(x, [qtdLinhas, 1]);
const Y = TensorFlow.tensor(y);
const lastResult = [[6157]]
const lastResultTensor = TensorFlow.tensor(lastResult, [1, 1]);
await model.fit(X, Y, { epochs: 200 })
let response = model.predict(lastResultTensor).dataSync();
return Number(response[0]).toFixed(0);
}
async findGroup(thousand) {
let ten = thousand.toString().substr(2);
let animalDatasRepository = new AnimalDatasRepository();
let group = await animalDatasRepository.findAnimalGroup(ten);
return group;
}
}
module.exports = AnimalGameController
<file_sep>'use strict'
const EspiritoSanto = use('App/Models/EspiritoSanto');
/*
|--------------------------------------------------------------------------
| EspiritoSantoSeeder
|--------------------------------------------------------------------------
|
| Make use of the Factory instance to seed database with dummy data or
| make use of Lucid models directly.
|
*/
/** @type {import('@adonisjs/lucid/src/Factory')} */
const Factory = use('Factory')
class EspiritoSantoSeeder {
async run() {
let resultsOfEspiritoSanto = [
{
award: '1',
result: '0593',
data: '23/02/2021'
},
{
award: '1',
result: '3472',
data: '22/02/2021'
},
{
award: '1',
result: '4151',
data: '21/02/2021'
},
{
award: '1',
result: '3220',
data: '20/02/2021'
},
{
award: '1',
result: '7705',
data: '19/02/2021'
},
{
award: '1',
result: '5842',
data: '18/02/2021'
},
{
award: '1',
result: '3332',
data: '17/02/2021'
},
{
award: '1',
result: '3817',
data: '16/02/2021'
},
{
award: '1',
result: '8251',
data: '15/02/2021'
},
{
award: '1',
result: '4898',
data: '14/02/2021'
},
{
award: '1',
result: '2067',
data: '13/02/2021'
},
{
award: '1',
result: '5002',
data: '12/02/2021'
},
{
award: '1',
result: '0824',
data: '11/02/2021'
},
{
award: '1',
result: '9552',
data: '10/02/2021'
},
]
for (let i = 0; i < resultsOfEspiritoSanto.length; i++) {
await this.createResult(resultsOfEspiritoSanto[i]);
}
}
async createResult(result) {
await EspiritoSanto.create({
premio: result.award,
resultado: result.result,
data: result.data
})
return;
}
}
module.exports = EspiritoSantoSeeder
<file_sep>'use strict'
const Config = use('Config')
class TheCryptService {
}
module.exports = TheCryptService; | 3903d390f9a7b00e5592c7e498fef2b32f6136d6 | [
"Markdown",
"JavaScript"
] | 6 | Markdown | rhaymisonbetini/previsao-resultado-jogo-do-bicho | 0d67aafe38f84bdf057ef0d861554b99e537c7da | f66ba515e39f190fdbc992a285f0ee220387522a |
refs/heads/master | <repo_name>d0p3t/GTAMenu<file_sep>/GTAMenuExample/MenuExample.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CitizenFX.Core;
using CitizenFX.Core.UI;
using GTAMenu;
namespace GTAMenuExample
{
public class MenuExample : BaseScript
{
private NativeMenuManager _nativeMenuManager;
private NativeMenu mainMenu;
private bool ketchup = false;
private string dish = "Banana";
private void AddMenuKetchup(NativeMenu menu)
{
var ketchupItem = new NativeMenuCheckboxItem("Add ketchup?", "Do you wish to add ketchup?", ketchup);
menu.MenuItems.Add(ketchupItem);
ketchupItem.Check += (sender, e) =>
{
if (e.MenuItem == ketchupItem)
{
ketchup = e.Checked;
Screen.ShowNotification("~r~Ketchup status: ~b~" + ketchup);
}
};
}
private void AddMenuFoods(NativeMenu menu)
{
object[] foods =
{
"Banana",
"Apple",
"Pizza",
"Quartilicious"
};
var foodsItem = new NativeMenuListItem("Food", "Description", foods, 0);
menu.MenuItems.Add(foodsItem);
foodsItem.ChangedIndex += (sender, e) =>
{
dish = foodsItem.CurrentValue;
Screen.ShowNotification("Preparing ~b~" + dish + "~w~...");
};
}
private void AddMenuCook(NativeMenu menu)
{
var newItem = new NativeMenuItemBase("Cook!", "Cook the dish with the appropiate ingredients and ketchup.");
menu.MenuItems.Add(newItem);
menu.ItemSelected += (sender, e) =>
{
if (e.MenuItem == newItem)
{
var output = ketchup ? "You have ordered ~b~{0}~w~ ~r~with~w~ ketchup." : "You have ordered ~b~{0}~w~ ~r~without~w~ ketchup.";
Screen.ShowSubtitle(String.Format(output, dish));
}
};
}
private void AddMenuAnotherMenu(NativeMenu menu)
{
var subMenu = _nativeMenuManager.AddSubMenu("Another Menu", "Description of Another Menu", "Another Menu", "Description of Another Menu", menu);
for (int i = 0; i < 20; i++)
subMenu.MenuItems.Add(new NativeMenuItemBase("PageFiller", "Sample description that takes more than one line. Moreso, it takes way more than two lines since it's so long. Wow, check out this length!"));
}
public MenuExample()
{
_nativeMenuManager = new NativeMenuManager();
mainMenu = new NativeMenu("GTAMenu", "~b~GTAMENU SHOWCASE", MenuBannerType.InteractionMenu);
_nativeMenuManager.AddMenu(mainMenu);
AddMenuKetchup(mainMenu);
AddMenuFoods(mainMenu);
AddMenuCook(mainMenu);
AddMenuAnotherMenu(mainMenu);
Tick += OnTick;
}
private async Task OnTick()
{
try
{
_nativeMenuManager.ProcessMenus();
if (Game.IsControlJustReleased(0, Control.SelectCharacterMichael) && !_nativeMenuManager.IsAnyMenuOpen())
{
mainMenu.Visible = !mainMenu.Visible;
}
}
catch (Exception e)
{
Debug.WriteLine($"{e.Message} : Exception thrown on MenuExample:OnTick()");
}
await Task.FromResult(0);
}
}
}
| c83a410270550a29c9f094fc7d6174ae350e1df8 | [
"C#"
] | 1 | C# | d0p3t/GTAMenu | 0bd2d8f108fdcbbe8c277c07027450e29238ca60 | fc72bd45d66307b672d9a471ff2048edca43be16 |
refs/heads/master | <repo_name>mnurik/dashboard-assignment<file_sep>/helper.js
module.exports = (db) => ({
getFields: () => db.columnInfo().then(fields => Object.keys(fields)),
groupBy: (array, keyFn) => {
let map = new Map();
array.forEach(item => {
let key = typeof keyFn === 'function' ? keyFn(item) : item[keyFn];
if (map.has(key)) map.get(key).push(item);
else map.set(key, [item]);
});
return map;
}
})<file_sep>/index.js
const http = require('http');
const express = require("express");
const app = express();
app.use(express.static("public"));
const knex = require('knex')({
client: 'sqlite3',
useNullAsDefault: true,
connection: {
filename: "./assignment.sqlite"
}
})
const helper = require('./helper')(knex('assignment'));
app.get('/app', (req, res) => {
knex('assignment').select('appID').groupBy('appID')
.then(values => res.json(values))
.catch(err => res.status(500).send(err))
})
app.get('/app/:appID', (req, res) => {
knex('assignment').select().where({ appID: req.params.appID })
.then(values => res.json(values))
.catch(err => res.status(500).send(err))
})
app.get('/app/:appID/:field', (req, res) => {
knex('assignment').select(req.params.field).where({ appID: req.params.appID })
.then(values => res.json(values))
.catch(err => res.status(500).send(err))
})
app.get('/fields', (req, res) => {
helper.getFields()
.then(fields => res.json(fields))
.catch(err => res.status(500).send(err))
})
console.log('App listening on http://localhost:8081')
app.listen(8081)
<file_sep>/public/utilities/graphicVisualization.mjs
export default (fieldName, list) => {
const max = Math.max(...list);
const min = Math.min(...list);
const levels = list.map(quality => {
const height = (quality / (max - min)) * 100;
return `<div title="${quality}" style="height: ${height}px"></div>`
});
return `<div class="graphic">
${levels.join('')}
<span class="graphic__title">${fieldName}</span>
</div>`;
};
<file_sep>/readme.md
# callstats.io Dashboard assignment
## About
The task required no dependencies, so I had to survive somehow without new FE technologies. User has two options to show metrics. I am not master of visualization, please forgive me if visualization is wrong or too simple.
## Installing
Dependencies: Node.js, Yarn/npm.
`yarn install`
## Running
```sh
yarn start
```
or
```sh
npm start
```
Then open http://localhost:8081/ to see your app.
## API routes
All routes use the GET method.
`/app`
Return a list of all appIDs.
`/app/:appID`
Return all data for given `appID`. Number of rows differ between appIDs.
`/app/:appID/:field`
Return all data for given `field` for given `appID`.
`/fields`
Return all table columns.
<file_sep>/public/components/table.mjs
import qualityVisualize from '../utilities/coloredVisalization.mjs';
/*
Table Way
*/
const tableView = async (props) => {
const { appData, fields, listData } = props;
const container = document.getElementById('app');
const qualityVisualizedList = Object.entries(listData).reduce((acc, [key, value]) => {
acc[key] = qualityVisualize(value); // With help of Closure create object of functions
return acc;
}, {});
const trs = appData.map(values => {
const tds = fields.map(field => {
const value = values[field];
if (listData[field] && value) return qualityVisualizedList[field](value)
else return `<td>${value}</td>`;
});
return `<tr>${tds.join('')}</tr>`
})
const options = fields.map(field => `<option value="${field}">${field}</option>`);
const ths = fields.map((field, index) => `<th>
<select value="${field}" data-index="${index}">
${options.join('').replace(`<option value="${field}">${field}</option>`, `<option value="${field}" selected>${field}</option>`)}
</select>
</th>`);
const thead = `<thead>${ths.join('')}</thead>`;
const tbody = `<tbody>${trs.join('')}</tbody>`;
const table = `
<table>
${thead}
${tbody}
</table>
`;
container.innerHTML = table;
// Table headers are changeable.
document.querySelectorAll('select').forEach(select => {
select.addEventListener('change', e => {
const index = +e.target.dataset.index;
const value = e.target.value;
const newFields = [...fields.slice(0, index), value, ...fields.slice(index + 1)];
tableView({ ...props, fields: newFields });
})
})
};
export default tableView;
<file_sep>/public/utilities/coloredVisalization.mjs
export default (list) => {
const max = Math.max(...list);
const min = Math.min(...list);
return value => {
const perc = (value / (max - min)) * 100;
const isRed = perc < 50;
const color = isRed ? `rgb(${Math.round((perc * 255) / 49)},0,0)` : `rgb(0,${Math.round((perc * 255) / 100)}, 0)`
return `<td style="background-color:${color};color:white;">${value}</td>`;
}
};
<file_sep>/public/app.mjs
"use strict";
import visualizationOptions from './components/visualizationOptions.mjs';
import getListData from './utilities/getListData.mjs';
// IIFE
(async () => {
const appIdSelector = document.getElementById("appIdsSelect");
const resAppIds = await fetch('/app');
const appIds = await resAppIds.json();
const options = appIds.map(({ appID }) => `<option>${appID}</option>`);
appIdSelector.insertAdjacentHTML("beforeend", options.join("")); // Add options to appId dropdown
const fieldsRes = await fetch('/fields');
const fields = await fieldsRes.json();
appIdSelector
.addEventListener('change', async ({ target: { value: appId } }) => {
const appDataRes = await fetch(`/app/${appId}`);
const appData = await appDataRes.json();
const sentQualityDataRes = await fetch(`/app/${appId}/sentQuality`);
const sentQualityData = await sentQualityDataRes.json();
const listData = getListData(appData);
visualizationOptions({ appIdSelector, appData, sentQualityData, fields, listData });
}, false);
})();
| 1871bd01aa06c52dfdfb7c5833761414267db95e | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | mnurik/dashboard-assignment | a81baa9dd8afd8737b076c686afe123f1697c8c2 | 67fe15c5c09ba23bad5ffb988659c996ef2bb7ad |
refs/heads/master | <repo_name>EdgarasZukauskas/EZfestuves<file_sep>/README.md
Unique 8-bit style web to invite friends to the wedding. Using get it recognizes visitor and displays unique text. Tracks every answer and informs web owner about visitor actions. Also sends email with details to the visitor.
<file_sep>/includes/classes/db.class.php
<?php
class db {
private $servername = 'XXXXXX';
private $username = 'XXXXXX';
private $password = '<PASSWORD>';
private $dbName = 'XXXXXX';
protected $textsTable = 'texts';
protected $usersTable = 'users';
protected $visitsTable = 'visits';
protected function connect() {
$connect = new mysqli($this->servername, $this->username, $this->password, $this->dbName);
return $connect;
}
}
?>
<file_sep>/includes/pages/invitation.page.php
<!DOCTYPE HTML>
<html>
<head>
<title>Labas <?php echo $data['kreipinys'];?>!</title>
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
<link href="https://unpkg.com/nes.css/css/nes.css" rel="stylesheet" />
<link rel='icon' href='includes/images/hearts.png' type='image/x-icon'/ >
<link rel="stylesheet" type="text/css" href="includes/styles/style.style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php echo '<script>
var session = "' . $session . '",
pass = "' . $data['pass'] . '",
emailAddress = "' . $data['email'] . '",
visitorName = "' . $data['name'] . '"
</script>'; ?>
</head>
<body>
<div class="nes-container with-title is-centered">
<div class="title">Labas <?php echo $data['kreipinys'];?>!</div>
<?php
$result = $this -> connect() -> query("SELECT * FROM " . $this->textsTable . " WHERE pass='" . $data['pass'] . "'" );
$q = mysqli_num_rows($result);
$n = 1;
for ( $i=0 ; $i < $q ; $i++ ) {
echo '
<div class="message nes-balloon from-left"></div>
<div class="answer nes-balloon from-right">
<div class="options">
<button type="button" onclick="communicate('. $n .')" class="nes-btn is-success answerY"></button>
<button type="button" onclick="no('. $i .')" class="nes-btn is-error answerN"></button>
</div>
</div>
';
$n++;
}
?>
<div id="footer"></div>
</div>
<?php
$result = $this -> connect() -> query("SELECT * FROM " . $this->textsTable . " WHERE pass='" . $data['pass'] . "'" );
$q = mysqli_num_rows($result);
echo '<script> var messages = { text : {';
for ($i = 0 ; $i < $q ; $i++ ){
$texts= mysqli_fetch_assoc($result);
echo $i.' : "'.$texts['text'].'"';
if ( $i+1 != $q ){ echo ','; }
}
mysqli_data_seek($result,0);
echo '}, answerY : { ';
for ($i = 0 ; $i < $q ; $i++ ){
$texts= mysqli_fetch_assoc($result);
echo $i.' : "'.$texts['yes'].'"';
if ( $i+1 != $q ){ echo ','; }
}
mysqli_data_seek($result,0);
echo '}, answerN : { ';
for ($i = 0 ; $i < $q ; $i++ ){
$texts= mysqli_fetch_assoc($result);
echo $i.' : "'.$texts['no'].'"';
if ( $i+1 != $q ){ echo ','; }
}
echo '} }; </script>';
?>
<script src="includes/scripts/script.script.js"></script>
</body>
</html>
<file_sep>/includes/pages/login.page.php
<!DOCTYPE HTML>
<html>
<head>
<title>Hello!</title>
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
<link href="https://unpkg.com/nes.css/css/nes.css" rel="stylesheet" />
<link rel='icon' href='includes/images/hearts.png' type='image/x-icon'/ >
<link rel="stylesheet" type="text/css" href="includes/styles/style.style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="nes-container with-title is-centered">
<p class="title">Login Error</p>
<p class="loginText">Sorry, you need a special code to see the inivitation.</p>
<p class="loginText">I have a code!</p>
<div class="nes-field">
<form action="index.php" method="get">
<input type="text" name="pass" class="nes-input" placeholder="Special code:" onclick="placeholder=''">
</form>
</div>
<?php if (isset($error)) { if ($error == 1) { echo '<p class="is-error">Wrong code. Sorry.</p>'; } }?>
<p class="loginText">Ask for special code:</p>
<div class="nes-field">
<form action="index.php" method="get">
<input type="text" name="phone" class="nes-input" placeholder="Your phone number:" onclick="placeholder=''">
</form>
</div>
<?php if (isset($error)) { if ($error == 2) { echo '<p class="is-success">Message sent. I will contact you.</p>'; } } ?>
</div>
</body>
</html>
<file_sep>/includes/api/api.api.php
<?php
spl_autoload_register( function($className) {
include_once '../classes/'.$className.'.class.php';
});
$data = json_decode(file_get_contents('php://input'), true);
if (array_key_exists('api', $data)){
switch ($data['api']) {
case 'sendInvitation':
$communicate = new communication;
$communicate -> sendInvitation($data);
break;
case 'sendRequest':
$communicate = new communication;
$communicate -> sendRequest($data);
break;
case 'logVisits':
$communicate = new page;
$communicate -> logVisits($data);
break;
}
}
?>
<file_sep>/includes/classes/page.class.php
<?php
class page extends login {
protected function showLogin(){
include 'includes/pages/login.page.php';
}
protected function showInvitation($data, $session){
include_once 'includes/pages/invitation.page.php';
}
protected function showLoginError($code){
$error = $code;
include_once 'includes/pages/login.page.php';
}
public function logVisits($data){
$data = json_decode(file_get_contents('php://input'), true);
$session = $this -> connect() -> real_escape_string($data["session"]);
$section = $this -> connect() -> real_escape_string($data["section"]);
$section = $section.' skyrius';
$this -> connect() -> query("UPDATE " . $this->visitsTable . " SET `" . $section . "` = '1' WHERE `session` = '" . $session . "'");
}
}
?>
<file_sep>/includes/classes/login.class.php
<?php
class login extends db {
public function signIn($pass) {
$page = new page;
$pass = $this -> connect() -> real_escape_string($pass);
$result = $this -> connect() -> query("SELECT * FROM " . $this->usersTable . " WHERE pass= '" . $pass . "' ");
if( mysqli_num_rows($result) == 1 ) {
$data = mysqli_fetch_assoc($result);
date_default_timezone_set("Europe/Vilnius");
$date = date("Y-m-d H:i:s");
$session = uniqid();
$this -> connect() -> query(" INSERT INTO " . $this->visitsTable . " (`session`, `pass`, `person`, `date`)
VALUES (
'" . $session . "',
'" . $pass . "',
'" . $data['name'] . "',
'" . $date . "'
)");
$page -> showInvitation($data, $session);
}
else {
$page -> showLoginError('1');
}
}
public function register($phone) {
$communicate = new communication;
$communicate -> sendRequest($phone);
$page = new page;
$page -> showLoginError('2');
}
public function enterCode() {
$page = new page;
$page -> showLogin();
}
}
?>
<file_sep>/index.php
<?php
session_start();
spl_autoload_register( function($className) {
include_once 'includes/classes/'.$className.'.class.php';
});
$login = new login;
if(array_key_exists('pass', $_GET)){
$login -> signIn($_GET['pass']);
}
elseif(array_key_exists('phone', $_GET)){
$login -> register($_GET['phone']);
}
else {
$login -> enterCode();
}
?>
<file_sep>/includes/scripts/script.script.js
var loaded = []; // array to fill messages that has been already displayed. Code will check if message is in this array and if yes, wont display it again
var email = 0; // var to check if email has allready been sent. If its value == 1, it wont be sent
// function to call print function, visits counter, display items properly
function communicate (n) {
if (!loaded.includes(n)) {
visits(n);
var i = 0;
var txt = messages.text[n];
setTimeout(function(){
document.getElementsByClassName('message')[n].style.display = "inherit";
}, 500);
setTimeout(function(){
print(i,txt,n);
}, 1000);
loaded.push(n);
}
}
// Printing messages function, also includes scrolling into view, calling email php file.
function print(i,txt,n) {
var q = Object.keys(messages.text).length;
document.getElementById("footer").scrollIntoView();
if (i < txt.length) {
document.getElementsByClassName('message')[n].innerHTML += txt.charAt(i);
i++;
setTimeout(function(){print(i,txt,n);}, 60);
}
if (i == txt.length) {
document.getElementsByClassName('answerY')[n].innerHTML = messages.answerY[n];
document.getElementsByClassName('answerN')[n].innerHTML = messages.answerN[n];
if (messages.answerY[n]!="-"){
setTimeout(function(){
document.getElementsByClassName('answer')[n].style.display = "inherit";
setTimeout(function(){
document.getElementsByClassName('options')[n].style.display = "inherit";
},500);
document.getElementById("footer").scrollIntoView();
}, 500);
}
else {
if (email == 0) {
let postData = {
api: 'sendInvitation',
email: emailAddress,
name: visitorName,
};
fetch('includes/api/api.api.php', {
method: 'POST',
headers: {
'Content-Type': 'application/json;charset=utf-8'
},
body: JSON.stringify(postData)
});
email = 1;
}
}
}
}
// Function to hide no button if visitors presses "no"
function no(n) {
document.getElementsByClassName('answerN')[n].style.display = "none";
}
// function calls visitors logging function on every press of the button;
function visits(section){
let postData = {
api: 'logVisits',
session: session,
section: section
};
fetch('includes/api/api.api.php', {
method: 'POST',
headers: {
'Content-Type': 'application/json;charset=utf-8'
},
body: JSON.stringify(postData)
});
}
// automatic first message call function
(function() {
communicate(0);
})();
<file_sep>/includes/classes/communication.class.php
<?php
class communication extends page {
public function sendInvitation($data){
$headers = "From: Festuves.lt < <EMAIL> >\n" . 'X-Mailer: PHP/' . phpversion() . "X-Priority: 1\n" . "MIME-Version: 1.0\r\n" . "Content-Type: text/html; charset=UTF-8\n";
$subject = "Priminimas nepamiršti pasižymėti";
$text = ' Labas dar kartą!<br><br>
Primenam: Rugpjūčio 31 d.<br><br>
Dar pridedam jog reikia nepamiršti: <br>
- Gero vibe;<br>
- ...<br><br>
Su pagarba<br>
Būsimi Žukauskai';
mail($data['email'],$subject,$text,$headers);
mail('XXXXXX',$data['name'].' invited','Invitation sent to '.$data['name'],$headers);
}
public function sendRequest($phone){
$headers = "From: Festuves.lt < <EMAIL> >\n" . 'X-Mailer: PHP/' . phpversion() . "X-Priority: 1\n" . "MIME-Version: 1.0\r\n" . "Content-Type: text/html; charset=UTF-8\n";
$subject = "Bandoma užsiregistruoti Festuves.lt";
$text = 'Asmuo bandantis užsiregistruoti nurodė telefono numerį: '.$phone;
mail('XXXXXX',$subject,$text,$headers);
}
}
?>
| b654ce992d5b12970a386dc2dd8d52c3083b8599 | [
"Markdown",
"JavaScript",
"PHP"
] | 10 | Markdown | EdgarasZukauskas/EZfestuves | 61b49bc64a21c7e77bb43f572a2d4a4a35582647 | b0fcd0836cb72ccbde22bc5e16b43be96e28a9fa |
refs/heads/master | <file_sep>import React from "react";
import PropTypes from "prop-types";
import "./UnderConstruction.css";
import icon from "./shop.svg";
class UnderConstruction extends React.Component {
constructor(props) {
super(props);
this.state = { inputValue: "" };
this.onChange = this.onChange.bind(this);
this.onFormSubmit = this.onFormSubmit.bind(this);
}
onChange(e) {
this.setState({ inputValue: e.target.value });
}
onFormSubmit(e) {
e.preventDefault();
if (this.state.inputValue) {
this.props.subscribe.onSubmit(this.state.inputValue);
this.setState({ inputValue: "" });
}
}
render() {
const { background, title, description, logo, subscribe, links } = this.props;
return (
<div
className="UnderConstruction"
style={{
color: background.textColor
}}
>
{background.overlay &&
background.overlay.color && (
<div
style={{
opacity: background.overlay.opacity
}}
className="UnderConstruction-overlay"
/>
)}
<div className="UnderConstruction-container">
{logo.src && (
<div className="UnderConstruction-logo-container">
<img className="UnderConstruction-logo" alt={logo.alt} src={logo.src} style={{ ...logo.style }} />
</div>
)}
{title.text && (
<div className="UnderConstruction-title" style={{ ...title.style }}>
{title.text}
</div>
)}
<div className="shop_icon_container">
<img src={icon} className="shop_icon" alt="icon" />
</div>
<div className="UnderConstruction-description" style={{ ...description.style }}>
Mumineenshop<br /> is website where all Mumineen can sell their products online for free. With Raza and Dua Mubarak of his AQA Maula (T.U.S)
</div>
<div className="UnderConstruction-description" style={{ ...description.style }}>
Website will launched soon!
</div>
</div>
{links &&
links.length > 0 && (
<div className="UnderConstruction-social-networks">
{links.map((social, i) => (
<a className="UnderConstruction-social-networks-link" key={i} target="_blank" rel="noopener noreferrer" href={social.url}>
{social.image && <img className="UnderConstruction-social-networks-image" src={social.image} alt={social.text} style={{ ...social.imageStyle }} />}
{social.text && (
<span className="UnderConstruction-social-networks-text" style={{ ...social.textStyle }}>
{social.text}
</span>
)}
</a>
))}
</div>
)}
</div>
);
}
}
UnderConstruction.defaultProps = {
background: {
image: "",
color: "",
textColor: "",
overlay: {},
style: {}
},
logo: {
src: "",
alt: "",
style: {}
},
title: {
text: "",
style: {}
},
description: {
text: "",
style: {}
},
subscribe: {
onSubmit: null,
placeholder: "",
buttonText: "",
inputStyle: {},
buttonStyle: {}
},
links: [
{
url: "",
image: "",
text: "",
imageStyle: {},
textStyle: {}
}
]
};
UnderConstruction.propTypes = {
background: PropTypes.shape({
image: PropTypes.string,
color: PropTypes.string,
textColor: PropTypes.string,
style: PropTypes.object,
overlay: PropTypes.shape({
color: PropTypes.string,
opacity: PropTypes.string
})
}),
logo: PropTypes.shape({
src: PropTypes.string,
alt: PropTypes.string,
style: PropTypes.object
}),
title: PropTypes.shape({
text: PropTypes.string,
style: PropTypes.object
}),
description: PropTypes.shape({
text: PropTypes.string,
style: PropTypes.object
}),
subscribe: PropTypes.shape({
onSubmit: PropTypes.func,
placeholder: PropTypes.string,
buttonText: PropTypes.string,
inputStyle: PropTypes.object,
buttonStyle: PropTypes.object
}),
links: PropTypes.arrayOf(
PropTypes.shape({
url: PropTypes.string,
image: PropTypes.string,
text: PropTypes.string,
imageStyle: PropTypes.object,
textStyle: PropTypes.object
})
)
};
export default UnderConstruction;
| c15b9024ccdc99174d3716d7a6f211038b7055d1 | [
"JavaScript"
] | 1 | JavaScript | beinghussain/shop_uc | c6f9f76f5419c78451be28ca58e20403b74de383 | c3103a3187dba0a7aa036ee21aa75c43be2b478c |
refs/heads/master | <file_sep>const express = require('express')
const bodyParser = require('body-parser')
const amqp = require("amqplib")
var FCM = require('fcm-node');
const url = "amqp://jmqtkgqu:<EMAIL>/jmqtkgqu"
const app = express();
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
var options = {
inflate: true,
limit: '100kb',
type: 'application/ssi-agent-wire'
};
// var options2 = {
// inflate: true,
// limit: '100kb',
// type: 'application/json'
// };
app.use(bodyParser.raw(options));
//app.use(bodyParser.raw(options2));
const port = 3000
var serverKey = '<KEY> <KEY>'; // put your server key here
var fcm = new FCM(serverKey);
app.get('/', (req, res) => res.send('Hello World!'))
app.post('/', (req, res) => {
// fcm.send(message, function(err, response){
// if (err) {
// console.log("Something has gone wrong!");
// } else {
// console.log("Successfully sent with response: ", response);
// }
// });
console.log('new');
console.log(req.body);
res.send(req.body);
})
app.post('/register-endpoint', (req, res) => {
return "oK";
})
app.post('/relay-service', async (req, res) => {
try {
//var result = await sendToFcmService(req.body);
console.log(req.body)
var result = await sendMsgToRbmqServer(req.body);
res.send(result);
} catch (e) {
console.log(e.toString());
}
})
app.listen(port, () => console.log(`Example app listening on port ${port}!`))
async function sendMsgToRbmqServer(buffer) {
try {
const connection = await amqp.connect(url);
const channel = await connection.createChannel();
const result = await channel.assertQueue("ssi-message");
//channel.sendToQueue("ssi-message", buffer);
await sendToFcmService(buffer)
return "OK";
}
catch (ex) {
console.log(ex);
}
}
async function sendToFcmService(buffer) {
var message = { //this may vary according to the message type (single recipient, multicast, topic, et cetera)
to: 'dNsO48an_gs:APA91bFxfCKBfVUd6dFpITl3aXnCQcUeU3OZ85KtXUGyrDxByk08gOPeU1rLtYqUvDrhcVDn3sJ57yiWRjZbc3nUsPdMQ1H33YLAOtFh_rquMbpzHa8oqKMbQ1OVkWUlv9Xz3DmUYf1j',
notification: {
title: 'Push from NodeJS',
body: 'NodeJS post demo'
},
data: buffer
};
//var response = await fcm.send(message);
fcm.send(message, function(err, response){
if (err) {
console.log(err);
} else {
console.log("Successfully sent with response: ", response);
return response;
}
});
} | 4ac9796e379ec7be3a1f017931c7bfe6fa27c570 | [
"JavaScript"
] | 1 | JavaScript | thinhnnd/nodejs-aries-mediator | 1d2029fec46480b378ce242f2b81dd11b228007b | 92d3a813a4682acda7d527ac59bcbf9c29b764cc |
refs/heads/master | <repo_name>alissa-huskey/vimget<file_sep>/TODO.rst
====
TODO
====
[ ] add -c|--config flag to view config
[ ] look for VIMDIR based on location of MYVIMRC/MYGVIMRC
[ ] use VIM/VIM_HOME instead of/in addition to VIMDIR
[ ] look for alternates: VIM_BUNDLE_DIR, VIM_PLUGINS
[ ] accept list of URIs
[ ] additionally read list from stdin
[ ] prompt to add duplicate anyway with a different name
[ ] add install script
[ ] test in other environments
[ ] check duplicate for source
[x] provide a way to specify a different name
[x] search elsewhere within $VIMDIR for duplicate
[x] add tests to make sure plugins are actually installed and helptags are actually generated
[x] match <owner>/<name> style repos
[x] match git:// style repos
<file_sep>/README.md
# vimget
> like wget for vim plugins.
`vimget` makes adding vim plugins fast and simple. Given a plugin repo URI it will clone it to your plugin dir and run `:helptags`. Intended for use with pathogen or Vim8+ packages.
Usage
---
```bash
usage: vimget [-d|-q|-n|-q|-V] <repo-uri> [[-n] <name>] [<repo-uri>...]
options:
-c | --no-color
-d | --dry-run
-q | --quiet
-V | --verbose
-n | --name <name>
```
Environment
---
* `VIMDIR`
* The toplevel location of your personal vim initialization files.
`vimget` will search for common locations like `\$HOME/.vim` (as found in
vim and nvim helpfiles |vimrc|). You can use this to set a nonstandard
location or avoid ambiguity.
* `VIM_PLUGINS_DIR`
* The subdirectory under `\$VIMDIR` where your plugins are located. `vimget`
will look for `\$VIMDIR/bundle` and `\$VIMDIR/pack/bundle/start`. If you
install your plugins elsewhere, use this to specify it.
* `NO_COLOR`
* Set to any nonblank value to disable color output
Examples
---
```bash
# use the same github URL that you would clone
$ vimget https://github.com/vim-utils/vim-man.git
# so will github shorthand
$ vimget plasticboy/vim-markdown
# non-github URIS will work too
$ vimget git://sourceware.org/git/systemtap
# anything that looks like *.git, *github.com*
# git://* or <username>/<repo_name> will work
$ vimget /path/to/repo.git
$ vimget ssh://github.com/path/to/repo
$ vimget git://host.xz[:port]/~[user]/path/to/repo
# pass in a list of repos
$ vimget reedes/vim-pencil junegunn/goyo.vim junegunn/limelight.vim
# for a single plugin, you can specify an alternate name like you would in git
$ vimget aliou/bats.vim bats
# or follow the repo uri with the -n flag in a list
$ vimget tpope/vim-markdown spacevim/vim-markdown -n spacevim-markdown
```
Install
---
You can put `vimget` anywhere in your path.
To install it globally:
```bash
$ git clone https://github.com/alissa-huskey/vimget.git
$ cd vimget && sudo make install
```
Requirements
---
- git
- bash 3.2+
**Compatable with**
- Vim with Pathogen, Vim8+ or Neovim with |+packages|
> Note: this has only been tested on MacOS.
<file_sep>/vimget
#!/usr/bin/env bash
#
# vimget -- like wget for vim plugins
# shellcheck disable=SC2059
# {{{ bash options
set -Eeo pipefail # fail on errors, even within pipes
shopt -s xpg_echo # expand backslash escapes in echo automatically (ie \n)
read -r errfile < <(mktemp)
# }}} /bash options
# signal trapping {{{
#
vg:handle_err() {
local trapped_code="$?"
if [[ ! "$trapped_code" =~ ^[$code_env|$code_usr]$ ]]; then
vg:err "ERROR: $trapped_code"
vg:trace
exit $code_err
fi
}
trap vg:handle_err ERR
trap 'rm $errfile' EXIT
#
# }}} / signal trapping
# {{{ global variables
__me="${0##*/}"
__args=( "${@}" )
# }}} / global variables
# usage {{{
#
usage() {
local -i code=${1}
[[ -z "$code" ]] && code=${code_suc} || :
cat <<HELPTEXT
usage: ${__me} [-q|-V] [-n] [-d] <repo-uri> [[-n] <name>]
options:
-d | --dry-run
-c | --no-color
-q | --quiet
-V | --verbose
${__me} ${version} -- like wget for vim plugins
HELPTEXT
exit $code
}
#
# }}} / usage
# error handling {{{
#
vg:trace() {
local frame=0 line file func
while read -r line func file < <(caller $frame); do
if [[ -z "${file}" ]]; then
file="${func}"
printf "%s:%s\n" "${file##*/}" "${line}"
else
printf "%s:%s in %s()\n" "${file##*/}" "${line}" "${func}"
fi
((frame++));
done
}
vg:err() {
local line header="Error:" i=0
for line in "${@}"; do
[[ $i -gt 0 ]] && header=" >" || :
vg:printfx -c red -n "${header}" -r -p " ${line}" >&2
: $(( i++ ))
done
}
vg:die() {
local -i code=${1} ; shift
if [[ $# -gt 0 ]]; then
vg:err "${@}"
fi
vg:print_errfile red grey 1
exit $code
}
#
# }}} / error handling
# environment checking {{{
#
vg:has() {
for pkg in "${@}"; do
if command -v "${pkg}" > /dev/null; then
return
fi
done
return 1
}
vg:require_vim() {
if ! vg:has vim nvim; then
vg:die $code_env "vim not found"
fi
}
vg:require_git() {
if ! vg:has git; then
vg:die $code_env "git not found"
fi
}
vg:find_duplicates() {
local -a dups
local name="$1"
IFS=$'\n' read -d '' -ra dups < <( { \
find -L "${user_vimdir}/bundle" -maxdepth 1 -mindepth 1 -iname "${name}" ; \
find -L "${user_vimdir}/pack" -maxdepth 3 -mindepth 3 -ipath "*/*/${name}" ; \
find -L "${vim_plugins_dir}" -maxdepth 1 -mindepth 1 -iname "${name}" ; \
} 2>/dev/null | sort -u ) || :
if [[ ${#dups[@]} -gt 0 ]]; then
vg:die ${code_env} "Plugin already installed at:" "${dups[@]}"
fi
return 0
}
vg:check_env() {
home_dir="$(cd -P $HOME && printf "%s" "$PWD")"
vg:require_git
vg:require_vim
vg:find_vimdir
vg:find_plugins_dir
}
vg:find_plugins_dir() {
local dir
local -a dirs=( \
"${VIM_PLUGINS_DIR:-#}" \
"${user_vimdir:-#}/bundle" \
"${user_vimdir:-#}/pack/bundle/start" \
)
for dir in "${dirs[@]}"; do
if cd -P ${dir} 2> /dev/null; then
vim_plugins_dir="${PWD}"
break
fi
done
# shellcheck disable=SC2153
if [[ -n "${VIM_PLUGINS_DIR}" ]] && [[ "${VIM_PLUGINS_DIR}" != "${dir}" ]]; then
vg:die ${code_env} "Unable to access provided VIM_PLUGINS_DIR:" \
"${VIM_PLUGINS_DIR}"
fi
if [[ -z "${vim_plugins_dir}" ]]; then
vg:die ${code_env} "Unable to find plugins dir." \
"Please set the environment variable VIM_PLUGINS_DIR to continue."
fi
vg:config "plugins-dir" "${vim_plugins_dir}"
}
vg:find_vimdir() {
local dir
# the :-# pattern replaces any empty variables with "#"
# to avoid any unexpected behavior /paths
local -a dirs=( \
"${VIMDIR:-#}" \
"${HOME:-#}/.vim" \
"${HOME:-#}/vimfiles" \
"${HOME:-#}/config/nvim" \
"${HOME:-#}/AppData/Local/nvim" \
"${XDG_CONFIG_HOME:-#}/nvim" \
)
for dir in "${dirs[@]}"; do
if cd -P "${dir}" 2> /dev/null; then
user_vimdir="${PWD}"
break
fi
done
if [[ -n "${VIMDIR}" ]] && [[ "${VIMDIR}" != "${dir}" ]]; then
vg:die ${code_env} "Unable to access provided VIMDIR:" \
"${VIMDIR}"
fi
if [[ -z "${user_vimdir}" ]]; then
vg:die ${code_env} "Unable to find vimdir." \
"Please set the environment variable VIMDIR to continue."
fi
vg:config "vimdir" "${user_vimdir}"
}
#
# }}} / environment checking
# printing output {{{
#
vg:color() {
[[ ! "$TERM" =~ color ]] && return || :
[[ "${color_mode}" == "off" ]] && return || :
local color="${1}" code=""
case "${color}" in
red) code='31' ;;
green) code='32' ;;
yellow) code='33' ;;
blue) code='34' ;;
magenta) code='35' ;;
cyan) code='36' ;;
grey) code='90' ;;
bright-red) code='91' ;;
bright-green) code='92' ;;
bright-yellow) code='93' ;;
bright-blue) code='94' ;;
bright-magenta) code='95' ;;
bright-cyan) code='96' ;;
reset) code='39' ;;
esac
printf "\033[${code}m"
}
vg:msg() {
if [[ ${quiet_mode} ]]; then
return
fi
vg:printfx "$@"
}
# colorize and format output
# args:
# -c <color> -- print the following string(s) in color
# -n <string> -- don't print a newline after <string>
# -p <string> -- make paths of <string> pretty
# -r -- reset color
# <string> -- just print the string followed by a newline
vg:printfx() {
local colored
while [[ $# -ne 0 ]]; do
case $1 in
# -c <color> -- set color
-c)
if [[ "$2" == "reset" ]]; then
colored=
else
colored="${2}"
fi
vg:color "${2}"
shift
;;
# -n <string> -- don't follow with newline
-n)
printf "%s" "${2}"
shift
;;
# -p <string> -- make paths of <string> pretty
-p)
vg:pretty_paths "${2}"
printf "\n"
shift
;;
# -r -- reset color
-r)
colored=
vg:color reset
;;
# <string> -- just print the string followed by a newline
*)
printf "%s\n" "${1}"
;;
esac
shift
done
# reset the color if needed
if [[ -n "${colored}" ]]; then
vg:color reset
fi
}
vg:config() {
[[ ! ${verbose_mode} ]] && return || :
local var="${1}" val="${2}" width1=12 width2=50 str
read -r str < <( vg:pretty_paths "${val}" ) || :
vg:printfx -c bright-blue -n "|"
printf " %-*s " ${width1} "${var}"
vg:printfx -c bright-blue -n "|"
printf " %-*s " ${width2} "${str}"
vg:printfx -c bright-blue "|"
}
vg:success() {
if [[ $dryrun_mode ]] || [[ $quiet_mode ]]; then
return
fi
vg:msg -c green -n "[SUCCESS]" -r -n " Plugin installed at: " -p "${target_path}"
printf "\n"
}
vg:debug() {
vg:printfx -c yellow -n "DEBUG:" -c reset -n " " "${@}"
}
vg:pretty_paths() {
local i str="$1" path shorthand
local -a paths=( \
"${vim_plugins_dir}" '$VIM_PLUGINS_DIR' \
"${user_vimdir}" '$VIMDIR' \
"${user_pwd}" '.' \
"${HOME}" '~' \
"${TMPDIR%/}" '$TMPDIR' \
)
for(( i=0; i < ${#paths[@]}; i+=2 )); do
path="${paths[$i]}"
shorthand="${paths[((i+1))]}"
if [[ "${str}" == "$path" ]]; then
continue
fi
str="${str/$path/$shorthand}"
done
printf "%s" "${str}"
}
vg:print_errfile() {
if [[ ! -s "$errfile" ]]; then
return
fi
local spacer_color="$1" text_color="$2" force=$3
if [[ ${quiet_mode} ]] && [[ ! ${force} ]]; then
return
fi
# append a line in case the last line didn't
echo >> "${errfile}"
while read -r line; do
# skip blank lines
if [[ -z "${line// /}" ]]; then
continue
fi
vg:printfx -c "${spacer_color}" -n "| " -c "${text_color}" "$line"
done < "${errfile}"
# clear the file
echo > "${errfile}"
}
#
# }}} / printing output
# parsing input {{{
#
vg:name_matcher() {
sed -nE 's/^([a-zA-Z0-9][a-zA-Z0-9\-\.]+[a-zA-Z0-9])$/\1/p' <<< "$1"
}
# */<name>.git
vg:uri_matcher_dot_git() {
sed -nE 's/^.*\/([^/]+).git[/]?$/\1/p' <<< "$1"
}
# *github.com/*/<name>
vg:uri_matcher_github() {
sed -nE 's/^.*github\.com\/[^/]+\/([^/]+)[/]?$/\1/p' <<< "$1"
}
# git://.*/(<name>)
vg:uri_matcher_git_scheme() {
sed -nE 's/^git:\/\/.+\/([^/]+)[/]?$/\1/p'<<< "${1#/}"
}
# <owner>/<name>
vg:uri_matcher_github_shorthand() {
sed -nE 's/^[^/]+\/([^/]+)$/\1/p'<<< "${1#/}"
}
vg:uri_matcher() {
for fun in dot_git github git_scheme github_shorthand; do
read -r repo_name < <("vg:uri_matcher_${fun}" "${1}") || :
if [[ -n "${repo_name}" ]]; then
break
fi
done
}
# parse - parse the plugin name from the repo uri
# and set global variables
# usage: parse <url>
vg:parse_uri() {
vg:uri_matcher "${1}"
if [[ -z "$repo_name" ]]; then
vg:die ${code_usr} "Unable to recognize URI: '${1}'." \
"Expecting something that looks like *.git, *github.com* or git://*"
fi
repo_uri="${1}"
target_path="${vim_plugins_dir}/${repo_name}"
if [[ "$fun" == "github_shorthand" ]]; then
repo_uri="https://github.com/${repo_uri}"
fi
vg:config "repo-name" "${repo_name}"
vg:config "repo-uri" "${repo_uri}"
vg:config "plugin-name" "${plugin_name}"
vg:config "target-dir" "${target_path}"
}
# split -xyz into -x -y -z
# saves results to args()
vg:split_shortargs() {
local arg
while [[ $# -ne 0 ]]; do
arg="$1"
if [[ "$arg" =~ ^-[a-zA-Z]+$ ]]; then
while read -rn 1; do
[[ ${#REPLY} -gt 0 ]] && args+=("-${REPLY}") || :
done <<< "${arg#-}"
else
args+=( "${arg}" )
fi
shift
done
}
vg:handle_args() {
[[ $# -eq 0 ]] && usage ${code_usr} || :
local arg
while [[ $# -ne 0 ]]; do
arg="$1"
case "${arg}" in
''|-h*|--h*|help) usage ;;
-d|--dry-run) dryrun_mode="on" ;;
-c|--no-color) color_mode="off" ;;
-q|--quiet) quiet_mode="true" ;;
-V|--verbose) verbose_mode="true" ;;
-n|--name) list+=("${arg}") ;;
-*) vg:die ${code_usr} "unrecognized option: ${arg}" ;;
*) list+=("${arg}") ;;
esac
[[ $# -gt 0 ]] && shift || :
done
if [[ ${NO_COLOR} ]]; then
color_mode="off"
fi
if [[ ${verbose_mode} ]]; then
quiet_mode=
fi
if [[ ${#list[@]} -eq 0 ]]; then
vg:die ${code_usr} "missing required argument: <repo-uri>"
fi
}
#
# }}} / parsing input
# job management {{{
#
vg:run() {
local ec cmd
vg:msg -c grey -p "> ${*}"
if [[ $dryrun_mode ]]; then
return
fi
"${@}" 2> "${errfile}" || ec=$?
if [[ $ec -ne 0 ]]; then
vg:die ${code_fail} "[$?] Command failed:" "${*}"
else
vg:print_errfile grey grey
fi
}
vg:fetch_plugin() {
local noise_flag="" repo_uri="$1" name="$2"
[[ -n "${quiet_mode}" ]] && noise_flag="--quiet" || :
[[ -n "${verbose_mode}" ]] && noise_flag="--verbose" || :
# intentionally left name unquoted here so that if it's blank
# git does not read it as an invalid repo name
vg:run cd "${vim_plugins_dir}" && \
vg:run git clone ${noise_flag} --depth 1 "${repo_uri}" ${name}
}
vg:helptags() {
if [[ $dryrun_mode ]]; then
return
fi
local target_path="$1"
while IFS= read -r -d $'\0' docpath ; do
# -E -s -- run in Ex mode but with "Entering Ex mode" messages silenced
# -C -- run in compatible mode -- suppresses escape codes
# -u NONE -- like --clean but works for older vim versions
# -c redir >> ${errfile} -- appends any vim errors to our error file
vg:run vim -E -s -C -u NONE -c "redir >> ${errfile}" -c "helptags "${docpath} -c 'q'
if [[ ! -e "${docpath}/tags" ]]; then
vg:die $code_fail ":helptags failed for path:" "${docpath}"
fi
done < <( find ${target_path} -type d -name doc -print0 )
}
vg:validate_name() {
local plugin_name="$1" matched
if [[ -z "${plugin_name}" ]]; then
return
fi
read -r matched < <( vg:name_matcher "${plugin_name}" ) || :
if [[ -z "${matched}" ]]; then
vg:die $code_usr "Invalid argument for <name>: ${plugin_name}"
fi
}
vg:get_plugin() {
local repo_uri="$1"
local repo_name target_path # final plugin details
plugin_name="$2"
vg:parse_uri "${repo_uri}"
vg:validate_name "${plugin_name}"
# intentionally left unquoted so that if $plugin_name
# is empty, $repo_name will go to $1
vg:find_duplicates ${plugin_name} ${repo_name}
vg:fetch_plugin "${repo_uri}" "${plugin_name}"
vg:helptags "${target_path}"
vg:success
}
#
# }}} / job management
vg:get_list() {
local repo
# handle vimpack <repo> <name>
if [[ $# -eq 2 ]]; then
vg:uri_matcher "${2}"
# but not if $2 looks like a uri
if [[ -z "$repo_name" ]]; then
vg:get_plugin "${@}"
return
fi
fi
while [[ $# -gt 0 ]]; do
case "${1}" in
# handle vimpack <repo> -n <name>
-n|--name)
if [[ -z "${repo}" ]]; then
vg:die ${code_usr} "Invaild arguments order." "-n <name> must come after <repo>"
fi
vg:get_plugin "${repo}" "${2}"
repo=
shift
;;
# hang onto <repo> in case a -n arg is next
# if we have a repo from last time
# handle vimpack <repo>
*)
if [[ -n "${repo}" ]]; then
vg:get_plugin "${repo}"
fi
repo="${1}"
;;
esac
[[ $# -gt 0 ]] && shift || :
done
# finally, process the last <repo> in the list
# handle vimpack <repo>
if [[ -n "${repo}" ]]; then
vg:get_plugin "${repo}"
fi
}
main() {
local color_mode=on dryrun_mode quiet_mode verbose_mode # modes
local user_vimdir vim_plugins_dir home_dir # found or assigned paths
local -a args list # input
local version='0.2'
local user_pwd="${PWD}"
# exit codes
local code_suc=0 # success
local code_err=1 # error
local code_env=102 # missing requirement
local code_usr=103 # invalid input
local code_fail=104 # external command failure
vg:split_shortargs "${__args[@]}"
vg:handle_args "${args[@]}"
vg:check_env
vg:get_list "${list[@]}"
return ${code_suc}
}
main
<file_sep>/Makefile
# vimget
# wget for vim plugins
PREFIX=/usr/local
install:
cp vimget $(PREFIX)/bin/vimget
chmod 755 $(PREFIX)/bin/vimget
uninstall:
rm -f $(PREFIX)/bin/vimget
<file_sep>/test/vimget.bats
#!/usr/bin/env bats
load '/usr/local/lib/bats/load.bash'
rootdir="$(cd -P "${BATS_TEST_DIRNAME}/.." && printf "%s" "${PWD}")"
# exit codes
local code_suc=0 # success
local code_err=1 # error
local code_env=102 # missing requirement
local code_usr=103 # invalid input
local code_fail=104 # external command failure
p() {
while read -r line; do
printf "# %s\n" "${line}" >&3
done <<< "${@}"
}
rm_fixture_dir() {
dir="$1"
if [[ ! "${dir}" =~ test ]]; then
p "ERROR Refusing to remove directory: '${dir}'"
return 1
fi
rm -r "${dir}"
}
setup() {
export NO_COLOR=1
export HOME="${rootdir}/test"
export VIMDIR="${rootdir}/test/.vim"
export VIM_PLUGINS_DIR="${VIMDIR}/bundle"
if [[ ! -d ${VIM_PLUGINS_DIR} ]]; then
mkdir -p ${VIM_PLUGINS_DIR}
fi
}
teardown() {
if [[ $SAVE_FIXTURES_ON_FAIL ]]; then
return
fi
while read -r dir; do
rm_fixture_dir "${dir}"
done < <( find "$VIM_PLUGINS_DIR" "$VIMDIR/pack" -maxdepth 1 -mindepth 1 2> /dev/null )
}
# matchers {{{
@test "vimget */<name>.git" {
run ${rootdir}/vimget --dry-run ssh://sourceware.org/git/systemtap.git
assert_success
assert_line --index 0 '> cd $VIM_PLUGINS_DIR'
assert_line --index 1 "> git clone --depth 1 ssh://sourceware.org/git/systemtap.git"
assert_equal "${#lines[@]}" 2
}
@test "vimget */<name>.git/" {
run ${rootdir}/vimget --dry-run ssh://sourceware.org/git/systemtap.git/
assert_success
assert_line --index 0 '> cd $VIM_PLUGINS_DIR'
assert_line --index 1 "> git clone --depth 1 ssh://sourceware.org/git/systemtap.git/"
assert_equal "${#lines[@]}" 2
}
@test "vimget *github.com/*/<name>" {
run ${rootdir}/vimget --dry-run http://github.com/pseewald/vim-anyfold
assert_success
assert_line --index 0 '> cd $VIM_PLUGINS_DIR'
assert_line --index 1 "> git clone --depth 1 http://github.com/pseewald/vim-anyfold"
assert_equal "${#lines[@]}" 2
}
@test "vimget *github.com/*/<name>/" {
run ${rootdir}/vimget --dry-run http://github.com/pseewald/vim-anyfold/
assert_success
assert_line --index 0 '> cd $VIM_PLUGINS_DIR'
assert_line --index 1 "> git clone --depth 1 http://github.com/pseewald/vim-anyfold/"
assert_equal "${#lines[@]}" 2
}
@test "vimget git://*/<name>" {
run ${rootdir}/vimget --dry-run git://sourceware.org/git/systemtap
assert_success
assert_line --index 0 '> cd $VIM_PLUGINS_DIR'
assert_line --index 1 "> git clone --depth 1 git://sourceware.org/git/systemtap"
assert_equal "${#lines[@]}" 2
}
@test "vimget git://*/<name>/" {
run ${rootdir}/vimget --dry-run git://sourceware.org/git/systemtap/
assert_success
assert_line --index 0 '> cd $VIM_PLUGINS_DIR'
assert_line --index 1 "> git clone --depth 1 git://sourceware.org/git/systemtap/"
assert_equal "${#lines[@]}" 2
}
@test "vimget <owner>/<name>" {
run ${rootdir}/vimget --dry-run vim/killersheep
assert_success
assert_line --index 0 '> cd $VIM_PLUGINS_DIR'
assert_line --index 1 "> git clone --depth 1 https://github.com/vim/killersheep"
assert_equal "${#lines[@]}" 2
}
#
# }}} / matchers
# args {{{
#
@test "vimget -Vd is translated to -V -d" {
run ${rootdir}/vimget -Vd git://sourceware.org/git/systemtap.git
assert_success
assert_line --regexp "> cd .*$"
assert_line --regexp "\| plugins-dir \| .*$"
}
@test "vimget --quiet --dry-run: prints no output, installs no plugin" {
run ${rootdir}/vimget --quiet --dry-run aliou/bats.vim
assert_success
assert_output ""
[[ ! -d "${VIM_PLUGINS_DIR}/bats.vim" ]]
}
@test "vimget --quiet --verbose: verbose overrides quiet" {
run ${rootdir}/vimget --verbose --dry-run --quiet aliou/bats.vim
assert_success
assert_line --regexp "\| plugins-dir \| .*$"
assert_line --regexp "> cd .*$"
}
@test "vimget --quiet : will still print errors" {
mkdir ${VIM_PLUGINS_DIR}/vim-gitgutter
run ${rootdir}/vimget --quiet --dry-run https://github.com/airblade/vim-gitgutter
assert_failure ${code_env}
assert_line --index 0 "Error: Plugin already installed at:"
assert_line --index 1 ' > $VIM_PLUGINS_DIR/vim-gitgutter'
assert_equal "${#lines[@]}" 2
}
@test "vimget <repo> <name>" {
run ${rootdir}/vimget --dry-run https://github.com/airblade/vim-gitgutter gitgutter2
assert_success
assert_line --index 1 "> git clone --depth 1 https://github.com/airblade/vim-gitgutter gitgutter2"
}
@test "vimget <repo> <invalid-name>" {
run ${rootdir}/vimget --dry-run https://github.com/airblade/vim-gitgutter vim@gitgutter
assert_failure $code_usr
assert_output "Error: Invalid argument for <name>: vim@gitgutter"
}
@test "vimget <repo> -n <name>" {
run ${rootdir}/vimget --dry-run https://github.com/airblade/vim-gitgutter -n gitgutter2
assert_success
assert_line --index 1 "> git clone --depth 1 https://github.com/airblade/vim-gitgutter gitgutter2"
}
@test "vimget <repo> -n <invalid-name>" {
run ${rootdir}/vimget --dry-run https://github.com/airblade/vim-gitgutter -n vim@gitgutter
assert_failure $code_usr
assert_output "Error: Invalid argument for <name>: vim@gitgutter"
}
@test "vimget <repo> <repo>" {
run ${rootdir}/vimget --dry-run jez/vim-superman vim-utils/vim-man
assert_success
assert_line "> git clone --depth 1 https://github.com/jez/vim-superman"
assert_line "> git clone --depth 1 https://github.com/vim-utils/vim-man"
}
@test "vimget <repo> -n <name> <repo> -n <name> <repo>" {
run ${rootdir}/vimget --dry-run jez/vim-superman -n superman vim-utils/vim-man -n man mzlogin/vim-markdown-toc
assert_success
assert_line "> git clone --depth 1 https://github.com/jez/vim-superman superman"
assert_line "> git clone --depth 1 https://github.com/vim-utils/vim-man man"
assert_line "> git clone --depth 1 https://github.com/mzlogin/vim-markdown-toc"
}
@test "echo <repo> -n <name> <repo> -n <name> | vimget" {
skip
}
#
# }}} / args
# conditions {{{
#
@test "when VIMDIR does not exist" {
rm_fixture_dir "${VIMDIR}"
run ${rootdir}/vimget --dry-run https://github.com/junegunn/fzf.vim
assert_failure ${code_env}
assert_line --index 0 "Error: Unable to access provided VIMDIR:"
assert_line --index 1 " > ./test/.vim"
assert_equal "${#lines[@]}" 2
}
@test "when VIM_PLUGINS_DIR does not exist" {
rm_fixture_dir "${VIM_PLUGINS_DIR}"
run ${rootdir}/vimget --dry-run https://github.com/junegunn/fzf.vim
assert_failure ${code_env}
assert_line --index 0 "Error: Unable to access provided VIM_PLUGINS_DIR:"
assert_line --index 1 ' > $VIMDIR/bundle'
assert_equal "${#lines[@]}" 2
}
@test "when VIMDIR is not set a likely existing vimdir is found" {
export VIMDIR=
run ${rootdir}/vimget --verbose --dry-run https://github.com/junegunn/fzf.vim
assert_success
assert_line --partial '| vimdir | ./test/.vim '
}
@test "when VIMDIR is not set and no likely vimdir can be found" {
rm_fixture_dir "${VIMDIR}"
export VIMDIR=
run ${rootdir}/vimget --dry-run https://github.com/junegunn/fzf.vim
assert_failure ${code_env}
assert_line --index 0 "Error: Unable to find vimdir."
assert_line --index 1 " > Please set the environment variable VIMDIR to continue."
assert_equal "${#lines[@]}" 2
}
@test "when VIM_PLUGINS_DIR is not set a likely existing vim_plugins_dir is found" {
export VIM_PLUGINS_DIR=
run ${rootdir}/vimget --verbose --dry-run https://github.com/junegunn/fzf.vim
assert_success
assert_line --partial '| plugins-dir | $VIMDIR/bundle '
}
@test "when VIM_PLUGINS_DIR is not set and no likely vim_plugins_dir can be found" {
rm_fixture_dir "${VIM_PLUGINS_DIR}"
export VIM_PLUGINS_DIR=
run ${rootdir}/vimget --dry-run https://github.com/junegunn/fzf.vim
assert_failure ${code_env}
assert_line --index 0 "Error: Unable to find plugins dir."
assert_line --index 1 " > Please set the environment variable VIM_PLUGINS_DIR to continue."
assert_equal "${#lines[@]}" 2
}
@test "when plugin already installed" {
touch "${VIM_PLUGINS_DIR}/fzf.vim"
run ${rootdir}/vimget --dry-run https://github.com/junegunn/fzf.vim
assert_failure ${code_env}
assert_line --index 0 "Error: Plugin already installed at:"
assert_line --index 1 ' > $VIM_PLUGINS_DIR/fzf.vim'
assert_equal "${#lines[@]}" 2
}
@test "when plugin already installed in a different dir" {
mkdir -p "${VIMDIR}/pack/others/start/fzf.vim"
run ${rootdir}/vimget --dry-run https://github.com/junegunn/fzf.vim
assert_failure ${code_env}
assert_line --index 0 "Error: Plugin already installed at:"
assert_line --index 1 ' > $VIMDIR/pack/others/start/fzf.vim'
assert_equal "${#lines[@]}" 2
}
@test "when plugin already installed with a different case" {
mkdir "${VIM_PLUGINS_DIR}/FZF.vim"
run ${rootdir}/vimget --dry-run https://github.com/junegunn/fzf.vim
assert_failure ${code_env}
assert_line --index 0 "Error: Plugin already installed at:"
assert_line --index 1 ' > $VIM_PLUGINS_DIR/FZF.vim'
assert_equal "${#lines[@]}" 2
}
@test "when multiple matching plugins are already installed" {
mkdir "${VIM_PLUGINS_DIR}/FZF.vim"
mkdir -p "${VIMDIR}/pack/others/start/fzf.vim"
run ${rootdir}/vimget --dry-run https://github.com/junegunn/fzf.vim
assert_failure ${code_env}
assert_line --index 0 "Error: Plugin already installed at:"
assert_line --index 1 ' > $VIM_PLUGINS_DIR/FZF.vim'
assert_line --index 2 ' > $VIMDIR/pack/others/start/fzf.vim'
assert_equal "${#lines[@]}" 3
}
#
# }}} / conditions
# behavior {{{
#
@test "verify -- plugin added, helptags generated" {
run ${rootdir}/vimget https://github.com/plasticboy/vim-markdown
assert_success
assert_line "| Cloning into 'vim-markdown'..."
assert_line --partial '> vim -E -s -C -u NONE -c'
assert_line '[SUCCESS] Plugin installed at: $VIM_PLUGINS_DIR/vim-markdown'
[[ -d "${VIM_PLUGINS_DIR}/vim-markdown" ]]
assert_file_exist "${VIM_PLUGINS_DIR}/vim-markdown/doc/tags"
}
#
# }}} / behavior
| 79d1f0a6fee288c9a5a7daf7a3fa9ef90275327c | [
"Markdown",
"Makefile",
"reStructuredText",
"Shell"
] | 5 | reStructuredText | alissa-huskey/vimget | 4c5364db78ca7347ac2997a86dd805ea6bb2d117 | 4fd4c2df408aac464780fd60209906c3042fea2e |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace gettingSizes
{
public struct dispFile
{
public Rectangle rect;
public string name;
public dispFile(Rectangle _r, string _n)
{
rect = _r;
name = _n;
}
}
public struct dispDir
{
public Rectangle rect;
public string name;
List<dispDir> dirs; //it should be also recursive i think
public List<dispFile> files;
public dispDir(Rectangle _r, string _n, List<dispDir> _d, List<dispFile> _f)
{
rect = _r;
name = _n;
dirs = _d;
files = _f;
}
}
public partial class Form1 : Form
{
Program.data info;
List<dispDir> dispDirs = new List<dispDir>();
public Random rnd = new Random();
public Form1(Program.data _info)
{
info = _info;
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private List<int>sortDir(Program.data _info)
{
List<int> temp = new List<int>();
for (int i = 0; i < _info.directories.Count + _info.files.Count; i++)
temp.Add(i);
for (int i = 0; i < temp.Count; i++)
{
var currSize = temp[i] < _info.directories.Count ? _info.directories[temp[i]].size : _info.files[temp[i] - _info.directories.Count].size;
for (int j = i; j < temp.Count; j++)
{
var checkSize = temp[j] < _info.directories.Count ? _info.directories[temp[j]].size : _info.files[temp[j] - _info.directories.Count].size;
if(checkSize>currSize)
{
int t = temp[i];
temp[i] = temp[j];
temp[j] = t;
}
}
}
return temp;
}
static Pen pen = new Pen(Color.Black);
static SolidBrush brush = new SolidBrush(Color.Black);
public void drawDir(PaintEventArgs _e, Rectangle _rec, Program.data _info, string _dir = null)
{
//dispDir those;
if (_info.directory != null)
{
_dir = _info.directory;
//those = new dispDir(_rec, _dir, new List<dispDir>(),new List<dispFile>());
//dispDirs.Add(those);
}
else
{
//those = dispDirs.Where(d => d.name == _dir).ToList()[0];
}
if (_info.files.Count + _info.directories.Count == 0)
return;
if(_info.files.Count + _info.directories.Count == 1)
{
if(_info.directories.Count==1)
{
_info.directories[0].rec = _rec;
int recSize = 2;
Rectangle tempRec = new Rectangle(_rec.X + recSize, _rec.Y + recSize, _rec.Width - 2* recSize, _rec.Height - 2* recSize);
//_e.Graphics.FillRectangle(brush, tempRec);
drawDir(_e, tempRec, _info.directories[0]);
_e.Graphics.DrawRectangle(new Pen(Color.FromArgb(rnd.Next(127), rnd.Next(127), rnd.Next(127)), recSize), _rec);
return;
}
else
{
//those.files.Add(new dispFile(_rec, _info.files[0].name));
brush.Color = Color.FromArgb(128 + rnd.Next(127), 128 + rnd.Next(127), 128 + rnd.Next(127));
_info.files[0].rec = _rec;
_e.Graphics.FillRectangle(brush, _rec);
return;
}
}
List<int> sI = sortDir(_info);
long sumSize = 0;
int endindex = 0;
List<Program.data> tempDir1 = new List<Program.data>();
List<Program.filedata> tempFiles1 = new List<Program.filedata>();
for (int i = 0; i < sI.Count; i++)
{
bool isDir = sI[i] < _info.directories.Count;
var currSize = isDir ? _info.directories[sI[i]].size : _info.files[sI[i] - _info.directories.Count].size;
if (currSize + sumSize < _info.size / 2 || i == 0)
{
if (isDir)
tempDir1.Add(_info.directories[sI[i]]);
else
tempFiles1.Add(_info.files[sI[i] - _info.directories.Count]);
sumSize += currSize;
endindex = i;
}
else
break;
}
var tempDir2 = new List<Program.data>();
var tempFiles2 = new List<Program.filedata>();
tempDir2 = _info.directories.Where(dir => !tempDir1.Contains(dir)).ToList();
tempFiles2 = _info.files.Where(file => !tempFiles1.Contains(file)).ToList();
Program.data dataInfo1 = new Program.data(null, sumSize,tempFiles1, tempDir1);
Program.data dataInfo2 = new Program.data(null, _info.size - sumSize, tempFiles2, tempDir2);
var rec1 = new Rectangle();
var rec2 = new Rectangle();
if (_rec.Width>_rec.Height)
{
rec1.X = _rec.X;
rec1.Y = _rec.Y;
rec1.Width = Convert.ToInt32(_rec.Width * sumSize / (_info.size==0?1:_info.size));
rec1.Height = _rec.Height;
rec2.X = _rec.X + rec1.Width;
rec2.Y = _rec.Y;
rec2.Width = _rec.Width - rec1.Width;
rec2.Height = _rec.Height;
}
else
{
rec1.X = _rec.X;
rec1.Y = _rec.Y;
rec1.Width = _rec.Width;
rec1.Height = Convert.ToInt32(_rec.Height * sumSize / (_info.size == 0 ? 1 : _info.size));
rec2.X = _rec.X;
rec2.Y = _rec.Y + rec1.Height;
rec2.Width = _rec.Width;
rec2.Height = _rec.Height - rec1.Height;
}
drawDir(_e, rec1, dataInfo1, _dir);
drawDir(_e, rec2, dataInfo2, _dir);
}
private void pictureBox1_Paint(object sender, PaintEventArgs e)
{
drawDir(e, new Rectangle(0,0,pictureBox1.Width,pictureBox1.Height), info);
var info2 = info;
info2 = null;
}
private Program.filedata getClosest(Program.data _data, Point _mouse, ref List<Program.data> _folderData)
{
foreach(Program.filedata f in _data.files)
{
if ((_mouse.X > f.rec.X && _mouse.X < f.rec.X + f.rec.Width) && (_mouse.Y > f.rec.Y && _mouse.Y < f.rec.Y + f.rec.Height))
return f;
}
foreach(Program.data f in _data.directories)
{
if ((_mouse.X > f.rec.X && _mouse.X < f.rec.X + f.rec.Width) && (_mouse.Y > f.rec.Y && _mouse.Y < f.rec.Y + f.rec.Height))
{
_folderData.Add(f);
return getClosest(f, _mouse, ref _folderData);
}
}
return null;
}
Program.filedata closest = null;
ToolTip tt;
List<ToolTip> dirTT = new List<ToolTip>();
private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
{
var position = pictureBox1.PointToClient(MousePosition);
if (position.X < 0 || position.X > pictureBox1.Width || position.Y < 0 || position.Y > pictureBox1.Height)
return;
List<Program.data> folderData = new List<Program.data>();
var closest2 = getClosest(info, position, ref folderData);
folderData.Reverse();
if (closest2 == null)
return;
if (closest != closest2)
{
for (int i = 0; i < folderData.Count(); i++)
{
var d = folderData[i];
if (i >= dirTT.Count())
{
dirTT.Add(new ToolTip());
}
Point ttloc = new Point(d.rec.X + 16, d.rec.Y + 38);
string ttdisplay = "";
if (i == folderData.Count() - 1)
ttdisplay = d.directory;
else
ttdisplay = d.directory.Remove(0, folderData[i + 1].directory.Count());
dirTT[i].Show(ttdisplay, this, ttloc);
}
if (dirTT.Count() >= folderData.Count())
for (int i = dirTT.Count() - 1; i >= folderData.Count(); i--)
dirTT[i].Hide(this);
}
closest = closest2;
if (tt == null)
{
tt = new ToolTip();
}
string sizeText = "";
long sizeint = closest.size;
if (sizeint >= 1024)
{
sizeint /= 1024;
if (sizeint >= 1024)
{
sizeint /= 1024;
if (sizeint >= 1024)
{
sizeint /= 1024;
sizeText = sizeint + "GB";
}
else
{
sizeText = sizeint + "MB";
}
}
else
{
sizeText = sizeint + "kB";
}
}
else
{
sizeText = sizeint + "B";
}
tt.Show(closest.name + ", " + sizeText, this, new Point(position.X + 16, position.Y + 38));
}
private void pictureBox1_Click(object sender, EventArgs e)
{
if (closest != null)
{
Console.WriteLine(closest.adress);
Process.Start("explorer.exe", "/select, @" + closest.adress);
}
}
}
}
<file_sep>using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace gettingSizes
{
public class Program
{
public class data
{
public string directory;
public long size;
public List<filedata> files;
public List<data> directories;
public Rectangle rec;
public data(string _dir, long _size,List<filedata> _files, List<data> _dirs)
{
directory = _dir;
size = _size;
files = _files;
directories = _dirs;
rec = new Rectangle();
}
}
public class filedata
{
public string adress;
public long size;
public string name;
public Rectangle rec;
public filedata(string _adr, long _size, string _name)
{
adress = _adr;
size = _size;
name = _name;
rec = new Rectangle();
}
}
static void Main(string[] args)
{
string loc = "";
loc = Console.ReadLine();
data allData = getThem(loc);
long size = allData.size;
if(size<1024)
Console.WriteLine("allsize: " + size + "B");
else
if (size/1024 < 1024)
Console.WriteLine("allsize: " + size/1024 + "KB");
else
if (size / (1024*1024) < 1024)
Console.WriteLine("allsize: " + size / (1024*1024) + "MB");
else
Console.WriteLine("allsize: " + size / (1024 * 1024 * 1024) + "GB");
var frm = new Form1(allData);
Application.Run(frm);
Console.Read();
}
static List<data> directoriesData = new List<data>();
static data getThem(string sdir)
{
Console.WriteLine(sdir + ":");
string tempDirectory = sdir;
long tempSize = 0;
List<filedata> tempFiles = new List<filedata>();
List<data> tempDirectories = new List<data>();
try
{
foreach (string f in Directory.GetFiles(sdir))
{
long size = new FileInfo(f).Length;
string name = new FileInfo(f).Name;
tempFiles.Add(new filedata(f, size, name));
tempSize += size;
/*
Console.Write("\t" + name);
Console.CursorLeft = Console.BufferWidth - 20;
Console.Write(size);
Console.WriteLine("");*/
}
}
catch
{
Console.WriteLine("WRONG DIRECTORY: " + sdir);
}
try
{
foreach (string f in Directory.GetDirectories(sdir))
{
data dir = getThem(f);
tempDirectories.Add(dir);
tempSize += dir.size;
}
}
catch
{
Console.WriteLine("WRONG DIRECTORY: " + sdir);
}
return new data(tempDirectory, tempSize, tempFiles, tempDirectories);
}
}
}
| ad69c0c749fe07083764e23988b67b519b707a53 | [
"C#"
] | 2 | C# | palemek/GettingSizes | 82b0356c49c35ec2d8a020ef486d94d33d9dadd5 | 7c94c4f0530febde611a5a1a0e420507fa657a4a |
refs/heads/master | <file_sep>// Day10.cpp : From http://adventofcode.com/2016/day/10
//
#include "stdafx.h"
#include <map>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
vector<string> vecTokenize(string in, const char* delims)
{
vector<string> out;
int start = 0;
for (int i = 0; i < in.length(); i++)
{
for (int j = 0; delims[j] != NULL; j++)
{
if (in[i] == delims[j])
{
out.push_back(in.substr(start, i - start));
start = i + 1;
break;
}
}
}
out.push_back(in.substr(start, in.length() - start));
return out;
}
class CBots {
// List of bots
// index of map is bot's ID
// pair is the pair of numbers bot is holding
// should set to -1 if bot is not holding a number
// left should be low, right should be high
public:
bool Give(int botFrom, int botTo, bool low);
void Give(int botTo, int val);
bool CanTake(int botFrom);
int Take(int botFrom, bool low);
void Put(int botFrom, int output, bool low);
private:
map<int, pair<int, int>> bots;
map<int, int> outputs;
};
// Returns false if move not possible
bool CBots::Give(int botFrom, int botTo, bool low)
{
int val = Take(botFrom, low);
Give(botTo, val);
return true;
}
void CBots::Give(int botTo, int val)
{
// Bot doesn't exist or has no values
if (bots.find(botTo) == bots.end() || bots[botTo].first == MAXINT)
{
bots[botTo].first = val;
bots[botTo].second = MAXINT;
return;
}
// New val is smaller than first val
if (val < bots[botTo].first)
{
bots[botTo].second = bots[botTo].first;
bots[botTo].first = val;
}
else // New val is equal or larger than first val
{
bots[botTo].second = val;
}
}
// Returns true if a bot has both a low or high value
bool CBots::CanTake(int botFrom)
{
if (bots.find(botFrom) == bots.end())
return false;
return bots[botFrom].first != MAXINT && bots[botFrom].second != MAXINT;
}
int CBots::Take(int botFrom, bool low)
{
int ret = MAXINT;
// Part 1
//if (bots[botFrom].first == 17 && bots[botFrom].second == 61)
// int x = 0;
// Low val? Return left side
if (low)
{
ret = bots[botFrom].first;
bots[botFrom].first = MAXINT;
}
else // Right side
{
ret = bots[botFrom].second;
bots[botFrom].second = MAXINT;
}
return ret;
}
void CBots::Put(int botFrom, int output, bool low)
{
outputs[output] = Take(botFrom, low);
}
int main()
{
CBots bots;
string str;
ifstream in;
vector<string> movesNotDone;
in.open("in.txt");
// First, find out which number each bot is holding
while (getline(in, str))
{
if (str[0] != 'v')
{
// We need to initialize the bots first, so we store all other commands for later
movesNotDone.push_back(str);
continue;
}
vector<string> toks = vecTokenize(str, " ");
int val = atoi(toks[1].c_str());
int bot = atoi(toks[5].c_str());
bots.Give(bot, val);
}
while (true)
{
bool ranAMove = false;
for (int i = 0; i < movesNotDone.size(); i++)
{
vector<string> toks = vecTokenize(movesNotDone[i], " ");
int botFrom = atoi(toks[1].c_str());
// If we can't take from this bot (it has fewer than both values) then skip command
if (!bots.CanTake(botFrom))
continue;
// We can run this command
movesNotDone.erase(movesNotDone.begin() + i);
ranAMove = true;
int to1 = atoi(toks[6].c_str());
int to2 = atoi(toks[11].c_str());
// output
if (toks[5][0] == 'o')
bots.Put(botFrom, to1, true);
else
bots.Give(botFrom, to1, true);
if (toks[10][0] == 'o')
bots.Put(botFrom, to2, false);
else
bots.Give(botFrom, to2, false);
}
// If we ran the entire list and didn't find a move, break
if (!ranAMove)
break;
}
return 0;
}
<file_sep>// Day11.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <atlstr.h>
using namespace std;
vector<string> vecTokenize(string in, const char* delims)
{
vector<string> out;
int start = 0;
for (int i = 0; i < in.length(); i++)
{
for (int j = 0; delims[j] != NULL; j++)
{
if (in[i] == delims[j])
{
out.push_back(in.substr(start, i - start));
start = i + 1;
break;
}
}
}
out.push_back(in.substr(start, in.length() - start));
return out;
}
// A floor (or elevator)
struct SFloor {
// First letter corresponds to isotope
vector<TCHAR> microchips;
vector<TCHAR> generators;
};
class CFactory {
public:
void PrintMap();
int elevatorLevel;
vector<SFloor> floors;
SFloor elevator;
};
void CFactory::PrintMap()
{
// Print out factory layout
for (int i = 3; i >= 0; i--)
{
CString floorLayout;
floorLayout.Format(_T("F%d|"), i + 1);
if (i == elevatorLevel)
floorLayout.Append(_T("E |"));
else
floorLayout.Append(_T(" |"));
for (int gen = 0; gen < floors[i].generators.size(); gen++)
floorLayout.AppendFormat(_T("%cG "), floors[i].generators[gen]);
for (int micro = 0; micro < floors[i].microchips.size(); micro++)
floorLayout.AppendFormat(_T("%cM "), floors[i].microchips[micro]);
floorLayout.Append(_T("\n"));
//_tprintf((TCHAR*)(LPCTSTR)floorLayout);
_tprintf(_T("%s"), floorLayout);
}
}
struct SFactoryState {
CFactory factory;
SFactoryState *sibling;
SFactoryState *child;
};
class CMovesTree {
public:
void GenerateTree(CFactory factory);
private:
SFactoryState root;
};
void CMovesTree::GenerateTree(CFactory factory)
{
root.factory = factory;
root.sibling = NULL;
root.child = NULL;
while (true)
{
// Try to move a microchip
// Cannot: move to a floor with no matching generator
// Find first microchip
for (int floor = 0; floor < factory.floors.size(); floor++)
{
SFloor sFloor = factory.floors[floor];
for (int micro = 0; micro < sFloor.microchips.size(); micro++)
{
}
}
// Try to move a generator
// Cannot: be moved away from its microchip
// Cannot: be moved to a floor where a microchip has no matching generator, unless this is the matching generator
// Try to move a microchip and generator pair
// Try to move a microchip and a microchip
// Follow same rules for microchip
// Try to move a generator and a generator
// Follow same rules for generator
}
}
int main()
{
ifstream in;
string str;
in.open("in.txt");
CFactory factory;
// Fill the factory
while (getline(in, str))
{
vector<string> tokens = vecTokenize(str, " ");
SFloor floor;
int tokInd = 5;
while (tokInd + 1 < tokens.size())
{
// Parse isotope
TCHAR iso = tokens[tokInd][0];
// Parse whether generator or microchip
if (tokens[tokInd + 1][0] == 'm')
floor.microchips.push_back(iso);
else
floor.generators.push_back(iso);
if (tokens.size() - (tokInd + 1) == 5)
tokInd += 4;
else
tokInd += 3;
}
factory.floors.push_back(floor);
}
factory.PrintMap();
getc(stdin);
return 0;
} | 2dca07c93b99810c3a63008e103075d05b4cf3b3 | [
"C++"
] | 2 | C++ | danieltobey/Advent-of-Code-2016 | a61929b5c84d8cc482fdf32e7c7f034bf2bcde65 | b419655955a3ad510e0d5e5516da99ae56022ec6 |
refs/heads/master | <file_sep>/*
{
quit = false,
_views = {
{
view = 0x7ffff7ece1e8,
renderer = 0x7ffff7eccc50,
world = 0x7ffff7ece480
}
},
deltaTimer = {
_flagStarted = false,
_timeStart = {length = 0},
_timeMeasured = {length = 0}
},
_start = {callbacks = 0x0},
_stop = {callbacks = 0x0}
}
*/
const resultRegex = /^([a-zA-Z_\-][a-zA-Z0-9_\-]*)\s*=\s*/;
const variableRegex = /^[a-zA-Z_\-][a-zA-Z0-9_\-]*/;
const errorRegex = /^\<.+?\>/;
const referenceRegex = /^0x[0-9a-fA-F]+/;
const numberRegex = /^[0-9]+/;
export function isExpandable(value: string): number {
let primitive: any;
let match;
value = value.trim();
if (value.length == 0) return 0;
else if (value[0] == '{') return 1; // object
else if (value.startsWith("true")) return 0;
else if (value.startsWith("false")) return 0;
else if (value.startsWith("0x0")) return 0;
else if (match = referenceRegex.exec(value)) return 2; // reference
else if (match = numberRegex.exec(value)) return 0;
else if (match = variableRegex.exec(value)) return 0;
else if (match = errorRegex.exec(value)) return 0;
else return 0;
}
export function expandValue(variableCreate: Function, value: string): any {
let parseCString = () => {
value = value.trim();
if (value[0] != '"')
return "";
let stringEnd = 1;
let inString = true;
let remaining = value.substr(1);
let escaped = false;
while (inString) {
if (escaped)
escaped = false;
else if (remaining[0] == '\\')
escaped = true;
else if (remaining[0] == '"')
inString = false;
remaining = remaining.substr(1);
stringEnd++;
}
let str = value.substr(0, stringEnd).trim();
value = value.substr(stringEnd).trim();
return str;
};
let parseValue, parseCommaResult, parseCommaValue, parseResult;
let parseTupleOrList = () => {
value = value.trim();
if (value[0] != '{')
return undefined;
let oldContent = value;
value = value.substr(1).trim();
if (value[0] == '}')
return [];
let eqPos = value.indexOf("=");
let newValPos1 = value.indexOf("{");
let newValPos2 = value.indexOf(",");
let newValPos = newValPos1;
if (newValPos2 != -1 && newValPos2 < newValPos1)
newValPos = newValPos2;
if (newValPos != -1 && eqPos > newValPos || eqPos == -1) { // is value list
let values = [];
let val = parseValue();
values.push(val);
let remaining = value;
while (val = parseCommaValue())
values.push(val);
value = value.substr(1).trim(); // }
return values;
}
let result = parseResult();
if (result) {
let results = [];
results.push(result);
while (result = parseCommaResult())
results.push(result);
value = value.substr(1).trim(); // }
return results;
}
return undefined;
};
let parsePrimitive = () => {
let primitive: any;
let match;
value = value.trim();
if (value.length == 0)
primitive = undefined;
else if (value.startsWith("true")) {
primitive = "true";
value = value.substr(4).trim();
}
else if (value.startsWith("false")) {
primitive = "false";
value = value.substr(5).trim();
}
else if (value.startsWith("0x0")) {
primitive = "<nullptr>";
value = value.substr(3).trim();
}
else if (match = referenceRegex.exec(value)) {
primitive = "*" + match[0];
value = value.substr(match[0].length).trim();
}
else if (match = numberRegex.exec(value)) {
primitive = match[0];
value = value.substr(match[0].length).trim();
}
else if (match = variableRegex.exec(value)) {
primitive = match[0];
value = value.substr(match[0].length).trim();
}
else if (match = errorRegex.exec(value)) {
primitive = match[0];
value = value.substr(match[0].length).trim();
}
else {
primitive = "<???>";
}
return primitive;
};
parseValue = () => {
value = value.trim();
if (value[0] == '"')
return parseCString();
else if (value[0] == '{')
return parseTupleOrList();
else
return parsePrimitive();
};
parseResult = () => {
value = value.trim();
let variableMatch = resultRegex.exec(value);
if (!variableMatch)
return undefined;
value = value.substr(variableMatch[0].length).trim();
let variable = variableMatch[1];
let val = parseValue();
let ref = 0;
if (typeof val == "object") {
ref = variableCreate(val);
val = "Object";
}
if (typeof val == "string" && val.startsWith("*0x")) {
ref = variableCreate("*" + variable);
val = "Object@" + val;
}
return {
name: variable,
value: val,
variablesReference: ref
};
};
parseCommaValue = () => {
value = value.trim();
if (value[0] != ',')
return undefined;
value = value.substr(1).trim();
return parseValue();
};
parseCommaResult = () => {
value = value.trim();
if (value[0] != ',')
return undefined;
value = value.substr(1).trim();
return parseResult();
};
value = value.trim();
return parseValue();
}<file_sep>import { DebugSession, InitializedEvent, TerminatedEvent, StoppedEvent, OutputEvent, Thread, StackFrame, Scope, Source, Handles } from 'vscode-debugadapter';
import { DebugProtocol } from 'vscode-debugprotocol';
import { Breakpoint, IBackend, SSHArguments } from './backend/backend'
import { MINode } from './backend/mi_parse'
import { expandValue, isExpandable } from './backend/gdb_expansion'
import { MI2 } from './backend/mi2/mi2'
import { posix } from "path"
import * as systemPath from "path"
let resolve = posix.resolve;
let relative = posix.relative;
export interface LaunchRequestArguments {
cwd: string;
target: string;
autorun: string[];
ssh: SSHArguments;
}
export interface AttachRequestArguments {
cwd: string;
target: string;
executable: string;
remote: boolean;
autorun: string[];
}
class MI2DebugSession extends DebugSession {
private static THREAD_ID = 1;
private gdbDebugger: MI2;
private variableHandles = new Handles<any>();
private quit: boolean;
private attached: boolean;
private needContinue: boolean;
private isSSH: boolean;
private trimCWD: string;
private switchCWD: string;
public constructor(debuggerLinesStartAt1: boolean, isServer: boolean = false) {
super(debuggerLinesStartAt1, isServer);
}
protected initializeRequest(response: DebugProtocol.InitializeResponse, args: DebugProtocol.InitializeRequestArguments): void {
response.body.supportsConfigurationDoneRequest = true;
response.body.supportsEvaluateForHovers = true; // Assume working in future releases
response.body.supportsFunctionBreakpoints = true; // TODO: Implement in future release
this.sendResponse(response);
this.gdbDebugger = new MI2("gdb", ["-q", "--interpreter=mi2"]);
this.gdbDebugger.on("quit", this.quitEvent.bind(this));
this.gdbDebugger.on("exited-normally", this.quitEvent.bind(this));
this.gdbDebugger.on("stopped", this.stopEvent.bind(this));
this.gdbDebugger.on("msg", this.handleMsg.bind(this));
this.gdbDebugger.on("breakpoint", this.handleBreakpoint.bind(this));
this.gdbDebugger.on("step-end", this.handleBreak.bind(this));
this.gdbDebugger.on("step-out-end", this.handleBreak.bind(this));
this.gdbDebugger.on("signal-stop", this.handlePause.bind(this));
this.sendEvent(new InitializedEvent());
}
private handleMsg(type: string, msg: string) {
if (type == "target")
type = "stdout";
if (type == "log")
type = "stderr";
this.sendEvent(new OutputEvent(msg, type));
}
private handleBreakpoint(info: MINode) {
this.sendEvent(new StoppedEvent("breakpoint", MI2DebugSession.THREAD_ID));
}
private handleBreak(info: MINode) {
this.sendEvent(new StoppedEvent("step", MI2DebugSession.THREAD_ID));
}
private handlePause(info: MINode) {
this.sendEvent(new StoppedEvent("user request", MI2DebugSession.THREAD_ID));
}
private stopEvent(info: MINode) {
if (!this.quit)
this.sendEvent(new StoppedEvent("exception", MI2DebugSession.THREAD_ID));
}
private quitEvent() {
this.quit = true;
this.sendEvent(new TerminatedEvent());
}
protected launchRequest(response: DebugProtocol.LaunchResponse, args: LaunchRequestArguments): void {
this.quit = false;
this.attached = false;
this.needContinue = false;
this.isSSH = false;
if (args.ssh !== undefined) {
if (args.ssh.forwardX11 === undefined)
args.ssh.forwardX11 = true;
if (args.ssh.port === undefined)
args.ssh.port = 22;
if (args.ssh.x11port === undefined)
args.ssh.x11port = 6000;
if (args.ssh.x11host === undefined)
args.ssh.x11host = "localhost";
if (args.ssh.remotex11screen === undefined)
args.ssh.remotex11screen = 0;
this.isSSH = true;
this.trimCWD = args.cwd.replace(/\\/g, "/");
this.switchCWD = args.ssh.cwd;
this.gdbDebugger.ssh(args.ssh, args.ssh.cwd, args.target).then(() => {
if (args.autorun)
args.autorun.forEach(command => {
this.gdbDebugger.sendUserInput(command);
});
this.gdbDebugger.start().then(() => {
this.sendResponse(response);
});
});
}
else {
this.gdbDebugger.load(args.cwd, args.target).then(() => {
if (args.autorun)
args.autorun.forEach(command => {
this.gdbDebugger.sendUserInput(command);
});
this.gdbDebugger.start().then(() => {
this.sendResponse(response);
});
});
}
}
protected attachRequest(response: DebugProtocol.AttachResponse, args: AttachRequestArguments): void {
this.quit = false;
this.attached = !args.remote;
this.needContinue = true;
this.isSSH = false;
if (args.remote) {
this.gdbDebugger.connect(args.cwd, args.executable, args.target).then(() => {
if (args.autorun)
args.autorun.forEach(command => {
this.gdbDebugger.sendUserInput(command);
});
this.sendResponse(response);
});
}
else {
this.gdbDebugger.attach(args.cwd, args.executable, args.target).then(() => {
if (args.autorun)
args.autorun.forEach(command => {
this.gdbDebugger.sendUserInput(command);
});
this.sendResponse(response);
});
}
}
protected disconnectRequest(response: DebugProtocol.DisconnectResponse, args: DebugProtocol.DisconnectArguments): void {
if (this.attached)
this.gdbDebugger.detach();
else
this.gdbDebugger.stop();
this.sendResponse(response);
}
protected setBreakPointsRequest(response: DebugProtocol.SetBreakpointsResponse, args: DebugProtocol.SetBreakpointsArguments): void {
this.gdbDebugger.once("debug-ready", (() => {
this.gdbDebugger.clearBreakPoints().then(() => {
let path = args.source.path;
if (this.isSSH) {
path = relative(this.trimCWD.replace(/\\/g, "/"), path.replace(/\\/g, "/"));
path = resolve(this.switchCWD.replace(/\\/g, "/"), path.replace(/\\/g, "/"));
}
let all = [];
args.breakpoints.forEach(brk => {
all.push(this.gdbDebugger.addBreakPoint({ file: path, line: brk.line, condition: brk.condition }));
});
Promise.all(all).then(brkpoints => {
response.body.breakpoints = brkpoints;
this.sendResponse(response);
});
});
}).bind(this));
}
protected threadsRequest(response: DebugProtocol.ThreadsResponse): void {
response.body = {
threads: [
new Thread(MI2DebugSession.THREAD_ID, "Thread 1")
]
};
this.sendResponse(response);
}
protected stackTraceRequest(response: DebugProtocol.StackTraceResponse, args: DebugProtocol.StackTraceArguments): void {
this.gdbDebugger.getStack(args.levels).then(stack => {
let ret: StackFrame[] = [];
stack.forEach(element => {
let file = element.file;
if (this.isSSH) {
file = relative(this.switchCWD.replace(/\\/g, "/"), file.replace(/\\/g, "/"));
file = systemPath.resolve(this.trimCWD.replace(/\\/g, "/"), file.replace(/\\/g, "/"));
}
ret.push(new StackFrame(element.level, element.function + "@" + element.address, new Source(element.fileName, file), element.line, 0));
});
response.body = {
stackFrames: ret
};
this.sendResponse(response);
});
}
protected configurationDoneRequest(response: DebugProtocol.ConfigurationDoneResponse, args: DebugProtocol.ConfigurationDoneArguments): void {
// FIXME: Does not seem to get called in january release
if (this.needContinue) {
this.gdbDebugger.continue().then(done => {
this.sendResponse(response);
}, msg => {
this.sendResponse(response);
this.sendEvent(new OutputEvent(`Could not continue: ${msg}\n`, 'stderr'));
});
}
else
this.sendResponse(response);
}
protected scopesRequest(response: DebugProtocol.ScopesResponse, args: DebugProtocol.ScopesArguments): void {
const scopes = new Array<Scope>();
scopes.push(new Scope("Local", this.variableHandles.create("@frame:" + args.frameId), false));
response.body = {
scopes: scopes
};
this.sendResponse(response);
}
protected variablesRequest(response: DebugProtocol.VariablesResponse, args: DebugProtocol.VariablesArguments): void {
const variables = [];
const id = this.variableHandles.get(args.variablesReference);
let createVariable = (arg) => {
return this.variableHandles.create(arg);
};
if (typeof id == "string") {
if (id.startsWith("@frame:")) {
this.gdbDebugger.getStackVariables(1, 0).then(stack => {
stack.forEach(variable => {
if (variable[1] !== undefined) {
let expanded = expandValue(createVariable, `{${variable[0]} = ${variable[1]}}`);
if (!expanded)
new OutputEvent("Could not expand " + variable[1] + "\n", "stderr");
else if (typeof expanded[0] == "string")
expanded = [
{
name: "<value>",
value: prettyStringArray(expanded),
variablesReference: 0
}
];
variables.push(expanded[0]);
} else
variables.push({
name: variable[0],
value: "<unknown>",
variablesReference: createVariable(variable[0])
});
});
response.body = {
variables: variables
};
this.sendResponse(response);
});
}
else {
// Variable members
this.gdbDebugger.evalExpression(JSON.stringify(id)).then(variable => {
let expanded = expandValue(createVariable, variable.result("value"));
if (!expanded)
this.sendEvent(new OutputEvent("Could not expand " + variable.result("value") + "\n", "stderr"));
else if (typeof expanded[0] == "string")
expanded = [
{
name: "<value>",
value: prettyStringArray(expanded),
variablesReference: 0
}
];
response.body = {
variables: expanded
};
this.sendResponse(response);
});
}
}
else if (typeof id == "object") {
response.body = {
variables: id
};
this.sendResponse(response);
}
else {
response.body = {
variables: variables
};
this.sendResponse(response);
}
}
protected pauseRequest(response: DebugProtocol.ContinueResponse, args: DebugProtocol.ContinueArguments): void {
this.gdbDebugger.interrupt().then(done => {
this.sendResponse(response);
}, msg => {
this.sendResponse(response);
this.sendEvent(new OutputEvent(`Could not pause: ${msg}\n`, 'stderr'));
});
}
protected continueRequest(response: DebugProtocol.ContinueResponse, args: DebugProtocol.ContinueArguments): void {
this.gdbDebugger.continue().then(done => {
this.sendResponse(response);
}, msg => {
this.sendResponse(response);
this.sendEvent(new OutputEvent(`Could not continue: ${msg}\n`, 'stderr'));
});
}
protected stepInRequest(response: DebugProtocol.NextResponse, args: DebugProtocol.NextArguments): void {
this.gdbDebugger.step().then(done => {
this.sendResponse(response);
}, msg => {
this.sendResponse(response);
this.sendEvent(new OutputEvent(`Could not step in: ${msg}\n`, 'stderr'));
});
}
protected stepOutRequest(response: DebugProtocol.NextResponse, args: DebugProtocol.NextArguments): void {
this.gdbDebugger.stepOut().then(done => {
this.sendResponse(response);
}, msg => {
this.sendResponse(response);
this.sendEvent(new OutputEvent(`Could not step out: ${msg}\n`, 'stderr'));
});
}
protected nextRequest(response: DebugProtocol.NextResponse, args: DebugProtocol.NextArguments): void {
this.gdbDebugger.next().then(done => {
this.sendResponse(response);
}, msg => {
this.sendResponse(response);
this.sendEvent(new OutputEvent(`Could not step over: ${msg}\n`, 'stderr'));
});
}
protected evaluateRequest(response: DebugProtocol.EvaluateResponse, args: DebugProtocol.EvaluateArguments): void {
this.handleMsg("console", "Evaluate (" + args.context + "): " + args.expression + "\n")
if (args.context == "watch" || args.context == "hover")
this.gdbDebugger.evalExpression(args.expression).then((res) => {
response.body = {
variablesReference: 0,
result: res.result("value")
}
this.sendResponse(response);
});
else {
this.gdbDebugger.sendUserInput(args.expression).then(output => {
if (output)
response.body.result = JSON.stringify(output);
this.sendResponse(response);
});
}
}
}
function prettyStringArray(strings: string[]) {
return strings.join(", ");
}
DebugSession.run(MI2DebugSession); | cb2e9a4a425d2396ac0ad48a0436dfe849e81af8 | [
"TypeScript"
] | 2 | TypeScript | aonorin/code-debug | efae57a1eb562be63fbb60db71e01b734ae3ecb9 | d5194cb6a43f83830e57299c3aba40753e1fdec6 |
refs/heads/master | <repo_name>snerks/Core22SwaggerWebApp<file_sep>/Core22SwaggerWebApp/Startup.cs
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
using Core22SwaggerWebApp.Controllers;
using HealthChecks.UI.Client;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Diagnostics;
using Microsoft.AspNetCore.Diagnostics.HealthChecks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Localization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ApplicationModels;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Diagnostics.HealthChecks;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using Serilog;
using Swashbuckle.AspNetCore.Swagger;
namespace Core22SwaggerWebApp
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddRouting(options =>
{
options.LowercaseUrls = true;
options.LowercaseQueryStrings = true;
});
services
.AddMvc(c => c.Conventions.Add(new ApiExplorerGroupPerVersionConvention()))
.SetCompatibilityVersion(CompatibilityVersion.Version_2_2)
.AddJsonOptions(options => {
options.SerializerSettings.Formatting = Formatting.Indented;
//options.SerializerSettings.ContractResolver = new DefaultContractResolver();
});
// services.AddDbContext<TodoContext>(opt =>
//opt.UseInMemoryDatabase("TodoList"));
// services.AddMvc();
//services.AddHealthChecks()
// .AddCheck("sql", () =>
// {
// //const string _connectionString = "BOGUS";
// //try
// //{
// // using (var connection = new SqlConnection(_connectionString))
// // {
// // try
// // {
// // connection.Open();
// // }
// // catch (SqlException)
// // {
// // return HealthCheckResult.Unhealthy();
// // }
// // }
// //}
// //catch (Exception)
// //{
// // return HealthCheckResult.Unhealthy();
// //}
// //return HealthCheckResult.Healthy();
// return HealthCheckResult.Unhealthy();
// });
//try
//{
// var value = "A";
// var camelCased = char.ToLowerInvariant(value[0]) + value.Substring(1);
//}
//catch (Exception ex)
//{
// Console.WriteLine(ex.Message);
// throw;
//}
// Register the Swagger generator, defining 1 or more Swagger documents
services.AddSwaggerGen(c => {
//c.SwaggerDoc("v0", new Info { Title = "My API", Version = "v0" });
c.SwaggerDoc("v1", new Info { Title = "My API", Version = "v1" });
c.EnableAnnotations();
c.DescribeAllParametersInCamelCase();
});
//Log.Logger = new LoggerConfiguration()
// .WriteTo.File("log.txt")
// .CreateLogger();
//for (var i = 0; i < 10; ++i)
//{
// Log.Information("Hello, file logger!");
//}
//Log.CloseAndFlush();
// Add functionality to inject IOptions<T>
services.AddOptions();
// services.Configure<CurrenciesSettings>(Configuration);
//var currenciesSettings = new CurrenciesSettings();
//Configuration.GetSection("Currencies").Bind(currenciesSettings);
//// Use of Get<>
//var currenciesSettings =
// Configuration
// .GetSection("CustomSettings:Currency")
// .Get<CurrenciesSettings>();
////var currencySettings = Configuration.GetSection("CustomSettings:Currency:Currencies").Get<List<CurrencySettings>>();
//currenciesSettings.Currencies =
// Configuration
// .GetSection("CustomSettings:Currency:Currencies")
// .Get<List<CurrencySettings>>();
//// Use of IOptions<T>
//var currenciesSettingsSection = Configuration.GetSection("CustomSettings:Currency");
//services.Configure<CurrenciesSettings>(currenciesSettingsSection);
//var customSettingsSection = Configuration.GetSection("CustomSettings");
//services.Configure<CustomSettings>(customSettingsSection);
// Use of Poco Binding
// https://www.strathweb.com/2016/09/strongly-typed-configuration-in-asp-net-core-without-ioptionst/
//services.ConfigurePoco<CustomSettings>(Configuration.GetSection("CustomSettings"));
//services.ConfigurePoco<CurrenciesSettings>(Configuration.GetSection("CustomSettings:Currency"));
ConfigurePoco<CustomSettings>(services, Configuration.GetSection("CustomSettings"));
ConfigurePoco<CurrenciesSettings>(services, Configuration.GetSection("CustomSettings:Currency"));
//services
// .AddHealthChecks()
// .AddCheck("culture", () =>
// {
// const string RequiredCultureIsoCode = "en-GB";
// var currentUICulture = System.Threading.Thread.CurrentThread.CurrentUICulture;
// var currentCulture = System.Threading.Thread.CurrentThread.CurrentCulture;
// var isCurrentUICultureCorrect = currentUICulture.IetfLanguageTag == RequiredCultureIsoCode;
// var isCurrentCultureCorrect = currentCulture.IetfLanguageTag == RequiredCultureIsoCode;
// var areCurrentCultureSettingsCorrect = isCurrentUICultureCorrect && isCurrentCultureCorrect;
// if (areCurrentCultureSettingsCorrect)
// {
// return HealthCheckResult.Healthy();
// }
// var data = new Dictionary<string, object>
// {
// ["RequiredCurrentUICulture"] = RequiredCultureIsoCode,
// ["RequiredCurrentCulture"] = RequiredCultureIsoCode,
// ["CurrentUICulture"] = System.Threading.Thread.CurrentThread.CurrentUICulture,
// ["CurrentCulture"] = System.Threading.Thread.CurrentThread.CurrentCulture,
// };
// return HealthCheckResult.Unhealthy(
// $"Incorrect CurrentCulture Settings",
// null,
// data);
// })
// .AddCheck("sql", () =>
// {
// const string _connectionString = "BOGUS";
// try
// {
// using (var connection = new SqlConnection(_connectionString))
// {
// try
// {
// connection.Open();
// }
// catch (SqlException ex)
// {
// return HealthCheckResult.Unhealthy($"SqlException at {DateTime.Now}", ex);
// }
// }
// }
// catch (Exception ex)
// {
// var data = new Dictionary<string, object>
// {
// ["CurrentUICulture"] = System.Threading.Thread.CurrentThread.CurrentUICulture,
// ["CurrentCulture"] = System.Threading.Thread.CurrentThread.CurrentCulture,
// };
// return HealthCheckResult.Unhealthy(
// $"Exception : UICulture = [{System.Threading.Thread.CurrentThread.CurrentUICulture}] at {DateTime.Now}",
// ex,
// data);
// }
// return HealthCheckResult.Healthy();
// //return HealthCheckResult.Unhealthy("Sample Description");
// });
//services.AddHealthChecksUI();
//.AddUrlGroup(new Uri("http://httpbin.org/status/200"), name: "uri-1")
//.AddUrlGroup(new Uri("http://httpbin.org/status/200"), name: "uri-2")
//.AddUrlGroup(new Uri("http://httpbin.org/status/500"), name: "uri-3")
//.Services
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
var supportedCultures = new[]
{
new CultureInfo("en-US"),
new CultureInfo("en-GB"),
new CultureInfo("fr"),
};
app.UseRequestLocalization(new RequestLocalizationOptions
{
DefaultRequestCulture = new RequestCulture("en-GB"),
//DefaultRequestCulture = new RequestCulture("en-US"),
// Formatting numbers, dates, etc.
SupportedCultures = supportedCultures,
// UI strings that we have localized.
SupportedUICultures = supportedCultures
});
//app.UseHealthChecks("/healthz", new HealthCheckOptions()
//{
// Predicate = _ => true,
// ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
//})
//.UseHealthChecksUI(setup =>
//{
// setup.UIPath = "/show-health-ui"; // this is ui path in your browser
// setup.ApiPath = "/health-ui-api"; // the UI ( spa app ) use this path to get information from the store ( this is NOT the healthz path, is internal ui api )
//});
//// .UseMvc();
//app.UseHealthChecks("/working", new HealthCheckOptions()
//{
// Predicate = _ => true,
// ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
//});
// Get Status Code only
//app.UseHealthChecks("/working");
//// Get Status Code and other info as JSON
//app.UseHealthChecks("/working", new HealthCheckOptions()
//{
// Predicate = _ => true,
// ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse,
//});
//app.UseHealthChecksUI();
// Enable middleware to serve generated Swagger as a JSON endpoint.
app.UseSwagger();
// Enable middleware to serve swagger-ui (HTML, JS, CSS, etc.),
// specifying the Swagger JSON endpoint.
//app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1"));
app.UseSwaggerUI(c =>
{
//c.SwaggerEndpoint("/swagger/v0/swagger.json", "V0 Docs");
c.SwaggerEndpoint("/swagger/v1/swagger.json", "V1 Docs");
});
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
else
{
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
// https://stackoverflow.com/questions/38630076/asp-net-core-web-api-exception-handling
app.UseExceptionHandler(a => a.Run(async context =>
{
var exceptionHandlerPathFeature = context.Features.Get<IExceptionHandlerPathFeature>();
var exception = exceptionHandlerPathFeature.Error;
var result = JsonConvert.SerializeObject(new { error = exception.Message });
context.Response.ContentType = "application/json";
await context.Response.WriteAsync(result);
}));
app.UseMvc();
}
// https://www.strathweb.com/2016/09/strongly-typed-configuration-in-asp-net-core-without-ioptionst/
public TConfig ConfigurePoco<TConfig>(
IServiceCollection services,
IConfiguration configuration) where TConfig : class, new()
{
if (services == null) throw new ArgumentNullException(nameof(services));
if (configuration == null) throw new ArgumentNullException(nameof(configuration));
var config = new TConfig();
configuration.Bind(config);
services.AddSingleton(config);
return config;
}
}
public class ApiExplorerGroupPerVersionConvention : IControllerModelConvention
{
public void Apply(ControllerModel controller)
{
var controllerNamespace = controller.ControllerType.Namespace; // e.g. "Controllers.V1"
var apiVersion = controllerNamespace.Split('.').Last().ToLower();
if (apiVersion.Length == 2 && apiVersion.StartsWith("v"))
{
if (apiVersion.EndsWith("0") || apiVersion.EndsWith("1"))
{
controller.ApiExplorer.GroupName = apiVersion;
return;
}
}
var controllerName = controller.ControllerType.Name; // e.g. "Controllers.V1"
apiVersion = controllerName.StartsWith("Legacy") ? "v0" : "v1";
controller.ApiExplorer.GroupName = apiVersion;
}
}
}
<file_sep>/Core22SwaggerWebApp/Controllers/LegacyController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace Core22SwaggerWebApp.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class LegacyController : ControllerBase
{
// GET api/values
[HttpGet]
[Obsolete(message: "Please Use VOne.Get() instead.")]
public ActionResult<IEnumerable<object>> Get()
{
return new List<object>();
}
}
}
<file_sep>/Core22SwaggerWebApp/Controllers/ValuesController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
using Core22SwaggerWebApp.Models;
using System.Linq.Dynamic;
namespace Core22SwaggerWebApp.Controllers
{
// Match Property Names with Config Key Names
public class CustomSettings
{
public CurrenciesSettings Currency { get; set; } = new CurrenciesSettings();
}
public class CurrenciesSettings
{
public string DefaultIsoCode { get; set; }
//[JsonProperty(PropertyName = "Currencies")]
public List<CurrencySettings> Currencies { get; set; } = new List<CurrencySettings>();
}
public class CurrencySettings
{
public string IsoCode { get; set; }
public string Symbol { get; set; }
public string Name { get; set; }
}
public class CurrencyService
{
public IEnumerable<CurrencyGetViewModel> GetAll()
{
return new List<CurrencyGetViewModel>();
}
}
public class CurrencyGetViewModel
{
public CurrencyGetViewModel(string isoCode, string symbol, string name)
{
IsoCode = isoCode ?? throw new ArgumentNullException(nameof(isoCode));
Symbol = symbol ?? throw new ArgumentNullException(nameof(symbol));
Name = name ?? throw new ArgumentNullException(nameof(name));
IsoCode = IsoCode.Trim().ToUpper();
Symbol = Symbol.Trim();
Name = Name.Trim();
}
public string IsoCode { get; }
public string Symbol { get; }
public string Name { get; }
public bool IsDefault { get; set; }
}
[Route("api/[controller]")]
[ApiController]
public class ValuesController : ControllerBase
{
public ValuesController(
ILogger<ValuesController> logger,
//IOptions<CustomSettings> customSettings,
//IOptions<CurrenciesSettings> currenciesSettings,
CustomSettings customSettings,
CurrenciesSettings currenciesSettings)
{
Logger = logger ?? throw new ArgumentNullException(nameof(logger));
CustomSettings = customSettings ?? throw new ArgumentNullException(nameof(customSettings));
CurrenciesSettings = currenciesSettings ?? throw new ArgumentNullException(nameof(currenciesSettings));
//CurrenciesSettings = currenciesSettings ?? throw new ArgumentNullException(nameof(currenciesSettings));
//CustomSettings = customSettings ?? throw new ArgumentNullException(nameof(customSettings));
}
public ILogger<ValuesController> Logger { get; }
public CustomSettings CustomSettings { get; }
public CurrenciesSettings CurrenciesSettings { get; }
public Dictionary<string, CurrencyGetViewModel> IsoCodeCurrenciesMap { get; } =
new Dictionary<string, CurrencyGetViewModel>(StringComparer.CurrentCultureIgnoreCase);
//// GET api/values
//[HttpGet]
//public ActionResult<IEnumerable<CurrencyGetViewModel>> Get()
//{
// // var currenciesMap = new Dictionary<string, CurrencyGetViewModel>
// // {
// // ["GBP"] = new CurrencyGetViewModel("GBP", "£", "Pound sterling"),
// // ["EUR"] = new CurrencyGetViewModel("EUR", "€", "Euro"),
// // ["USD"] = new CurrencyGetViewModel("USD", "$", "United States dollar"),
// // ["AUD"] = new CurrencyGetViewModel("AUD", "$", "Australian dollar"),
// // ["ABC"] = new CurrencyGetViewModel("ABC", "$", "ABC dollar"),
// // ["DEF"] = new CurrencyGetViewModel("DEF", "$", "DEF dollar"),
// // };
// // foreach (var key in currenciesMap.Keys)
// // {
// // Logger.LogInformation("In my wallet I have {Key}: {@Currency}", key, currenciesMap[key]);
// // }
// // return currenciesMap.Values;
// //var items =
// // CurrenciesSettings
// // .GetSection("CustomSettings:Currency:Currencies")
// // .Get<List<CurrencySettings>>();
// var currenciesMap = GetIsoCodeCurrenciesMap();
// return currenciesMap.Values;
//}
[HttpGet("{pageNumber?}/{pageSize?}")]
[ProducesResponseType(200, Type = typeof(PagedList<CurrencyGetViewModel>))]
//[ProducesResponseType(401)]
public ActionResult<PagedList<CurrencyGetViewModel>> GetAll(int pageNumber = 1, int pageSize = 10)
{
Logger.LogDebug("Getting one page of items");
var currenciesMap = GetIsoCodeCurrenciesMap();
var currenciesMapValues = currenciesMap.Values;
var queryable = currenciesMapValues.AsQueryable();
// var staticResults = queryable.Where(c => c.Name.Contains("dollar")); // .ToList();
// https://github.com/kahanu/System.Linq.Dynamic
// https://github.com/kahanu/System.Linq.Dynamic/wiki/Dynamic-Expressions
// https://stackoverflow.com/questions/41244/dynamic-linq-orderby-on-ienumerablet-iqueryablet
// https://github.com/StefH/System.Linq.Dynamic.Core
// https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.DynamicLinq/
// "City == @0 and Orders.Count >= @1", "London", 10
//var dynamicResults = queryable.Where("Name.Contains(@0)", "sterling"); // .ToList();
var dynamicResults =
queryable
.Where(
"Name.Contains(@0, @1)",
"pound",
StringComparison.InvariantCultureIgnoreCase); // .ToList();
// .Equals(exchangeAbbrv, StringComparison.InvariantCultureIgnoreCase)
var result =
new PagedList<CurrencyGetViewModel>(
dynamicResults,
pageNumber,
pageSize);
return result;
}
// GET api/values/5
[HttpGet("{isoCode}")]
[ProducesResponseType(StatusCodes.Status404NotFound)]
[ProducesDefaultResponseType]
[ProducesResponseType(StatusCodes.Status200OK)]
public ActionResult<CurrencyGetViewModel> Get(string isoCode)
{
if (isoCode == null)
{
return BadRequest();
}
var isoCodeCurrenciesMap = GetIsoCodeCurrenciesMap();
if (isoCodeCurrenciesMap == null)
{
return NotFound();
}
var key = isoCode.Trim();
if (isoCodeCurrenciesMap.ContainsKey(key))
{
return isoCodeCurrenciesMap[key];
}
return NotFound();
}
//// GET api/values
//[HttpGet]
//public ActionResult<IEnumerable<CurrencyGetViewModel>> GetPaged()
//{
// var currenciesMap = GetIsoCodeCurrenciesMap();
// return currenciesMap.Values;
//}
private Dictionary<string, CurrencyGetViewModel> GetIsoCodeCurrenciesMap()
{
if (IsoCodeCurrenciesMap.Keys.Count > 0)
{
return IsoCodeCurrenciesMap;
}
////var customSettings = CustomSettings.Value;
//var customSettings = CustomSettings;
//Console.WriteLine(customSettings.Currency.DefaultIsoCode);
//var currenciesSettings = CurrenciesSettings.Value;
//var currenciesSettings = CurrenciesSettings;
//Console.WriteLine(currenciesSettings.DefaultIsoCode);
//var currenciesSettings = CurrenciesSettings;
//var isoCodeCurrenciesMap =
// new Dictionary<string, CurrencyGetViewModel>(StringComparer.CurrentCultureIgnoreCase);
var normalisedDefaultIsoCode = CurrenciesSettings.DefaultIsoCode?.ToUpper().Trim();
foreach (var currenciesItem in CurrenciesSettings.Currencies)
{
try
{
var normalisedIsoCode = currenciesItem.IsoCode?.ToUpper().Trim();
var currencyGetViewModel = new CurrencyGetViewModel(
normalisedIsoCode,
currenciesItem.Symbol,
currenciesItem.Name)
{
IsDefault =
normalisedIsoCode == normalisedDefaultIsoCode
};
IsoCodeCurrenciesMap.Add(
normalisedIsoCode,
currencyGetViewModel);
//bool wasAddSuccessful = currenciesMap.TryAdd(
// normalisedIsoCode,
// currencyGetViewModel);
}
catch (ArgumentException ex)
{
// throw;
Logger.LogWarning("{@Ex}", ex);
}
}
return IsoCodeCurrenciesMap;
}
//// POST api/values
//[HttpPost]
//public void Post([FromBody] string value)
//{
//}
//// PUT api/values/5
//[HttpPut("{id}")]
//public void Put(int id, [FromBody] string value)
//{
//}
//// DELETE api/values/5
//[HttpDelete("{id}")]
//public void Delete(int id)
//{
//}
}
}
<file_sep>/Core22SwaggerWebApp/Controllers/CurrenciesController.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using Core22SwaggerWebApp.Infrastructure;
using Core22SwaggerWebApp.Models;
using Core22SwaggerWebApp.Models.Core22SwaggerWebApp.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Swashbuckle.AspNetCore.Annotations;
namespace Core22SwaggerWebApp.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class CurrenciesController : ControllerBase
{
public CurrenciesController(
ILogger<CurrenciesController> logger,
CustomSettings customSettings,
CurrenciesSettings currenciesSettings)
{
Logger = logger ?? throw new ArgumentNullException(nameof(logger));
CustomSettings = customSettings ?? throw new ArgumentNullException(nameof(customSettings));
CurrenciesSettings = currenciesSettings ?? throw new ArgumentNullException(nameof(currenciesSettings));
}
public ILogger<CurrenciesController> Logger { get; }
public CustomSettings CustomSettings { get; }
public CurrenciesSettings CurrenciesSettings { get; }
public Dictionary<string, CurrencyGetViewModel> IsoCodeCurrenciesMap { get; } =
new Dictionary<string, CurrencyGetViewModel>(StringComparer.CurrentCultureIgnoreCase);
[HttpGet()]
//[ProducesResponseType(StatusCodes.Status200OK)]
//[ProducesResponseType(typeof(ApiError), StatusCodes.Status400BadRequest)]
//[ProducesDefaultResponseType]
//[ValidateModel]
//[ProducesResponseType(200, Type = typeof(PagedList<CurrencyGetViewModel>))]
public ActionResult<PagedList<CurrencyGetViewModel>> GetAll([FromQuery] PagingOptions pagingOptions)
{
//if (!ModelState.IsValid)
//{
// return new BadRequestObjectResult(new ApiError(ModelState));
//}
//var context = new ValidationContext(pagingOptions, serviceProvider: null, items: null);
//var validationResults = new List<ValidationResult>();
//bool isValid = Validator.TryValidateObject(pagingOptions, context, validationResults, true);
Logger.LogDebug("Getting one page of items");
var currenciesMap = GetIsoCodeCurrenciesMap();
var currenciesMapValues = currenciesMap.Values;
//pagingOptions.Offset = pagingOptions.Offset ?? _defaultPagingOptions.Offset;
//pagingOptions.Limit = pagingOptions.Limit ?? _defaultPagingOptions.Limit;
var result =
new PagedList<CurrencyGetViewModel>(
currenciesMapValues.AsQueryable(),
pagingOptions.PageNumber,
pagingOptions.PageSize);
return result;
}
//// GET api/values/5
//[HttpGet("{isoCode}")]
//[ProducesResponseType(StatusCodes.Status404NotFound)]
//[ProducesDefaultResponseType]
//[ProducesResponseType(StatusCodes.Status200OK)]
//public ActionResult<CurrencyGetViewModel> Get(string isoCode)
//{
// if (isoCode == null)
// {
// return BadRequest();
// }
// var isoCodeCurrenciesMap = GetIsoCodeCurrenciesMap();
// if (isoCodeCurrenciesMap == null)
// {
// return NotFound();
// }
// var key = isoCode.Trim();
// if (isoCodeCurrenciesMap.ContainsKey(key))
// {
// return isoCodeCurrenciesMap[key];
// }
// return NotFound();
//}
private Dictionary<string, CurrencyGetViewModel> GetIsoCodeCurrenciesMap()
{
if (IsoCodeCurrenciesMap.Keys.Count > 0)
{
return IsoCodeCurrenciesMap;
}
var normalisedDefaultIsoCode = CurrenciesSettings.DefaultIsoCode?.ToUpper().Trim();
foreach (var currenciesItem in CurrenciesSettings.Currencies)
{
try
{
var normalisedIsoCode = currenciesItem.IsoCode?.ToUpper().Trim();
var currencyGetViewModel = new CurrencyGetViewModel(
normalisedIsoCode,
currenciesItem.Symbol,
currenciesItem.Name)
{
IsDefault =
normalisedIsoCode == normalisedDefaultIsoCode
};
IsoCodeCurrenciesMap.Add(
normalisedIsoCode,
currencyGetViewModel);
}
catch (ArgumentException ex)
{
Logger.LogWarning("{@Ex}", ex);
}
}
return IsoCodeCurrenciesMap;
}
//// POST api/values
//[HttpPost]
//public void Post([FromBody] string value)
//{
//}
//// PUT api/values/5
//[HttpPut("{id}")]
//public void Put(int id, [FromBody] string value)
//{
//}
//// DELETE api/values/5
//[HttpDelete("{id}")]
//public void Delete(int id)
//{
//}
}
}
<file_sep>/Core22SwaggerWebApp.UnitTest/Models/ApiErrorTests.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using Core22SwaggerWebApp.Models;
using Core22SwaggerWebApp.Models.Core22SwaggerWebApp.Models;
using FluentAssertions;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using Xunit;
namespace Core22SwaggerWebApp.UnitTest.Models
{
public class SampleDto
{
[Range(1, 100)]
public int IntegerRange { get; set; }
}
public class ApiErrorTests
{
[Fact]
public void Test()
{
// Arrange
//var input = new ModelStateDictionary();
//input.AddModelError("SamplePropertyName", "Sample ErrorMessage");
var sut = new PagingOptions
{
PageSize = 2000
};
var context = new ValidationContext(sut, serviceProvider: null, items: null);
var validationResults = new List<ValidationResult>();
bool isValid = Validator.TryValidateObject(sut, context, validationResults, true);
// Act
var result = validationResults;
foreach (var validationResult in validationResults)
{
foreach (var memberName in validationResult.MemberNames)
{
var keyParts = memberName.Split('.');
var camelKeyParts = new List<string>();
foreach (var keyPart in keyParts)
{
camelKeyParts
.Add(
keyPart.First().ToString().ToLowerInvariant() +
(keyPart.Length > 1 ? keyPart.Substring(1) : ""));
}
var newKey = camelKeyParts.Aggregate((i, j) => i + "." + j);
}
}
// Assert
result.Should().NotBeNull();
}
}
}
<file_sep>/Core22SwaggerWebApp/Program.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Core22SwaggerWebApp;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ApiExplorer;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Serilog;
using Serilog.Events;
[assembly: ApiConventionType(typeof(DefaultApiConventions))]
//[assembly: ApiConventionType(typeof(CustomApiConventions))]
namespace Core22SwaggerWebApp
{
//public static class CustomApiConventions
//{
// [ApiConventionNameMatch(ApiConventionNameMatchBehavior.Prefix)]
// [ProducesDefaultResponseType]
// [ProducesResponseType(200)]
// [ProducesResponseType(404)]
// public static void Get([ApiConventionNameMatch(ApiConventionNameMatchBehavior.Suffix)][ApiConventionTypeMatch(ApiConventionTypeMatchBehavior.Any)] object code)
// { }
//}
public class Program
{
public static void Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.Enrich.FromLogContext()
.WriteTo.Trace()
.WriteTo.Console()
.WriteTo.File(@"C:\D\Logs\Core22SwaggerWebApp\log.txt")
.CreateLogger();
try
{
Log.Information("Starting web host");
CreateWebHostBuilder(args).Build().Run();
}
catch (Exception ex)
{
Log.Fatal(ex, "Host terminated unexpectedly");
}
finally
{
Log.CloseAndFlush();
}
}
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.UseSerilog(); // <-- Add this line
}
}
<file_sep>/Core22SwaggerWebApp.UnitTest/ValuesControllerTests.cs
using System;
using System.Collections.Generic;
using AutoFixture;
using AutoFixture.AutoMoq;
using Core22SwaggerWebApp.Controllers;
using FluentAssertions;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Moq;
using Xunit;
namespace Core22SwaggerWebApp.UnitTest
{
public class ValuesControllerTests
{
[Fact]
public void Test1() => Assert.True(true);
[Fact]
public void Get_returns_correct_result()
{
// Arrange
var fixture = new Fixture().Customize(new AutoMoqCustomization());
// var sut = new ValuesController(new Mock<ILogger<ValuesController>>().Object);
var sut = fixture.Create<ValuesController>();
// Act
var result = sut.GetAll();
// Assert
Assert.NotNull(result);
var resultValue = result.Value;
resultValue.Items.Should().BeAssignableTo<IEnumerable<CurrencyGetViewModel>>();
Assert.NotEmpty(resultValue.Items);
}
}
}
<file_sep>/Core22SwaggerWebApp/Models/ApiError.cs
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using Newtonsoft.Json;
namespace Core22SwaggerWebApp.Models
{
public sealed class ApiError
{
public const string ModelBindingErrorMessage = "Invalid parameters.";
public ApiError()
{
}
public ApiError(string message)
{
Message = message;
}
/// <summary>
/// Creates a new <see cref="ApiError"/> from the result of a model binding attempt.
/// The first model binding error (if any) is placed in the <see cref="Detail"/> property.
/// </summary>
/// <param name="modelState"></param>
public ApiError(ModelStateDictionary modelState)
{
if (modelState == null)
throw new System.ArgumentNullException(nameof(modelState));
Message = ModelBindingErrorMessage;
ModelState = modelState;
//Detail = modelState
// .FirstOrDefault(x => x.Value.Errors.Any())
// .Value?.Errors?.FirstOrDefault()?.ErrorMessage;
}
public string Message { get; set; }
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public ModelStateDictionary Detail {
get
{
var newModelStateDictionary = new ModelStateDictionary();
foreach (var element in ModelState)
{
if (!string.IsNullOrWhiteSpace(element.Key))
{
var keyParts = element.Key.Split('.');
var camelKeyParts = new List<string>();
foreach (var keyPart in keyParts)
{
camelKeyParts
.Add(
keyPart.First().ToString().ToLowerInvariant() +
(keyPart.Length > 1 ? keyPart.Substring(1) : ""));
}
// You can (add a / change this) code if the returned key is not
// composed from the ObjectName.Property, such as when it is
// composed from the property name
var newKey = camelKeyParts.Aggregate((i, j) => i + "." + j);
//newModelStateDictionary
// .AddModelError(
// newKey,
// null,
// element.Value);
foreach (var error in element.Value.Errors)
{
newModelStateDictionary
.AddModelError(newKey, error.ErrorMessage);
}
}
//else
//{
// newModelStateDictionary.AddModelError(newKey, element.Value.Errors.FirstOrDefault()?.ErrorMessage);
//}
}
return newModelStateDictionary;
}
}
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, DefaultValueHandling = DefaultValueHandling.Ignore)]
[DefaultValue("")]
public string StackTrace { get; set; }
public ModelStateDictionary ModelState { get; }
//public ModelStateDictionary ModelStateAsCamelCase(ModelStateDictionary modelState)
//{
// var newModelStateDictionary = new ModelStateDictionary();
// foreach (var element in modelState)
// {
// if (!string.IsNullOrWhiteSpace(element.Key))
// {
// var keys = element.Key.Split('.');
// var camelKeys = new List<string>();
// foreach (var key in keys)
// {
// camelKeys.Add(key.First().ToString().ToLowerInvariant() + key.Substring(1));
// }
// // You can (add a / change this) code if the returned key is not
// // composed from the ObjectName.Property, such as when it is
// // composed from the property name
// var newKey = camelKeys.Aggregate((i, j) => i + "." + j);
// newModelStateDictionary.AddModelError(newKey, element.Value.Errors.FirstOrDefault()?.ErrorMessage);
// }
// //else
// //{
// // newModelStateDictionary.AddModelError(newKey, element.Value.Errors.FirstOrDefault()?.ErrorMessage);
// //}
// }
// return newModelStateDictionary;
//}
}
}
<file_sep>/Core22SwaggerWebApp/Controllers/v0/VZeroController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace Core22SwaggerWebApp.Controllers.V0
{
public class VZeroGetViewModel
{
public string UniqueCode { get; set; } = Guid.NewGuid().ToString();
}
[Route("api/[controller]")]
[ApiController]
public class VZeroController : ControllerBase
{
// GET api/values
[HttpGet]
public ActionResult<IEnumerable<VZeroGetViewModel>> Get()
{
return new List<VZeroGetViewModel>
{
new VZeroGetViewModel()
};
}
// POST api/values
[HttpPost]
[Obsolete]
public void Post([FromBody] string value)
{
}
//[HttpGet]
////[Obsolete]
//public ActionResult<VZeroGetViewModel> Get(int id)
//{
// return new VZeroGetViewModel();
//}
}
}
<file_sep>/README.md
# Core22SwaggerWebApp
Asp.Net Core 2.2 Web App with Swagger and Serilog
<file_sep>/Core22SwaggerWebApp/Controllers/ComplexTypesController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace Core22SwaggerWebApp.Controllers
{
public class SampleComplexTypeViewModel
{
public string UniqueId { get; set; }
public DateTime RelevantDate { get; set; }
public string ItemUniqueId { get; set; }
public string ItemQualifierUniqueId { get; set; }
public bool SampleFlag { get; set; }
}
public class SampleComplexTypeGetRequestTwo
{
public string UniqueId { get; set; }
public DateTime RelevantDate { get; set; }
}
public class SampleComplexTypeGetRequestThree : SampleComplexTypeGetRequestTwo
{
public string ItemUniqueId { get; set; }
}
public class SampleComplexTypeGetRequestFour : SampleComplexTypeGetRequestThree
{
public string ItemQualifierUniqueId { get; set; }
}
public class SampleComplexTypeGetRequestFive : SampleComplexTypeGetRequestFour
{
public bool SampleFlag { get; set; }
}
[Route("api/[controller]")]
[ApiController]
public class ComplexTypesController : ControllerBase
{
[HttpGet("{uniqueId}/{relevantDate}")]
public ActionResult<IEnumerable<SampleComplexTypeViewModel>> GetAll([FromRoute] SampleComplexTypeGetRequestTwo request)
{
return GetAllCore(new SampleComplexTypeGetRequestFour
{
UniqueId = request.UniqueId,
RelevantDate = request.RelevantDate,
//ItemUniqueId = request.ItemUniqueId,
//ItemQualifierUniqueId = request.ItemQualifierUniqueId,
//SampleFlag = request.SampleFlag
});
}
[HttpGet("{uniqueId}/{relevantDate}/{itemUniqueId}")]
public ActionResult<IEnumerable<SampleComplexTypeViewModel>> GetAll([FromRoute] SampleComplexTypeGetRequestThree request)
{
return GetAllCore(new SampleComplexTypeGetRequestFour
{
UniqueId = request.UniqueId,
RelevantDate = request.RelevantDate,
ItemUniqueId = request.ItemUniqueId,
//ItemQualifierUniqueId = request.ItemQualifierUniqueId,
//SampleFlag = request.SampleFlag
});
}
[HttpGet("{uniqueId}/{relevantDate}/{itemUniqueId}/{itemQualifierUniqueId}")]
public ActionResult<IEnumerable<SampleComplexTypeViewModel>> GetAll([FromRoute] SampleComplexTypeGetRequestFour request)
{
return GetAllCore(request);
}
private ActionResult<IEnumerable<SampleComplexTypeViewModel>> GetAllCore(SampleComplexTypeGetRequestFour request)
{
var result = new List<SampleComplexTypeViewModel>
{
new SampleComplexTypeViewModel
{
UniqueId = request.UniqueId,
RelevantDate = request.RelevantDate,
ItemUniqueId = request.ItemUniqueId,
ItemQualifierUniqueId = request.ItemQualifierUniqueId,
//SampleFlag = request.SampleFlag
}
};
return result;
}
[HttpGet("{uniqueId}/{relevantDate}/{itemUniqueId}/{itemQualifierUniqueId}/{sampleFlag}")]
public ActionResult<SampleComplexTypeViewModel> Get([FromRoute] SampleComplexTypeGetRequestFive request)
{
var result = new SampleComplexTypeViewModel
{
UniqueId = request.UniqueId,
RelevantDate = request.RelevantDate,
ItemUniqueId = request.ItemUniqueId,
ItemQualifierUniqueId = request.ItemQualifierUniqueId,
SampleFlag = request.SampleFlag
};
return result;
}
}
}
<file_sep>/Core22SwaggerWebApp/Models/PagedList.cs
using System;
using System.Collections.Generic;
using System.Linq;
namespace Core22SwaggerWebApp.Models
{
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
namespace Core22SwaggerWebApp.Models
{
public class PagingOptions
{
public const int MaximinumPageSize = 100;
public const string MaximinumPageSizeText = "100";
public const string MaximinumPageSizeMessage =
"PageSize must be greater than 0 and less than " + MaximinumPageSizeText + ".";
[FromQuery]
[Range(1, int.MaxValue, ErrorMessage = "Offset must be greater than 0.")]
//[Display(Name = "pageNumber")]
//[JsonProperty(PropertyName = "pageNumber")]
public int? PageNumber { get; set; }
[FromQuery]
[Range(1, MaximinumPageSize, ErrorMessage = MaximinumPageSizeMessage)]
//[Display(Name = "pageSize")]
//[JsonProperty(PropertyName = "pageNumber")]
public int? PageSize { get; set; }
}
}
public class PagedList<T>
{
public PagedList(
IQueryable<T> itemsQuery,
int? pageNumberRequested,
int? pageSizeRequested,
int maximumPageSize = 100 /* Server-side limit */)
{
ItemsQuery = itemsQuery ?? throw new ArgumentNullException(nameof(itemsQuery));
PageNumberRequested = pageNumberRequested;
PageSizeRequested = pageSizeRequested;
// >= 1
var pageNumberNormalised = Math.Max(pageNumberRequested ?? 1, 1);
// >= 1
var maximumPageSizeNormalised = Math.Max(maximumPageSize, 1);
// >= 1
var pageSizeLowerLimit = Math.Max(pageSizeRequested ?? 10, 1);
// <= maximumPageSizeNormalised
var pageSizeNormalised = Math.Min(pageSizeLowerLimit, maximumPageSizeNormalised);
PageNumber = pageNumberNormalised;
PageSize = pageSizeNormalised;
MaximumPageSize = maximumPageSizeNormalised;
}
private IQueryable<T> ItemsQuery { get; } = new List<T>().AsQueryable();
public int? PageNumberRequested { get; }
public int? PageSizeRequested { get; }
public int PageNumber { get; } = 1;
public int PageSize { get; } = 10;
public int MaximumPageSize { get; } = 1;
public IEnumerable<T> Items => ItemsQuery.Skip((PageNumber - 1) * PageSize).Take(PageSize);
public int TotalItemCount => ItemsQuery.Count();
public int TotalPageCount => (int)Math.Ceiling((double)TotalItemCount / PageSize);
}
///// <summary>
///// Represents a single page of items with additional paging information like
///// page size, total count and total page size.
///// </summary>
///// <typeparam name="T">Type of the item in the list.</typeparam>
//public class PagedList<T>
//{
// public PagedList(
// IEnumerable<T> items,
// int pageNumber,
// int pageSize,
// int totalCount = 0)
// {
// Items = items ?? throw new ArgumentNullException(nameof(items));
// var pageNumberNormalised = Math.Max(pageNumber, 1);
// var pageSizeNormalised = Math.Min(pageSize, 100);
// var totalCountNormalised = Math.Max(Math.Max(0, totalCount), Items.Count());
// PageNumber = pageNumberNormalised;
// PageSize = pageSizeNormalised;
// TotalCount = totalCountNormalised;
// }
// public IEnumerable<T> Items { get; } = new List<T>();
// public int PageNumber { get; }
// public int PageSize { get; }
// public int TotalCount { get; }
// //public int TotalCount { get { return } } = 0;
// ///// <summary>
// ///// Gets or sets one page of items.
// ///// </summary>
// //public IEnumerable<T> Items { get; set; } = new List<T>();
// ///// <summary>
// ///// Gets or sets the page number.
// ///// </summary>
// //public int PageNumber { get; set; } = 1;
// ///// <summary>
// ///// Gets or sets the page size.
// ///// </summary>
// //public int PageSize { get; set; } = 10;
// ///// <summary>
// ///// Gets or sets the total item count.
// ///// </summary>
// //public int TotalCount { get; set; } = 0;
// ///// <summary>
// ///// Gets the total page count.
// ///// </summary>
// //public int TotalPages =>
// // (int)Math.Ceiling((double)TotalCount / PageSize);
//}
}
| 319c6fd1270ee554a931b340d5cb10f73b13585a | [
"Markdown",
"C#"
] | 12 | C# | snerks/Core22SwaggerWebApp | fc20bbb27cd39c0f74659ba10d05ebbacfe78781 | 6f1091a56e6542df54fb39812a4318ba06e91c62 |
refs/heads/main | <file_sep>var dataDoEvento = 24 ;
var idadeDoPraticipante = 19;
var numeroDeParticipantes = 99;
if (dataDoEvento >= 24 ){
console.log("permisão para criar o evento.");
} else{
console.log("sem permisão para criar o evento.");
}
if (idadeDoPraticipante >=18) {
console.log("permisão para criar o evento.");
} else {
console.log("sem permisão para criar o evento.");
}
if (numeroDeParticipantes <= 99){
console.log("Evento criado.")
}else{
console.log("O evento não pode ser criado por ter atingido o numero maximo de participantes.");
}
| c338b559824330abcc45e34d6af23cb30fd3151b | [
"JavaScript"
] | 1 | JavaScript | gabrieldev1234/ativiadade-online2 | 1c0cec5aed4ce0c45599755dc5f64311ddc5ff5c | 3f121dba0b17899c56f0c26462730975d6cfd08f |
refs/heads/master | <file_sep>package com.stylefeng.guns.rest.modular.auth.filter;
import com.stylefeng.guns.core.base.tips.ErrorTip;
import com.stylefeng.guns.core.util.RenderUtil;
import com.stylefeng.guns.rest.common.CurrentUser;
import com.stylefeng.guns.rest.common.exception.BizExceptionEnum;
import com.stylefeng.guns.rest.config.properties.JwtProperties;
import com.stylefeng.guns.rest.modular.auth.util.JwtTokenUtil;
import com.stylefeng.guns.rest.modular.vo.ResponseVO;
import io.jsonwebtoken.JwtException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.filter.OncePerRequestFilter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* 对客户端请求的jwt token验证过滤器
*
* @author fengshuonan
* @Date 2017/8/24 14:04
*/
public class AuthFilter extends OncePerRequestFilter {
private final Log logger = LogFactory.getLog(this.getClass());
@Autowired
private JwtTokenUtil jwtTokenUtil;
@Autowired
private JwtProperties jwtProperties;
@Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException {
if (request.getServletPath().equals("/" + jwtProperties.getAuthPath())) {
chain.doFilter(request, response);
return;
}
//配置忽略列表,不再拦截哪些请求(比如注册与静态资源)
//1.取出配置文件中忽略列表的地址
String ignoreUrl = jwtProperties.getIgnoreUrl();
//2.将其以,逗号为分割切开,并且放进数组中
String[] ignoreUrls = ignoreUrl.split(",");
//3.遍历循环,将数组中的忽略列表的数据遍历出来与前端传递过来的请求进行对比
for (int i=0;i<ignoreUrls.length;i++){
//如果请求路径等于忽略列表的某一个
if (request.getServletPath().startsWith(ignoreUrls[i])){
//1.一般filter都是一个链,web.xml 里面配置了几个就有几个。一个一个的连在一起
//request -> filter1 -> filter2 ->filter3 -> …. -> request resource.
//2.chain.doFilter将请求转发给过滤器链下一个filter , 如果没有filter那就是你请求的资源
//简称:放行
chain.doFilter(request,response);
return;
}
}
final String requestHeader = request.getHeader(jwtProperties.getHeader());
String authToken = null;
//从请求头中获取jwt
if (requestHeader != null && requestHeader.startsWith("Bearer ")) {
authToken = requestHeader.substring(7);
//通过Token获取UserId,并且将其存入到ThreadLocal中,以方便后续业务调用
//1.直接调取JWT的工具类的方法,获取UserId
//这里之前是通过useranme验证,所以从token取出是username,
//经过我们修改后是通过userId验证,所以token取出来的是userid
//至于为什么,因为我们后端传递给前端jwt的时候,就是传入的userID,而不再是username
//具体在AuthController里有写
String userId =jwtTokenUtil.getUsernameFromToken(authToken);
//验证出来userID是null,说明前端发过来的令牌有问题,直接返回
if (userId == null){
//因为没有返回值,所以直接return直接返回表示失败
return ;
}else {
//成功了的话,将userID放入当前线程中,谢谢
CurrentUser.saveUserId(userId);
}
//验证token是否过期,包含了验证jwt是否正确
try {
boolean flag = jwtTokenUtil.isTokenExpired(authToken);
if (flag) {
RenderUtil.renderJson(response, new ErrorTip(BizExceptionEnum.TOKEN_EXPIRED.getCode(), BizExceptionEnum.TOKEN_EXPIRED.getMessage()));
return;
}
} catch (JwtException e) {
//有异常就是token解析失败
RenderUtil.renderJson(response, new ErrorTip(BizExceptionEnum.TOKEN_ERROR.getCode(), BizExceptionEnum.TOKEN_ERROR.getMessage()));
return;
}
} else {
//header没有带Bearer字段
RenderUtil.renderJson(response, new ErrorTip(BizExceptionEnum.TOKEN_ERROR.getCode(), BizExceptionEnum.TOKEN_ERROR.getMessage()));
return;
}
chain.doFilter(request, response);
}
}<file_sep>package com.stylefeng.guns.rest.modular.vo;
import lombok.Data;
/**
* 接口通用的返回结果集
* @param <M>
*/
@Data
public class ResponseVO<M> {
//返回状态[200-成功,500-业务失败,999-系统异常]
private int status;
//返回信息
private String msg;
//返回数据实体,因为返回数据不固定所以使用泛型进行占位符,到时候我们返回什么类型就写什么类型就好
private M data;
//为图片添加前缀
private String imgPre;
//返回参数之分页参数:
private Integer nowPage;
private Integer totalPage;
//不允许别的类创建实体,只能使用我们自己定义好的类型进行返回
//有点类似枚举,其实定义一个枚举更简单方便
private ResponseVO(){
}
//静态方法,直接.出来就可以的那种,这里写的是成功的结果集
public static <M> ResponseVO success(int nowPage,int totalPage,String imgPre,M m){
//1.新建结果集对象
ResponseVO responseVO = new ResponseVO();
//为状态置200
responseVO.setStatus(200);
//传入方法传进来的数据参数
responseVO.setData(m);
//为图片设置前缀
responseVO.setImgPre(imgPre);
//设置分页的参数
responseVO.setNowPage(nowPage);
responseVO.setTotalPage(totalPage);
//返回
return responseVO;
}
//静态方法,直接.出来就可以的那种,这里写的是成功的结果集
public static <M> ResponseVO success(String imgPre,M m){
//1.新建结果集对象
ResponseVO responseVO = new ResponseVO();
//为状态置200
responseVO.setStatus(200);
//传入方法传进来的数据参数
responseVO.setData(m);
//为图片设置前缀
responseVO.setImgPre(imgPre);
//返回
return responseVO;
}
//静态方法,直接.出来就可以的那种,这里写的是成功的结果集
public static <M> ResponseVO success(M m){
//1.新建结果集对象
ResponseVO responseVO = new ResponseVO();
//为状态置200
responseVO.setStatus(200);
//传入方法传进来的数据参数
responseVO.setData(m);
//返回
return responseVO;
}
//静态方法,直接.出来就可以的那种,这里写的是成功的结果集
public static <M> ResponseVO success(String msg){
//1.新建结果集对象
ResponseVO responseVO = new ResponseVO();
//为状态置200
responseVO.setStatus(200);
//传入方法传进来的数据参数
responseVO.setMsg(msg);
//返回
return responseVO;
}
//业务失败的结果集
public static <M> ResponseVO serviceFail(String msg){
//1.新建结果集对象
ResponseVO responseVO = new ResponseVO();
//为状态置500
responseVO.setStatus(500);
//传入失败信息
responseVO.setMsg(msg);
//返回
return responseVO;
}
//系统异常的结果集(try catch中的异常)
public static <M> ResponseVO appFil(String msg){
//1.新建结果集对象
ResponseVO responseVO = new ResponseVO();
//为状态置999
responseVO.setStatus(999);
//传入失败信息
responseVO.setMsg(msg);
//返回
return responseVO;
}
}
<file_sep>package com.stylefeng.guns.api.order;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.api.order.vo.OrderVO;
import java.util.List;
public interface orderServiceAPI {
//1.验证售出的票是否为真(根据影厅id与座位号,判断数据库的座位字段中是否存在这么个作为)
boolean isTrueSeats(Integer fieldId,String seats);
//2.已经销售的作为里,有没有这些作为(判断那个座位是不是已经被卖了)
boolean isNotSoldSeats(Integer fieldId,String seats);
//3.创建订单信息,前两个都为true,才能创建订单信息
OrderVO saveOrderInfo(Integer fieldId,String seats,String seatsName,Integer userId);
//4.使用当前登录人的信息获取已经购买的订单
Page<OrderVO> getOrderByUserId(Integer userId, Page<OrderVO> page);
//5.根据FieldId获取所有已经销售的作为编号
String getSoldSeatsByFieldId(Integer fieldId);
//================支付模块接口==========================
//1,根据订单id获取订单信息
OrderVO getOrderInfoById(String orderId);
//2.根据订单id修改订单状态(参数为:订单,需要修改成什么状态)
//这种是正常写法 boolean updateOrderStatus(String orderId,Integer orderStatus);
//隐蔽写法:定义成功与失败方法,供前端调用,这样外人就不知道订单状态是什么了,假如有人拦截了你们与前端之间的信息的话
boolean paySuccess(String orderId);
boolean payFail(String orderId);
}
<file_sep>package com.stylefeng.guns.rest.modular.auth.controller;
import com.alibaba.dubbo.config.annotation.Reference;
import com.stylefeng.guns.api.user.UserAPI;
import com.stylefeng.guns.rest.modular.auth.controller.dto.AuthRequest;
import com.stylefeng.guns.rest.modular.auth.controller.dto.AuthResponse;
import com.stylefeng.guns.rest.modular.auth.util.JwtTokenUtil;
import com.stylefeng.guns.rest.modular.vo.ResponseVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 请求验证的
*
* @author fengshuonan
* @Date 2017/8/24 14:22
*/
@RestController
public class AuthController {
@Autowired
private JwtTokenUtil jwtTokenUtil;
//如果想要调用已注册的服务,只要使用dubbo的注解,并且在注解中添加接口所在的类即可
//这样就可以找到对外暴漏的接口-->进而找到接口的实现类,实现了远程调用
@Reference(interfaceClass = UserAPI.class,check = false)
private UserAPI userAPI;
@RequestMapping(value = "${jwt.auth-path}")
public ResponseVO createAuthenticationToken(AuthRequest authRequest) {
//我们先默认给true全部放进来
boolean validate = true;
//去掉guns自身的用户名密码验证机制,使用我们自己的通过userId是否存在在我们的redis数据库来判断
//userApi中的参数从authRequest中获取,
// 网关之中调用服务端的接口,经过网关鉴权和认证后的数据,
// 才会传递给user服务的接口中
//调用登录接口,返回userId
int userId =userAPI.login(authRequest.getUserName(), authRequest.getPassword());
//数据库中的userId没有0,所以0的话置为false
if (userId==0){
validate = false;
}
if (validate) {
//生成随机key
final String randomKey = jwtTokenUtil.getRandomKey();
//根据数据库返回的userId和随机key生成token,
// 而且注意数据库返回的userID是int类型,我只需要在前面加上" "+,它就可以拼接成字符串了
//防止null的问题,尽量不要使用toString
final String token = jwtTokenUtil.generateToken(""+userId, randomKey);
//将随机值与token一起返回前端,通过我们自定义的返回值
return ResponseVO.success(new AuthResponse(token,randomKey));
} else {
return ResponseVO.serviceFail("用户名或密码错误");
}
}
}
<file_sep>package com.stylefeng.guns.api.film.vo;
import lombok.Data;
import java.io.Serializable;
/**
* 定义电影详情接口返回实体类
*/
@Data
public class FilmDetailVO implements Serializable {
//首先是单纯的电影详情表里的数据
private String filmId; //电影Id(主表和详情表都有)
private String filmName; //电影名(主表没有,详情表有)
private String filmEnName; //电影英文名(详情表)
private String imgAddress; //电影图片地址(详情表)
private String score; //电影分数(详情表主表都有)
private String scoreNum; //电影评分人数(详情表)
private String totalBox; //电影总票房(电影主表)
private String info01; //电影类型(电影主表外联cat表)
private String info02; //电影来源拼接播放时长(主表和详情表拼接?)
private String info03; //电影上映时间拼接上映地区 (主表和区域表?)
private InfoRequestVO info04; //info04的返回结果集封装在了这里,就拿这个当直接返回前端的对象
}
<file_sep>package com.stylefeng.guns.rest.modular.user;
import com.alibaba.dubbo.config.annotation.Reference;
import com.stylefeng.guns.api.user.UserAPI;
import com.stylefeng.guns.api.user.vo.UserInfoModel;
import com.stylefeng.guns.api.user.vo.UserModel;
import com.stylefeng.guns.rest.common.CurrentUser;
import com.stylefeng.guns.rest.modular.vo.ResponseVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/user/")
@RestController
public class UserController {
//注入UserApi的接口,远程调用user模块里的实现类
@Reference(interfaceClass = UserAPI.class)
private UserAPI userAPI;
/**
* 注册的完整接口,
* 主要在Controller层就是判断是否为空与null,返回前端要的结果集
*
* @param userModel
* @return
*/
@PostMapping("register")
public ResponseVO reigeter(UserModel userModel) {
//如果用户名是null或去除掉前后空格后长度是0的话
if (userModel.getUsername() == null || userModel.getUsername().trim().length() == 0) {
return ResponseVO.serviceFail("用户名不能为空");
}
if (userModel.getPassword() == null || userModel.getPassword().trim().length() == 0) {
return ResponseVO.serviceFail("密码为空");
}
boolean isSuccess = userAPI.register(userModel);
if (isSuccess) {
return ResponseVO.success("注册成功");
} else {
return ResponseVO.serviceFail("注册失败");
}
}
/**
* 验证用户名是否存在的接口,(注册的时候需要)
* 如果用户名存在返回false
*
* @param username
* @return
*/
@PostMapping("check")
public ResponseVO reigeter(String username) {
//如果用户名不等于null且用户名长度不为0
if (username != null && username.trim().length() > 0) {
//当返回true的时候,表示用户名可用
boolean notExists = userAPI.checkUsername(username);
if (notExists) {
return ResponseVO.success("用户名不存在,可以使用");
} else {
return ResponseVO.serviceFail("用户名已存在,请换一个");
}
} else {
return ResponseVO.serviceFail("用户名不能为空");
}
}
/**
* 退出登录接口
* @return
*/
@PostMapping("logout")
public ResponseVO logout() {
/**
* 企业应用:
* 单点登录时效性:
* 1.前端存储JWT[七天]:只要有JWT就可以访问后端API
* 但是这样有个JWT的刷新问题,且无法精准控制JWT
* 2.所以需要配合redis,以UserId为key,以用户信息为value,对用户数据进行存储,并设置时效[1天]
* 3.这样当用户访问我们,我们就可以取出前端JWT的UserID,去查询redis数据库,如果redis数据库中的缓存存在,
* (一天内),用户不需要登录,直接访问后端即可,如果用户缓存不存在,跳转页面让用户登录
* 单点登录的退出:
* 如果用户想退出,前端清楚JWT
* 后端直接删除redis中的缓存
* 都能完成退出操作
*
* 但是现阶段没有引入redis:
* 所以采取做法是单纯的前端清除JWT
*/
//这样默认只要调用这个接口,就是退出成功了,因为前端JWT没了,进不来的
return ResponseVO.success("用户退出成功");
}
/**
* 用户查询自己信息的接口
* @return
*/
@GetMapping("getUserInfo")
public ResponseVO getUserInfo() {
//1.从当前线程变量中获取usrId
//线程中的userId是我们从JWT中获取存入到线程中的
String userId = CurrentUser.getCurrentUser();
if (userId !=null && userId.trim().length()>0){
//将用户ID传入后端进行查询
//将前端传递进来的userId转换成int类型
int uuid = Integer.parseInt(userId);
//调用写好的api,根据id查询用户的信息
UserInfoModel userInfo = userAPI.getUserInfo(uuid);
if (userInfo!=null){
//如果查询出来的结果不是null,将其返回给前端
return ResponseVO.success(userInfo);
}else {
//这个是我们代码问题
return ResponseVO.appFil("用户查询失败");
}
}else {
//这个不算问题
return ResponseVO.serviceFail("用户未登录");
}
}
/**
* 用户修改信息的接口
* @param userInfoModel
* @return
*/
@PostMapping("updateUserInfo")
public ResponseVO updateUserInfo(UserInfoModel userInfoModel) {
//1.从当前线程变量中获取usrId
//线程中的userId是我们从JWT中获取存入到线程中的
String userId = CurrentUser.getCurrentUser();
if (userId !=null && userId.trim().length()>0){
//将前端传递进来的userId转换成int类型
int uuid = Integer.parseInt(userId);
//2.判断当前登录人员的ID与修改的结果ID是否一致
if(uuid !=userInfoModel.getUuid()){
//不一致的话警告一下
return ResponseVO.serviceFail("请修改您自己的个人信息");
}
//一致的话调用我们的更新API进行更新
UserInfoModel userInfo = userAPI.updateUserInfo(userInfoModel);
if (userInfo!=null){
//如果返回的结果不是null,将其返回给前端
return ResponseVO.success(userInfo);
}else {
//这个是我们代码问题
return ResponseVO.appFil("用户修改失败");
}
}else {
//这个不算问题
return ResponseVO.serviceFail("用户未登录");
}
}
}<file_sep>package com.stylefeng.guns.rest.modular.film.vo;
import lombok.Data;
@Data
public class FilmRequestVO {
private Integer showType=1; //(不是必填)默认1:查询类型:1正在上映,2即将上映,3经典影片
private Integer sortId=1; //(否必填)默认1 排序方式:1热门2时间3评价排序
private Integer sourceId=99;//(否) 区域编号 默认99
private Integer catId=99;//(否) 类型编号 默认99
private Integer yearId=99;//(否) 年代编号 默认99
private Integer nowPage=1;//(否) 影片列表当前页数 默认1 分页参数
private Integer pageSize=18;//(否) 每页显示条数 默认18
}
<file_sep>package com.stylefeng.guns.rest.modular.cinema.service;
import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Service;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.api.cinema.CinemaServiceAPI;
import com.stylefeng.guns.api.cinema.vo.*;
import com.stylefeng.guns.api.cinema.vo.cinemaInfo.CinemaInfoVO;
import com.stylefeng.guns.api.cinema.vo.cinemaInfo.FilmInfoVO;
import com.stylefeng.guns.rest.common.persistence.dao.*;
import com.stylefeng.guns.rest.common.persistence.model.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List;
@Component
//dubbo的service注解中executes表示对线程的控制executes=10表示只能同时启用10个线程
@Service(interfaceClass = CinemaServiceAPI.class,executes = 10)
public class DefalutCinemaServiceImpl implements CinemaServiceAPI {
//引入接口所需Mapper
@Autowired
private MoocCinemaTMapper moocCinemaTMapper;
@Autowired
private MoocAreaDictTMapper moocAreaDictTMapper;
@Autowired
private MoocBrandDictTMapper moocBrandDictTMapper;
@Autowired
private MoocHallDictTMapper moocHallDictTMapper;
@Autowired
private MoocHallFilmInfoTMapper moocHallFilmInfoTMapper;
@Autowired
private MoocFieldTMapper moocFieldTMapper;
//1.根据cinemaVO分页查询影院列表(多条件组合查询单表)
//page对象中已经帮我们封装好好了总页数,我们只要传入当前页与一页多少个就行
//和pageHelper其实本质上差不多,其实这里有个细节,你都page了肯定是多个
//所以分页查询的话用Page对象接收就好了
@Override
public Page<CinemaVO> getCinemas(CinemaQueryVO cinemaQueryVO){
//业务实体集合(用于拼接返回报文的实体)
List<CinemaVO> cinemas = new ArrayList<>();
//创建分页对象,根据分页条件创建分页对象Page<被分页的对象,或者说表>
Page<MoocCinemaT> page = new Page<>(cinemaQueryVO.getNowPage(), cinemaQueryVO.getPageSize());
//判断是否传入查询条件-->bradnId,distId,halltype,是否=99,如果等于99就是没有传入参数
EntityWrapper<MoocCinemaT> entityWrapper = new EntityWrapper<>();
//如果查询条件中BrandId不等于99,也就是用户传入了参数,我们将参数作为条件赋值给条件对象
if (cinemaQueryVO.getBrandId() !=99){
//相当于where brand_id=#{cinemaQueryVO.getBrandId()}
entityWrapper.eq("brand_id",cinemaQueryVO.getBrandId());
}
if (cinemaQueryVO.getDistrictId() !=99){
entityWrapper.eq("area_id",cinemaQueryVO.getDistrictId());
}
//一个影院可以有多个影厅类型,比如2d,3dmx,啥的,所以数据库中存储的形式是#1#3#5#6#
//前端传过来是1,或者3,或者5,这种数字,所以我们需要进行模糊查询,且需要为其拼接上#,这样用户输入1就能查出来有1类型影厅的影院了
if (cinemaQueryVO.getHallType() !=99){
//模糊查询like
entityWrapper.like("hall_ids","%#"+cinemaQueryVO.getHallType()+"#%");
}
//调用mybatisplus提供的mapper接口进行分页查询
//传入page对象与entityWrapper条件对象
List<MoocCinemaT> moocCinemaTS = moocCinemaTMapper.selectPage(page, entityWrapper);
//将数据实体转换为业务实体,Mybatisplus直连对象转换成返回前端报文对象
for (MoocCinemaT moocCinemaT:moocCinemaTS) {
CinemaVO cinemaVO = new CinemaVO();
//注意数据库对应的实体有些字段的数据类型为Intger,我们这里需要转成String类型,+" "就行
cinemaVO.setUuid(moocCinemaT.getUuid() + "");
cinemaVO.setMinimumPrice(moocCinemaT.getMinimumPrice() + "");
cinemaVO.setCinemaName(moocCinemaT.getCinemaName());
cinemaVO.setAddress(moocCinemaT.getCinemaAddress());
//将转换的对象添加到cinemas集合里,毕竟是前端要的是集合
cinemas.add(cinemaVO);
}
//现在我们使用MybatisPLUS的Page对象获取关于分页的所有数据,有点像PageHelper的pageInfo对象
//1.根据条件获取影院列表总数
long counts = moocCinemaTMapper.selectCount(entityWrapper);
//2.创建Page对象,传入参数,返回对象
Page<CinemaVO> reuslt = new Page<>();
//①这是我们进行分页查询返回的全部分页结果集
reuslt.setRecords(cinemas);
//②这是前端传来的,要求一页有多少个
reuslt.setSize(cinemaQueryVO.getPageSize());
//③这是我们刚刚查出来的总共有多少条
reuslt.setTotal(counts);
//返回分页结果集对象
return reuslt;
}
//2.根据条件获取品牌列表,后端给前端设置哪项是能用的,如果前端没传参数,则将99置为true,也就是默认全部
//如果前端传入了参数,就给那个参数的active置为true,标识用户选了这个
//实现思路,根据标识符flag影响遍历后的对象,到底给哪个置true,再封装回我们的对象
@Override
public List<BrandVO> getBrands(int bradnId){
List<BrandVO> brandVOs = new ArrayList<>();
boolean flag= false;
//判断用户是否传入id
//首先根据id查询实体
MoocBrandDictT moocBrandDictT = moocBrandDictTMapper.selectById(bradnId);
//1.用户没传入参数,2.用户传入参数为99,3.用户想要查询的品牌没有数据的时候
if (bradnId ==99|| moocBrandDictT==null|| moocBrandDictT.getUuid()==null){
//前端都将99置为true
flag=true;
}
//查询所有列表,将数据库中所有品牌都查询出来
List<MoocBrandDictT> moocBrandDictTS = moocBrandDictTMapper.selectList(null);
//判断flag如果为true,则将99置为true
for (MoocBrandDictT brand:moocBrandDictTS){
BrandVO brandVO = new BrandVO();
brandVO.setBrandId(brand.getUuid()+"");
brandVO.setBradnName(brand.getShowName());
//判断如果falg为true,将99置为true,如果为false,则将其匹配的内容置为true
if (flag){
if (brand.getUuid()==99){
brandVO.setActive(true);
}
}else {
if (brand.getUuid()==bradnId){
brandVO.setActive(true);
}
}
brandVOs.add(brandVO);
}
return brandVOs;
}
//3.获取行政区域列表
@Override
public List<AreaVO> getArea(int areaId){
boolean flag = false;
List<AreaVO> areaVOS = new ArrayList<>();
// 判断brandId是否存在
MoocAreaDictT moocAreaDictT = moocAreaDictTMapper.selectById(areaId);
// 判断brandId 是否等于 99
if(areaId == 99 || moocAreaDictT==null || moocAreaDictT.getUuid() == null){
flag = true;
}
// 查询所有列表
List<MoocAreaDictT> moocAreaDictTS = moocAreaDictTMapper.selectList(null);
// 判断flag如果为true,则将99置为isActive
for(MoocAreaDictT area : moocAreaDictTS){
AreaVO areaVO = new AreaVO();
areaVO.setAreaName(area.getShowName());
areaVO.setAreaId(area.getUuid()+"");
// 如果flag为true,则需要99,如为false,则匹配上的内容为active
if(flag){
if(area.getUuid() == 99){
areaVO.setActive(true);
}
}else{
if(area.getUuid() == areaId){
areaVO.setActive(true);
}
}
areaVOS.add(areaVO);
}
return areaVOS;
}
//4.获取影院类型列表
@Override
public List<HallTypeVO> getHallTypes(int hallType){
boolean flag = false;
List<HallTypeVO> hallTypeVOS = new ArrayList<>();
// 判断brandId是否存在
MoocHallDictT moocHallDictT = moocHallDictTMapper.selectById(hallType);
// 判断brandId 是否等于 99
if(hallType == 99 || moocHallDictT==null || moocHallDictT.getUuid() == null){
flag = true;
}
// 查询所有列表
List<MoocHallDictT> moocHallDictTS = moocHallDictTMapper.selectList(null);
// 判断flag如果为true,则将99置为isActive
for(MoocHallDictT hall : moocHallDictTS){
HallTypeVO hallTypeVO = new HallTypeVO();
hallTypeVO.setHalltypeName(hall.getShowName());
hallTypeVO.setHalltypeId(hall.getUuid()+"");
// 如果flag为true,则需要99,如为false,则匹配上的内容为active
if(flag){
if(hall.getUuid() == 99){
hallTypeVO.setActive(true);
}
}else{
if(hall.getUuid() == hallType){
hallTypeVO.setActive(true);
}
}
hallTypeVOS.add(hallTypeVO);
}
return hallTypeVOS;
}
//5.根据影院编号获取影院信息
@Override
public CinemaInfoVO getCinemaInfoVOByCinemaId(int cinemaId){
//单纯的单表查询
MoocCinemaT moocCinemaT = moocCinemaTMapper.selectById(cinemaId);
//将数据实体转换成业务实体
//如果用户没有输入影院编号,返回空的影院信息
if(moocCinemaT == null){
return new CinemaInfoVO();
}
CinemaInfoVO cinemaInfoVO = new CinemaInfoVO();
cinemaInfoVO.setImgUrl(moocCinemaT.getImgAddress());
cinemaInfoVO.setCinemaPhone(moocCinemaT.getCinemaPhone());
cinemaInfoVO.setCinemaName(moocCinemaT.getCinemaName());
cinemaInfoVO.setCinemaId(moocCinemaT.getUuid()+"");
cinemaInfoVO.setCinemaId(moocCinemaT.getCinemaAddress());
return cinemaInfoVO;
}
//6.获取所有电影的信息和对应的放映场次信息,根据影院编号
//一个电影可能有多个场次播放,一对多,需要自定义Collection映射
@Override
public List<FilmInfoVO> getFilmInfoVOByCinemaId(int cinemaId){
List<FilmInfoVO> filmInfos = moocFieldTMapper.getFilmInfos(cinemaId);
return filmInfos;
}
//7.根据影院编号获取影院信息和接口5一样,所以忽略
//7.根据放映场次ID获取放映信息
@Override
public HallInfoVO getHallInfoVOByFieldId(int fieldId){
HallInfoVO hallInfo = moocFieldTMapper.getHallInfo(fieldId);
return hallInfo;
}
//8.根据放映场次查询播放的电影编号,然后根据电影编号获取对应的电影信息
@Override
public FilmInfoVO getFilmInfoByFieldId(int fieldId){
FilmInfoVO filmInfoById = moocFieldTMapper.getFilmInfoById(fieldId);
return filmInfoById;
}
@Override
public OrderQueryVO getOrderNeeds(int fieldId) {
OrderQueryVO orderQueryVO = new OrderQueryVO();
MoocFieldT moocFieldT = moocFieldTMapper.selectById(fieldId);
orderQueryVO.setCinemaId(moocFieldT.getCinemaId()+"");
orderQueryVO.setFilmPrice(moocFieldT.getPrice()+"");
return orderQueryVO;
}
}
<file_sep>package com.stylefeng.guns.rest.common;
/**
* 通用的存入线程工具
* 和创建List差不多,只不过随当前线程存在,随当前线程毁灭,作用域比List大一些,比锁机制更快
*/
public class CurrentUser {
//创建一个UserInfoModel类型的线程存储空间
private static final InheritableThreadLocal<String> threadLocal = new InheritableThreadLocal<>();
//第二种方式,我们只将我们所需的userId存入就好,这个体量就小了很多,使用方法和存入对象大同小异
//1.向当前线程存入userID
public static void saveUserId(String userId){
threadLocal.set(userId);
}
//2.从当前线程中取出userID
public static String getCurrentUser(){
return threadLocal.get();
}
//1.第一种方式直接存入对象,但是存入数据量太大,如果并发高,jvm内存爆炸
// //将前端传入的当前实体放入当前线程中
// public static void saveUserInfo(UserInfoModel userInfoModel)
// {
// threadLocal.set(userInfoModel);
// }
// //取出当前线程中的User实体对象
// public static UserInfoModel getCurrentUser()
// {
// return threadLocal.get();
// }
//}
}<file_sep>package com.stylefeng.guns.rest.modular;
import com.alibaba.dubbo.config.annotation.Reference;
import com.stylefeng.guns.api.user.UserAPI;
import org.springframework.stereotype.Component;
@Component
public class Client {
//如果想要调用已注册的服务,只要使用dubbo的注解,并且在注解中添加接口所在的类即可
//这样就可以找到对外暴漏的接口-->进而找到接口的实现类,实现了远程调用
@Reference(interfaceClass = UserAPI.class)
private UserAPI userAPI;
//这里只是演示,是否能进行远程调用,其实远程调用可以理解为,Controller层与Service的分离
//Controller层远程调用Service层的接口,进而调用其实现类,达到远程调用与复用的方式
public void run(){
userAPI.login("admin","<PASSWORD>");
}
}
<file_sep>package com.stylefeng.guns.rest.modular.film.vo;
import com.stylefeng.guns.api.film.vo.BannerVO;
import com.stylefeng.guns.api.film.vo.FilmInfo;
import com.stylefeng.guns.api.film.vo.FilmVO;
import lombok.Data;
import java.util.List;
/**
* 首页的实体类,这里封装了所有和首页信息有关的信息
* 这个实体是用于最后返还给前端指定的格式的最终实体
*/
@Data
public class FilmIndexVO {
//对应首页查询的多个banner图
//单纯一对多,一个首页俩图
private List<BannerVO> banners;
//返还前端正在热映电影信息的的实体
//一对一对多,一个热映榜对应一个编号,对应多个电影
private FilmVO hotFilms;
//还前端即将上映电影信息的实体
private FilmVO soonFilms;
//返还前端票房排行榜信息的实体
//单纯的一对多,一个排行榜有多个详细的电影信息
private List<FilmInfo> boxRanking;
//返还前端受欢迎的榜单的实体
private List<FilmInfo> expectRanking;
//返还端top100的信息
private List<FilmInfo> top100;
}
<file_sep>package com.stylefeng.guns.api.cinema;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.api.cinema.vo.*;
import com.stylefeng.guns.api.cinema.vo.cinemaInfo.CinemaInfoVO;
import com.stylefeng.guns.api.cinema.vo.cinemaInfo.FilmFieldVO;
import com.stylefeng.guns.api.cinema.vo.cinemaInfo.FilmInfoVO;
import java.util.List;
public interface CinemaServiceAPI {
//1.根据cinemaVO分页查询影院列表(多条件组合查询)
//page对象中已经帮我们封装好好了总页数,我们只要传入当前页与一页多少个就行
//和pageHelper其实本质上差不多,其实这里有个细节,你都page了肯定是多个
//所以分页查询的话用Page对象接收就好了
Page<CinemaVO> getCinemas(CinemaQueryVO cinemaQueryVO);
//2.根据条件获取品牌列表[除了数字99意外,其他的数字为isActive]
List<BrandVO> getBrands(int bradnId);
//3.获取行政区域列表
List<AreaVO> getArea(int areaId);
//4.获取影院类型列表
List<HallTypeVO> getHallTypes(int hallType);
//5.根据影院编号获取影院信息
CinemaInfoVO getCinemaInfoVOByCinemaId(int cinemaId);
//6.获取所有电影的信息和对应的放映场次信息,根据影院编号
List<FilmInfoVO> getFilmInfoVOByCinemaId(int cinemaId);
//7.根据影院编号获取影院信息和接口5一样,所以忽略
//7.根据放映场次ID获取放映信息
HallInfoVO getHallInfoVOByFieldId(int fieldId);
//8.根据放映场次查询播放的电影编号,然后根据电影编号获取对应的电影信息
FilmInfoVO getFilmInfoByFieldId(int fieldId);
/**
* 订单模块所需内容
* @param fieldId
* @return
*/
public OrderQueryVO getOrderNeeds(int fieldId);
}
<file_sep>package com.stylefeng.guns.api.film.vo;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 这些实体是用来有与数据库交互的,需要进行远程传递,所以需要序列化
* 影片列表表?
*/
@Data
public class FilmVO implements Serializable {
//影片的的编号
private int filmNum;
//影片详情的集合
private List<FilmInfo> filmInfo;
//分页列表所需对象
private int totalPage;
private int nowPage;
}
<file_sep>package com.stylefeng.guns.api.cinema.vo.cinemaInfo;
import lombok.Data;
import java.io.Serializable;
/**
* 接口三之,filmInfo下的FilmFields集合的中的FilmField对象
* 放映场次的信息
*/
@Data
public class FilmFieldVO implements Serializable {
private String fieldId;
private String beginTime;
private String endTime;
private String language;
private String hallName;
private String price;
}
<file_sep>package com.stylefeng.guns.rest.modular.order;
import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.rpc.RpcContext;
import com.baomidou.mybatisplus.plugins.Page;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import com.stylefeng.guns.api.alipay.AlipayServiceAPI;
import com.stylefeng.guns.api.alipay.vo.AliPayInfoVO;
import com.stylefeng.guns.api.alipay.vo.AliPayResultVO;
import com.stylefeng.guns.api.order.orderServiceAPI;
import com.stylefeng.guns.api.order.vo.OrderVO;
import com.stylefeng.guns.core.util.ToolUtil;
import com.stylefeng.guns.rest.common.CurrentUser;
import com.stylefeng.guns.rest.modular.vo.ResponseVO;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
@RequestMapping("/order/")
public class OrderController {
private static final String IMG_PRE="这里是二维码的所在地址的前缀,公司域名";
@Reference(interfaceClass = orderServiceAPI.class,check = false)
private orderServiceAPI orderServiceAPI;
@Reference(interfaceClass = AlipayServiceAPI.class,check = false)
private AlipayServiceAPI alipayServiceAPI;
//定义Hystrix的核心fallbackMethod,也就是返回方法
//要求返回值和类型必须和注解的方法完全一致,服务降级
public ResponseVO error(
Integer fieldId,String soldSeats,String seatsName
){
return ResponseVO.serviceFail("抱歉,下单的人太多了,请稍后重置");
}
/**
* 1、 用户下单购票接口
* 注意如果使用Hystrix提供服务降级功能需要自定义fallbackMethod方法
* @return
*/
@HystrixCommand(fallbackMethod = "error", commandProperties = {
@HystrixProperty(name="execution.isolation.strategy", value = "THREAD"),
@HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "4000"),
@HystrixProperty(name = "circuitBreaker.requestVolumeThreshold", value = "10"),
@HystrixProperty(name = "circuitBreaker.errorThresholdPercentage", value = "50")},
threadPoolProperties = {
@HystrixProperty(name = "coreSize", value = "1"),
@HystrixProperty(name = "maxQueueSize", value = "10"),
@HystrixProperty(name = "keepAliveTimeMinutes", value = "1000"),
@HystrixProperty(name = "queueSizeRejectionThreshold", value = "8"),
@HystrixProperty(name = "metrics.rollingStats.numBuckets", value = "12"),
@HystrixProperty(name = "metrics.rollingStats.timeInMilliseconds", value = "1500")
})
@PostMapping("buyTickets")
public ResponseVO buyTicket(
Integer fieldId,String soldSeats,String seatsName
) {
try {
//1.验证售出的票是否为真
boolean isTrue = orderServiceAPI.isTrueSeats(fieldId, soldSeats);
//2.验证已经销售的座位,有没有这些作为(验证前端是否卖出了已经售出座位)
boolean isnotSoldSeats = orderServiceAPI.isNotSoldSeats(fieldId, soldSeats);
//验证上述两个内容有一个不为真,就不创建订单
if (isnotSoldSeats&&isTrue) {
//3.如果前个步骤验证成功了,就创建订单信息,注意获取登录人
String userId = CurrentUser.getCurrentUser();
//如果用户登录了
if (userId != null && userId.trim().length() >0) {
Integer userId1 = Integer.parseInt(userId);
OrderVO orderVO = orderServiceAPI.saveOrderInfo(fieldId, soldSeats, seatsName, userId1);
if (orderVO==null){
log.error("购票业务异常");
return ResponseVO.serviceFail("购票业务异常");
}else {
//成功返回最终实体
return ResponseVO.success(orderVO);
}
}else {
return ResponseVO.serviceFail("用户未登录");
}
//如果其中有一个不为真,就报错返回信息
}else {
log.error("用户输入订单信息异常");
return ResponseVO.serviceFail("用户输入订单信息异常");
}
} catch (Exception e) {
log.error("购票业务异常",e);
return ResponseVO.serviceFail("购票业务异常");
}
}
/**
* 2.用户获取订单详情的接口
* @return
*/
@PostMapping("getOrderInfo")
public ResponseVO getOrderInfo(
//非必填的话,我们可以通过@RequestParam进行控制
@RequestParam(name = "nowPage",required = false,defaultValue ="1" ) Integer nowPage,
@RequestParam(name="pageSize",required = false,defaultValue = "5") Integer pageSize
) {
//获取当前登录人的信息
String userId = CurrentUser.getCurrentUser();
//使用当前登录人的信息获取(查询)已经购买的订单
Page<OrderVO> page = new Page<>(nowPage, pageSize);
//判断前端传入的用户id不为null,不为0
if (userId != null && userId.trim().length() > 0) {
Page<OrderVO> result = orderServiceAPI.getOrderByUserId(Integer.parseInt(userId), page);
//返回前端需要的分页后的结果集,以及其他分页信息
return ResponseVO.success(nowPage, (int) result.getPages(), "", result.getRecords());
} else {
return ResponseVO.serviceFail("用户未登录");
}
}
/**
* 根据订单号获取二维码
* 订单号必须传
* @param orderId
* @return
*/
@PostMapping("getPayInfo")
public ResponseVO getPayInfo(@RequestParam("orderId") String orderId){
//获取当前登录人信息从JWT存入到的localStroage中
String userId = CurrentUser.getCurrentUser();
//判断用户id是否为空
if (StringUtils.isAllEmpty(userId)){
return ResponseVO.serviceFail("用户请登录");
}
//根据订单id获取二维码的返回结果
AliPayInfoVO qrCode = alipayServiceAPI.getQRCode(orderId);
return ResponseVO.success(IMG_PRE,qrCode);
}
/**
* 根据订单ID和重试支付次数,返回支付结果(成功就是订单结果,失败就是支付失败)
* @param orderId
* @param tryNums
* @return
*/
@PostMapping("getPayResult")
public ResponseVO getPayResult (@RequestParam("orderId") String orderId,
@RequestParam(name = "tryNums",required = false,defaultValue = "1") Integer tryNums
){
//获取当前登录人信息从JWT存入到的threadLocal中
String userId = CurrentUser.getCurrentUser();
if (StringUtils.isEmpty(userId)){
return ResponseVO.success("抱歉您未登录");
}
//仅仅通过OrderId查询订单是不安全的,还需要用户ID,一起,让用户只能查询自己的订单
//将当前登录人的信息传递到后端(服务方),通过隐式传参的方法
RpcContext.getContext().setAttachment("userId",userId);
//支付宝端发我们的信息,告诉我们这个订单的id和重试次数,如果重试大于4就返回用户这个订单支付失败
if (tryNums>=4){
return ResponseVO.serviceFail("订单支付失败,请稍后重试");
}else {
//重试次数没有大于4,我们去调用支付宝接口查询是否被扫码了
//并且根据订单Id得到结果
AliPayResultVO aliPayResultVO = alipayServiceAPI.getOrderStatus(orderId);
//如果返回的对象为null或者订单编号为空(就是没有输入订单编号的情况下查支付状态),就是用户支付不成功
if(aliPayResultVO==null|| StringUtils.isEmpty(aliPayResultVO.getOrderId())){
AliPayResultVO serviceFailVO = new AliPayResultVO();
serviceFailVO.setOrderId(orderId);
serviceFailVO.setOrderMsg("支付不成功");
serviceFailVO.setOrderStatus(0);
//告诉前端支付没成功,而且支付状态是0
return ResponseVO.success(serviceFailVO);
}
//否则的话就是支付成功了,返回前端索要数据就行
return ResponseVO.success(aliPayResultVO);
}
}
}
| ac8abfd075a9d72f085820977081e54b5f2c2d70 | [
"Java"
] | 15 | Java | Neiloooo/Meeting-Film-maoyan | 5ce9031c7ba0f1c0fbc351f982c6c92566184ad0 | 7af2edcfa583e5ad032aea2cc797d389717247bb |
refs/heads/master | <repo_name>itstack-org/leo<file_sep>/build.gradle
plugins {
id 'java'
}
group 'com.github.xuchengen.leo'
version '1.0-SNAPSHOT'
// 私服仓库
repositories {
mavenCentral()
}
// 依赖
dependencies {
}<file_sep>/leo-plug/src/main/java/com/github/xuchengen/leo/plug/PerRunCheck.java
package com.github.xuchengen.leo.plug;
import cn.hutool.core.util.StrUtil;
import com.github.xuchengen.leo.plug.util.PluginUtil;
import com.intellij.execution.Executor;
import com.intellij.execution.configurations.JavaParameters;
import com.intellij.execution.configurations.ParametersList;
import com.intellij.execution.configurations.RunConfiguration;
import com.intellij.execution.configurations.RunProfile;
import com.intellij.execution.runners.JavaProgramPatcher;
import com.intellij.openapi.projectRoots.JavaSdk;
import com.intellij.openapi.projectRoots.JavaSdkVersion;
import com.intellij.openapi.projectRoots.Sdk;
import java.util.Objects;
/**
* 运行前检查<br>
* 作者:徐承恩<br>
* 邮箱:<EMAIL><br>
* 日期:2021/5/6 3:20 下午<br>
*/
public class PerRunCheck extends JavaProgramPatcher {
@Override
public void patchJavaParameters(Executor executor, RunProfile configuration, JavaParameters javaParameters) {
if (!(configuration instanceof RunConfiguration)) {
return;
}
Sdk jdk = javaParameters.getJdk();
if (Objects.isNull(jdk)) {
return;
}
JavaSdkVersion version = JavaSdk.getInstance().getVersion(jdk);
if (Objects.isNull(version)) {
return;
}
if (version.compareTo(JavaSdkVersion.JDK_1_8) < 0) {
return;
}
String agentCoreJarPath = PluginUtil.getAgentCoreJarPath();
if (StrUtil.isBlank(agentCoreJarPath)) {
return;
}
RunConfiguration runConfiguration = (RunConfiguration) configuration;
ParametersList vmParametersList = javaParameters.getVMParametersList();
vmParametersList.addParametersString(Constant.AGENT_PREFIX + agentCoreJarPath);
vmParametersList.addNotEmptyProperty(Constant.AGENT_PARAM_PROJECT_ID, runConfiguration.getProject().getLocationHash());
}
}
<file_sep>/leo-agent-core/src/main/java/com/github/xuchengen/leo/agent/core/handler/SQLServerHandler.java
package com.github.xuchengen.leo.agent.core.handler;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import com.github.xuchengen.leo.agent.core.ApplicationContext;
import com.github.xuchengen.leo.agent.core.ApplicationContextManager;
import com.github.xuchengen.leo.agent.core.ShowSQLExecutor;
import com.github.xuchengen.leo.dal.dao.SwitchDAO;
import com.github.xuchengen.leo.dal.entity.SqlRecordDO;
import javassist.ClassPool;
import javassist.CtClass;
import javassist.CtMethod;
import java.io.ByteArrayInputStream;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
/**
* SQLServer重建处理器<br>
* 作者:徐承恩<br>
* 邮箱:<EMAIL><br>
* 日期:2021/4/16 2:13 下午<br>
*/
public class SQLServerHandler implements Handler {
private static final String PRODUCT_NAME = "Microsoft SQL Server";
private static final String TARGET_CLASS_NAME = "com/microsoft/sqlserver/jdbc/SQLServerStatement";
private Class<?> DATETIME_OFFSET_CLASS = null;
@Override
public byte[] rebuild(byte[] classfileBuffer) {
CtClass cc = null;
try {
ClassPool cp = ClassPool.getDefault();
cp.importPackage(ShowSQLExecutor.class.getName());
cc = cp.makeClass(new ByteArrayInputStream(classfileBuffer));
CtMethod m = cc.getDeclaredMethod("executeStatement");
m.insertBefore(StrUtil.format("{ShowSQLExecutor.execute(\"{}\",this);}", PRODUCT_NAME));
return cc.toBytecode();
} catch (Exception e) {
return classfileBuffer;
} finally {
if (Objects.nonNull(cc)) {
cc.detach();
}
}
}
@Override
public void showSql(Object object) {
try {
if (Objects.isNull(DATETIME_OFFSET_CLASS)) {
DATETIME_OFFSET_CLASS = Class.forName("microsoft.sql.DateTimeOffset");
}
ApplicationContext applicationContext = ApplicationContextManager.getInstance().getApplicationContext();
SwitchDAO switchDAO = applicationContext.getSwitchDAO();
if (!switchDAO.isOpen(applicationContext.getProjectId())) {
return;
}
String originalSql = (String) BeanUtil.getFieldValue(object, "userSQL");
Object[] params = (Object[]) BeanUtil.getFieldValue(object, "inOutParam");
if (Objects.isNull(originalSql) || StrUtil.isBlank(originalSql)) {
return;
}
if (Objects.isNull(params)) {
params = new Object[0];
}
List<String> paramValues = new ArrayList<>();
boolean support = true;
for (Object param : params) {
Object setterDtv = BeanUtil.getFieldValue(param, "setterDTV");
Object impl = BeanUtil.getFieldValue(setterDtv, "impl");
Object value = BeanUtil.getFieldValue(impl, "value");
if (value instanceof Long || value instanceof Double || value instanceof Integer
|| value instanceof Float || value instanceof Short || value instanceof BigDecimal) {
paramValues.add(String.valueOf(value));
continue;
}
if (value instanceof Boolean) {
paramValues.add((boolean) value ? "1" : "0");
continue;
}
if (value instanceof String) {
paramValues.add(StrUtil.builder("'", value.toString(), "'").toString());
continue;
}
if (value instanceof Date) {
paramValues.add(StrUtil.builder("'", DateUtil.formatDateTime((Date) value), "'").toString());
continue;
}
if (DATETIME_OFFSET_CLASS.isInstance(value)) {
paramValues.add(StrUtil.builder("'", value.toString(), "'").toString());
continue;
}
paramValues.add("?");
support = false;
}
String replaceSql = originalSql;
if (support) {
String[] sqlArray = originalSql.split("\\?");
StringBuilder buf = new StringBuilder();
for (int i = 0; i < sqlArray.length; i++) {
buf.append(sqlArray[i]);
if (i < paramValues.size()) {
buf.append(paramValues.get(i));
}
}
replaceSql = buf.toString();
}
SqlRecordDO sqlRecordDO = new SqlRecordDO();
sqlRecordDO.setDatabaseName(PRODUCT_NAME);
sqlRecordDO.setProjectId(applicationContext.getProjectId());
sqlRecordDO.setOriginalSql(originalSql);
sqlRecordDO.setReplaceSql(replaceSql);
sqlRecordDO.setIsSupport(support);
sqlRecordDO.setFlag(false);
sqlRecordDO.setThreadId(Thread.currentThread().getId());
sqlRecordDO.setCreateTime(new Date());
applicationContext.getSqlRecordDAO().insert(sqlRecordDO);
} catch (Exception e) {
}
}
@Override
public String getTargetClassName() {
return TARGET_CLASS_NAME;
}
@Override
public String getProductName() {
return PRODUCT_NAME;
}
}
<file_sep>/leo-plug/src/main/java/com/github/xuchengen/leo/plug/ConsoleToolWindow.java
package com.github.xuchengen.leo.plug;
import cn.hutool.core.io.IoUtil;
import com.github.xuchengen.leo.plug.action.StartupAction;
import com.github.xuchengen.leo.plug.action.StopAction;
import com.github.xuchengen.leo.plug.service.PrintService;
import com.intellij.codeEditor.printing.PrintAction;
import com.intellij.execution.actions.ClearConsoleAction;
import com.intellij.execution.ui.ConsoleView;
import com.intellij.execution.ui.ConsoleViewContentType;
import com.intellij.openapi.actionSystem.ActionManager;
import com.intellij.openapi.actionSystem.ActionToolbar;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.DefaultActionGroup;
import com.intellij.openapi.editor.actions.ScrollToTheEndToolbarAction;
import com.intellij.openapi.editor.actions.ToggleUseSoftWrapsToolbarAction;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Disposer;
import com.intellij.openapi.wm.ToolWindow;
import com.intellij.openapi.wm.ToolWindowFactory;
import com.intellij.ui.content.Content;
import com.intellij.ui.content.ContentFactory;
import org.apache.commons.lang.StringUtils;
import org.jetbrains.annotations.NotNull;
import javax.swing.*;
import java.awt.*;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import static com.intellij.openapi.actionSystem.ActionPlaces.UNKNOWN;
/**
* 控制台窗口实现类<br>
* 作者:徐承恩<br>
* 邮箱:<EMAIL><br>
* 日期:2021/4/25 1:05 下午<br>
*/
public class ConsoleToolWindow implements ToolWindowFactory {
@Override
public void createToolWindowContent(@NotNull Project project, @NotNull ToolWindow toolWindow) {
// 控制台视图
ConsoleView consoleView = project.getService(PrintService.class).getConsoleView();
// 输出控制台文本LOGO
printLogo(consoleView);
// 创建Action组
DefaultActionGroup actionGroup = new DefaultActionGroup();
// 创建工具栏
ActionToolbar actionToolbar = ActionManager.getInstance().createActionToolbar(UNKNOWN, actionGroup, false);
actionToolbar.setTargetComponent(consoleView.getComponent());
// 创建打印任务
actionGroup.add(new StartupAction());
actionGroup.add(new StopAction());
actionGroup.addAll(getDefaultAction(consoleView));
// 创建面板
JPanel jPanel = new JPanel(new BorderLayout());
jPanel.add(consoleView.getComponent(), BorderLayout.CENTER);
jPanel.add(actionToolbar.getComponent(), BorderLayout.WEST);
ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();
Content content = contentFactory.createContent(jPanel, StringUtils.EMPTY, false);
toolWindow.getContentManager().addContent(content);
Disposer.register(project, consoleView);
}
/**
* 获取ConsoleView默认的几个Action
*
* @param consoleView 控制台视图
* @return AnAction[]
*/
AnAction[] getDefaultAction(ConsoleView consoleView) {
AnAction[] consoleActions = consoleView.createConsoleActions();
List<AnAction> myActions = new ArrayList<>();
for (AnAction consoleAction : consoleActions) {
if (consoleAction instanceof ToggleUseSoftWrapsToolbarAction) {
myActions.add(consoleAction);
continue;
}
if (consoleAction instanceof ScrollToTheEndToolbarAction) {
myActions.add(consoleAction);
continue;
}
if (consoleAction instanceof ClearConsoleAction) {
myActions.add(consoleAction);
continue;
}
if (consoleAction instanceof PrintAction) {
myActions.add(consoleAction);
}
}
return myActions.toArray(AnAction.EMPTY_ARRAY);
}
/**
* 输出文本型LOGO
*
* @param consoleView 控制台视图
*/
void printLogo(ConsoleView consoleView) {
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("logo.txt");
if (Objects.nonNull(inputStream)) {
String logoText = IoUtil.readUtf8(inputStream);
consoleView.print(logoText, ConsoleViewContentType.LOG_INFO_OUTPUT);
}
}
}
<file_sep>/README.md
# leo
Leo是一个基于Java agent技术实现的一款IDEA插件,它在项目运行期输出SQL语句辅助你更好的编码
<file_sep>/leo-plug/build.gradle
plugins {
id 'java'
id 'org.jetbrains.intellij' version '0.7.2'
}
group 'com.github.xuchengen.leo'
version '1.0.1'
repositories {
mavenCentral()
}
dependencies {
// 添加libs目录中的jar
implementation fileTree(dir: 'libs', includes: ['*jar'])
}
intellij {
version '2021.1'
plugins = ['com.intellij.java']
}
<file_sep>/leo-agent-core/src/main/java/com/github/xuchengen/leo/agent/core/AgentClassFileTransformer.java
package com.github.xuchengen.leo.agent.core;
import java.lang.instrument.ClassFileTransformer;
import java.security.ProtectionDomain;
/**
* 代理类文件转换器<br>
* 作者:徐承恩<br>
* 邮箱:<EMAIL><br>
* 日期:2021/5/8 10:19 上午<br>
*/
public class AgentClassFileTransformer implements ClassFileTransformer {
public AgentClassFileTransformer() throws Exception {
if (!ApplicationContextManager.isInitialized()) {
ApplicationContextManager.init();
}
}
@Override
public byte[] transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer) {
ApplicationContext applicationContext = ApplicationContextManager.getInstance().getApplicationContext();
if (applicationContext.contains(className)) {
return applicationContext.getHandler(className).rebuild(classfileBuffer);
}
return classfileBuffer;
}
}
<file_sep>/leo-dal/src/main/java/com/github/xuchengen/leo/dal/dao/SwitchDAO.java
package com.github.xuchengen.leo.dal.dao;
import com.github.xuchengen.leo.dal.entity.SwitchDO;
import com.j256.ormlite.dao.Dao;
import com.j256.ormlite.jdbc.spring.DaoFactory;
import com.j256.ormlite.misc.TransactionManager;
import com.j256.ormlite.stmt.DeleteBuilder;
import com.j256.ormlite.stmt.UpdateBuilder;
import com.j256.ormlite.support.ConnectionSource;
import java.sql.SQLException;
import java.util.Date;
import java.util.List;
import java.util.concurrent.Callable;
/**
* 开关表数据访问类<br>
* 作者:徐承恩<br>
* 邮箱:<EMAIL><br>
* 日期:2021/4/29 2:24 下午<br>
*/
public class SwitchDAO {
private final Dao<SwitchDO, Long> dao;
private final ConnectionSource connectionSource;
/**
* 构造方法
*
* @param connectionSource 连接源对象
* @throws SQLException SQL异常对象
*/
public SwitchDAO(ConnectionSource connectionSource) throws SQLException {
this.connectionSource = connectionSource;
dao = DaoFactory.createDao(connectionSource, SwitchDO.class);
}
/**
* 创建
*
* @param projectId 项目ID
* @throws SQLException SQL异常
*/
public void create(final String projectId) throws SQLException {
final List<SwitchDO> list = dao.queryForEq("project_id", projectId);
TransactionManager transactionManager = new TransactionManager(connectionSource);
transactionManager.callInTransaction(new Callable<Object>() {
@Override
public Object call() throws Exception {
for (SwitchDO switchDO : list) {
dao.deleteById(switchDO.getId());
}
SwitchDO switchDO = new SwitchDO();
switchDO.setProjectId(projectId);
switchDO.setIsOpen(false);
switchDO.setCreateTime(new Date());
dao.create(switchDO);
return null;
}
});
}
/**
* 根据项目ID删除
*
* @param projectId 项目ID
* @throws SQLException
*/
public void deleteByProjectId(String projectId) throws SQLException {
DeleteBuilder<SwitchDO, Long> deleteBuilder = dao.deleteBuilder();
deleteBuilder.where().eq("project_id", projectId);
deleteBuilder.delete();
}
/**
* 是否打开
*
* @param projectId 项目ID
* @return boolean
* @throws SQLException SQL异常
*/
public boolean isOpen(String projectId) throws SQLException {
List<SwitchDO> list = dao.queryForEq("project_id", projectId);
if (null != list && list.size() > 0) {
return list.get(0).getIsOpen();
}
return false;
}
/**
* 打开
*
* @param projectId 项目ID
* @throws SQLException SQL异常对象
*/
public void open(final String projectId) throws SQLException {
openOrClose(projectId, true);
}
/**
* 关闭
*
* @param projectId 项目ID
* @throws SQLException SQL异常对象
*/
public void close(final String projectId) throws SQLException {
openOrClose(projectId, false);
}
/**
* 打开或者关闭
*
* @param projectId 项目ID
* @param isOpen 是否打开
* @throws SQLException SQL异常对象
*/
private void openOrClose(final String projectId, final boolean isOpen) throws SQLException {
final List<SwitchDO> list = dao.queryForEq("project_id", projectId);
TransactionManager transactionManager = new TransactionManager(connectionSource);
transactionManager.callInTransaction(new Callable<Object>() {
@Override
public Object call() throws Exception {
for (SwitchDO switchDO : list) {
UpdateBuilder<SwitchDO, Long> builder = dao.updateBuilder();
builder.where().eq("id", switchDO.getId());
builder.updateColumnValue("is_open", isOpen);
builder.update();
}
return null;
}
});
}
}
<file_sep>/leo-agent-core/src/main/java/com/github/xuchengen/leo/agent/core/Constant.java
package com.github.xuchengen.leo.agent.core;
import java.io.File;
/**
* 常量<br>
* 作者:徐承恩<br>
* 邮箱:<EMAIL><br>
* 日期:2021/4/30 9:44 上午<br>
*/
public interface Constant {
/**
* 用户目录
*/
String USER_HOME = System.getProperty("user.home");
/**
* 目录名称
*/
String DIR_NAME = ".leo";
/**
* DB文件名称
*/
String DB_FILE_NAME = "sql_dump.db";
/**
* DB文件路径
*/
String DB_FILE_PATH = USER_HOME + File.separator + DIR_NAME + File.separator + DB_FILE_NAME;
/**
* SQLite JDBC URL
*/
String SQLITE_JDBC_URL = "jdbc:sqlite:" + DB_FILE_PATH;
/**
* agent参数项目ID
*/
String AGENT_PARAM_PROJECT_ID = "leo.projectId";
}
<file_sep>/leo-dal/build.gradle
plugins {
id 'java'
}
group 'com.github.xuchengen.leo'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
// 运行时依赖
implementation group: 'org.xerial', name: 'sqlite-jdbc', version: '3.7.2'
implementation group: 'com.j256.ormlite', name: 'ormlite-jdbc', version: '5.3'
}
<file_sep>/leo-agent-core/src/main/java/com/github/xuchengen/leo/agent/core/handler/OracleHandler.java
package com.github.xuchengen.leo.agent.core.handler;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import com.github.xuchengen.leo.agent.core.ApplicationContext;
import com.github.xuchengen.leo.agent.core.ApplicationContextManager;
import com.github.xuchengen.leo.agent.core.ShowSQLExecutor;
import com.github.xuchengen.leo.dal.dao.SwitchDAO;
import com.github.xuchengen.leo.dal.entity.SqlRecordDO;
import javassist.ClassPool;
import javassist.CtClass;
import javassist.CtMethod;
import java.io.ByteArrayInputStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
/**
* Oracle重建类处理器<br>
* 作者:徐承恩<br>
* 邮箱:<EMAIL><br>
* 日期:2021/4/13 4:55 下午<br>
*/
public class OracleHandler implements Handler {
private static final String PRODUCT_NAME = "Oracle";
private static final String TARGET_CLASS_NAME = "oracle/jdbc/driver/OraclePreparedStatement";
private static Class<?> NUM_CLASS = null;
private static Class<?> STRING_CLASS = null;
private static Class<?> DATE_CLASS = null;
@Override
public byte[] rebuild(byte[] classfileBuffer) {
CtClass cc = null;
try {
ClassPool cp = ClassPool.getDefault();
cp.importPackage(ShowSQLExecutor.class.getName());
cc = cp.makeClass(new ByteArrayInputStream(classfileBuffer));
CtMethod m = cc.getDeclaredMethod("executeInternal");
m.insertBefore(StrUtil.format("{ShowSQLExecutor.execute(\"{}\",this);}", PRODUCT_NAME));
return cc.toBytecode();
} catch (Exception e) {
return classfileBuffer;
} finally {
if (Objects.nonNull(cc)) {
cc.detach();
}
}
}
@Override
public void showSql(Object object) {
try {
if (Objects.isNull(NUM_CLASS) || Objects.isNull(STRING_CLASS) || Objects.isNull(DATE_CLASS)) {
NUM_CLASS = Class.forName("oracle.jdbc.driver.VarnumBinder");
STRING_CLASS = Class.forName("oracle.jdbc.driver.VarcharBinder");
DATE_CLASS = Class.forName("oracle.jdbc.driver.DateCommonBinder");
}
ApplicationContext applicationContext = ApplicationContextManager.getInstance().getApplicationContext();
SwitchDAO switchDAO = applicationContext.getSwitchDAO();
if (!switchDAO.isOpen(applicationContext.getProjectId())) {
return;
}
Object sqlObject = BeanUtil.getFieldValue(object, "sqlObject");
Object[] currentRowBinders = (Object[]) BeanUtil.getFieldValue(object, "currentRowBinders");
if (Objects.isNull(sqlObject)) {
return;
}
String originalSql = sqlObject.toString();
if (StrUtil.isBlank(originalSql)) {
return;
}
if (Objects.isNull(currentRowBinders)) {
currentRowBinders = new Object[0];
}
List<String> paramValues = new ArrayList<>();
boolean support = true;
for (Object currentRowBinder : currentRowBinders) {
Object paramVal = BeanUtil.getFieldValue(currentRowBinder, "paramVal");
if (NUM_CLASS.isInstance(currentRowBinder)) {
paramValues.add(String.valueOf(paramVal));
continue;
}
if (STRING_CLASS.isInstance(currentRowBinder)) {
paramValues.add(StrUtil.builder("'", String.valueOf(paramVal), "'").toString());
continue;
}
if (DATE_CLASS.isInstance(currentRowBinder)) {
String template = "TO_DATE('{}','yyyy-mm-dd HH24:mi:ss')";
String dateStr = DateUtil.formatDateTime((Date) paramVal);
paramValues.add(StrUtil.format(template, dateStr));
continue;
}
paramValues.add("?");
support = false;
}
String replaceSql = originalSql;
if (support) {
String[] sqlArray = originalSql.split("\\?");
StringBuilder buf = new StringBuilder();
for (int i = 0; i < sqlArray.length; i++) {
buf.append(sqlArray[i]);
if (i < paramValues.size()) {
buf.append(paramValues.get(i));
}
}
replaceSql = buf.toString();
}
SqlRecordDO sqlRecordDO = new SqlRecordDO();
sqlRecordDO.setDatabaseName(PRODUCT_NAME);
sqlRecordDO.setProjectId(applicationContext.getProjectId());
sqlRecordDO.setOriginalSql(originalSql);
sqlRecordDO.setReplaceSql(replaceSql);
sqlRecordDO.setIsSupport(support);
sqlRecordDO.setFlag(false);
sqlRecordDO.setThreadId(Thread.currentThread().getId());
sqlRecordDO.setCreateTime(new Date());
applicationContext.getSqlRecordDAO().insert(sqlRecordDO);
} catch (Exception e) {
}
}
@Override
public String getTargetClassName() {
return TARGET_CLASS_NAME;
}
@Override
public String getProductName() {
return PRODUCT_NAME;
}
}<file_sep>/leo-agent-core/build.gradle
plugins {
id 'java'
id "com.github.johnrengelman.shadow" version "6.1.0"
}
group 'com.github.xuchengen.leo'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
// 仓库
repositories {
mavenCentral()
}
// 依赖
dependencies {
// 运行时依赖
implementation group: 'org.javassist', name: 'javassist', version: '3.27.0-GA'
implementation group: 'cn.hutool', name: 'hutool-all', version: '5.6.4'
implementation project(':leo-dal')
/*implementation group: 'mysql', name: 'mysql-connector-java', version: '5.1.49'
implementation group: 'com.oracle.database.jdbc', name: 'ojdbc8', version: '192.168.3.11'
implementation group: 'com.microsoft.sqlserver', name: 'mssql-jdbc', version: '9.2.1.jre8'
implementation group: 'org.postgresql', name: 'postgresql', version: '42.2.19'*/
// 编译期依赖
compileOnly group: 'com.j256.ormlite', name: 'ormlite-jdbc', version: '5.3'
compileOnly group: 'org.xerial', name: 'sqlite-jdbc', version: '3.7.2'
}
shadowJar {
manifest {
attributes(
'Premain-Class': 'com.github.xuchengen.leo.agent.core.EntryPoint'
)
}
}<file_sep>/leo-plug/src/main/resources/i18n/i18n_zh.properties
action.start=启动
action.stop=停止
sql.databaseName=数据库名称:
sql.threadId=线程号:
sql.datetime=时间:
sql.originalSql=原始SQL:
sql.replaceSql=替换SQL:<file_sep>/leo-plug/src/main/resources/i18n/i18n.properties
action.start=start
action.stop=stop
sql.databaseName=Database Name:
sql.threadId=Thread ID:
sql.datetime=Datetime:
sql.originalSql=Original SQL:
sql.replaceSql=Replace SQL:
<file_sep>/leo-agent-core/src/main/java/com/github/xuchengen/leo/agent/core/handler/MySQLHandler.java
package com.github.xuchengen.leo.agent.core.handler;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ReflectUtil;
import cn.hutool.core.util.StrUtil;
import com.github.xuchengen.leo.agent.core.ApplicationContext;
import com.github.xuchengen.leo.agent.core.ApplicationContextManager;
import com.github.xuchengen.leo.agent.core.ShowSQLExecutor;
import com.github.xuchengen.leo.dal.dao.SwitchDAO;
import com.github.xuchengen.leo.dal.entity.SqlRecordDO;
import javassist.ClassPool;
import javassist.CtClass;
import javassist.CtMethod;
import java.io.ByteArrayInputStream;
import java.util.Date;
import java.util.Objects;
/**
* MySQL重建类处理器<br>
* 作者:徐承恩<br>
* 邮箱:<EMAIL><br>
* 日期:2021/4/13 3:31 下午<br>
*/
public class MySQLHandler implements Handler {
private static final String PRODUCT_NAME = "MySQL";
private static final String TARGET_CLASS_NAME = "com/mysql/jdbc/PreparedStatement";
@Override
public byte[] rebuild(byte[] classfileBuffer) {
CtClass cc = null;
try {
ClassPool cp = ClassPool.getDefault();
cp.importPackage(ShowSQLExecutor.class.getName());
cc = cp.makeClass(new ByteArrayInputStream(classfileBuffer));
CtMethod m = cc.getDeclaredMethod("executeInternal");
m.insertBefore(StrUtil.format("{ShowSQLExecutor.execute(\"{}\",this);}", PRODUCT_NAME));
return cc.toBytecode();
} catch (Exception e) {
return classfileBuffer;
} finally {
if (Objects.nonNull(cc)) {
cc.detach();
}
}
}
@Override
public void showSql(Object object) {
try {
ApplicationContext applicationContext = ApplicationContextManager.getInstance().getApplicationContext();
SwitchDAO switchDAO = applicationContext.getSwitchDAO();
if (!switchDAO.isOpen(applicationContext.getProjectId())) {
return;
}
String originalSql = (String) BeanUtil.getFieldValue(object, "originalSql");
if (StrUtil.isBlank(originalSql)) {
return;
}
String replaceSql = ReflectUtil.invoke(object, "asSql");
SqlRecordDO sqlRecordDO = new SqlRecordDO();
sqlRecordDO.setDatabaseName(PRODUCT_NAME);
sqlRecordDO.setProjectId(applicationContext.getProjectId());
sqlRecordDO.setOriginalSql(originalSql);
sqlRecordDO.setReplaceSql(replaceSql);
sqlRecordDO.setIsSupport(true);
sqlRecordDO.setFlag(false);
sqlRecordDO.setThreadId(Thread.currentThread().getId());
sqlRecordDO.setCreateTime(new Date());
applicationContext.getSqlRecordDAO().insert(sqlRecordDO);
} catch (Exception e) {
}
}
@Override
public String getTargetClassName() {
return TARGET_CLASS_NAME;
}
@Override
public String getProductName() {
return PRODUCT_NAME;
}
}<file_sep>/settings.gradle
rootProject.name = 'Leo'
include 'leo-dal'
include 'leo-plug'
include 'leo-agent-core'
<file_sep>/leo-dal/src/main/java/com/github/xuchengen/leo/dal/entity/SqlRecordDO.java
package com.github.xuchengen.leo.dal.entity;
import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import java.util.Date;
/**
* SQL记录表实体类<br>
* 作者:徐承恩<br>
* 邮箱:<EMAIL><br>
* 日期:2021/4/28 2:50 下午<br>
*/
@DatabaseTable(tableName = "t_sql_record")
public class SqlRecordDO {
@DatabaseField(id = true)
private Long id;
@DatabaseField(columnName = "project_id")
private String projectId;
@DatabaseField(columnName = "database_name")
private String databaseName;
@DatabaseField(columnName = "original_sql")
private String originalSql;
@DatabaseField(columnName = "replace_sql")
private String replaceSql;
@DatabaseField(columnName = "thread_id")
private Long threadId;
@DatabaseField(columnName = "flag", dataType = DataType.BOOLEAN_INTEGER)
private Boolean flag;
@DatabaseField(columnName = "is_support", dataType = DataType.BOOLEAN_INTEGER)
private Boolean isSupport;
@DatabaseField(columnName = "create_time", dataType = DataType.DATE_LONG)
private Date createTime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getProjectId() {
return projectId;
}
public void setProjectId(String projectId) {
this.projectId = projectId;
}
public String getDatabaseName() {
return databaseName;
}
public void setDatabaseName(String databaseName) {
this.databaseName = databaseName;
}
public String getOriginalSql() {
return originalSql;
}
public void setOriginalSql(String originalSql) {
this.originalSql = originalSql;
}
public String getReplaceSql() {
return replaceSql;
}
public void setReplaceSql(String replaceSql) {
this.replaceSql = replaceSql;
}
public Long getThreadId() {
return threadId;
}
public void setThreadId(Long threadId) {
this.threadId = threadId;
}
public Boolean getFlag() {
return flag;
}
public void setFlag(Boolean flag) {
this.flag = flag;
}
public Boolean getIsSupport() {
return isSupport;
}
public void setIsSupport(Boolean isSupport) {
this.isSupport = isSupport;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}
<file_sep>/leo-agent-core/src/main/java/com/github/xuchengen/leo/agent/core/ShowSQLExecutor.java
package com.github.xuchengen.leo.agent.core;
/**
* 展示SQL执行器<br>
* 作者:徐承恩<br>
* 邮箱:<EMAIL><br>
* 日期:2021/4/13 12:46 下午<br>
*/
public class ShowSQLExecutor {
/**
* 执行
*
* @param name 名称
* @param object 参数
*/
public static void execute(String name, Object object) {
try {
if (!ApplicationContextManager.isInitialized()) {
ApplicationContextManager.init();
}
ApplicationContext applicationContext = ApplicationContextManager.getInstance().getApplicationContext();
if (applicationContext.contains(name)) {
applicationContext.getHandler(name).showSql(object);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
<file_sep>/leo-agent-core/src/main/java/com/github/xuchengen/leo/agent/core/handler/Handler.java
package com.github.xuchengen.leo.agent.core.handler;
/**
* 重建类处理器接口<br>
* 作者:徐承恩<br>
* 邮箱:<EMAIL><br>
* 日期:2021/4/13 3:29 下午<br>
*/
public interface Handler {
/**
* 重构类
*
* @param classfileBuffer 类文件字节数组
* @return 类文件字节数组
*/
byte[] rebuild(byte[] classfileBuffer);
/**
* 展示SQL
*
* @param object 参数
*/
void showSql(Object object);
/**
* 获取目标类名称
*
* @return 目标类名称
*/
String getTargetClassName();
/**
* 获取产品名称
*
* @return 产品名称
*/
String getProductName();
}
| d5e011c863ec5e0ff05de1398aa9c7ac56c6e513 | [
"Markdown",
"Java",
"INI",
"Gradle"
] | 19 | Gradle | itstack-org/leo | 2b5ee77f78d6913b274100b92c2118c2c595a859 | 78e80c620962c532d421c4740b6426a8905b759f |
refs/heads/master | <repo_name>maringadojo/romanizer<file_sep>/src/Exceptions/MaisDeTresSimbolosIguaisException.php
<?php
namespace MaringaDojo\Romanizer\Exceptions;
class MaisDeTresSimbolosIguaisException extends \Exception
{
//
}
<file_sep>/src/Exceptions/SimboloInvalidoException.php
<?php
namespace MaringaDojo\Romanizer\Exceptions;
class SimboloInvalidoException extends \Exception
{
//
}
<file_sep>/src/Converter.php
<?php
namespace MaringaDojo\Romanizer;
use MaringaDojo\Romanizer\Exceptions\MaisDeTresSimbolosIguaisException;
use MaringaDojo\Romanizer\Exceptions\SimboloInvalidoException;
class Converter
{
private $romanoParaNumero = [
'M' => 1000,
'D' => 500,
'C' => 100,
'L' => 50,
'X' => 10,
'V' => 5,
'I' => 1,
];
public function toDecimal($numeroRomano)
{
$valor = 0;
$valorAnterior = 0;
$repeticoes = 0;
for ($i = strlen($numeroRomano) - 1; $i >= 0; $i--) {
$letra = $numeroRomano[$i];
if (! array_key_exists($letra, $this->romanoParaNumero)) {
throw new SimboloInvalidoException(
$letra . 'É um simbolo invalido'
);
}
$valorAtual = $this->romanoParaNumero[$letra];
if ($valorAtual == $valorAnterior) {
$repeticoes++;
if ($repeticoes >= 3) {
throw new MaisDeTresSimbolosIguaisException(
'Os simbolos só podem ser repitidos até três vezes.'
);
}
} else {
$repeticoes = 0;
}
if ($valorAtual >= $valorAnterior) {
$valor += $valorAtual;
} else {
$valor -= $valorAtual;
}
$valorAnterior = $valorAtual;
}
return $valor;
}
}
<file_sep>/tests/TestCase.php
<?php
namespace MaringaDojo\Romanizer\Tests;
class TestCase extends \PHPUnit_Framework_TestCase
{
//
}
<file_sep>/tests/ConverterTest.php
<?php
namespace MaringaDojo\Romanizer\Tests;
use MaringaDojo\Romanizer\Converter;
use MaringaDojo\Romanizer\Exceptions\MaisDeTresSimbolosIguaisException;
use MaringaDojo\Romanizer\Exceptions\SimboloInvalidoException;
class ConverterTest extends TestCase
{
private $converter;
public function setup()
{
$this->converter = new Converter();
}
public function testInstance()
{
$this->assertInstanceOf(Converter::class, $this->converter);
}
public function testDeveEntenderOSimboloI()
{
$this->assertEquals(1, $this->converter->toDecimal('I'));
}
public function testDeveEntenderOSimboloV()
{
$this->assertEquals(5, $this->converter->toDecimal('V'));
}
public function testDeveEntenderOSimboloX()
{
$this->assertEquals(10, $this->converter->toDecimal('X'));
}
public function testDeveEntenderOSimboloL()
{
$this->assertEquals(50, $this->converter->toDecimal('L'));
}
public function testDeveEntenderOSimboloC()
{
$this->assertEquals(100, $this->converter->toDecimal('C'));
}
public function testDeveEntenderOSimboloD()
{
$this->assertEquals(500, $this->converter->toDecimal('D'));
}
public function testDeveEntenderOSimboloM()
{
$this->assertEquals(1000, $this->converter->toDecimal('M'));
}
public function testDeveEntenderOSimboloIIeIII()
{
$this->assertEquals(2, $this->converter->toDecimal('II'));
$this->assertEquals(3, $this->converter->toDecimal('III'));
}
public function testDeveEntenderOSimboloIVeIX()
{
$this->assertEquals(4, $this->converter->toDecimal('IV'));
$this->assertEquals(9, $this->converter->toDecimal('IX'));
}
public function testMaisDeTresSimbolosIguaisException()
{
$this->expectException(MaisDeTresSimbolosIguaisException::class);
$this->converter->toDecimal('IIII');
$this->converter->toDecimal('XXXXV');
$this->converter->toDecimal('VIIII');
$this->converter->toDecimal('IIIII');
}
public function testSimboloInvalidoException()
{
$this->expectException(SimboloInvalidoException::class);
$this->converter->toDecimal('A');
}
public function testFronteiras()
{
$this->assertEquals(14, $this->converter->toDecimal('XIV'));
$this->assertEquals(49, $this->converter->toDecimal('XLIX'));
$this->assertEquals(3999, $this->converter->toDecimal('MMMCMXCIX'));
}
}
<file_sep>/README.md
# Romanizer
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
[![StyleCI][ico-styleci]][link-styleci]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]
[ico-version]: https://img.shields.io/packagist/v/maringadojo/romanizer.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/maringadojo/romanizer/master.svg?style=flat-square
[ico-scrutinizer]:https://img.shields.io/scrutinizer/coverage/g/maringadojo/romanizer.svg?style=flat-square
[ico-code-quality]:https://img.shields.io/scrutinizer/g/maringadojo/romanizer.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/maringadojo/romanizer.svg?style=flat-square
[ico-styleci]: https://styleci.io/repos/103459343/shield
[link-packagist]: https://packagist.org/packages/maringadojo/romanizer
[link-travis]: https://travis-ci.org/maringadojo/romanizer
[link-scrutinizer]: https://scrutinizer-ci.com/g/maringadojo/romanizer/?branch=master
[link-code-quality]: https://scrutinizer-ci.com/g/maringadojo/romanizer/?branch=master
[link-downloads]: https://packagist.org/packages/maringadojo/romanizer
[link-styleci]: https://styleci.io/repos/103459343
A package to help you convert decimal numbers to Roman numerals and vice versa.
| 347d2bf64155b19c5b8c771601a5a0e4fc8b1d3a | [
"Markdown",
"PHP"
] | 6 | PHP | maringadojo/romanizer | 16c265e581664aab8135294ad3ff07ac90ebea7b | 43fe4bcf69909b5ee41430e75fc14315cbbd053f |
refs/heads/master | <file_sep>import matplotlib.pyplot as plt
DECISION_NODE = dict(boxstyle="sawtooth,pad=0.6", fc="0.8")
LEAF_NODE = dict(boxstyle="round4,pad=0.6", fc="0.8")
ARROW_ARGS = dict(arrowstyle="<-", shrinkA=20, shrinkB=20, connectionstyle="arc3")
# First draw a node of <nodeType> in position <centerPt> with content of <nodeTxt> in the box
# Then draw a line from position <parentPt> to position <centerPt>
def plotNode(nodeTxt, centerPt, parentPt, nodeType):
print('plotNode:{}, {}, {}'.format(centerPt, parentPt, nodeTxt))
createPlot.ax1.annotate(nodeTxt, xy=parentPt, xycoords='axes fraction', \
xytext=centerPt, textcoords='axes fraction', va="center", ha="center", \
bbox=nodeType, arrowprops=ARROW_ARGS)
# Plot content of <txtString> between position <centerPt> and position <parentPt>
def plotMidText(cntrPt, parentPt, txtString):
xmid = (parentPt[0] - cntrPt[0])/2.0 + cntrPt[0]
ymid = (parentPt[1] - cntrPt[1])/2.0 + cntrPt[1]
createPlot.ax1.text(xmid, ymid, txtString)
# Return number of leafNodes for width calculation
def getNumLeafs(myTree):
numLeafs = 0
firstStr = list(myTree.keys())[0]
secondDict = myTree[firstStr]
for key in secondDict.keys():
if(type(secondDict[key]).__name__ == 'dict'):
numLeafs += getNumLeafs(secondDict[key])
else:
numLeafs += 1
return numLeafs
# Return number of layers for depth calculation
def getTreeDepth(myTree):
maxDepth = 0
firstStr = list(myTree.keys())[0]
secondDict = myTree[firstStr]
for key in secondDict.keys():
if type(secondDict[key]).__name__ == 'dict':
thisDepth = 1 + getTreeDepth(secondDict[key])
else:
thisDepth = 1
maxDepth = thisDepth if thisDepth > maxDepth else maxDepth
return maxDepth
# Recursive procedure to calculate position of subtrees and plot them
def plotTree(myTree, parentPt, nodeTxt):
print('plotTree:{}, {}'.format(parentPt, nodeTxt))
numLeafs = getNumLeafs(myTree)
depth = getTreeDepth(myTree)
firstStr = list(myTree.keys())[0] # content of <myTree> root
# <cntrPt>: position of <myTree> root
cntrPt = (plotTree.xOff + (1.0 + numLeafs)/2.0/plotTree.totalW, plotTree.yOff)
plotNode(firstStr, cntrPt, parentPt, DECISION_NODE)
plotMidText(cntrPt, parentPt, nodeTxt)
secondDict = myTree[firstStr] # set of subtrees
plotTree.yOff = plotTree.yOff - 1.0/plotTree.totalD # update <yOff> for next layer
for key in secondDict.keys():
# For each of subtrees, <cntrPt> is the parent position
if type(secondDict[key]).__name__=='dict':
plotTree(secondDict[key], cntrPt, str(key))
else:
plotTree.xOff = plotTree.xOff + 1.0/plotTree.totalW # update <xOff> on plotting a leaf
plotNode(secondDict[key], (plotTree.xOff, plotTree.yOff), cntrPt, LEAF_NODE)
plotMidText((plotTree.xOff, plotTree.yOff), cntrPt, str(key))
plotTree.yOff = plotTree.yOff + 1.0/plotTree.totalD # restore <yOff> for backtrace
# Entry for creation a plot from a decision tree
# Including initialization of global variables, e.g. <xOff>, <yOff>
# <xOff>:
# postion before next plot zone in x-axis, initial value is -1/2W, step is 1/W when leafNode plot
# <yOff>:
# next plot zone postion in y-axis, initial value is , step is -1/D when depth increases
def createPlot(inTree):
fig = plt.figure(1, facecolor='white')
fig.clf()
axprops = dict(xticks=[], yticks=[])
createPlot.ax1 = plt.subplot(111, frameon=False, **axprops)
plotTree.totalW = float(getNumLeafs(inTree))
plotTree.totalD = float(getTreeDepth(inTree))
plotTree.xOff = -0.5/plotTree.totalW;
plotTree.yOff = 1.0;
plotTree(inTree, (0.5, 1.0), '')
plt.show()
# test
def retrieveTree(i):
listOfTrees = [{'no surfacing': {0: 'no', 1: {'flippers': {0: 'no', 1: 'yes'}}}},
{'no surfacing': {0: 'no', 1: {'flippers': {0: {'head': {0: 'no', 1: 'yes'}}, 1: 'no'}}}}
]
return listOfTrees[i]
def createPlotTest():
fig = plt.figure(1, facecolor='white')
fig.clf()
createPlot.ax1 = plt.subplot(111, frameon=False)
plotNode(U'DECISION_NODE', (0.5, 0.1), (0.1, 0.5), DECISION_NODE)
plotNode(U'LEAF_NODE', (0.8, 0.1), (0.3, 0.5), LEAF_NODE)
plt.show()
<file_sep># mlia-p3
machine learning in action python3
<file_sep>#!/usr/bin/python3
from numpy import *
import operator
import os
import random
def createDataset():
group = array( [[1.0, 1.1], [1.0, 1.0], [0, 0], [0, 0.1]] )
labels = [ 'A', 'A', 'B', 'B' ]
return group, labels
def classify0(inX, dataSet, labels, k):
dataSetSize = dataSet.shape[0]
diffMat = tile(inX, (dataSetSize, 1)) - dataSet
sqDiffMat = diffMat ** 2
sqDistances = sqDiffMat.sum(axis=1)
distances = sqDistances ** 0.5
sortedDistIndicies = distances.argsort()
classCount = {}
for i in range(k):
voteIlabel = labels[sortedDistIndicies[i]]
# classCount[voteIlabel] += 1 if key exist, else set to 0
classCount[voteIlabel] = classCount.get(voteIlabel, 0) + 1
sortedClassCount = sorted( classCount.items(), key=operator.itemgetter(1), reverse=True)
return sortedClassCount[0][0]
def file2matrix(filename):
# count lines
with open(filename) as fr:
for i, l in enumerate(fr):
pass
numberOfLines = i+1;
returnMat = zeros( (numberOfLines, 3) )
classLabelVector = []
with open(filename) as fr:
for i in range(numberOfLines):
line = fr.readline().strip()
listFromLine = line.split('\t');
returnMat[i, :] = listFromLine[0:3]
# here int() used, so only dataSet2 works due to converted labels
classLabelVector.append(int(listFromLine[-1]))
return returnMat, classLabelVector
def autoNorm(dataSet): # m x n
m = dataSet.shape[0]
minVals = dataSet.min(0) # 1 x n
maxVals = dataSet.max(0) # 1 x n
ranges = maxVals - minVals # 1 x n
normDataset = zeros(dataSet.shape) # m x n
normDataset = dataSet - tile(minVals, (m,1))
normDataset = normDataset / tile(ranges, (m,1))
return normDataset, ranges, minVals
def datingClassTest():
hoRatio = 0.10
datingDataMat, datingLabels = file2matrix('datingTestSet2.txt')
normMat, ranges, minVals = autoNorm(datingDataMat)
m = normMat.shape[0]
numTestVecs = int(m*hoRatio)
errorCount = 0.0
for i in range(numTestVecs):
classifierResult = classify0(normMat[i, : ], \
normMat[numTestVecs:m, : ], \
datingLabels[numTestVecs:m], \
3)
print('the classifier came back with: %d, the real answer is: %d ' \
% (classifierResult, datingLabels[i]) )
if(classifierResult != datingLabels[i]):
errorCount += 1.0
print('the total error rate is: %f ' % (errorCount/numTestVecs) )
def classifyPersion():
k = 3 # param k for kNN
resultList = ['not at all', 'in small dose', 'in large dose']
ffMiles = float(input('frequent flier miles earned per year? '))
percentTats = float(input('percentage of time playing video games? '))
iceCream = float(input('liters of ice cream consumed per year? '))
datingDataMat, datingLabels = file2matrix('datingTestSet2.txt')
normMat, ranges, minVals = autoNorm(datingDataMat)
inArr = array([percentTats, ffMiles, iceCream])
classifierResult = classify0((inArr - minVals)/ranges, normMat, datingLabels, k)
print('You will probably like this person: %s' % resultList[classifierResult - 1] )
def img2vector(filename):
returnVect = zeros( (1, 1024) )
with open(filename) as fr:
for i in range(32):
lineStr = fr.readline()
for j in range(32):
returnVect[0, 32*i+j] = int(lineStr[j])
return returnVect
def handwritingClassTest():
k = 3 # param k for kNN
hwLabels = []
trainingFileList = os.listdir('trainingDigits')
m = len(trainingFileList)
trainingMat = zeros( (m, 1024) )
for i in range(m):
# '<digit>_<sampleID>.txt'
fileNameStr = trainingFileList[i]
fileStr = fileNameStr.split('.')[0]
classNum = int(fileStr.split('_')[0])
hwLabels.append(classNum)
trainingMat[i, : ] = img2vector('trainingDigits/%s' % fileNameStr)
errorCount = 0.0
testFileList = os.listdir('testDigits')
mTest = len(testFileList)
for i in range(mTest):
fileNameStr = testFileList[i]
fileStr = fileNameStr.split('.')[0]
classNum = int(fileStr.split('_')[0])
vectorUnderTest = img2vector('testDigits/%s' % fileNameStr)
classifierResult = classify0(vectorUnderTest, trainingMat, hwLabels, k)
print("the classifier came back with: %d, the real answer is: %d" \
% (classifierResult, classNum) )
if (classifierResult != classNum):
errorCount += 1.0
print("the total number of errors is: %d" % errorCount)
print("the total error rate is: %f" % (errorCount/mTest) )
| 975e3bfcc1640a549d54251c1306c5241dae8428 | [
"Markdown",
"Python"
] | 3 | Python | Eskibear/mlia-p3 | 588638d75b40a74d0ffaac8a126aff34fdcc4adf | c1ec69f9d2aa131fdf29e1b21c794382c97b8f0a |
refs/heads/master | <file_sep>from bs4 import BeautifulSoup
import requests
def test1():
soup = get_soup("http://www.utexas.edu/world/univ/alpha/")
universities=soup.findAll('a',{'class':'institution'})
for eachuniversity in universities:
print eachuniversity['href'].encode("utf-8")+","+eachuniversity.string.encode("utf-8")
def test2():
print get_soup("http://www.google.com").prettify().encode("utf-8")
def test3():
print get_soup("http://www.subito.it").html.head.title.prettify().encode("utf-8")
def get_soup(url):
page = requests.get(url).content
return BeautifulSoup(page, "html5lib")
#test1()
#test2()
test3() | 4a3e9f61d8373009a8467458074705a88447c2c3 | [
"Python"
] | 1 | Python | isaacimholt/DataScrapingTest1 | d9d4c375ab1287f7359253325fe54f57b9d25c4c | 092ddd851e4bcc7a8307df61553da9dee4455dd9 |
refs/heads/master | <file_sep># douyin-clear-php
抖音去水印PHP版接口
使用方法:
==
将文件夹放到站点目录即可。
********
文档:
==
请求方式:GET
--
请求参数:
--
url:http://v.douyin.com/jJub3C/ 或 http://v.douyin.com/jJub3C/ 复制此链接,打开【抖音短视频】,直接观看视频!
都行。(地址前面不能带\#号,服务器会忽略\#后面的内容)
Response:JSON
--
请求成功:
````json
{
"status": true,
"message": "http://v.douyin.com/jJub3C/ ",
"user_name": "@DJI 大疆创新",
"description": "#前方高能 不要眨眼!",
"imgurl": "https://p3.pstatp.com/large/1d35f00015501740f447b.jpg",
"user_headimg": "https://p3.pstatp.com/thumb/6c530001ce5f9e9207fe",
"url": "https://aweme.snssdk.com/aweme/v1/play/?video_id=v0300ffb0000biabmhqhh3mrpo38d760&line=0",
"url_wm": "https://aweme.snssdk.com/aweme/v1/playwm/?video_id=v0300ffb0000biabmhqhh3mrpo38d760&line=0"
}
````
请求失败:
````json
{
"status": false,
"message": "地址错误: http:// 复制此链接,打开【抖音短视频】,直接观看视频!"
}
````
参数:
status:请求状态码true/false
message:提示文本,返回结果错误时会返回地址信息
user_name:抖音昵称
description:视频描述
imgurl:封面图片地址
user_headimg:用户头像地址
url:无水印地址
url_wm:有水印地址
**喜欢的话,给个star呗**
![image](https://github.com/zbfzn/douyin-clear-php/blob/master/douyin/douyin-no-wm.png)
<font>注:仅供学习,切勿用于其他用途。</font>测试站点:https://lyfzn.top/plugins/douyin/videoPrase/
<file_sep><?php
#获取的地址访问时需要自定义User-Agent 为手机模式(抖音的监测机制,电脑端不能播放)
include("simple_html_dom.php");
$url_g=@$_GET['url'];//抖音视频地址
function getLinkFromDouyinShareText($shareOrUrl){
$url="http".explode("http",$shareOrUrl)[1];
$url=explode("复制此链接,",$url)[0];
return $url;
}
function getImgDouyin($attr){
$attr=explode("url(",$attr)[1];
$attr=explode(")",$attr)[0];
return $attr;
}
if(strstr($url_g,'http://v.douyin.com/')){
$url_g=getLinkFromDouyinShareText($url_g);
$context=stream_context_create(array('http'=>array('header'=>'User-Agent:Mozilla/5.0 (Linux; Android 8.0.0; MI 6 Build/OPR1.170623.027; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/62.0.3202.84 Mobile Safari/537.36')));
$html_text= file_get_contents($url_g,0,$context);
$html=str_get_html($html_text);
$dom_main=$html->find('#theVideo');
$dom_title=$html->find('#videoUser .user-title');
$url_wm=$dom_main[0]->src;//有水印地址
$info=$dom_title[0]->plaintext;//视频描述
$user_name=$html->find('#videoUser > div.user-info > p.user-info-name')[0]->plaintext;//作者昵称
$imgurl=getImgDouyin($html->find('#videoPoster')[0]->style);//封面图片
$user_headImg=getImgDouyin($html->find('#videoUser > div.user-avator')[0]->style);//作者头像
$url=str_replace("playwm","play",$url_wm);//无水印地址
echo json_encode(['status'=>true,'message'=>$url_g,'user_name'=>$user_name,'description'=>$info,'imgurl'=>$imgurl,'user_headimg'=>$user_headImg,'url'=>$url,'url_wm'=>$url_wm]);//
$html->clear();
}else{
echo json_encode(['status'=>false,'message'=>'地址错误:'.$url_g]);
}
?> | ffe057fd7dae3434b1eb535718985ff2be9504d5 | [
"Markdown",
"PHP"
] | 2 | Markdown | dedehtml/douyin-clear-php | 05e53cca6862dff2ec49033675990930720b8ca4 | f6313621c7417c38c6b40415a4f3ea85886a0018 |
refs/heads/master | <repo_name>rasoul1234/Open-Source-Final-Project-<file_sep>/Banking_Account_Database.sh
#Username: Sami
#Password: <PASSWORD>
echo ""
echo -e "\033[94mPlease Insert Your Username:\033[0m"
read name
echo -e "\033[5;31m ***\033[0m You are $name \033[5;31m***\033[0m "
echo "-------------------"
echo -e "\033[94mPlease Insert Your Password:\033[0m"
read password
a="Sami"
b="<PASSWORD>"
if [[ $name == $a && $password == $b ]]
then
echo " *Your Name and Password is Correct* "
echo " ----------------------------------------------------------------------------------------------------------------"
else
echo -e " \033[5;31m *Your Username and Password is Incorrect, Please Try Again* \033[0m "
fi
if [[ $name == $a && $password == $b ]]
then
echo -e " \033[91m------------------------------- That is right your Name is Dr.$name $password -------------------------------- "
echo " *==============================================================================================* "
echo " ------------------ NOW WELCOME TO BANKING_ACCOUNT_DATABASE ------------------- "
echo " *==============================================================================================* "
Insert_Option()
{
echo ""
echo -e " \033[97;1mITC 350-Open Source Software Project. "
echo -e "\033[90m**********************************************************************"
echo -e " \033[5;31mThis Project has compelted by M<NAME>ahibzadah\033[0m"
echo -e " \033[5;31m * Under Supervision of Dr.<NAME> * \033[0m"
echo -e "\033[90m**********************************************************************"
echo -e "\033[90m*====================================================================*"
echo -e " \033[34m Customer Account Banking System "
echo -e "\033[90m*====================================================================*"
echo ""
echo ""
echo -e "\033[95m *---------------------------------*"
echo -e "\033[92m1) Create a New Customer Account *"
echo -e "\033[92m *---------------------------------*"
echo -e "\033[93m2) Update Customer Account Data *"
echo -e "\033[93m *---------------------------------*"
echo -e "\033[94m3) View and Manage Transaction *"
echo -e "\033[94m *---------------------------------*"
echo -e "\033[95m4) Check Customer's Account Details*"
echo -e "\033[95m *---------------------------------*"
echo -e "\033[91m5) Delete Customer's Account *"
echo -e "\033[91m *---------------------------------*"
echo -e "\033[96m6) Exit *"
echo -e "\033[96m *---------------------------------*"
echo ""
echo ""
echo -e "\033[91m *--- Please Select one of the above option: ---*\033[0m"
read Select_Options
echo ""
case $Select_Options in
1) Add_New_Account_ID;;
2) Update_Account_ID ;;
3) Manage_Transaction ;;
4) Account_Details ;;
5) Delete_Account_ID ;;
6) exit ;;
esac
}
echo ""
Add_New_Account_ID()
{
echo -e "\033[92mYou have selected option: $Select_Options"
echo ""
echo "Now Please fill in the bellow questions for Adding Accoint:"
echo "----------------------------------------------------------"
echo ""
# We can use our While function like this
echo "1: Please Insert Customer's Name: "
read C_Name
while [[ "$C_Name" =~ [[:digit:]] || -z $C_Name ]];
do
echo ""
echo "Your Customer Name should not be Numerics or be left Empty,Please fill it again: "
read C_Name
done
echo ""
echo -e "\033[90m*------------------------------------------*\033[92m"
echo "2: Please Insert Customer's F/Name: "
read C_FName
while [[ "$C_FName" =~ [[:digit:]] || -z $C_FName ]];
do
echo ""
echo "Your Customer F/Name should not be Numerics or be left Empty,Please fill it again: "
read C_FName
done
echo ""
echo -e "\033[90m*------------------------------------------*\033[92m"
echo "3: Please Insert Customer' Surname or Familiy Name: "
read C_Surname
while [[ "$C_Surname" =~ [[:digit:]] || -z $C_Surname ]];
do
echo ""
echo "Your Customer Surname or Family Name should not be Numerics or be left Empty,Please fill it again: "
read C_Surname
done
echo ""
echo -e "\033[90m*------------------------------------------*\033[92m"
echo "4: Please Enter Customer's Date of Birth: "
read D_Birth
while ! [[ $D_Birth =~ [[:digit:]] || -z $D_Birth ]];
do
echo ""
echo "Your Customer's Birth_Date should not Alphabets or be left Empty, Please Try again: "
read D_Birth
done
echo ""
echo -e "\033[90m*------------------------------------------*\033[92m"
echo "5: Please Enter Customer's National_Number (Tazkira/Passport): "
read C_National_id
while [[ $C_National_id =~ [[:alpha:]] || -z $C_National_id ]];
do
echo ""
echo "Your Customer's National_Number should not be Alphabets or be left Empty, please Try again: "
read C_National_id
done
echo ""
echo -e "\033[90m*------------------------------------------*\033[92m"
echo "6: Please Insert Customer's Job: "
read C_Job
while [[ "$C_Job" =~ [[:digit:]] || -z $C_Job ]];
do
echo ""
echo "Your Customer's Job should not be Numerics or be left Empty,Please fill it again: "
read J_Job
done
echo ""
echo -e "\033[90m*------------------------------------------*\033[92m"
echo "7: Please Enter Customer's Email Address:"
read C_Email
while ! [[ "$C_Email" =~ [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4} ]]
do
echo "Please Enter a valid Email Address."
read C_Email
done
echo ""
echo -e "\033[90m*------------------------------------------*\033[92m"
echo "8: Please Enter Customer's City Name: "
read C_City
while [[ $C_City =~ [[:digit:]] || -z $C_City ]];
do
echo ""
echo "Your Customer's City_Name should not be Numerics or be left Empty, please Try again: "
read C_City
done
echo ""
echo -e "\033[90m*------------------------------------------*\033[92m"
echo "9: Please Enter Customer's Country Name: "
read C_Country
while [[ $C_Country =~ [[:digit:]] || -z $C_Country ]];
do
echo ""
echo "Your Customer's Country_Name should not be Numerics or be left Empty, please Try again: "
read C_Country
done
echo ""
echo -e "\033[90m*------------------------------------------*\033[92m"
echo "10: Please Insert Customer's Address: "
read C_Address
while [[ "$C_Address" =~ [[:digit:]] || -z $C_Address ]];
do
echo ""
echo "Your Customer's Address should not be Numerics or be left Empty,Please fill it again: "
read C_Address
done
echo ""
echo -e "\033[90m*------------------------------------------*\033[92m"
echo "11: Please Enter Customer's Phone Number: "
read C_PN
while ! [[ $C_PN =~ [[:digit:]] || -z $C_PN ]];
do
echo ""
echo "Your Customer's Phone Number should not Alphabets or be left Empty, Please Try again: "
read C_PN
done
echo ""
echo -e "\033[90m*------------------------------------------*\033[92m"
echo "12: Please Select Your Customer's Account_Type: "
echo "1) Savings Account"
echo "2) Current Account"
read C_Account_Type
echo ""
case $C_Account_Type in
1)C_Account_Type="Savings-Account" ;;
2)C_Account_Type="Current-Account" ;;
esac
echo -e "\033[90m*------------------------------------------*\033[92m"
echo "13: Please Enter your Customer's Initial Deposit_Amount: "
read C_Initial_Deposit_Amount
while [[ $C_Initial_Deposit_Amount =~ [[:alpha:]] || -z $C_Initial_Deposit_Amount ]];
do
echo ""
echo "Your Customer's initial deposit must not have alphabets or be left empty, Try again: "
read C_Initial_Deposit_Amount
done
echo ""
echo -e "\033[90m*------------------------------------------*\033[92m"
echo "Your Customer's Information is ------------"
echo ""
echo -e "\033[0mCustomer Name: \033[92;1m" $C_Name
echo -e "\033[0mCustomer F/Name: \033[32;1m" $C_FName
echo -e "\033[0mCustomer Surname/Family Name: \033[32;1m" $C_Surname
echo -e "\033[0mCustomer Date of Birth: \033[32;1m" $D_Birth
echo -e "\033[0mCustomer National Number: \033[32;1m" $C_National_id
echo -e "\033[0mCustomer Job: \033[32;1m" $C_Job
echo -e "\033[0mCustomer Email Address: \033[32;1m" $C_Email
echo -e "\033[0mCustomer City: \033[32;1m" $C_City
echo -e "\033[0mCustomer Country: \033[32;1m" $C_Country
echo -e "\033[0mCustomer Address: \033[32;1m" $C_Address
echo -e "\033[0mCustomer Phone Number: \033[32;1m" $C_PN
echo -e "\033[0mCustomer Account Type: \033[32;1m" $C_Account_Type
echo -e "\033[0mCustomer Initial Deposit Amount: \033[32;1m" $C_Initial_Deposit_Amount
echo -e "\033[0mEnd of Information-------------"
echo -e "\033[90m*------------------------------------------*\033[92m"
cd ~/Desktop/
echo ""
echo "Is the Information You have Entered are Accurate or should we try again?"
echo "1) It's Accurate"
echo "2) Try Again"
read Question
if [[ Question -eq 2 ]];
then
Add_New_Account_ID
fi
if [ ! -f ~/Desktop/Banking_Account_Database.csv ];
then
touch ~/Desktop/Banking_Account_Database.csv
id=0
else
id=$(awk 'END {print $1}' FS="," Banking_Account_Database.csv)
fi
echo "$(($id+1)),$C_Name,$C_FName,$C_Surname,$D_Birth,$C_National_id,$C_Job,$C_Email,$C_City,$C_Country,$C_Address,$C_PN,$C_Account_Type,$C_Initial_Deposit_Amount" >> Banking_Account_Database.csv
echo ""
echo "Customer Account Successfully Created\n"
Insert_Option
}
Update_Account_ID() {
clear
if [ ! -f ~/Desktop/Banking_Account_Database.csv ];
then
echo "We could not find the file, make sure its located in the Desktop, or press any key to return to main menu"
read null
Insert_Option
fi
echo -e "\033[93mPlease Insert your Account_ID that You want to update: "
read Update_ID
cd ~/Desktop/
while [[ -z $(awk -v awkID=$Update_ID '{ if ($1 == awkID) print $1 }' FS="," Banking_Account_Database.csv) ]];
do
echo -e "\nAccount ID not found, Please try again: "
read Update_ID
done
echo -e "\033[91m1)\033[0m \033[95mUpdate Customer Name\033[0m"
echo -e "\033[91m2)\033[0m \033[95mUpdate Customer F/Name\033[0m"
echo -e "\033[91m3)\033[0m \033[95mUpdate Customer Surname\033[0m"
echo -e "\033[91m4)\033[0m \033[95mUpdate Customer Date of Birth\033[0m"
echo -e "\033[91m5)\033[0m \033[95mUpdate Customer National Number\033[0m"
echo -e "\033[91m6)\033[0m \033[95mUpdate Customer Job\033[0m"
echo -e "\033[91m7)\033[0m \033[95mUpdate Customer Email\033[0m"
echo -e "\033[91m8)\033[0m \033[95mUpdate Customer City Name\033[0m"
echo -e "\033[91m9)\033[0m \033[95mUpdate Customer Country_Name\033[0m"
echo -e "\033[91m10)\033[0m \033[95mUpdate Customer Address\033[0m"
echo -e "\033[91m11)\033[0m \033[95mUpdate Customer Phone_Number\033[0m"
echo -e "\033[91m12)\033[0m \033[95mUpdate Customer Account_Type\033[0m"
echo -e "\033[91m13)\033[0m \033[95mUpdate_Customer_Initial_Deposit_Amount\033[0m"
echo -e "\033[93m\nWhat would you like to change?\033[93m "
read Update_Change
case $Update_Change in
1)
echo ""
echo "Please Insert Customer's New Name: "
read UP_Name
while [[ $UP_Name =~ [[:digit:]] || -z $UP_Name ]];
do
echo "Your Customer's New Name should not be Numerics or be left Empty,Please fill it again: "
read UP_Name
done
cd ~/Desktop/
awk -v awkID=$Update_ID -v awkData=$UP_Name '{ if ($1 == awkID) $2=awkData; print $0 > "Banking_Account_Database.csv" }' OFS="," FS="," Banking_Account_Database.csv
echo ""
;;
2)
echo ""
echo "Please Insert Customer's F/Name: "
read UP_FName
while [[ $UP_FName =~ [[:digit:]] || -z $UP_FName ]];
do
echo "Your Customer's New Name should not be Numerics or be left Empty,Please fill it again: "
read UP_FName
done
cd ~/Desktop/
awk -v awkID=$Update_ID -v awkData=$UP_FName '{ if ($1 == awkID) $3=awkData; print $0 > "Banking_Account_Database.csv" }' OFS="," FS="," Banking_Account_Database.csv
echo ""
;;
3)
echo ""
echo "Please Insert Customer's Surname: "
read UP_Surname
while [[ $UP_Surname =~ [[:digit:]] || -z $UP_Surname ]];
do
echo "Your Customer's Surname should not be Numerics or be left Empty,Please fill it again: "
read UP_Name
done
cd ~/Desktop/
awk -v awkID=$Update_ID -v awkData=$UP_Surname '{ if ($1 == awkID) $4=awkData; print $0 > "Banking_Account_Database.csv" }' OFS="," FS="," Banking_Account_Database.csv
echo ""
;;
4)
echo ""
echo "Please Insert Customer's New Date of Birth: "
read UP_Birth
while [[ $UP_Birth =~ [[:alpha:]] || -z $UP_Birth ]];
do
echo "Your Customer's New Date of Birth should not be Alphabets or be left Empty,Please fill it again: "
read UP_Birth
done
cd ~/Desktop/
awk -v awkID=$Update_ID -v awkData=$UP_Birth '{ if ($1 == awkID) $5=awkData; print $0 > "Banking_Account_Database.csv" }' OFS="," FS="," Banking_Account_Database.csv
echo ""
;;
5)
echo ""
echo "Please Insert New National_Number (Tazkira/Passport): "
read UP_Number
while [[ $UP_Number =~ [[:alpha:]] || -z $UP_Number ]];
do
echo "Your Update National_ID should not be Alphabets or be left Empty, please Try again: "
read UP_Birth
done
cd ~/Desktop/
awk -v awkID=$Update_ID -v awkData=$UP_Number '{ if ($1 == awkID) $6=awkData; print $0 > "Banking_Account_Database.csv" }' OFS="," FS="," Banking_Account_Database.csv
echo ""
;;
6)
echo ""
echo "Please Insert Customer's New Job: "
read UP_Job
while [[ $UP_Job =~ [[:digit:]] || -z $UP_Job ]];
do
echo "Your Update Job should not be Numaric or be left Empty, please Try again: "
read UP_Job
done
cd ~/Desktop/
awk -v awkID=$Update_ID -v awkData=$UP_Job '{ if ($1 == awkID) $7=awkData; print $0 > "Banking_Account_Database.csv" }' OFS="," FS="," Banking_Account_Database.csv
echo ""
;;
7)
echo ""
echo "Please Insert New Email_Address: "
read UP_Mail
while [[ ${UP_Mail} != *"@"* || -z $UP_Mail ]];
do
echo ""
echo "This is not a valid Email Address, Please Try again: "
read UP_Mail
done
cd ~/Desktop/
awk -v awkID=$Update_ID -v awkData=$UP_Mail '{ if ($1 == awkID) $8=awkData; print $0 > "Banking_Account_Database.csv" }' OFS="," FS="," Banking_Account_Database.csv
echo ""
;;
8)
echo ""
echo "Please Insert Customer's Updated City Name: "
read UP_City
while [[ $UP_City =~ [[:digit:]] || -z $UP_City ]];
do
echo ""
echo "Your Updated City Name should not be Numerics or be left Empty, Please Try again: "
read UP_City
done
cd ~/Desktop/
awk -v awkID=$Update_ID -v awkData=$UP_City '{ if ($1 == awkID) $9=awkData; print $0 > "Banking_Account_Database.csv" }' OFS="," FS="," Banking_Account_Database.csv
echo ""
;;
9)
echo ""
echo "Please Insert Customer's Updated Country Name: "
read UP_Country
while [[ $UP_Country =~ [[:digit:]] || -z $UP_Country ]];
do
echo ""
echo "Your Updated Country Name should not be Numerics or be left Empty, Please Try again: "
read UP_Country
done
cd ~/Desktop/
awk -v awkID=$Update_ID -v awkData=$UP_Country '{ if ($1 == awkID) $10=awkData; print $0 > "Banking_Account_Database.csv" }' OFS="," FS="," Banking_Account_Database.csv
echo ""
;;
10)
echo ""
echo "Please Insert Customer's Updated Address: "
read UP_Address
while [[ $UP_Address =~ [[:digit:]] || -z $UP_Address ]];
do
echo ""
echo "Your Updated Address Should not be Numerics or be left Empty, Please Try again: "
read UP_Address
done
cd ~/Desktop/
awk -v awkID=$Update_ID -v awkData=$UP_Address '{ if ($1 == awkID) $11=awkData; print $0 > "Banking_Account_Database.csv" }' OFS="," FS="," Banking_Account_Database.csv
echo ""
;;
11)
echo ""
echo "Please Insert Customer New Phone_Number: "
read UP_Phone
while [[ $UP_Phone =~ [[:alpha:]] || -z $UP_Phone ]];
do
echo ""
echo "Your Phone_Number should not be Alphabets or be left Empty, please Try again: "
read UP_Phone
done
cd ~/Desktop/
awk -v awkID=$Update_ID -v awkData=$UP_Phone '{ if ($1 == awkID) $12=awkData; print $0 > "Banking_Account_Database.csv" }' OFS="," FS="," Banking_Account_Database.csv
echo ""
;;
12)
echo ""
echo "Please Select New Account Type: "
echo "1) Savings Account"
echo "2) Current Account"
read UP_Type
case $UP_Type in
1) UP_Type="Saving-Account" ;;
2) UP_Type="Current-Account" ;;
esac
cd ~/Desktop/
awk -v awkID=$Update_ID -v awkData=$UP_Type '{ if ($1 == awkID) $13=awkData; print $0 > "Banking_Account_Database.csv" }' OFS="," FS="," Banking_Account_Database.csv
echo ""
;;
13)
echo ""
echo "Please Insert your Updated Deposit Amount:\033[93m "
read UP_Deposit
while [[ $UP_Deposit =~ [[:alpha:]] || -z $UP_Deposit ]];
do
echo ""
echo "Your Update Deposit Amount Should not be Alphabets or be left Empty, Please Try again: "
read UP_Deposit
done
cd ~/Desktop/
awk -v awkID=$Update_ID -v awkData=$UP_Deposit '{ if ($1 == awkID) $14=awkData; print $0 > "Banking_Account_Database.csv" }' OFS="," FS="," Banking_Account_Database.csv
echo ""
;;
esac
clear
echo ""
echo -e "Account Successfully Updated"
echo -e "\033[94;5;1mHit Return to go back to Main Menu\033[0m"
read MRSL
Insert_Option
}
Manage_Transaction()
{
clear
if [ ! -f ~/Desktop/Banking_Account_Database.csv ];
then
echo "We could not find the file, make sure its located in Desktop, press any key to return to main menu"
read MRSL
Insert_Option
fi
echo -e "\033[94mPlease Insert your Account_ID: "
read AC_ID
cd ~/Desktop/
while [[ -z $(awk -v awkID=$AC_ID '{ if ($1 == awkID) print $1 }' FS="," Banking_Account_Database.csv) ]];
do
echo -e "\nAccount ID not found, Please try again: "
read AC_ID
done
echo -e "\033[94m------------------------*"
echo -e "1) Deposit *"
echo -e "------------------------*"
echo -e "2) Withdraw *"
echo -e "------------------------*"
echo -e "3) Show Balance *"
echo -e "------------------------\033[94m*"
read Option
case $Option in
1)
echo -e "Please Insert Customers Updated Deposit Amount:"
read UP_Amount
Balance=$(awk -v awkID=$AC_ID '{ if ($1 == awkID) print $14}' FS="," Banking_Account_Database.csv)
Updated_Balance=$(($Balance+$UP_Amount))
awk -v awkID=$AC_ID -v awkData=$Updated_Balance '{ if ($1 == awkID) $14=awkData; print $0 > "Banking_Account_Database.csv" }' OFS="," FS="," Banking_Account_Database.csv
;;
2)
echo -e "Please Insert the Amount to Withdraw:"
read UP_Amount
Balance=$(awk -v awkID=$AC_ID '{ if ($1 == awkID) print $14}' FS="," Banking_Account_Database.csv)
Updated_Balance=$(($Balance-$UP_Amount))
awk -v awkID=$AC_ID -v awkData=$Updated_Balance '{ if ($1 == awkID) $14=awkData; print $0 > "Banking_Account_Database.csv" }' OFS="," FS="," Banking_Account_Database.csv
;;
3)
awk -v awkID=$AC_ID '{ if ($1 == awkID) print "You Current Balance is: " $14 }' FS="," Banking_Account_Database.csv
echo -e "\033[94;5;1mHit Return to go Back to Main Menu\033[0m"
read MRSL
Insert_Option
;;
esac
clear
echo ""
echo -e "Transaction Successful"
awk -v awkID=$AC_ID '{ if ($1 == awkID) print "You Current Balance is: " $14 }' FS="," Banking_Account_Database.csv
echo -e "\033[94;5;1mHit return to go back to main menu\033[0m"
read MRSL
Insert_Option
}
Account_Details() {
clear
if [ ! -f ~/Desktop/Banking_Account_Database.csv ];
then
echo "We could not find the file, make sure it's located in Desktop, press any key to return to main menu"
read MRSL
Insert_Option
fi
echo -e "Please Insert your Account_ID: "
read ACOUNT_ID
cd ~/Desktop/
while [[ -z $(awk -v awkID=$ACOUNT_ID '{ if ($1 == awkID) print $1 }' FS="," Banking_Account_Database.csv) ]];
do
echo -e "\nThis Account ID does not exist, Please try again: "
read ACOUNT_ID
done
echo -e "\033[94;1mAccount Information------------------------\033[0m"
echo ""
echo -e "\033[91m*------------------------------------------*\033[0m"
awk -v awkID=$ACOUNT_ID '{ if ($1 == awkID) print "Customer Name: " $2}' FS="," Banking_Account_Database.csv
echo -e "\033[91m*------------------------------------------*\033[0m"
awk -v awkID=$ACOUNT_ID '{ if ($1 == awkID) print "Customer F/Name: " $3}' FS="," Banking_Account_Database.csv
echo -e "\033[91m*------------------------------------------*\033[0m"
awk -v awkID=$ACOUNT_ID '{ if ($1 == awkID) print "Customer Surname: " $4}' FS="," Banking_Account_Database.csv
echo -e "\033[91m*------------------------------------------*\033[0m"
awk -v awkID=$ACOUNT_ID '{ if ($1 == awkID) print "Customer Birth Date: " $5}' FS="," Banking_Account_Database.csv
echo -e "\033[91m*------------------------------------------*\033[0m"
awk -v awkID=$ACOUNT_ID '{ if ($1 == awkID) print "Customer National_id: " $6}' FS="," Banking_Account_Database.csv
echo -e "\033[91m*------------------------------------------*\033[0m"
awk -v awkID=$ACOUNT_ID '{ if ($1 == awkID) print "Customer Job: " $7}' FS="," Banking_Account_Database.csv
echo -e "\033[91m*------------------------------------------*\033[0m"
awk -v awkID=$ACOUNT_ID '{ if ($1 == awkID) print "Customer Email_Address: " $8}' FS="," Banking_Account_Database.csv
echo -e "\033[91m*------------------------------------------*\033[0m"
awk -v awkID=$ACOUNT_ID '{ if ($1 == awkID) print "Customer City: " $9}' FS="," Banking_Account_Database.csv
echo -e "\033[91m*------------------------------------------*\033[0m"
awk -v awkID=$ACOUNT_ID '{ if ($1 == awkID) print "Customer Country: " $10}' FS="," Banking_Account_Database.csv
echo -e "\033[91m*------------------------------------------*\033[0m"
awk -v awkID=$ACOUNT_ID '{ if ($1 == awkID) print "Customer Address: " $11}' FS="," Banking_Account_Database.csv
echo -e "\033[91m*------------------------------------------*\033[0m"
awk -v awkID=$ACOUNT_ID '{ if ($1 == awkID) print "Customer Phone_Number: " $12}' FS="," Banking_Account_Database.csv
echo -e "\033[91m*------------------------------------------*\033[0m"
awk -v awkID=$ACOUNT_ID '{ if ($1 == awkID) print "Customer Account_Type: " $13}' FS="," Banking_Account_Database.csv
echo -e "\033[91m*------------------------------------------*\033[0m"
awk -v awkID=$ACOUNT_ID '{ if ($1 == awkID) print "Cusotmer Initial_Deposit_Amount: " $14}' FS="," Banking_Account_Database.csv
echo -e "\033[91m*------------------------------------------*\033[0m"
echo ""
echo -e "\033[0mEnd of Information-------------"
echo -e "\033[90m*------------------------------------------*\033[92m"
echo -e "\n"
echo -e "\033[94;5;1mHit Return to go Back to Main Menu\033[0m"
read MRSL
Insert_Option
}
Delete_Account_ID() {
clear
if [ ! -f ~/Desktop/Banking_Account_Database.csv ];
then
echo "We could not find the file, make sure it's located in Desktop, press any key to return to main menu"
read MRSL
Insert_Option
fi
echo -e "\033[94mPlease Insert Your Account ID:\033[0m "
read D_ID
cd ~/Desktop/
while [[ -z $(awk -v awkID=$D_ID '{ if ($1 == awkID) print $1 }' FS="," Banking_Account_Database.csv) ]];
do
echo -e "\nAccount ID not found, Please Try Again: "
read D_ID
done
echo -e "\033[94mAre You sure You want to Delete this Account?\033[0m"
echo -e "\033[91m1)\033[0m Yes"
echo -e "\033[92m2)\033[0m No"
read D_Choice
case $D_Choice in
1)
awk -v awkID=$D_ID '{ if ($1 != awkID) print $0 > "Banking_Account_Database.csv" }' OFS="," FS="," Banking_Account_Database.csv
;;
2)
echo -e "\n"
echo -e "\033[94;5;1mHit Return to go Back to Main Menu\033[0m"
read MRSL
Insert_Option
;;
esac
echo -e "\n"
echo "Your Account Successfully Deleted"
echo -e "\033[94;5;1mHit Return to go Back to Main Menu\033[0m"
read MRSL
Insert_Option
}
Insert_Option
else
echo ""
fi
<file_sep>/README.md
# Open-Source-Final-Project-
| f3ca3186c81debc6821ca5193666b133e2ebe588 | [
"Markdown",
"Shell"
] | 2 | Shell | rasoul1234/Open-Source-Final-Project- | 34afd2324acf2f274529597cc0601fa2584bf6c7 | ce40b04212339bb0bb2e4999d5bc5a16faafb58f |
refs/heads/master | <repo_name>ElementalKin/DoubleLinkedList<file_sep>/LinkedList/tList.h
#pragma once
// Templated doubly-linked list
template<typename T>
class tList
{
struct Node
{
T data; // data for the element stored
Node * prev; // pointer to node following this node
Node * next; // pointer to node following this node
};
Node * head; // pointer to head of linked list
Node * tail; // pointer to tail of linked list
public:
tList(); // initializes head to null
tList(const tList& other); // copy-constructor
tList& operator=(const tList &rhs); // copy-assignment
~tList(); // delete all nodes upon destruction
void push_front(const T& val); // adds element to front (i.e. head)
void pop_front(); // removes element from front
void push_back(const T& val); // adds element to back (i.e. before back)
void pop_back(); // removes element from back
void Display(); // displays the linked list
T& front(); // returns the element at the head
const T& front() const; // returns the element at the head (const)
T& back(); // returns the element at the tail
const T& back() const; // returns the element at the tail (const)
void remove(const T& val); // removes all elements equal to the given value
bool empty() const; // Returns true if there are no elements
void clear(); // Destroys every single node in the linked list
void resize(size_t newSize); // Resizes the linked list to contain the given number of elements
// New elements are default-initialized
//I would have made it so that sort would send back the Data but making one for each seemed faster then trying to do that and since im in a rush im doing this.
void sort(tList* sorting, tList* placeHolder);
void sort2(tList* sorting, tList* placeHolder);
void sortAscending();
void sortDescending();
class iterator
{
Node * cur; // current node being operated upon
public:
iterator(); // initializes an empty iterator pointing to null
iterator(Node * startNode); // initializes an iterator pointing to the given node
bool operator==(const iterator& rhs) const; // returns true if the iterator points to the same node
bool operator!=(const iterator& rhs) const; // returns false if the iterator does not point to the same node
T& operator*(); // returns a reference to the element pointed to by the current node
const T& operator*() const; // returns a reference to the element pointed to by the current node
iterator& operator++(); // pre-increment (returns a reference to this iterator after it is incremented)
iterator operator++(int); // post-increment (returns an iterator as it was before it was incremented)
iterator& operator--(); // pre-decrement (returns a reference to this iterator after it is decremented)
iterator operator--(int); // post-decrement (returns an iterator as it was before it was decremented)
};
iterator begin(); // returns an iterator pointing to the first element
const iterator begin() const; // returns a const iterator pointing to the first element
iterator end(); // returns an iterator pointing to one past the last element
const iterator end() const; // returns a const iterator pointing to one past the last element
};
template<typename T>
inline tList<T>::tList()
{
head = nullptr;
}
template<typename T>
inline tList<T>::tList(const tList & other)
{
if (other.head == nullptr)
{
head = tail = nullptr; // if list is other is empty, empty this.
}
else
{
head = new Node(*other.head); // set the head and copy data.
Node* otherTemp = other.head->next;
Node* temp = head;
while (otherTemp != nullptr)
{
temp->next = new Node(*otherTemp); //copy the data into the next node.
temp = temp->next; // temp refers to last element of list.
otherTemp = otherTemp->next; // step one forward.
}
tail = temp;
}
}
template<typename T>
inline tList<T> & tList<T>::operator=(const tList & rhs)
{
if (this == &rhs)
{
return *this; //checks if they are the same array.
}
if (rhs.head == nullptr)
{
head = tail = nullptr; // if list other is empty, empty this.
}
else
{
push_front(rhs.head->data);
Node* n = rhs.head->next;
Node* temp = head;
while (n != nullptr)
{
temp->next = n; //copy the data into the next node.
temp = temp->next; // temp refers to last element of list.
n = n->next; // step one forward.
}
tail = temp;
}
return *this;
}
template<typename T>
inline tList<T>::~tList()
{
}
template<typename T>
inline void tList<T>::push_front(const T & val)
{
if (tail == nullptr && head != nullptr)
{
Node* n = new Node();
n->data = val;
n->next = head;
n->next->prev = n;
head = n;
tail = n->next;
}
else
{
Node* n = new Node();
n->data = val;
n->next = head;
if (head != nullptr) {
n->next->prev = n;
}
head = n;
}
}
template<typename T>
inline void tList<T>::pop_front()
{
if(head != nullptr)
{
Node* n = new Node();
n = head;
head = n->next;
head->prev = nullptr;
delete n;
}
}
template<typename T>
inline void tList<T>::push_back(const T & val)
{
if (head == nullptr && tail != nullptr)
{
Node* n = new Node();
n->data = val;
n->prev = tail;
n->prev->next = n;
tail = n;
head = n->prev;
}
else
{
Node* n = new Node();
n->data = val;
n->prev = tail;
if (tail != nullptr) {
n->prev->next = n;
}
tail = n;
}
}
template<typename T>
inline void tList<T>::pop_back()
{
if (tail != nullptr)
{
Node* n = new Node();
n = tail;
tail = n->prev;
n->prev->prev->next = tail;
tail->next = nullptr;
delete n;
}
}
template<typename T>
inline void tList<T>::Display()
{
std::cout << "\nNow displaying Tlist: ";
Node *disp = head;
if (head == nullptr)
{
std::cout << "empty\n";
return;
}
while (disp != nullptr)
{
std::cout << " " << disp->data;
if (disp->next == nullptr)
{
break;
}
disp = disp->next;
}
std::cout << "\n";
}
template<typename T>
inline T & tList<T>::front()
{
return head->data;
}
template<typename T>
inline const T & tList<T>::front() const
{
const Node* n = head;
return n;
}
template<typename T>
inline T & tList<T>::back()
{
return tail->data;
}
template<typename T>
inline const T & tList<T>::back() const
{
const Node* n = tail;
return n;
}
template<typename T>
inline void tList<T>::remove(const T & val)
{
Node* n = head;
//checks if head is null.
if (head == nullptr)
{
std::cout << "\nHead is Null" << std::endl;
return;
}
//checks if head is the value that needs to be deleted.
if (head->data == val)
{
//deltes it and makes sure it goes through the linked list to see if any more need to be deleted
head = n->next;
//frees up the memory
free(n);
std::cout << "\nDeleted Node." << std::endl;
remove(val);
return;
}
Node* n2 = n->next;
while (n2->next != nullptr)
{
n = n->next;
n2 = n2->next;
if(n2->data == val)
{
n->next = n2->next;
if (n2->next != nullptr)
{
n2->next->prev = n;
}
n2->next = n->prev;
free(n2);
std::cout << "\nDeleted Node." << std::endl;
remove(val);
return;
}
}
if (tail == nullptr)
{
std::cout << "\nTail is Null" << std::endl;
return;
}
//checks if tail is the value that needs to be deleted.
if (tail->data == val)
{
n = tail;
//deltes it and makes sure it goes through the linked list to see if any more need to be deleted
tail = n->prev;
//frees up the memory
free(n);
std::cout << "\nDeleted Node." << std::endl;
return;
}
std::cout << "\nall Nodes with value deleted." << std::endl;
return;
}
template<typename T>
inline bool tList<T>::empty() const
{
if(head == nullptr)
{
return true;
}
return false;
}
template<typename T>
inline void tList<T>::clear()
{
Node* n = head;
Node* temp = new Node();
while(n != nullptr)
{
temp = n->next;
delete[] n;
n = temp;
}
head = nullptr;
tail = nullptr;
}
template<typename T>
inline void tList<T>::resize(size_t newSize)
{
Node* n = head;
int s = 0;
while (n != tail)
{
n = n->next;
s++;
}
if (newSize >= s) {
for (int i = 0; i < newSize; i++)
{
push_back(0);
}
}
else
{
for (int i = 0; i < (s-newSize); i++)
{
pop_back();
}
}
}
template<typename T>
typename inline tList<T>::iterator tList<T>::begin()
{
iterator n = new iterator();
n::cur = head;
return n;
}
template<typename T>
typename inline const tList<T>::iterator tList<T>::begin() const
{
const iterator n = new iterator();
n::cur = head;
return n;
}
template<typename T>
typename inline tList<T>::iterator tList<T>::end()
{
iterator n = new iterator();
n::cur = tail;
return n;
}
template<typename T>
typename inline const tList<T>::iterator tList<T>::end() const
{
const iterator n = new iterator();
n::cur = tail;
return n;
}
template<typename T>
inline tList<T>::iterator::iterator()
{
cur = nullptr;
}
template<typename T>
inline tList<T>::iterator::iterator(Node * startNode)
{
cur = startNode;
}
template<typename T>
inline bool tList<T>::iterator::operator==(const iterator & rhs) const
{
if(cur == rhs)
{
return true;
}
return false;
}
template<typename T>
inline bool tList<T>::iterator::operator!=(const iterator & rhs) const
{
if (cur != rhs)
{
return true;
}
return false;
}
template<typename T>
inline T & tList<T>::iterator::operator*()
{
// TODO: insert return statement here
}
template<typename T>
inline const T & tList<T>::iterator::operator*() const
{
// TODO: insert return statement here
}
template<typename T>
typename inline tList<T>::iterator & tList<T>::iterator::operator++()
{
cur = cur.next;
return *cur;
}
template<typename T>
typename inline tList<T>::iterator tList<T>::iterator::operator++(int)
{
cur = cur.next;
return *cur.prev;
}
template<typename T>
typename inline tList<T>::iterator & tList<T>::iterator::operator--()
{
cur = cur.prev;
return *cur;
}
template<typename T>
typename inline tList<T>::iterator tList<T>::iterator::operator--(int)
{
cur = cur.prev;
return *cur.next;
}
template<typename T>
inline void tList<T>::sort(tList* sorting, tList* placeHolder)
{
if(head == nullptr)
{
return;
}
Node* n = sorting->head;
Node* m = sorting->head;
if (head->next == tail)
{
if (head->data > tail->data)
{
placeHolder->push_front(head->data);
placeHolder->push_front(tail->data);
clear();
}
else
{
placeHolder->push_front(tail->data);
placeHolder->push_front(head->data);
clear();
}
return;
}
while (m != tail)
{
m = m->next;
if(n->data < m->data)
{
n = m;
}
}
if(n == tail)
{
placeHolder->push_front(n->data);
pop_back();
}
else if(n == head)
{
placeHolder->push_front(n->data);
pop_front();
}
else
{
placeHolder->push_front(n->data);
m = n->next;
n->next->prev = n->prev;
n->next->prev->next = n->next;
}
if(sorting->empty())
{
delete n, m;
}
}
template<typename T>
inline void tList<T>::sort2(tList* sorting, tList* placeHolder)
{
if (head == nullptr)
{
return;
}
Node* n = sorting->head;
Node* m = sorting->head;
if (head->next == tail)
{
if (head->data > tail->data)
{
placeHolder->push_back(head->data);
placeHolder->push_back(tail->data);
clear();
}
else
{
placeHolder->push_back(tail->data);
placeHolder->push_back(head->data);
clear();
}
return;
}
while (m != tail)
{
m = m->next;
if (n->data < m->data)
{
n = m;
}
}
if (n == tail)
{
placeHolder->push_back(n->data);
pop_back();
}
else if (n == head)
{
placeHolder->push_back(n->data);
pop_front();
}
else
{
placeHolder->push_back(n->data);
m = n->next;
n->next->prev = n->prev;
n->next->prev->next = n->next;
}
if (sorting->empty())
{
delete n, m;
}
}
template<typename T>
inline void tList<T>::sortAscending()
{
int i = 0;
tList<int>* placeHolder = new tList();
Node* n = head;
while (n != tail)
{
n = n->next;
i++;
}
while(i >= 0)
{
sort(this, placeHolder);
i--;
}
*this = *placeHolder;
}
template<typename T>
inline void tList<T>::sortDescending()
{
int i = 0;
tList<int>* placeHolder = new tList();
Node* n = head;
while (n != tail)
{
n = n->next;
i++;
}
while (i >= 0)
{
sort2(this, placeHolder);
i--;
}
*this = *placeHolder;
}
<file_sep>/LinkedList/Source.cpp
#include "tList.h"
#include <iostream>
int main()
{
//currently can't interact with the linked lists functions need to work on that.
tList<int> h;
std::string answer;
int response = 0;
while (true)
{
std::cout << "Do you want to [1] check whats in the list, [2] add to the list, [3] remove from the front of the list, \n[4] resize the list, [5] sort the list, [6] clear the list, [7] check if its empty, [8] get info on the head or tail" << std::endl;
std::cin >> response;
if(response == 1)
{
h.Display();
}
else if(response == 2)
{
std::cout << "Do you want to [1] add to the front or [2] the back." << std::endl;
std::cin >> response;
if(response == 1)
{
std::cout << "how much do you want to add." << std::endl;
std::cin >> response;
h.push_front(response);
}
else if(response == 2)
{
std::cout << "how much do you want to add to this node." << std::endl;
std::cin >> response;
h.push_back(response);
}
else
{
std::cout << "please enter 1-2 to respond" << std::endl;
}
}
else if (response == 3)
{
std::cout << "Do you want to [1] remove to the front or [2] the back." << std::endl;
std::cin >> response;
if (response == 1)
{
h.pop_front();
}
else if (response == 2)
{
h.pop_back();
}
else
{
std::cout << "please enter 1-2 to respond" << std::endl;
}
}
else if (response == 4)
{
std::cout << "what do you want the new size to be?" << std::endl;
std::cin >> response;
h.resize(response);
}
else if (response == 5)
{
std::cout << "Do you want to [1] sort it ascending to the front or [2] decending." << std::endl;
std::cin >> response;
if (response == 1)
{
h.sortAscending();
}
else if (response == 2)
{
h.sortDescending();
}
else
{
std::cout << "please enter 1-2 to respond" << std::endl;
}
}
else if (response == 6)
{
h.clear();
}
else if (response == 7)
{
if(h.empty())
{
std::cout << "True" << std::endl;
}
else
{
std::cout << "False" << std::endl;
}
}
else if (response == 8)
{
std::cout << "Do you want to [1] info on the head or [2] tail." << std::endl;
std::cin >> response;
if (response == 1)
{
std::cout << h.front() << std::endl;
}
else if (response == 2)
{
std::cout << h.back() << std::endl;
}
else
{
std::cout << "please enter 1-2 to respond" << std::endl;
}
}
else
{
std::cout << "please enter 1-5 to respond" << std::endl;
}
}
return 0;
}
void printTList(tList<int> h)
{
} | f77e2dd1b6361d0a47fa9ec5f42bfbfaab946e31 | [
"C++"
] | 2 | C++ | ElementalKin/DoubleLinkedList | a31d916dee94c75e48c3ff4b02d99898034aaa99 | ab333f84a259c7b00390b4ffdfd145e19ec98763 |
refs/heads/master | <repo_name>prateeksha-0518/Ice-cream-Parlour-Management-System<file_sep>/config.php
<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '<PASSWORD>';
$db='parlour';
$con = mysqli_connect($dbhost,$dbuser,$dbpass,$db);
if (mysqli_connect_errno()){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
function nameTrim($n){
$nm=explode(" ",$n);
return $nm[0];
}
?>
<?php
function myAlert($msg){
echo "<script type='text/javascript'>alert('$msg');</script>";
}
function myConnection(){
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '<PASSWORD>';
$db='parlour';
$con = mysqli_connect($dbhost,$dbuser,$dbpass,$db);
if (mysqli_connect_errno()){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_select_db($con,'parlour');
return $con;
}
?>
<file_sep>/about.php
<?php
include("config.php");
$con=myConnection();
if(isset($_POST['mail'])){
$ml=$_POST['email'];
if(!empty($ml)){
$dt=date('Y-m-d');
$sql="Insert into mailing values('$ml','$dt')";
if(!filter_var($ml,FILTER_VALIDATE_EMAIL)){
myAlert("Enter a valid mail id.");
}
else{
if(mysqli_query($con,$sql)){
myAlert("Thank you for subscribing");
}
else{
myAlert("Sorry It could not be done.");
}
}}
else{
myAlert("Enter your mail.");
}
}
?>
<html>
<head>
<title>About Us</title>
<link rel="icon" href="./images/icon.ico">
<link href='./CSS/about1.css' rel='stylesheet' type='text/css'></link>
</head>
<body>
<div id="container">
<header>
<div id='nav'>
<img src="images/logo.jpg" alt="Company's Logo" style="width:100px;height:95px; position: relative; left:-1300px;padding-top: 2px">
<h1 style="font-style: italic;font-size:30;position: relative;top:-80px;left:200px"><NAME> Icecreams</h1>
<a href='./home.php'>Home</a>
<a href='./manage_ingredients.php'>Employee</a>
<a href='./menu.php'>Menu</a>
<a href='./order.php'>Order</a>
<a href='./feedback.php'>Feedback</a>
<a href='./about.php'>About Us</a>
</div>
</header>
<div id="content">
<h2 style="font-weight: bold;font-size: 70;text-align: center;color: #C66707;position: relative;top:100px;">About Us</h2>
<div id="begining" style="overflow: hidden;height: 350px;">
<h2 style="font-family: courier;font-size: 40;text-align: left;color: #FDFD04;position: relative;top:40px;">Our humble begining</h2>
<img src="./images/begining.jpg" alt="Store" style="width:500px;height:300px; position: relative;left:900px;padding-top: 2px;float:left">
<div id="beg_content" style="width:60%;height: 50px">
<p1 style="font-style:italic;font-size: 30;text-align: left;position:relative;color: #FFF;float: right;top:-300px;">Nearly three-quarters of a century ago, two brothers-in-law shared a dream to create an innovative ice cream store that would be a neighborhood gathering place for families. <NAME> and <NAME> had a mutual love of old-fashioned ice cream and the desire to provide customers a variety of flavors made with ingredients of the highest quality in a fun, inviting atmosphere.</p1>
</div>
</div>
<div id="history" style="overflow: auto;height: 1200px">
<h2 style="font-family: courier;font-size: 40;text-align: left;color: #FDFD04;position:relative;top:-10px;">How it was born?</h2>
<img src="./images/history.jpg" alt="First Store" style="width:500px;height:350px; position: relative;left:0px;top:10px;padding-top: 2px;float:left;">
<div id="history_content" style="width:40% height:200px">
<p1 style="font-style:italic;font-size: 30;text-align: left;position:relative;color: #FFF;float: left;top:-0px;right:-65px;height:100px;width: 60%;">As a teen, Tim worked in his father's ice cream store. During World War II, Doug was a Lieutenant in the U.S. Navy and produced ice cream for his fellow troops. When the war was over, the two entrepreneurs were eager to capitalize on America's love of ice cream.They started out in separate ventures at the advice of Tim's father. In 1945, Tim opened Snowbird Ice Cream in Glendale, California. His store featured 21 flavors and emphasized high-quality ice cream sold in a fun, personalized atmosphere. A year later, Doug opened Burton's Ice Cream Shop in Pasadena, CA. By 1948, they had six stores between them. This concept eventually grew into Tim & Doug's Icecreams.
</p1>
<p2 style="font-style:italic;font-size: 30;text-align: left;position:relative;color: #FFF;float: right;top:100px;height:600px">
As the number of stores grew, Tim and Doug recognized that to maintain the high standards they set in the beginning, each store would require a manager who had an ownership interest in its overall operation. Even though they didn't realize it at the time, the two founders had pioneered the concept of franchising in the ice cream industry.In 1949, there were more than 40 stores in Southern California when Tim and Doug purchased their first dairy in Burbank. This business decision allowed them to have complete control over the production of their ice cream, and the development of new ingredients and flavors.
It wasn't until 1953 that the ice cream chain dropped the separate identities of Snowbird and Burton's and became Tim & Doug's Icecreams.In 1954, they put their product on the line against their competitors at the Los Angeles County Fair. That year they won their first Gold Medal and set the pattern for county and state fair participation, earning Gold Medals for Tim & Doug's Ice Cream every year since that first contest.<br>
The franchise model created by Tim and Doug decades ago is still used by Tim & Doug's today. Since 1945, we've introduced more than 1,000 unique, fun and delicious ice cream flavors. Still, we continue to consistently introduce new, exciting flavor combinations, as well as ice cream industry-leading innovations such as hand-packed ice cream quarts, a unique flavor ribbon technique, the use of traditional dessert ingredients and the introduction of mousse-textured ice creams.<br>
"Not everyone likes all our flavors, but each flavor is someone's favorite."
-<NAME>
</p2>
</div>
</div>
<div id="praise" style="overflow: auto;height: 1200px">
<h2 style="font-family: courier;font-size: 40;text-align: left;color: #FDFD04;position:relative;top:-10px;">Taste of success!!</h2>
<img src="./images/praise.jpg" alt="Praise" style="width:500px;height:300px; position: relative;left:0px;top:10px;padding-top: 2px;float:left;">
<div id="praise_content" style="width:40% height:200px">
<p1 style="font-style:italic;font-size: 30;text-align: left;position:relative;color: #FFF;float: left;top:-0px;right:-65px;height:100px;width: 60%">There are many forms of enjoyment in life: there's spontaneous pleasure, anticipated pleasure, there is long-term happiness and there are spur-of-the-moment joys. For people everywhere, ice cream has probably generated each of those types of pleasure.
Baskin-Robbins has long been dedicated to making the experiences of eating ice cream an enjoyable one. “America’s Favorite Neighborhood Ice Cream Shop" is a philosophy at Baskin-Robbins shared by everyone.
</p1>
<p2 style="font-style:italic;font-size: 30;text-align: left;position:relative;color: #FFF;float: right;top:50px;height:600px">
Each employee, store owner and corporate team member is proud of our heritage, and they are dedicated to upholding the flavor, the fun, and the local, neighborhood feel that make the experience unique to Tim & Doug's. There is nothing quite as thrilling as the face of a child enjoying his favorite ice cream flavor, or the delight of a mother surprised with an ice cream cake on Mother's Day in a store you call “my Tim & Doug's”.
From the ages of one to ninety-nine, people visit Tim & Doug's anticipating the pleasure of enjoying their favorite ice creams served any way they want. Because of our dedication to being "America's Favorite Neighborhood Ice Cream Shop", Tim & Doug's icecream stores are visited by over 300 million happy customers year after year. A number that continues to grow as Tim & Doug's spreads throughout the world.<br>
<h3 style="color:#FDFD04;font-style: normal;">"In the moments of greatest pride, Tim & Doug's is composed of those who contribute in a special way to our fellow humans-helping to nourish that quality of childlike enjoyment, which is perhaps the most precious and hopeful part of our humanity."
<br> -<NAME>, Associate Dean of the Graduate School of Business at the University of California, Los Angeles.</h3>
</p2>
</div>
</div>
</div>
</div>
<div id="footer">
<div id="menu">
<a href='./home.php'>Home</a><br>
<a href='./employee.php'>Employee</a><br>
<a href='./menu.php'>Menu</a><br>
<a href='./order.php'>Order Online</a><br>
<a href='./feedback.php'>Feedback</a><br>
<a href='./about.php'>About Us</a><br>
<h3 style="font-style: italic;font-size:20;">Subscribe to mailing list:</h3>
<form method="post">
<img src="images/email.jpg" alt="Submit" style="height:40px;margin:10px;position: relative;top:-20px"><input type="text" name="email" style="width:200px;height:30px;box-sizing: border-box;border:2px solid black;position: relative;top:-45px">
<input type="submit" name="mail" value="" style="background-image: url('./images/submit.jpg');background-size:100% 100%;height: 40px;width: 130px;position: relative;top:-30px;">
</form>
</div>
<div id="contact">
<h4 style="font-size: 25;color: black;position: relative;top:-30px;font-style: italic;">Contact Us:</h4>
<h2 style="color:black">Tim & Doug's Ice Cream Shop, 54 Coventry St, Newport, VT 05855, USA<br>
Email: <EMAIL>;<br>
Phone: 9802342231 (10:00 am - 09:00 pm)</h2>
<iframe src="https://www.google.com/maps/embed?pb=!1m23!1m12!1m3!1d90381.16711023588!2d-72.27774578323462!3d44.9353025954568!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!4m8!3e6!4m0!4m5!1s0x4cb67195d26c7ee7%3A0xf81323e4ab0a3ea1!2stim+and+doug's+ice+cream+shop!3m2!1d44.935324!2d-72.207706!5e0!3m2!1sen!2sin!4v1502522505511" width="450" height="150" frameborder="0" style="border:2px solid black;position: relative;top:-70px" allowfullscreen></iframe>
</div>
<div id="social">
<h3 style="font-style: italic;font-size:30;position: relative;text-align: left;top:-25;left:150px">The Social Club</h3>
<a href="https://www.facebook.com/Tim-Dougs-Ice-Cream-201191819924102/"><img src="./images/facebook.jpg" alt="facebookLogo" style="height:60px;width:60px;position:relative;top:-40px;left:110px"></a>
<a href="https://twitter.com/search?q=tim%20doug%27s%20icecream&src=typd"><img src="./images/twitter.jpg" alt="twitterLogo" style="height:60px;width:60px;position:relative;top:-40px;left:110px"></a>
<a href="https://www.instagram.com/explore/locations/244468838/tim-dougs-ice-cream/"><img src="./images/instagram.jpg" alt="instagramLogo" style="height:60px;width:60px;position:relative;top:-40px;left:110px"></a>
<a href="https://www.youtube.com/watch?v=X1Sta6YSBkc"><img src="./images/youtube.jpg" alt="youtubeLogo" style="height:60px;width:60px;position:relative;top:-40px;left:110px"></a>
</div>
<div id="quality">
<h5 style="font-style: italic;font-size:20;position: relative;text-align: left;top:-50;left:0px">Quality First!</h5>
<img src="./images/qt1.jpg" style="height:100px;width:100px;position:relative;top:-65px;left:0px">
<img src="./images/qt2.jpg" style="height:100px;width:100px;position:relative;top:-65px;left:0px">
<img src="./images/qt3.jpg" style="height:100px;width:100px;position:relative;top:-65px;left:0px">
<img src="./images/qt4.jpg" style="height:100px;width:100px;position:relative;top:-65px;left:0px">
</div>
</div>
</body>
</html>
<file_sep>/trial1.php
<?php
$data=array(11,22,11,22,11,22); //fill this array with your data
$total=array_sum($data);
for($i=0;$i<count($data);$i++)
{
$arc[$i]=$data[$i]*360/$total;
}
foreach($arc as $a) echo $a."<br>";die;
$image = imagecreatetruecolor(505,500) or die("Image can't be created");
$style=IMG_ARC_PIE;
// allocate some colors
$white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
$gray = imagecolorallocate($image, 0xC0, 0xC0, 0xC0);
$navy = imagecolorallocate($image, 0x00, 0x00, 0x80);
$red = imagecolorallocate($image, 0xFF, 0x00, 0x00);
$yellow = imagecolorallocate($image, 255, 255, 0);
$orange = imagecolorallocate($image, 255, 111, 0);
$green = imagecolorallocate($image, 35, 175, 0);
$colors=array($red,$gray,$navy,$yellow,$orange,$green);
$start=0;
for($j=0;$j<count($data);$j++)
{
imagefilledarc($image, 250, 250, 500, 250, $start, $start+$arc[$j], $colors[$j], $style);
$start=$start+$arc[$j];
}
header('Content-type: image/png');
imagepng($image);
imagedestroy($image);
?>
<file_sep>/receipt.php
<html>
<head>
<title>Home</title>
<link rel="icon" href="./images/icon.ico">
<link href='./CSS/home.css' rel='stylesheet' type='text/css'></link>
</head>
<body >
<?php
session_start();
$con=myConnection();
$ph=$_COOKIE["phone"];
$sql="SELECT C.cust_id from customer C where C.cust_id =(SELECT A.cust_id from cust_phone A where A.phone='$ph');";
$us=mysqli_fetch_row(mysqli_query($con,$sql));
$sql="SELECT C.name,C.streetname,C.city from customer C where C.cust_id =(SELECT A.cust_id from cust_phone A where A.phone='$ph');";
$rs=mysqli_fetch_row(mysqli_query($con,$sql));
$arr=array("butter","choc","jak","nash","pista","siz");
$sql="SELECT F.flvr_name ,C.cost,F.flvr_id from icecream F,icecream_details C where F.flvr_id=C.flvr_id;";
$flvr=[];
$qr=mysqli_query($con,$sql);
while($r=mysqli_fetch_row($qr)){
array_push($flvr,array($r[0],$r[1],$r[2]));
}
$sql="SELECT D.hno from house D where cust_id=(SELECT cust_id from customer C where C.cust_id =(SELECT A.cust_id from cust_phone A where A.phone='$ph'));";
$qr=mysqli_fetch_row(mysqli_query($con,$sql));
?>
<div id="container" style="background-color: white;height: 1050px;overflow: hidden" >
<div id="revId" >
<img src="images/logo.jpg" alt="Company's Logo" style="width:250px;height:195px; position: relative; top:10px;padding-top: 2px;left:-500px">
<h1 style="font-style: italic;font-size:60;position: relative;top:-140px;left:400px;color: black">Tim & Doug's Icecreams</h1>
<h1 style="font-style: italic;font-size:20;position: relative;top:-180px;left:1000px;color: black">Since 1975</h1>
<h1 style="color: black;position: relative;top:-120px;left: 290px">Order ID : <?php echo $_SESSION['oid']; ?> </h1>
<img src="images/invoice.png" style="width:150px;height:125px; position: relative; top:-220px;padding-top: 2px;left:-500px">
</div>
<div id="review" style="height: 900px;width: 90%;background-color: white;position: relative;top:-200px;left: 80px">
<h1 style="color: black;position: relative;top:30px;">Name : <?php echo strtoupper($rs[0]); ?> </h1>
<h1 style="color: black;position: relative;top:-30px;left: 500px">Phone Number : <?php echo $ph; ?> </h1>
<h1 style="color: black;position: relative;top:-30px;">Address : <?php echo "House No. ".$qr[0]."; ".$rs[1]."; ".$rs[2]; ?> </h1>
<h1 style="color: black;position: relative;top:-30px;">Order : </h1><br>
<div style="zoom:180%;position: relative;top:-30px;left: 50px">
<?php
$sum=0;
echo "<table border=1><tr><th>Flavour</th><th>Quantity</th><th>Rate</th><th>Total</th></tr>";
for($i=0;$i<6;$i++){
if($_COOKIE[$arr[$i]]>0){
$t=$flvr[$i][1] * $_COOKIE[$arr[$i]];
$sum += $t;
echo "<tr><th>".$flvr[$i][0]."</th><th>".$_COOKIE[$arr[$i]]."</th><th>".$flvr[$i][1]." $</th><th>".$t."</th></tr>";
}
}
echo "</table><br>";
$gst=(0.075*$sum);
$total=$sum+$gst;
?>
</div>
<div style="position: relative;top: -320px;left: 750px">
<h1 style="color: black;position: relative;font-size: 30px">Total Sum Amount : <?php echo $_SESSION["sum"]; ?> </h1>
<h1 style="color: black;position: relative;font-size: 30px">GST Applicable (7.5%) : <?php echo ($_SESSION["sum"] * 0.075); ?> </h1>
<h1 style="color: black;position: relative;font-size: 30px">Payable Amount : <?php echo $_SESSION["total"]; ?> </h1>
</div>
</div>
<a href="./home.php"><img src="images/home.png" style="width:100px;height:85px; position: relative; top:-1500px;padding-top: 2px;left:570px"></a>
</div>
</body>
</html>
<?php
function myAlert($msg){
echo "<script type='text/javascript'>alert('$msg');</script>";
}
function myConnection(){
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '<PASSWORD>';
$db='parlour';
$con = mysqli_connect($dbhost,$dbuser,$dbpass,$db);
if (mysqli_connect_errno()){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_select_db($con,'parlour');
return $con;
}
?><file_sep>/manage_ingredients.php
<html>
<head>
<title>Home</title>
<link rel="icon" href="./images/icon.ico">
<link href='./CSS/emp_ing.css' rel='stylesheet' type='text/css'></link>
<link href='./menu.css' rel='stylesheet' type='text/css'></link>
</head>
<body>
<?php
include('session.php');
$con=myConnection();
$sql="select name from employee where emp_id=$user_check;";
$us=mysqli_fetch_array(mysqli_query($con,$sql));
$user=nameTrim($us["name"]);
$gen="male";
?>
<div id="container">
<header>
<div id='nav'>
<img src="images/logo.jpg" alt="Company's Logo" style="width:100px;height:95px; position: relative; left:-1300px;padding-top: 2px">
<h1 style="font-style: italic;font-size:30;position: relative;top:-80px;left:200px">Tim & Doug's Icecreams</h1>
<a href='./home.php'>Home</a>
<a href='./employee.php'>Employee</a>
<a href='./menu.php'>Menu</a>
<a href='./order.php'>Order</a>
<a href='./feedback.php'>Feedback</a>
<a href='./about.php'>About Us</a>
</div>
</header>
<img src="images/ingredients.jpg" alt="Company's Logo" style="width:100%;height:100%;opacity: 0.4">
<div id="content" style="position: fixed;top:100px;left: 500px;">
<div id="stock">
<strong><h1 style="color: #FF5733"><p style='font-size:50'><?php echo "Stock:" ?></h1></strong>
<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '<PASSWORD>';
$db='parlour';
$con = mysqli_connect($dbhost,$dbuser,$dbpass,$db);
if (mysqli_connect_errno()){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$sql ='select I.pid,I.pname,ID.stock from ingredient I,ingredient_detail ID where I.pid=ID.pid';
mysqli_select_db($con,'parlour');
$retval = mysqli_query($con,$sql);
if(! $retval ) {
die('Could not get data: ' . mysqli_error($con));
}
mysqli_close($con);
?>
<table class="table" style="position: relative;top:-20px">
<tr>
<th><a>ID</a></th>
<th><a>Name</a></th>
<th><a>Stock</a></th>
</tr>
<?php
If(mysqli_num_rows($retval)>0){
while($row=mysqli_fetch_array($retval)){
?>
<tr>
<td><b><?php echo $row['pid']; ?></b></td>
<td><b><?php echo $row['pname']; ?></b></td>
<td><b><?php echo $row['stock']; ?></b></td>
</tr>
<?php
}
}
?>
</table>
</div>
<div id="update" style="">
<strong><h3 style="color:#FF5733"><div align =left><p style='font-size:50'><?php echo"Update Stock:"; ?></div></h3></strong>
<?php
if(isset($_POST['update'])) {
if(empty($_POST["stock"])){
myAlert("Quantity must be entered");
}
else{
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '<PASSWORD>';
$db='parlour';
$con = mysqli_connect($dbhost, $dbuser, $dbpass,$db);
if(! $con ) {
die('Could not connect: ' . mysqli_error($con));
}
$pid = $_POST['pid'];
$sql = "select stock from ingredient_detail where pid='$pid'";
$st = mysqli_fetch_row(mysqli_query($con,$sql ));
echo $st[0];
$stock = $_POST['stock'] + $st[0];
mysqli_select_db($con,'parlour');
$sql = "update ingredient_detail set stock='$stock' where pid='$pid'";
$retval = mysqli_query($con,$sql );
if(! $retval ) {
die('Could not update data: ' . mysqli_error($con));
}
echo "Updated data successfully\n";
header('Location: '.$_SERVER['PHP_SELF']);
die;
mysqli_close($con);
}
}
?>
<form method = "post" action = "<?php $_PHP_SELF ?>">
<div id="stock_drop" style="position: relative;top:-25px;left: -90px">
<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '<PASSWORD>';
$db='parlour';
$con = mysqli_connect($dbhost,$dbuser,$dbpass,$db);
if (mysqli_connect_errno()){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$sql ='select pid from ingredient;';
mysqli_select_db($con,'parlour');
$retval = mysqli_query($con,$sql);
if(! $retval ) {
die('Could not get data: ' . mysqli_error($con));
}
mysqli_close($con);
echo "<a style='position: relative;left:-30px'>Ingredients:</a> <select name='pid' style='position: relative;top:-5px'>";
If(mysqli_num_rows($retval)>0){
while($row=mysqli_fetch_array($retval)){
?> <option value='<?php echo $row['pid']; ?>'> <?php echo $row['pid']; ?></option> <? }
echo "</select>";
?><?php }
?><br>
<a style="position: relative;left: 70px">Add Quantity: <input type="integer" name="stock" style="width:30px;position: relative;top:-5px;left: 10px;padding-left: 5px"></a>
<input type="submit" name="update" value="" style="height: 60;width:200px;position: relative;left:200px;background-image: url('./images/update.png');background-size:100% 100%">
</div>
</form>
<?php
?>
</div>
</div>
</div>
<div id="menu" style="position: fixed;top:100px">
<div id="avatar">
<?php
if($gen=="male"){
echo "<img src='images/avatar.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
else{
echo "<img src='images/avatar_girl.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
?>
<h1 style="font-family: helvetica;font-size: 20;text-decoration:none;color:white;padding-left: 20px;position: relative;top:-70px;left:200px">HELLO<br> <?php echo $user; ?></h1>
</div>
<div id="menu_option">
<a href="manage_ingredients.php" style="position: relative;top:10px;">MANAGE INGREDIENTS</a><br>
<a href="manage_account.php" style="position: relative;top:30px;">MANAGE ACCOUNT</a><br>
<a href="process_order.php" style="position: relative;top:50px;">PROCESS ORDERS</a><br>
<a href="./order_logs.php" style="position: relative;top:70px;">ORDER LOGS</a><br>
<a href="./sendMail.php" style="position: relative;top:90px;">MAILING</a><br>
<a href="./leave.php" style="position: relative;top:140px;">LEAVE REQUEST</a><br>
</div>
<div id="checkout">
<a href="./logout.php" style="position: relative;top:-30px;left: -10px"><img src="images/logout.png" alt="Company's Logo" style="width:80px;height:60px;position: relative;">SIGN-OUT</a>
</div>
</div>
</body>
</html>
<file_sep>/home.php
<?php
$con=myConnection();
if(isset($_POST['mail'])){
$ml=$_POST['email'];
if(!empty($ml)){
$dt=date('Y-m-d');
$sql="Insert into mailing values('$ml','$dt')";
if(!filter_var($ml,FILTER_VALIDATE_EMAIL)){
myAlert("Enter a valid mail id.");
}
else{
if(mysqli_query($con,$sql)){
myAlert("Thank you for subscribing");
}
else{
myAlert("Sorry It could not be done.");
}
}}
else{
myAlert("Enter your mail.");
}
}
?>
<html>
<head>
<title>Home</title>
<link rel="icon" href="./images/icon.ico">
<link href='./CSS/home.css' rel='stylesheet' type='text/css'></link>
</head>
<body>
<div id="container" style="height: 1800px" >
<header>
<div id='nav'>
<img src="images/logo.jpg" alt="Company's Logo" style="width:100px;height:95px; position: relative; left:-1300px;padding-top: 2px">
<h1 style="font-style: italic;font-size:30;position: relative;top:-80px;left:200px">Tim & Doug's Icecreams</h1>
<a href='./home.php'>Home</a>
<a href='./manage_ingredients.php'>Employee</a>
<a href='./menu.php'>Menu</a>
<a href='./order.php'>Order</a>
<a href='./feedback.php'>Feedback</a>
<a href='./about.php'>About Us</a>
</div>
</header>
<div id="banner">
<video muted="muted" ; autoplay="autoplay"; loop="loop">
<source src="videos/icecream.mp4" type="video/mp4">
<source src="videos/icecream.webm" type="video/webm">
<source src="videos/icecream.ogv" type="video/ogg">
</video>
</div>
<h1 style="position: relative;text-align: center;font-size: 50;font-family: Impact;color:#FF7C00">Welcome to the world of ice-creams!!</h1>
<div id="offers" style="position: relative;top:100px;overflow: hidden">
<img src="./images/poster.jpg" style="height: 100%;width: 100%">
</div>
</div>
<div id="reviews" style="height:500px;width:1300px;background-color: white;position: relative;top:-100px;left: 70px;overflow: hidden">
<img src="./images/cust_rev.png" style="height:150px;width:150px;position:relative;left:-500px">
<div style="position: relative;top:-50px;height: 200px">
<marquee direction="up">
<?php
$s=0;
$con=myConnection();
$sql="SELECT * from comments";
$qr=mysqli_query($con,$sql);
$tn=mysqli_affected_rows($con);
while($r=mysqli_fetch_row($qr)){
echo "<h1 style='color:black;position:relative;left:270px'>'".strtoupper($r[1])."'</h1>";
$s+=$r[2];
}
?>
</marquee>
</div>
</div>
<div style="position: relative;top:-400px;left:1000px;background-color: white;width: 300px">
<h1 style="color: black">USER RATINGS</h1>
<?php
$avg=floor($s/$tn);
echo "<img src='./images/rating/$avg.jpg' style='height:100px;width:150px;position:relative;left:0px'>";
?>
</div>
<div id="footer" style="position: relative;top:-00px">
<div id="menu">
<a href='./home.php'>Home</a><br>
<a href='./employee.php'>Employee</a><br>
<a href='./menu.php'>Menu</a><br>
<a href='./order.php'>Order Online</a><br>
<a href='./feedback.php'>Feedback</a><br>
<a href='./about.php'>About Us</a><br>
<h3 style="font-style: italic;font-size:20;">Subscribe to mailing list:</h3>
<form method="post">
<img src="images/email.jpg" alt="Submit" style="height:40px;margin:10px;position: relative;top:-20px"><input type="text" name="email" style="width:200px;height:30px;box-sizing: border-box;border:2px solid black;position: relative;top:-45px">
<input type="submit" name="mail" value="" style="background-image: url('./images/submit.jpg');background-size:100% 100%;height: 40px;width: 130px;position: relative;top:-30px;">
</form>
</div>
<div id="contact">
<h4 style="font-size: 25;color: black;position: relative;top:-30px;font-style: italic;">Contact Us:</h4>
<h2 style="color:black">Tim & Doug's Ice Cream Shop, 54 Coventry St, Newport, VT 05855, USA<br>
Email: <EMAIL>;<br>
Phone: 9802342231 (10:00 am - 09:00 pm)</h2>
<iframe src="https://www.google.com/maps/embed?pb=!1m23!1m12!1m3!1d90381.16711023588!2d-72.27774578323462!3d44.9353025954568!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!4m8!3e6!4m0!4m5!1s0x4cb67195d26c7ee7%3A0xf81323e4ab0a3ea1!2stim+and+doug's+ice+cream+shop!3m2!1d44.935324!2d-72.207706!5e0!3m2!1sen!2sin!4v1502522505511" width="450" height="150" frameborder="0" style="border:2px solid black;position: relative;top:-70px" allowfullscreen></iframe>
</div>
<div id="social">
<h3 style="font-style: italic;font-size:30;position: relative;text-align: left;top:-25;left:150px">The Social Club</h3>
<a href="https://www.facebook.com/Tim-Dougs-Ice-Cream-201191819924102/"><img src="./images/facebook.jpg" alt="facebookLogo" style="height:60px;width:60px;position:relative;top:-40px;left:110px"></a>
<a href="https://twitter.com/search?q=tim%20doug%27s%20icecream&src=typd"><img src="./images/twitter.jpg" alt="twitterLogo" style="height:60px;width:60px;position:relative;top:-40px;left:110px"></a>
<a href="https://www.instagram.com/explore/locations/244468838/tim-dougs-ice-cream/"><img src="./images/instagram.jpg" alt="instagramLogo" style="height:60px;width:60px;position:relative;top:-40px;left:110px"></a>
<a href="https://www.youtube.com/watch?v=X1Sta6YSBkc"><img src="./images/youtube.jpg" alt="youtubeLogo" style="height:60px;width:60px;position:relative;top:-40px;left:110px"></a>
</div>
<div id="quality">
<h5 style="font-style: italic;font-size:20;position: relative;text-align: left;top:-50;left:0px">Quality First!</h5>
<img src="./images/qt1.jpg" style="height:100px;width:100px;position:relative;top:-65px;left:0px">
<img src="./images/qt2.jpg" style="height:100px;width:100px;position:relative;top:-65px;left:0px">
<img src="./images/qt3.jpg" style="height:100px;width:100px;position:relative;top:-65px;left:0px">
<img src="./images/qt4.jpg" style="height:100px;width:100px;position:relative;top:-65px;left:0px">
</div>
</div>
</body>
</html>
<?php
function myAlert($msg){
echo "<script type='text/javascript'>alert('$msg');</script>";
}
function myConnection(){
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '<PASSWORD>';
$db='parlour';
$con = mysqli_connect($dbhost,$dbuser,$dbpass,$db);
if (mysqli_connect_errno()){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_select_db($con,'parlour');
return $con;
}
?><file_sep>/README.txt
This project has been developed only for academic purpose and the name/images/references are purely fictious and any voilation may be purely coincidental.
This project is not to be used for any economical purpose.<file_sep>/analytics.php
<?php
$connect = mysqli_connect("localhost", "root", "dbms", "parlour");
$query = "SELECT gender, count(*) as number FROM tbl_employee GROUP BY gender";
$result = mysqli_query($connect, $query);
?>
<html>
<head>
<title>Home</title>
<link rel="icon" href="./images/icon.ico">
<link href='./CSS/emp_acc1.css' rel='stylesheet' type='text/css'></link>
<link href='./menu.css' rel='stylesheet' type='text/css'></link>
</head>
<body>
<?php
include('session.php');
$con=myConnection();
$sql="select name from employee where emp_id=$user_check;";
$us=mysqli_fetch_array(mysqli_query($con,$sql));
$user=nameTrim($us["name"]);
$gen="male";
?>
<div id="container" style=";height: 1300px;overflow: scroll;" >
<header>
<div id='nav'>
<img src="images/logo.jpg" alt="Company's Logo" style="width:100px;height:95px; position: relative; left:-1300px;padding-top: 2px">
<h1 style="font-style: italic;font-size:30;position: relative;top:-80px;left:200px">Tim & Doug's Icecreams</h1>
<a href='./home.php'>Home</a>
<a href='./employee.php'>Employee</a>
<a href='./menu.php'>Menu</a>
<a href='./order.php'>Order</a>
<a href='./feedback.php'>Feedback</a>
<a href='./about.php'>About Us</a>
</div>
</header>
<div id="content" style="background-color: red;position: relative;top:100px;left: 0px;">
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawChart);
function drawChart()
{
var data = google.visualization.arrayToDataTable([
['Gender', 'Number'],
<?php
while($row = mysqli_fetch_array($result))
{
echo "['".$row["gender"]."', ".$row["number"]."],";
}
?>
]);
var options = {
title: 'Percentage of Male and Female Employee',
//is3D:true,
pieHole: 0.4
};
var chart = new google.visualization.PieChart(document.getElementById('piechart'));
chart.draw(data, options);
}
</script>
</div>
<div id="menu" style="position: fixed;top:100px">
<div id="avatar">
<?php
if($gen=="male"){
echo "<img src='images/avatar.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
else{
echo "<img src='images/avatar_girl.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
?>
<h1 style="font-family: helvetica;font-size: 20;text-decoration:none;color:white;padding-left: 20px;position: relative;top:-70px;left:200px">HELLO<br> <?php echo $user; ?></h1>
</div>
<div id="menu_option">
<a href="manage_ingredients.php" style="position: relative;top:10px;">MANAGE INGREDIENTS</a><br>
<a href="./manage_order.php" style="position: relative;top:30px;">MANAGE ORDER</a><br>
<a href="./order_logs.php" style="position: relative;top:50px;">ORDER LOGS</a><br>
<a href="process_order.php" style="position: relative;top:70px;">PROCESS ORDERS</a><br>
<a href="manage_account.php" style="position: relative;top:90px;">MANAGE ACCOUNT</a><br>
</div>
<div id="checkout">
<a href="./logout.php" style="position: relative;top:-30px;left: -10px"><img src="images/logout.png" alt="Company's Logo" style="width:80px;height:60px;position: relative;">SIGN-OUT</a>
</div>
</div>
<?php
function myAlert($msg){
echo "<script type='text/javascript'>alert('$msg');</script>";
}
function myConnection(){
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '<PASSWORD>';
$db='parlour';
$con = mysqli_connect($dbhost,$dbuser,$dbpass,$db);
if (mysqli_connect_errno()){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_select_db($con,'parlour');
return $con;
}
function nameTrim($n){
$nm=explode(" ",$n);
return $nm[0];
}
function update_name(){
}
?>
</body>
</html>
<file_sep>/sendMail.php
<?php
include('session.php');
$con=myConnection();
$sql="select email from mailing;";
$us=mysqli_query($con,$sql);
$ar=[];
while($r=mysqli_fetch_row($us)){
array_push($ar,$r[0]);
}
if(isset($_POST['send'])){
$p=0;
foreach($ar as $a){
$to = $a;
$subject = $_POST["subject"];
$message = $_POST["message"];
$from = '<EMAIL>';
if(mail($to, $subject, $message)){ $p=0;}
else{ $p=1; break;}
}
if($p==1)
myAlert("There was a connection problem");
else
myAlert("All mails sent successfully sent");
}
$sql="select name from employee where emp_id=$user_check;";
$us=mysqli_fetch_array(mysqli_query($con,$sql));
$user=nameTrim($us["name"]);
$gen="male";
?>
<html>
<head>
<title>Home</title>
<link rel="icon" href="./images/icon.ico">
<link href='./CSS/newCust.css' rel='stylesheet' type='text/css'></link>
<link href='./CSS/emp_orlog.css' rel='stylesheet' type='text/css'></link>
<link href='./menu.css' rel='stylesheet' type='text/css'></link>
</head>
<body style="overflow: hidden;">
<div id="container" style="height: 1000px;overflow: hidden">
<header>
<div id='nav'>
<img src="images/logo.jpg" alt="Company's Logo" style="width:100px;height:95px; position: relative; left:-1300px;padding-top: 2px">
<h1 style="font-style: italic;font-size:30;position: relative;top:-80px;left:200px">Tim & Doug's Icecreams</h1>
<a href='./home.php'>Home</a>
<a href='./employee.php'>Employee</a>
<a href='./menu.php'>Menu</a>
<a href='./order.php'>Order</a>
<a href='./feedback.php'>Feedback</a>
<a href='./about.php'>About Us</a>
</div>
</header>
<div id="mailForm" style="position: relative;top:60px;left: 60px;zoom:200%">
<form method="post" action="sendMail.php">
<div id="tab1">
<div id="tab2">
Mailing List Mail
</div>
<div id="tab3">
Subject:
</div>
<div id="tab4">
<input type="text" name="subject" size="50">
</div>
<div id="tab5" style="height: 120px">
Body:
</div>
<div id="tab6" style="height: 120px">
<textarea name="message" style="height: 120px;width: 300px">Enter text here...</textarea>
</div>
</div>
<input type="submit" name="send" value="" style="position: relative;top:-80px;left: 150px;background-image: url('./images/register.png');background-size:100% 100%;height: 50px;width: 50px;background-color: white">
</form>
</div>
</div>
<div id="menu" style="position: fixed;top:100px">
<div id="avatar">
<?php
if($gen=="male"){
echo "<img src='images/avatar.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
else{
echo "<img src='images/avatar_girl.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
?>
<h1 style="font-family: helvetica;font-size: 20;text-decoration:none;color:white;padding-left: 20px;position: relative;top:-70px;left:200px">HELLO<br> <?php echo $user ?></h1>
</div>
<div id="menu_option">
<a href="manage_ingredients.php" style="position: relative;top:10px;">MANAGE INGREDIENTS</a><br>
<a href="manage_account.php" style="position: relative;top:30px;">MANAGE ACCOUNT</a><br>
<a href="process_order.php" style="position: relative;top:50px;">PROCESS ORDERS</a><br>
<a href="./order_logs.php" style="position: relative;top:70px;">ORDER LOGS</a><br>
<a href="./sendMail.php" style="position: relative;top:90px;">MAILING</a><br>
<a href="./leave.php" style="position: relative;top:140px;">LEAVE REQUEST</a><br>
</div>
<div id="checkout">
<a href="./logout.php" style="position: relative;top:-30px;left: -10px"><img src="images/logout.png" alt="Company's Logo" style="width:80px;height:60px;position: relative;">SIGN-OUT</a>
</div>
</div>
</body>
</html>
<file_sep>/process_order.php
<?php
include('session.php');
$con=myConnection();
$sql="select name from employee where emp_id=$user_check;";
$us=mysqli_fetch_array(mysqli_query($con,$sql));
$user=nameTrim($us["name"]);
$gen="male";
$a=array(32,22,31,45,1,1);
$sql="SELECT F.flvr_name from icecream F,icecream_details C where F.flvr_id=C.flvr_id;";
$b=[];
$qr=mysqli_query($con,$sql);
while($r=mysqli_fetch_row($qr)){
array_push($b,$r[0]);
}
$sql ='select A.flvr_id,B.flvr_name,count(A.flvr_id)as freq from order_qty A,icecream B where A.flvr_id=B.flvr_id group by A.flvr_id order by freq DESC;';
$ar=[];
$qr=mysqli_query($con,$sql);
while($r=mysqli_fetch_row($qr)){
array_push($ar,$r[2]);
}
if(isset($_POST["prc"])){
$x=(int)$_POST['prc'];
$sql="update order_status set inlock=0 where ord_id='$x';";
mysqli_query($con,$sql);
header("location:process_order.php");
}
?>
<html>
<head>
<title>Home</title>
<link rel="icon" href="./images/icon.ico">
<link href='./CSS/emp_orlog.css' rel='stylesheet' type='text/css'></link>
<link href='./menu.css' rel='stylesheet' type='text/css'></link>
</head>
<body>
<div id="container" style="height: 1000px;">
<header>
<div id='nav'>
<img src="images/logo.jpg" alt="Company's Logo" style="width:100px;height:95px; position: relative; left:-1300px;padding-top: 2px">
<h1 style="font-style: italic;font-size:30;position: relative;top:-80px;left:200px">Tim & Doug's Icecreams</h1>
<a href='./home.php'>Home</a>
<a href='./employee.php'>Employee</a>
<a href='./menu.php'>Menu</a>
<a href='./order.php'>Order</a>
<a href='./feedback.php'>Feedback</a>
<a href='./about.php'>About Us</a>
</div>
</header>
<img src="images/order_logs.jpg" alt="Company's Logo" style="width:100%;height:100%;opacity: 0.3">
<div id="orders" style="position: relative;top:-800px;left: 200px">
<h1 style="font-size:30;color:black;position: relative;top:-140px;left:00px">Unprocessed Orders:</h1>
<?php
$sql="SELECT ord_id from order_status where inlock=1;";
$po=mysqli_query($con,$sql);
$orders=[];
while($r=mysqli_fetch_row($po)){
array_push($orders,$r[0]);
}
for($i=0;$i<sizeof($orders);$i++){
$sql="select B.flvr_id,B.qty from order_qty B where B.ord_id='$orders[$i]';";
$retval = mysqli_query($con,$sql);
$od_det=[];
while($r=mysqli_fetch_row($retval)){
$od_det[$r[0]]=$r[1];
} ?>
<div>
<h1 style="font-size:20;color:black;position: relative;top:-80px;left:00px">Order ID: <?php echo $orders[$i];?></h1>
<table style="position: relative;top:-70px">
<tr><th>Flavour Id</th><th>Quantity</th></tr>
<?php
foreach($od_det as $key=>$val){
echo "<tr><th>$key</th><th>$val</th></tr>";
}
?>
</table>
<form method="post" action="process_order.php" style="position: relative;top:-100px;left:-300px">
<input type="submit" name="prc" value="<?php echo $orders[$i];?>">
</form>
</div>
<?php
$sql="SELECT type from ord_type where ord_id='$orders[$i]';";
$po=mysqli_fetch_row(mysqli_query($con,$sql));
if(strcmp($po[0],"takeaway")==0){
$off=0;
}
else{
$sql="SELECT H.hno,C.streetname,C.city from house H,customer C where C.cust_id=(SELECT P.cust_id from cust_phone P where P.phone=(select D.phone from ord_num D where D.ord_id='$orders[$i]')) limit 1";
$po=mysqli_fetch_row(mysqli_query($con,$sql));
$off=1;
}?>
<div style="position: relative;top:-200px;left: 150px">
<?php
if($off==0)
echo "Take-away Order.";
else
echo "Home Delivery @ House no. $po[0], $po[1], $po[2]";
?>
</div>
<?php }
?>
</div>
</div>
<div id="menu" style="position: fixed;top:100px">
<div id="avatar">
<?php
if($gen=="male"){
echo "<img src='images/avatar.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
else{
echo "<img src='images/avatar_girl.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
?>
<h1 style="font-family: helvetica;font-size: 20;text-decoration:none;color:white;padding-left: 20px;position: relative;top:-70px;left:200px">HELLO<br> <?php echo $user ?></h1>
</div>
<div id="menu_option">
<a href="manage_ingredients.php" style="position: relative;top:10px;">MANAGE INGREDIENTS</a><br>
<a href="manage_account.php" style="position: relative;top:30px;">MANAGE ACCOUNT</a><br>
<a href="process_order.php" style="position: relative;top:50px;">PROCESS ORDERS</a><br>
<a href="./order_logs.php" style="position: relative;top:70px;">ORDER LOGS</a><br>
<a href="./sendMail.php" style="position: relative;top:90px;">MAILING</a><br>
<a href="./leave.php" style="position: relative;top:140px;">LEAVE REQUEST</a><br>
</div>
<div id="checkout">
<a href="./logout.php" style="position: relative;top:-30px;left: -10px"><img src="images/logout.png" alt="Company's Logo" style="width:80px;height:60px;position: relative;">SIGN-OUT</a>
</div>
</div>
</body>
</html>
<file_sep>/review_order.php
<html>
<head>
<title>Home</title>
<link rel="icon" href="./images/icon.ico">
<link href='./CSS/home.css' rel='stylesheet' type='text/css'></link>
</head>
<body >
<?php
session_start();
$con=myConnection();
$phone=$ph=$_COOKIE["phone"];
$sql="SELECT C.cust_id from customer C where C.cust_id =(SELECT A.cust_id from cust_phone A where A.phone='$ph');";
$us=mysqli_fetch_row(mysqli_query($con,$sql));
$sql="SELECT C.name,C.streetname,C.city from customer C where C.cust_id =(SELECT A.cust_id from cust_phone A where A.phone='$ph');";
$rs=mysqli_fetch_row(mysqli_query($con,$sql));
$arr=array("butter","choc","jak","nash","pista","siz");
$sql="SELECT F.flvr_name ,C.cost,F.flvr_id from icecream F,icecream_details C where F.flvr_id=C.flvr_id;";
$flvr=[];
$qr=mysqli_query($con,$sql);
while($r=mysqli_fetch_row($qr)){
array_push($flvr,array($r[0],$r[1],$r[2]));
}
$sql="SELECT D.hno from house D where cust_id=(SELECT cust_id from customer C where C.cust_id =(SELECT A.cust_id from cust_phone A where A.phone='$ph'));";
$qr=mysqli_fetch_row(mysqli_query($con,$sql));
if(isset($_POST['update'])){
$hn=$_POST['hno'];
$st=$_POST['street'];
$ct=$_POST['city'];
if(empty($hn) || empty($st) || empty($ct)){
myAlert("All fields are required.");
}
else{
$sql="UPDATE customer set streetname='$st',city='$ct' where cust_id='$us[0]';";
if(!mysqli_query($con,$sql)){
echo mysqli_error($con);die;
}
else{
header("location:./review_order.php");
}
}
}
if(isset($_POST['confirm'])){
$date=date('Y-m-d');
$sql = "insert into order_details (dt_ord)values('$date');";
mysqli_query($con,$sql);
$sql="SELECT max(ord_id) from order_details;";
$ordId=mysqli_fetch_row(mysqli_query($con,$sql));
$sum=0;
for($i=0;$i<6;$i++){
if($_COOKIE[$arr[$i]]>0){
$p=(string)$flvr[$i][2];
$sql = "SELECT R.pid,R.qty_reqd,Q.stock from reqd R, ingredient_detail Q where R.flvr_id='$p' and Q.pid=R.pid";
$qty=mysqli_fetch_row(mysqli_query($con,$sql));
$st=$qty[2]-$qty[1];
$sql="update ingredient_detail set stock=$st where pid='$qty[0]';";
mysqli_query($con,$sql);
$sql = "select cost from icecream_details where flvr_id='$p';";
$cost=mysqli_fetch_row(mysqli_query($con,$sql));
$sum = $sum + ($_COOKIE[$arr[$i]] * $cost[0]);
$sql= "insert into order_qty values('$ordId[0]','$p','$us[0]','$qty[1]');";
mysqli_query($con,$sql);
$sql= "insert into order_status values('$ordId[0]',1);";
mysqli_query($con,$sql);
if($_COOKIE['take']==1){
$sql= "insert into ord_type values('$ordId[0]','takeaway');";
mysqli_query($con,$sql);
}
else{
$sql= "insert into ord_type values('$ordId[0]','home-delivery');";
mysqli_query($con,$sql);
}
$phone=$_COOKIE["phone"];
$sql= "insert into ord_num values('$ordId[0]',$phone);";
mysqli_query($con,$sql);
}
}
$total=$sum+(0.075*$sum);
$_SESSION["sum"]=$sum;
$_SESSION["total"]=$total;
$_SESSION["oid"]=$ordId[0];
header("location:./receipt.php");
}
if(isset($_POST['modify'])){
header("location:order.php");
}
?>
<div id="container" style="height: 1050px;overflow: hidden" >
<header>
<div id='nav'>
<img src="images/logo.jpg" alt="Company's Logo" style="width:100px;height:95px; position: relative; left:-1300px;padding-top: 2px">
<h1 style="font-style: italic;font-size:30;position: relative;top:-80px;left:200px"><NAME></h1>
<a href='./home.php'>Home</a>
<a href='./manage_ingredients.php'>Employee</a>
<a href='./menu.php'>Menu</a>
<a href='./order.php'>Order</a>
<a href='./feedback.php'>Feedback</a>
<a href='./about.php'>About Us</a>
</div>
</header>
<form method="post" action="./review_order.php">
<div id="review" style="height: 900px;width: 90%;background-color: grey;position: relative;top:100px;left: 80px">
<h1 style="color: black;position: relative;top:30px;">Name : <?php echo strtoupper($rs[0]); ?> </h1>
<h1 style="color: black;position: relative;top:-30px;left: 500px">Phone Number : <?php echo $ph; ?> </h1>
<h1 style="color: black;position: relative;top:-30px;">Address : <?php echo "House No. ".$qr[0]."; ".$rs[1]."; ".$rs[2]; ?> </h1>
<h1 style="color: black;position: relative;top:-30px;">Order : </h1><br>
<div style="zoom:180%;position: relative;top:-30px;left: 50px">
<?php
$sum=0;
echo "<table border=1><tr><th>Flavour</th><th>Quantity</th><th>Rate</th><th>Total</th></tr>";
for($i=0;$i<6;$i++){
if($_COOKIE[$arr[$i]]>0){
$t=$flvr[$i][1] * $_COOKIE[$arr[$i]];
$sum += $t;
echo "<tr><th>".$flvr[$i][0]."</th><th>".$_COOKIE[$arr[$i]]."</th><th>".$flvr[$i][1]." $</th><th>".$t."</th></tr>";
}
}
echo "</table><br>";
$gst=(0.075*$sum);
$total=$sum+$gst;
?>
</div>
<div style="position: relative;top: -320px;left: 750px">
<h1 style="color: black;position: relative;font-size: 30px">Total Sum Amount : <?php echo $sum; ?> </h1>
<h1 style="color: black;position: relative;font-size: 30px">GST Applicable (7.5%) : <?php echo $gst; ?> </h1>
<h1 style="color: black;position: relative;font-size: 30px">Payable Amount : <?php echo $total; ?> </h1>
<input type="submit" name="confirm" value="" style="background-image: url('./images/confirm.png');background-size:100% 100%;position: relative;left:-450px;top:0px;height: 110px;width: 150px;background-color: white">
<input type="submit" name="modify" value="" style="background-image: url('./images/update2.png');background-size:100% 100%;position: relative;left:-430px;top:0px;height: 110px;width: 150px;background-color: white">
</div>
</form>
<div style="position: relative;top:-300px">
<?php
if($_COOKIE['delivery']>0){
?>
<h1 style="color: black;position: relative;font-size: 30px;top:-50px">HOME DELIVERY OPTION :</h1>
<h1 style="color: black;position: relative;top:-60px;">Current Address : <?php echo "House No. ".$qr[0]."; ".$rs[1]."; ".$rs[2]; ?></h1>
<h1 style="color: black;position: relative;top:-58px">Update Address : </h1>
<form method="post" action="./review_order.php">
<div style="border:2px solid black;width: 400px;height: 200px;position: relative;left: 300px;top:-120px;">
<h1 style="color: black">House Number :</h1><input type="text" name="hno" style="position: relative;top:-45px;left:100px">
<h1 style="position: relative;top:-45px;color: black">Street Name :</h1><input type="text" name="street" style="position: relative;top:-90px;left:100px">
<h1 style="position: relative;top:-90px;color: black">City :</h1><input type="text" name="city" style="position: relative;top:-140px;left:130px">
<input type="submit" name="update" value="UPDATE" style="position: relative;top:-110px;left:30px">
</div>
</form>
<?php } ?>
</div>
</div>
</div>
</body>
</html>
<?php
function myAlert($msg){
echo "<script type='text/javascript'>alert('$msg');</script>";
}
function myConnection(){
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '<PASSWORD>';
$db='parlour';
$con = mysqli_connect($dbhost,$dbuser,$dbpass,$db);
if (mysqli_connect_errno()){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_select_db($con,'parlour');
return $con;
}
?><file_sep>/leave.php
<?php
include('session.php');
$con=myConnection();
if(isset($_POST['request'])){
$f=$_POST['from'];
$t=$_POST['to'];
$r=$_POST['reason'];
$sql="insert into leave_rq values('$user_check','$f','$t','$r','pending');";
if(mysqli_query($con,$sql))
myAlert("Leave requested.");
else
myAlert("Try Again.");
}
$sql="select name from employee where emp_id=$user_check;";
$us=mysqli_fetch_array(mysqli_query($con,$sql));
$user=nameTrim($us["name"]);
$gen="male";
?>
<html>
<head>
<title>Home</title>
<link rel="icon" href="./images/icon.ico">
<link href='./CSS/newCust.css' rel='stylesheet' type='text/css'></link>
<link href='./CSS/emp_orlog.css' rel='stylesheet' type='text/css'></link>
<link href='./menu.css' rel='stylesheet' type='text/css'></link>
</head>
<body style="overflow: hidden;">
<div id="container" style="height: 1000px;overflow: hidden">
<header>
<div id='nav'>
<img src="images/logo.jpg" alt="Company's Logo" style="width:100px;height:95px; position: relative; left:-1300px;padding-top: 2px">
<h1 style="font-style: italic;font-size:30;position: relative;top:-80px;left:200px">Tim & Doug's Icecreams</h1>
<a href='./home.php'>Home</a>
<a href='./employee.php'>Employee</a>
<a href='./menu.php'>Menu</a>
<a href='./order.php'>Order</a>
<a href='./feedback.php'>Feedback</a>
<a href='./about.php'>About Us</a>
</div>
</header>
<div id="mailForm" style="position: relative;top:60px;left: 140px;zoom:150%">
<form method="post" action="leave.php">
<div id="tab1" style="height: 200px">
<div id="tab2">
Leave Request Form
</div>
<div id="tab3">
From:
</div>
<div id="tab4">
<input type="date" name="from" size="50">
</div>
<div id="tab3">
To:
</div>
<div id="tab4">
<input type="date" name="to" size="50">
</div>
<div id="tab5" style="height: 60px">
Reason:
</div>
<div id="tab6" style="height: 60px">
<textarea name="reason" style="height: 60px;width: 300px">Enter text here...</textarea>
</div>
</div>
<input type="submit" name="request" value="" style="position: relative;top:-55px;left: -0px;background-image: url('./images/register.png');background-size:100% 100%;height: 50px;width: 50px;background-color: white">
</form>
</div>
<div id="leaves" style="position: relative;top:40px;left:100px">
<h1 style="color: black">Leave Request Information:</h1>
<table border="1">
<tr><th>From Date</th><th>To Date</th><th>Total Days</th><th>Reason</th><th>Status</th></tr>
<?php
$con=myConnection();
$sql="select * from leave_rq;";
$rs=mysqli_query($con,$sql);
while($r=mysqli_fetch_row($rs)){
echo "<tr><th>$r[0]</th><th>$r[1]</th><th>$r[2]</th><th>$r[3]</th><th>$r[4]</th></tr>";
}
?>
</table>
</div>
</div>
<div id="menu" style="position: fixed;top:100px">
<div id="avatar">
<?php
if($gen=="male"){
echo "<img src='images/avatar.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
else{
echo "<img src='images/avatar_girl.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
?>
<h1 style="font-family: helvetica;font-size: 20;text-decoration:none;color:white;padding-left: 20px;position: relative;top:-70px;left:200px">HELLO<br> <?php echo $user ?></h1>
</div>
<div id="menu_option">
<a href="manage_ingredients.php" style="position: relative;top:10px;">MANAGE INGREDIENTS</a><br>
<a href="manage_account.php" style="position: relative;top:30px;">MANAGE ACCOUNT</a><br>
<a href="process_order.php" style="position: relative;top:50px;">PROCESS ORDERS</a><br>
<a href="./order_logs.php" style="position: relative;top:70px;">ORDER LOGS</a><br>
<a href="./sendMail.php" style="position: relative;top:90px;">MAILING</a><br>
<a href="./leave.php" style="position: relative;top:140px;">LEAVE REQUEST</a><br>
</div>
<div id="checkout">
<a href="./logout.php" style="position: relative;top:-30px;left: -10px"><img src="images/logout.png" alt="Company's Logo" style="width:80px;height:60px;position: relative;">SIGN-OUT</a>
</div>
</div>
</body>
</html>
<file_sep>/employee.php
<html>
<head>
<title>Home</title>
<link rel="icon" href="./images/icon.ico">
<link href='./CSS/emp_main.css' rel='stylesheet' type='text/css'></link>
<link href='./menu.css' rel='stylesheet' type='text/css'></link>
</head>
<body>
<?php
include('session.php');
$user="ABHINEET";
$gen="male";
?>
<div id="container">
<header>
<div id='nav'>
<img src="images/logo.jpg" alt="Company's Logo" style="width:100px;height:95px; position: relative; left:-1300px;padding-top: 2px">
<h1 style="font-style: italic;font-size:30;position: relative;top:-80px;left:200px"><NAME> Icecreams</h1>
<a href='./home.php'>Home</a>
<a href='./employee.php'>Employee</a>
<a href='./menu.php'>Menu</a>
<a href='./order.php'>Order</a>
<a href='./feedback.php'>Feedback</a>
<a href='./about.php'>About Us</a>
</div>
</header>
<div id="content">
<img src="images/praise.jpg" alt="Company's Logo" style="width:100%;height:100%;opacity: 0.5">
</div>
<div id="menu" style="position: fixed;top:100px">
<div id="avatar">
<?php
if($gen=="male"){
echo "<img src='images/avatar.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
else{
echo "<img src='images/avatar_girl.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
?>
<h1 style="font-family: helvetica;font-size: 20;text-decoration:none;color:white;padding-left: 20px;position: relative;top:-70px;left:200px">HELLO<br> <?php echo $user ?></h1>
</div>
<div id="menu_option">
<a href="employee.php" style="position: relative;top:-10px;">INFORMATION</a><br>
<a href="manage_ingredients.php" style="position: relative;top:10px;">MANAGE INGREDIENTS</a><br>
<a href="./manage_order.php" style="position: relative;top:30px;">MANAGE ORDER</a><br>
<a href="./order_logs.php" style="position: relative;top:50px;">ORDER LOGS</a><br>
<a href="process_order.php" style="position: relative;top:70px;">PROCESS ORDERS</a><br>
<a href="manage_account.php" style="position: relative;top:90px;">MANAGE ACCOUNT</a><br>
</div>
<div id="checkout">
<a href="./logout.php" style="position: relative;top:-30px;left: -10px"><img src="images/logout.png" alt="Company's Logo" style="width:80px;height:60px;position: relative;">SIGN-OUT</a>
</div>
</div>
</body>
</html>
<file_sep>/order.php
<html>
<head>
<title>Home</title>
<link rel="icon" href="./images/icon.ico">
<link href='./CSS/home.css' rel='stylesheet' type='text/css'></link>
</head>
<body>
<?php
session_start();
$con=myConnection();
$sql="SELECT F.flvr_name ,C.cost from icecream F,icecream_details C where F.flvr_id=C.flvr_id;";
$flvr=[];
$qr=mysqli_query($con,$sql);
while($r=mysqli_fetch_row($qr)){
array_push($flvr,array($r[0],$r[1]));
}
if(isset($_POST["submit"])){
if(!empty($_POST["phone"])){
$ph=$_POST["phone"];
setcookie("phone", $_POST["phone"], time() + (60 * 30), "/");
$arr=array("butter","choc","jak","nash","pista","siz");
for($i=1;$i<=6;$i++){
setcookie($arr[$i-1], $_POST["qt$i"], time() + (60 * 30), "/");
}
$tp=$_POST["type"];
if(strcmp($_POST["type"],'takeaway')==0){
setcookie("take", 1, time() + (60 * 30), "/");
setcookie("delivery", 0, time() + (60 * 30), "/");
}
else{
setcookie("delivery", 1, time() + (60 * 30), "/");
setcookie("take", 0, time() + (60 * 30), "/");
}
$sql="select count(phone) from cust_phone where phone='$ph'";
$qr=mysqli_fetch_row(mysqli_query($con,$sql));
if($qr[0]>=1)
header("location:review_order.php");
else{
$_SESSION['new']=$ph;
header("location:newCust.php");
}
}
else{
myAlert("You must enter your phone number to continue.");
}
}
?>
<div id="container" style="height: 1450px;overflow: hidden" >
<header>
<div id='nav'>
<img src="images/logo.jpg" alt="Company's Logo" style="width:100px;height:95px; position: relative; left:-1300px;padding-top: 2px">
<h1 style="font-style: italic;font-size:30;position: relative;top:-80px;left:200px">Tim & Doug's Icecreams</h1>
<a href='./home.php'>Home</a>
<a href='./manage_ingredients.php'>Employee</a>
<a href='./menu.php'>Menu</a>
<a href='./order.php'>Order</a>
<a href='./feedback.php'>Feedback</a>
<a href='./about.php'>About Us</a>
</div>
</header>
<form method="post" action="./order.php">
<div id="menu" style="position: relative;top:200px;overflow: hidden">
<div id="box" style="border:4px solid black;height:450px;width:350px;position: relative;left:50px">
<div id="image">
<img src="./images/flavours/1.jpg" style="height: 56%;width: 100%">
</div>
<div id="details" style="border:2px solid black;height: 44%;width: 100%;">
<center><h1 style="position: relative;top:-10px;left: 20px"><?php echo $flvr[0][0]; ?></h1>
<h1 style="position: relative;top:-10px;left: 110px;font-size: 20px;">RATE : <?php echo $flvr[0][1]." $"; ?></h1>
<h1 style="font-size: 25px;position: relative;left: 60px">QUANTITY: </h1>
<select name="qt1" style="height: 30px;width: 50px;position: relative;left: 80px;top:-45px">
<?php
foreach(range(0,5) as $r ) { ?>
<option value="<?php echo $r ?>"> <?php echo $r;?></option>
<?php
} ?>
</select>
</div> </center>
</div>
<div id="box" style="border:4px solid black;height:450px;width:350px;position: relative;top:-460px;left:525px">
<div id="image">
<img src="./images/flavours/2.jpg" style="height: 56%;width: 100%">
</div>
<div id="details" style="border:2px solid black;height: 44%;width: 100%;">
<center><h1 style="position: relative;top:-10px;left: 20px"><?php echo $flvr[1][0]; ?></h1>
<h1 style="position: relative;top:-10px;left: 110px;font-size: 20px;">RATE : <?php echo $flvr[1][1]." $"; ?></h1>
<h1 style="font-size: 25px;position: relative;left: 40px">QUANTITY: </h1>
<select name="qt2" style="height: 30px;width: 50px;position: relative;left: 60px;top:-45px">
<?php
foreach(range(0,5) as $r ) { ?>
<option value="<?php echo $r ?>"> <?php echo $r;?></option>
<?php
} ?>
</select>
</div> </center>
</div>
<div id="box" style="border:4px solid black;height:450px;width:350px;position: relative;top:-930px;left:1000px">
<div id="image">
<img src="./images/flavours/3.jpg" style="height: 56%;width: 100%">
</div>
<div id="details" style="border:2px solid black;height: 44%;width: 100%;">
<h1 style="position: relative;top:-10px;left: 20px"><?php echo $flvr[2][0]; ?></h1>
<h1 style="position: relative;top:-10px;left: 110px;font-size: 20px;">RATE : <?php echo $flvr[2][1]." $"; ?></h1>
<h1 style="font-size: 25px;position: relative;left: 40px">QUANTITY: </h1>
<select name="qt3" style="height: 30px;width: 50px;position: relative;left: 60px;top:-45px">
<?php
foreach(range(0,5) as $r ) { ?>
<option value="<?php echo $r ?>"> <?php echo $r;?></option>
<?php
} ?>
</select>
</div>
</div>
<div id="box" style="border:4px solid black;height:450px;width:350px;position: relative;top:-800px;left:50px">
<div id="image">
<img src="./images/flavours/4.jpg" style="height: 56%;width: 100%">
</div>
<div id="details" style="border:2px solid black;height: 44%;width: 100%;">
<h1 style="position: relative;top:-10px;left: 20px"><?php echo $flvr[3][0]; ?></h1>
<h1 style="position: relative;top:-10px;left: 110px;font-size: 20px;">RATE : <?php echo $flvr[3][1]." $"; ?></h1>
<h1 style="font-size: 25px;position: relative;left: 40px">QUANTITY: </h1>
<select name="qt4" style="height: 30px;width: 50px;position: relative;left: 60px;top:-45px">
<?php
foreach(range(0,5) as $r ) { ?>
<option value="<?php echo $r ?>"> <?php echo $r;?></option>
<?php
} ?>
</select>
</div>
</div>
<div id="box" style="border:4px solid black;height:450px;width:350px;position: relative;top:-1260px;left:525px">
<div id="image">
<img src="./images/flavours/5.jpg" style="height: 56%;width: 100%">
</div>
<div id="details" style="border:2px solid black;height: 44%;width: 100%;">
<h1 style="position: relative;top:-10px;left: 20px"><?php echo $flvr[4][0]; ?></h1>
<h1 style="position: relative;top:-10px;left: 110px;font-size: 20px;">RATE : <?php echo $flvr[4][1]." $"; ?></h1>
<h1 style="font-size: 25px;position: relative;left: 40px">QUANTITY: </h1>
<select name="qt5" style="height: 30px;width: 50px;position: relative;left: 60px;top:-45px">
<?php
foreach(range(0,5) as $r ) { ?>
<option value="<?php echo $r ?>"> <?php echo $r;?></option>
<?php
} ?>
</select>
</div>
</div>
<div id="box" style="border:4px solid black;height:450px;width:350px;position: relative;top:-1720px;left:1000px">
<div id="image">
<img src="./images/flavours/6.jpg" style="height: 56%;width: 100%">
</div>
<div id="details" style="border:2px solid black;height: 44%;width: 100%;">
<h1 style="position: relative;top:-10px;left: 20px"><?php echo $flvr[5][0]; ?></h1>
<h1 style="position: relative;top:-10px;left: 110px;font-size: 20px;">RATE : <?php echo $flvr[5][1]." $"; ?></h1>
<h1 style="font-size: 25px;position: relative;left: 40px">QUANTITY: </h1>
<select name="qt6" style="height: 30px;width: 50px;position: relative;left: 60px;top:-45px">
<?php
foreach(range(0,5) as $r ) { ?>
<option value="<?php echo $r ?>"> <?php echo $r;?></option>
<?php
} ?>
</select>
</div>
</div>
</div>
</div>
<div id="overall" style="position: fixed;top:690px;z-index: 10;background-color: grey;height: 140px;width: 100%;left:0px">
<h1 style="color:black;font-size: 25px;position: relative;left: 40px">Enter Phone Number: </h1><input type="text" name="phone" style="height: 30px;width: 160px;position: relative;top:-110px;left: -320px">
<input type="radio" name="type" value="takeaway" style="position: relative;top:-110px;left: -200px;" checked><img src="./images/takeaway.png" style="height: 130px;width: 160px;position: relative;top:-40px;left: -190px">
<input type="radio" name="type" value="delivery" style="position: relative;top:-110px;left: 0px;"><img src="./images/homedel.png" style="height: 110px;width: 160px;position: relative;top:-60px;left: 20px;">
<input type="submit" name="submit" value="" style="background-image: url('./images/ordernow.png');background-size:100% 100%;position: relative;left:300px;top:-70px;height: 110px;width: 150px;background-color: white">
</div>
</form>
</body>
</html>
<?php
function myAlert($msg){
echo "<script type='text/javascript'>alert('$msg');</script>";
}
function myConnection(){
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '<PASSWORD>';
$db='parlour';
$con = mysqli_connect($dbhost,$dbuser,$dbpass,$db);
if (mysqli_connect_errno()){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_select_db($con,'parlour');
return $con;
}
?><file_sep>/manage_account.php
<html>
<head>
<title>Home</title>
<link rel="icon" href="./images/icon.ico">
<link href='./CSS/emp_acc1.css' rel='stylesheet' type='text/css'></link>
<link href='./menu.css' rel='stylesheet' type='text/css'></link>
</head>
<body>
<?php
include('session.php');
$con=myConnection();
$sql="select name from employee where emp_id=$user_check;";
$us=mysqli_fetch_array(mysqli_query($con,$sql));
$user=nameTrim($us["name"]);
$gen="male";
?>
<div id="container" style="background-image: url(images/account.jpg);height: 1300px;overflow: hidden;" >
<header>
<div id='nav'>
<img src="images/logo.jpg" alt="Company's Logo" style="width:100px;height:95px; position: relative; left:-1300px;padding-top: 2px">
<h1 style="font-style: italic;font-size:30;position: relative;top:-80px;left:200px">Tim & Doug's Icecreams</h1>
<a href='./home.php'>Home</a>
<a href='./employee.php'>Employee</a>
<a href='./menu.php'>Menu</a>
<a href='./order.php'>Order</a>
<a href='./feedback.php'>Feedback</a>
<a href='./about.php'>About Us</a>
</div>
</header>
<div id="content" style="position: relative;top:50px;left: 300px;">
<div id="account_details" style="position: relative;left:-130px">
<strong><h1 style='color:#FF5733;font-size:50'><?php echo "Account Details:" ?></h1></strong>
<?php
$conn=myConnection();
$sql="SELECT * FROM employee where emp_id='$user_check';";
$retval = mysqli_query($conn,$sql);
$row=mysqli_fetch_array($retval);
echo "<table id='details' border='2'><tr><td><a>Employee Id: </a></td><td>".$row['emp_id']."</td></tr>";
echo "<tr><td><a>Name: </a></td><td>".$row['name']."</td></tr>";
echo "<tr><td><a>Address: </a></td><td>".$row['streetname']."; ".$row['city']."</td></tr>";
echo "<tr><td><a>Join Date: </a></td><td>".$row['join_date']."</td></tr>";
echo "<tr><td><a>Email ID: </a></td><td>";
$sql="SELECT mail FROM emp_mail where emp_id='$user_check';";
$retval = mysqli_query($conn,$sql);
while($row=mysqli_fetch_array($retval)){
echo $row['mail'].";";
}
echo "<tr><td><a>Phone: </a></td><td>";
$sql="SELECT phone FROM emp_phone where emp_id='$user_check';";
$retval = mysqli_query($conn,$sql);
while($row=mysqli_fetch_array($retval)){
echo $row['phone'].";";
}
echo "</td></tr></table>";
mysqli_close($conn);
?>
</div>
<div id="update" style="position: relative;left: -130px;top:-10px">
<strong><h1 style='color:#FF5733;font-size:50'><?php echo "Update Details" ?></h1></strong>
<?php
if(isset($_POST['updatenm'])) {
if(empty($_POST["name"])){
myAlert("Name not entered!");
}
else{
myConnection();
$id = $user_check;
$name = $_POST['name'];
$sql = "update employee set name='$name' where emp_id='$id'";
$retval = mysqli_query($con,$sql );
if(! $retval ) {
die('Could not update data: ' . mysqli_error($con));
}
header('Location: '.$_SERVER['PHP_SELF']);
mysqli_close($con);}
}
if(isset($_POST['updatead'])) {
if(empty($_POST["street1"]) && empty($_POST["city"])){
myAlert("Both fields cannot be left empty!");
}
else{
$con=myConnection();
$id = $user_check;
$sup="select streetname,city from employee where emp_id='$id'";
$ret = mysqli_fetch_array(mysqli_query($con,$sup ));
print_r($ret["streetname"]);
$street = $_POST['street1'];
$city = $_POST['city'];
if(empty($street)){
$street=$ret["streetname"];
}
if(empty($city)){
$city=$ret["city"];
}
$sql = "update employee set streetname='$street', city='$city' where emp_id='$id'";
$retval = mysqli_query($con,$sql );
if(! $retval ) {
die('Could not update data: ' . mysqli_error($con));
}
echo "Updated data successfully\n";
header('Location: '.$_SERVER['PHP_SELF']);
mysqli_close($con); }
}
if(isset($_POST['updatepass'])) {
if(empty($_POST['pass'] && $_POST['opass'])){
myAlert("Both fields are required!");
}
else{
$con=myConnection();
$id = $user_check;
$pass = $_POST['pass'];
$opass= $_POST['opass'];
$sql = "select password from authentication where emp_id='$id';";
$a01 =mysqli_query($con,$sql);
while($row=mysqli_fetch_array($a01)){
$a_01 =$row['password'];
}
if($opass==$a_01){
$sql = "update authentication set password='$<PASSWORD>' where emp_id='$id'";
$retval = mysqli_query($con,$sql );
if(! $retval ) {
die('Could not update data: ' . mysqli_error($con));
}
header('Location: logout.php');
mysqli_close($con);
}
else{
myAlert("You have entered wrong current password!");
}}}
if(isset($_POST['updateph'])) {
if(empty($_POST['phone'])){
myAlert("Enter Phone Number to add into account!");
}
else{
$con=myConnection();
$id = $user_check;
$phone = $_POST['phone'];
$sql = "insert into emp_phone values('$phone','$id');";
$retval = mysqli_query($con,$sql );
if(! $retval ) {
die('Could not update data: ' . mysqli_error($con));
}
header('Location: '.$_SERVER['PHP_SELF']);
mysqli_close($con);
}}
if(isset($_POST['delphone'])) {
if(empty($_POST['del_phn'])){
myAlert("No Number in Directory!");
}
else{
$con=myConnection();
$oldph=$_POST['del_phn'];
$sql = "delete from emp_phone where phone='$oldph'";
$retval = mysqli_query($con,$sql );
if(! $retval ) {
die('Could not update data: ' . mysqli_error($con));
}
header('Location: '.$_SERVER['PHP_SELF']);
mysqli_close($con);
}}
if(isset($_POST['updateml'])) {
if(empty($_POST['mail'])){
myAlert("Enter E-mail to add into account!");
}
else{
$con=myConnection();
$id = $user_check;
$mail = $_POST['mail'];
$sql = "insert into emp_mail values('$mail','$id');";
$retval = mysqli_query($con,$sql );
if(! $retval ) {
die('Could not update data: ' . mysqli_error($con));
}
header('Location: '.$_SERVER['PHP_SELF']);
mysqli_close($con);
}}
if(isset($_POST['updatemail'])) {
if(empty($_POST['del_mail'])){
myAlert("No Number in Directory!");
}
else{
$con=myConnection();
$oldml=$_POST['del_mail'];
$sql = "delete from emp_mail where mail='$oldml'";
$retval = mysqli_query($con,$sql );
if(! $retval ) {
die('Could not update data: ' . mysqli_error($con));
}
header('Location: '.$_SERVER['PHP_SELF']);
mysqli_close($con);
}}
?>
<form method = "post" action = "<?php $_PHP_SELF ?>" style="position: relative;left: -230px">
<div style="position: relative;left:-234px">
<a>Name:</a> <input type="text" name="name">
<input type="submit" name="updatenm" value="UPDATE"><br><br>
</div>
<div style="position: relative;left:-40px;">
<a>Street Name:</a> <input type="text" name="street1">
<a>City Name:</a> <input type="text" name="city">
<input type="submit" name="updatead" value="UPDATE"><br><br>
</div>
<div style="position: relative;left:230px;border: 2px solid black;width: 850px">
<a style="font-size: 20;color:#FF5733;position: relative;left: -315px">Change Password</a><br>
<a>Current Password: </a> <input type="<PASSWORD>" name="<PASSWORD>">
<a>New Password: </a> <input type="<PASSWORD>" name="pass">
<input type="submit" name="updatepass" value="UPDATE"><br><br>
</div>
<div style="position: relative;left:230px;top:50px;border: 2px solid black;width: 850px">
<a style="font-size: 20;color:#FF5733;position: relative;left: -300px">Add Phone Number</a><br>
<div style="position: relative;left:-185px">
<a>Phone Number:</a> <input type="text" name="phone">
<input type="submit" name="updateph" value="UPDATE"><br><br>
</div>
<a style="font-size: 20;color:#FF5733;position: relative;left: -300px">Delete Phone Number</a><br>
<div style="position: relative;left:-185px">
<a>Select Phone Number: </a> <select name="del_phn">
<?php
$con=myConnection();
$id = $user_check;
$sql = "select phone from emp_phone where emp_id='$id';";
$a01 =mysqli_query($con,$sql);
while($row=mysqli_fetch_array($a01)){?>
<option name='del_phn' value="<?php echo $row['phone'];?>" style="position: relative;left:-285px"> <?php echo $row['phone']; ?></option>
<?php }
?>
</select>
<input type="submit" name="delphone" value="DELETE"><br><br>
</div>
</div>
<div style="position: relative;left:230px;top:100px;border: 2px solid black;width: 850px">
<a style="font-size: 20;color:#FF5733;position: relative;left: -300px">Add New E-mail</a><br>
<div style="position: relative;left:-185px">
<a>E-mail:</a> <input type="text" name="mail">
<input type="submit" name="updateml" value="UPDATE"><br><br>
</div>
<a style="font-size: 20;color:#FF5733;position: relative;left: -300px">Delete E-mail: </a><br>
<div style="position: relative;left:-185px">
<a>Select E-mail: </a> <select name="del_mail">
<?php
$con=myConnection();
$id = $user_check;
$sql = "select mail from emp_mail where emp_id='$id';";
$a01 =mysqli_query($con,$sql);
while($row=mysqli_fetch_array($a01)){?>
<option name='del_mail' value="<?php echo $row['mail'];?>" style="position: relative;left:-285px"> <?php echo $row['mail']; ?></option>
<?php }
?>
</select>
<input type="submit" name="updatemail" value="DELETE"><br><br>
</div>
</div>
</form>
</div>
</div>
</div>
<div id="menu" style="position: fixed;top:100px">
<div id="avatar">
<?php
if($gen=="male"){
echo "<img src='images/avatar.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
else{
echo "<img src='images/avatar_girl.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
?>
<h1 style="font-family: helvetica;font-size: 20;text-decoration:none;color:white;padding-left: 20px;position: relative;top:-70px;left:200px">HELLO<br> <?php echo $user; ?></h1>
</div>
<div id="menu_option">
<a href="manage_ingredients.php" style="position: relative;top:10px;">MANAGE INGREDIENTS</a><br>
<a href="manage_account.php" style="position: relative;top:30px;">MANAGE ACCOUNT</a><br>
<a href="process_order.php" style="position: relative;top:50px;">PROCESS ORDERS</a><br>
<a href="./order_logs.php" style="position: relative;top:70px;">ORDER LOGS</a><br>
<a href="./sendMail.php" style="position: relative;top:90px;">MAILING</a><br>
<a href="./leave.php" style="position: relative;top:140px;">LEAVE REQUEST</a><br>
</div>
<div id="checkout">
<a href="./logout.php" style="position: relative;top:-30px;left: -10px"><img src="images/logout.png" alt="Company's Logo" style="width:80px;height:60px;position: relative;">SIGN-OUT</a>
</div>
</div>
</body>
</html>
<file_sep>/trial2.php
<?php
if(isset($_POST["submit"])){
die($_POST["submit"]);
}
?>
<form method="post" action="./trial2.php">
<input type="submit" name="submit" value="Processed">
</form><file_sep>/newCust.php
<html>
<head>
<link href='./CSS/newCust.css' rel='stylesheet' type='text/css'></link>
<link href='./feedback.css' rel='stylesheet' type='text/css'></link>
<style>
</style>
</head>
<body>
<?php
session_start();
include("config.php");
if(isset($_POST['submit'])){
$nm=$_POST['name'];
$hno=$_POST['hno'];
$street=$_POST['street'];
$city=strtolower($_POST['city']);
$ph=$_SESSION['new'];
setcookie("phone", $_POST["phone"], time() + (60 * 30), "/");
$email=$_POST['email'];
$regP="/[0-9]{10}$/";
if(empty($nm) || empty($hno) || empty($street) || empty($city) || empty($ph) || empty($email)){
myAlert("All Fields are required");
}
else if(!filter_var($email,FILTER_VALIDATE_EMAIL)){
myAlert("Invalid email");
}
else if(!preg_match($regP,$ph)){
myAlert("Enter valid phone number");
}
else if(strcmp($city,"vellore")!=0){
myAlert("Sorry, We do not provide service in your area.");
}
else{
$sql="INSERT into customer(name,streetname,city) values('$nm','$street','$city');";
if(mysqli_query($con,$sql)){}
else{
myAlert("Please Try Again!");
}
$sql="SELECT max(cust_id) from customer";
$us=mysqli_fetch_row(mysqli_query($con,$sql));
$sql="INSERT into cust_phone values('$ph','$us[0]');";
if(mysqli_query($con,$sql)){}
else{
myAlert("Phone Number already exists!");
}
$sql="INSERT into cust_mail values('$email','$us[0]');";
if(mysqli_query($con,$sql)){}
else{
myAlert("Email already exists!");
}
$sql="INSERT into house values('$us[0]','$hno');";
if(mysqli_query($con,$sql)){}
else{
myAlert("House no. could not be added!");
}
$_SESSION['success']=1;
header("location:review_order.php");
}
}
?>
<div id="container" style="height: 800px;overflow: hidden" >
<header>
<div id='nav'>
<img src="images/logo.jpg" alt="Company's Logo" style="width:100px;height:95px; position: relative; left:-1300px;padding-top: 2px">
<h1 style="font-style: italic;font-size:30;position: relative;top:-80px;left:200px">Tim & Doug's Icecreams</h1>
<a href='./home.php'>Home</a>
<a href='./manage_ingredients.php'>Employee</a>
<a href='./menu.php'>Menu</a>
<a href='./order.php'>Order</a>
<a href='./feedback.php'>Feedback</a>
<a href='./about.php'>About Us</a>
</div>
</header>
</body>
<h1 style="position: relative;top:100px;color: black">NEW CUSTOMER FORM</h1><br>
<form method="post" action="newCust.php" style="zoom:200%;position: relative;top:50px;left:100px">
<div id="tab1">
<div id="tab2">
Tim & Doug's Ice-cream Shop
</div>
<div id="tab3">
Name:
</div>
<div id="tab4">
<input typt="text" name="name" size="50">
</div>
<div id="tab5">
Address:
</div>
<div id="tab6">
House No. <input typt="text" name="hno" size="10">
Street Name <input typt="text" name="street" size="15"><br><br>
City <input typt="text" name="city" size="20">
</div>
<div id="tab7">
Phone Number:
</div>
<div id="tab8">
<?php echo $_SESSION['new'];?>
</div>
<div id="tab9">
Email
</div>
<div id="tab10">
<input typt="text" name="email" size="30">
</div>
<input type="submit" name="submit" value="" style="position: relative;top:5px;left: 440px;background-image: url('./images/register.png');background-size:100% 100%;height: 50px;width: 50px;background-color: white">
</div>
</form>
</html>
<file_sep>/emp_login.php
<?php
include("config.php");
session_start();
$error="Enter details.";
if(isset($_POST["submit"])) {
if(empty($_POST["username"]) || empty($_POST["password"]) ||empty($_POST['captcha'])){
$error="All fields are required";
}
else{
$myStr=(string)$_SESSION["cap"];
$cp=(string)$_POST['captcha'];
if(strcmp($cp,$myStr)==0){
$myusername = $_POST['username'];
$mypassword = $_POST['password'];
$sql = "SELECT emp_id FROM authentication WHERE emp_id= '$myusername' and password = '$<PASSWORD>'";
$result = mysqli_query($con,$sql);
$row = mysqli_fetch_array($result,MYSQLI_ASSOC);
$count = mysqli_num_rows($result);
if($count == 1) {
$_SESSION['login_user'] = $myusername;
header("location: manage_ingredients.php");
}
else {
$error = "Invalid Details";
}
}
else{
myAlert("You have entered wrong captcha.");
}
}
}
?>
<html>
<head>
<title>Login Page</title>
<link href='./CSS/login.css' rel='stylesheet' type='text/css'></link>
</head>
<body>
<img src="images/login.jpg" style="height: 100%;width: 100%;">
<header>
<div id='nav'>
<img src="images/logo.jpg" alt="Company's Logo" style="width:100px;height:95px; position: relative; left:-1300px;padding-top: 2px">
<h1 style="font-style: italic;font-size:30;position: relative;top:-80px;left:200px">Tim & Doug's Icecreams</h1>
<a href='./home.php'>Home</a>
<a href='./manage_ingredients.php'>Employee</a>
<a href='./menu.php'>Menu</a>
<a href='./order.php'>Order</a>
<a href='./feedback.php'>Feedback</a>
<a href='./about.php'>About Us</a>
</div>
</header>
<div id="login_box">
<div style = "background-color:#333333; color:#FFFFFF; padding:3px;" align="center"><b>Login</b></div>
<form method = "post" style="position: relative;top:20px" align="center">
<label>Employee Id :</label><input type = "text" name = "username" class = "box" style="position: relative;left:10px"><br /><br />
<label style="position: relative;left:-10px" >Password :</label><input type = "<PASSWORD>" name = "password" class = "box" style="position: relative;left:17px"><br><br>
<label style="position: relative;left:100px;top:-10px">Enter Captcha</label><input type="text" name="captcha" style="position: relative;top:10px"><br><br>
<div id="captchaBox" style="border:2px solid black;width:90px;height:50px;position: relative;top:-50px;left: 25px">
<img src="captcha.php">
</div><br>
<input type = "submit" name = "submit" style="position: relative;left:-115px;top:-51px" /><br />
<span class="error" style="position: relative;top:-100px;left:40px"><p1 style="font-family: helvetica;font-size: 15;color:red;"><?php echo $error;?></p1></span>
</form>
</div>
<div id="forget" style="position: fixed;top:255px;left:220px;zoom:250%">
<button id="frgt" onclick="alert('Kindly, Contact your administrator.')"">Forgot Details</button>
</div>
</body>
</html><file_sep>/menu.php
<?php
include("config.php");
$con=myConnection();
if(isset($_POST['mail'])){
$ml=$_POST['email'];
if(!empty($ml)){
$dt=date('Y-m-d');
$sql="Insert into mailing values('$ml','$dt')";
if(!filter_var($ml,FILTER_VALIDATE_EMAIL)){
myAlert("Enter a valid mail id.");
}
else{
if(mysqli_query($con,$sql)){
myAlert("Thank you for subscribing");
}
else{
myAlert("Sorry It could not be done.");
}
}}
else{
myAlert("Enter your mail.");
}
}
?>
<html>
<head>
<title>Home</title>
<link rel="icon" href="./images/icon.ico">
<link href='./CSS/home3.css' rel='stylesheet' type='text/css'></link>
</head>
<body>
<div id="container">
<header>
<div id='nav'>
<img src="images/logo.jpg" alt="Company's Logo" style="width:100px;height:95px; position: relative; left:-1300px;padding-top: 2px">
<h1 style="font-style: italic;font-size:30;position: relative;top:-80px;left:200px">Tim & Doug's Icecreams</h1>
<a href='./home.php'>Home</a>
<a href='./manage_ingredients.php'>Employee</a>
<a href='./menu.php'>Menu</a>
<a href='./order.php'>Order</a>
<a href='./feedback.php'>Feedback</a>
<a href='./about.php'>About Us</a>
</div>
</header>
<h1 style="color:red;"><center><p style='font-size:80;position:relative;top:100px;color:orange;'><?php echo"Flavours of the world!!"; ?></p></center></h1>
<div id="menu_view" style="height: 500px;position: relative;top:100px;left:-5px;background-color:#323434">
<img src="images/menu.jpg" alt="Menu Page 1" style="width: 80%;position: relative;top:-45px">
</div>
</div>
<div id="footer" style="position: relative;top:-200px">
<div id="menu">
<a href='./home.php'>Home</a><br>
<a href='./employee.php'>Employee</a><br>
<a href='./menu.php'>Menu</a><br>
<a href='./order.php'>Order Online</a><br>
<a href='./feedback.php'>Feedback</a><br>
<a href='./about.php'>About Us</a><br>
<h3 style="font-style: italic;font-size:20;">Subscribe to mailing list:</h3>
<form method="post">
<img src="images/email.jpg" alt="Submit" style="height:40px;margin:10px;position: relative;top:-20px"><input type="text" name="email" style="width:200px;height:30px;box-sizing: border-box;border:2px solid black;position: relative;top:-45px">
<input type="submit" name="mail" value="" style="background-image: url('./images/submit.jpg');background-size:100% 100%;height: 40px;width: 130px;position: relative;top:-30px;">
</form>
</div>
<div id="contact">
<h4 style="font-size: 25;color: black;position: relative;top:-30px;font-style: italic;">Contact Us:</h4>
<h2 style="color:black">Tim & Doug's Ice Cream Shop, 54 Coventry St, Newport, VT 05855, USA<br>
Email: <EMAIL>;<br>
Phone: 9802342231 (10:00 am - 09:00 pm)</h2>
<iframe src="https://www.google.com/maps/embed?pb=!1m23!1m12!1m3!1d90381.16711023588!2d-72.27774578323462!3d44.9353025954568!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!4m8!3e6!4m0!4m5!1s0x4cb67195d26c7ee7%3A0xf81323e4ab0a3ea1!2stim+and+doug's+ice+cream+shop!3m2!1d44.935324!2d-72.207706!5e0!3m2!1sen!2sin!4v1502522505511" width="450" height="150" frameborder="0" style="border:2px solid black;position: relative;top:-70px" allowfullscreen></iframe>
</div>
<div id="social">
<h3 style="font-style: italic;font-size:30;position: relative;text-align: left;top:-25;left:150px">The Social Club</h3>
<a href="https://www.facebook.com/Tim-Dougs-Ice-Cream-201191819924102/"><img src="./images/facebook.jpg" alt="facebookLogo" style="height:60px;width:60px;position:relative;top:-40px;left:110px"></a>
<a href="https://twitter.com/search?q=tim%20doug%27s%20icecream&src=typd"><img src="./images/twitter.jpg" alt="twitterLogo" style="height:60px;width:60px;position:relative;top:-40px;left:110px"></a>
<a href="https://www.instagram.com/explore/locations/244468838/tim-dougs-ice-cream/"><img src="./images/instagram.jpg" alt="instagramLogo" style="height:60px;width:60px;position:relative;top:-40px;left:110px"></a>
<a href="https://www.youtube.com/watch?v=X1Sta6YSBkc"><img src="./images/youtube.jpg" alt="youtubeLogo" style="height:60px;width:60px;position:relative;top:-40px;left:110px"></a>
</div>
<div id="quality">
<h5 style="font-style: italic;font-size:20;position: relative;text-align: left;top:-50;left:0px">Quality First!</h5>
<img src="./images/qt1.jpg" style="height:100px;width:100px;position:relative;top:-65px;left:0px">
<img src="./images/qt2.jpg" style="height:100px;width:100px;position:relative;top:-65px;left:0px">
<img src="./images/qt3.jpg" style="height:100px;width:100px;position:relative;top:-65px;left:0px">
<img src="./images/qt4.jpg" style="height:100px;width:100px;position:relative;top:-65px;left:0px">
</div>
</div>
</body>
</html>
<file_sep>/order_logs.php
<?php
include('session.php');
$con=myConnection();
$sql="select name from employee where emp_id=$user_check;";
$us=mysqli_fetch_array(mysqli_query($con,$sql));
$user=nameTrim($us["name"]);
$gen="male";
$a=array(32,22,31,45,1,1);
$b=[];
$sql ='select A.flvr_id,B.flvr_name,sum(A.qty)as freq from order_qty A,icecream B where A.flvr_id=B.flvr_id group by A.flvr_id order by freq DESC;';
$ar=[];
$qr=mysqli_query($con,$sql);
while($r=mysqli_fetch_row($qr)){
array_push($ar,$r[2]);
array_push($b,$r[1]);
}
?>
<html>
<head>
<title>Home</title>
<link rel="icon" href="./images/icon.ico">
<link href='./CSS/emp_orlog.css' rel='stylesheet' type='text/css'></link>
<link href='./menu.css' rel='stylesheet' type='text/css'></link>
<script type="text/javascript" src="./loader.js"></script>
<script type="text/javascript">
google.charts.load("current", {packages:["corechart"]});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Task', 'Hours per Day'],
['<?php echo $b[0]; ?>', <?php echo $ar[0]; ?>],
['<?php echo $b[1]; ?>', <?php echo $ar[1]; ?>],
['<?php echo $b[2]; ?>', <?php echo $ar[2]; ?>],
['<?php echo $b[3]; ?>', <?php echo $ar[3]; ?>],
['<?php echo $b[4]; ?>', <?php echo $ar[4]; ?>]
]);
var options = {
title: 'Ice-cream Frequecny Pie-chart',
is3D: true,
};
var chart = new google.visualization.PieChart(document.getElementById('piechart_3d'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div id="container" style="height: 1000px;overflow: hidden">
<header>
<div id='nav'>
<img src="images/logo.jpg" alt="Company's Logo" style="width:100px;height:95px; position: relative; left:-1300px;padding-top: 2px">
<h1 style="font-style: italic;font-size:30;position: relative;top:-80px;left:200px">Tim & Doug's Icecreams</h1>
<a href='./home.php'>Home</a>
<a href='./employee.php'>Employee</a>
<a href='./menu.php'>Menu</a>
<a href='./order.php'>Order</a>
<a href='./feedback.php'>Feedback</a>
<a href='./about.php'>About Us</a>
</div>
</header>
<img src="images/order_logs.jpg" alt="Company's Logo" style="width:100%;height:100%;opacity: 0.3">
<div id="content" style="position: fixed;top:100px;left: 350px;overflow: hidden;">
<div id="frequency" style="">
<strong><h1 style='font-size:50px;color: #FF5733'><?php echo "Frequency of Icecreams:" ?></h1></strong>
<?php
$con=myConnection();
$sql ='select A.flvr_id,B.flvr_name,sum(A.qty)as freq from order_qty A,icecream B where A.flvr_id=B.flvr_id group by A.flvr_id order by freq DESC;';
mysqli_select_db($con,'parlour');
$retval = mysqli_query($con,$sql);
if(! $retval ) {
die('Could not get data: ' . mysqli_error($con));
}
mysqli_close($con);
?>
<div class="box-body table-responsive no-padding">
<table class="table table-hover" border='1'>
<tr>
<th><a>Flavour ID</a></th>
<th><a>Flavour Name</a></th>
<th><a>Sold Units</a></th>
</tr>
<?php
If(mysqli_num_rows($retval)>0){
while($row=mysqli_fetch_array($retval)){
?>
<tr>
<td><b><?php echo $row['flvr_id']; ?></b></td>
<td><b><?php echo $row['flvr_name']; ?></b></td>
<td><b><?php echo $row['freq']; ?></b></td>
</tr>
<?php
}
}
?>
</table>
</div>
</div>
<div id="piechart_3d" style="width: 1000px; height: 370px;position: relative;top:50px;left: 00px"></div>
</div>
</div>
<div id="menu" style="position: fixed;top:100px">
<div id="avatar">
<?php
if($gen=="male"){
echo "<img src='images/avatar.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
else{
echo "<img src='images/avatar_girl.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
?>
<h1 style="font-family: helvetica;font-size: 20;text-decoration:none;color:white;padding-left: 20px;position: relative;top:-70px;left:200px">HELLO<br> <?php echo $user ?></h1>
</div>
<div id="menu_option">
<a href="manage_ingredients.php" style="position: relative;top:10px;">MANAGE INGREDIENTS</a><br>
<a href="manage_account.php" style="position: relative;top:30px;">MANAGE ACCOUNT</a><br>
<a href="process_order.php" style="position: relative;top:50px;">PROCESS ORDERS</a><br>
<a href="./order_logs.php" style="position: relative;top:70px;">ORDER LOGS</a><br>
<a href="./sendMail.php" style="position: relative;top:90px;">MAILING</a><br>
<a href="./leave.php" style="position: relative;top:140px;">LEAVE REQUEST</a><br>
</div>
<div id="checkout">
<a href="./logout.php" style="position: relative;top:-30px;left: -10px"><img src="images/logout.png" alt="Company's Logo" style="width:80px;height:60px;position: relative;">SIGN-OUT</a>
</div>
</div>
</body>
</html>
<file_sep>/trial3.php
<?php
session_start();
include('session.php');
$con=myConnection();
$sql="select name from employee where emp_id=$user_check;";
$us=mysqli_fetch_array(mysqli_query($con,$sql));
$user=nameTrim($us["name"]);
$gen="male";
$a=array(32,22,31,45,1,1);
$sql="SELECT F.flvr_name from icecream F,icecream_details C where F.flvr_id=C.flvr_id;";
$b=[];
$qr=mysqli_query($con,$sql);
while($r=mysqli_fetch_row($qr)){
array_push($b,$r[0]);
}
$sql ='select A.flvr_id,B.flvr_name,count(A.flvr_id)as freq from order_qty A,icecream B where A.flvr_id=B.flvr_id group by A.flvr_id order by freq DESC;';
$ar=[];
$qr=mysqli_query($con,$sql);
while($r=mysqli_fetch_row($qr)){
array_push($ar,$r[2]);
}
?>
<html>
<head>
<link rel="icon" href="./images/icon.ico">
<link href='./CSS/analytics.css' rel='stylesheet' type='text/css'></link>
<script type="text/javascript" src="./loader.js"></script>
<script type="text/javascript">
google.charts.load("current", {packages:["corechart"]});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Task', 'Hours per Day'],
['<?php echo $b[0]; ?>', <?php echo $ar[0]; ?>],
['<?php echo $b[1]; ?>', <?php echo $ar[1]; ?>],
['<?php echo $b[2]; ?>', <?php echo $ar[2]; ?>],
['<?php echo $b[3]; ?>', <?php echo $ar[3]; ?>],
['<?php echo $b[4]; ?>', <?php echo $a[4]; ?>]
]);
var options = {
title: 'Ice-cream Frequecny Pie-chart',
is3D: true,
};
var chart = new google.visualization.PieChart(document.getElementById('piechart_3d'));
chart.draw(data, options);
}
</script>
<script type="text/javascript">
google.charts.load('current', {'packages':['line']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('number', 'Day');
data.addColumn('number', 'Guardians of the Galaxy');
data.addColumn('number', 'The Avengers');
data.addColumn('number', 'Transformers: Age of Extinction');
data.addRows([
[1, 37.8, 80.8, 41.8],
[2, 30.9, 61.5, 32.4],
[3, 25.4, 57, 25.7],
[4, 11.7, 18.8, 10.5],
[5, 11.9, 17.6, 10.4],
[6, 8.8, 13.6, 7.7],
[7, 7.6, 12.3, 9.6],
[8, 12.3, 29.2, 10.6],
[9, 16.9, 42.9, 14.8],
[10, 12.8, 30.9, 11.6],
[11, 5.3, 7.9, 4.7],
[12, 6.6, 8.4, 5.2],
[13, 4.8, 6.3, 3.6],
[14, 4.2, 6.2, 3.4]
]);
var options = {
chart: {
title: 'Yearly Sale Revenue',
subtitle: 'in Rupees'
},
width: 1100,
height: 500,
axes: {
x: {
0: {side: 'top'}
}
}
};
var chart = new google.charts.Line(document.getElementById('line_top_x'));
chart.draw(data, google.charts.Line.convertOptions(options));
}
</script>
<script type="text/javascript">
google.charts.load('current', {'packages':['bar']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Year', 'Sales', 'Expenses', 'Profit'],
['2014', 1000, 400, 200],
['2015', 1170, 460, 250],
['2016', 660, 1120, 300],
['2017', 1030, 540, 350]
]);
var options = {
chart: {
title: 'Company Performance',
subtitle: 'Sales, Expenses, and Profit: 2014-2017',
},
bars: 'horizontal' // Required for Material Bar Charts.
};
var chart = new google.charts.Bar(document.getElementById('barchart_material'));
chart.draw(data, google.charts.Bar.convertOptions(options));
}
</script>
</head>
<body>
<div id="piechart_3d" style="width: 1100px; height: 500px;position: relative;top:100px;left: 300px"></div>
<div id="line_top_x" style="position: relative;top:100px;left: 300px"></div>
<div id="barchart_material" style="width: 1100px; height: 500px;position: relative;top:100px;left: 300px"></div>
<div id="container" style="background-color: white;height:100px;width: 1100px;" >
<header>
<div id='nav'>
<img src="images/logo.jpg" alt="Company's Logo" style="width:100px;height:95px; position: relative; left:-1300px;padding-top: 2px">
<h1 style="font-style: italic;font-size:30;position: relative;top:-80px;left:200px">Tim & Doug's Icecreams</h1>
<a href='./home.php'>Home</a>
<a href='./employee.php'>Employee</a>
<a href='./menu.php'>Menu</a>
<a href='./order.php'>Order</a>
<a href='./feedback.php'>Feedback</a>
<a href='./about.php'>About Us</a>
</div>
</header>
</div>
<div id="menu" style="position: fixed;top:100px">
<div id="avatar">
<?php
if($gen=="male"){
echo "<img src='images/avatar.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
else{
echo "<img src='images/avatar_girl.jpg' alt='Company's Logo' style='width:80px;height:80px;position: relative;padding-left:0px;'>";
}
?>
<h1 style="font-family: helvetica;font-size: 20;text-decoration:none;color:white;padding-left: 20px;position: relative;top:-70px;left:200px">HELLO<br> <?php echo $user; ?></h1>
</div>
<div id="menu_option">
<a href="manage_ingredients.php" style="position: relative;top:10px;">MANAGE INGREDIENTS</a><br>
<a href="./manage_order.php" style="position: relative;top:30px;">MANAGE ORDER</a><br>
<a href="./order_logs.php" style="position: relative;top:50px;">ORDER LOGS</a><br>
<a href="process_order.php" style="position: relative;top:70px;">PROCESS ORDERS</a><br>
<a href="manage_account.php" style="position: relative;top:90px;">MANAGE ACCOUNT</a><br>
</div>
<div id="checkout">
<a href="./logout.php" style="position: relative;top:-30px;left: -10px"><img src="images/logout.png" alt="Company's Logo" style="width:80px;height:60px;position: relative;">SIGN-OUT</a>
</div>
</div>
</body>
</html>
<?php
function myAlert($msg){
echo "<script type='text/javascript'>alert('$msg');</script>";
}
function myConnection(){
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '<PASSWORD>';
$db='parlour';
$con = mysqli_connect($dbhost,$dbuser,$dbpass,$db);
if (mysqli_connect_errno()){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_select_db($con,'parlour');
return $con;
}
function nameTrim($n){
$nm=explode(" ",$n);
return $nm[0];
}
?><file_sep>/feedback.php
<?php
$error="*All Fields are required!";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$conn=myConnection();
if($_POST['phone']!=NULL && $_POST['rate']!=NULL && $_POST['cmt']!=NULL){
$phone = $_POST['phone'];
$sql = "select cust_id from cust_phone where phone='$phone';";
mysqli_select_db($conn,$db);
$r01 =mysqli_query($conn,$sql);
while($row=mysqli_fetch_array($r01)){
$id =$row['cust_id'];
}
if($id!=NULL){
$rt=$_POST['rate'];
$cmt=$_POST['cmt'];
$sql = "insert into feedback (cust_id) values('$id');";
mysqli_select_db($conn,$db);
$retval = mysqli_query($conn,$sql);
$sql="SELECT fid FROM feedback ORDER BY fid DESC LIMIT 1;";
$retval = mysqli_query($conn,$sql);
while($row=mysqli_fetch_array($retval)){
$lod =$row['fid'];
}
$sql = "insert into comments values('$lod','$cmt','$rt');";
mysqli_select_db($conn,'parlour');
$retval = mysqli_query($conn,$sql);
myAlert("Thank you for ur valuable suggestions.");
}
else{
$error="No such phone number registered!";
myAlert("We will update your details during your purchase with us. ThankYou.");
}
}
else{
$error = "All fields must be filled to be continued";
}
}
?>
<html>
<head>
<title>Feedback Page</title>
<link href='./feedback.css' rel='stylesheet' type='text/css'></link>
</head>
<body>
<img src="images/feedback.jpg" style="height: 100%;width: 100%;opacity: 0.18">
<header>
<div id='nav'>
<img src="images/logo.jpg" alt="Company's Logo" style="width:100px;height:95px; position: relative; left:-1300px;padding-top: 2px">
<h1 style="font-style: italic;font-size:30;position: relative;top:-80px;left:200px">Tim & <NAME></h1>
<a href='./home.php'>Home</a>
<a href='./manage_ingredients.php'>Employee</a>
<a href='./menu.php'>Menu</a>
<a href='./order.php'>Order</a>
<a href='./feedback.php'>Feedback</a>
<a href='./about.php'>About Us</a>
</div>
</header>
<center><p style='font-size:80;position:fixed;top:10px;left: 300px;color:orange;'><?php echo"We value our customers!"; ?></p></center>
<div id="form_box">
<div style = "background-color:#333333; color:#FFFFFF; padding:3px;" align="center"><b>Provide Suggestions</b></div>
<form method = "post" style="position: relative;top:20px;left:15px" align="left">
Phone Number: <input type = "numeric" name = "phone"><br><br>
Rate Us: <input type = "radio" name = "rate" value = "1">1
<input type = "radio" name = "rate" value = "2">2
<input type = "radio" name = "rate" value = "3">3
<input type = "radio" name = "rate" value = "4">4
<input type = "radio" name = "rate" value = "5">5<br><br>
<div style="position: relative;top:-10px">
Comments:<br>
<textarea name = "cmt" rows = "3" cols = "35"></textarea><br><br>
</div>
<div style="position: relative;top:-10px">
<input type = "submit" name = "submit" value = "Submit">
<span class="error" style="position: relative;left:2px"><p1 style="font-family: helvetica;font-size: 15;color:red;"><?php echo $error;?></p1></span>
</div>
</form>
</div>
</body>
<?php
function myAlert($msg){
echo "<script type='text/javascript'>alert('$msg');</script>";
}
function myConnection(){
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '<PASSWORD>';
$db='parlour';
$con = mysqli_connect($dbhost,$dbuser,$dbpass,$db);
if (mysqli_connect_errno()){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_select_db($con,'parlour');
return $con;
}
?>
</html><file_sep>/captcha.php
<?php
session_start();
$c=array_merge(range(0,9),range('a','z'),range('A','Z'));
$myStr="";
for($i=0;$i<7;$i++)
$myStr.=$c[array_rand($c)];
$_SESSION["cap"]=$myStr;
$img_width = 90;
$img_height = 50;
header('Content-type: image/png');
$image = imagecreate($img_width, $img_height) or die("Image can't be created");
imagecolorallocate($image,255,165,0);
$text_color = imagecolorallocate($image, 0, 0, 0);
imagestring($image, 50,25,18,$myStr,$text_color);
imagepng($image);
imagedestroy($image);
?> | 28c5489afd856c5ee2c31b3b65a102f9b8723d07 | [
"Text",
"PHP"
] | 23 | PHP | prateeksha-0518/Ice-cream-Parlour-Management-System | 5c763786ad3280b3e48f463095c9a9baea61f64f | 58deeaa88191d5bd5ba77139aa3938fa54f7c982 |
refs/heads/master | <repo_name>skelz0r/lita-ovation<file_sep>/spec/lita/handlers/ovation_spec.rb
require "spec_helper"
describe Lita::Handlers::Ovation, lita_handler: true do
let(:message) { replies.last }
it { is_expected.to route("lita ovation amora") }
it { is_expected.to route("lita ovation") }
it { is_expected.not_to route("lita ovationamora") }
describe "without argument" do
it "celebrates lonely" do
send_message('lita ovation')
message.should == '\o\ \o/ \o/ \o\ /o/'
end
end
describe "with argument" do
it "celebrates with friend" do
send_message('lita ovation Amora')
message.should == '\o\ /o/ \o/ Amora \o/ \o\ /o/'
end
end
end
<file_sep>/README.md
# lita-ovation
[![Build Status](https://travis-ci.org/skelz0r/lita-ovation.png?branch=master)](https://travis-ci.org/skelz0r/lita-ovation)
[![Coverage Status](https://coveralls.io/repos/skelz0r/lita-ovation/badge.png)](https://coveralls.io/r/skelz0r/lita-ovation)
Ovations, ovations everywhere \o\ /o/ \o/ \o\ /o/
## Installation
Add lita-ovation to your Lita instance's Gemfile:
``` ruby
gem "lita-ovation"
```
## Configuration
TODO: Describe any configuration attributes the plugin exposes.
## Usage
TODO: Describe the plugin's features and how to use them.
<file_sep>/lib/lita/handlers/ovation.rb
module Lita
module Handlers
class Ovation < Handler
route(/^ovation(\s*|\s+(\S+))$/, :ovation, help: {
'ovation' => '\o\ /o/',
'ovation Amora' => '\o\ Amora /o/'
})
def ovation(r)
r.reply format_ovation(r.matches[0][0])
end
private
def format_ovation(match)
if match.length == 0
'\o\ \o/ \o/ \o\ /o/'
else
str = '\o\ /o/ \o/ '
str+= match.gsub(/\s/, '')
str+= ' \o/ \o\ /o/'
str
end
end
end
Lita.register_handler(Ovation)
end
end
| ab87b008f1ffd68b420818543185d30493149e25 | [
"Markdown",
"Ruby"
] | 3 | Ruby | skelz0r/lita-ovation | 22ebc4851a57f64b39c90a934b2a08594e8521f1 | 37ce2908aebea559aeda42fbcd0b2ebdf4f17b17 |
refs/heads/master | <file_sep># Mwsrb
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/mwsrb`. To experiment with that code, run `bin/console` for an interactive prompt.
TODO: Delete this and the text above, and describe your gem
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'mwsrb'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install mwsrb
## Usage
Initialize with debug logging:
```ruby
mws = Amazon::Client.new(debug_log: method(:puts))
mws['Products'].request(...)
```
or
```ruby
mws = Amazon::Client.new
mws['Products', debug_log: method(:puts)].request(...)
```
<file_sep>require 'openssl'
module Mwsrb
#
# Represents one of MWS's API "categories" i.e. "Products", or
# "Fulfillment Inventory".
#
class Api
Quota = Struct.new(:remaining, :resets_on) do
def self.create(headers)
remaining = headers['x-mws-quota-remaining']
resets_on = headers['x-mws-quota-resetson']
return nil if remaining.blank? || resets_on.blank?
new(remaining.to_i, DateTime.parse(resets_on))
end
end
ThrottledError = Class.new(StandardError)
attr_reader :name
attr_reader :verb
attr_reader :merchant
attr_reader :client
attr_accessor :debug_log
def initialize(name, options = {})
@name = name.to_s
@verb = (options[:verb] || 'POST').upcase
@endpoint = options[:endpoint] || Mwsrb::Client.base_uri
@user_agent = options[:user_agent] || 'MWSRB'
@merchant = options[:merchant] || options[:seller_id] || options[:merchant_id]
@marketplace = options[:marketplace] || Mwsrb::Marketplace::US
@debug_log = options[:log] || options[:debug_log]
@debug_log = STDOUT.method(:puts) if @debug_log == true
@params = resolve_lists_and_dates(options[:params] || {})
@headers = default_headers.merge(options[:headers] || {})
if @params.respond_to?(:stringify_keys)
@params = @params.stringify_keys
end
@client = options[:client]
@aws_access_key_id = options[:aws_access_key_id]
@secret_access_key = options[:secret_access_key]
end
#
# Inspect is overridden so as to not leak the secret access key
# into logs.
#
def inspect
"<Mwsrb::Api(#{@verb} #{@name}):#{object_id}>"
end
def request(operation, params = {})
raise "Must provide :aws_access_key_id" if @aws_access_key_id.blank?
raise "Must provide :secret_access_key" if @secret_access_key.blank?
raise "Must provide :seller or :merchant" if @merchant.blank?
verb = (params.delete(:verb) || @verb).upcase
endpoint = (params.delete(:endpoint) || @endpoint)
log { "=== Begin MWS request #{Time.now}" }
begin
# Grab throttling data
throttling_key = "#{name}##{operation}"
quota = client.throttling[throttling_key]
# Wait for throttling to cool down
if quota.present?
if quota.remaining <= 0 && DateTime.now < quota.resets_on
sleep_time = quota.resets_on - DateTime.now + 0.5
log { "Waitng #{sleep_time} seconds to avoid throttling" }
sleep sleep_time
end
end
# Headers can be specified with special :headers
# key passed as a param.
headers =
@headers
.merge(params.delete(:headers) || {})
# Request body will first check the params option
# sent during construction, then merge in params passed
# to this method, then merge in necessary options.
body =
default_params
.merge(@params)
.merge(resolve_lists_and_dates(params.try(:stringify_keys) || params))
.merge({
'Action' => operation,
'AWSAccessKeyId' => @aws_access_key_id
})
.sort
.to_h
.with_indifferent_access
path = "/#{name}/#{body[:Version]}"
# This 'canonical' is encrypted to form a signature
# that will be checked by the Amazon API.
canonical = [
verb,
endpoint.gsub(/^.+:\/\//, ''),
path,
body.to_query
].join("\n")
# Generate signature, signed with the secret key.
signature = generate_signature(@secret_access_key, canonical)
body[:Signature] = signature
log do
[
"PATH: #{path}",
"HEADERS:\n#{JSON.pretty_generate(headers)}",
"BODY:\n#{JSON.pretty_generate(body)}",
"CANONICAL:\n #{canonical.split("\n").join("\n ")}\n"
]
end
response = Mwsrb::Response.new(
Mwsrb::Client.send(
verb.downcase, "#{endpoint}/#{path}?#{body.to_query}",
headers: headers
)
)
# Update throttling information for next request
quota = Quota.create(response.headers)
if quota
client.throttling[throttling_key] = quota
else
# See if we've been throttled (some api calls don't provide this information)
msg = response.at_css "Error Message"
if msg.present? && msg.content == "Request is throttled"
sleep_time = 10.seconds
log { "Request throttled! Waiting #{sleep_time} seconds" }
sleep sleep_time
# Try again
raise ThrottledError
end
end
response
rescue ThrottledError
retry
end
ensure
log { "=== End MWS request #{Time.now}" }
end
alias_method :call, :request
def generate_signature(secret_access_key, canonical)
digest = OpenSSL::Digest.new('sha256')
Base64.encode64(OpenSSL::HMAC.digest(digest, secret_access_key, canonical)).chomp
end
private
#
# Turns arrays into the ListName.Element.N format that
# MWS expects.
#
# Encodes time/datetime objects in iso-8601.
#
def resolve_lists_and_dates(params)
new_params = {}
params.each do |key, value|
case value
when Array
inferred_el_name = element_name(key)
# element_counts will usually look something like:
# { Id: 3 }
element_counts = Hash.new(0)
value.each do |element|
if element.is_a?(Hash)
# `value` is in the form:
# [{ Id: 'ASDFG' }, { Id: 'FDDSAG' }]
#
# NOTE this "each" will generally only hit one element
element.each do |el_name, el_val|
count = (element_counts[el_name] += 1)
new_params["#{key}.#{el_name}.#{count}"] = el_val
end
else
# Here we use the inferred "element names" by the camelcase key name
count = (element_counts[inferred_el_name] += 1)
new_params["#{key}.#{inferred_el_name}.#{count}"] = element
end
end
when Time, DateTime
new_params[key] = value.iso8601
else
new_params[key] = value
end
end
new_params
end
#
# Breaks out the "Id" from "OrderId"
#
def element_name(key)
key = key.to_s
size = key.size
key.each_char.reverse_each.with_index do |ch, i|
if ch == ch.upcase
return key[(size - i - 1)..-1]
end
end
raise "Invalid key '#{key}'"
end
#
# Most recent API versions as of 2017-04-07
#
def default_version
case @name
when 'Products' then "2011-10-01"
when 'Orders' then "2013-09-01"
when 'FulfillmentInventory' then "2010-10-01"
when 'Feeds' then "2009-01-01"
when 'Reports' then "2009-01-01"
when 'MerchantFulfillment' then "2015-06-01"
else "2009-01-01"
end
end
#
# Headers always present in any request unless overridden.
#
def default_headers
{
'User-Agent' => @user_agent,
'Content-Type' => 'x-www-form-urlencoded'
}
end
#
# Parameters always present in any request unless overridden.
#
def default_params
{
'SellerId' => @merchant,
'SignatureMethod' =>'HmacSHA256',
'SignatureVersion' =>'2',
'Timestamp' => Time.now.iso8601,
'Version' => default_version
}
end
#
# Log is called with a block rather than a parameter so that the
# message expression is not evaluated unless a log function is
# specified.
#
def log
return if @debug_log.nil?
msg = yield
if msg.respond_to?(:each)
msg.each { |m| @debug_log.call m }
else
@debug_log.call msg
end
end
end
end
<file_sep>require 'httparty'
module Mwsrb
class Client
include HTTParty
base_uri 'https://mws.amazonservices.com'
attr_reader :options
attr_reader :throttling
# Mwsrb::Client (AKA Amazon::Client) can be used like
#
# ``` ruby
# client = Amazon::Client.new(
# aws_access_key_id: '<your access key id>',
# secret_access_key: '<your secret access key>',
# merchant_id: '<your merchant/seller-id>',
# marketplace: Amazon::Marketplace::CA # <-- defaults to US
# params: { MarketplaceId: '<your marketplace id>' }
# )
#
# response = cilent['Products'].request(
# 'GetMatchingProductForId',
# IdType: 'ASIN',
# :IdList => [{ Id: 'ASDFGVWE' }, { Id: 'OOBIEUIH' }]
# )
# ```
#
#
# And then `response` will be a straight-up HTTParty response object.
# The response content can be accessed in two ways:
#
# 1. `response.parsed_response` returns a hash parsed from Amazon's XML response
# 2. `response.body` returns the raw XML string
#
def initialize(options = {})
@options = infer_options_from_environment.merge(options)
@throttling = {}
end
def inspect
"<Mwsrb::Client:#{object_id}>"
end
def [](api_category, options = {})
category = api_category.gsub(' ', '')
Mwsrb::Api.new(category, @options.merge(options).merge(client: self))
end
private
#
# If no options are supplied, we can infer them from Application.yml
# through Figaro using some standard key names.
#
def infer_options_from_environment
options = {}
if defined?(Figaro)
set = -> key {
if (val = Figaro.env.send("mws_#{key}") || Figaro.env.send(key))
options[key] = val
end
options
}
set[:aws_access_key_id]
set[:secret_access_key]
set[:merchant_id]
set[:marketplace]
set[:user_agent]
elsif Rails.application.credentials.mws.present?
Rails.application.credentials.mws.each do |key, val|
options[key] = val
end
end
options
end
end
end
<file_sep>module Mwsrb
class Response
def self.delegate(*methods, options)
methods.each do |name|
class_eval <<-RUBY
def #{name}(*args, &block)
#{options[:to]}.#{name}(*args, &block)
end
RUBY
end
end
attr_reader :response
alias_method :httparty, :response
delegate :body, :headers, :parsed_response, to: :response
delegate :css, :xpath, :at_css, :at_xpath, to: :nokogiri
def initialize(httparty_response)
@response = httparty_response
end
def inspect
"#<Mwsrb::Response:#{object_id} body=\"#{body}\">"
end
def to_h
@response.parsed_response
end
def nokogiri
@nokogiri ||= Nokogiri::XML(@response.body).tap(&:remove_namespaces!)
end
def error
error_element = at_css 'Error'
return nil if error_element.blank?
"#{error_element.at_css('Type').content}: #{error_element.at_css('Message').content}"
end
end
end
<file_sep>module Mwsrb
module Marketplace
US = 'ATVPDKIKX0DER'
CA = 'A2EUQ1WTGCTBG2'
MX = 'A1AM78C64UM0Y8'
DE = 'A1PA6795UKMFR9'
ES = 'A1RKKUPIHCS9HS'
FR = 'A13V1IB3VIYZZH'
IT = 'APJ6JRA9NG5V4'
UK = 'A1F83G8C2ARO7P'
IN = 'A21TJRUUN4KGV'
JP = 'A1VC38T7YXB528'
CN = 'AAHKV2X7AFYLW'
end
end
<file_sep>source 'https://rubygems.org'
# Specify your gem's dependencies in mwsrb.gemspec
gemspec
<file_sep>require "spec_helper"
describe Mwsrb do
it "has a version number" do
expect(Mwsrb::VERSION).not_to be nil
end
describe 'Mwsrb::Api#resolve_lists' do
subject { Mwsrb::Api.new(:Testing) }
it "turns hashes in the form [{ Id: 'ASDFG' }, { Id: 'FDDSAG' }] "\
"to { Id.1: 'ASDFG', Id.2: 'FDDSAG' }" do
expect(subject.send(:resolve_lists_and_dates, {IdList: [{ Id: 'ASDFG' }, { Id: 'FDDSAG' }]}))
.to eq({ 'IdList.Id.1' => 'ASDFG', 'IdList.Id.2' => 'FDDSAG' })
end
it "turns array values in the form OrderId: ['ASDFG', 'FDDSAG'] "\
"to { OrderId.Id.1: 'ASDFG', OrderId.Id.2: 'FDDSAG' }" do
expect(subject.send(:resolve_lists_and_dates, {IdList: [{ Id: 'ASDFG' }, { Id: 'FDDSAG' }]}))
.to eq({ 'IdList.Id.1' => 'ASDFG', 'IdList.Id.2' => 'FDDSAG' })
end
end
describe 'Mwsrb::Api#element_name' do
subject { Mwsrb::Api.new(:Testing) }
it "turns 'OrderId' into 'Id'" do
expect(subject.send(:element_name, "OrderId")).to eq 'Id'
end
it "turns 'MarketplaceId' into 'Id'" do
expect(subject.send(:element_name, "MarketplaceId")).to eq 'Id'
end
it "turns 'ItemStatus' into 'Status'" do
expect(subject.send(:element_name, "ItemStatus")).to eq 'Status'
end
end
end
<file_sep>require "mwsrb/version"
require "mwsrb/marketplace"
require "mwsrb/response"
require "mwsrb/client"
require "mwsrb/api"
module Mwsrb
end
unless defined?(Amazon)
Amazon = Mwsrb
end
| 073a565ca6db72711a04d6a78c8d9a10673e2bf0 | [
"Markdown",
"Ruby"
] | 8 | Markdown | AnnArborTees/mwsrb | 3086bfa84a8195026544df424ad05efe291a9670 | 38d2d46525e63e044705131fb4683a6980afc04e |
refs/heads/master | <file_sep>/*GR-KURUMI Sketch Template Version: V2.02*/
#include <Arduino.h>
// Pin 22,23,24 are assigned to RGB LEDs.
#define LED_RED 22 // LOW active
#define LED_GREEN 23 // LOW active
#define LED_BLUE 24 // LOW active
int before=0;
int average=0;
int cnt;
int VR0[20];
// the setup routine runs once when you press reset:
void setup() {
//setPowerManagementMode(PM_STOP_MODE, 0, 1023); //Set CPU STOP_MODE in delay()
//setOperationClockMode(CLK_LOW_SPEED_MODE); //Set CPU clock from 32MHz to 32.768kHz
// initialize the digital pin as an output.
Serial.begin(9600);
Serial2.begin(115200);
// Serial.print("Temperature: ");
// Serial.println(getTemperature(TEMP_MODE_CELSIUS)); //temperature from the sensor in MCU
pinMode(LED_RED, OUTPUT);
pinMode(LED_GREEN, OUTPUT);
pinMode(LED_BLUE, OUTPUT);
pinMode(A0, INPUT);
analogReference(DEFAULT);
// turn the LEDs on, glow white.
digitalWrite(LED_RED, HIGH);
digitalWrite(LED_GREEN, HIGH);
// digitalWrite(LED_BLUE, LOW);
}
// the loop routine runs over and over again forever:
void loop() {
// Serial.println("Hello");
char szBuf[256];
int i;
int sum,value;
value = analogRead(A0);
if (cnt == 10) {
cnt = 0;
}
VR0[cnt] = value;
cnt++;
for (i = 0; i < 10;i++) {
sum += VR0[i];
}
average = sum / 40;
if (average != before){
sprintf(szBuf, "A0 - %d", average);
Serial2.println(szBuf);
digitalWrite(LED_BLUE, LOW); // turn the RED LED off, glow sky blue.
} else {
digitalWrite(LED_BLUE, HIGH); // turn the BLUE LED off, glow yellow.
}
before = average;
delay(50); // wait 200ms
// digitalWrite(LED_RED, LOW); // turn the RED LED on
// digitalWrite(LED_BLUE, HIGH); // turn the GREEN LED off, glow pink.
// delay(200); // wait 200ms
// digitalWrite(LED_GREEN, LOW); // turn the GREEN LED on
// delay(200); // wait for a second
// digitalWrite(LED_BLUE, LOW); // turn the BLUE LED on
}
| a132c3ec083ae2d0e8a85774b93ec9cbba82faaf | [
"C++"
] | 1 | C++ | h-emoto/gr-kurumi | a9a7e0d0bfdfe738c1217e225d4e98a868315e82 | ed2fdee96aed42b1fdec373a81e29bd75aac236a |
refs/heads/master | <repo_name>nicolaigaina/gopitch<file_sep>/client/src/actions/auth.js
import axios from "axios";
import { browserHistory } from "react-router";
import cookie from "react-cookie";
import { API_URL, CLIENT_ROOT_URL, errorHandler } from "./index";
import {
AUTH_USER,
AUTH_ERROR,
UNAUTH_USER,
FORGOT_PASSWORD_REQUEST,
RESET_PASSWORD_REQUEST,
PROTECTED_TEST
} from "./types";
//= ===============================
// Authentication actions
//= ===============================
export function signoutUser(error) {
return function(dispatch) {
dispatch({ type: UNAUTH_USER, payload: error || "" });
cookie.remove("token", { path: "/" });
cookie.remove("user", { path: "/" });
window.location.href = `${CLIENT_ROOT_URL}/signin`;
};
}
export function signinUser({ email, password }) {
return function(dispatch) {
axios.post(`${API_URL}/auth/signin`, { email, password }).then(response => {
cookie.save("token", response.data.token, { path: "/" });
cookie.save("user", response.data.user, { path: "/" });
dispatch({
type: AUTH_USER
});
window.location.href = `${CLIENT_ROOT_URL}/dashboard`;
});
};
}
export function signupUser({ email, password, firstName, lastName }) {
return function(dispatch) {
axios.post(`${API_URL}/auth/signup`, { email, password, firstName, lastName }).then(response => {
cookie.save("token", response.data.token, { path: "/" });
cookie.save("user", response.data.user, { path: "/" });
dispatch({
type: AUTH_USER
});
window.location.href = `${CLIENT_ROOT_URL}/dashboard`;
});
};
}
export function getForgotPasswordToken({ email }){
return function(dispatch){
axios.post(`${API_URL}/auth/forgot-password`, { email }).then(response => {
dispatch({
type: FORGOT_PASSWORD_REQUEST,
payload: response.data.message
});
})
.catch(error => {
errorHandler(dispatch, error.response, AUTH_ERROR);
})
}
}
export function resetPassword(token, { password }){
return function(dispatch){
axios.post(`${API_URL}/auth/reset-password/${token}`, { password }).then(response => {
dispatch({
type: RESET_PASSWORD_REQUEST,
payload: response.data.message
});
// Redirect to signin page on successfull password reset
})
.catch(error => {
errorHandler(dispatch, error.response, AUTH_ERROR);
})
}
}
export function protectedTest() {
return function(dispatch) {
axios
.get(`${API_URL}/protected`, {
headers: { Authorization: cookie.load("token") }
})
.then(response => {
dispatch({
type: PROTECTED_TEST,
payload: response.data.content
});
})
.catch(error => {
errorHandler(dispatch, error.response, AUTH_ERROR);
});
};
}
<file_sep>/client/src/components/pages/not-found-page.js
import React, { Component } from "react";
class NotFoundPage extends Component {
render(){
return(
<div>
<h1>Ooops!</h1>
<h2>404 - Page Not Found.</h2>
<p>The page you were looking for cannot be found!</p>
</div>
)
}
}
export default NotFoundPage;<file_sep>/README.md
## MERN Starter Project
## Front End
React, Redux
## Back End
Node, Express, MongoDB
<file_sep>/server/controllers/communications.js
const mailgun = require("../services/mailgun");
module.exports.sendContactForm = function(req, res, nxt) {
const fromText =
`${req.body.firstName} ${req.body.lastName} ` + `<${req.body.emailAddress}>`;
const message = {
subject: req.body.subject,
text: req.body.message
};
mailgun.contactForm(fromText, message);
return res
.status(200)
.json({ message: "Your email has been successfully sent!" });
};
<file_sep>/server/services/mailgun.js
const config = require("../config/keys");
const mailgun = require("mailgun-js")({
apiKey: config.mailgun_priv_key,
domain: config.mailgun_domain
});
// Create and export function to send emails through Mailgun API
module.exports.sendEmail = function(recipient, message) {
const data = {
from: "<EMAIL>",
to: recipient,
subject: message.subject,
text: message.text
};
mailgun.messages().send(data, (error, body) => {
error ? console.log(error) : console.log(body);
});
};
module.exports.contactForm = function(sender, message) {
const data = {
from: sender,
to: "<EMAIL>",
subject: message.subject,
text: message.text
};
mailgun.messages().send(data, (error, body) => {
error ? console.log(error) : console.log(body);
});
};
<file_sep>/server/config/prod.js
module.exports = {
localSecret:process.env.LOCAL_SECRET,
googleClientID: process.env.GOOGLE_CLIENT_ID,
googleClientSecret: process.env.GOOGLE_CLIENT_SECRET,
database: process.env.MONGO_URI,
port: process.env.PORT,
mailgun_priv_key: process.env.MAILGUN_PRIV_KEY,
mailgun_domain: process.env.MAILGUN_DOMAIN
};
| e3e71f8bbf840b9ef4046dea53160f04449add50 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | nicolaigaina/gopitch | fa1cd6afeb79d2eee4d04e1aa92584b189ecc9a6 | 90d956dfa49fa8029a116e01e804ac8868d31017 |
refs/heads/master | <file_sep>// Copyright 2020 The gVisor Authors.
//
// 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 stack
import (
"sync"
"gvisor.dev/gvisor/pkg/tcpip"
"gvisor.dev/gvisor/pkg/tcpip/header"
"gvisor.dev/gvisor/pkg/tcpip/transport/tcpconntrack"
)
// Connection tracking is used to track and manipulate packets for NAT rules.
// The connection is created for a packet if it does not exist. Every
// connection contains two tuples (original and reply). The tuples are
// manipulated if there is a matching NAT rule. The packet is modified by
// looking at the tuples in the Prerouting and Output hooks.
//
// Currently, only TCP tracking is supported.
// Direction of the tuple.
type direction int
const (
dirOriginal direction = iota
dirReply
)
// Manipulation type for the connection.
type manipType int
const (
manipDstPrerouting manipType = iota
manipDstOutput
)
// tuple holds a connection's identifying and manipulating data in one
// direction. It is immutable.
type tuple struct {
tupleID
// conn is the connection tracking entry this tuple belongs to.
conn *conn
// direction is the direction of the tuple.
direction direction
}
// tupleID uniquely identifies a connection in one direction. It currently
// contains enough information to distinguish between any TCP or UDP
// connection, and will need to be extended to support other protocols.
type tupleID struct {
srcAddr tcpip.Address
srcPort uint16
dstAddr tcpip.Address
dstPort uint16
transProto tcpip.TransportProtocolNumber
netProto tcpip.NetworkProtocolNumber
}
// reply creates the reply tupleID.
func (ti tupleID) reply() tupleID {
return tupleID{
srcAddr: ti.dstAddr,
srcPort: ti.dstPort,
dstAddr: ti.srcAddr,
dstPort: ti.srcPort,
transProto: ti.transProto,
netProto: ti.netProto,
}
}
// conn is a tracked connection.
type conn struct {
// original is the tuple in original direction. It is immutable.
original tuple
// reply is the tuple in reply direction. It is immutable.
reply tuple
// manip indicates if the packet should be manipulated. It is immutable.
manip manipType
// tcbHook indicates if the packet is inbound or outbound to
// update the state of tcb. It is immutable.
tcbHook Hook
// mu protects tcb.
mu sync.Mutex
// tcb is TCB control block. It is used to keep track of states
// of tcp connection and is protected by mu.
tcb tcpconntrack.TCB
}
// ConnTrack tracks all connections created for NAT rules. Most users are
// expected to only call handlePacket and createConnFor.
type ConnTrack struct {
// mu protects conns.
mu sync.RWMutex
// conns maintains a map of tuples needed for connection tracking for
// iptables NAT rules. It is protected by mu.
conns map[tupleID]tuple
}
// packetToTupleID converts packet to a tuple ID. It fails when pkt lacks a valid
// TCP header.
func packetToTupleID(pkt *PacketBuffer) (tupleID, *tcpip.Error) {
// TODO(gvisor.dev/issue/170): Need to support for other
// protocols as well.
netHeader := header.IPv4(pkt.NetworkHeader)
if netHeader == nil || netHeader.TransportProtocol() != header.TCPProtocolNumber {
return tupleID{}, tcpip.ErrUnknownProtocol
}
tcpHeader := header.TCP(pkt.TransportHeader)
if tcpHeader == nil {
return tupleID{}, tcpip.ErrUnknownProtocol
}
return tupleID{
srcAddr: netHeader.SourceAddress(),
srcPort: tcpHeader.SourcePort(),
dstAddr: netHeader.DestinationAddress(),
dstPort: tcpHeader.DestinationPort(),
transProto: netHeader.TransportProtocol(),
netProto: header.IPv4ProtocolNumber,
}, nil
}
// newConn creates new connection.
func newConn(orig, reply tupleID, manip manipType, hook Hook) *conn {
conn := conn{
manip: manip,
tcbHook: hook,
}
conn.original = tuple{conn: &conn, tupleID: orig}
conn.reply = tuple{conn: &conn, tupleID: reply, direction: dirReply}
return &conn
}
// connFor gets the conn for pkt if it exists, or returns nil
// if it does not. It returns an error when pkt does not contain a valid TCP
// header.
// TODO(gvisor.dev/issue/170): Only TCP packets are supported. Need to support
// other transport protocols.
func (ct *ConnTrack) connFor(pkt *PacketBuffer) (*conn, direction) {
tid, err := packetToTupleID(pkt)
if err != nil {
return nil, dirOriginal
}
ct.mu.Lock()
defer ct.mu.Unlock()
tuple, ok := ct.conns[tid]
if !ok {
return nil, dirOriginal
}
return tuple.conn, tuple.direction
}
// createConnFor creates a new conn for pkt.
func (ct *ConnTrack) createConnFor(pkt *PacketBuffer, hook Hook, rt RedirectTarget) *conn {
tid, err := packetToTupleID(pkt)
if err != nil {
return nil
}
if hook != Prerouting && hook != Output {
return nil
}
// Create a new connection and change the port as per the iptables
// rule. This tuple will be used to manipulate the packet in
// handlePacket.
replyTID := tid.reply()
replyTID.srcAddr = rt.MinIP
replyTID.srcPort = rt.MinPort
var manip manipType
switch hook {
case Prerouting:
manip = manipDstPrerouting
case Output:
manip = manipDstOutput
}
conn := newConn(tid, replyTID, manip, hook)
// Add the changed tuple to the map.
// TODO(gvisor.dev/issue/170): Need to support collisions using linked
// list.
ct.mu.Lock()
defer ct.mu.Unlock()
ct.conns[tid] = conn.original
ct.conns[replyTID] = conn.reply
return conn
}
// handlePacketPrerouting manipulates ports for packets in Prerouting hook.
// TODO(gvisor.dev/issue/170): Change address for Prerouting hook.
func handlePacketPrerouting(pkt *PacketBuffer, conn *conn, dir direction) {
netHeader := header.IPv4(pkt.NetworkHeader)
tcpHeader := header.TCP(pkt.TransportHeader)
// For prerouting redirection, packets going in the original direction
// have their destinations modified and replies have their sources
// modified.
switch dir {
case dirOriginal:
port := conn.reply.srcPort
tcpHeader.SetDestinationPort(port)
netHeader.SetDestinationAddress(conn.reply.srcAddr)
case dirReply:
port := conn.original.dstPort
tcpHeader.SetSourcePort(port)
netHeader.SetSourceAddress(conn.original.dstAddr)
}
netHeader.SetChecksum(0)
netHeader.SetChecksum(^netHeader.CalculateChecksum())
}
// handlePacketOutput manipulates ports for packets in Output hook.
func handlePacketOutput(pkt *PacketBuffer, conn *conn, gso *GSO, r *Route, dir direction) {
netHeader := header.IPv4(pkt.NetworkHeader)
tcpHeader := header.TCP(pkt.TransportHeader)
// For output redirection, packets going in the original direction
// have their destinations modified and replies have their sources
// modified. For prerouting redirection, we only reach this point
// when replying, so packet sources are modified.
if conn.manip == manipDstOutput && dir == dirOriginal {
port := conn.reply.srcPort
tcpHeader.SetDestinationPort(port)
netHeader.SetDestinationAddress(conn.reply.srcAddr)
} else {
port := conn.original.dstPort
tcpHeader.SetSourcePort(port)
netHeader.SetSourceAddress(conn.original.dstAddr)
}
// Calculate the TCP checksum and set it.
tcpHeader.SetChecksum(0)
hdr := &pkt.Header
length := uint16(pkt.Data.Size()+hdr.UsedLength()) - uint16(netHeader.HeaderLength())
xsum := r.PseudoHeaderChecksum(header.TCPProtocolNumber, length)
if gso != nil && gso.NeedsCsum {
tcpHeader.SetChecksum(xsum)
} else if r.Capabilities()&CapabilityTXChecksumOffload == 0 {
xsum = header.ChecksumVVWithOffset(pkt.Data, xsum, int(tcpHeader.DataOffset()), pkt.Data.Size())
tcpHeader.SetChecksum(^tcpHeader.CalculateChecksum(xsum))
}
netHeader.SetChecksum(0)
netHeader.SetChecksum(^netHeader.CalculateChecksum())
}
// handlePacket will manipulate the port and address of the packet if the
// connection exists.
func (ct *ConnTrack) handlePacket(pkt *PacketBuffer, hook Hook, gso *GSO, r *Route) {
if pkt.NatDone {
return
}
if hook != Prerouting && hook != Output {
return
}
conn, dir := ct.connFor(pkt)
if conn == nil {
// Connection not found for the packet or the packet is invalid.
return
}
switch hook {
case Prerouting:
handlePacketPrerouting(pkt, conn, dir)
case Output:
handlePacketOutput(pkt, conn, gso, r, dir)
}
pkt.NatDone = true
// Update the state of tcb.
// TODO(gvisor.dev/issue/170): Add support in tcpcontrack to handle
// other tcp states.
conn.mu.Lock()
defer conn.mu.Unlock()
var st tcpconntrack.Result
tcpHeader := header.TCP(pkt.TransportHeader)
if conn.tcb.IsEmpty() {
conn.tcb.Init(tcpHeader)
conn.tcbHook = hook
} else {
switch hook {
case conn.tcbHook:
st = conn.tcb.UpdateStateOutbound(tcpHeader)
default:
st = conn.tcb.UpdateStateInbound(tcpHeader)
}
}
// Delete conn if tcp connection is closed.
if st == tcpconntrack.ResultClosedByPeer || st == tcpconntrack.ResultClosedBySelf || st == tcpconntrack.ResultReset {
ct.deleteConn(conn)
}
}
// deleteConn deletes the connection.
func (ct *ConnTrack) deleteConn(conn *conn) {
if conn == nil {
return
}
ct.mu.Lock()
defer ct.mu.Unlock()
delete(ct.conns, conn.original.tupleID)
delete(ct.conns, conn.reply.tupleID)
}
<file_sep>// Copyright 2018 The gVisor Authors.
//
// 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 root
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"os"
"os/exec"
"path"
"path/filepath"
"strings"
"testing"
"time"
"gvisor.dev/gvisor/pkg/cleanup"
"gvisor.dev/gvisor/pkg/test/criutil"
"gvisor.dev/gvisor/pkg/test/dockerutil"
"gvisor.dev/gvisor/pkg/test/testutil"
)
// Tests for crictl have to be run as root (rather than in a user namespace)
// because crictl creates named network namespaces in /var/run/netns/.
// Sandbox returns a JSON config for a simple sandbox. Sandbox names must be
// unique so different names should be used when running tests on the same
// containerd instance.
func Sandbox(name string) string {
// Sandbox is a default JSON config for a sandbox.
s := map[string]interface{}{
"metadata": map[string]string{
"name": name,
"namespace": "default",
"uid": testutil.RandomID(""),
},
"linux": map[string]string{},
"log_directory": "/tmp",
}
v, err := json.Marshal(s)
if err != nil {
// This shouldn't happen.
panic(err)
}
return string(v)
}
// SimpleSpec returns a JSON config for a simple container that runs the
// specified command in the specified image.
func SimpleSpec(name, image string, cmd []string, extra map[string]interface{}) string {
s := map[string]interface{}{
"metadata": map[string]string{
"name": name,
},
"image": map[string]string{
"image": testutil.ImageByName(image),
},
// Log files are not deleted after root tests are run. Log to random
// paths to ensure logs are fresh.
"log_path": fmt.Sprintf("%s.log", testutil.RandomID(name)),
}
if len(cmd) > 0 { // Omit if empty.
s["command"] = cmd
}
for k, v := range extra {
s[k] = v // Extra settings.
}
v, err := json.Marshal(s)
if err != nil {
// This shouldn't happen.
panic(err)
}
return string(v)
}
// Httpd is a JSON config for an httpd container.
var Httpd = SimpleSpec("httpd", "basic/httpd", nil, nil)
// TestCrictlSanity refers to b/112433158.
func TestCrictlSanity(t *testing.T) {
// Setup containerd and crictl.
crictl, cleanup, err := setup(t)
if err != nil {
t.Fatalf("failed to setup crictl: %v", err)
}
defer cleanup()
podID, contID, err := crictl.StartPodAndContainer("basic/httpd", Sandbox("default"), Httpd)
if err != nil {
t.Fatalf("start failed: %v", err)
}
// Look for the httpd page.
if err = httpGet(crictl, podID, "index.html"); err != nil {
t.Fatalf("failed to get page: %v", err)
}
// Stop everything.
if err := crictl.StopPodAndContainer(podID, contID); err != nil {
t.Fatalf("stop failed: %v", err)
}
}
// HttpdMountPaths is a JSON config for an httpd container with additional
// mounts.
var HttpdMountPaths = SimpleSpec("httpd", "basic/httpd", nil, map[string]interface{}{
"mounts": []map[string]interface{}{
map[string]interface{}{
"container_path": "/var/run/secrets/kubernetes.io/serviceaccount",
"host_path": "/var/lib/kubelet/pods/82bae206-cdf5-11e8-b245-8cdcd43ac064/volumes/kubernetes.io~secret/default-token-2rpfx",
"readonly": true,
},
map[string]interface{}{
"container_path": "/etc/hosts",
"host_path": "/var/lib/kubelet/pods/82bae206-cdf5-11e8-b245-8cdcd43ac064/etc-hosts",
"readonly": false,
},
map[string]interface{}{
"container_path": "/dev/termination-log",
"host_path": "/var/lib/kubelet/pods/82bae206-cdf5-11e8-b245-8cdcd43ac064/containers/httpd/d1709580",
"readonly": false,
},
map[string]interface{}{
"container_path": "/usr/local/apache2/htdocs/test",
"host_path": "/var/lib/kubelet/pods/82bae206-cdf5-11e8-b245-8cdcd43ac064",
"readonly": true,
},
},
"linux": map[string]interface{}{},
})
// TestMountPaths refers to b/117635704.
func TestMountPaths(t *testing.T) {
// Setup containerd and crictl.
crictl, cleanup, err := setup(t)
if err != nil {
t.Fatalf("failed to setup crictl: %v", err)
}
defer cleanup()
podID, contID, err := crictl.StartPodAndContainer("basic/httpd", Sandbox("default"), HttpdMountPaths)
if err != nil {
t.Fatalf("start failed: %v", err)
}
// Look for the directory available at /test.
if err = httpGet(crictl, podID, "test"); err != nil {
t.Fatalf("failed to get page: %v", err)
}
// Stop everything.
if err := crictl.StopPodAndContainer(podID, contID); err != nil {
t.Fatalf("stop failed: %v", err)
}
}
// TestMountPaths refers to b/118728671.
func TestMountOverSymlinks(t *testing.T) {
// Setup containerd and crictl.
crictl, cleanup, err := setup(t)
if err != nil {
t.Fatalf("failed to setup crictl: %v", err)
}
defer cleanup()
spec := SimpleSpec("busybox", "basic/resolv", []string{"sleep", "1000"}, nil)
podID, contID, err := crictl.StartPodAndContainer("basic/resolv", Sandbox("default"), spec)
if err != nil {
t.Fatalf("start failed: %v", err)
}
out, err := crictl.Exec(contID, "readlink", "/etc/resolv.conf")
if err != nil {
t.Fatalf("readlink failed: %v, out: %s", err, out)
}
if want := "/tmp/resolv.conf"; !strings.Contains(string(out), want) {
t.Fatalf("/etc/resolv.conf is not pointing to %q: %q", want, string(out))
}
etc, err := crictl.Exec(contID, "cat", "/etc/resolv.conf")
if err != nil {
t.Fatalf("cat failed: %v, out: %s", err, etc)
}
tmp, err := crictl.Exec(contID, "cat", "/tmp/resolv.conf")
if err != nil {
t.Fatalf("cat failed: %v, out: %s", err, out)
}
if tmp != etc {
t.Fatalf("file content doesn't match:\n\t/etc/resolv.conf: %s\n\t/tmp/resolv.conf: %s", string(etc), string(tmp))
}
// Stop everything.
if err := crictl.StopPodAndContainer(podID, contID); err != nil {
t.Fatalf("stop failed: %v", err)
}
}
// TestHomeDir tests that the HOME environment variable is set for
// Pod containers.
func TestHomeDir(t *testing.T) {
// Setup containerd and crictl.
crictl, cleanup, err := setup(t)
if err != nil {
t.Fatalf("failed to setup crictl: %v", err)
}
defer cleanup()
// Note that container ID returned here is a sub-container. All Pod
// containers are sub-containers. The root container of the sandbox is the
// pause container.
t.Run("sub-container", func(t *testing.T) {
contSpec := SimpleSpec("subcontainer", "basic/busybox", []string{"sh", "-c", "echo $HOME"}, nil)
podID, contID, err := crictl.StartPodAndContainer("basic/busybox", Sandbox("subcont-sandbox"), contSpec)
if err != nil {
t.Fatalf("start failed: %v", err)
}
out, err := crictl.Logs(contID)
if err != nil {
t.Fatalf("failed retrieving container logs: %v, out: %s", err, out)
}
if got, want := strings.TrimSpace(string(out)), "/root"; got != want {
t.Fatalf("Home directory invalid. Got %q, Want : %q", got, want)
}
// Stop everything.
if err := crictl.StopPodAndContainer(podID, contID); err != nil {
t.Fatalf("stop failed: %v", err)
}
})
// Tests that HOME is set for the exec process.
t.Run("exec", func(t *testing.T) {
contSpec := SimpleSpec("exec", "basic/busybox", []string{"sleep", "1000"}, nil)
podID, contID, err := crictl.StartPodAndContainer("basic/busybox", Sandbox("exec-sandbox"), contSpec)
if err != nil {
t.Fatalf("start failed: %v", err)
}
out, err := crictl.Exec(contID, "sh", "-c", "echo $HOME")
if err != nil {
t.Fatalf("failed retrieving container logs: %v, out: %s", err, out)
}
if got, want := strings.TrimSpace(string(out)), "/root"; got != want {
t.Fatalf("Home directory invalid. Got %q, Want : %q", got, want)
}
// Stop everything.
if err := crictl.StopPodAndContainer(podID, contID); err != nil {
t.Fatalf("stop failed: %v", err)
}
})
}
// containerdConfigTemplate is a .toml config for containerd. It contains a
// formatting verb so the runtime field can be set via fmt.Sprintf.
const containerdConfigTemplate = `
disabled_plugins = ["restart"]
[plugins.linux]
runtime = "%s"
runtime_root = "/tmp/test-containerd/runsc"
shim = "/usr/local/bin/gvisor-containerd-shim"
shim_debug = true
[plugins.cri.containerd.runtimes.runsc]
runtime_type = "io.containerd.runtime.v1.linux"
runtime_engine = "%s"
`
// setup sets up before a test. Specifically it:
// * Creates directories and a socket for containerd to utilize.
// * Runs containerd and waits for it to reach a "ready" state for testing.
// * Returns a cleanup function that should be called at the end of the test.
func setup(t *testing.T) (*criutil.Crictl, func(), error) {
// Create temporary containerd root and state directories, and a socket
// via which crictl and containerd communicate.
containerdRoot, err := ioutil.TempDir(testutil.TmpDir(), "containerd-root")
if err != nil {
t.Fatalf("failed to create containerd root: %v", err)
}
cu := cleanup.Make(func() { os.RemoveAll(containerdRoot) })
defer cu.Clean()
containerdState, err := ioutil.TempDir(testutil.TmpDir(), "containerd-state")
if err != nil {
t.Fatalf("failed to create containerd state: %v", err)
}
cu.Add(func() { os.RemoveAll(containerdState) })
sockAddr := filepath.Join(testutil.TmpDir(), "containerd-test.sock")
// We rewrite a configuration. This is based on the current docker
// configuration for the runtime under test.
runtime, err := dockerutil.RuntimePath()
if err != nil {
t.Fatalf("error discovering runtime path: %v", err)
}
config, configCleanup, err := testutil.WriteTmpFile("containerd-config", fmt.Sprintf(containerdConfigTemplate, runtime, runtime))
if err != nil {
t.Fatalf("failed to write containerd config")
}
cu.Add(configCleanup)
// Start containerd.
cmd := exec.Command(getContainerd(),
"--config", config,
"--log-level", "debug",
"--root", containerdRoot,
"--state", containerdState,
"--address", sockAddr)
startupR, startupW := io.Pipe()
defer startupR.Close()
defer startupW.Close()
stderr := &bytes.Buffer{}
stdout := &bytes.Buffer{}
cmd.Stderr = io.MultiWriter(startupW, stderr)
cmd.Stdout = io.MultiWriter(startupW, stdout)
cu.Add(func() {
// Log output in case of failure.
t.Logf("containerd stdout: %s", stdout.String())
t.Logf("containerd stderr: %s", stderr.String())
})
// Start the process.
if err := cmd.Start(); err != nil {
t.Fatalf("failed running containerd: %v", err)
}
// Wait for containerd to boot.
if err := testutil.WaitUntilRead(startupR, "Start streaming server", nil, 10*time.Second); err != nil {
t.Fatalf("failed to start containerd: %v", err)
}
// Kill must be the last cleanup (as it will be executed first).
cc := criutil.NewCrictl(t, sockAddr)
cu.Add(func() {
cc.CleanUp() // Remove tmp files, etc.
if err := testutil.KillCommand(cmd); err != nil {
log.Printf("error killing containerd: %v", err)
}
})
return cc, cu.Release(), nil
}
// httpGet GETs the contents of a file served from a pod on port 80.
func httpGet(crictl *criutil.Crictl, podID, filePath string) error {
// Get the IP of the httpd server.
ip, err := crictl.PodIP(podID)
if err != nil {
return fmt.Errorf("failed to get IP from pod %q: %v", podID, err)
}
// GET the page. We may be waiting for the server to start, so retry
// with a timeout.
var resp *http.Response
cb := func() error {
r, err := http.Get(fmt.Sprintf("http://%s", path.Join(ip, filePath)))
resp = r
return err
}
if err := testutil.Poll(cb, 20*time.Second); err != nil {
return err
}
defer resp.Body.Close()
if resp.StatusCode != 200 {
return fmt.Errorf("bad status returned: %d", resp.StatusCode)
}
return nil
}
func getContainerd() string {
// Use the local path if it exists, otherwise, use the system one.
if _, err := os.Stat("/usr/local/bin/containerd"); err == nil {
return "/usr/local/bin/containerd"
}
return "/usr/bin/containerd"
}
<file_sep>// Copyright 2018 The gVisor Authors.
//
// 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 dockerutil is a collection of utility functions.
package dockerutil
import (
"encoding/json"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"net"
"os"
"os/exec"
"path"
"regexp"
"strconv"
"strings"
"syscall"
"time"
"github.com/kr/pty"
"gvisor.dev/gvisor/pkg/test/testutil"
)
var (
// runtime is the runtime to use for tests. This will be applied to all
// containers. Note that the default here ("runsc") corresponds to the
// default used by the installations. This is important, because the
// default installer for vm_tests (in tools/installers:head, invoked
// via tools/vm:defs.bzl) will install with this name. So without
// changing anything, tests should have a runsc runtime available to
// them. Otherwise installers should update the existing runtime
// instead of installing a new one.
runtime = flag.String("runtime", "runsc", "specify which runtime to use")
// config is the default Docker daemon configuration path.
config = flag.String("config_path", "/etc/docker/daemon.json", "configuration file for reading paths")
)
// EnsureSupportedDockerVersion checks if correct docker is installed.
//
// This logs directly to stderr, as it is typically called from a Main wrapper.
func EnsureSupportedDockerVersion() {
cmd := exec.Command("docker", "version")
out, err := cmd.CombinedOutput()
if err != nil {
log.Fatalf("error running %q: %v", "docker version", err)
}
re := regexp.MustCompile(`Version:\s+(\d+)\.(\d+)\.\d.*`)
matches := re.FindStringSubmatch(string(out))
if len(matches) != 3 {
log.Fatalf("Invalid docker output: %s", out)
}
major, _ := strconv.Atoi(matches[1])
minor, _ := strconv.Atoi(matches[2])
if major < 17 || (major == 17 && minor < 9) {
log.Fatalf("Docker version 17.09.0 or greater is required, found: %02d.%02d", major, minor)
}
}
// RuntimePath returns the binary path for the current runtime.
func RuntimePath() (string, error) {
// Read the configuration data; the file must exist.
configBytes, err := ioutil.ReadFile(*config)
if err != nil {
return "", err
}
// Unmarshal the configuration.
c := make(map[string]interface{})
if err := json.Unmarshal(configBytes, &c); err != nil {
return "", err
}
// Decode the expected configuration.
r, ok := c["runtimes"]
if !ok {
return "", fmt.Errorf("no runtimes declared: %v", c)
}
rs, ok := r.(map[string]interface{})
if !ok {
// The runtimes are not a map.
return "", fmt.Errorf("unexpected format: %v", c)
}
r, ok = rs[*runtime]
if !ok {
// The expected runtime is not declared.
return "", fmt.Errorf("runtime %q not found: %v", *runtime, c)
}
rs, ok = r.(map[string]interface{})
if !ok {
// The runtime is not a map.
return "", fmt.Errorf("unexpected format: %v", c)
}
p, ok := rs["path"].(string)
if !ok {
// The runtime does not declare a path.
return "", fmt.Errorf("unexpected format: %v", c)
}
return p, nil
}
// Save exports a container image to the given Writer.
//
// Note that the writer should be actively consuming the output, otherwise it
// is not guaranteed that the Save will make any progress and the call may
// stall indefinitely.
//
// This is called by criutil in order to import imports.
func Save(logger testutil.Logger, image string, w io.Writer) error {
cmd := testutil.Command(logger, "docker", "save", testutil.ImageByName(image))
cmd.Stdout = w // Send directly to the writer.
return cmd.Run()
}
// MountMode describes if the mount should be ro or rw.
type MountMode int
const (
// ReadOnly is what the name says.
ReadOnly MountMode = iota
// ReadWrite is what the name says.
ReadWrite
)
// String returns the mount mode argument for this MountMode.
func (m MountMode) String() string {
switch m {
case ReadOnly:
return "ro"
case ReadWrite:
return "rw"
}
panic(fmt.Sprintf("invalid mode: %d", m))
}
// DockerNetwork contains the name of a docker network.
type DockerNetwork struct {
logger testutil.Logger
Name string
Subnet *net.IPNet
containers []*Docker
}
// NewDockerNetwork sets up the struct for a Docker network. Names of networks
// will be unique.
func NewDockerNetwork(logger testutil.Logger) *DockerNetwork {
return &DockerNetwork{
logger: logger,
Name: testutil.RandomID(logger.Name()),
}
}
// Create calls 'docker network create'.
func (n *DockerNetwork) Create(args ...string) error {
a := []string{"docker", "network", "create"}
if n.Subnet != nil {
a = append(a, fmt.Sprintf("--subnet=%s", n.Subnet))
}
a = append(a, args...)
a = append(a, n.Name)
return testutil.Command(n.logger, a...).Run()
}
// Connect calls 'docker network connect' with the arguments provided.
func (n *DockerNetwork) Connect(container *Docker, args ...string) error {
a := []string{"docker", "network", "connect"}
a = append(a, args...)
a = append(a, n.Name, container.Name)
if err := testutil.Command(n.logger, a...).Run(); err != nil {
return err
}
n.containers = append(n.containers, container)
return nil
}
// Cleanup cleans up the docker network and all the containers attached to it.
func (n *DockerNetwork) Cleanup() error {
for _, c := range n.containers {
// Don't propagate the error, it might be that the container
// was already cleaned up.
if err := c.Kill(); err != nil {
n.logger.Logf("unable to kill container during cleanup: %s", err)
}
}
if err := testutil.Command(n.logger, "docker", "network", "rm", n.Name).Run(); err != nil {
return err
}
return nil
}
// Docker contains the name and the runtime of a docker container.
type Docker struct {
logger testutil.Logger
Runtime string
Name string
copyErr error
cleanups []func()
}
// MakeDocker sets up the struct for a Docker container.
//
// Names of containers will be unique.
func MakeDocker(logger testutil.Logger) *Docker {
// Slashes are not allowed in container names.
name := testutil.RandomID(logger.Name())
name = strings.ReplaceAll(name, "/", "-")
return &Docker{
logger: logger,
Name: name,
Runtime: *runtime,
}
}
// CopyFiles copies in and mounts the given files. They are always ReadOnly.
func (d *Docker) CopyFiles(opts *RunOpts, targetDir string, sources ...string) {
dir, err := ioutil.TempDir("", d.Name)
if err != nil {
d.copyErr = fmt.Errorf("ioutil.TempDir failed: %v", err)
return
}
d.cleanups = append(d.cleanups, func() { os.RemoveAll(dir) })
if err := os.Chmod(dir, 0755); err != nil {
d.copyErr = fmt.Errorf("os.Chmod(%q, 0755) failed: %v", dir, err)
return
}
for _, name := range sources {
src, err := testutil.FindFile(name)
if err != nil {
d.copyErr = fmt.Errorf("testutil.FindFile(%q) failed: %v", name, err)
return
}
dst := path.Join(dir, path.Base(name))
if err := testutil.Copy(src, dst); err != nil {
d.copyErr = fmt.Errorf("testutil.Copy(%q, %q) failed: %v", src, dst, err)
return
}
d.logger.Logf("copy: %s -> %s", src, dst)
}
opts.Mounts = append(opts.Mounts, Mount{
Source: dir,
Target: targetDir,
Mode: ReadOnly,
})
}
// Mount describes a mount point inside the container.
type Mount struct {
// Source is the path outside the container.
Source string
// Target is the path inside the container.
Target string
// Mode tells whether the mount inside the container should be readonly.
Mode MountMode
}
// Link informs dockers that a given container needs to be made accessible from
// the container being configured.
type Link struct {
// Source is the container to connect to.
Source *Docker
// Target is the alias for the container.
Target string
}
// RunOpts are options for running a container.
type RunOpts struct {
// Image is the image relative to images/. This will be mangled
// appropriately, to ensure that only first-party images are used.
Image string
// Memory is the memory limit in kB.
Memory int
// Ports are the ports to be allocated.
Ports []int
// WorkDir sets the working directory.
WorkDir string
// ReadOnly sets the read-only flag.
ReadOnly bool
// Env are additional environment variables.
Env []string
// User is the user to use.
User string
// Privileged enables privileged mode.
Privileged bool
// CapAdd are the extra set of capabilities to add.
CapAdd []string
// CapDrop are the extra set of capabilities to drop.
CapDrop []string
// Pty indicates that a pty will be allocated. If this is non-nil, then
// this will run after start-up with the *exec.Command and Pty file
// passed in to the function.
Pty func(*exec.Cmd, *os.File)
// Foreground indicates that the container should be run in the
// foreground. If this is true, then the output will be available as a
// return value from the Run function.
Foreground bool
// Mounts is the list of directories/files to be mounted inside the container.
Mounts []Mount
// Links is the list of containers to be connected to the container.
Links []Link
// Extra are extra arguments that may be passed.
Extra []string
}
// args returns common arguments.
//
// Note that this does not define the complete behavior.
func (d *Docker) argsFor(r *RunOpts, command string, p []string) (rv []string) {
isExec := command == "exec"
isRun := command == "run"
if isRun || isExec {
rv = append(rv, "-i")
}
if r.Pty != nil {
rv = append(rv, "-t")
}
if r.User != "" {
rv = append(rv, fmt.Sprintf("--user=%s", r.User))
}
if r.Privileged {
rv = append(rv, "--privileged")
}
for _, c := range r.CapAdd {
rv = append(rv, fmt.Sprintf("--cap-add=%s", c))
}
for _, c := range r.CapDrop {
rv = append(rv, fmt.Sprintf("--cap-drop=%s", c))
}
for _, e := range r.Env {
rv = append(rv, fmt.Sprintf("--env=%s", e))
}
if r.WorkDir != "" {
rv = append(rv, fmt.Sprintf("--workdir=%s", r.WorkDir))
}
if !isExec {
if r.Memory != 0 {
rv = append(rv, fmt.Sprintf("--memory=%dk", r.Memory))
}
for _, p := range r.Ports {
rv = append(rv, fmt.Sprintf("--publish=%d", p))
}
if r.ReadOnly {
rv = append(rv, fmt.Sprintf("--read-only"))
}
if len(p) > 0 {
rv = append(rv, "--entrypoint=")
}
}
// Always attach the test environment & Extra.
rv = append(rv, fmt.Sprintf("--env=RUNSC_TEST_NAME=%s", d.Name))
rv = append(rv, r.Extra...)
// Attach necessary bits.
if isExec {
rv = append(rv, d.Name)
} else {
for _, m := range r.Mounts {
rv = append(rv, fmt.Sprintf("-v=%s:%s:%v", m.Source, m.Target, m.Mode))
}
for _, l := range r.Links {
rv = append(rv, fmt.Sprintf("--link=%s:%s", l.Source.Name, l.Target))
}
if len(d.Runtime) > 0 {
rv = append(rv, fmt.Sprintf("--runtime=%s", d.Runtime))
}
rv = append(rv, fmt.Sprintf("--name=%s", d.Name))
rv = append(rv, testutil.ImageByName(r.Image))
}
// Attach other arguments.
rv = append(rv, p...)
return rv
}
// run runs a complete command.
func (d *Docker) run(r RunOpts, command string, p ...string) (string, error) {
if d.copyErr != nil {
return "", d.copyErr
}
basicArgs := []string{"docker"}
if command == "spawn" {
command = "run"
basicArgs = append(basicArgs, command)
basicArgs = append(basicArgs, "-d")
} else {
basicArgs = append(basicArgs, command)
}
customArgs := d.argsFor(&r, command, p)
cmd := testutil.Command(d.logger, append(basicArgs, customArgs...)...)
if r.Pty != nil {
// If allocating a terminal, then we just ignore the output
// from the command.
ptmx, err := pty.Start(cmd.Cmd)
if err != nil {
return "", err
}
defer cmd.Wait() // Best effort.
r.Pty(cmd.Cmd, ptmx)
} else {
// Can't support PTY or streaming.
out, err := cmd.CombinedOutput()
return string(out), err
}
return "", nil
}
// Create calls 'docker create' with the arguments provided.
func (d *Docker) Create(r RunOpts, args ...string) error {
out, err := d.run(r, "create", args...)
if strings.Contains(out, "Unable to find image") {
return fmt.Errorf("unable to find image, did you remember to `make load-%s`: %w", r.Image, err)
}
return err
}
// Start calls 'docker start'.
func (d *Docker) Start() error {
return testutil.Command(d.logger, "docker", "start", d.Name).Run()
}
// Stop calls 'docker stop'.
func (d *Docker) Stop() error {
return testutil.Command(d.logger, "docker", "stop", d.Name).Run()
}
// Run calls 'docker run' with the arguments provided.
func (d *Docker) Run(r RunOpts, args ...string) (string, error) {
return d.run(r, "run", args...)
}
// Spawn starts the container and detaches.
func (d *Docker) Spawn(r RunOpts, args ...string) error {
_, err := d.run(r, "spawn", args...)
return err
}
// Logs calls 'docker logs'.
func (d *Docker) Logs() (string, error) {
// Don't capture the output; since it will swamp the logs.
out, err := exec.Command("docker", "logs", d.Name).CombinedOutput()
return string(out), err
}
// Exec calls 'docker exec' with the arguments provided.
func (d *Docker) Exec(r RunOpts, args ...string) (string, error) {
return d.run(r, "exec", args...)
}
// Pause calls 'docker pause'.
func (d *Docker) Pause() error {
return testutil.Command(d.logger, "docker", "pause", d.Name).Run()
}
// Unpause calls 'docker pause'.
func (d *Docker) Unpause() error {
return testutil.Command(d.logger, "docker", "unpause", d.Name).Run()
}
// Checkpoint calls 'docker checkpoint'.
func (d *Docker) Checkpoint(name string) error {
return testutil.Command(d.logger, "docker", "checkpoint", "create", d.Name, name).Run()
}
// Restore calls 'docker start --checkname [name]'.
func (d *Docker) Restore(name string) error {
return testutil.Command(d.logger, "docker", "start", fmt.Sprintf("--checkpoint=%s", name), d.Name).Run()
}
// Kill calls 'docker kill'.
func (d *Docker) Kill() error {
// Skip logging this command, it will likely be an error.
out, err := exec.Command("docker", "kill", d.Name).CombinedOutput()
if err != nil && !strings.Contains(string(out), "is not running") {
return err
}
return nil
}
// Remove calls 'docker rm'.
func (d *Docker) Remove() error {
return testutil.Command(d.logger, "docker", "rm", d.Name).Run()
}
// CleanUp kills and deletes the container (best effort).
func (d *Docker) CleanUp() {
// Kill the container.
if err := d.Kill(); err != nil {
// Just log; can't do anything here.
d.logger.Logf("error killing container %q: %v", d.Name, err)
}
// Remove the image.
if err := d.Remove(); err != nil {
d.logger.Logf("error removing container %q: %v", d.Name, err)
}
// Execute all cleanups.
for _, c := range d.cleanups {
c()
}
d.cleanups = nil
}
// FindPort returns the host port that is mapped to 'sandboxPort'. This calls
// docker to allocate a free port in the host and prevent conflicts.
func (d *Docker) FindPort(sandboxPort int) (int, error) {
format := fmt.Sprintf(`{{ (index (index .NetworkSettings.Ports "%d/tcp") 0).HostPort }}`, sandboxPort)
out, err := testutil.Command(d.logger, "docker", "inspect", "-f", format, d.Name).CombinedOutput()
if err != nil {
return -1, fmt.Errorf("error retrieving port: %v", err)
}
port, err := strconv.Atoi(strings.TrimSuffix(string(out), "\n"))
if err != nil {
return -1, fmt.Errorf("error parsing port %q: %v", out, err)
}
return port, nil
}
// FindIP returns the IP address of the container.
func (d *Docker) FindIP() (net.IP, error) {
const format = `{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}`
out, err := testutil.Command(d.logger, "docker", "inspect", "-f", format, d.Name).CombinedOutput()
if err != nil {
return net.IP{}, fmt.Errorf("error retrieving IP: %v", err)
}
ip := net.ParseIP(strings.TrimSpace(string(out)))
if ip == nil {
return net.IP{}, fmt.Errorf("invalid IP: %q", string(out))
}
return ip, nil
}
// A NetworkInterface is container's network interface information.
type NetworkInterface struct {
IPv4 net.IP
MAC net.HardwareAddr
}
// ListNetworks returns the network interfaces of the container, keyed by
// Docker network name.
func (d *Docker) ListNetworks() (map[string]NetworkInterface, error) {
const format = `{{json .NetworkSettings.Networks}}`
out, err := testutil.Command(d.logger, "docker", "inspect", "-f", format, d.Name).CombinedOutput()
if err != nil {
return nil, fmt.Errorf("error network interfaces: %q: %w", string(out), err)
}
networks := map[string]map[string]string{}
if err := json.Unmarshal(out, &networks); err != nil {
return nil, fmt.Errorf("error decoding network interfaces: %w", err)
}
interfaces := map[string]NetworkInterface{}
for name, iface := range networks {
var netface NetworkInterface
rawIP := strings.TrimSpace(iface["IPAddress"])
if rawIP != "" {
ip := net.ParseIP(rawIP)
if ip == nil {
return nil, fmt.Errorf("invalid IP: %q", rawIP)
}
// Docker's IPAddress field is IPv4. The IPv6 address
// is stored in the GlobalIPv6Address field.
netface.IPv4 = ip
}
rawMAC := strings.TrimSpace(iface["MacAddress"])
if rawMAC != "" {
mac, err := net.ParseMAC(rawMAC)
if err != nil {
return nil, fmt.Errorf("invalid MAC: %q: %w", rawMAC, err)
}
netface.MAC = mac
}
interfaces[name] = netface
}
return interfaces, nil
}
// SandboxPid returns the PID to the sandbox process.
func (d *Docker) SandboxPid() (int, error) {
out, err := testutil.Command(d.logger, "docker", "inspect", "-f={{.State.Pid}}", d.Name).CombinedOutput()
if err != nil {
return -1, fmt.Errorf("error retrieving pid: %v", err)
}
pid, err := strconv.Atoi(strings.TrimSuffix(string(out), "\n"))
if err != nil {
return -1, fmt.Errorf("error parsing pid %q: %v", out, err)
}
return pid, nil
}
// ID returns the container ID.
func (d *Docker) ID() (string, error) {
out, err := testutil.Command(d.logger, "docker", "inspect", "-f={{.Id}}", d.Name).CombinedOutput()
if err != nil {
return "", fmt.Errorf("error retrieving ID: %v", err)
}
return strings.TrimSpace(string(out)), nil
}
// Wait waits for container to exit, up to the given timeout. Returns error if
// wait fails or timeout is hit. Returns the application return code otherwise.
// Note that the application may have failed even if err == nil, always check
// the exit code.
func (d *Docker) Wait(timeout time.Duration) (syscall.WaitStatus, error) {
timeoutChan := time.After(timeout)
waitChan := make(chan (syscall.WaitStatus))
errChan := make(chan (error))
go func() {
out, err := testutil.Command(d.logger, "docker", "wait", d.Name).CombinedOutput()
if err != nil {
errChan <- fmt.Errorf("error waiting for container %q: %v", d.Name, err)
}
exit, err := strconv.Atoi(strings.TrimSuffix(string(out), "\n"))
if err != nil {
errChan <- fmt.Errorf("error parsing exit code %q: %v", out, err)
}
waitChan <- syscall.WaitStatus(uint32(exit))
}()
select {
case ws := <-waitChan:
return ws, nil
case err := <-errChan:
return syscall.WaitStatus(1), err
case <-timeoutChan:
return syscall.WaitStatus(1), fmt.Errorf("timeout waiting for container %q", d.Name)
}
}
// WaitForOutput calls 'docker logs' to retrieve containers output and searches
// for the given pattern.
func (d *Docker) WaitForOutput(pattern string, timeout time.Duration) (string, error) {
matches, err := d.WaitForOutputSubmatch(pattern, timeout)
if err != nil {
return "", err
}
if len(matches) == 0 {
return "", nil
}
return matches[0], nil
}
// WaitForOutputSubmatch calls 'docker logs' to retrieve containers output and
// searches for the given pattern. It returns any regexp submatches as well.
func (d *Docker) WaitForOutputSubmatch(pattern string, timeout time.Duration) ([]string, error) {
re := regexp.MustCompile(pattern)
var (
lastOut string
stopped bool
)
for exp := time.Now().Add(timeout); time.Now().Before(exp); {
out, err := d.Logs()
if err != nil {
return nil, err
}
if out != lastOut {
if lastOut == "" {
d.logger.Logf("output (start): %s", out)
} else if strings.HasPrefix(out, lastOut) {
d.logger.Logf("output (contn): %s", out[len(lastOut):])
} else {
d.logger.Logf("output (trunc): %s", out)
}
lastOut = out // Save for future.
if matches := re.FindStringSubmatch(lastOut); matches != nil {
return matches, nil // Success!
}
} else if stopped {
// The sandbox stopped and we looked at the
// logs at least once since determining that.
return nil, fmt.Errorf("no longer running: %v", err)
} else if pid, err := d.SandboxPid(); pid == 0 || err != nil {
// The sandbox may have stopped, but it's
// possible that it has emitted the terminal
// line between the last call to Logs and here.
stopped = true
}
time.Sleep(100 * time.Millisecond)
}
return nil, fmt.Errorf("timeout waiting for output %q: %s", re.String(), lastOut)
}
| fdbbae656066f108a85c165934bf509b7f4271ca | [
"Go"
] | 3 | Go | wietsevenema/gvisor | e227450dc1ec1ef07b9a6a5983ce2f2e0dec22b1 | b845e140aebecb45896c630a0d9d1125e18867be |
refs/heads/main | <repo_name>ChrisBlueStone/TFBinPacker<file_sep>/README.md
# Tiny Fast 2D Bin Packer
This software is a simple yet fast and memory-efficient 2D bin packing algorithm, useful for dynamic font atlas generation and only 200 lines of code.
![Tiny Fast 2D Bin Packer demo](./images/preview1.gif)
## Usage
Here is an example of basic usage without any application.
```c++
using BinPacker;
Bin bin;
bin.ExtendDimensions({128, 128});
Area itemSize = {40, 30};
Rect result = bin.TryPackArea(itemSize);
if (result.IsValid())
{
bool rotated = itemSize.width != itemSize.height && result.right - result.left + 1 == itemSize.height;
cout << "Item has been packed at (" << result.left << ',' << result.top << ")"
" with a width of " << (result.right - result.left + 1) << " and a height of " << (result.bottom - result.top + 1)
<< rotated ? " and has been rotated 90-degrees.\n" : ".\n";
}
else
{
cout << "Bin packing failed. Bin is too small.\n";
}
```
Here is an example of how a font atlas may be generated.
```c++
class FontAtlas
{
Bin bin;
Texture texture;
Font font;
map<wchar_t, Glyph> glyphs;
public:
Glyph GetGlyph(wchar_t c)
{
auto i = glyph.find(c);
// If the glyph isn't already loaded, load and pack it to the texture.
if (i == glyph.end())
{
auto fontGlyph = font.LoadChar(c);
Rect packed = bin.TryPackArea({fontGlyph.width, fontGlyph.height});
while (!packed.IsValid())
{
Area dimensions = bin.GetDimensions();
dimensions = { max(128, dimensions.width), max(128, dimensions.height) };
bin.ExtendDimensions(dimensions);
texture.Resize(dimensions.width, dimensions.height);
packed = bin.TryPackArea({fontGlyph.width, fontGlyph.height});
}
unsigned int width = packed.right - packed.left + 1;
unsigned int height = packed.bottom - packed.top + 1;
bool rotated = width != height && width == fontGlyph.height;
texture.BufferSubImage(packed.left, packed.top, width, height, rotated ? rotate(fontGlyph.bitmap) : fontGlyph.bitmap);
Glyph newGlyph = { fontGlyph.advanceX, fontGlyph.advanceY, packed.left, packed.top, packed.right, packed.bottom, rotated };
glyphs.emplace(c, newGlyph);
return newGlyph;
}
else
{
return *i;
}
}
};
```
## How the algorithm works
The algorithm is self-devised and involves recording the empty space within the bin as a collection of rectangles.
Items that are packed are not recorded which allows for tens of thousands of items to be packed with very little memory being consumed.
When an item is attempted to be packed, every empty region large enough to fit the item will evaluate it's position in each corner
of the empty region and also in a 90-degree rotated orientation. The evaluated position and orientation is scored based
on how many empty regions will be clipped by the item and how many new empty regions will result if any.
This score is scaled by the area of the resulting empty space thereby minimizing the amount of space left behind and effectively
maximizing the amount of space filled at the same time.
The prospective position with the lowest score will be the position into which the item will be packed.
When the item is packed, any intersecting empty regions will be removed and replaced with new empty regions surrounding the packed item.
Resulting empty regions after an item is packed will be merged with existing empty regions whenever possible to reduce memory usage.
![Demonstration of packing items into a bin with empty regions outlined](./images/preview2.gif)
## Performance
Performance was measured based on how fast items could be packed into an dynamically expanding bin with items varying in size from 1x1 up to 4x4, 8x8, 16x16, 32x32, and 64x64.
The below results were measured single-threaded on Windows 10 with an AMD Ryzen 7 3700X 8-Core processor.
### Speed
When packing 10,000 items randomly sized from 1x1 to 64x64 in a dynamically expanding bin, the average packing time ranges from 0ms to about 3.5ms as given by the following graph.
![Average packing time of randomly sized items](./images/AveragePackTime64.png)
The average time is linear based on the number inserted due to the number of empty regions that results after so many randomly sized items are packed.
The actual deviation can be seen in the below graph.
![Pack time by empty regions](./images/PackTimeByEmptyRegions64.png)
This deviation is due to two factors, the number of empty regions and the size of the item being packed.
Larger items are easier to pack because there are fewer empty regions that can accomodate the larger item, resulting in fewer overall comparisons.
This also explains why smaller items have a greater deviation of packing times, because when there are few empty regions the items are packed relatively quickly,
but as the number of empty regions increase, the number of potential placement candidates increase, thus increasing the number of comparisons required for placing a smaller item.
![Packing times by item size](./images/PackTimeByItemSize64.png)
### Memory Usage
The amount of empty space varies depending on the size of the items being packed.
Smaller items have less permutations and can therefore be packed more tightly within a bin, while items with greater variation in size tend to leave more gaps.
Since this algorithm relies on storing only empty spaces, then the memory usage increases when more empty regions appear.
Each empty region stores 16 bytes of memory, 4 bytes each for the left, top, right, and bottom positions of the empty region.
The following graph demonstrates the memory usage of inserting randomly sized items varying from 1x1 to 4x4, 8x8, 16x16, 32x32, and 64x64,
and by association the amount of empty regions per number of packed items per size variation.
For bins that only store up to 1000 items, the memory usage will be up to 10KB for items ranging up to 64x64 in size, or under 1KB for items ranging up to 4x4.
After 10,000 items have been inserted, memory usage ranges up to 75KB for items ranging up to 64x64 in size or under 5KB for items ranging up to 4x4.
![Memory usage by item size variation and number of items](./images/MemoryUsageByItemSizes.png)
### Efficiency
The efficiency of the packing can be measured by the percentage of the bin being full.
When randomly sized items are inserted into the bin the efficiency will be dependent on the amount of variation in size.
As with the previous measurements, smaller items with less variation are able to be packed tighter and more efficiently occupy empty space
while larger items with more variation tend to leave more gaps.
The below graph shows the average amount of empty space as more items are inserted (up to 10,000) with items of varying sizes.
![Average packing efficiency](./images/AverageFillPercent.png)
This graph shows only the average packing efficiency which is somewhere between when the bin size is increased, leaving the most amount of empty space available,
and when the bin is full enough to not be able to pack a new item without first resizing.
The following graph demonstrates for items sized randomly between 1x1 and 64x64 the max fill percentage based on the bin size.
![Max fill percentage by bin size](./images/MaxFillPercentage64.png)
<file_sep>/src/binpacker.h
// Custom bin packing algorithm
// by <NAME>
// I sat and thought "how would I pack boxes" and came up with this algorithm. It involves
// splitting regions into as few areas as possible. This is done by trying to fit items
// into existing corners of empty space. The algorithm checks every possible corner in
// which the item can fit and scores the fit based on how many rectangular empty spaces
// will result from splitting each empty space that it intersects. In the case that
// multiple candidates exist, the candidate that minimizes the amount of space left behind
// (effectively maximizing the amount of space filled at the same time) is chosen.
#include <vector>
namespace BinPacker
{
struct Rect {
unsigned int left, top, right, bottom;
/// \brief Returns if the Rect object is valid.
/// I.e. \a right is greater than or equal to \a left and \a bottom is greater than or equal to \a top.
bool IsValid() const;
};
struct Area {
unsigned int width, height;
};
/// \brief Class for recording available space.
class Bin {
public:
/// \brief Attempts to location an optimal area in the bin for packing \a area.
/// \return If successful, returns a \see Rect object of the location of the packed area, otherwise returns an invalid \see Rect object.
Rect TryPackArea(Area area);
/// \brief Increases the dimensions of the bin.
void ExtendDimensions(Area extension);
/// \brief Returns the dimensions of the bin, empty or not.
Area GetDimensions() const;
/// \brief Returns a read-only vector of \see Rect objects representative of available empty space within the bin.
const std::vector<Rect>& GetEmptyRegions() const;
private:
Area dimensions = {0, 0};
std::vector<Rect> emptyRegions;
};
}
<file_sep>/src/binpacker.cpp
#include "binpacker.h"
#include <algorithm>
#include <map>
#include <numeric>
using namespace BinPacker;
bool Rect::IsValid() const {
return left <= right && top <= bottom;
}
Area Bin::GetDimensions() const {
return dimensions;
}
const std::vector<Rect>& Bin::GetEmptyRegions() const {
return emptyRegions;
}
// Scores the result of clipping region by clip based on the number
// of spaces that would result and the amount of space remaining
int GetClipScore(Rect region, Rect clip) {
using namespace std;
// if out of bounds (no areas clipped)
if (clip.left > region.right || clip.right < region.left
|| clip.top > region.bottom || clip.bottom < region.top)
return 0;
else
{
const int score = 2
+ (clip.left > region.left && clip.left <= region.right)
+ (clip.top > region.top && clip.top <= region.bottom)
+ (clip.right > region.right && clip.right <= region.left)
+ (clip.bottom > region.bottom && clip.bottom <= region.top)
- (clip.bottom == region.bottom && clip.top == region.top)
- (clip.left == region.left && clip.right == region.right);
const Rect intersection = {
max(region.left, clip.left),
max(region.top, clip.top),
min(region.right, clip.right),
min(region.bottom, clip.bottom)
};
unsigned int intersectionArea = (intersection.right - intersection.left + 1) * (intersection.bottom - intersection.top + 1);
unsigned int boundsArea = (region.right - region.left + 1) * (region.bottom - region.top + 1);
// Score is scaled by the amount of empty area that remains. (A perfect 0 if none.)
return score*(boundsArea-intersectionArea);
}
}
Rect Bin::TryPackArea(Area area) {
using namespace std;
if (area.width > 0 && area.height > 0
&& area.width <= dimensions.width && area.height <= dimensions.height) {
// Try to fit the new area into every corner of every empty region
// (including 90-degree rotation) and compare the placement
// against every empty region to see which position and orientation
// results in the lowest clip score
int minScore = numeric_limits<int>::max();
Rect bestRect({1, 1, 0, 0});
for (const Area & area : {area, {area.height, area.width}}) { // For each orientation
for (const Rect & r : emptyRegions) {
if (r.right - r.left >= area.width - 1 && r.bottom - r.top >= area.height - 1) { // skip regions in which the area cannot fit
// Test fitting in every corner
int score;
// NW
Rect clip = { r.left, r.top, r.left + area.width - 1, r.top + area.height - 1 };
score = accumulate(emptyRegions.cbegin(), emptyRegions.cend(), 0, [&clip](const int & score, const Rect & r){ return score + GetClipScore(r, clip); });
if (score < minScore) { minScore = score; bestRect = clip; if (score==0) break; }
// NE
clip = { r.right - area.width + 1, r.top, r.right, r.top + area.height - 1 };
score = accumulate(emptyRegions.cbegin(), emptyRegions.cend(), 0, [&clip](const int & score, const Rect & r){ return score + GetClipScore(r, clip); });
if (score < minScore) { minScore = score; bestRect = clip; if (score==0) break; }
// SW
clip = { r.left, r.bottom - area.height + 1, r.left + area.width - 1, r.bottom };
score = accumulate(emptyRegions.cbegin(), emptyRegions.cend(), 0, [&clip](const int & score, const Rect & r){ return score + GetClipScore(r, clip); });
if (score < minScore) { minScore = score; bestRect = clip; if (score==0) break; }
// SE
clip = { r.right - area.width + 1, r.bottom - area.height + 1, r.right, r.bottom };
score = accumulate(emptyRegions.cbegin(), emptyRegions.cend(), 0, [&clip](const int & score, const Rect & r){ return score + GetClipScore(r, clip); });
if (score < minScore) { minScore = score; bestRect = clip; if (score==0) break; }
}
}
if (minScore == 0) break;
}
if (bestRect.IsValid()) {
const Rect & clip = bestRect;
// Now remove regions that are clipped and create new empty regions of what remains.
vector<Rect> emptyRegionsToInsert;
for (auto i = emptyRegions.begin(); i != emptyRegions.end();) {
if (clip.left <= i->right && clip.top <= i->bottom && clip.right >= i->left && clip.bottom >= i->top) {
if (clip.left > i->left && clip.left <= i->right)
emptyRegionsToInsert.emplace_back(Rect{ i->left, i->top, clip.left - 1, i->bottom });
if (clip.top > i->top && clip.top <= i->bottom)
emptyRegionsToInsert.emplace_back(Rect{ i->left, i->top, i->right, clip.top - 1 });
if (clip.right < i->right && clip.right >= i->left)
emptyRegionsToInsert.emplace_back(Rect{ clip.right + 1, i->top, i->right, i->bottom });
if (clip.bottom < i->bottom && clip.bottom >= i->top)
emptyRegionsToInsert.emplace_back(Rect{ i->left, clip.bottom + 1, i->right, i->bottom });
i = emptyRegions.erase(i);
} else {
i++;
}
}
// Erase clipped regions and insert new empty regions
for (auto newRegion : emptyRegionsToInsert) {
// If the new region has the same width, left position, and intersects
// an existing region, or likewise with height, then merge them instead.
auto i = find_if(emptyRegions.cbegin(), emptyRegions.cend(), [&newRegion](const Rect & r){
return (newRegion.left == r.left && newRegion.right == r.right && newRegion.top <= r.bottom && newRegion.bottom >= r.top)
|| (newRegion.top == r.top && newRegion.bottom == r.bottom && newRegion.left <= r.right && newRegion.right >= r.left);
});
if (i != emptyRegions.cend()) {
newRegion = Rect{
min(i->left, newRegion.left),
min(i->top, newRegion.top),
max(i->right, newRegion.right),
max(i->bottom, newRegion.bottom)
};
emptyRegions.erase(i);
}
// Insert the new region according to its distance from the origin. (Using std::set instead of std::vector is slower. Ordering by size is less efficient.)
emptyRegions.emplace(upper_bound(emptyRegions.cbegin(), emptyRegions.cend(), newRegion, [](const Rect& a, const Rect& b){ return a.left*a.top < b.left*b.top; }), newRegion);
}
return clip;
}
}
return Rect{1, 1, 0, 0};
}
void Bin::ExtendDimensions(Area extension)
{
unsigned int rightEdge = dimensions.width > 0 ? dimensions.width - 1 : 0;
const unsigned int bottomEdge = dimensions.height > 0 ? dimensions.height - 1 : 0;
// Extend empty regions along edges, and create a new empty region if one doesn't exist that doesn't span the whole axis
if (extension.width > 0 && dimensions.height > 0) {
// If one empty region spans the entire height, just expand that one to the right.
auto i = find_if(emptyRegions.begin(), emptyRegions.end(), [rightEdge, bottomEdge](const Rect & r){ return r.right == rightEdge && r.bottom - r.top == bottomEdge; });
if (i != emptyRegions.end()) {
i->right += extension.width;
} else {
// Otherwise, expand all regions along the right edge and create a new empty region that spans the new area.
for (auto && r : emptyRegions) {
if (r.right == rightEdge)
r.right += extension.width;
}
emptyRegions.emplace_back(Rect{ dimensions.width, 0, dimensions.width + extension.width - 1, bottomEdge });
}
}
dimensions.width += extension.width;
rightEdge += extension.width;
if (extension.height > 0 && dimensions.width > 0) {
auto i = find_if(emptyRegions.begin(), emptyRegions.end(), [rightEdge, bottomEdge](const Rect & r){ return r.bottom == bottomEdge && r.right - r.left == rightEdge; });
if (i != emptyRegions.end()) {
i->bottom += extension.height;
} else {
for (auto && r : emptyRegions) {
if (r.bottom == bottomEdge)
r.bottom += extension.height;
}
emptyRegions.emplace_back(Rect{ 0, dimensions.height, rightEdge, dimensions.height + extension.height - 1 });
}
}
dimensions.height += extension.height;
}
| 08080f464f657fa2756c5e708a587b85fe04cb2d | [
"Markdown",
"C++"
] | 3 | Markdown | ChrisBlueStone/TFBinPacker | b9657c108a6de6134995cd536e4aaa4fab4b0dcd | 08208e22319097f054beffcd2f8120cb19a76cf5 |
refs/heads/master | <repo_name>acostajo/sgh_front<file_sep>/src/Alert.js
import PropTypes from "prop-types";
import React from "react";
import SweetAlert from "sweetalert2";
class Alert extends React.Component {
static propTypes = {
allowEnterKey: PropTypes.bool,
allowEscapeKey: PropTypes.bool,
allowOutsideClick: PropTypes.bool,
animation: PropTypes.bool,
backdrop: PropTypes.bool,
background: PropTypes.string,
buttonsStyling: PropTypes.bool,
cancelButtonClass: PropTypes.string,
cancelButtonColor: PropTypes.string,
cancelButtonText: PropTypes.string,
confirmButtonClass: PropTypes.string,
confirmButtonColor: PropTypes.string,
confirmButtonText: PropTypes.string,
customClass: PropTypes.string,
focusCancel: PropTypes.bool,
focusConfirm: PropTypes.bool,
footer: PropTypes.string,
heightAuto: PropTypes.bool,
html: PropTypes.string,
input: PropTypes.oneOf([
"checkbox",
"email",
"file",
"number",
"password",
"radio",
"range",
"select",
"tel",
"text",
"textarea",
"url"
]),
inputAttributes: PropTypes.object,
inputAutoTrim: PropTypes.bool,
inputClass: PropTypes.string,
inputOptions: PropTypes.object,
inputPlaceholder: PropTypes.string,
inputValidator: PropTypes.func,
inputValue: PropTypes.string,
onBeforeOpen: PropTypes.func,
onCancel: PropTypes.func,
onClose: PropTypes.func,
onConfirm: PropTypes.func,
onConfirmOrDismiss: PropTypes.func,
onDismiss: PropTypes.func,
onEscape: PropTypes.func,
onOpen: PropTypes.func,
onOutsideClick: PropTypes.func,
padding: PropTypes.string,
preConfirm: PropTypes.func,
position: PropTypes.oneOf([
"bottom",
"bottom-end",
"bottom-start",
"center",
"center-end",
"center-start",
"top",
"top-end",
"top-start"
]),
reverseButtons: PropTypes.bool,
show: PropTypes.bool,
showCancelButton: PropTypes.bool,
showCloseButton: PropTypes.bool,
showConfirmButton: PropTypes.bool,
stopKeydownPropagation: PropTypes.bool,
showLoaderOnConfirm: PropTypes.bool,
text: PropTypes.string,
title: PropTypes.string,
type: PropTypes.oneOf(["info", "error", "question", "success", "warning"]),
width: PropTypes.string
};
static defaultProps = {
allowEnterKey: true,
allowEscapeKey: true,
allowOutsideClick: true,
animation: true,
backdrop: true,
background: null,
buttonsStyling: true,
cancelButtonClass: null,
cancelButtonColor: "#999999",
cancelButtonText: "Cancelar",
confirmButtonClass: null,
confirmButtonColor: "#5B6ABF",
confirmButtonText: "OK",
customClass: null,
focusCancel: false,
focusConfirm: true,
footer: null,
heightAuto: true,
html: null,
input: null,
inputAttributes: {},
inputAutoTrim: true,
inputClass: null,
inputOptions: {},
inputPlaceholder: "",
inputValidator: null,
inputValue: "",
onBeforeOpen: null,
onCancel: null,
onClose: null,
onConfirm: null,
onConfirmOrDismiss: null,
onDismiss: null,
onEscape: null,
onOpen: null,
onOutsideClick: null,
padding: null,
position: "center",
preConfirm: null,
reverseButtons: false,
show: false,
showCancelButton: false,
showCloseButton: false,
showConfirmButton: true,
showLoaderOnConfirm: false,
stopKeydownPropagation: true,
text: null,
title: null,
type: null,
width: null
};
componentDidMount() {
this.createAlert();
}
componentDidUpdate(prevProps, prevState, snapshot) {
this.createAlert();
}
createAlert() {
if (!this.props.show) {
return;
}
let props = JSON.parse(JSON.stringify(this.props));
delete props.onCancel;
delete props.onConfirm;
delete props.onConfirmOrDismiss;
delete props.onDismiss;
delete props.onEscape;
delete props.onOutsideClick;
delete props.show;
if (this.props.onOpen) {
props.onOpen = this.props.onOpen;
}
if (this.props.onBeforeOpen) {
this.props.onBeforeOpen();
}
SweetAlert({ ...props }).then(result => {
if (result.hasOwnProperty("dismiss")) {
const dismissalType = result["dismiss"];
if (this.props.onCancel && dismissalType === "cancel") {
this.props.onCancel();
}
if (this.props.onClose && dismissalType === "close") {
this.props.onClose();
}
if (this.props.onEscape && dismissalType === "esc") {
this.props.onEscape();
}
if (this.props.onOutsideClick && dismissalType === "overlay") {
this.props.onOutsideClick();
}
if (this.props.onDismiss) {
this.props.onDismiss(dismissalType);
}
}
if (result.hasOwnProperty("value") && this.props.onConfirm) {
this.props.onConfirm(result);
}
if (this.props.onConfirmOrDismiss) {
this.props.onConfirmOrDismiss(result);
}
});
}
render() {
return null;
}
}
export default Alert;
<file_sep>/src/components/navbar.jsx
import React, { Component } from "react";
import { Link } from "react-router-dom";
import logo from "./logo.png";
import { Dropdown, Nav, Navbar, Icon, Header } from "rsuite";
import "rsuite/dist/styles/rsuite.min.css";
import {
Route,
Switch,
BrowserRouter as Router,
withRouter,
NavLink
} from "react-router-dom";
class NavBarMenu extends Component {
constructor(props) {
super(props);
this.toggle = this.toggle.bind(this);
this.state = {
isOpen: false,
activeStyleConsulta: {
textDecoration: "none",
color: "#3c763d",
"&:hover": {
textDecoration: "none",
color: "#3c763d",
backgroundcolor: "#FFFF",
backgroundColor: "#FFFF"
}
}
};
}
toggle() {
this.setState({
isOpen: !this.state.isOpen
});
}
render() {
const NavLi = props => <Nav.Item componentClass={NavLink} {...props} />;
return (
<div>
<Header>
<Navbar
appearance="inverse"
style={{
top: 0,
position: "fixed",
zIndex: 3,
width: "100%",
backgroundColor: "#133E7C",
"&:hover": {
textDecoration: "none"
}
}}
>
<Navbar.Body>
<Nav>
<img
src={logo}
alt="..."
style={{
width: "24%",
height: "35%"
}}
/>
<NavLi
icon={<Icon icon="home" />}
to="/menu/"
style={{ color: "white", textDecoration: "none" }}
activeStyle={this.state.activeStyleConsulta}
>
Inicio
</NavLi>
</Nav>
<Nav pullRight>
<Nav.Item icon={<Icon icon="cog" />}>Configuracion</Nav.Item>
<Dropdown title="Usuario">
<Dropdown.Item>Perfil</Dropdown.Item>
<Dropdown.Item>Cerrar Sesión</Dropdown.Item>
</Dropdown>
</Nav>
</Navbar.Body>
</Navbar>
</Header>
</div>
);
}
}
export default NavBarMenu;
<file_sep>/src/components/ficha/menuficha.jsx
import React, { Component } from "react";
// import Home from "./components/home";
// import { ,Route, Switch } from "react-router-dom";
// import Ficha from "./components/ficha/fichaForm";
// import Consulta from "./components/consulta/consultaForm";
// import BuscarFicha from "./components/ficha/buscarFicha";
import FichaView from "../ficha/fichaView";
// import FichaEdit from "./components/ficha/fichaEdit";
// import Panolab from "./components/panolab/panolabForm";
import { Nav, Icon } from "rsuite";
import { Card, CardBody, Row, Col, ListGroup, ListGroupItem } from "reactstrap";
import classnames from "classnames";
import {
Route,
Switch,
BrowserRouter as Router,
withRouter,
NavLink
} from "react-router-dom";
import NavBarMenu from "../navbar"; // le falto .. sep
//import NavBarMenu from "./../components/navbar";
import { FlexboxGrid } from "rsuite";
import axios from "axios";
import BuscarPanolab from "./../panolab/buscarPanolab";
import BuscarConsulta from "../consulta/buscarConsulta";
import BuscarOrdenEstudio from "./../ordenestudio/buscarOrdenEstudio";
import "bootstrap/dist/css/bootstrap.min.css";
import blank_pic from "./blank_pic.png";
import Consulta from "../consulta/consultaForm";
import ConsultaView from "../consulta/consultaView";
import Panolab from "../panolab/panolabForm";
import PanolabView from "../panolab/panolabView";
import OrdenEstudio from "../ordenestudio/ordenestudioForm";
import OrdenEstudioView from "../ordenestudio/ordenestudioView";
import FichaEdit from "../ficha/fichaEdit";
//import { Col } from "rsuite";
import Resumen from "./../resumen/resumen";
import NavBarFresca from "./../navFresca";
import Haq from "./../cuestionarios/haq";
import Egc from "./../cuestionarios/egc";
import Mbg from "./../cuestionarios/mbg";
import BuscarEGC from "./../cuestionarios/buscarEgc";
import BuscarMBG from "./../cuestionarios/buscarMBG";
import BuscarHAQ from "./../cuestionarios/buscarHAQ";
class MenuFicha extends Component {
constructor(props) {
super(props);
this.state = {
tabactive: "ficha",
codficha: this.props.match.params.codficha,
datosFicha: {},
activeStyleFicha: {
textDecoration: "none",
color: "#133E7C",
fontSize: "17px",
"&:hover": {
textDecoration: "none"
}
},
activeStyleConsulta: {
textDecoration: "none",
fontSize: "17px",
color: "#3c763d",
"&:hover": {
textDecoration: "none"
}
},
activeStylePanolab: {
textDecoration: "none",
fontSize: "17px",
color: "#563d7c",
"&:hover": {
textDecoration: "none"
}
},
activeStyleOrden: {
textDecoration: "none",
fontSize: "17px",
color: "#337ab7",
"&:hover": {
textDecoration: "none"
}
},
activeStyleMbg: {
textDecoration: "none",
fontSize: "17px",
color: "#497665",
"&:hover": {
textDecoration: "none"
}
},
activeStyleHaq: {
textDecoration: "none",
fontSize: "17px",
color: "#FFA630",
"&:hover": {
textDecoration: "none"
}
},
activeStyleEgc: {
textDecoration: "none",
fontSize: "17px",
color: "#FF4C58",
"&:hover": {
textDecoration: "none"
}
}
};
this.onSelectActive = this.onSelectActive.bind(this);
this.formatDate = this.formatDate.bind(this);
}
async componentWillMount() {
//const cod = this.props.match.params.codconsulta;
const cod = this.state.codficha;
const url1 = "http://127.0.0.1:8000/api/ficha?codficha=";
let datosFicha = {};
await axios
.get(url1 + cod)
.then(function(response) {
datosFicha = response.data[0];
})
.catch(function(error) {
console.log(error);
});
this.setState({
datosFicha: datosFicha
});
}
onSelectActive(e) {
console.log(e);
this.setState({ tabactive: e });
}
formatDate(date) {
var monthNames = [
"Enero",
"Febrero",
"Marzo",
"April",
"Mayo",
"Junio",
"Julio",
"Agosto",
"Septiembre",
"Octubre",
"Noviembre",
"Diciembre"
];
var day = date.getUTCDate();
var monthIndex = date.getMonth();
var year = date.getFullYear();
return day + " " + monthNames[monthIndex] + " " + year;
}
render() {
const NavLi = props => <Nav.Item componentClass={NavLink} {...props} />;
return (
<div>
<NavBarFresca />
<FlexboxGrid
style={{ fontFamily: "Arial, sans-serif" }}
justify="center"
>
<FlexboxGrid.Item colspan={4}>
<Card
style={{
alignItems: "center"
}}
>
<img
src={blank_pic}
alt="..."
style={{
borderRadius: "50%",
width: "60%",
marginTop: 10
}}
/>
<CardBody>
<h4 style={{ color: "#133E7C" }}>
<strong>
{this.state.datosFicha.nombres}{" "}
{this.state.datosFicha.apellidos}{" "}
</strong>
</h4>
<hr />
<ListGroup style={{ fontSize: 13, color: "#666666" }}>
<ListGroupItem>
<strong>Nro. Doc: </strong>
{this.state.datosFicha.nrodocumento}
</ListGroupItem>
<ListGroupItem>
<strong>Tipo Doc: </strong>
{this.state.datosFicha.tipodocumento}{" "}
</ListGroupItem>
<ListGroupItem>
<strong>Fecha de Inclución: </strong>
{this.formatDate(
new Date(this.state.datosFicha.fechainclusion)
)}
</ListGroupItem>
<ListGroupItem>
<strong>Fecha de Diagnóstico: </strong>
{this.formatDate(
new Date(this.state.datosFicha.fechadiagnos)
)}
</ListGroupItem>
<ListGroupItem>
<strong>Diagnóstico: </strong>
{this.state.datosFicha.diagnostico}
</ListGroupItem>
<ListGroupItem>
<strong>Procedencia: </strong>
{this.state.datosFicha.procedencia}
</ListGroupItem>
<ListGroupItem>
<strong>Fecha de Nacimiento: </strong>
{this.formatDate(new Date(this.state.datosFicha.fechanaci))}
</ListGroupItem>
<ListGroupItem>
<strong>Sexo: </strong>
{this.state.datosFicha.sexo}
</ListGroupItem>
<ListGroupItem>
<strong>Telef: </strong>
{this.state.datosFicha.telefono}
</ListGroupItem>
<ListGroupItem>
<strong>Nacionalidad: </strong>
{this.state.datosFicha.nacionalidad}
</ListGroupItem>
<ListGroupItem>
<strong>E. Civil: </strong>
{this.state.datosFicha.estadocivil}
</ListGroupItem>
<ListGroupItem>
<strong>Profesión: </strong>
{this.state.datosFicha.profesion}
</ListGroupItem>
<ListGroupItem>
<strong>Escolaridad: </strong>
{this.state.datosFicha.escolaridad}
</ListGroupItem>
</ListGroup>
</CardBody>
</Card>
</FlexboxGrid.Item>
<FlexboxGrid.Item colspan={18}>
<Nav
appearance="tabs"
activeKey={this.state.tabactive}
onSelect={this.onSelectActive}
style={{ marginLeft: 10 }}
>
<NavLi
eventKey="resumen"
to={`/menu_ficha/${this.state.datosFicha.codficha}/resumen/${
this.state.datosFicha.codficha
}`}
activeStyle={this.state.activeStyleFicha}
icon={<Icon icon="dashboard" />}
>
Resumen
</NavLi>
<NavLi
eventKey="ficha"
to={`/menu_ficha/${this.state.datosFicha.codficha}/ficha_view/${
this.state.datosFicha.codficha
}`}
activeStyle={this.state.activeStyleFicha}
icon={<Icon icon="list-alt" />}
>
Datos Ficha
</NavLi>
<NavLi
eventKey="consulta"
to={`/menu_ficha/${
this.state.datosFicha.codficha
}/buscar_consulta/${this.state.datosFicha.codficha}`}
activeStyle={this.state.activeStyleConsulta}
icon={<Icon icon="stethoscope" />}
>
Consulta
</NavLi>
<NavLi
eventKey="panolab"
to={`/menu_ficha/${
this.state.datosFicha.codficha
}/buscar_panolab/${this.state.datosFicha.codficha}`}
activeStyle={this.state.activeStylePanolab}
icon={<Icon icon="flask" />}
>
Panorámica de Laboratorio
</NavLi>
<NavLi
eventKey="orden"
to={`/menu_ficha/${
this.state.datosFicha.codficha
}/buscar_ordenestudio/${this.state.datosFicha.codficha}`}
activeStyle={this.state.activeStyleOrden}
icon={<Icon icon="file-text-o" />}
>
Orden de Estudio
</NavLi>
<NavLi
eventKey="haq"
to={`/menu_ficha/${this.state.datosFicha.codficha}/buscar_haq/`}
activeStyle={this.state.activeStyleHaq}
icon={<Icon icon="file-text-o" />}
>
HAQ
</NavLi>
<NavLi
eventKey="haq"
to={`/menu_ficha/${this.state.datosFicha.codficha}/buscar_grc/`}
activeStyle={this.state.activeStyleEgc}
icon={<Icon icon="file-text-o" />}
>
GRC
</NavLi>
<NavLi
eventKey="haq"
to={`/menu_ficha/${this.state.datosFicha.codficha}/buscar_mbg/`}
activeStyle={this.state.activeStyleMbg}
icon={<Icon icon="file-text-o" />}
>
MBG
</NavLi>
</Nav>
<Switch>
<Route
path="/menu_ficha/:codficha/resumen/:codficha"
component={Resumen}
/>
<Route
path="/menu_ficha/:codficha/ficha_edit/:codficha"
component={FichaEdit}
/>
<Route
path="/menu_ficha/:codficha/ficha_view/:codficha"
component={FichaView}
/>
<Route
path="/menu_ficha/:codficha/buscar_consulta/:codficha/consulta_view/:codconsulta/:codficha"
component={ConsultaView}
/>
<Route
path="/menu_ficha/:codficha/buscar_consulta/:codficha/consulta/:codficha"
component={Consulta}
/>
<Route
path="/menu_ficha/:codficha/buscar_consulta/:codficha"
component={BuscarConsulta}
/>
<Route
path="/menu_ficha/:codficha/buscar_panolab/:codficha/panolab_view/:codpanolab/:codficha"
component={PanolabView}
/>
<Route
path="/menu_ficha/:codficha/buscar_panolab/:codficha/panolab/:codficha"
component={Panolab}
/>
<Route
path="/menu_ficha/:codficha/buscar_panolab/:codficha"
component={BuscarPanolab}
/>
<Route
path="/menu_ficha/:codficha/buscar_ordenestudio/:codficha/ordenestudio_view/:codordenestudio"
component={OrdenEstudioView}
/>
<Route
path="/menu_ficha/:codficha/buscar_ordenestudio/:codficha/ordenestudio/:codficha"
component={OrdenEstudio}
/>
<Route
path="/menu_ficha/:codficha/buscar_ordenestudio/:codficha"
component={BuscarOrdenEstudio}
/>
<Route
path="/menu_ficha/:codficha/buscar_haq/haq/"
component={Haq}
/>
<Route
path="/menu_ficha/:codficha/buscar_haq/"
component={BuscarHAQ}
/>
<Route
path="/menu_ficha/:codficha/buscar_grc/grc/"
component={Egc}
/>
<Route
path="/menu_ficha/:codficha/buscar_grc/"
component={BuscarEGC}
/>
<Route
path="/menu_ficha/:codficha/buscar_mbg/mbg/"
component={Mbg}
/>
<Route
path="/menu_ficha/:codficha/buscar_mbg/"
component={BuscarMBG}
/>
</Switch>
</FlexboxGrid.Item>
</FlexboxGrid>
</div>
);
}
}
export default withRouter(MenuFicha);
<file_sep>/src/components/resumen/resumen.jsx
import React, { Component } from "react";
import { Container, Row, Col, Input } from "reactstrap";
import { Timeline, TimelineEvent } from "react-event-timeline";
import { Icon } from "rsuite";
import axios from "axios";
import {
LineChart,
Line,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend
} from "recharts";
class Resumen extends Component {
constructor() {
super();
this.state = {
datosFicha: {},
datosConsulta: [],
datosPanolab: [],
datosOrden: [],
dataTimeLine: [],
dataTimeLineAux: [],
dataCdaiSdai: [],
dataDas28: []
};
this.compare = this.compare.bind(this);
this.getConsultas = this.getConsultas.bind(this);
this.formatterX = this.formatterX.bind(this);
}
async componentWillMount() {
//const cod = this.props.match.params.codconsulta;
const cod = this.props.match.params.codficha;
const url1 = "http://127.0.0.1:8000/api/ficha?codficha=";
let datosFicha = {};
await axios
.get(url1 + cod)
.then(function(response) {
datosFicha = response.data[0];
})
.catch(function(error) {
console.log(error);
});
this.setState({
datosFicha: datosFicha
});
this.getConsultas();
this.getPanolabs();
this.getOrdenes();
}
async getConsultas() {
const cod = this.props.match.params.codficha;
const url1 = "http://127.0.0.1:8000/api/consulta/?codficha=";
let datosConsulta = [];
let dataTimeLine = this.state.dataTimeLine;
let aux = this.state.dataTimeLineAux;
let data1 = this.state.dataCdaiSdai;
let data2 = this.state.dataDas28;
await axios
.get(url1 + cod)
.then(function(response) {
datosConsulta = response.data;
})
.catch(function(error) {
console.log(error);
});
console.log("datosConsulta", datosConsulta);
for (let i = 0; i < datosConsulta.length; i++) {
const element = {
tipo: "Consulta",
fecha: this.formatterX(datosConsulta[i].fechaconsulta),
fechaComp: this.formatterX(datosConsulta[i].fechaconsulta),
titulo: datosConsulta[i].limitacion,
contenido: datosConsulta[i].diagnostico,
icono: "stethoscope",
style: { color: "#3c763d" }
};
dataTimeLine.push(element);
aux.push(element);
const grafico1 = {
fecha: this.formatterX(datosConsulta[i].fechaconsulta),
cdai: datosConsulta[i].cdai,
sdai: datosConsulta[i].sdai
};
data1.push(grafico1);
const grafico2 = {
fecha: this.formatterX(datosConsulta[i].fechaconsulta),
das28vsg: datosConsulta[i].das28vsg,
das28pcr: datosConsulta[i].das28pcr
};
data2.push(grafico2);
}
console.log(data2);
this.setState({
dataTimeLine: dataTimeLine,
dataTimeLineAux: aux,
datosConsulta: datosConsulta,
dataCdaiSdai: data1,
dataDas28: data2
});
}
async getPanolabs() {
const cod = this.props.match.params.codficha;
const url1 = "http://127.0.0.1:8000/api/panolab/?codficha=";
let datosPanolab = [];
let dataTimeLine = this.state.dataTimeLine;
let aux = this.state.dataTimeLineAux;
await axios
.get(url1 + cod)
.then(function(response) {
datosPanolab = response.data;
})
.catch(function(error) {
console.log(error);
});
for (let i = 0; i < datosPanolab.length; i++) {
const element = {
tipo: "Panoramica de Laboratorio",
fecha: this.formatterX(datosPanolab[i].fechapanolab),
fechaComp: this.formatterX(datosPanolab[i].fechapanolab),
titulo: "Panoramica de Laboratorio",
contenido: datosPanolab[i].observacion,
icono: "flask",
style: { color: "#563d7c" }
};
dataTimeLine.push(element);
aux.push(element);
}
this.setState({ dataTimeLine: dataTimeLine, dataTimeLineAux: aux });
}
async getOrdenes() {
const cod = this.props.match.params.codficha;
const url1 = "http://127.0.0.1:8000/api/ordenestudio/?codficha=";
let datosOrden = [];
let dataTimeLine = this.state.dataTimeLine;
let aux = this.state.dataTimeLineAux;
await axios
.get(url1 + cod)
.then(function(response) {
datosOrden = response.data;
})
.catch(function(error) {
console.log(error);
});
for (let i = 0; i < datosOrden.length; i++) {
const date = new Date(datosOrden[i].fechaordenestudio);
const element = {
tipo: "Orden de Estudio",
fecha: this.formatterX(datosOrden[i].fechaordenestudio),
fechaComp: this.formatterX(datosOrden[i].fechaordenestudio),
titulo: datosOrden[i].estado,
contenido: datosOrden[i].observacion,
icono: "file-text-o",
style: { color: "#337ab7" }
};
dataTimeLine.push(element);
aux.push(element);
}
this.setState({ dataTimeLine: dataTimeLine, dataTimeLineAux: aux });
}
compare(a, b) {
if (a.fechaComp < b.fechaComp) {
return 1;
}
if (a.fechaComp > b.fechaComp) {
return -1;
}
return 0;
}
compare2(a, b) {
if (a.fechaconsulta > b.fechaconsulta) {
return 1;
}
if (a.fechaconsulta < b.fechaconsulta) {
return -1;
}
return 0;
}
formatterX(fecha) {
const date = new Date(fecha);
var month = date.getUTCMonth() + 1; //months from 1-12
var day = date.getUTCDate();
var year = date.getUTCFullYear();
const newdate = day + "/" + month + "/" + year;
return newdate;
}
render() {
const order = this.state.dataTimeLine.sort(this.compare);
const data = this.state.dataCdaiSdai;
console.log(this.state.datosConsulta);
const datosConsulta = this.state.datosConsulta.sort(this.compare2);
console.log(datosConsulta);
return (
<Row style={{ margin: 10 }}>
<Col lg="4" md="4" sm="4">
<div className="border rounded" style={{ padding: 10 }}>
<h3>Historial</h3>{" "}
<Input
type="select"
onChange={e => {
var aux = this.state.dataTimeLineAux;
switch (e.target.value) {
case "Últimos 3 meses":
var maxDate = new Date(aux[0].fechaComp);
var minDate = new Date(
maxDate.setMonth(maxDate.getMonth() - 3)
);
console.log(minDate);
var list = aux.filter(element => {
return element.fechaComp >= minDate;
});
this.setState({ dataTimeLine: list });
break;
case "Últimos 6 meses":
var maxDate = new Date(aux[0].fechaComp);
var minDate = new Date(
maxDate.setMonth(maxDate.getMonth() - 6)
);
console.log(minDate);
var list = aux.filter(element => {
return element.fechaComp >= minDate;
});
this.setState({ dataTimeLine: list });
break;
case "Último año":
var maxDate = new Date(aux[0].fechaComp);
var minDate = new Date(
maxDate.setMonth(maxDate.getMonth() - 12)
);
console.log(minDate);
var list = aux.filter(element => {
return element.fechaComp >= minDate;
});
this.setState({ dataTimeLine: list });
break;
case "Todos":
this.setState({ dataTimeLine: aux });
break;
default:
break;
}
}}
>
<option>Todos</option>
<option>Últimos 3 meses</option>
<option>Últimos 6 meses</option>
<option>Último año</option>
</Input>
<Timeline>
{order.map(item => (
<TimelineEvent
key={Math.floor(Math.random() * 100000)}
title={item.tipo}
createdAt={item.fecha}
iconColor={item.style.color}
icon={<Icon icon={item.icono} style={item.style} />}
>
{item.contenido}
</TimelineEvent>
))}
</Timeline>
</div>
</Col>
<Col lg="8" md="8" sm="8">
<div className="border rounded">
<Row>
<Col>
<h3 class="page-title"> Scores SDAI y CDAI</h3>
<LineChart
width={600}
height={300}
data={datosConsulta}
margin={{ top: 5, right: 30, left: 20, bottom: 5 }}
>
<XAxis
dataKey="fechaconsulta"
tickFormatter={this.formatterX}
/>
<YAxis />
<CartesianGrid strokeDasharray="3 3" />
<Tooltip labelFormatter={this.formatterX} />
<Legend />
<Line
type="monotone"
dataKey="cdai"
stroke="blue"
activeDot={{ r: 8 }}
/>
<Line type="monotone" dataKey="sdai" stroke="green" />
</LineChart>
</Col>
</Row>
<Row>
<Col>
<h3 class="page-title"> Scores das28pcr y das28vsg</h3>
<LineChart
width={600}
height={300}
data={datosConsulta}
margin={{ top: 5, right: 30, left: 20, bottom: 5 }}
>
<XAxis
dataKey="fechaconsulta"
tickFormatter={this.formatterX}
/>
<YAxis />
<CartesianGrid strokeDasharray="3 3" />
<Tooltip labelFormatter={this.formatterX} />
<Legend />
<Line
type="monotone"
dataKey="das28pcr"
stroke="orange"
activeDot={{ r: 8 }}
/>
<Line type="monotone" dataKey="das28vsg" stroke="violet" />
</LineChart>
</Col>
</Row>
</div>
</Col>
</Row>
);
}
}
export default Resumen;
<file_sep>/src/components/sidenab.jsx
import React, { Component } from "react";
import { Link } from "react-router-dom";
import { Sidebar, Sidenav, Nav, Icon } from "rsuite";
import "rsuite/dist/styles/rsuite.min.css";
class SideNavMenu extends Component {
constructor(props) {
super(props);
this.state = {
expand: false
};
this.handleToggle = this.handleToggle.bind(this);
}
handleToggle() {
this.setState({
expand: !this.state.expand
});
}
render() {
const NavLink = props => <Nav.Item componentClass={Link} {...props} />;
return (
<div className="sidebar-page">
<Sidebar
style={{
display: "flex",
flexDirection: "column",
height: "100%",
backgroundColor: "#111",
zIndex: 1,
position: "fixed",
overflowX: "hidden",
marginTop: 56
}}
width={this.state.expand ? 200 : 56}
collapsible
>
<Sidenav
expanded={this.state.expand}
defaultOpenKeys={["3"]}
defaultActiveKey="2"
appearance="subtle"
style={{
display: "flex",
flexDirection: "column",
height: "100%",
backgroundColor: "#111",
zIndex: 1,
overflowX: "hidden"
}}
>
<Sidenav.Body>
<Nav>
<Nav.Item
eventKey="1"
active
icon={<Icon icon="expand-o" />}
onClick={this.handleToggle}
>
Menu
</Nav.Item>
<NavLink
eventKey="2"
to="/ficha_buscar"
icon={<Icon icon="search" />}
onClick={() => {
console.log("Ficha component " + this.state.codficha);
//window.location.pathname={`/ficha_view/${this.state.codficha}`}
}}
>
Buscar Ficha
</NavLink>
<NavLink to="/ficha" eventKey="3" icon={<Icon icon="plus" />}>
Agregar Ficha
</NavLink>
</Nav>
</Sidenav.Body>
</Sidenav>
</Sidebar>
</div>
);
}
}
export default SideNavMenu;
<file_sep>/src/components/laboratorio/estudios.jsx
import React, { Component } from "react";
import { Link } from "react-router-dom";
import {
Button,
Container,
Alert,
Row,
ListGroup,
ListGroupItem,
ListGroupItemHeading,
ListGroupItemText,
Col,
FormGroup,
Label,
Input
} from "reactstrap";
import "bootstrap/dist/css/bootstrap.css";
import axios from "axios";
class ListaEstudios extends Component {
constructor() {
super();
this.state = {
fechaOrdenEstudio: "",
listaOrdenEstudio: [],
fadeIn: false,
alert: false
};
this.handleChange = this.handleChange.bind(this);
this.handleSearch = this.handleSearch.bind(this);
}
handleChange(e) {
const target = e.target;
const value = target.type === "checkbox" ? target.checked : target.value;
const name = target.name;
this.setState({
[name]: value
});
}
async handleSearch() {
const url1 = "http://127.0.0.1:8000/api/ordenestudio?fechaordenestudio=";
const codficha = "&codficha=";
let listado = [];
let respuesta;
const url_usar =
url1 +
this.state.fechaOrdenEstudio +
codficha +
this.props.match.params.codficha;
console.log(url_usar);
await axios
.get(url_usar) //y asi queda concatenado todo, si no hay fecha igual trae solo lo de esa ficha, vamos a probar
.then(function(response) {
if (response.data[0] === undefined) {
respuesta = null;
} else {
listado = response.data;
}
})
.catch(function(error) {
console.log(error);
});
if (respuesta === null) {
this.setState({
alert: !this.state.alert,
fadeIn: !this.state.fadeIn
});
} else {
this.setState({
listaOrdenEstudio: listado,
fadeIn: !this.state.fadeIn,
alert: false
});
}
console.log(url1 + this.state.fechaOrdenEstudio);
}
render() {
let list = [];
list = this.state.listaOrdenEstudio;
console.log(list);
return (
<Container>
<Alert color="danger" isOpen={this.state.alert} toggle={this.onDismiss}>
No se encontro la Orden de Estudio!
</Alert>
<Row>
<Col>
<FormGroup>
<Label for="fechaOrdenEstudio">
Buscar por Fecha Orden de Estudio
</Label>
<Input
type="date"
onChange={this.handleChange}
value={this.state.fechaOrdenEstudio}
name="fechaOrdenEstudio"
id="fechaOrdenEstudio"
/>
</FormGroup>
<Button onClick={this.handleSearch} color="primary">
Buscar
</Button>
{" "}
</Col>
</Row>
<hr />
<Container>
<Row>
<Col>
<ListGroup>
{list.map(item => (
<ListGroupItem>
<ListGroupItemHeading>
<Link
to={`/ordenestudio_view_lab/${item.codordenestudio}/${
item.codficha
}`}
>
{" "}
<h4>{item.fechaordenestudio}</h4>
</Link>
</ListGroupItemHeading>
<ListGroupItemText>
<p>
<strong>Estado: </strong> {item.estado}
</p>
<p>
<strong>Observación: </strong> {item.observacion}
</p>
</ListGroupItemText>
</ListGroupItem>
))}
</ListGroup>
</Col>
</Row>
</Container>
</Container>
);
}
}
export default ListaEstudios;
<file_sep>/src/components/estudio/estudioForm.jsx
import React, { Component } from "react";
import {
Button,
Container,
Row,
Col,
Form,
FormGroup,
Label,
Input
} from "reactstrap";
class Estudio extends Component {
constructor() {
super();
this.state = {
estudioForm: {
nombre: "",
descripcion: "",
codusuario: 999
}
};
this.handleChange = this.handleChange.bind(this);
this.handleAdd = this.handleAdd.bind(this);
}
async handleAdd() {
const estudio = this.state.estudioForm;
await fetch("http://127.0.0.1:8000/api/estudio/", {
method: "POST", // or 'PUT'
body: JSON.stringify(estudio), // data can be `string` or {object}!
headers: {
"Content-Type": "application/json"
}
})
.then(res => res.json())
.catch(error => console.error("Error:", error))
.then(response => {
console.log(response);
});
}
handleChange(e) {
const target = e.target;
let fields = this.state.estudioForm;
const value = target.type === "checkbox" ? target.checked : target.value;
const name = target.name;
fields[name] = value;
this.setState({
estudioForm: fields
});
}
render() {
return (
<Container>
<Row>
<Col>
<Form>
<FormGroup>
<Label for="nombre">Estudio:</Label>
<Input
name="nombre"
id="nombre"
value={this.state.estudioForm.nombre}
onChange={this.handleChange}
/>
</FormGroup>
<FormGroup>
<Label for="nombre">Descripcion:</Label>
<Input
name="descripcion"
id="descripcion"
value={this.state.estudioForm.descripcion}
onChange={this.handleChange}
/>
</FormGroup>
<Button color="success" onClick={this.handleAdd}>
Agregar
</Button>
</Form>
</Col>
</Row>
</Container>
);
}
}
export default Estudio;
<file_sep>/src/components/ordenestudio/buscarOrdenEstudio.jsx
import React, { Component } from "react";
import { Link } from "react-router-dom";
import {
Button,
Container,
Row,
InputGroup,
InputGroupAddon,
Col,
Form,
Input
} from "reactstrap";
import "bootstrap/dist/css/bootstrap.css";
import axios from "axios";
import { Alert, Icon } from "rsuite";
class BuscarOrdenEstudio extends Component {
constructor() {
super();
this.state = {
fechaOrdenEstudio: "",
listaOrdenEstudio: [],
estudios: [],
fadeIn: false,
alert: false
};
this.handleChange = this.handleChange.bind(this);
this.handleSearch = this.handleSearch.bind(this);
this.formatDate = this.formatDate.bind(this);
}
handleChange(e) {
const target = e.target;
const value = target.type === "checkbox" ? target.checked : target.value;
const name = target.name;
this.setState({
[name]: value
});
}
async handleSearch() {
const url1 = "http://127.0.0.1:8000/api/ordenestudio?fechaordenestudio=";
const url2 = "http://127.0.0.1:8000/api/estudio/";
const codficha = "&codficha=";
let listado = [];
let respuesta;
let estudios;
const url_usar =
url1 +
this.state.fechaOrdenEstudio +
codficha +
this.props.match.params.codficha;
const url2_usar = url2 + this.state.codestudio;
console.log(url2_usar);
await axios
.get(url_usar)
.then(function(response) {
if (response.data[0] === undefined) {
respuesta = null;
} else {
listado = response.data;
}
})
.catch(function(error) {
console.log(error);
}); //
await axios
.get(url2)
.then(function(response) {
if (response.data[0] === undefined) {
estudios = null;
} else {
estudios = response.data;
}
})
.catch(function(error) {
console.log(error);
});
if (respuesta === null) {
Alert.warning("No se encontra la Orden de Estudio");
} else {
this.setState({
listaOrdenEstudio: listado,
estudios: estudios
});
}
console.log(this.setState.listaOrdenEstudio);
console.log(this.setState.estudioListTable);
console.log(this.state.fechaOrdenEstudio);
console.log(this.props.match.params.codficha);
}
formatDate(date) {
var monthNames = [
"Enero",
"Febrero",
"Marzo",
"April",
"Mayo",
"Junio",
"Julio",
"Agosto",
"Septiembre",
"Octubre",
"Noviembre",
"Diciembre"
];
var day = date.getUTCDate() ;
console.log(day);
var monthIndex = date.getMonth();
var year = date.getFullYear();
return day + " " + monthNames[monthIndex] + " " + year;
}
render() {
let list = [];
list = this.state.listaOrdenEstudio;
console.log(list);
return (
<Container style={{ marginTop: 20 }}>
<Form inline>
<InputGroup>
<Input
type="date"
onChange={this.handleChange}
value={this.state.fechaOrdenEstudio}
name="fechaOrdenEstudio"
id="fechaOrdenEstudio"
/>
<InputGroupAddon addonType="append">
<Button
onClick={this.handleSearch}
style={{
marginRight: 10,
backgroundColor: "#337ab7",
color: "white"
}}
>
Buscar
</Button>
</InputGroupAddon>
</InputGroup>
<Link
to={`/menu_ficha/${
this.props.match.params.codficha
}/buscar_ordenestudio/${
this.props.match.params.codficha
}/ordenestudio/${this.props.match.params.codficha}`}
style={{ color: "white" }}
>
<Button
onClick={this.handleAdd}
style={{ backgroundColor: "#337ab7", color: "white" }}
>
Agregar Orden
</Button>
</Link>
</Form>
<hr />
<Container style={{ marginTop: 20 }}>
<Row>
<Col lg="7" md="7" sm="7">
{list.map(item => (
<div
style={{
borderLeft: "5px solid",
marginBottom: 15,
padding: 10,
borderLeftColor: "#337ab7",
borderRadius: "5px",
borderTop: "0.5px solid",
borderRight: "0.5px solid",
borderBottom: "0.5px solid",
borderTopColor: "#eee",
borderRightColor: "#eee",
borderBottomColor: "#eee"
// color: "#eee"
}}
>
<Link
style={{
color: "#337ab7",
textDecoration: "none",
"&:hover": {
textDecoration: "none"
}
}}
to={`/menu_ficha/${item.codficha}/buscar_ordenestudio/${
item.codficha
}/ordenestudio_view/${item.codordenestudio}`}
>
<h4>
<strong>Fecha: </strong>{" "}
{this.formatDate(new Date(item.fechaordenestudio))}
<Icon
icon="angle-double-right"
size="2x"
style={{ float: "right" }}
/>
</h4>
<div
style={{
color: "#666666"
}}
>
<Row>
<Col>
<strong>Estado: </strong> {item.estado}{" "}
</Col>
</Row>
<Row>
<Col>
<strong>Tipo Estudio: </strong>{" "}
{
this.state.estudios.filter(estudio => {
return estudio.codestudio === item.codestudio;
})[0].nombre
}
</Col>
</Row>
</div>
</Link>
</div>
))}
</Col>
</Row>
</Container>
</Container>
);
}
}
export default BuscarOrdenEstudio;
<file_sep>/src/components/ficha/fichaEdit.jsx
import React, { Component } from "react";
import {
Card,
Button,
CardHeader,
CardBody,
Container,
Row,
Col,
Form,
FormGroup,
Label,
Input
} from "reactstrap";
import Joi from "joi-browser";
import { Modal, Alert } from "rsuite";
import axios from "axios";
import { AutoComplete } from "primereact/autocomplete";
import BootstrapTable from "react-bootstrap-table-next";
import Fame from "./../fames/famesForm";
import Comorbilidad from "./../comorbilidades/comorForm";
import EventoCardiovascular from "./../eventocardiovascular/eventocardiovascularForm";
import Manifestaciones from "./../manifestaciones/manifestaciones";
import SweetAlert from "react-bootstrap-sweetalert";
const ColoredLine = ({ color }) => (
<hr
style={{
color: color,
backgroundColor: color,
height: 150,
width: 2,
borderleft: 1
}}
/>
);
class FichaEdit extends Component {
constructor() {
super();
this.state = {
errores: {},
codFichaReturn: "", //necesitamos guardar el codconsulta que retorna
//alert
alertCreado: false,
///
toggleFame: false,
toggleComor: false,
toggleEvento: false,
toggleMani: false,
//rxmanos: true,
aviso: false,
visible: false,
nroDocOriginal: 0,
//datos correspondientes al paciente
datosFicha: {},
deshabilitar: false,
deshabilitartaba: true,
deshabilitarrxpies: true,
deshabilitarrxmanos: true,
eventocardioSelected: "",
eventocardio: "",
eventList: [],
eventListTable: [],
eventListTableNew: [],
eventListTableSelected: "",
eventListDelete: [],
columnsEvent: [
{
dataField: "codeventocardio",
hidden: true
},
{
dataField: "nombre",
text: "Nombre"
}
],
maniSelected: "",
mani: "",
maniList: [],
maniListTable: [],
maniListTableNew: [],
maniListTableSelected: "",
maniListDelete: [],
columnsMani: [
{
dataField: "codmanif",
hidden: true
},
{
dataField: "nombre",
text: "Nombre"
},
{
dataField: "descripcion",
text: "Descripción"
}
],
comorSelected: "",
fechaDxComor: "",
comorbilidad: "",
comorList: [],
comorListTable: [],
comorListTableNew: [],
comorListTableSelected: "",
comorListDelete: [],
columnsComor: [
{
dataField: "codenfermedad",
hidden: true
},
{
dataField: "nombre",
text: "Nombre"
},
{
dataField: "fechadiagnostico",
text: "Fecha Diagnóstico "
}
],
fameSelected: "",
fame: "",
fameDesde: "",
fameHasta: "",
famesList: [],
famesListTable: [],
famesListTableNew: [],
famesListTableSelected: "",
famesListDelete: [],
columnsFames: [
{
dataField: "codfame",
hidden: true
},
{
dataField: "nombre",
text: "Nombre"
},
{
dataField: "descripcion",
text: "Descripción"
},
{
dataField: "fechadesde",
text: "Fecha Desde"
},
{
dataField: "fechahasta",
text: "Fecha Hasta"
}
]
};
this.schema = {
nombres: Joi.string()
.required()
.label("Nombres no puede estar vacío"),
apellidos: Joi.string()
.required()
.label("Apellidos no puede estar vacío"),
nhc: Joi.number()
.required()
.label("NHC no puede estar vacío"),
fechadiagnos: Joi.string()
.required()
.label("Fecha Diagnostico no puede estar vacío"),
fechainclusion: Joi.string()
.required()
.label("Fecha Inclusion no puede estar vacío"),
diagnostico: Joi.string()
.required()
.label("Diagnostico no puede estar vacío"),
nrodocumento: Joi.number()
.required()
.label("Nro de Documento no puede estar vacío"),
fechanaci: Joi.string()
.required()
.label("Fecha de Nacimiento no puede estar vacío")
};
this.handleChange = this.handleChange.bind(this);
this.handleUpdate = this.handleUpdate.bind(this);
this.onDismiss = this.onDismiss.bind(this);
this.onDismissVisivle = this.onDismissVisivle.bind(this);
this.onDismissAviso = this.onDismissAviso.bind(this);
this.validarCedula = this.validarCedula.bind(this);
this.toggleFame = this.toggleFame.bind(this);
this.toggleComor = this.toggleComor.bind(this);
this.toggleEvento = this.toggleEvento.bind(this);
this.toggleMani = this.toggleMani.bind(this);
this.filterEvento = this.filterEvento.bind(this);
this.filterMani = this.filterMani.bind(this);
this.filterFame = this.filterFame.bind(this);
this.filterComor = this.filterComor.bind(this);
this.eliminarEvento = this.eliminarEvento.bind(this);
this.eliminarMani = this.eliminarMani.bind(this);
this.eliminarFame = this.eliminarFame.bind(this);
this.eliminarComor = this.eliminarComor.bind(this);
this.onSelectEventoCardio = this.onSelectEventoCardio.bind(this);
this.onChangeEventoCardio = this.onChangeEventoCardio.bind(this);
this.onSelectMani = this.onSelectMani.bind(this);
this.onChangeMani = this.onChangeMani.bind(this);
this.onSelectFame = this.onSelectFame.bind(this);
this.onChangeFame = this.onChangeFame.bind(this);
this.onSelectComor = this.onSelectComor.bind(this);
this.onChangeComor = this.onChangeComor.bind(this);
this.addEventToList = this.addEventToList.bind(this);
this.addManiToList = this.addManiToList.bind(this);
this.addFameToList = this.addFameToList.bind(this);
this.addComorToList = this.addComorToList.bind(this);
this.handleDeleteEvent = this.handleDeleteEvent.bind(this);
this.handleDeleteMani = this.handleDeleteMani.bind(this);
this.handleDeleteFame = this.handleDeleteFame.bind(this);
this.handleDeleteComor = this.handleDeleteComor.bind(this);
this.alertConfirm = this.alertConfirm.bind(this);
this.formatDate = this.formatDate.bind(this);
}
alertConfirm() {
this.setState({ alertCreado: false });
console.log(this.state.codFichaReturn);
this.props.history.push(
"/menu_ficha/" +
this.state.codFichaReturn +
"/ficha_view/" +
this.state.codFichaReturn
);
}
eliminarEvento() {
let list = this.state.eventListTable;
let deleteList = this.state.eventListDelete;
//en esta parte antes de eliminar de l alista el evento metemos primero en el eventListDelete para usar despues en a la hora de eliminar en la base
deleteList.push(
this.state.eventListTable[this.state.eventListTableSelected]
);
list.splice(this.state.eventListTableSelected, 1);
this.setState({ eventListTable: list, eventListDelete: deleteList });
console.log(deleteList);
}
eliminarMani() {
let list = this.state.maniListTable;
let deleteListm = this.state.maniListDelete;
deleteListm.push(
this.state.maniListTable[this.state.maniListTableSelected]
);
list.splice(this.state.maniListTableSelected, 1);
this.setState({ maniListTable: list, maniListDelete: deleteListm });
console.log(deleteListm);
}
eliminarFame() {
let list = this.state.famesListTable;
let deleteListf = this.state.famesListDelete;
deleteListf.push(
this.state.famesListTable[this.state.famesListTableSelected]
);
list.splice(this.state.famesListTableSelected, 1);
this.setState({ famesListTable: list, famesListDelete: deleteListf });
console.log(deleteListf);
}
eliminarComor() {
let list = this.state.comorListTable;
let deleteListc = this.state.comorListDelete;
deleteListc.push(
this.state.comorListTable[this.state.comorListTableSelected]
);
list.splice(this.state.comorListTableSelected, 1);
this.setState({ comorListTable: list, comorListDelete: deleteListc });
console.log(deleteListc);
}
async getEventList() {
const urlEvent = "http://127.0.0.1:8000/api/eventocardio/";
let listaEvent;
await axios
.get(urlEvent)
.then(function(response) {
listaEvent = response.data;
})
.catch(function(error) {
console.log(error);
});
console.log(listaEvent);
this.setState({ eventList: listaEvent });
}
async getFameList() {
const urlFame = "http://127.0.0.1:8000/api/fames/";
let listaFame;
await axios
.get(urlFame)
.then(function(response) {
listaFame = response.data;
})
.catch(function(error) {
console.log(error);
});
this.setState({ famesList: listaFame });
}
async getManiList() {
const urlMani = "http://127.0.0.1:8000/api/manif_extra_art/";
let listaMani;
await axios
.get(urlMani)
.then(function(response) {
listaMani = response.data;
})
.catch(function(error) {
console.log(error);
});
this.setState({ maniList: listaMani });
}
async getComorList() {
const urlComor = "http://127.0.0.1:8000/api/enfermedad/";
let listaComor;
await axios
.get(urlComor)
.then(function(response) {
listaComor = response.data;
})
.catch(function(error) {
console.log(error);
});
this.setState({ comorList: listaComor });
}
filterEvento(event) {
var results = this.state.eventList.filter(evento => {
return evento.nombre.toLowerCase().startsWith(event.query.toLowerCase());
});
this.setState({ suggestions: results });
}
filterMani(event) {
var results = this.state.maniList.filter(mani => {
return mani.nombre.toLowerCase().startsWith(event.query.toLowerCase());
});
this.setState({ suggestions: results });
}
filterFame(event) {
var results = this.state.famesList.filter(fame => {
return fame.nombre.toLowerCase().startsWith(event.query.toLowerCase());
});
this.setState({ suggestions: results });
}
filterComor(event) {
var results = this.state.comorList.filter(comor => {
return comor.nombre.toLowerCase().startsWith(event.query.toLowerCase());
});
this.setState({ suggestions: results });
}
async onSelectEventoCardio(e) {
await this.setState({ eventocardioSelected: e.value }, function() {
console.log("console 1" + this.state.eventocardioSelected);
});
console.log("console 2" + this.state.eventocardioSelected);
}
onChangeEventoCardio(e) {
this.getEventList();
this.setState({ eventocardio: e.value });
}
async onSelectMani(e) {
await this.setState({ maniSelected: e.value }, function() {
console.log("console 1" + this.state.maniSelected);
});
console.log("console 2" + this.state.maniSelected);
}
onChangeMani(e) {
this.getManiList();
this.setState({ mani: e.value });
}
async onSelectFame(e) {
await this.setState({ fameSelected: e.value }, function() {
console.log("console 1" + this.state.fameSelected);
});
}
onChangeFame(e) {
this.getFameList();
this.setState({ fame: e.value });
}
async onSelectComor(e) {
await this.setState({ comorSelected: e.value });
console.log("comorSelected" + this.state.comorSelected);
}
onChangeComor(e) {
this.getComorList();
this.setState({ comorbilidad: e.value });
}
addEventToList() {
console.log(this.state.eventListTable);
console.log(this.state.eventocardioSelected);
let eventList = this.state.eventListTable;
let eventListNew = this.state.eventListTableNew;
if (this.state.eventocardioSelected === null) {
{
Alert.warning("El Evento Cardiovasular esta vacío", 5000); //aca no esntra puse par aprobar nomas, pero esta bien osea tiene que ser {} nomas
return;
}
} else {
for (let index = 0; index < eventList.length; index++) {
console.log(eventList);
if (
eventList[index].codeventocardio ===
this.state.eventocardioSelected.codeventocardio
) {
console.log(eventList);
{
Alert.warning("El Evento Cardiovasular ya fue agregado", 3000);
return;
}
}
}
const eventocardio = {
codeventocardio: this.state.eventocardioSelected.codeventocardio,
nombre: this.state.eventocardioSelected.nombre
};
eventList.push(eventocardio);
eventListNew.push(eventocardio);
console.log(
"fame a ser agregado" + this.state.eventocardioSelected.nombre
);
this.setState({
eventListTable: eventList,
eventListTableNew: eventListNew,
eventocardio: ""
});
}
}
addComorToList() {
let comorList = this.state.comorListTable;
let comorListNew = this.state.comorListTableNew;
if (this.state.comorSelected === null) {
{
Alert.warning("El APF esta vacío", 5000);
return;
}
} else {
for (let index = 0; index < comorList.length; index++) {
if (
comorList[index].codenfermedad ===
this.state.comorSelected.codenfermedad
) {
Alert.warning("El APF ya fue agregado", 3000);
return;
}
}
const comorbilidad = {
codenfermedad: this.state.comorSelected.codenfermedad,
nombre: this.state.comorSelected.nombre,
fechadiagnostico: this.state.comorSelected.fechaDxComor //*** si no es el mismo nombe de la ficha, no paorque es de otro formulario luego
};
comorList.push(comorbilidad);
comorListNew.push(comorbilidad);
console.log("fame a ser agregado" + this.state.comorSelected.nombre);
this.setState({
comorListTable: comorList,
comorListTableNew: comorListNew,
comorbilidad: ""
});
}
}
addFameToList() {
let fameList = this.state.famesListTable;
let fameListNew = this.state.famesListTableNew;
if (this.state.fameSelected === null) {
{
Alert.warning("No puedo estar vacio", 10000);
return;
}
} else {
for (let index = 0; index < fameList.length; index++) {
if (fameList[index].codfame === this.state.fameSelected.codfame) {
Alert.warning("El Fame ya fue agregado", 3000);
return;
}
}
const fame = {
codfame: this.state.fameSelected.codfame,
nombre: this.state.fameSelected.nombre,
descripcion: this.state.fameSelected.descripcion,
fechadesde: this.state.fameSelected.fameDesde,
fechahasta: this.state.fameSelected.fameHasta
};
fameList.push(fame);
fameListNew.push(fame);
console.log(this.state.fameSelected);
console.log("fame a ser agregado" + this.state.fameSelected.nombre);
this.setState({
famesListTable: fameList,
famesListTableNew: fameListNew,
fame: ""
});
}
}
addManiToList() {
let maniList = this.state.maniListTable;
let maniListNew = this.state.maniListTableNew;
if (this.state.maniSelected === null) {
{
Alert.warning("La Manifestación Articular esta vacía", 5000);
return;
}
} else {
for (let index = 0; index < maniList.length; index++) {
if (maniList[index].codmanif === this.state.maniSelected.codmanif) {
Alert.warning("El Manifestacion Articular ya fue agregada", 3000);
return;
}
}
const mani = {
codmanif: this.state.maniSelected.codmanif,
nombre: this.state.maniSelected.nombre,
descripcion: this.state.maniSelected.descripcion
};
maniList.push(mani);
maniListNew.push(mani);
this.setState({
maniListTable: maniList,
maniListTableNew: maniListNew,
mani: ""
});
}
}
handleSubmit() {
const errors = this.validar();
this.setState({ errores: errors || {} });
if (errors) return;
this.handleAdd();
}
async validarCedula(e) {
const url1 = "http://1172.16.58.3:8000/api/ficha?nrodocumento=";
const value = e.target.value;
const name = e.target.name;
const nro = this.state.nroDocOriginal;
let fields = this.state.datosFicha;
fields[name] = value;
this.setState({
datosFicha: fields
});
let aviso;
await axios
.get(url1 + value)
.then(function(response) {
console.log(response.data);
/* if ((response.data.length > 0) & (value !== "")) {
// si pasa este es porque trajo algo, entonces tenemos que comparar, pero tenemos que comparar adentro, entonces vamos a poner asi
if (value === nro) {
//si el valor que metio es igual al nro que ya HTMLTableCaptionElement, entonces no tiene que hacer nada
aviso = false;
} else {
// si no comrpueba que el nro de documento no exista ya
if (response.data[0].nrodocumento === value) {
aviso = true;
console.log("imprime si entra aca");
} else {
aviso = false;
}
}
} else {
aviso = false;
return;
}*/
if ((response.data.length > 0) & (value !== "")) {
//aviso = true;
Alert.warning(
"El Nro de documento ya esta asociada a otra ficha...",
10000
);
} else {
//aviso = false;
}
})
.catch(function(error) {
console.log(error);
});
this.setState({ aviso: aviso });
}
onDismissVisivle() {
this.setState({ visible: !this.state.visible });
}
onDismissAviso() {
this.setState({ aviso: !this.state.visible });
}
async componentWillMount() {
this.getEventList();
this.getManiList();
this.getFameList();
this.getComorList();
const cod = this.props.match.params.codficha; // asi nomas, mas abajo vas a tener que borrarle y copiar como esta en ficha form, ahora vamos a ver como el manda
const url2 = "http://127.0.0.1:8000/api/ficha?codficha="; //no se puede sacar de aca, osea aca es donde carga como estaban los datos ori, cierto justo pense en eso tambienvamos a rriba
let datosficha = {};
await fetch(url2 + cod)
.then(function(response) {
if (response.ok) {
return response.json();
} else {
return new Error("No se recibio la respuesta esperada ...");
}
})
.then(function(response) {
datosficha = response[0];
})
.catch(error => console.log(error));
this.setState({
datosFicha: datosficha,
nroDocOriginal: datosficha.nrodocumento
});
console.log(this.state.datosFicha);
const url1 = "http://127.0.0.1:8000/api/ficha?codficha=";
const url2f = "http://127.0.0.1:8000/api/famesficha/?codficha=";
const url3f = "http://127.0.0.1:8000/api/fames/?codfame=";
const url2e = "http://127.0.0.1:8000/api/eventocardio_ficha/?codficha=";
const url3e = "http://127.0.0.1:8000/api/eventocardio/?codeventocardio=";
const url2m = "http://127.0.0.1:8000/api/manif/?codficha=";
const url3m = "http://127.0.0.1:8000/api/manif_extra_art/?codmanif=";
const url2c = "http://127.0.0.1:8000/api/comorbilidad/?codficha=";
const url3c = "http://127.0.0.1:8000/api/enfermedad/?codenfermedad=";
let famesFicha = {};
let listf = [];
let listFame = [];
let eventoFicha = {};
let liste = [];
let listEvento = [];
let maniFicha = {};
let listm = [];
let listManifestacion = [];
let comorFicha = {};
let listc = [];
let listComor = [];
//comorbilidad
await axios
.get(url2c + cod)
.then(function(response) {
comorFicha = response.data;
})
.catch(function(error) {
console.log(error);
});
for (let item = 0; item < comorFicha.length; item++) {
await axios
.get(url3c + comorFicha[item].codenfermedad)
.then(function(response) {
listc.push(response.data[0]);
})
.catch(function(error) {
console.log(error);
});
}
for (let item = 0; item < listc.length; item++) {
const obj = {
codenfermedad: listc[item].codenfermedad,
nombre: listc[item].nombre,
descripcion: listc[item].descripcion,
fechadiagnostico: comorFicha[item].fechadiagnostico
};
listComor.push(obj);
}
console.log(listComor);
this.setState({ comorListTable: listComor });
// fames
await axios
.get(url2f + cod)
.then(function(response) {
famesFicha = response.data;
})
.catch(function(error) {
console.log(error);
});
for (let item = 0; item < famesFicha.length; item++) {
await axios
.get(url3f + famesFicha[item].codfame)
.then(function(response) {
listf.push(response.data[0]);
})
.catch(function(error) {
console.log(error);
});
}
for (let item = 0; item < listf.length; item++) {
const obj = {
codfame: listf[item].codfame,
nombre: listf[item].nombre,
descripcion: listf[item].descripcion,
fechadesde: famesFicha[item].fechadesde,
fechahasta: famesFicha[item].fechahasta
};
listFame.push(obj);
}
console.log(listFame);
this.setState({ famesListTable: listFame });
//manifestaciones
await axios
.get(url2m + cod)
.then(function(response) {
maniFicha = response.data;
})
.catch(function(error) {
console.log(error);
});
for (let item = 0; item < maniFicha.length; item++) {
await axios
.get(url3m + maniFicha[item].codmanif)
.then(function(response) {
listm.push(response.data[0]);
})
.catch(function(error) {
console.log(error);
});
}
for (let item = 0; item < listm.length; item++) {
const obj = {
codmanif: listm[item].codmanif,
nombre: listm[item].nombre,
descripcion: listm[item].descripcion
};
listManifestacion.push(obj);
}
console.log(listManifestacion);
this.setState({ maniListTable: listManifestacion });
//evento
await axios
.get(url2e + cod)
.then(function(response) {
eventoFicha = response.data;
})
.catch(function(error) {
console.log(error);
});
for (let item = 0; item < eventoFicha.length; item++) {
await axios
.get(url3e + eventoFicha[item].codeventocardio)
.then(function(response) {
liste.push(response.data[0]);
})
.catch(function(error) {
console.log(error);
});
}
console.log(liste);
for (let item = 0; item < liste.length; item++) {
const obj = {
codeventocardio: liste[item].codeventocardio,
nombre: liste[item].nombre
};
listEvento.push(obj);
}
console.log(listEvento);
this.setState({ eventListTable: listEvento });
}
validar = () => {
const result = Joi.validate(
{
nombres: this.state.datosFicha.nombres,
apellidos: this.state.datosFicha.apellidos,
nhc: this.state.datosFicha.nhc,
fechadiagnos: this.state.datosFicha.fechadiagnos,
fechainclusion: this.state.datosFicha.fechainclusion,
diagnostico: this.state.datosFicha.diagnostico,
nrodocumento: this.state.datosFicha.nrodocumento,
fechanaci: this.state.datosFicha.fechanaci
},
this.schema,
{
abortEarly: false
}
);
console.log(result.error);
if (!result.error) return null;
const errors = {};
for (let item of result.error.details)
errors[item.path[0]] = item.context.label;
return errors;
};
handleChange(e) {
const target = e.target;
let fields = this.state.datosFicha; // y este
const value = target.type === "checkbox" ? target.checked : target.value;
const name = target.name;
fields[name] = value;
this.setState({
datosFicha: fields
});
if ((name === "tabnumero") & (value === "")) {
console.log(typeof value);
fields[name] = 0;
console.log(typeof fields[name]);
this.setState({
datosFicha: fields
});
console.log(this.state.datosFicha.tabnumero);
}
/*if ((name === "rxpies") & (this.state.datosFicha.rxpies === true)) {
fields[name] = false;
this.setState({
datosFicha: fields
});
}*/
/*if ((name === "rxmanos") & (this.state.datosFicha.rxmanos === true)) {
fields[name] = false;
this.setState({
datosFicha: fields
});
}*/
if ((name === "tabaqfecha") & (value === "")) {
fields[name] = null;
this.setState({
datosFicha: fields
});
}
if ((name === "rxpiesfecha") & (value === "")) {
fields[name] = null;
this.setState({
datosFicha: fields
});
}
if ((name === "rxmanosfecha") & (value === "")) {
fields[name] = null;
this.setState({
datosFicha: fields
});
}
if ((name === "sexo") & (value === "M")) {
this.setState({
deshabilitar: !this.state.deshabilitar,
menarca: 0,
menopausia: 0,
gestas: 0,
partos: 0,
cesareas: 0,
abortos: 0,
hisjospost: false
});
} else if ((name === "sexo") & (value === "F")) {
this.setState({
deshabilitar: !this.state.deshabilitar
});
}
}
onDismiss() {
this.setState({ visible: false });
}
async handleUpdate() {
const cod = this.props.match.params.codficha;
const ficha = this.state.datosFicha;
let codficha;
console.log(this.state.datosFicha);
await fetch(
"http://127.0.0.1:8000/api/ficha/" + cod + "/", ///tenemos que recuperar el codficha para meter ahi
{
method: "PUT", // or 'PUT'
body: JSON.stringify(ficha), // data can be `string` or {object}!
headers: {
"Content-Type": "application/json"
}
}
)
.then(res => res.json())
.catch(error => console.error("Error:", error))
/*.then(response => {
console.log("La ficha fue cargada con exito:", response);
this.setState({ visible: true });
});*/
.then(response => {
if (response.codficha !== undefined && response.codficha !== null) {
codficha = response.codficha;
console.log(response);
// Alert.success("La ficha fue cargada con éxito!", 10000);
/*if (this.setState.alertCreado === true) {
this.props.history.push(
"/menu_ficha/" +
this.props.match.params.codficha +
"/ficha_view/" +
this.props.match.params.codficha // y con este mandas al menu de la fi
);
}*/
this.setState({ alertCreado: true, codFichaReturn: codficha });
}
});
this.handleAddEvento(codficha);
this.handleAddMani(codficha);
this.handleAddFame(codficha);
this.handleAddComor(codficha);
this.handleDeleteEvent(codficha); //recien aca llamamos al delete event porque no es conveniente eliminar al darle el boton de eliminar luego, recien cuando le da al boton de guardar cambios va eliminar de la base
this.handleDeleteMani(codficha);
this.handleDeleteFame(codficha);
this.handleDeleteComor(codficha);
}
async handleDeleteEvent(codficha) {
const urlAux1 =
"http://127.0.0.1:8000/api/eventocardio_ficha/?codeventocardio=";
const urlAux2 = "&codficha=";
const urlDelete = "http://127.0.0.1:8000/api/eventocardio_ficha/";
let listDelete = this.state.eventListDelete; //este eventListDelete cargamos mas arriba en la funcion de eliminar de la tabla
let codevencardofic;
for (let item = 0; item < listDelete.length; item++) {
//iteramos sobre el listDelete
const url =
urlAux1 + listDelete[item].codeventocardio + urlAux2 + codficha; //este es la url para buscar el eventocardio en la tabla
await axios
.get(url)
.then(function(response) {
codevencardofic = response.data[0].codevencardofic; //este cod que trae es el que vamos a usar para el delete
})
.catch(function(error) {
console.log(error);
});
await fetch(urlDelete + codevencardofic, { method: "DELETE" }) //aca usamos la url mas el cod que trajimos porque solo de esa forma mermite eliminar
.then(function(response) {
if (response.ok) {
return response.json();
} else {
return new Error("No se recibio la respuesta esperada ...");
}
})
.then(function(response) {
console.log(response);
})
.catch(error => {
console.log(error);
});
}
}
async handleDeleteFame(codficha) {
const urlAux1f = "http://127.0.0.1:8000/api/famesficha/?codfame=";
const urlAux2f = "&codficha=";
const urlDeletef = "http://127.0.0.1:8000/api/famesficha/";
let listDelete = this.state.famesListDelete; //este eventListDelete cargamos mas arriba en la funcion de eliminar de la tabla
let codfameficha;
for (let item = 0; item < listDelete.length; item++) {
//iteramos sobre el listDelete
const url = urlAux1f + listDelete[item].codfame + urlAux2f + codficha; //este es la url para buscar el eventocardio en la tabla
await axios
.get(url)
.then(function(response) {
codfameficha = response.data[0].codfameficha; //este cod que trae es el que vamos a usar para el delete
})
.catch(function(error) {
console.log(error);
});
await fetch(urlDeletef + codfameficha, { method: "DELETE" }) //aca usamos la url mas el cod que trajimos porque solo de esa forma mermite eliminar
.then(function(response) {
if (response.ok) {
return response.json();
} else {
return new Error("No se recibio la respuesta esperada ...");
}
})
.then(function(response) {
console.log(response);
})
.catch(error => {
console.log(error);
});
}
}
async handleDeleteComor(codficha) {
const urlAux1c = "http://127.0.0.1:8000/api/comorbilidad/?codenfermedad=";
const urlAux2c = "&codficha=";
const urlDeletec = "http://127.0.0.1:8000/api/comorbilidad/";
let listDelete = this.state.comorListDelete; //este eventListDelete cargamos mas arriba en la funcion de eliminar de la tabla
let codcomor;
for (let item = 0; item < listDelete.length; item++) {
//iteramos sobre el listDelete
const url =
urlAux1c + listDelete[item].codenfermedad + urlAux2c + codficha; //este es la url para buscar el eventocardio en la tabla
await axios
.get(url)
.then(function(response) {
codcomor = response.data[0].codcomor; //este cod que trae es el que vamos a usar para el delete
})
.catch(function(error) {
console.log(error);
});
await fetch(urlDeletec + codcomor, { method: "DELETE" }) //aca usamos la url mas el cod que trajimos porque solo de esa forma mermite eliminar
.then(function(response) {
if (response.ok) {
return response.json();
} else {
return new Error("No se recibio la respuesta esperada ...");
}
})
.then(function(response) {
console.log(response);
})
.catch(error => {
console.log(error);
});
}
}
async handleDeleteMani(codficha) {
const urlAux1m = "http://127.0.0.1:8000/api/manif/?codmanif=";
const urlAux2m = "&codficha=";
const urlDeletem = "http://127.0.0.1:8000/api/manif/";
let listDelete = this.state.maniListDelete; //este eventListDelete cargamos mas arriba en la funcion de eliminar de la tabla
let codmanifficha;
for (let item = 0; item < listDelete.length; item++) {
//iteramos sobre el listDelete
const url = urlAux1m + listDelete[item].codmanif + urlAux2m + codficha; //este es la url para buscar el eventocardio en la tabla
await axios
.get(url)
.then(function(response) {
codmanifficha = response.data[0].codmanifficha; //este cod que trae es el que vamos a usar para el delete
})
.catch(function(error) {
console.log(error);
});
await fetch(urlDeletem + codmanifficha, { method: "DELETE" }) //aca usamos la url mas el cod que trajimos porque solo de esa forma mermite eliminar
.then(function(response) {
if (response.ok) {
return response.json();
} else {
return new Error("No se recibio la respuesta esperada ...");
}
})
.then(function(response) {
console.log(response);
})
.catch(error => {
console.log(error);
});
}
}
async handleAddComor(codficha) {
const list = this.state.comorListTableNew;
for (let item = 0; item < list.length; item++) {
let comor = {
codficha: codficha,
codenfermedad: list[item].codenfermedad,
fechadiagnostico: list[item].fechadiagnostico
};
await fetch("http://127.0.0.1:8000/api/comorbilidad/", {
method: "POST", // or 'PUT'
body: JSON.stringify(comor), // data can be `string` or {object}!
headers: {
"Content-Type": "application/json"
}
})
.then(res => res.json())
.catch(error => console.error("Error:", error))
.then(response => {
console.log(response);
});
}
}
async handleAddEvento(codficha) {
console.log(
"se imprime la lista de eventos a cargar" + this.state.eventListTableNew
);
const list = this.state.eventListTableNew;
for (let item = 0; item < list.length; item++) {
let evento = {
codficha: codficha,
codeventocardio: list[item].codeventocardio
};
await fetch("http://127.0.0.1:8000/api/eventocardio_ficha/", {
method: "POST", // or 'PUT'
body: JSON.stringify(evento), // data can be `string` or {object}!
headers: {
"Content-Type": "application/json"
}
})
.then(res => res.json())
.catch(error => console.error("Error:", error))
.then(response => {
console.log(response);
});
}
}
async handleAddFame(codficha) {
const list = this.state.famesListTableNew;
for (let item = 0; item < list.length; item++) {
let fame = {
codficha: codficha,
codfame: list[item].codfame,
fechadesde: list[item].fechadesde,
fechahasta: list[item].fechahasta
};
await fetch("http://127.0.0.1:8000/api/famesficha/", {
method: "POST", // or 'PUT'
body: JSON.stringify(fame), // data can be `string` or {object}!
headers: {
"Content-Type": "application/json"
}
})
.then(res => res.json())
.catch(error => console.error("Error:", error))
.then(response => {
console.log(response);
});
}
}
async handleAddMani(codficha) {
const list = this.state.maniListTableNew;
for (let item = 0; item < list.length; item++) {
let mani = {
codficha: codficha,
codmanif: list[item].codmanif
};
await fetch("http://127.0.0.1:8000/api/manif/", {
method: "POST", // or 'PUT'
body: JSON.stringify(mani), // data can be `string` or {object}!
headers: {
"Content-Type": "application/json"
}
})
.then(res => res.json())
.catch(error => console.error("Error:", error))
.then(response => {
console.log(response);
});
}
}
toggleFame() {
this.setState({
toggleFame: !this.state.toggleFame
});
}
toggleComor() {
this.setState({
toggleComor: !this.state.toggleComor
});
}
toggleEvento() {
this.setState({
toggleEvento: !this.state.toggleEvento
});
}
toggleMani() {
this.setState({
toggleMani: !this.state.toggleMani
});
}
formatDate(date) {
var monthNames = [
"Enero",
"Febrero",
"Marzo",
"April",
"Mayo",
"Junio",
"Julio",
"Agosto",
"Septiembre",
"Octubre",
"Noviembre",
"Diciembre"
];
var day = date.getUTCDate();
var monthIndex = date.getMonth();
var year = date.getFullYear();
return day + " " + monthNames[monthIndex] + " " + year;
}
render() {
return (
<Container style={{ marginTop: 20 }}>
<Card style={{ backgroundColor: "#F9FCFB" }}>
<CardHeader style={{ backgroundColor: "#07689F" }}>
<h2 style={{ backgroundColor: "#07689F", color: "#FFFFFF" }}>
Datos Personales
</h2>
</CardHeader>
<CardBody>
<Row>
<Col>
<FormGroup>
<Label for="nombres">Nombres</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.nombres}
name="nombres"
id="nombres"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="apellidos">Apellidos</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.apellidos}
name="apellidos"
id="apellidos"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="nhc">NHC</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.nhc}
name="nhc"
id="nhc"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="fechainclusion">Fecha de Inclusión</Label>
<Input
type="date"
onChange={this.handleChange}
value={this.state.datosFicha.fechainclusion}
name="fechainclusion"
id="fechainclusion"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="tipodocumento">Tipo Documento</Label>
<Input
type="select"
onChange={this.handleChange}
value={this.state.datosFicha.tipodocumento}
name="tipodocumento"
id="tipodocumento"
>
<option>Cédula de Identidad</option>
<option>Pasaporte</option>
<option>No Aplica</option>
</Input>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="nrodocumento">Nro. Documento:</Label>
<Input
type="number"
onChange={this.validarCedula}
value={this.state.datosFicha.nrodocumento}
name="nrodocumento"
id="nrodocumento"
/>
<Label style={{ color: "red", fontSize: 12 }}>
{this.state.errores.nrodocumento}
</Label>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="procedencia">Procedencia</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.procedencia}
name="procedencia"
id="procedencia"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="fechanaci">Fecha de Nacimiento</Label>
<Input
type="date"
onChange={this.handleChange}
value={this.state.datosFicha.fechanaci}
name="fechanaci"
id="fechanaci"
/>
<Label style={{ color: "red", fontSize: 12 }}>
{this.state.errores.fechanaci}
</Label>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="telefono">Teléfono</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.telefono}
name="telefono"
id="telefono"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="nacionalidad">Nacionalidad</Label>
<Input
type="select"
onChange={this.handleChange}
value={this.state.datosFicha.nacionalidad}
name="nacionalidad"
id="nacionalidad"
>
<option>Paraguaya/o</option>
<option>Argentina/o</option>
<option>Brasilero/a</option>
<option>Otro</option>
</Input>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="estadocivil">Estado Civil</Label>
<Input
type="select"
onChange={this.handleChange}
value={this.state.datosFicha.estadocivil}
name="estadocivil"
id="estadocivil"
>
<option>Soltero/o</option>
<option>Casado/o</option>
<option>Viudo/a</option>
<option>Unido/a</option>
<option>Separado/a</option>
<option>Divorciado/a</option>
</Input>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="sexo">Sexo</Label>
<Input
type="select"
name="sexo"
onChange={this.handleChange}
value={this.state.datosFicha.sexo}
id="sexo"
>
<option>F</option>
<option>M</option>
</Input>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="escolaridad">Escolaridad</Label>
<Input
type="select"
onChange={this.handleChange}
value={this.state.datosFicha.escolaridad}
name="escolaridad"
id="escolaridad"
>
<option>Educación Inicial</option>
<option>Primaria</option>
<option>Secundaria</option>
<option>Escolar Básica</option>
<option>Escolar Media</option>
<option>Universitario</option>
<option>No Aplica</option>
</Input>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="profesion">Profesión</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.profesion}
name="profesion"
id="profesion"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="diagnostico">Dx</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.diagnostico}
name="diagnostico"
id="diagnostico"
/>
<Label style={{ color: "red", fontSize: 12 }}>
{this.state.errores.diagnostico}
</Label>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="fechadiagnos">Fecha de Dx</Label>
<Input
type="date"
onChange={this.handleChange}
value={this.state.datosFicha.fechadiagnos}
name="fechadiagnos"
id="fechadiagnos"
/>
<Label style={{ color: "red", fontSize: 12 }}>
{this.state.errores.fechadiagnos}
</Label>
</FormGroup>
</Col>
</Row>
</CardBody>
</Card>
<hr />
<Card style={{ backgroundColor: "#F9FCFB" }}>
<CardHeader style={{ backgroundColor: "#133E7C", color: "white" }}>
<h3>Datos de la Ficha HA</h3>
</CardHeader>
<CardBody>
<Row>
<Col>
<FormGroup>
<Label for="iniciosint">Fecha Inicio de los Síntomas</Label>
<Input
type="date"
onChange={this.handleChange}
value={this.state.datosFicha.iniciosint}
name="iniciosint"
id="iniciosint"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="formainic">Forma de Inicio</Label>
<Input
type="select"
onChange={this.handleChange}
value={this.state.datosFicha.formainic}
name="formainic"
id="formainic"
defaultValue="Mono"
>
<option>Mono</option>
<option>Oligo</option>
<option>Poli</option>
</Input>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="apf">APF Reumáticos de Interés</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.apf}
name="apf"
id="apf"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="apfcv">APF CV</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.apfcv}
name="apfcv"
id="apfcv"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="appfractura">APP de Fracturas</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.appfractura}
name="appfractura"
id="appfractura"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="apffractura">APF de Fracturas</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.apffractura}
name="apffractura"
id="apffractura"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="protesissitio">
Prótesis Articulares - Sitio
</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.protesissitio}
name="protesissitio"
id="protesissitio"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="protefecha">Prótesis Articulares - Fecha</Label>
<Input
type="date"
onChange={this.handleChange}
value={this.state.datosFicha.protefecha}
name="protefecha"
id="protefecha"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="apfneoplasias">APF de Neoplasias</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.apfneoplasias}
name="apfneoplasias"
id="apfneoplasias"
/>
</FormGroup>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="6">
<h5>Eventos Cardiovasculares</h5>
<Card style={{ padding: 10 }}>
<Row style={{ marginBottom: 10 }}>
<Col>
<AutoComplete
value={this.state.eventocardio}
suggestions={this.state.suggestions}
completeMethod={this.filterEvento}
field="nombre"
size={35}
placeholder="Evento Cardiovascular"
minLength={1}
onChange={this.onChangeEventoCardio}
onSelect={this.onSelectEventoCardio}
/>
<Button
color="primary"
onClick={this.addEventToList}
style={{ marginLeft: 5 }}
>
Agregar
</Button>
<Button
color="success"
onClick={this.toggleEvento}
style={{ marginLeft: 5 }}
>
Nuevo
</Button>
</Col>
<Modal
show={this.state.toggleEvento}
onHide={this.toggleEvento}
>
<Modal.Body>
<EventoCardiovascular />
</Modal.Body>
</Modal>
</Row>
<Row>
<Col>
<BootstrapTable
keyField="codeventocardio"
data={this.state.eventListTable}
columns={this.state.columnsEvent}
selectRow={{
mode: "radio",
clickToSelect: true,
onSelect: (row, isSelect, rowIndex, e) => {
console.log("row.id" + row.codeventocardio);
console.log("isSelect" + isSelect);
console.log("rowIndex" + rowIndex);
this.setState({
eventListTableSelected: rowIndex
});
}
}}
/>
</Col>
</Row>
<Row>
<Col>
<Button onClick={this.eliminarEvento}>Eliminar</Button>
</Col>
</Row>
</Card>
</Col>
<Col xs="6">
<h5>Manifestaciones Extra Articulares</h5>
<Card style={{ padding: 10 }}>
<Row style={{ marginBottom: 10 }}>
<Col>
<AutoComplete
value={this.state.mani}
suggestions={this.state.suggestions}
completeMethod={this.filterMani}
field="nombre"
size={35}
placeholder="Manifestación Extra Articular"
minLength={1}
onChange={this.onChangeMani}
onSelect={this.onSelectMani}
/>
<Button
color="primary"
onClick={this.addManiToList}
style={{ marginLeft: 5 }}
>
Agregar
</Button>
<Button
color="success"
onClick={this.toggleMani}
style={{ marginLeft: 5 }}
>
Nuevo
</Button>
</Col>
<Modal
show={this.state.toggleMani}
onHide={this.toggleMani}
>
<Modal.Body>
<Manifestaciones />
</Modal.Body>
</Modal>
</Row>
<Row>
<Col>
<BootstrapTable
keyField="codmanif"
data={this.state.maniListTable}
columns={this.state.columnsMani}
selectRow={{
mode: "radio",
clickToSelect: true,
onSelect: (row, isSelect, rowIndex, e) => {
console.log("row.id" + row.codmanif);
console.log("isSelect" + isSelect);
console.log("rowIndex" + rowIndex);
this.setState({
maniListTableSelected: rowIndex
});
}
}}
/>
</Col>
</Row>
<Row>
<Col>
<Button onClick={this.eliminarMani}>Eliminar</Button>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<h5>APF-Comorbilidades</h5>
<Card style={{ padding: 10 }}>
<Row style={{ marginBottom: 10 }}>
<Col>
<AutoComplete
value={this.state.comorbilidad}
suggestions={this.state.suggestions}
completeMethod={this.filterComor}
field="nombre"
size={35}
placeholder="Comorbilidad"
minLength={1}
onChange={this.onChangeComor}
onSelect={this.onSelectComor}
/>
</Col>
<Col>
<Input
type="date"
onChange={e => {
this.setState({ fechaDxComor: e.target.value });
}}
value={this.state.fechaDxComor}
name="fechaDxComor"
id="fechaDxComor"
/>
</Col>
<Col>
<Button
color="primary"
onClick={this.addComorToList}
style={{ marginLeft: 5 }}
>
Agregar
</Button>
<Button
color="success"
onClick={this.toggleComor}
style={{ marginLeft: 5 }}
>
Nuevo
</Button>
</Col>
<Modal
show={this.state.toggleComor}
onHide={this.toggleComor}
>
<Modal.Body>
<Comorbilidad />
</Modal.Body>
</Modal>
</Row>
<Row>
<Col>
<BootstrapTable
keyField="codenfermedad"
data={this.state.comorListTable}
columns={this.state.columnsComor}
selectRow={{
mode: "radio",
clickToSelect: true,
onSelect: (row, isSelect, rowIndex, e) => {
console.log("row.id" + row.codenfermedad);
console.log("isSelect" + isSelect);
console.log("rowIndex" + rowIndex);
this.setState({
comorListTableSelected: rowIndex
});
}
}}
/>
</Col>
</Row>
<Row>
<Col>
<Button onClick={this.eliminarComor}>Eliminar</Button>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20, marginTop: 20 }}>
<Col>
<h5>Fames</h5>
<Card style={{ padding: 10 }}>
<Row style={{ marginBottom: 10 }}>
<Col>
<Label>Fármaco</Label>
<AutoComplete
value={this.state.fame}
suggestions={this.state.suggestions}
completeMethod={this.filterFame}
field="nombre"
size={25}
placeholder="Fames"
minLength={1}
onChange={this.onChangeFame}
onSelect={this.onSelectFame}
/>
</Col>
<Col>
<Label>Desde</Label>
<Input
type="date"
onChange={e => {
this.setState({ fameDesde: e.target.value });
}}
value={this.state.fameDesde}
name="fameDesde"
id="fameDesde"
style={{ width: 180 }}
/>
</Col>
<Col>
<Label>Hasta</Label>
<Input
type="date"
style={{ width: 180 }}
onChange={e => {
this.setState({ fameHasta: e.target.value });
}}
value={this.state.fameHasta}
name="fameHasta"
id="fameHasta"
/>
</Col>
<Col>
<Button
color="primary"
onClick={this.addFameToList}
style={{ margin: 5 }}
>
Agregar
</Button>
<Button
color="success"
onClick={this.toggleFame}
style={{ margin: 5 }}
>
Nuevo
</Button>
</Col>
<Modal
show={this.state.toggleFame}
onHide={this.toggleFame}
>
<Modal.Body>
<Fame />
</Modal.Body>
</Modal>
</Row>
<Row>
<Col>
<BootstrapTable
keyField="codfame"
data={this.state.famesListTable}
columns={this.state.columnsFames}
selectRow={{
mode: "radio",
clickToSelect: true,
onSelect: (row, isSelect, rowIndex, e) => {
console.log("row.id" + row.codfame);
console.log("isSelect" + isSelect);
console.log("rowIndex" + rowIndex);
this.setState({
famesListTableSelected: rowIndex
});
}
}}
/>
</Col>
</Row>
<Row>
<Col>
<Button onClick={this.eliminarFame}>Eliminar</Button>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Card style={{ padding: 20, marginLeft: 20 }}>
<Row>
<Col>
<FormGroup check>
<input
type="checkbox"
checked={this.state.datosFicha.sedentarismo}
onChange={this.handleChange}
value={this.state.datosFicha.sedentarismo}
name="sedentarismo"
id="sedentarismo"
/>
<Row>
<Label check>Sedentarismo</Label>
</Row>
</FormGroup>
</Col>
<Col>
<FormGroup check>
<input
type="checkbox"
checked={this.state.datosFicha.actifisica}
onChange={this.handleChange}
value={this.state.datosFicha.actifisica}
name="actifisica"
id="actifisica"
/>
<Label check>Actividad Física</Label>
</FormGroup>
</Col>
</Row>
</Card>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<FormGroup check>
<input
type="checkbox"
onChange={this.handleChange}
checked={this.state.datosFicha.extabaq}
value={this.state.datosFicha.extabaq}
name="extabaq"
id="extabaq"
/>
<Row>
{" "}
<Label check>Ex Tabaquista</Label>{" "}
</Row>
</FormGroup>
</Col>
<Col>
<FormGroup check>
<input
type="checkbox"
checked={this.state.datosFicha.tabaquismo}
onChange={this.handleChange}
value={this.state.datosFicha.tabaquismo}
name="tabaquismo"
id="tabaquismo"
/>
<Row>
{" "}
<Label check>Tabaquista</Label>{" "}
</Row>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="tabaqfecha">Fecha Inicio</Label>
<Input
type="date"
onChange={this.handleChange}
value={this.state.datosFicha.tabaqfecha}
name="tabaqfecha"
id="tabaqfecha"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="tabnumero">N° paq/año</Label>
<input
type="number"
onChange={this.handleChange}
onFocus={event => event.target.select()}
value={this.state.datosFicha.tabnumero}
name="tabnumero"
id="tabnumero"
/>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<h5>Antecedentes Ginecológicos</h5>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="menarca">Menarca</Label>
<Input
disabled={this.state.deshabilitar}
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.menarca}
name="menarca"
id="menarca"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="menopausia">Menopausia</Label>
<Input
disabled={this.state.deshabilitar}
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.menopausia}
name="menopausia"
id="menopausia"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="edadvidasex">
Edad de Inicio de Vida Sexual
</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.edadvidasex}
name="edadvidasex"
id="edadvidasex"
/>
</FormGroup>
</Col>
<Col>
<FormGroup check>
<input
disabled={this.state.deshabilitar}
type="checkbox"
checked={this.state.datosFicha.hisjospost}
onChange={this.handleChange}
value={this.state.datosFicha.hisjospost}
name="hisjospost"
id="hisjospost"
/>
<Label check>Hijos después del diagnóstico de AR</Label>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="gestas">Gestas</Label>
<Input
disabled={this.state.deshabilitar}
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.gestas}
name="gestas"
id="gestas"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="partos">Parto</Label>
<Input
disabled={this.state.deshabilitar}
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.partos}
name="partos"
id="partos"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="cesareas">Cesárea</Label>
<Input
disabled={this.state.deshabilitar}
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.cesareas}
name="cesareas"
id="cesareas"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="abortos">Abortos</Label>
<Input
disabled={this.state.deshabilitar}
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.abortos}
name="abortos"
id="abortos"
/>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<FormGroup>
<Label for="factorreuma_pos">FR (+)</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.factorreuma_pos}
name="factorreuma_pos"
id="factorreuma_pos"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="factorreuma_neg">FR (-)</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.factorreuma_neg}
name="factorreuma_neg"
id="factorreuma_neg"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<Label for="factorreuma_nivel">Nivel/VR</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.factorreuma_nivel}
name="factorreuma_nivel"
id="factorreuma_nivel"
/>
</Col>
</Row>
</Card>
</Col>
<Col>
<Card
style={{
padding: 20,
marginLeft: 20,
marginRight: 20
}}
>
<Row>
<Col>
<FormGroup>
<Label for="acpa_pos">ACPA (+)</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.acpa_pos}
name="acpa_pos"
id="acpa_pos"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="acpa_neg">ACPA (-)</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.acpa_neg}
name="acpa_neg"
id="acpa_neg"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<Label for="acpa_nivel">Nivel/VR</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.acpa_nivel}
name="acpa_nivel"
id="acpa_nivel"
/>
</Col>
</Row>
</Card>
</Col>
<Col>
<Card style={{ padding: 20, marginBottom: 20 }}>
<Row>
<Col>
<FormGroup>
<Label for="ana_pos">ANA (+)</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.ana_pos}
name="ana_pos"
id="ana_pos"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="ana_neg">ANA (-)</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.ana_neg}
name="ana_neg"
id="ana_neg"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<Label for="ana_patron">Dilución/Patrón</Label>
<Input
type="select"
onChange={this.handleChange}
value={this.state.datosFicha.ana_patron}
name="ana_patron"
id="ana_patron"
>
<option>Nuclear Homogéneo</option>
<option>Nuclear Moteado o Puntillado Fino</option>
<option>Nuclear Moteado Grueso</option>
<option>Nucleolar</option>
<option>Centromérico</option>
</Input>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<FormGroup check>
<input
type="checkbox"
checked={this.state.datosFicha.rxmanos}
onChange={this.handleChange}
value={this.state.datosFicha.rxmanos}
name="rxmanos"
id="rxmanos"
/>
<Label check>RX Manos </Label>
</FormGroup>
</Col>
<Col>
<Row>
<FormGroup>
<Label for="rxmanosfecha">Fecha de RX Manos</Label>
<Input
type="date"
onChange={this.handleChange}
value={this.state.datosFicha.rxmanosfecha}
name="rxmanosfecha"
id="rxmanosfecha"
/>
</FormGroup>
</Row>
</Col>
</Row>
</Card>
</Col>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<FormGroup check>
<input
type="checkbox"
checked={this.state.datosFicha.rxpies}
onChange={this.handleChange}
value={this.state.datosFicha.rxpies}
name="rxpies"
id="rxpies"
/>
<Label check>RX Pies </Label>
</FormGroup>
</Col>
<Col>
<Row>
<FormGroup>
<Label for="rxpiesfecha">Fecha de RX Pies</Label>
<Input
type="date"
onChange={this.handleChange}
value={this.state.datosFicha.rxpiesfecha}
name="rxpiesfecha"
id="rxpiesfecha"
/>
</FormGroup>
</Row>
</Col>
</Row>
</Card>
</Col>
</Row>
</CardBody>
</Card>
<Button
onClick={this.handleUpdate}
color="primary"
style={{ marginTop: 20 }}
>
Guardar Cambios
</Button>
<SweetAlert
success
onConfirm={this.alertConfirm}
show={this.state.alertCreado}
>
Ficha HA modificada con éxito!
</SweetAlert>
{" "}
<Button
onClick={this.props.history.goBack}
appearance="primary"
style={{ marginTop: 20 }}
>
Atras
</Button>
</Container>
);
}
}
export default FichaEdit;
<file_sep>/src/components/laboratorio/menuLab.jsx
import React, { Component } from "react";
import {
Container,
Row,
Card,
ListGroupItem,
ListGroup,
FormGroup,
Progress,
Label,
Badge
} from "reactstrap";
import OrdenEstudioViewLab from "./ordenestudioViewLab";
import { FlexboxGrid, Button, Divider, Icon, Col, Modal, Alert } from "rsuite";
import { Link } from "react-router-dom";
import { Table, IconButton, CustomWhisper } from "rsuite";
import axios from "axios";
import NavBarFrescaLab from "./../navbarlab";
const { Column, HeaderCell, Cell } = Table;
//import "rsuite/dist/styles/rsuite.css";
class MenuLab extends Component {
constructor(props) {
super(props);
this.state = {
datosOrdenPendiente: [],
datosEstudio: [],
datosPaciente: [],
datosAgendarTurno: [],
datosTurno: [],
datosPendienteResultado: [],
datosTurnoAgendados: [],
toggleOrdenAgendar: false,
codOrdenAgendar: 0,
codFichaAgendar: 0
};
this.toggleOrdenAgendar = this.toggleOrdenAgendar.bind(this);
this.getDatosOrden = this.getDatosOrden.bind(this);
this.getDatosEstudio = this.getDatosEstudio.bind(this);
this.getDatosPaciente = this.getDatosPaciente.bind(this);
this.getDatosTurno = this.getDatosTurno.bind(this);
this.generarListaAgendar = this.generarListaAgendar.bind(this);
this.consumirTurno = this.consumirTurno.bind(this);
}
async componentWillMount() {
await this.getDatosOrden();
await this.getDatosEstudio();
await this.getDatosPaciente();
await this.getDatosTurno();
this.generarListaAgendar();
}
async getDatosTurno() {
const url1 = "http://127.0.0.1:8000/api/turno";
let datosTurno = [];
await axios //osea es traer esto vd? asi mismi pero ahi no le vas a hacer el
.get(url1)
.then(function(response) {
datosTurno = response.data;
})
.catch(function(error) {
console.log(error);
});
this.setState({
datosTurno: datosTurno
});
console.log("datosTurno", datosTurno);
}
async getDatosPaciente() {
const url1 = "http://127.0.0.1:8000/api/ficha";
let datosPaciente = [];
await axios //osea es traer esto vd? asi mismi pero ahi no le vas a hacer el
.get(url1)
.then(function(response) {
datosPaciente = response.data;
})
.catch(function(error) {
console.log(error);
});
this.setState({
datosPaciente: datosPaciente
});
console.log(datosPaciente);
}
async getDatosEstudio() {
const url1 = "http://127.0.0.1:8000/api/estudio";
let datosEstudio = [];
await axios //osea es traer esto vd? asi mismi pero ahi no le vas a hacer el
.get(url1)
.then(function(response) {
datosEstudio = response.data;
})
.catch(function(error) {
console.log(error);
});
this.setState({
datosEstudio: datosEstudio
});
console.log(datosEstudio);
}
async getDatosOrden() {
const url1 = "http://127.0.0.1:8000/api/ordenestudio";
let datosOrden = [];
await axios //osea es traer esto vd? asi mismi pero ahi no le vas a hacer el
.get(url1)
.then(function(response) {
datosOrden = response.data;
})
.catch(function(error) {
console.log(error);
});
this.setState({
datosOrdenPendiente: datosOrden.filter(item => {
return item.estado === "Pendiente";
}),
datosTurnoAgendados: datosOrden.filter(item => {
return item.estado === "Agendado";
}),
datosPendienteResultado: datosOrden.filter(item => {
return item.estado === "Pend. Archivo";
})
});
console.log(datosOrden);
}
toggleOrdenAgendar() {
this.setState({
toggleOrdenAgendar: !this.state.toggleOrdenAgendar
});
}
generarListaAgendar() {
let lista1 = this.state.datosOrdenPendiente;
let lista2 = this.state.datosTurnoAgendados;
let lista3 = this.state.datosPendienteResultado;
let estudios = this.state.datosEstudio;
let pacientes = this.state.datosPaciente;
let turnos = this.state.datosTurno;
let listAgendar = [];
let listTurno = [];
let listPendiente = [];
console.log(lista1);
for (let i = 0; i < lista1.length; i++) {
const element = {
codordenestudio: lista1[i].codordenestudio,
codficha: lista1[i].codficha,
estudio: estudios.filter(item => {
return lista1[i].codestudio === item.codestudio;
})[0].nombre,
nombre:
pacientes.filter(item => {
return lista1[i].codficha === item.codficha;
})[0].nombres +
" " +
pacientes.filter(item => {
return lista1[i].codficha === item.codficha;
})[0].apellidos,
estado: lista1[i].estado
};
listAgendar.push(element);
}
for (let i = 0; i < turnos.length; i++) {
const codestudio = lista2.filter(item => {
return turnos[i].codordenestudio === item.codordenestudio;
})[0];
if (codestudio !== undefined) {
const element = {
codordenestudio: turnos[i].codordenestudio,
codturno: turnos[i].codturno,
codficha: turnos[i].codficha,
estudio: estudios.filter(item => {
return codestudio.codestudio === item.codestudio;
})[0].nombre,
nombre:
pacientes.filter(item => {
return turnos[i].codficha === item.codficha;
})[0].nombres +
" " +
pacientes.filter(item => {
return turnos[i].codficha === item.codficha;
})[0].apellidos,
estado: turnos[i].estado
};
listTurno.push(element);
}
}
for (let i = 0; i < lista3.length; i++) {
const element = {
codordenestudio: lista3[i].codordenestudio,
estudio: estudios.filter(item => {
return lista3[i].codestudio === item.codestudio;
})[0].nombre,
nombre:
pacientes.filter(item => {
return lista3[i].codficha === item.codficha;
})[0].nombres +
" " +
pacientes.filter(item => {
return lista3[i].codficha === item.codficha;
})[0].apellidos,
estado: lista3[i].estado
};
listPendiente.push(element);
}
console.log("list3", lista3);
this.setState({
datosAgendarTurno: listAgendar,
datosPendienteResultado: listPendiente,
datosTurnoAgendados: listTurno
});
}
async consumirTurno(codordenestudio) {
const url2 =
"http://127.0.0.1:8000/api/ordenestudio/" + codordenestudio + "/";
await axios
.put(url2, { estado: "Pend. Archivo" })
.then(function(response) {
console.log(response);
Alert.success("Estudio a pasado a la espera del resultado", 2000);
})
.catch(function(error) {
console.log(error);
});
await this.getDatosOrden();
await this.getDatosEstudio();
await this.getDatosPaciente();
this.generarListaAgendar();
}
render() {
return (
<div>
<Modal
show={this.state.toggleOrdenAgendar}
onHide={async () => {
this.setState({
toggleOrdenAgendar: !this.state.toggleOrdenAgendar
});
await this.getDatosOrden();
await this.getDatosEstudio();
await this.getDatosPaciente();
await this.getDatosTurno();
this.generarListaAgendar();
}}
style={{ width: "60%", height: "80%" }}
>
<Modal.Body>
<OrdenEstudioViewLab
codordenestudio={this.state.codOrdenAgendar}
codficha={this.state.codFichaAgendar}
/>
</Modal.Body>
</Modal>
<NavBarFrescaLab />
<FlexboxGrid align="center">
<FlexboxGrid.Item
colSpan={8}
style={{ paddingBottom: 10, marginTop: 50 }}
>
<div
style={{
padding: 0,
borderLeft: "5px solid",
width: 480,
borderLeftColor: "#07689F ", //"rgba(90, 154, 255, 0.6)",
borderRadius: "5px",
borderTop: "0.5px solid",
borderRight: "0.5px solid",
borderBottom: "0.5px solid",
borderTopColor: "#eee",
borderRightColor: "#eee",
borderBottomColor: "#eee",
fontSize: 12
// color: "#eee"
}}
>
<FormGroup className="text-center">
<h3>Agendar Turno</h3>
<Label style={{ margin: 5 }}>Total Pacientes: </Label>
<Badge pill>4</Badge>
</FormGroup>
<div>
<Table
height={500}
data={this.state.datosAgendarTurno}
style={{
textDecoration: "none",
"&:hover": {
textDecoration: "none"
}
}}
>
<Column width={50} resizable>
<HeaderCell> </HeaderCell>
<Cell>
{rowData => {
const toggle = () => {
this.toggleOrdenAgendar();
this.setState({
codOrdenAgendar: rowData.codordenestudio,
codFichaAgendar: rowData.codficha
});
};
return (
<span>
<IconButton
appearance="subtle"
onClick={toggle}
icon={
<Icon
icon="calendar-check-o"
style={{ color: "#07689F" }}
/>
}
/>
</span>
);
}}
</Cell>
</Column>
<Column width={100} resizable>
<HeaderCell>Estudio</HeaderCell>
<Cell dataKey="estudio" />
</Column>
<Column width={180} resizable>
<HeaderCell>Paciente</HeaderCell>
<Cell dataKey="nombre" />
</Column>
<Column width={90} resizable>
<HeaderCell>Estado</HeaderCell>
<Cell dataKey="estado" />
</Column>
</Table>
</div>
</div>
</FlexboxGrid.Item>
<FlexboxGrid.Item
colSpan={8}
style={{ paddingBottom: 10, marginTop: 50 }}
>
<div
style={{
padding: 0,
textDecorationColor: "#43a26f",
stopColor: "#43a26f",
borderLeft: "5px solid",
colorAdjust: "#43a26f",
width: 480,
borderLeftColor: "#17a2b8", //"rgba(90, 154, 255, 0.6)",
borderRadius: "5px",
borderTop: "0.5px solid",
borderRight: "0.5px solid",
borderBottom: "0.5px solid",
borderTopColor: "#eee",
borderRightColor: "#eee",
borderBottomColor: "#eee",
fontSize: 12
// color: "#eee"
}}
>
<FormGroup className="text-center">
<h3>Pendientes de Estudio</h3>
<Label style={{ margin: 5 }}>Total Pacientes: </Label>
<Badge pill>4</Badge>
</FormGroup>
<div>
<Table height={500} data={this.state.datosTurnoAgendados}>
<Column width={50} resizable>
<HeaderCell> </HeaderCell>
<Cell>
{rowData => {
const handleAgendar = () => {
this.consumirTurno(rowData.codordenestudio);
};
return (
<span>
<IconButton
appearance="subtle"
onClick={handleAgendar}
icon={
<Icon
icon="file-text-o"
style={{ color: "#17a2b8" }}
/>
}
/>
</span>
);
}}
</Cell>
</Column>
<Column width={100} resizable>
<HeaderCell>Estudio</HeaderCell>
<Cell dataKey="estudio" />
</Column>
<Column width={180} resizable>
<HeaderCell>Paciente</HeaderCell>
<Cell dataKey="nombre" />
</Column>
<Column width={90} resizable>
<HeaderCell>Estado</HeaderCell>
<Cell dataKey="estado" />
</Column>
</Table>
</div>
</div>
</FlexboxGrid.Item>
<FlexboxGrid.Item
colSpan={8}
style={{ paddingBottom: 10, marginTop: 50 }}
>
<div
style={{
padding: 0,
borderLeft: "5px solid",
width: 480,
borderLeftColor: "#cde1ec", //"rgba(90, 154, 255, 0.6)",
borderRadius: "5px",
borderTop: "0.5px solid",
borderRight: "0.5px solid",
borderBottom: "0.5px solid",
borderTopColor: "#eee",
borderRightColor: "#eee",
borderBottomColor: "#eee",
fontSize: 12,
marginBottom: 15
// color: "#eee"
}}
>
<FormGroup className="text-center">
<h3>Pendientes de Resultado de Estudio</h3>
<Label style={{ margin: 5 }}>Total Pacientes: </Label>
<Badge pill>4</Badge>
</FormGroup>
<div>
<Table
height={500}
data={this.state.datosPendienteResultado}
style={{
textDecoration: "none",
"&:hover": {
textDecoration: "none"
}
}}
>
<Column width={50} resizable>
<HeaderCell> </HeaderCell>
<Cell>
{rowData => {
const toggle = () => {
this.toggleOrdenAgendar();
this.setState({
codOrdenAgendar: rowData.codordenestudio,
codFichaAgendar: rowData.codficha
});
};
return (
<span>
<IconButton
appearance="subtle"
onClick={toggle}
icon={
<Icon
icon="user-analysis"
style={{ color: "#cde1ec" }}
/>
}
/>
</span>
);
}}
</Cell>
</Column>
<Column width={100} resizable>
<HeaderCell>Estudio</HeaderCell>
<Cell dataKey="estudio" />
</Column>
<Column width={180} resizable>
<HeaderCell>Paciente</HeaderCell>
<Cell dataKey="nombre" />
</Column>
<Column width={90} resizable>
<HeaderCell>Estado</HeaderCell>
<Cell dataKey="estado" />
</Column>
</Table>
</div>
</div>
</FlexboxGrid.Item>
</FlexboxGrid>
</div>
);
}
}
export default MenuLab;
/*
<div>
<FlexboxGrid align="center" style={{ marginTop: 200 }}>
<FlexboxGrid.Item>
<ButtonLink
to="/buscar_paciente"
style={{ height: 400, width: 400 }}
onclick={this.handleClick}
>
<Icon
icon="search"
style={{
fontSize: 190,
color: "#156895",
marginBottom: 10,
paddingTop: 80
}}
/>
<Col>
<h3>Buscar Paciente</h3>
</Col>
</ButtonLink>
</FlexboxGrid.Item>
<Divider vertical style={{ height: 400 }} />
<FlexboxGrid.Item>
<ButtonLink to="/turnos" style={{ height: 400, width: 400 }}>
<Icon
icon="calendar-check-o"
style={{
fontSize: 190,
color: "#599815",
marginBottom: 10,
paddingTop: 80
}}
/>
<Col>
<h3>Gestionar Turnos</h3>
</Col>
</ButtonLink>
</FlexboxGrid.Item>
<Divider vertical style={{ height: 400 }} />
<FlexboxGrid.Item>
<ButtonLink to="/turnos" style={{ height: 400, width: 400 }}>
<Icon
icon="calendar"
style={{
fontSize: 190,
color: "#597015",
marginBottom: 10,
paddingTop: 80
}}
/>
<Col>
<h3>Pendientes: 12</h3>
</Col>
</ButtonLink>
</FlexboxGrid.Item>
</FlexboxGrid>
</div> */
<file_sep>/src/components/panolab/buscarPanolab.jsx
import React, { Component } from "react";
import {
Button,
Container,
Row,
InputGroup,
InputGroupAddon,
Col,
Form,
Input
} from "reactstrap";
import "bootstrap/dist/css/bootstrap.css";
import axios from "axios";
import { BrowserRouter as Router, Link } from "react-router-dom";
import { Alert, Icon } from "rsuite";
class BuscarPanolab extends Component {
constructor() {
super();
this.state = {
fechaPanolab: "",
listaPanolab: [],
fadeIn: false,
alert: false
};
this.handleChange = this.handleChange.bind(this);
this.handleSearch = this.handleSearch.bind(this);
this.formatDate = this.formatDate.bind(this);
}
handleChange(e) {
const target = e.target;
const value = target.type === "checkbox" ? target.checked : target.value;
const name = target.name;
this.setState({
[name]: value
});
}
async handleSearch() {
const url1 = "http://127.0.0.1:8000/api/panolab?fechapanolab=";
const codficha = "&codficha=";
let listado = [];
let respuesta;
const url_usar =
url1 +
this.state.fechaPanolab +
codficha +
this.props.match.params.codficha;
console.log(url_usar);
await axios
.get(url_usar) //y asi queda concatenado todo, si no hay fecha igual trae solo lo de esa ficha, vamos a probar
.then(function(response) {
if (response.data[0] === undefined) {
respuesta = null;
} else {
listado = response.data;
}
})
.catch(function(error) {
console.log(error);
});
if (respuesta === null) {
Alert.warning("No se encontra la Ficha Panorámica");
} else {
this.setState({
listaPanolab: listado
});
}
console.log(url1 + this.state.fechaPanolab);
console.log(this.props.match.params.codficha);
console.log(this.props.match.params.codpanolab);
}
formatDate(date) {
var monthNames = [
"Enero",
"Febrero",
"Marzo",
"April",
"Mayo",
"Junio",
"Julio",
"Augusto",
"Septiembre",
"Octubre",
"Noviembre",
"Diciembre"
];
var day = date.getUTCDate();
var monthIndex = date.getMonth();
var year = date.getFullYear();
return day + " " + monthNames[monthIndex] + " " + year;
}
render() {
let list = [];
list = this.state.listaPanolab;
console.log(list);
return (
<Container style={{ marginTop: 20 }}>
<Form inline>
<InputGroup>
<Input
type="date"
onChange={this.handleChange}
value={this.state.fechaPanolab}
name="fechaPanolab"
id="fechaPanolab"
/>
<InputGroupAddon addonType="append">
<Button
onClick={this.handleSearch}
style={{
marginRight: 10,
backgroundColor: "#563d7c",
color: "white"
}}
>
Buscar
</Button>
</InputGroupAddon>
</InputGroup>
<Link
to={`/menu_ficha/${
this.props.match.params.codficha
}/buscar_panolab/${this.props.match.params.codficha}/panolab/${
this.props.match.params.codficha //aca tiene que ser codpanolab, no ficha es. ese es para agregar nomas y todavia no vas a tener el codpanolab ,cierto
}`}
style={{ color: "white" }}
>
<Button
style={{ backgroundColor: "#563d7c", color: "white" }}
onClick={this.handleAdd}
>
Agregar Panorámica
</Button>
</Link>
</Form>
<hr />
<Container style={{ marginTop: 20 }}>
<Row>
<Col lg="7" md="7" sm="7">
{list.map(item => (
<div
style={{
borderLeft: "5px solid",
marginBottom: 15,
padding: 10,
borderLeftColor: "#563d7c",
borderRadius: "5px",
borderTop: "0.5px solid",
borderRight: "0.5px solid",
borderBottom: "0.5px solid",
borderTopColor: "#eee",
borderRightColor: "#eee",
borderBottomColor: "#eee"
// color: "#eee"
}}
>
<Link
style={{
color: "#563d7c",
textDecoration: "none",
"&:hover": {
textDecoration: "none"
}
}}
to={`/menu_ficha/${item.codficha}/buscar_panolab/${
item.codficha
}/panolab_view/${item.codpanolab}/${item.codficha}`}
>
<h4>
<strong>Fecha: </strong>{" "}
{this.formatDate(new Date(item.fechapanolab))}
<Icon
icon="angle-double-right"
size="2x"
style={{ float: "right" }}
/>
</h4>
<div
style={{
color: "#666666"
}}
>
<Row>
<Col>
<strong>Prótesis: </strong> {item.protesis}
</Col>
</Row>
<Row>
<Col>
<strong>Observación: </strong> {item.observacion}
</Col>
</Row>
</div>
</Link>
</div>
))}
</Col>
</Row>
</Container>
</Container>
);
}
}
export default BuscarPanolab;
<file_sep>/src/components/cuestionarios/haq.jsx
import React, { Component } from "react";
import {
Row,
Col,
Input,
Label,
Container,
Button,
FormGroup
} from "reactstrap";
class Haq extends Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
return (
<Container>
<Row
style={{ marginBottom: 20, marginTop: 20, justifyContent: "center" }}
>
<Col>
<h2>
<strong>
Health Assessment Questionnaires - (Cuestionario de evaluación
de salud)
</strong>
</h2>
<hr />
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>
1) Vestirse solo, incluyendo abrocharse los botones y
atarse los cordones de los zapatos?
</Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>2) Enjabonarse la cabeza? </Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>3) Levantarse de una silla sin brazos? </Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>4) Acostarse y levantarse de la cama? </Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>5) Cortar un filete de carne? </Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>6) Abrir un cartón de leche nuevo? </Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>7) Servirse la bebida? </Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>8) Caminar fuera de casa por un terreno llano? </Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>9) Subir cinco escalones? </Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>10) Lavarse y secarse todo el cuerpo? </Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>11) Sentarse y levantarse del retrete? </Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>12) Ducharse? </Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>
13) Recoger un paquete de azúcar de 1 Kg de una estantería
colocada por encima de su cabeza?
</Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>14) Agacharse y recoger ropa del suelo? </Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>15) Abrir la puerta de un coche? </Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>
16) Abrir tarros cerrados que ya antes habían sido abiertos?
</Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>17) Abrir y cerrar los grifos? </Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>18) Hacer los recados y las compras? </Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>19) Entrar y salir de un coche? </Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 30 }}>
<Col xs="8" lg="8" md="8">
<Label>
20) Hacer tareas de casa como barrer o lavar los platos?
</Label>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Sin dificultad</option>
<option>Con alguna dificultad </option>
<option>Con mucha dificultad</option>
<option>Incapaz de hacerlo </option>
</Input>
</Col>
</Row>
<Row>
<Col>
<h3>
Señale para qué actividades necesita la ayuda de otra persona:
</h3>
</Col>
</Row>
<Row style={{ marginBottom: 10 }}>
<Col>
<FormGroup check>
<Label check>
<Input type="checkbox" /> Vestirse, asearse
</Label>
</FormGroup>
</Col>
<Col>
<FormGroup check>
<Label check>
<Input type="checkbox" /> Levantarse
</Label>
</FormGroup>
</Col>
<Col>
<FormGroup check>
<Label check>
<Input type="checkbox" /> Comer
</Label>
</FormGroup>
</Col>
<Col>
<FormGroup check>
<Label check>
<Input type="checkbox" /> Higiene personal
</Label>
</FormGroup>
</Col>
<Col>
<FormGroup check>
<Label check>
<Input type="checkbox" /> Caminar Pasear
</Label>
</FormGroup>
</Col>
<Col>
<FormGroup check>
<Label check>
<Input type="checkbox" /> Alcanzar
</Label>
</FormGroup>
</Col>
</Row>
<Row style={{ marginTop: 40, marginBottom: 40 }}>
<Col>
<Button color="success">Agregar Cuestionario</Button>
</Col>
</Row>
</Container>
);
}
}
export default Haq;
<file_sep>/src/components/panolab/panolabForm.jsx
import React, { Component } from "react";
import {
Card,
Button,
CardHeader,
CardBody,
Container,
Row,
Col,
Form,
FormGroup,
Label,
Input
} from "reactstrap";
import { Alert, Icon } from "rsuite";
import axios from "axios";
import Joi from "joi-browser";
import { withRouter } from "react-router-dom";
import SweetAlert from "react-bootstrap-sweetalert";
const ColoredLine = ({ color }) => (
<hr
style={{
color: color,
backgroundColor: color,
height: 150,
width: 2,
borderleft: 1
}}
/>
);
class Panolab extends Component {
constructor() {
super();
this.state = {
intervalId: 0,
codPanolabReturn: "",
//alert
alertCreado: false,
errores: {},
visible: false,
datosPanolab: {
//datos correspondientes a la panoramica de laboratorio
codusuario: null, // código interno de usuario, para saber quién agrego la ficha panorámica de laboratorio, q esta bien el null aca
codficha: 0, // capaz y no le gustaba que se le pase aca
fechapanolab: "", //fecha de la panolab
protesis: "No", // el paciente tiene prótesis, sí o no
hemoglobina: null, // cantidad hemoglobina
hemotocrito: null, // cantidad hematocrito
vcm: null, // cantidad de volumen corpuscular medio
globlanco: null, // cantidad de glóbulos blancos
nl: null, // cantidad de neutrófilos/linfocitos
plaqueta: null, // cantidad de plaquetas
gotdesde: null, // transaminasa glutámico-oxalacética desde
gothasta: null, // transaminasa glutámico-oxalacética hasta
gptdesde: null, // transaminasa glutámico-pirúvica desde
gpthasta: null, // transaminasa glutámico-pirúvica hasta
bilirrubina: null, // cantidad total de bilirrubina
uresa: null, // cantidad de urea
vsg: null, // velocidad de sedimentación globular
pcr: null, // cantidad de proteína c reactiva
glicemia: null, // cantidad de glicemia
coleste: null, // cantidad total de colesterol
ldl: null, // low density lipoprotein
hdl: null, // high density lipoprotein
vldl: null, // very low density lipoprotein
trigliceri: null, // cantidad de triglicéridos
acidourico: null, // cantidad de ácido úrico
frdesde: null, // factor reumatoide desde
frhasta: null, // factor reumatoide hasta
anticcpneg: null, // cantidad de anticuerpo anti péptido citrulinado cíclico negativo
anticcppost: null, // cantidad de anticuerpo anti péptido citrulinado cíclico positivo
anticcpposd: "", // descripción para el anticcppost
anaposit: null, // cantidad de anticuerpo anti nuclear positivo
ananeg: null, // cantidad de anticuerpo anti nuclear negativo
antidnapos: null, // cantidad de anticuerpo anti DNA positivo
antidnaneg: null, // cantidad de anticuerpo anti DNA negativo
prot24: null, // proteinuria de 24hs
observacion: "", // información adicional que se puede incluir
fechacreada: 0 // fecha de creación de la orden de medicamento
}
};
this.schema = {
fechapanolab: Joi.string()
.required()
.label("Fecha Panorámica de Laboratorio no puede estar vacía")
};
this.handleChange = this.handleChange.bind(this);
this.handleAdd = this.handleAdd.bind(this);
this.onDismissVisivle = this.onDismissVisivle.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
this.alertConfirm = this.alertConfirm.bind(this);
}
alertConfirm() {
this.setState({ alertCreado: false });
this.props.history.push(
"/menu_ficha/" +
parseInt(this.props.match.params.codficha) +
"/buscar_panolab/" +
parseInt(this.props.match.params.codficha) +
"/panolab_view/" +
this.state.codPanolabReturn +
"/" +
parseInt(this.props.match.params.codficha)
);
}
handleChange(e) {
const target = e.target;
let fields = this.state.datosPanolab;
const value = target.type === "checkbox" ? target.checked : target.value;
const name = target.name;
fields[name] = value;
this.setState({
datosPanolab: fields
});
}
onDismissVisivle() {
this.setState({ visible: !this.state.visible });
}
handleSubmit() {
const errors = this.validar();
this.setState({ errores: errors || {} });
if (errors) return;
this.handleAdd();
}
validar = () => {
const result = Joi.validate(
{
fechapanolab: this.state.datosPanolab.fechapanolab
},
this.schema,
{
abortEarly: false
}
);
if (!result.error) return null;
console.log(result);
const errors = {};
for (let item of result.error.details)
errors[item.path[0]] = item.context.label;
return errors;
};
async handleAdd() {
let panolab = this.state.datosPanolab;
let codpanolab;
panolab["codficha"] = parseInt(this.props.match.params.codficha); //vamos a dejarle nomas jaja si vamos aprovar si func
await fetch("http://127.0.0.1:8000/api/panolab/", {
method: "POST", // or 'PUT'
body: JSON.stringify(panolab), // data can be `string` or {object}!
headers: {
"Content-Type": "application/json"
}
})
.then(res => res.json())
.catch(error => console.error("Error:", error))
// .then(response => {
// console.log(response);
// });
.then(response => {
if (response.codficha !== undefined && response.codficha !== null) {
codpanolab = response.codpanolab;
console.log(response);
this.setState({
alertCreado: true,
codPanolabReturn: codpanolab
});
}
});
this.setState({ visible: !this.state.visible });
}
async componentWillMount() {
const url1 = "http://127.0.0.1:8000/api/ficha?codficha=";
let datopaciente = {};
await axios
.get(url1 + this.props.match.params.codficha) //para este necesitamos el codpaciente
.then(function(response) {
console.log(response.data[0]);
datopaciente = response.data[0];
})
.catch(function(error) {
console.log(error);
});
this.setState({ datospaciente: datopaciente });
console.log(this.props.match.params.codficha);
}
scroll() {
let intervalId = setInterval(
this.scrollStep.bind(this),
this.props.delayInMs
);
//store the intervalId inside the state,
//so we can use it later to cancel the scrolling
this.setState({ intervalId: intervalId });
}
scrollStep() {
if (window.scrollY === 0) {
clearInterval(this.state.intervalId);
}
window.scroll(0, window.scrollY - this.props.scrollStepInPx);
}
render() {
return (
<Container style={{ marginTop: 20 }}>
<Form>
<Card style={{ backgroundColor: "#F9FCFB" }}>
<CardHeader style={{ backgroundColor: "#07689F" }}>
<h2 style={{ backgroundColor: "#07689F", color: "#FFFFFF" }}>
Datos Panorámica de Laboratorio
</h2>
</CardHeader>
<CardBody style={{ marginBottom: 20 }}>
<Form>
<Row>
<Col>
<FormGroup>
<Label for="protesis">Prótesis</Label>
<Input
type="select"
onChange={this.handleChange}
value={this.state.datosPanolab.protesis}
name="protesis"
id="protesis"
>
<option>Sí</option>
<option>No</option>
</Input>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="hemoglobina">Hb</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.hemoglobina}
name="hemoglobina"
id="hemoglobina"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="hemotocrito">Hto</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.hemotocrito}
name="hemotocrito"
id="hemotocrito"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="fechapanolab">
Fecha de Panorámica de Laboratorio
</Label>
<Input
type="date"
onChange={this.handleChange}
value={this.state.fechapanolab}
name="fechapanolab"
id="fechapanolab"
/>
<Label style={{ color: "red", fontSize: 12 }}>
{this.state.errores.fechapanolab}
</Label>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="vcm">VCM</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.vcm}
name="vcm"
id="vcm"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="globlanco">GB</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.globlanco}
name="globlanco"
id="globlanco"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="nl">N/L</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.nl}
name="nl"
id="nl"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="plaqueta">Plaq</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.plaqueta}
name="plaqueta"
id="plaqueta"
/>
</FormGroup>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<h5>GOT</h5>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="gotdesde">Desde </Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.gotdesde}
name="gotdesde"
id="gotdesde"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="gothasta">Hasta</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.gothasta}
name="gothasta"
id="gothasta"
/>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<h5>GPT</h5>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="gptdesde">Desde </Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.gptdesde}
name="gptdesde"
id="gptdesde"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="gpthasta">Hasta</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.gpthasta}
name="gpthasta"
id="gpthasta"
/>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
</Row>
<Col>
<Row style={{ marginBottom: 20 }}>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<FormGroup>
<Label for="bilirrubina">BT</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.bilirrubina}
name="bilirrubina"
id="bilirrubina"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="uresa">Urea</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.uresa}
name="uresa"
id="uresa"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="vsg">VSG</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.vsg}
name="vsg"
id="vsg"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="pcr">PCR</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.pcr}
name="pcr"
id="pcr"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="glicemia">Glic</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.glicemia}
name="glicemia"
id="glicemia"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="coleste">CT</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.coleste}
name="coleste"
id="coleste"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="ldl">LDL</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.ldl}
name="ldl"
id="ldl"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="hdl">HDL</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.hdl}
name="hdl"
id="hdl"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="vldl">VLDL</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.vldl}
name="vldl"
id="vldl"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="trigliceri">TG</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.trigliceri}
name="trigliceri"
id="trigliceri"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="acidourico">Ac Úrico</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.acidourico}
name="acidourico "
id="acidourico"
/>
</FormGroup>
</Col>
</Row>
</Card>
</Row>
</Col>
<Row>
<Col>
<h5>FR</h5>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="frdesde">Desde </Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.frdesde}
name="frdesde"
id="frdesde"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="frhasta">Hasta</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.frhasta}
name="frhasta"
id="frhasta"
/>
</FormGroup>
</Col>
</Row>
<Col>
<Row style={{ marginBottom: 20 }}>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<h5>Anti CCP</h5>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="anticcpneg">Negativo </Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.anticcpneg}
name="anticcpneg"
id="anticcpneg"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="anticcppost">Positivo</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.anticcppost}
name="anticcppost"
id="anticcppost"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="anticcpposd">Titulo</Label>
<Input
type="texto"
onChange={this.handleChange}
value={this.state.datosPanolab.anticcpposd}
name="anticcpposd"
id="anticcpposd"
/>
</FormGroup>
</Col>
</Row>
</Card>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<h5>ANA</h5>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="ananeg">Negativo </Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.ananeg}
name="ananeg"
id="ananeg"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="anaposit">Positivo</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.anaposit}
name="anaposit"
id="anaposit"
/>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
</Row>
</Col>
<Col>
<Row style={{ marginBottom: 20 }}>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<h5>AntiDNA</h5>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="antidnaneg">Negativo </Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.antidnaneg}
name="antidnaneg"
id="antidnaneg"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="antidnapos">Positivo</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.antidnapos}
name="antidnapos"
id="antidnapos"
/>
</FormGroup>
</Col>
</Row>
</Card>
<Col>
<Card style={{ padding: 20 }}>
<Col>
<FormGroup>
<Label for="prot24">Prot 24hs</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosPanolab.prot24}
name="prot24"
id="prot24"
/>
</FormGroup>
</Col>
</Card>
</Col>
</Row>
</Col>
<Row>
<Col>
<FormGroup>
<Label for="observacion">Observación</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosPanolab.observacion}
name="observacion"
id="observacion"
/>
</FormGroup>
</Col>
</Row>
</Form>
</CardBody>
</Card>
<Button
onClick={this.handleSubmit}
color="primary"
style={{ marginTop: 20 }}
>
Agregar
</Button>
<SweetAlert
success
onConfirm={this.alertConfirm}
show={this.state.alertCreado}
>
Panoráminca de Laboratorio agregada con éxito!
</SweetAlert>
{" "}
<Button
onClick={this.props.history.goBack}
appearance="primary"
style={{ marginTop: 20 }}
>
Atras
</Button>
<Icon
href="#"
id="scroll"
className="scroll"
style={{ marginLeft: 700, color: "#07689F", background: "white" }}
onClick={event => {
event.preventDefault();
this.scroll();
}}
icon="angle-double-up"
size="4x"
/>
</Form>
</Container>
);
}
}
export default Panolab;
<file_sep>/src/components/principal.jsx
import React, { Component } from "react";
import {
Container,
Row,
Card,
ListGroupItem,
ListGroup,
FormGroup,
Progress,
Label,
Badge
} from "reactstrap";
//import "rsuite/dist/styles/rsuite.css";
import NavBarMenu from "./navbar";
import BuscarFicha from "./ficha/buscarFicha";
import Ficha from "./ficha/fichaForm";
import { Modal, Icon } from "rsuite";
import { Bar } from "react-chartjs-2";
import { FlexboxGrid, Button, Divider, Col } from "rsuite";
import { Link } from "react-router-dom";
import { Table, IconButton, CustomWhisper } from "rsuite";
import axios from "axios";
import NavBarFresca from "./navFresca";
const { Column, HeaderCell, Cell } = Table;
class MenuPrincipal extends Component {
constructor(props) {
super(props);
this.state = {
activeStyleFicha: {
textDecoration: "none",
color: "#133E7C",
fontSize: "17px",
"&:hover": {
textDecoration: "none"
}
},
activeStyleConsulta: {
textDecoration: "none",
fontSize: "17px",
color: "#3c763d",
"&:hover": {
textDecoration: "none"
}
},
activeStylePanolab: {
textDecoration: "none",
fontSize: "17px",
color: "#563d7c",
"&:hover": {
textDecoration: "none"
}
},
activeStyleOrden: {
textDecoration: "none",
fontSize: "17px",
color: "#337ab7",
"&:hover": {
textDecoration: "none"
}
},
codSelected: 0,
toggleListaPaciente: false,
toggleAgregarPaciente: false,
totalPacientes: "",
pacientesAtendidos: "",
pacientesNoAtendidos: "",
dataBar: {
labels: ["Enero", "Febrero", "Marzo", "Abril"],
datasets: [
{
label: "Cantidad de Consultas en el Año",
data: [12, 19, 3, 5, 2, 3],
backgroundColor: [
"rgba(255, 134,159,0.4)",
"rgba(98, 182, 239,0.4)",
"rgba(255, 218, 128,0.4)",
"rgba(113, 205, 205,0.4)",
"rgba(170, 128, 252,0.4)",
"rgba(255, 177, 101,0.4)"
],
borderWidth: 2,
borderColor: [
"rgba(255, 134, 159, 1)",
"rgba(98, 182, 239, 1)",
"rgba(255, 218, 128, 1)",
"rgba(113, 205, 205, 1)",
"rgba(170, 128, 252, 1)",
"rgba(255, 177, 101, 1)"
]
}
]
},
barChartOptions: {
responsive: true,
maintainAspectRatio: false,
scales: {
xAxes: [
{
barPercentage: 1,
gridLines: {
display: true,
color: "rgba(0, 0, 0, 0.1)"
}
}
],
yAxes: [
{
gridLines: {
display: true,
color: "rgba(0, 0, 0, 0.1)"
},
ticks: {
beginAtZero: true
}
}
]
}
}
};
this.handleClick = this.handleClick.bind(this);
this.toggleListaPaciente = this.toggleListaPaciente.bind(this);
this.toggleAgregarPaciente = this.toggleAgregarPaciente.bind(this);
this.filterAgenda = this.filterAgenda.bind(this);
this.handleAsistio = this.handleAsistio.bind(this);
this.handleNoAsistio = this.handleNoAsistio.bind(this);
}
filterAgenda(event) {
//var resultado = this.state.datosAgenda.filter(agenda);
}
toggleListaPaciente() {
this.setState({
toggleListaPaciente: !this.state.toggleListaPaciente
});
}
toggleAgregarPaciente() {
this.setState({
toggleAgregarPaciente: !this.state.toggleAgregarPaciente
});
}
handleClick() {}
async componentWillMount() {
await this.getDatosAgenda();
await this.calcularTotales();
}
async getDatosAgenda() {
const url1 = "http://127.0.0.1:8000/api/agenda";
let datosagenda = [];
await axios //osea es traer esto vd? asi mismi pero ahi no le vas a hacer el
.get(url1)
.then(function(response) {
datosagenda = response.data.filter(item => {
return item.estado === 0;
});
})
.catch(function(error) {
console.log(error);
});
this.setState({
datosAgenda: datosagenda
});
}
async calcularTotales() {
const url1 = "http://127.0.0.1:8000/api/agenda";
let datosagenda = [];
await axios
.get(url1)
.then(function(response) {
console.log(response.data);
datosagenda = response.data;
})
.catch(function(error) {
console.log(error);
});
const countTotalPac = datosagenda.length;
const countAtendidos = datosagenda.filter(item => {
return item.estado === 1;
}).length;
const countNoAtendidos = datosagenda.filter(item => {
return item.estado === 2;
}).length;
this.setState({
totalPacientes: countTotalPac,
pacientesAtendidos: countAtendidos,
pacientesNoAtendidos: countNoAtendidos
});
}
async handleAsistio(rowData) {
const url = "http://127.0.0.1:8000/api/agenda/" + rowData.codagenda + "/";
var datoAgenda = this.state.datosAgenda.filter(item => {
return item.codagenda === rowData.codagenda;
})[0];
datoAgenda.estado = 1; //cambia a asistio
await axios
.put(url, datoAgenda)
.then(function(response) {
console.log(response);
})
.catch(function(error) {
console.log(error);
});
await this.getDatosAgenda();
await this.calcularTotales();
}
async handleNoAsistio(rowData, data) {
const url = "http://127.0.0.1:8000/api/agenda/" + rowData.codagenda + "/";
var datoAgenda = this.state.datosAgenda.filter(item => {
return item.codagenda === rowData.codagenda;
})[0];
datoAgenda.estado = 2; //cambia a no asistio
await axios
.put(url, datoAgenda)
.then(function(response) {
console.log(response);
})
.catch(function(error) {
console.log(error);
});
await this.getDatosAgenda();
await this.calcularTotales();
}
render() {
const ButtonLink = props => <Button componentClass={Link} {...props} />;
const handleNoAsistio = this.handleNoAsistio;
const handleAsistio = this.handleAsistio;
return (
<div style={{ marginTop: 40 }}>
<NavBarFresca />
<Modal
show={this.state.toggleListaPaciente}
onHide={this.toggleListaPaciente}
style={{ width: "50%" }}
>
<Modal.Body>
<BuscarFicha />
</Modal.Body>
</Modal>
<Modal
show={this.state.toggleAgregarPaciente}
onHide={this.toggleAgregarPaciente}
style={{ width: "90%" }}
backdrop="static"
>
<Modal.Body>
<Ficha />
</Modal.Body>
</Modal>
<Container>
<Row>
<Col xs="12" style={{ paddingBottom: 10 }}>
<div
style={{
padding: 20,
borderLeft: "5px solid",
marginBottom: 15,
padding: 10,
borderLeftColor: "#8dcdff", //"rgba(90, 154, 255, 0.6)",
borderRadius: "5px",
borderTop: "0.5px solid",
borderRight: "0.5px solid",
borderBottom: "0.5px solid",
borderTopColor: "#eee",
borderRightColor: "#eee",
borderBottomColor: "#eee"
// color: "#eee"
}}
>
<FormGroup className="text-center">
<h3>Pacientes Agendados</h3>
<Button
onClick={() => {
console.log(this.state.codSelected);
}}
color="primary"
>
Actualizar Agenda
</Button>
</FormGroup>
<div>
<Table virtualized height={400} data={this.state.datosAgenda}>
<Column width={97} align="center" fixed>
<HeaderCell>Asistio?</HeaderCell>
<Cell>
{rowData => {
const handleAsistio = () => {
this.handleAsistio(rowData);
};
const handleNoAsistio = () => {
this.handleNoAsistio(rowData);
};
return (
<span>
<IconButton
appearance="subtle"
onClick={handleAsistio}
icon={<Icon icon="check" />}
/>
|
<IconButton
appearance="subtle"
onClick={handleNoAsistio}
icon={<Icon icon="close" />}
/>
</span>
);
}}
</Cell>
</Column>
<Column width={70} align="center" fixed>
<HeaderCell>Orden</HeaderCell>
<Cell dataKey="orden" />
</Column>
<Column width={180} fixed>
<HeaderCell>Nombres</HeaderCell>
<Cell dataKey="nombres" />
</Column>
<Column width={180}>
<HeaderCell>Apellidos</HeaderCell>
<Cell
dataKey="apellidos"
onClick={rowData => console.log(rowData.target.dataKey)}
/>
</Column>
</Table>
</div>
</div>
</Col>
<Col xs="12">
<div className="text-center">
<Button
style={{ height: 200, width: 250 }}
onClick={this.toggleListaPaciente}
>
<Icon
icon="search"
style={{
fontSize: 50,
color: "#007bff"
}}
/>
<h4
style={{
color: "#111",
marginBottom: 10,
fontweigh: 200
}}
>
Buscar Paciente
</h4>
</Button>
<Divider vertical style={{ height: 200 }} />
<Button
style={{ height: 200, width: 250 }}
onClick={this.toggleAgregarPaciente}
>
<Icon
icon="user-plus"
style={{
fontSize: 50,
color: "#133E7C"
}}
/>
<h4
style={{
color: "#111",
marginBottom: 10,
fontweigh: 200
}}
>
Agregar Paciente
</h4>
</Button>
<Divider horizontal style={{ width: 555 }} />
<Col className="text-center">
<FormGroup>
<h4>Pacientes Atendidos</h4>
</FormGroup>
<Progress
value={
parseFloat(
this.state.pacientesAtendidos /
this.state.totalPacientes
) * 100
}
/>
<div className="text-center">
{parseInt(
parseFloat(
this.state.pacientesAtendidos /
this.state.totalPacientes
) * 100
)}
%
</div>
<Label style={{ margin: 5 }}>Total Pacientes: </Label>
<Badge pill>{this.state.totalPacientes}</Badge>
<Label style={{ margin: 5 }}>Pacientes Atendidos: </Label>
<Badge pill>{this.state.pacientesAtendidos}</Badge>
<Label style={{ margin: 5 }}>Pacientes No Atendidos: </Label>
<Badge pill>{this.state.pacientesNoAtendidos}</Badge>
</Col>
<Divider horizontal style={{ width: 555 }} />
<Col>
<div style={{ height: "500" }}>
<Bar
data={this.state.dataBar}
options={this.state.barChartOptions}
/>
</div>
</Col>
</div>
</Col>
</Row>
</Container>
</div>
);
}
}
export default MenuPrincipal;
/*<FlexboxGrid align="center" style={{ marginTop: 200 }}>
<FlexboxGrid.Item>
<ButtonLink
to="/ficha"
style={{ height: 400, width: 400 }}
onClick={this.handleClick}
>
<Icon
icon="user-plus"
style={{
fontSize: 190,
color: "#156895",
marginBottom: 10,
paddingTop: 80
}}
/>
<Col>
<h3>Paciente Nuevo</h3>
</Col>
</ButtonLink>
</FlexboxGrid.Item>
<Divider vertical style={{ height: 400 }} />
<FlexboxGrid.Item>
<Button
style={{ height: 400, width: 400 }}
onClick={this.toggleListaPaciente}
>
<Icon
icon="search"
style={{
fontSize: 190,
color: "#599815",
marginBottom: 10,
paddingTop: 80
}}
/>
<Col>
<h3>Busqueda de Paciente</h3>
</Col>
</Button>
</FlexboxGrid.Item>
</FlexboxGrid> */
<file_sep>/src/components/consulta/consultaForm.jsx
import React, { Component } from "react";
import manito from "./manito.jpg";
import {
Card,
Button,
CardHeader,
CardBody,
Container,
Row,
ButtonGroup,
Col,
Form,
FormGroup,
Label,
Tooltip,
Input
} from "reactstrap";
import { Modal, InputNumber, Whisper } from "rsuite";
import { IconButton, ButtonToolbar, Icon } from "rsuite";
import axios from "axios";
import InputRange from "react-input-range";
import { withRouter } from "react-router-dom";
import { AutoComplete } from "primereact/autocomplete";
import BootstrapTable from "react-bootstrap-table-next";
import "primereact/resources/themes/nova-light/theme.css";
import "primereact/resources/primereact.min.css";
import "primeicons/primeicons.css";
import "react-bootstrap-table-next/dist/react-bootstrap-table2.min.css";
import "bootstrap/dist/css/bootstrap.css";
import "./estilos.css";
import "react-input-range/lib/css/index.css";
import EfectoAdverso from "./../efectoadverso/efectoAdversoForm";
import { Alert } from "rsuite";
import SweetAlert from "react-bootstrap-sweetalert";
///import "./../../themes/fresca.css";
class Consulta extends Component {
constructor() {
super();
this.state = {
intervalId: 0,
show: true,
codConsultaReturn: "", //necesitamos guardar el codconsulta que retorna
//alert
alertCreado: false,
///rangos
CDAI_RANGO: "",
SDAI_RANGO: "",
DAS28_VSG_RANGO: "",
DAS28_PCR_RANGO: "",
datospaciente: {},
visible: false,
aviso: false,
toggleEfecto: false,
//datos correspondientes a la consulta
edad: 0, //edad del paciente
codconsulta: 0, // código interno único para la ficha consulta
codficha: "", // código interno único para la ficha HA, para saber a qué ficha HA está asociada la ficha de consulta
codusuario: "", // código interno de usuario, para saber quién agrego la ficha de consulta
fechaconsulta: "", // fecha en la cual se emitió la consulta
diagnostico: "", // descripción diagnostico
tratamientoactual: "", // descripción tratamiento actual
evolucion: "", // descripción de la evolución
limitacion: "", // descripción de las limitaciones que posee el Paciente
limitacionmotivo: "", // descripción de las limitaciones que posee el Paciente
presionarte: 0, // medida de la presión arterial
frescresp: 0, // medida de la frecuencia cardíaca
freccardia: 0, // medida de la frecuencia respiratoria
peso: 0, // peso
talla: 0.0, // talla
nad: 0, // número de articulaciones dolorosas
nat: 0, // número de articulaciones tumefactas
eva: 0, // escala visual analógica
//vgp: 0, // valoración global del Paciente para CDAI Y SDAI
//vgp1: 0, // valoración global del Paciente para CDAI Y SDAI
//vgm1: 0, // valoración global del médico para CDAI Y SDAI
//vgp2: 0, // valoración global del Paciente para DAS28PCR Y DAS28VSG
//vgm2: 0, // valoración global del médicopara DAS28PCR Y DAS28VSG
// crp: 0,
//vsg: 0,
cdai: 0, // clinical disease activity index
sdai: 0, // simple disease activity index
haq: 0, // health assessment questionnaire
das28pcr: 0.0, // disease activity score 28 - proteína c reactiva
das28vsg: 0.0, // disease activity score 28 - velocidad de sedimentación globular
sientepaci: "Sin Dolor", // escala del 0 (sin dolor) al 10 (máximo dolor)
plan: "", // descripción del plan para el paciente
fechacreada: 0, // fecha de creación de la consulta
cdairango: "",
deshabilitar: false,
deshabilitartaba: true,
fechanacipaciente: "",
suggestions: [],
efectoSelected: null,
efecto: "",
efectoList: [],
efectoListTable: [],
efectoListTableSelected: [],
columnsEfecto: [
{
dataField: "codefecad",
hidden: true
},
{
dataField: "nombre",
text: "Nombre"
}
],
//datos para los calculos de los scores
checksNAD: {
checkNAD1: false,
checkNAD2: false,
checkNAD3: false,
checkNAD4: false,
checkNAD5: false,
checkNAD6: false,
checkNAD7: false,
checkNAD8: false,
checkNAD9: false,
checkNAD10: false,
checkNAD11: false,
checkNAD12: false,
checkNAD13: false,
checkNAD14: false,
checkNAD15: false,
checkNAD16: false,
checkNAD17: false,
checkNAD18: false,
checkNAD19: false,
checkNAD20: false,
checkNAD21: false,
checkNAD22: false,
checkNAD23: false,
checkNAD24: false,
checkNAD25: false,
checkNAD26: false,
checkNAD27: false,
checkNAD28: false
},
checksNAT: {
checkNAT1: false,
checkNAT2: false,
checkNAT3: false,
checkNAT4: false,
checkNAT5: false,
checkNAT6: false,
checkNAT7: false,
checkNAT8: false,
checkNAT9: false,
checkNAT10: false,
checkNAT11: false,
checkNAT12: false,
checkNAT13: false,
checkNAT14: false,
checkNAT15: false,
checkNAT16: false,
checkNAT17: false,
checkNAT18: false,
checkNAT19: false,
checkNAT20: false,
checkNAT21: false,
checkNAT22: false,
checkNAT23: false,
checkNAT24: false,
checkNAT25: false,
checkNAT26: false,
checkNAT27: false,
checkNAT28: false
},
tooltipOpen: false,
tooltipVsgOpen: false
};
this.toggle = this.toggle.bind(this);
this.toggleVsg = this.toggleVsg.bind(this);
this.handleChange = this.handleChange.bind(this);
this.handleAdd = this.handleAdd.bind(this);
//this.onCheckNAD = this.onCheckNAD.bind(this);
// this.onCheckNAT = this.onCheckNAT.bind(this);
this.calcularScores = this.calcularScores.bind(this);
this.toggleEfecto = this.toggleEfecto.bind(this);
this.filterEfecto = this.filterEfecto.bind(this);
this.onSelectEfecto = this.onSelectEfecto.bind(this);
this.onChangeEfecto = this.onChangeEfecto.bind(this);
this.addEfectoToList = this.addEfectoToList.bind(this);
this.eliminarEfecto = this.eliminarEfecto.bind(this);
this.handleOnSelect = this.handleOnSelect.bind(this);
this.handleOnSelectAll = this.handleOnSelectAll.bind(this);
this.alertConfirm = this.alertConfirm.bind(this);
this.handleAddEfecto = this.handleAddEfecto.bind(this);
this.IncrementItem = this.IncrementItem.bind(this);
this.DecreaseItem = this.DecreaseItem.bind(this);
}
IncrementItem = () => {
console.log(this.state.crp);
this.setState({ crp: this.state.crp + 1 });
};
DecreaseItem = () => {
console.log(this.state.crp);
this.setState({ crp: this.state.crp - 1 });
};
ToggleClick = () => {
this.setState({ show: !this.state.show });
};
UpdateValue = e => {
this.setState({ crp: e.target.value });
};
alertConfirm() {
this.setState({ alertCreado: false });
this.props.history.push(
"/menu_ficha/" +
parseInt(this.props.match.params.codficha) +
"/buscar_consulta/" +
parseInt(this.props.match.params.codficha) +
"/consulta_view/" +
this.state.codConsultaReturn +
"/" +
parseInt(this.props.match.params.codficha)
);
}
handleOnSelectAll = (isSelect, rows) => {
const ids = rows.map(r => r.id);
if (isSelect) {
this.setState(() => ({
efectoListTableSelected: ids
}));
} else {
this.setState(() => ({
efectoListTableSelected: []
}));
}
};
handleOnSelect(row, isSelect) {
console.log(isSelect);
console.log(row);
if (isSelect) {
this.setState(() => ({
efectoListTableSelected: [...this.state.efectoListTableSelected, row.id]
}));
return true;
} else {
this.setState(() => ({
efectoListTableSelected: this.state.efectoListTableSelected.filter(
x => x !== row.id
)
}));
return true;
}
}
eliminarEfecto() {
console.log(this.state.efectoListTableSelected);
let list = this.state.efectoListTable;
list.splice(this.state.efectoListTableSelected, 1);
this.setState({ efectoListTable: list });
console.log(list);
}
componentDidMount() {
this.getEfectoList();
}
async getEfectoList() {
const urlEfecto = "http://127.0.0.1:8000/api/efecto_adverso/";
let listaEfecto;
await axios
.get(urlEfecto)
.then(function(response) {
listaEfecto = response.data;
})
.catch(function(error) {
console.log(error);
});
this.setState({ efectoList: listaEfecto });
}
filterEfecto(event) {
var results = this.state.efectoList.filter(efecto => {
return efecto.nombre.toLowerCase().startsWith(event.query.toLowerCase());
});
this.setState({ suggestions: results });
}
async onSelectEfecto(e) {
await this.setState({ efectoSelected: e.value }, function() {
console.log("console 1" + this.state.efectoSelected);
});
}
onChangeEfecto(e) {
this.getEfectoList();
this.setState({ efecto: e.value });
}
addEfectoToList() {
/* console.log("efecto a ser agregado" + this.state.efectoSelected);
if (this.state.efectoSelected !== {}) {
const efecto = {
codefecad: this.state.efectoSelected.codefecad,
nombre: this.state.efectoSelected.nombre
};
let efectoList = this.state.efectoListTable;
efectoList.push(efecto);
this.setState({ efectoListTable: efectoList });
} else {
return;
}*/
let esfectoList = this.state.efectoListTable;
if (this.state.efectoSelected === null) {
{
Alert.warning("El Efecto Adverso esta vacío", 5000);
console.log("vacio");
return;
}
} else {
for (let index = 0; index < esfectoList.length; index++) {
if (
esfectoList[index].codefecad === this.state.efectoSelected.codefecad
) {
Alert.warning("El Efecto Adverso ya fue agregado", 3000);
return;
}
}
const efecto = {
codefecad: this.state.efectoSelected.codefecad,
nombre: this.state.efectoSelected.nombre
};
esfectoList.push(efecto);
console.log("efecto a ser agregado" + this.state.efectoSelected.nombre);
this.setState({
efectoListTable: esfectoList,
efectoSelected: null,
efecto: ""
});
}
}
handleChange(e) {
const target = e.target;
const value = target.type === "checkbox" ? target.checked : target.value;
const name = target.name;
this.setState({
[name]: value
});
}
async handleAdd() {
const consulta = {
codficha: parseInt(this.props.match.params.codficha), //y lpara este el codficha, por eso necesitabamos que pase los dos
codusuario: 999,
edad: this.state.edad,
fechaconsulta: this.state.fechaconsulta,
diagnostico: this.state.diagnostico,
tratamientoactual: this.state.tratamientoactual,
evolucion: this.state.evolucion,
limitacion: this.state.limitacion,
limitacionmotivo: this.state.limitacionmotivo,
presionarte: this.state.presionarte,
frescresp: this.state.frescresp,
freccardia: this.state.freccardia,
peso: this.state.peso,
talla: this.state.talla,
nad: this.state.nad,
nat: this.state.nat,
eva: this.state.eva,
vgp: this.state.vgp,
vgp1: this.state.vgp1,
vgp2: this.state.vgp2,
vgm: this.state.vgm,
vgm1: this.state.vgm1,
vgm2: this.state.vgm2,
crp: this.state.crp,
vsg: this.state.vsg,
cdai: this.state.cdai,
sdai: this.state.sdai,
haq: this.state.haq, //voy a ver
das28pcr: this.state.das28pcr,
das28vsg: this.state.das28vsg,
CDAI_RANGO: this.state.CDAI_RANGO,
SDAI_RANGO: this.state.SDAI_RANGO,
DAS28_VSG_RANGO: this.state.DAS28_VSG_RANGO,
DAS28_PCR_RANGO: this.state.DAS28_PCR_RANGO,
sientepaci: this.state.sientepaci,
plan: this.state.plan,
fechacreada: this.state.fechacreada,
fecha: this.state.datospaciente.fechanaci,
checkNAD1: this.state.checkNAD1,
checkNAD2: this.state.checkNAD2,
checkNAD3: this.state.checkNAD3,
checkNAD4: this.state.checkNAD4,
checkNAD5: this.state.checkNAD5,
checkNAD6: this.state.checkNAD6,
checkNAD7: this.state.checkNAD7,
checkNAD8: this.state.checkNAD8,
checkNAD9: this.state.checkNAD9,
checkNAD10: this.state.checkNAD10,
checkNAD11: this.state.checkNAD11,
checkNAD12: this.state.checkNAD12,
checkNAD13: this.state.checkNAD13,
checkNAD14: this.state.checkNAD14,
checkNAD15: this.state.checkNAD15,
checkNAD16: this.state.checkNAD16,
checkNAD17: this.state.checkNAD17,
checkNAD18: this.state.checkNAD18,
checkNAD19: this.state.checkNAD19,
checkNAD20: this.state.checkNAD20,
checkNAD21: this.state.checkNAD21,
checkNAD22: this.state.checkNAD22,
checkNAD23: this.state.checkNAD23,
checkNAD24: this.state.checkNAD24,
checkNAD25: this.state.checkNAD25,
checkNAD26: this.state.checkNAD26,
checkNAD27: this.state.checkNAD27,
checkNAD28: this.state.checkNAD28,
checkNAT1: this.state.checkNAT1,
checkNAT2: this.state.checkNAT2,
checkNAT3: this.state.checkNAT3,
checkNAT4: this.state.checkNAT4,
checkNAT5: this.state.checkNAT5,
checkNAT6: this.state.checkNAT6,
checkNAT7: this.state.checkNAT7,
checkNAT8: this.state.checkNAT8,
checkNAT9: this.state.checkNAT9,
checkNAT10: this.state.checkNAT10,
checkNAT11: this.state.checkNAT11,
checkNAT12: this.state.checkNAT12,
checkNAT13: this.state.checkNAT13,
checkNAT14: this.state.checkNAT14,
checkNAT15: this.state.checkNAT15,
checkNAT16: this.state.checkNAT16,
checkNAT17: this.state.checkNAT17,
checkNAT18: this.state.checkNAT18,
checkNAT19: this.state.checkNAT19,
checkNAT20: this.state.checkNAT20,
checkNAT21: this.state.checkNAT21,
checkNAT22: this.state.checkNAT22,
checkNAT23: this.state.checkNAT23,
checkNAT24: this.state.checkNAT24,
checkNAT25: this.state.checkNAT25,
checkNAT26: this.state.checkNAT26,
checkNAT27: this.state.checkNAT27,
checkNAT28: this.state.checkNAT28
};
let codconsulta;
await fetch("http://127.0.0.1:8000/api/consulta/", {
method: "POST", // or 'PUT'
body: JSON.stringify(consulta), // data can be `string` or {object}!
headers: {
"Content-Type": "application/json"
}
})
.then(res => res.json())
.catch(error => console.error("Error:", error))
/* .then(response => {
codconsulta = response.codconsulta;
console.log("respuesta: ", response);
});*/
.then(response => {
if (
response.codconsulta !== undefined &&
response.codconsulta !== null
) {
codconsulta = response.codconsulta; //aca le agarramos cuando te responde ya
console.log(response); //viste q hay se pasa el codconsulta q viene de aca digamos
this.setState({ alertCreado: true, codConsultaReturn: codconsulta }); //aca vas aponerle en vez de este un this.setState({alertCreado: true}), ese alertCreado va ser tu state y la funcion que va tener aca
/* this.props.history.push(
"/consulta_view/" + this.props.match.params.codconsulta // si lo mismo es, si pero tenemos que poner tooodo el path como esta aca
);*/ // esto pero tipo se va a la pag sin mostrar ese mensje, ya que al darle ok se vaya a la view o algo asi? si, ok vamos aver como
}
});
console.log(this.state.alertCreado);
this.handleAddEfecto(codconsulta);
}
toggle() {
this.setState({
tooltipOpen: !this.state.tooltipOpen
});
}
toggleVsg() {
this.setState({
tooltipVsgOpen: !this.state.tooltipVsgOpen
});
}
async handleAddEfecto(codconsulta) {
const list = this.state.efectoListTable; //este hay que cambiarle
for (let item = 0; item < list.length; item++) {
let efecto = {
codconsulta: codconsulta,
codefecad: list[item].codefecad
};
await fetch("http://127.0.0.1:8000/api/efecto_adverso_consulta/", {
method: "POST", // or 'PUT'
body: JSON.stringify(efecto), // data can be `string` or {object}!
headers: {
"Content-Type": "application/json"
}
})
.then(res => res.json())
.catch(error => console.error("Error:", error))
.then(response => {
console.log(response);
});
}
}
toggleEfecto() {
this.setState({
toggleEfecto: !this.state.toggleEfecto
});
}
async componentWillMount() {
const url1 = "http://127.0.0.1:8000/api/ficha?codficha=";
let datopaciente = {};
await axios
.get(url1 + this.props.match.params.codficha) //para este necesitamos el codpaciente
.then(function(response) {
console.log(response.data[0]);
datopaciente = response.data[0];
})
.catch(function(error) {
console.log(error);
});
this.setState({ datospaciente: datopaciente });
//calcular
var hoy = new Date();
var cumpleanos = new Date(this.state.datospaciente.fechanaci);
var edad = hoy.getFullYear() - cumpleanos.getFullYear();
if (hoy.getDate() < cumpleanos.getDate()) {
edad--;
}
this.setState({ edad: edad });
console.log(this.props.match.params.codficha);
}
onRadioBtnClick(rSelected) {
this.setState({ sientepaci: rSelected });
}
/*onCheckNAD(e) {
const target = e.target;
//let fields = this.state.checksNAD;
const value = target.type === "checkbox" ? target.checked : target.value;
const name = target.name;
// fields[name] = value;
this.setState({
datosFicha: fields
});
console.log(this.state.checksNAD);
}*/
onCheckNAT(e) {
const target = e.target;
let fields = this.state.checksNAT;
const value = target.type === "checkbox" ? target.checked : target.value;
const name = target.name;
fields[name] = value;
this.setState({
datosFicha: fields
});
console.log(this.state.checksNAT);
}
calcularScores() {
let countNAD = 0;
let countNAT = 0;
let SDAI_RANGO = "";
let CDAI_RANGO = "";
let DAS28_PCR_RANGO = "";
let DAS28_VSG_RANGO = "";
const checksNAD = Object.values(this.state.checksNAD);
const checksNAT = Object.values(this.state.checksNAT);
/* for (const prop in checksNAD) {
if (this.state.checkNAD1 === true || this.state.checkNAD2 === true) {
countNAD = countNAD + 1;
}
}*/
/* console.log(countNAD);
for (const prop in checksNAT) {
if (checksNAT[prop] === true) {
countNAT = countNAT + 1;
}
}*/
if (this.state.checkNAD1 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD2 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD3 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD4 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD5 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD6 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD7 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD8 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD9 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD10 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD11 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD12 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD13 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD14 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD15 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD16 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD17 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD18 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD19 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD20 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD21 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD22 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD23 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD24 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD25 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD26 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD27 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAD28 === true) {
countNAD = countNAD + 1;
}
if (this.state.checkNAT1 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT2 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT3 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT4 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT5 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT6 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT7 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT8 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT9 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT10 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT11 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT12 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT13 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT14 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT15 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT16 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT17 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT18 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT19 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT20 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT21 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT22 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT23 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT24 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT25 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT26 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT27 === true) {
countNAT = countNAT + 1;
}
if (this.state.checkNAT28 === true) {
countNAT = countNAT + 1;
}
//formula para cdai = NAD28 + NAT28 + VGP + VGM
const CDAI = countNAT + countNAD + this.state.vgm1 + this.state.vgp1;
if (CDAI.toFixed(2) <= 2.8) {
CDAI_RANGO = "Remisión";
console.log(CDAI_RANGO); //entra bien aca en remision, check
}
if (CDAI.toFixed(2) > 2.8 && CDAI.toFixed(2) <= 10) {
CDAI_RANGO = "Baja Actividad";
}
if (CDAI.toFixed(2) > 10 && CDAI.toFixed(2) <= 22) {
//aca esta el problem, viste que pregunta si esta entre 10 y 22 y si no le cambia
CDAI_RANGO = "Actividad Moderada";
}
if (CDAI.toFixed(2) > 22) {
//asi deberia quedar verdad, osea mayores a 22 = alta
CDAI_RANGO = "Alta Actividad";
}
//formula para el SDAI: NAD28 + NAT28 + VGP + VGM + PCR (en mg/dl)
const SDAI =
countNAT + countNAD + this.state.vgm1 + this.state.vgp1 + this.state.crp;
if (SDAI.toFixed(2) <= 3.3) {
SDAI_RANGO = "Remisión";
}
if (SDAI.toFixed(2) > 3.3 && SDAI.toFixed(2) <= 11) {
SDAI_RANGO = "Baja Actividad";
}
if (SDAI.toFixed(2) > 11 && SDAI.toFixed(2) <= 26) {
SDAI_RANGO = "Actividad Moderada";
}
if (SDAI.toFixed(2) > 26) {
SDAI_RANGO = "Alta Actividad";
}
//formula para el DAS28-PCR: 0,56 x √NAD28 + 0,28 x √NAT28 + 0,36 x ln(PCR +1) + 0,014 x VGP + 0,96
const DAS28_PCR =
0.56 * Math.sqrt(countNAD) +
0.28 * Math.sqrt(countNAT) +
0.36 * Math.log(this.state.crp + 1) +
0.014 * this.state.vgp2 +
0.96;
console.log(Math.sqrt(countNAD));
console.log(Math.sqrt(countNAT));
console.log(this.state.crp);
console.log(this.state.vgp2);
if (DAS28_PCR.toFixed(2) <= 2.6) {
DAS28_PCR_RANGO = "Remisión";
}
if (DAS28_PCR.toFixed(2) > 2.6 && DAS28_PCR.toFixed(2) <= 3.2) {
DAS28_PCR_RANGO = "Baja Actividad";
}
if (DAS28_PCR.toFixed(2) > 3.2 && DAS28_PCR.toFixed(2) <= 5.1) {
DAS28_PCR_RANGO = "Actividad Moderada";
}
if (DAS28_PCR.toFixed(2) > 5.1) {
DAS28_PCR_RANGO = "Alta Actividad";
}
// formula para DAS28-VSG: 0,56 x √NAD28 + 0,28 x √NAT28 + 0,70 x ln(VSG) + 0,014 x VGP
const DAS28_VSG =
0.56 * Math.sqrt(countNAD) +
0.28 * Math.sqrt(countNAT) +
0.7 * Math.log(this.state.vsg) +
0.014 * this.state.vgp2;
if (DAS28_VSG.toFixed(2) <= 2.6) {
DAS28_VSG_RANGO = "Remisión";
}
if (DAS28_VSG.toFixed(2) > 2.6 && DAS28_VSG.toFixed(2) <= 3.2) {
DAS28_VSG_RANGO = "Baja Actividad";
}
if (DAS28_VSG.toFixed(2) > 3.2 && DAS28_VSG.toFixed(2) <= 5.1) {
DAS28_VSG_RANGO = "Actividad Moderada";
}
if (DAS28_VSG.toFixed(2) > 5.1) {
DAS28_VSG_RANGO = "Alta Actividad";
}
this.setState({
nad: countNAD,
nat: countNAT,
cdai: CDAI.toFixed(2),
sdai: SDAI.toFixed(2),
das28pcr: DAS28_PCR.toFixed(2),
das28vsg: DAS28_VSG.toFixed(2),
CDAI_RANGO: CDAI_RANGO,
SDAI_RANGO: SDAI_RANGO,
DAS28_VSG_RANGO: DAS28_VSG_RANGO,
DAS28_PCR_RANGO: DAS28_PCR_RANGO
});
console.log(CDAI_RANGO); //aca toma otro valor q esta mal, ok vamos a mirar, aca cambia
}
scroll() {
let intervalId = setInterval(
this.scrollStep.bind(this),
this.props.delayInMs
);
//store the intervalId inside the state,
//so we can use it later to cancel the scrolling
this.setState({ intervalId: intervalId });
}
scrollStep() {
if (window.scrollY === 0) {
clearInterval(this.state.intervalId);
}
window.scroll(0, window.scrollY - this.props.scrollStepInPx);
}
render() {
return (
<Container style={{ marginTop: 20 }}>
<Card style={{ backgroundColor: "#F9FCFB" }}>
<CardHeader style={{ backgroundColor: "#07689F" }}>
<h2 style={{ backgroundColor: "#07689F", color: "#FFFFFF" }}>
Datos Consulta
</h2>
</CardHeader>
<CardBody>
<Form>
<Row>
<Col>
<FormGroup>
<Label for="edad">Edad</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.edad}
name="edad"
id="edad"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="fechaconsulta">Fecha de Consulta</Label>
<Input
type="date"
onChange={this.handleChange}
value={this.state.fechaconsulta}
name="fechaconsulta"
id="fechaconsulta"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="diagnostico">Diagnóstico</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.diagnostico}
name="diagnostico"
id="diagnostico"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="tratamientoactual">Tratamiento Actual</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.tratamientoactual}
name="tratamientoactual"
id="tratamientoactual"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="evolucion">Evolución</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.evolucion}
name="evolucion"
id="evolucion"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="limitacion">Limitación</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.limitacion}
name="limitacion"
id="limitacion"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="limitacionmotivo">Motivo</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.limitacionmotivo}
name="limitacionmotivo"
id="limitacionmotivo"
/>
</FormGroup>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<h5>Efectos Adversos</h5>
<Card style={{ padding: 10 }}>
<Row style={{ marginBottom: 10 }}>
<Col>
<AutoComplete
value={this.state.efecto}
suggestions={this.state.suggestions}
completeMethod={this.filterEfecto}
field="nombre"
size={35}
placeholder="Efecto Adverso"
minLength={1}
onChange={this.onChangeEfecto}
onSelect={this.onSelectEfecto}
/>
<Button
color="primary"
onClick={this.addEfectoToList}
style={{ marginLeft: 5 }}
>
Agregar
</Button>
<Button
color="success"
onClick={this.toggleEfecto}
style={{ marginLeft: 5 }}
>
Nuevo Efecto
</Button>
</Col>
<Modal
show={this.state.toggleEfecto}
onHide={this.toggleEfecto}
>
<Modal.Body>
<EfectoAdverso />
</Modal.Body>
</Modal>
</Row>
<Row>
<Col>
<BootstrapTable
keyField="codefecad"
data={this.state.efectoListTable}
columns={this.state.columnsEfecto}
selectRow={{
mode: "radio",
clickToSelect: true,
onSelect: (row, isSelect, rowIndex, e) => {
console.log("row.id" + row.codefecad);
console.log("isSelect" + isSelect);
console.log("rowIndex" + rowIndex);
this.setState({
efectoListTableSelected: rowIndex
});
}
}}
/>
</Col>
</Row>
<Row>
<Col>
<Button color="danger" onClick={this.eliminarEfecto}>
Eliminar
</Button>
</Col>
</Row>
</Card>
</Col>
</Row>
<Card style={{ padding: 10, marginBottom: 20 }}>
<Row>
<Col>
<h5>Examen Físico</h5>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="presionarte">PA</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.presionarte}
name="presionarte"
id="presionarte"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="frescresp">FC</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.frescresp}
name="frescresp"
id="frescresp"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="freccardia">FR</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.freccardia}
name="freccardia"
id="freccardia"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="peso">Peso</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.peso}
name="peso"
id="peso"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="talla">Talla</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.talla}
name="talla"
id="talla"
/>
</FormGroup>
</Col>
</Row>
</Card>
<Row>
<Col>
<FormGroup>
<Label for="eva">EVA</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.eva}
name="eva"
id="eva"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="haq">HAQ</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.haq}
name="haq"
id="haq"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<h5>¿Como se siente el Paciente?</h5>
<ButtonGroup>
<Button
color="secondary"
onClick={() => this.onRadioBtnClick("Sin dolor")}
active={this.state.rSelected === "Sin dolor"}
>
Sin dolor
</Button>
<Button
color="azul"
onClick={() => this.onRadioBtnClick("Dolor leve")}
active={this.state.rSelected === "Dolor leve"}
>
Dolor leve
</Button>
<Button
color="amarillo"
backgroundColor="#ffc107"
onClick={() => this.onRadioBtnClick("Dolor moderado")}
active={this.state.rSelected === "Dolor moderado"}
>
Dolor moderado
</Button>
<Button
color="verdes"
onClick={() => this.onRadioBtnClick("Dolor severo")}
active={this.state.rSelected}
>
Dolor severo
</Button>
<Button
color="celeste"
onClick={() => this.onRadioBtnClick("Dolor muy severo")}
active={this.state.rSelected}
>
Dolor muy severo
</Button>
<Button
color="rojo"
onClick={() => this.onRadioBtnClick("Máximo dolor")}
active={this.state.rSelected}
>
Máximo dolor
</Button>
</ButtonGroup>
</FormGroup>
</Col>
</Row>
<Row style={{ marginBottom: 10 }}>
<Col>
<FormGroup>
<h5>Datos para los Scores</h5>
<Row>
<Col>
<Card
style={{
textAlign: "center",
justifyContent: "center",
alignItems: "center",
padding: 10
}}
>
<Row style={{}}>
<Col>
<h6>NAD</h6>
</Col>
<Col>
<h6>NAT</h6>
</Col>
</Row>
<Row>
<Col>
<div className="contenedorPrincipal">
<img
src={manito}
width="500"
height="300"
alt=""
/>
<input
type="checkbox"
class="custom-control-input"
id="customCheck"
checked=""
/>
<input
class="custom-control-input"
type="checkbox"
className="checkBox1"
name="checkNAD1"
value={this.state.checksNAD.checkNAD1}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox2"
name="checkNAD2"
value={this.state.checksNAD.checkNAD2}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox3"
name="checkNAD3"
value={this.state.checksNAD.checkNAD3}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox4"
name="checkNAD4"
value={this.state.checksNAD.checkNAD4}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox5"
name="checkNAD5"
value={this.state.checksNAD.checkNAD5}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox6"
name="checkNAD6"
value={this.state.checksNAD.checkNAD6}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox7"
name="checkNAD7"
value={this.state.checksNAD.checkNAD7}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox8"
name="checkNAD8"
value={this.state.checksNAD.checkNAD8}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox9"
name="checkNAD9"
value={this.state.checksNAD.checkNAD9}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox10"
name="checkNAD10"
value={this.state.checksNAD.checkNAD10}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox11"
name="checkNAD11"
value={this.state.checksNAD.checkNAD11}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox12"
name="checkNAD12"
value={this.state.checksNAD.checkNAD12}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox13"
name="checkNAD13"
value={this.state.checksNAD.checkNAD13}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox14"
name="checkNAD14"
value={this.state.checksNAD.checkNAD14}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox15"
name="checkNAD15"
value={this.state.checksNAD.checkNAD15}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox16"
name="checkNAD16"
value={this.state.checksNAD.checkNA16}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox17"
name="checkNAD17"
value={this.state.checksNAD.checkNAD17}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox18"
name="checkNAD18"
value={this.state.checksNAD.checkNAD18}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox19"
name="checkNAD19"
value={this.state.checksNAD.checkNAD19}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox20"
name="checkNAD20"
value={this.state.checksNAD.checkNAD20}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox21"
name="checkNAD21"
value={this.state.checksNAD.checkNAD21}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox22"
name="checkNAD22"
value={this.state.checksNAD.checkNAD22}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox23"
name="checkNAD23"
value={this.state.checksNAD.checkNAD23}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox24"
name="checkNAD24"
value={this.state.checksNAD.checkNAD24}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox25"
name="checkNAD25"
value={this.state.checksNAD.checkNAD25}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox26"
name="checkNAD26"
value={this.state.checksNAD.checkNAD26}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox27"
name="checkNAD27"
value={this.state.checksNAD.checkNAD27}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox28"
name="checkNAD28"
value={this.state.checksNAD.checkNAD28}
onChange={this.handleChange}
/>
</div>
</Col>
<Col>
<div className="contenedorPrincipal">
<img
src={manito}
width="500"
height="300"
alt=""
/>
<input
type="checkbox"
className="checkBox1"
name="checkNAT1"
value={this.state.checksNAT.checkNAT1}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox2"
name="checkNAT2"
value={this.state.checksNAT.checkNAT2}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox3"
name="checkNAT3"
value={this.state.checksNAT.checkNAT3}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox4"
name="checkNAT4"
value={this.state.checksNAT.checkNAT4}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox5"
name="checkNAT5"
value={this.state.checksNAT.checkNAT5}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox6"
name="checkNAT6"
value={this.state.checksNAT.checkNAT6}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox7"
name="checkNAT7"
value={this.state.checksNAT.checkNAT7}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox8"
name="checkNAT8"
value={this.state.checksNAT.checkNAT8}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox9"
name="checkNAT9"
value={this.state.checksNAT.checkNAT9}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox10"
name="checkNAT10"
value={this.state.checksNAT.checkNAT10}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox11"
name="checkNAT11"
value={this.state.checksNAT.checkNAT11}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox12"
name="checkNAT12"
value={this.state.checksNAT.checkNAT12}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox13"
name="checkNAT13"
value={this.state.checksNAT.checkNAT13}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox14"
name="checkNAT14"
value={this.state.checksNAT.checkNAT14}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox15"
name="checkNAT15"
value={this.state.checksNAT.checkNAT15}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox16"
name="checkNAT16"
value={this.state.checksNAT.checkNA16}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox17"
name="checkNAT17"
value={this.state.checksNAT.checkNAT17}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox18"
name="checkNAT18"
value={this.state.checksNAT.checkNAT18}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox19"
name="checkNAT19"
value={this.state.checksNAT.checkNAT19}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox20"
name="checkNAT20"
value={this.state.checksNAT.checkNAT20}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox21"
name="checkNAT21"
value={this.state.checksNAT.checkNAT21}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox22"
name="checkNAT22"
value={this.state.checksNAT.checkNAT22}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox23"
name="checkNAT23"
value={this.state.checksNAT.checkNAT23}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox24"
name="checkNAT24"
value={this.state.checksNAT.checkNAT24}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox25"
name="checkNAT25"
value={this.state.checksNAT.checkNAT25}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox26"
name="checkNAT26"
value={this.state.checksNAT.checkNAT26}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox27"
name="checkNAT27"
value={this.state.checksNAT.checkNAT27}
onChange={this.handleChange}
/>
<input
type="checkbox"
className="checkBox28"
name="checkNAT28"
value={this.state.checksNAT.checkNAT28}
onChange={this.handleChange}
/>
</div>
</Col>
</Row>
</Card>
</Col>
</Row>
</FormGroup>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<FormGroup>
<Label>CRP</Label>
<InputNumber
postfix="mg/l"
max={100}
min={0}
onChange={value => this.setState({ crp: value })}
value={this.state.crp}
placeholder="0 - 100"
name="crp"
id="crp"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>VSG</Label>
<InputNumber
postfix="mm/h"
max={200}
min={0}
onChange={value => this.setState({ vsg: value })}
value={this.state.vsg}
placeholder="0 - 200"
name="vsg"
id="vsg"
/>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<FormGroup>
<Col>Variables para CDAI y SDAI</Col>
</FormGroup>
</Row>
<Row>
<Col>
<FormGroup>
<Label>VGP</Label>
<InputNumber
max={10}
min={0}
onChange={value => this.setState({ vgp1: value })}
value={this.state.vgp1}
placeholder="0 - 10"
name="vgp1"
id="vgp1"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>VGM</Label>
<InputNumber
max={10}
min={0}
onChange={value => this.setState({ vgm1: value })}
value={this.state.vgm1}
placeholder="0 - 10"
name="vgm1"
id="vgm1"
/>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<FormGroup>
<Col>Variables para DAS28-PCR y DAS28-VSG</Col>
</FormGroup>
</Row>
<Row>
<Col>
<FormGroup>
<Label>VGM</Label>
<InputNumber
max={100}
min={0}
onChange={value => this.setState({ vgm2: value })}
value={this.state.vgm2}
placeholder="0 - 100"
name="vgm2"
id="vgm2"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>VGP</Label>
<InputNumber
max={100}
min={0}
onChange={value => this.setState({ vgp2: value })}
value={this.state.vgp2}
placeholder="0 - 100"
name="vgp2"
id="vgp2"
/>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<Card style={{ padding: 20, textAlign: "center" }}>
<h4>CDAI</h4>
<h1
style={{
color: "blue"
}}
>
{this.state.cdai}
</h1>
<h3
style={{
color: "blue"
}}
>
{this.state.CDAI_RANGO}
</h3>
</Card>
</Col>
<Col>
<Card style={{ padding: 20, textAlign: "center" }}>
<h4>SDAI</h4>
<h1
style={{
color: "green"
}}
>
{this.state.sdai}
</h1>
<h3
style={{
color: "green"
}}
>
{this.state.SDAI_RANGO}
</h3>
</Card>
</Col>
<Col>
<Card style={{ padding: 20, textAlign: "center" }}>
<h4>DAS28-PCR</h4>
<h1
style={{
color: "orange"
}}
>
{this.state.das28pcr}
</h1>
<h3
style={{
color: "orange"
}}
>
{this.state.DAS28_PCR_RANGO}
</h3>
</Card>
</Col>
<Col>
<Card style={{ padding: 20, textAlign: "center" }}>
<h4>DAS28-VSG</h4>
<h1
style={{
color: "violet"
}}
>
{this.state.das28vsg}
</h1>
<h3
style={{
color: "violet"
}}
>
{this.state.DAS28_VSG_RANGO}
</h3>
</Card>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="plan">Plan</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.plan}
name="plan"
id="plan"
/>
</FormGroup>
</Col>
</Row>
</Form>
</CardBody>
</Card>
<Button
onClick={this.handleAdd}
color="primary"
style={{ marginTop: 20 }}
>
Agregar
</Button>
<SweetAlert
success
onConfirm={this.alertConfirm}
show={this.state.alertCreado}
>
Consulta agregada con éxito!
</SweetAlert>
{" "}
<Button
type="button"
color="calcularscore"
onClick={this.calcularScores}
style={{ marginTop: 20 }}
>
{" "}
Calcular Scores
</Button>
{" "}
<Button
onClick={this.props.history.goBack}
appearance="primary"
style={{ marginTop: 20 }}
>
Atras
</Button>
<Icon
href="#"
id="scroll"
className="scroll"
style={{ marginLeft: 700, color: "#07689F", background: "white" }}
onClick={event => {
event.preventDefault();
this.scroll();
}}
icon="angle-double-up"
size="4x"
/>
</Container>
);
}
}
export default Consulta;
<file_sep>/src/components/laboratorio/modiTurno.jsx
import React, { Component } from "react";
import {
Button,
Container,
Row,
Col,
Form,
FormGroup,
Label,
Input
} from "reactstrap";
class ModiTurno extends Component {
constructor() {
super();
this.state = {
datosOrdenEstudio: {},
datosTurno: [],
datosTurnoDist: [],
datosTurnoDistSelect: [],
turnoAgregar: {},
archivo: {},
turno: "",
fechaTurno: "",
numeroTruno: "",
horarioTurno: ""
};
this.handleChange = this.handleChange.bind(this);
this.handleAdd = this.handleAdd.bind(this);
this.onSelectTurno = this.onSelectTurno.bind(this);
this.onSelectNumTurno = this.onSelectNumTurno.bind(this);
this.update = this.update.bind(this);
}
onSelectTurno(value, item, event) {
var list = this.state.datosTurnoDist;
var list2 = this.state.datosTurno.filter(item => {
return item.fechaturno === this.state.fechaTurno;
});
var listTurnos = [];
var turnos = list.filter(item => {
return item.turno === value;
});
for (let i = 0; i < turnos.length; i++) {
const obj = {
label: turnos[i].desturno,
value: turnos[i]
};
if (list2.length === 0) {
listTurnos.push(obj);
} else {
for (let j = 0; j < list2.length; j++) {
if (obj.value.codturnodist !== list2[j].codturnodist) {
listTurnos.push(obj);
}
}
}
}
this.setState({ turno: value, datosTurnoDistSelect: listTurnos });
}
onSelectNumTurno(value, item, event) {
const turno = {
codturnodist: value.codturnodist,
fechaturno: this.state.fechaTurno,
estado: "Agendado"
};
this.setState({ turnoAgregar: turno });
console.log(turno);
}
async update() {
await axios
.put(url1)
.then(function(response) {
console.log(response);
})
.catch(function(error) {
console.log(error);
});
}
async componentWillMount() {
const cod = this.props.match.params.codordenestudio;
const url1 = "http://127.0.0.1:8000/api/ordenestudio?codordenestudio=";
const url2 = "http://127.0.0.1:8000/api/turno_dist";
const url3 = "http://127.0.0.1:8000/api/turno";
let datosOrdenEstudio = {};
let datosTurnoDist = [];
let datosTurno = [];
//datos de la orden de estudio
await axios
.get(url1 + cod)
.then(function(response) {
datosOrdenEstudio = response.data[0];
})
.catch(function(error) {
console.log(error);
});
//datos de la distribucion de turnos
await axios
.get(url2)
.then(function(response) {
datosTurnoDist = response.data;
})
.catch(function(error) {
console.log(error);
});
//datos de los turnos existentes
await axios
.get(url3)
.then(function(response) {
datosTurno = response.data;
})
.catch(function(error) {
console.log(error);
});
//se asignan los states
this.setState({
datosOrdenEstudio: datosOrdenEstudio,
datosTurnoDist: datosTurnoDist,
datosTurno: datosTurno
});
console.log(this.state.datosTurno);
}
render() {
return (
<Container>
<Row>
<Col />
</Row>
</Container>
);
}
}
export default ModiTurno;
<file_sep>/src/components/laboratorio/buscarPaciente.jsx
import React, { Component } from "react";
import { Link } from "react-router-dom";
import {
Button,
Container,
Alert,
Row,
Col,
FormGroup,
Label,
Input
} from "reactstrap";
import "bootstrap/dist/css/bootstrap.css";
import axios from "axios";
import { Panel } from "rsuite";
class BuscarPaciente extends Component {
constructor() {
super();
this.state = {
nrodocumento: "",
nombre: "",
apellido: "",
datosficha: {},
fadeIn: false,
alert: false
};
this.handleChange = this.handleChange.bind(this);
this.handleSearch = this.handleSearch.bind(this);
}
handleChange(e) {
const target = e.target;
const value = target.type === "checkbox" ? target.checked : target.value;
const name = target.name;
this.setState({
[name]: value
});
}
async handleSearch() {
const url_nroDoc = "http://127.0.0.1:8000/api/ficha?nrodocumento=";
const urlNomApe = "http://127.0.0.1:8000/api/ficha?nombres=";
const apellido = "&apellidos=";
const nroDoc = this.state.nrodocumento;
let datosficha = {};
let respuesta;
let url_usada;
if (this.state.nrodocumento === "") {
//si esta vacio vamos a preguntar si nombre o apellido estan con algun valor
if (this.state.nombre !== "" || this.state.apellido !== "") {
//si ocurre que alguno de los dos esta osea con un valor, vamos a asignarle ambos, un nombre y un apellido, no importa cual este vacio, total igual trae
url_usada = urlNomApe + apellido + this.state.apellido; //aca le concatena todo si entiendo nomas qria decir :()
} else {
//aca tenemos que avisar que nigun campo este vacio
}
} else {
// si no esta vacio entonces usamos la primera url
url_usada = url_nroDoc + nroDoc;
}
await axios
.get(url_usada) //ahora necesitamos agregar los inputs
.then(function(response) {
console.log(response.data[0]);
if (response.data[0] === undefined) {
respuesta = null;
} else {
datosficha = response.data[0];
}
})
.catch(function(error) {
console.log(error);
});
if (respuesta === null) {
this.setState({
alert: !this.state.alert,
fadeIn: !this.state.fadeIn
});
} else {
this.setState({
datosficha: datosficha,
fadeIn: !this.state.fadeIn,
alert: false
});
}
}
render() {
return (
<Container>
<Alert color="danger" isOpen={this.state.alert} toggle={this.onDismiss}>
no se encontro el paciente!
</Alert>
<Row>
<Col>
<FormGroup>
<Label for="nrodocumento">Buscar por CI</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.nrodocumento}
name="nrodocumento"
id="nrodocumento"
/>
</FormGroup>
<Button onClick={this.handleSearch} color="primary">
Buscar
</Button>
</Col>
{/*<Col>
<FormGroup>
<Label for="nrodocumento">Buscar por Nombre y apellido</Label>
<Row>
<Col>
<Input
type="text"
onChange={this.handleChange}
value={this.state.nombre}
name="nombre"
id="nombre"
/>
</Col>
<Col>
<Input
type="text"
onChange={this.handleChange}
value={this.state.apellido}
name="apellido"
id="apellido"
/>
</Col>
</Row>
</FormGroup>
{/*sale feito, vmos a ponerle uno al lado del otro. yo pense q iba a ser en un so*/}
</Row>
<hr />
<Container>
<Row>
<Col>
<Panel
header="Datos de La Persona"
bordered
style={{ backgroundColor: "#F9FCFB" }}
>
<Link to={`/lista_estudios/${this.state.datosficha.codficha}`}>
<h4>
{this.state.datosficha.nombres}{" "}
{this.state.datosficha.apellidos}{" "}
</h4>
</Link>
<p>
<strong>Sexo: </strong> {this.state.datosficha.sexo}
</p>
<p>
<strong>Nacionalidad: </strong>
{this.state.datosficha.nacionalidad}
</p>
<p>
<strong>Estado Civil: </strong>
{this.state.datosficha.estadocivil}
</p>
<p>
<strong>Profesion: </strong>
{this.state.datosficha.profesion}
</p>
<p>
<strong>Diagnostico: </strong>
{this.state.datosficha.diagnostico}
</p>
</Panel>
</Col>
</Row>
<Row />
</Container>
</Container>
);
}
}
export default BuscarPaciente;
<file_sep>/src/components/panolab/panolabView.jsx
import React, { Component } from "react";
import {
Card,
Button,
CardHeader,
CardBody,
Container,
Row,
Col,
Form,
FormGroup,
Label
} from "reactstrap";
import axios from "axios";
import { withRouter } from "react-router-dom";
import { Alert, Icon } from "rsuite";
import SweetAlert from "react-bootstrap-sweetalert";
class PanolabView extends Component {
constructor() {
super();
this.state = {
intervalId: 0,
datosPanolab: {},
visible: false,
showDeclarative: false,
confirmDelete: false,
confirmCancel: false
};
this.handleDelete = this.handleDelete.bind(this);
this.onDismiss = this.onDismiss.bind(this);
this.onCancelDelete = this.onCancelDelete.bind(this);
this.alertDelete = this.alertDelete.bind(this);
this.alertCancel = this.alertCancel.bind(this);
this.formatDate = this.formatDate.bind(this);
}
onDismiss() {
this.setState({ visible: false });
}
async handleDelete() {
const cod = this.props.match.params.codpanolab; //direccto accedes, yaa, y eso nomas es, que te falta ahora?
const url1 = "http://127.0.0.1:8000/api/panolab/" + cod + "/";
const response = await axios.delete(url1);
if (response.status === 204) {
Alert.success("La Panorámica de Laboratorio ha sido eliminada con éxito"); //con este avisascmenta nomas, ok
this.props.history.push(
"/menu_ficha/" +
this.props.match.params.codficha +
"/ficha_view/" +
this.props.match.params.codficha // y con este mandas al menu de la fi
);
}
}
async componentWillMount() {
const cod = this.props.match.params.codpanolab;
console.log("Esto se imprimer porque carga la view");
const url1 = "http://127.0.0.1:8000/api/panolab?codpanolab=";
let datosPanolab = {};
console.log(cod);
await axios
.get(url1 + cod)
.then(function(response) {
console.log(response.data[0]);
datosPanolab = response.data[0];
})
.catch(function(error) {
console.log(error);
});
this.setState({
datosPanolab: datosPanolab
});
console.log(this.state.datosPanolab); //trae bien, trae bien? el cod digo no el contenido
}
onCancelDelete = function() {
this.setState({
confirmCancel: !this.state.confirmCancel,
confirmDelete: !this.state.confirmDelete
});
};
alertDelete() {
this.setState({ confirmDelete: !this.state.confirmDelete });
}
alertCancel = function() {
this.setState({
confirmCancel: !this.state.confirmCancel
});
};
formatDate(date) {
var monthNames = [
"Enero",
"Febrero",
"Marzo",
"April",
"Mayo",
"Junio",
"Julio",
"Agosto",
"Septiembre",
"Octubre",
"Noviembre",
"Diciembre"
];
var day = date.getUTCDate();
var monthIndex = date.getMonth();
var year = date.getFullYear();
return day + " " + monthNames[monthIndex] + " " + year;
}
scroll() {
let intervalId = setInterval(
this.scrollStep.bind(this),
this.props.delayInMs
);
//store the intervalId inside the state,
//so we can use it later to cancel the scrolling
this.setState({ intervalId: intervalId });
}
scrollStep() {
if (window.scrollY === 0) {
clearInterval(this.state.intervalId);
}
window.scroll(0, window.scrollY - this.props.scrollStepInPx);
}
render() {
return (
<Container style={{ marginTop: 20 }}>
<Card style={{ backgroundColor: "#F9FCFB" }}>
<CardHeader style={{ backgroundColor: "#07689F" }}>
<h2 style={{ backgroundColor: "#07689F", color: "#FFFFFF" }}>
Datos Panorámica de Laboratorio
</h2>
</CardHeader>
<CardBody>
<Form>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Prótesis:</strong>
</Label>
<p>{this.state.datosPanolab.protesis}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Hb:</strong>
</Label>
<p>{this.state.datosPanolab.hemoglobina}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Hto:</strong>
</Label>
<p>{this.state.datosPanolab.hemotocrito}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Fecha:</strong>
</Label>
<p>
{this.formatDate(
new Date(this.state.datosPanolab.fechapanolab)
)}
</p>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>VCM:</strong>
</Label>
<p>{this.state.datosPanolab.vcm}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>GB:</strong>
</Label>
<p>{this.state.datosPanolab.globlanco}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>N/L:</strong>
</Label>
<p>{this.state.datosPanolab.nl}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Plaq:</strong>
</Label>
<p>{this.state.datosPanolab.plaqueta}</p>
</FormGroup>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<h5>GOT</h5>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Desde:</strong>
</Label>
<p>{this.state.datosPanolab.gotdesde}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Hasta:</strong>
</Label>
<p>{this.state.datosPanolab.gothasta}</p>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<h5>GPT</h5>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Desde:</strong>
</Label>
<p>{this.state.datosPanolab.gptdesde}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Hasta:</strong>
</Label>
<p>{this.state.datosPanolab.gpthasta}</p>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<FormGroup>
<Label>
<strong>BT:</strong>
</Label>
<p>{this.state.datosPanolab.bilirrubina}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Urea:</strong>
</Label>
<p>{this.state.datosPanolab.uresa}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>VSG:</strong>
</Label>
<p>{this.state.datosPanolab.vsg}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>PCR:</strong>
</Label>
<p>{this.state.datosPanolab.pcr}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Glic:</strong>
</Label>
<p>{this.state.datosPanolab.glicemia}</p>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>CT:</strong>
</Label>
<p>{this.state.datosPanolab.coleste}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>LDL:</strong>
</Label>
<p>{this.state.datosPanolab.ldl}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>VLDL:</strong>
</Label>
<p>{this.state.datosPanolab.vldl}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>TG:</strong>
</Label>
<p>{this.state.datosPanolab.trigliceri}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Ac. Úrico</strong>
</Label>
<p>{this.state.datosPanolab.acidourico}</p>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<h5>FR</h5>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Desde:</strong>
</Label>
<p>{this.state.datosPanolab.frdesde}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Hasta:</strong>
</Label>
<p>{this.state.datosPanolab.frhasta}</p>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<h5>Anti CCP</h5>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Negativo:</strong>
</Label>
<p>{this.state.datosPanolab.anticcpneg}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Positivo:</strong>
</Label>
<p>{this.state.datosPanolab.anticcppost}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Titulo:</strong>
</Label>
<p>{this.state.datosPanolab.anticcpposd}</p>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<h5>ANA</h5>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Negativo:</strong>
</Label>
<p>{this.state.datosPanolab.ananeg}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Positivo:</strong>
</Label>
<p>{this.state.datosPanolab.anaposit}</p>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<h5>AntiDNA</h5>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Negativo:</strong>
</Label>
<p>{this.state.datosPanolab.anticcpneg}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Negativo:</strong>
</Label>
<p>{this.state.datosPanolab.antidnaneg}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Positivo:</strong>
</Label>
<p>{this.state.datosPanolab.antidnapos}</p>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Prot 24:</strong>
</Label>
<p>{this.state.datosPanolab.prot24}</p>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Observación:</strong>
</Label>
<p>{this.state.datosPanolab.observacion}</p>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
</Row>
</Form>
</CardBody>
</Card>
<hr />
<FormGroup>
<Button
onClick={this.alertDelete}
color="danger"
style={{ marginTop: 20 }}
>
Eliminar
<SweetAlert
warning
showCancel
allowEscape
show={this.state.confirmDelete}
confirmBtnText="Sí, Eliminar Panorámica"
cancelBtnText="Cancelar"
confirmBtnBsStyle="danger"
cancelBtnBsStyle="default"
onConfirm={this.handleDelete}
onCancel={this.onCancelDelete}
>
¿Estas seguro de Eliminar la Panorámica?
</SweetAlert>
</Button>
{" "}
<Button
onClick={this.props.history.goBack}
appearance="primary"
style={{ marginTop: 20 }}
>
Atras
</Button>
<Icon
href="#"
id="scroll"
className="scroll"
style={{ marginLeft: 700, color: "#07689F", background: "white" }}
onClick={event => {
event.preventDefault();
this.scroll();
}}
icon="angle-double-up"
size="4x"
/>
</FormGroup>
</Container>
);
}
}
export default PanolabView;
<file_sep>/src/App.js
import React, { Component } from "react";
import NavBar from "./components/navbar";
import Home from "./components/home";
import { Route, Switch, BrowserRouter as Router } from "react-router-dom";
import Ficha from "./components/ficha/fichaForm";
import Consulta from "./components/consulta/consultaForm";
import BuscarFicha from "./components/ficha/buscarFicha";
import FichaView from "./components/ficha/fichaView";
import FichaEdit from "./components/ficha/fichaEdit";
import Panolab from "./components/panolab/panolabForm";
import PanolabView from "./components/panolab/panolabView";
import MenuFicha from "./components/ficha/menuficha";
import ConsultaView from "./components/consulta/consultaView";
import NavBarMenu from "./components/navbar";
import OrdenEstudio from "./components/ordenestudio/ordenestudioForm";
import OrdenEstudioView from "./components/ordenestudio/ordenestudioView";
import MenuPrincipal from "./components/principal";
import ListaEstudios from "./components/laboratorio/estudios";
import BuscarPaciente from "./components/laboratorio/buscarPaciente";
import Turnos from "./components/laboratorio/turnos";
import MenuLab from "./components/laboratorio/menuLab";
import OrdenEstudioViewLab from "./components/laboratorio/ordenestudioViewLab";
import Login from "./components/Login";
import "antd/dist/antd.css";
import "rsuite/dist/styles/rsuite.min.css";
class App extends Component {
render() {
return (
<div>
<div className="content" style={{ marginTop: 60 }}>
<Switch>
<Route exact path="/" component={Login} />
<Route exact path="/login" component={Login} />
<Route
path="/lista_estudios/:codficha"
exact
component={ListaEstudios}
/>
<Route path="/turnos/" exact component={Turnos} />
<Route path="/menu_lab/" exact component={MenuLab} />
<Route path="/buscar_paciente/" exact component={BuscarPaciente} />
<Route path="/ordenestudio/:codficha" component={OrdenEstudio} />
<Route
path="/ordenestudio_view/:codordenestudio"
component={OrdenEstudioView}
/>
<Route
path="/ordenestudio_view_lab/:codordenestudio/:codficha"
component={OrdenEstudioViewLab}
/>
<Route path="/ficha_edit/:codficha" component={FichaEdit} />
<Route path="/ficha_buscar" component={BuscarFicha} />
<Route path="/menu_ficha/:codficha" component={MenuFicha} />
<Route path="/ficha" component={Ficha} />
<Route path="/menu/" exact component={MenuPrincipal} />
<Route path="/consulta/:codficha" component={Consulta} />
<Route
path="/consulta_view/:codconsulta/:codficha"
component={ConsultaView} //pero esta tambien consulta no es ese el problema
/>
</Switch>
</div>
</div>
);
}
}
export default App;
<file_sep>/src/components/cuestionarios/egc.jsx
import React, { Component } from "react";
import {
Row,
Col,
Input,
Label,
Container,
Button,
FormGroup
} from "reactstrap";
class Egc extends Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
return (
<Container>
<Row
style={{ marginBottom: 20, marginTop: 20, justifyContent: "center" }}
>
<Col>
<h2>
<strong>Escala global de cambios</strong>
</h2>
<hr />
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>
<strong>Bienestar físico </strong>
</Label>
<p>
Se refiere al modo en que Ud. siente su cuerpo. Incluye síntomas
tales como dolor, malestar, nauseas y cansancio.
</p>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Mucho mejor</option>
<option>Un poco mejor</option>
<option>Igual </option>
<option>Un poco peor </option>
<option>Mucho peor </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>
<strong>Bienestar Social y Familiar </strong>
</Label>
<p>
Esto refleja como se siente Ud. acerca de sus amistades y sus
relaciones familiares. El bienestar social y familiar abarca
muchas cosas tales como sentirse distante de amigos y familiares,
tener una buena relación sexual o cómo es la comunicación acerca
de su enfermedad.
</p>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Mucho mejor</option>
<option>Un poco mejor</option>
<option>Igual </option>
<option>Un poco peor </option>
<option>Mucho peor </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>
<strong> Bienestar Emocional </strong>
</Label>
<p>
Se refiere a sentimientos personales tales como tristeza,
nerviosismo o preocupaciones acerca de su enfermedad. También se
refiere a sentimientos positivos tales como estar orgulloso de
cómo está haciendo frente a su problema de salud.
</p>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Mucho mejor</option>
<option>Un poco mejor</option>
<option>Igual </option>
<option>Un poco peor </option>
<option>Mucho peor </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>
<strong> Bienestar Funcional </strong>
</Label>
<p>
Esto se refiere a en qué medida puede Ud. hacer cosas que son
parte de su vida cotidiana. Algunos ejemplos son: poder trabajar,
tanto dentro como fuera de la casa, disfrutar de las cosas que
acostumbra a hacer para entretenerse, dormir bien y sentirse
satisfecha de su vida diaria.
</p>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Mucho mejor</option>
<option>Un poco mejor</option>
<option>Igual </option>
<option>Un poco peor </option>
<option>Mucho peor </option>
</Input>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="8" lg="8" md="8">
<Label>
<strong> Calidad de vida en general </strong>
</Label>
<p>
Esto se refiere a qué medida puede Ud. hacer cosas que son parte
de su vida cotidiana. Algunos ejemplos son: poder trabajar, tanto
dentro como fuera de la casa, disfrutar de las cosas que
acostumbra a hacer para entretenerse, dormir bien y sentirse
satisfecha de su vida diaria.
</p>
</Col>
<Col xs="4" lg="4" md="4">
<Input type="select">
<option>Mucho mejor</option>
<option>Un poco mejor</option>
<option>Igual </option>
<option>Un poco peor </option>
<option>Mucho peor </option>
</Input>
</Col>
</Row>
<Row style={{ marginTop: 40, marginBottom: 40 }}>
<Col>
<Button color="success">Agregar Cuestionario</Button>
</Col>
</Row>
</Container>
);
}
}
export default Egc;
<file_sep>/src/components/navFresca.jsx
import React, { Component } from "react";
import { Link } from "react-router-dom";
import logo from "./logo.png";
import { Dropdown, Nav, Navbar, Icon, Header } from "rsuite";
import "../themes/fresca.css";
import { connect } from "react-redux";
import * as actions from "../store/actions/auth";
import {
Route,
Switch,
BrowserRouter as Router,
withRouter,
NavLink
} from "react-router-dom";
class NavBarFresca extends Component {
constructor(props) {
super(props);
this.toggle = this.toggle.bind(this);
this.state = {
isOpen: false,
activeStyleConsulta: {
textDecoration: "none",
color: "#3c763d",
"&:hover": {
textDecoration: "none",
color: "#3c763d",
backgroundcolor: "#FFFF",
backgroundColor: "#FFFF"
}
}
};
}
toggle() {
this.setState({
isOpen: !this.state.isOpen
});
}
render() {
return (
<nav
class="navbar navbar-expand-md navbar-dark bg-primary mb-2"
style={{
top: 0,
position: "fixed",
zIndex: 3,
width: "100%"
}}
>
<nav class="nav-logo">
<img
src={logo}
alt="..."
style={{
width: "14%",
height: "28%",
zIndex: 3
}}
/>
</nav>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarColor02"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon" />
</button>
<div class="collapse navbar-collapse" id="navbarColor02">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="/menu/" title="Current breakpoint tier">
Inicio
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" title="Current breakpoint tier">
Configuración
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" title="Current breakpoint tier">
Perfil
</a>
</li>
<li class="nav-item">
<NavLink
className="nav-link"
to="/login"
onClick={this.props.logout}
>
Cerrar Sesión
</NavLink>
</li>
</ul>
</div>
</nav>
);
}
}
const mapDispatchToProps = dispatch => {
return {
logout: () => dispatch(actions.logout())
};
};
export default withRouter(
connect(
null,
mapDispatchToProps
)(NavBarFresca)
);
<file_sep>/src/components/ficha/fichaForm.jsx
import React, { Component } from "react";
import {
Card,
Button,
CardHeader,
CardBody,
Container,
Row,
Col,
Form,
FormGroup,
Label,
Input
} from "reactstrap";
import { Modal, Alert } from "rsuite";
import axios from "axios";
import Joi from "joi-browser";
import { AutoComplete } from "primereact/autocomplete";
import BootstrapTable from "react-bootstrap-table-next";
import "primereact/resources/themes/nova-light/theme.css";
import "primereact/resources/primereact.min.css";
import "primeicons/primeicons.css";
import "react-bootstrap-table-next/dist/react-bootstrap-table2.min.css";
import Fame from "./../fames/famesForm";
import Comorbilidad from "./../comorbilidades/comorForm";
import EventoCardiovascular from "./../eventocardiovascular/eventocardiovascularForm";
import Manifestaciones from "./../manifestaciones/manifestaciones";
import SweetAlert from "react-bootstrap-sweetalert";
import { withRouter } from "react-router-dom";
const ColoredLine = ({ color }) => (
<hr
style={{
color: color,
backgroundColor: color,
height: 150,
width: 2,
borderleft: 1
}}
/>
);
class Ficha extends Component {
constructor() {
super();
this.state = {
codFichaReturn: "", //necesitamos guardar el codconsulta que retorna
//alert
alertCreado: false,
errores: {},
visible: false,
aviso: false,
toggleFame: false,
toggleComor: false,
toggleEvento: false,
toggleMani: false,
//datos correspondientes al paciente
datosFicha: {
codusuario: null, //#código interno de usuario, para saber quién agrego la ficha
nombres: "", //#nombres completos del paciente
apellidos: "", //#apellidos completos del paciente
tipodocumento: "Cédula de Identidad", //#tipo de documento
nrodocumento: "", //#cédula de identidad del paciente
sexo: "F", // #sexo del paciente
fechainclusion: "", // #fecha de inclusión del paciente
procedencia: "", //#procedencia del paciente
nacionalidad: "Paraguayo/a", // #nacionalidad del paciente
escolaridad: "Escolar Media", // #escolaridad del paciente
diagnostico: "", //#diagnóstico inicial del paciente
fechadiagnos: "", // #fecha del diagnostico
fechanaci: "", //#fecha de nacimiento del paciente
estadocivil: "Soltero/a", //#estado civil del paciente
profesion: "", // #profesión del paciente
telefono: "", // #número de teléfono del paciente
codpatron: null, //#código interno único para anapatron, para saber que patron tiene asociada la ficha HA
nhc: "", // #número de historial clínico, código externo de la ficha, por el cual se manejan los usuarios
iniciosint: null, //#Fecha en el que el Paciente empezó a notar síntomas
formainic: "Mono", //#Descripción de los síntomas del paciente
apf: "", // #Antecedentes Patológicos Familiares
apfcv: "", // #Antecedentes patológicos familiares cardiovasculares
appfractura: "", // #Antecedentes patológicos personales de fracturas
apffractura: "", // #Antecedentes patológicos familiares de fracturas
protesissitio: "", // #Datos de prótesis del Paciente
protefecha: null, // #Datos de prótesis del Paciente
apfneoplasias: "", // #Antecedentes familiares de neoplasias (tumores)
tabaquismo: false, // #Si el Paciente es tabaquista
sedentarismo: false, // #Si el Paciente es sedentario
actifisica: false, //#Si el Paciente realiza actividad física
tabaqfecha: null, //#Fecha que comenzo a fumar
tabnumero: null, //#Número de paquetes que fuma/fumo por dia
extabaq: false, //#Si fue fumador
menarca: null, // #Edad de primera menstruación
menopausia: null, // #Edad de menopausia
edadvidasex: null, //#A los cuantos años comenzó a tener actividad sexual
gestas: null, //#Cantidad de gestas
partos: null, //#Cantidad de partos
cesareas: null, //#Cantidad de Cesáreas
abortos: null, //#Cantidad de abortos
hisjospost: false, //#sí o no, tuvo hijos
factorreuma_pos: "", //#factor reumatoide
factorreuma_neg: "", //#factor reumatoide
factorreuma_nivel: "", //#factor reumatoide
acpa_pos: "", // #anticuerpos antipéptidos cíclicos citrulinados
acpa_neg: "", // #anticuerpos antipéptidos cíclicos citrulinados
acpa_nivel: "", // #anticuerpo antinuclear
ana_pos: "", //ANA patron
ana_neg: "", //ANA patron
ana_patron: "", //ANA patron
rxmanos: false, //#erecciones sí o no
rxmanosfecha: null, //#la fecha que tuvo las erecciones ----------> wtf erecciones hei
rxpies: false, //#erecciones sí o no
rxpiesfecha: null //#la fecha que tuvo las erecciones
},
deshabilitar: false,
deshabilitartaba: true,
deshabilitarrxpies: true,
deshabilitarrxmanos: true,
suggestions: [],
fameSelected: null,
fame: "",
fameDesde: "",
fameHasta: "",
famesList: [],
famesListTable: [],
famesListTableSelected: "",
columnsFames: [
{
dataField: "codfame",
hidden: true
},
{
dataField: "nombre",
text: "Nombre"
},
{
dataField: "descripcion",
text: "Descripción"
},
{
dataField: "famedesde",
text: "Fecha Desde"
},
{
dataField: "famehasta",
text: "Fecha Hasta"
}
],
comorSelected: null,
fechaDxComor: "",
comorbilidad: "",
comorList: [],
comorListTable: [],
comorListTableSelected: "",
columnsComor: [
{
dataField: "codenfermedad",
hidden: true
},
{
dataField: "nombre",
text: "Nombre"
},
{
dataField: "fechadiagnostico",
text: "Fecha Diagnóstico "
}
],
eventocardioSelected: null,
eventocardio: "",
eventList: [],
eventListTable: [],
eventListTableSelected: "",
columnsEvent: [
{
dataField: "codeventocardio",
hidden: true
},
{
dataField: "nombre",
text: "Nombre"
}
],
maniSelected: null,
mani: "",
maniList: [],
maniListTable: [],
maniListTableSelected: "",
columnsMani: [
{
dataField: "codmanif",
hidden: true
},
{
dataField: "nombre",
text: "Nombre"
},
{
dataField: "descripcion",
text: "Descripción"
}
]
};
this.schema = {
nombres: Joi.string()
.required()
.label("Nombres no puede estar vacío"),
apellidos: Joi.string()
.required()
.label("Apellidos no puede estar vacío"),
nhc: Joi.number()
.required()
.label("NHC no puede estar vacío"),
fechadiagnos: Joi.string()
.required()
.label("Fecha Diagnóstico no puede estar vacío"),
fechainclusion: Joi.string()
.required()
.label("Fecha Inclusión no puede estar vacío"),
diagnostico: Joi.string()
.required()
.label("Diagnostico no puede estar vacío"),
nrodocumento: Joi.number()
.required()
.label("Nro de Documento no puede estar vacío"),
fechanaci: Joi.string()
.required()
.label("Fecha de Nacimiento no puede estar vacío")
};
this.handleChange = this.handleChange.bind(this);
this.handleAdd = this.handleAdd.bind(this);
this.handleAddComor = this.handleAddComor.bind(this);
this.onDismissVisivle = this.onDismissVisivle.bind(this);
this.onDismissAviso = this.onDismissAviso.bind(this);
this.validarCedula = this.validarCedula.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
this.toggleFame = this.toggleFame.bind(this);
this.toggleComor = this.toggleComor.bind(this);
this.toggleEvento = this.toggleEvento.bind(this);
this.toggleMani = this.toggleMani.bind(this);
this.filterFame = this.filterFame.bind(this);
this.filterComor = this.filterComor.bind(this);
this.filterEvento = this.filterEvento.bind(this);
this.filterMani = this.filterMani.bind(this);
this.onSelectFame = this.onSelectFame.bind(this);
this.onChangeFame = this.onChangeFame.bind(this);
this.onSelectComor = this.onSelectComor.bind(this);
this.onChangeComor = this.onChangeComor.bind(this);
this.onSelectEventoCardio = this.onSelectEventoCardio.bind(this);
this.onChangeEventoCardio = this.onChangeEventoCardio.bind(this);
this.onSelectMani = this.onSelectMani.bind(this);
this.onChangeMani = this.onChangeMani.bind(this);
this.addFameToList = this.addFameToList.bind(this);
this.addComorToList = this.addComorToList.bind(this);
this.addEventToList = this.addEventToList.bind(this);
this.addManiToList = this.addManiToList.bind(this);
this.eliminarFame = this.eliminarFame.bind(this);
this.eliminarMani = this.eliminarMani.bind(this);
this.eliminarComor = this.eliminarComor.bind(this);
this.eliminarEvento = this.eliminarEvento.bind(this);
this.alertConfirm = this.alertConfirm.bind(this);
}
alertConfirm() {
this.setState({ alertCreado: false });
console.log(this.state.codFichaReturn);
this.props.history.push(
"/menu_ficha/" +
this.state.codFichaReturn +
"/ficha_view/" +
this.state.codFichaReturn
);
}
eliminarFame() {
console.log(this.state.famesListTableSelected);
let list = this.state.famesListTable;
list.splice(this.state.famesListTableSelected, 1);
this.setState({ famesListTable: list });
console.log(list);
}
eliminarMani() {
console.log(this.state.maniListTableSelected);
let list = this.state.maniListTable;
list.splice(this.state.maniListTableSelected, 1);
this.setState({ maniListTable: list });
console.log(list);
}
eliminarComor() {
console.log(this.state.comorListTableSelected);
let list = this.state.comorListTable;
list.splice(this.state.comorListTableSelected, 1);
this.setState({ comorListTable: list });
console.log(list);
}
eliminarEvento() {
console.log(this.state.eventListTableSelected);
let list = this.state.eventListTable;
list.splice(this.state.eventListTableSelected, 1);
this.setState({ eventListTable: list });
console.log(list);
}
componentDidMount() {
this.getFameList();
this.getComorList();
this.getEventList();
this.getManiList();
}
async getFameList() {
const urlFame = "http://127.0.0.1:8000/api/fames/";
let listaFame;
await axios
.get(urlFame)
.then(function(response) {
listaFame = response.data;
})
.catch(function(error) {
console.log(error);
});
this.setState({ famesList: listaFame });
}
async getComorList() {
const urlComor = "http://127.0.0.1:8000/api/enfermedad/";
let listaComor;
await axios
.get(urlComor)
.then(function(response) {
listaComor = response.data;
})
.catch(function(error) {
console.log(error);
});
this.setState({ comorList: listaComor });
}
async getEventList() {
const urlEvent = "http://127.0.0.1:8000/api/eventocardio/";
let listaEvent;
await axios
.get(urlEvent)
.then(function(response) {
listaEvent = response.data;
})
.catch(function(error) {
console.log(error);
});
this.setState({ eventList: listaEvent });
}
async getManiList() {
const urlMani = "http://127.0.0.1:8000/api/manif_extra_art/";
let listaMani;
await axios
.get(urlMani)
.then(function(response) {
listaMani = response.data;
})
.catch(function(error) {
console.log(error);
});
this.setState({ maniList: listaMani });
}
filterFame(event) {
var results = this.state.famesList.filter(fame => {
return fame.nombre.toLowerCase().startsWith(event.query.toLowerCase());
});
this.setState({ suggestions: results });
}
filterComor(event) {
var results = this.state.comorList.filter(comor => {
return comor.nombre.toLowerCase().startsWith(event.query.toLowerCase());
});
this.setState({ suggestions: results });
}
filterEvento(event) {
var results = this.state.eventList.filter(evento => {
return evento.nombre.toLowerCase().startsWith(event.query.toLowerCase());
});
this.setState({ suggestions: results });
}
filterMani(event) {
var results = this.state.maniList.filter(mani => {
return mani.nombre.toLowerCase().startsWith(event.query.toLowerCase());
});
this.setState({ suggestions: results });
}
async onSelectFame(e) {
await this.setState({ fameSelected: e.value }, function() {
console.log("console 1" + this.state.fameSelected);
});
}
onChangeFame(e) {
this.getFameList();
this.setState({ fame: e.value });
}
async onSelectComor(e) {
await this.setState({ comorSelected: e.value }, function() {
console.log("console 1" + this.state.comorSelected);
});
}
onChangeComor(e) {
this.getComorList();
this.setState({ comorbilidad: e.value });
}
async onSelectEventoCardio(e) {
await this.setState({ eventocardioSelected: e.value }, function() {
console.log("console 1" + this.state.eventocardioSelected);
});
console.log("console 2" + this.state.eventocardioSelected);
}
onChangeEventoCardio(e) {
this.getEventList();
this.setState({ eventocardio: e.value });
}
async onSelectMani(e) {
await this.setState({ maniSelected: e.value }, function() {
console.log("console 1" + this.state.maniSelected);
});
console.log("console 2" + this.state.maniSelected);
}
onChangeMani(e) {
this.getManiList();
this.setState({ mani: e.value });
}
addFameToList() {
let fameList = this.state.famesListTable;
if (this.state.fameSelected === null) {
{
Alert.warning("El Fame no puedo estar vacio", 10000);
return;
}
} else {
for (let index = 0; index < fameList.length; index++) {
if (fameList[index].codfame === this.state.fameSelected.codfame) {
Alert.warning("El Fame ya fue agregado", 3000);
return;
}
}
const fame = {
codfame: this.state.fameSelected.codfame,
nombre: this.state.fameSelected.nombre,
descripcion: this.state.fameSelected.descripcion,
famedesde: this.state.fameDesde,
famehasta: this.state.fameHasta
};
fameList.push(fame);
console.log(this.state.fameSelected);
console.log("fame a ser agregado" + this.state.fameSelected.nombre);
this.setState({ famesListTable: fameList, fameSelected: null, fame: "" });
}
}
addComorToList() {
console.log(this.state.comorSelected);
let comorList = this.state.comorListTable;
if (this.state.comorSelected === null) {
{
Alert.warning("El APF esta vacío", 5000);
return;
}
} else {
for (let index = 0; index < comorList.length; index++) {
if (
comorList[index].codenfermedad ===
this.state.comorSelected.codenfermedad
) {
Alert.warning("El APF ya fue agregado", 3000);
return;
}
}
const comorbilidad = {
codenfermedad: this.state.comorSelected.codenfermedad,
nombre: this.state.comorSelected.nombre,
fechadiagnostico: this.state.fechaDxComor //*** si no es el mismo nombe de la ficha, no paorque es de otro formulario luego
};
comorList.push(comorbilidad);
console.log(
"comorbilidad a ser agregado" +
this.state.comorSelected.nombre +
this.state.fechaDxComor
);
this.setState({
comorListTable: comorList,
comorSelected: null,
comorbilidad: ""
});
}
}
addEventToList() {
console.log(this.state.eventocardioSelected);
let eventList = this.state.eventListTable;
if (this.state.eventocardioSelected === null) {
{
Alert.warning("El Evento Cardiovasular esta vacío", 5000); //aca no esntra puse par aprobar nomas, pero esta bien osea tiene que ser {} nomas
return;
}
} else {
for (let index = 0; index < eventList.length; index++) {
if (
eventList[index].codeventocardio ===
this.state.eventocardioSelected.codeventocardio
) {
{
Alert.warning("El Evento Cardiovasular ya fue agregado", 3000);
return;
}
}
}
const eventocardio = {
codeventocardio: this.state.eventocardioSelected.codeventocardio,
nombre: this.state.eventocardioSelected.nombre
};
eventList.push(eventocardio);
console.log(
"fame a ser agregado" + this.state.eventocardioSelected.nombre
);
this.setState({
eventListTable: eventList,
eventocardioSelected: null,
eventocardio: ""
});
}
}
addManiToList() {
let maniList = this.state.maniListTable;
if (this.state.maniSelected === null) {
{
Alert.warning("La Manifestación Articular esta vacía", 5000);
return;
}
} else {
for (let index = 0; index < maniList.length; index++) {
if (maniList[index].codmanif === this.state.maniSelected.codmanif) {
{
Alert.warning("La Manifestación Articular ya fue agregada", 3000);
return;
}
}
}
const mani = {
codmanif: this.state.maniSelected.codmanif,
nombre: this.state.maniSelected.nombre,
descripcion: this.state.maniSelected.descripcion
};
maniList.push(mani);
console.log("fame a ser agregado" + this.state.maniSelected.nombre);
this.setState({ maniListTable: maniList, maniSelected: null, mani: "" });
}
}
async validarCedula(e) {
const url1 = "http://127.0.0.1:8000/api/ficha?nrodocumento=";
let error = false;
if (this.state.datosFicha.nrodocumento === "") {
Alert.warning("El Nro de documento no puede estar vacío...", 5000);
return !error;
} else {
await axios
.get(url1 + this.state.datosFicha.nrodocumento)
.then(function(response) {
if (response.data.length > 0) {
//aviso = true;
Alert.warning(
"El Nro de documento ya esta asociada a otra ficha...",
5000
);
error = !error;
} else {
//aviso = false;
}
})
.catch(function(error) {
console.log(error);
});
return error;
}
}
onDismissVisivle() {
this.setState({ visible: !this.state.visible });
}
onDismissAviso() {
//this.setState({ aviso: !this.state.visible });
}
handleChange(e) {
const target = e.target;
let fields = this.state.datosFicha;
const value = target.type === "checkbox" ? target.checked : target.value;
const name = target.name;
fields[name] = value;
this.setState({
datosFicha: fields
});
if ((name === "sexo") & (value === "M")) {
this.setState({
deshabilitar: !this.state.deshabilitar,
menarca: 0,
menopausia: 0,
gestas: 0,
partos: 0,
cesareas: 0,
abortos: 0,
hisjospost: false
});
} else if ((name === "sexo") & (value === "F")) {
this.setState({
deshabilitar: !this.state.deshabilitar
});
}
if ((name === "tabaquismo") & (value === true)) {
this.setState({ deshabilitartaba: !this.state.deshabilitartaba });
} else if ((name === "tabaquismo") & (value === false)) {
this.setState({
deshabilitartaba: !this.state.deshabilitartaba,
tabaqfecha: "",
tabnumero: ""
});
}
if ((name === "rxpies") & (value === true)) {
this.setState({ deshabilitarrxpies: !this.state.deshabilitarrxpies });
} else if ((name === "rxpies") & (value === false)) {
this.setState({
deshabilitarrxpies: !this.state.deshabilitarrxpies,
rxpiesfecha: ""
});
}
if ((name === "rxmanos") & (value === true)) {
this.setState({ deshabilitarrxmanos: !this.state.deshabilitarrxmanos });
} else if ((name === "rxmanos") & (value === false)) {
this.setState({
deshabilitarrxmanos: !this.state.deshabilitarrxmanos,
rxmanosfecha: ""
});
}
}
validar = () => {
const result = Joi.validate(
{
nombres: this.state.datosFicha.nombres,
apellidos: this.state.datosFicha.apellidos,
nhc: this.state.datosFicha.nhc,
fechadiagnos: this.state.datosFicha.fechadiagnos,
fechainclusion: this.state.datosFicha.fechainclusion,
diagnostico: this.state.datosFicha.diagnostico,
nrodocumento: this.state.datosFicha.nrodocumento,
fechanaci: this.state.datosFicha.fechanaci
},
this.schema,
{
abortEarly: false
}
);
if (!result.error) return null;
console.log(result);
const errors = {};
for (let item of result.error.details)
errors[item.path[0]] = item.context.label;
return errors;
};
async handleSubmit() {
const errors = this.validar();
const validarCedula = await this.validarCedula();
this.setState({ errores: errors || {} });
if (validarCedula) {
console.log("no pasa la validacion de cedula " + validarCedula);
return;
}
if (errors) {
console.log("no pasa la validacion de los campos");
return;
}
this.handleAdd();
}
async handleAdd() {
const ficha = this.state.datosFicha;
let codficha;
await fetch("http://127.0.0.1:8000/api/ficha/", {
method: "POST", // or 'PUT'
body: JSON.stringify(ficha), // data can be `string` or {object}!
headers: {
"Content-Type": "application/json"
}
})
.then(res => res.json())
.catch(error => console.error("Error:", error))
.then(response => {
if (response.codficha !== undefined && response.codficha !== null) {
codficha = response.codficha;
console.log(response);
this.setState({ alertCreado: true, codFichaReturn: codficha });
// Alert.success("La ficha fue cargada con éxito!", 10000);
}
});
this.handleAddComor(codficha);
this.handleAddEvento(codficha);
this.handleAddMani(codficha);
this.handleAddFame(codficha);
this.setState({ visible: !this.state.visible });
}
async handleAddComor(codficha) {
const list = this.state.comorListTable;
for (let item = 0; item < list.length; item++) {
let comor = {
codficha: codficha,
codenfermedad: list[item].codenfermedad,
fechadiagnostico: list[item].fechadiagnostico
};
await fetch("http://127.0.0.1:8000/api/comorbilidad/", {
method: "POST", // or 'PUT'
body: JSON.stringify(comor), // data can be `string` or {object}!
headers: {
"Content-Type": "application/json"
}
})
.then(res => res.json())
.catch(error => console.error("Error:", error))
.then(response => {
console.log(response);
});
}
}
async handleAddEvento(codficha) {
console.log(
"se imprime la lista de eventos a cargar" + this.state.eventListTable
);
const list = this.state.eventListTable;
for (let item = 0; item < list.length; item++) {
let evento = {
codficha: codficha,
codeventocardio: list[item].codeventocardio
};
await fetch("http://127.0.0.1:8000/api/eventocardio_ficha/", {
method: "POST", // or 'PUT'
body: JSON.stringify(evento), // data can be `string` or {object}!
headers: {
"Content-Type": "application/json"
}
})
.then(res => res.json())
.catch(error => console.error("Error:", error))
.then(response => {
console.log(response);
});
}
}
async handleAddFame(codficha) {
const list = this.state.famesListTable;
for (let item = 0; item < list.length; item++) {
let fame = {
codficha: codficha,
codfame: list[item].codfame,
fechadesde: list[item].famedesde,
fechahasta: list[item].famehasta
};
await fetch("http://127.0.0.1:8000/api/famesficha/", {
method: "POST", // or 'PUT'
body: JSON.stringify(fame), // data can be `string` or {object}!
headers: {
"Content-Type": "application/json"
}
})
.then(res => res.json())
.catch(error => console.error("Error:", error))
.then(response => {
console.log(response);
});
}
}
async handleAddMani(codficha) {
const list = this.state.maniListTable;
for (let item = 0; item < list.length; item++) {
let mani = {
codficha: codficha,
codmanif: list[item].codmanif
};
await fetch("http://127.0.0.1:8000/api/manif/", {
method: "POST", // or 'PUT'
body: JSON.stringify(mani), // data can be `string` or {object}!
headers: {
"Content-Type": "application/json"
}
})
.then(res => res.json())
.catch(error => console.error("Error:", error))
.then(response => {
console.log(response);
});
}
}
//aca vamos a hacer la funcion del toggle, osea que va a mostrat y esconder
toggleFame() {
this.setState({
toggleFame: !this.state.toggleFame
});
}
toggleComor() {
this.setState({
toggleComor: !this.state.toggleComor
});
}
toggleEvento() {
this.setState({
toggleEvento: !this.state.toggleEvento
});
}
toggleMani() {
this.setState({
toggleMani: !this.state.toggleMani
});
}
// When the user clicks on the button, scroll to the top of the document
topFunction() {
document.body.scrollTop = 0; // For Safari
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
}
render() {
return (
<Container>
<Form>
<Card style={{ backgroundColor: "#F9FCFB" }}>
<CardHeader style={{ backgroundColor: "#07689F" }}>
<h2 style={{ backgroundColor: "#07689F", color: "#FFFFFF" }}>
Datos Personales
</h2>
</CardHeader>
<CardBody>
<Row>
<Col>
<FormGroup>
<Label for="nombres">Nombres</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.nombres}
name="nombres"
id="nombres"
/>
<Label style={{ color: "red", fontSize: 12 }}>
{this.state.errores.nombres}
</Label>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="apellidos">Apellidos</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.apellidos}
name="apellidos"
id="apellidos"
/>
<Label style={{ color: "red", fontSize: 12 }}>
{this.state.errores.apellidos}
</Label>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="nhc">NHC</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.nhc}
name="nhc"
id="nhc"
/>
<Label style={{ color: "red", fontSize: 12 }}>
{this.state.errores.nhc}
</Label>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="fechainclusion">Fecha de Inclusión</Label>
<Input
type="date"
onChange={this.handleChange}
value={this.state.datosFicha.fechainclusion}
name="fechainclusion"
id="fechainclusion"
/>
<Label style={{ color: "red", fontSize: 12 }}>
{this.state.errores.fechainclusion}
</Label>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="tipodocumento">Tipo Documento</Label>
<Input
type="select"
onChange={this.handleChange}
value={this.state.datosFicha.tipodocumento}
name="tipodocumento"
id="tipodocumento"
>
<option>Cédula de Identidad</option>
<option>Pasaporte</option>
<option>No Aplica</option>
</Input>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="nrodocumento">Nro. Documento:</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.nrodocumento}
name="nrodocumento"
id="nrodocumento"
/>
<Label style={{ color: "red", fontSize: 12 }}>
{this.state.errores.nrodocumento}
</Label>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="procedencia">Procedencia</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.procedencia}
name="procedencia"
id="procedencia"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="fechanaci">Fecha de Nacimiento</Label>
<Input
type="date"
onChange={this.handleChange}
value={this.state.datosFicha.fechanaci}
name="fechanaci"
id="fechanaci"
/>
<Label style={{ color: "red", fontSize: 12 }}>
{this.state.errores.fechanaci}
</Label>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="telefono">Teléfono</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.telefono}
name="telefono"
id="telefono"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="nacionalidad">Nacionalidad</Label>
<Input
type="select"
onChange={this.handleChange}
value={this.state.datosFicha.nacionalidad}
name="nacionalidad"
id="nacionalidad"
>
<option>Paraguaya/o</option>
<option>Argentina/o</option>
<option>Brasilero/a</option>
<option>Otro</option>
</Input>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="estadocivil">Estado Civil</Label>
<Input
type="select"
onChange={this.handleChange}
value={this.state.datosFicha.estadocivil}
name="estadocivil"
id="estadocivil"
>
<option>Soltero/a</option>
<option>Casado/a</option>
<option>Viudo/a</option>
<option>Unido/a</option>
<option>Separado/a</option>
<option>Divorciado/a</option>
</Input>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="sexo">Sexo</Label>
<Input
type="select"
name="sexo"
onChange={this.handleChange}
value={this.state.datosFicha.sexo}
id="sexo"
>
<option>F</option>
<option>M</option>
</Input>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="escolaridad">Escolaridad</Label>
<Input
type="select"
onChange={this.handleChange}
value={this.state.datosFicha.escolaridad}
name="escolaridad"
id="escolaridad"
>
<option>Educación Inicial</option>
<option>Primaria</option>
<option>Secundaria</option>
<option>Escolar Básica</option>
<option>Escolar Media</option>
<option>Universitario</option>
<option>No Aplica</option>
</Input>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="profesion">Profesión</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.profesion}
name="profesion"
id="profesion"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="diagnostico">Dx</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.diagnostico}
name="diagnostico"
id="diagnostico"
/>
<Label style={{ color: "red", fontSize: 12 }}>
{this.state.errores.diagnostico}
</Label>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="fechadiagnos">Fecha de Dx</Label>
<Input
type="date"
onChange={this.handleChange}
value={this.state.datosFicha.fechadiagnos}
name="fechadiagnos"
id="fechadiagnos"
/>
<Label style={{ color: "red", fontSize: 12 }}>
{this.state.errores.fechadiagnos}
</Label>
</FormGroup>
</Col>
</Row>
</CardBody>
</Card>
<hr />
<Card style={{ backgroundColor: "#F9FCFB" }}>
<CardHeader style={{ backgroundColor: "#07689F" }}>
<h2 style={{ backgroundColor: "#07689F", color: "#FFFFFF" }}>
Ficha Epidemiológica
</h2>
</CardHeader>
<CardBody>
<Row>
<Col>
<FormGroup>
<Label for="iniciosint">Fecha Inicio de los Síntomas</Label>
<Input
type="date"
onChange={this.handleChange}
value={this.state.datosFicha.iniciosint}
name="iniciosint"
id="iniciosint"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="formainic">Forma de Inicio</Label>
<Input
type="select"
onChange={this.handleChange}
value={this.state.datosFicha.formainic}
name="formainic"
id="formainic"
defaultValue="Mono"
>
<option>Mono</option>
<option>Oligo</option>
<option>Poli</option>
</Input>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="apf">APF Reumáticos de Interés</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.apf}
name="apf"
id="apf"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="apfcv">APF CV</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.apfcv}
name="apfcv"
id="apfcv"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="appfractura">APP de Fracturas</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.appfractura}
name="appfractura"
id="appfractura"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="apffractura">APF de Fracturas</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.apffractura}
name="apffractura"
id="apffractura"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="protesissitio">
Prótesis Articulares - Sitio
</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.protesissitio}
name="protesissitio"
id="protesissitio"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="protefecha">Prótesis Articulares - Fecha</Label>
<Input
type="date"
onChange={this.handleChange}
value={this.state.datosFicha.protefecha}
name="protefecha"
id="protefecha"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="apfneoplasias">APF de Neoplasias</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.apfneoplasias}
name="apfneoplasias"
id="apfneoplasias"
/>
</FormGroup>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col xs="6">
<h5>Eventos Cardiovasculares</h5>
<Card style={{ padding: 10 }}>
<Row style={{ marginBottom: 10 }}>
<Col>
<AutoComplete
value={this.state.eventocardio}
suggestions={this.state.suggestions}
completeMethod={this.filterEvento}
field="nombre"
size={35}
placeholder="Evento Cardiovascular"
minLength={1}
onChange={this.onChangeEventoCardio}
onSelect={this.onSelectEventoCardio}
/>
<Button
color="primary"
onClick={this.addEventToList}
style={{ marginLeft: 5 }}
>
Agregar
</Button>
<Button
color="success"
onClick={this.toggleEvento}
style={{ marginLeft: 5 }}
>
Nuevo
</Button>
</Col>
<Modal
show={this.state.toggleEvento}
onHide={this.toggleEvento}
>
<Modal.Body>
<EventoCardiovascular />
</Modal.Body>
</Modal>
</Row>
<Row>
<Col>
<BootstrapTable
keyField="codeventocardio"
data={this.state.eventListTable}
columns={this.state.columnsEvent}
selectRow={{
mode: "radio",
clickToSelect: true,
onSelect: (row, isSelect, rowIndex, e) => {
console.log("row.id" + row.codeventocardio);
console.log("isSelect" + isSelect);
console.log("rowIndex" + rowIndex);
this.setState({
eventListTableSelected: rowIndex
});
}
}}
/>
</Col>
</Row>
<Row>
<Col>
<Button color="danger" onClick={this.eliminarEvento}>
Eliminar
</Button>
</Col>
</Row>
</Card>
</Col>
<Col xs="6">
<h5>Manifestaciones Extra Articulares</h5>
<Card style={{ padding: 10 }}>
<Row style={{ marginBottom: 10 }}>
<Col>
<AutoComplete
value={this.state.mani}
suggestions={this.state.suggestions}
completeMethod={this.filterMani}
field="nombre"
size={35}
placeholder="Manifestación Extra Articular"
minLength={1}
onChange={this.onChangeMani}
onSelect={this.onSelectMani}
/>
<Button
color="primary"
onClick={this.addManiToList}
style={{ marginLeft: 5 }}
>
Agregar
</Button>
<Button
color="success"
onClick={this.toggleMani}
style={{ marginLeft: 5 }}
>
Nuevo
</Button>
</Col>
<Modal
show={this.state.toggleMani}
onHide={this.toggleMani}
>
<Modal.Body>
<Manifestaciones />
</Modal.Body>
</Modal>
</Row>
<Row>
<Col>
<BootstrapTable
keyField="codmanif"
data={this.state.maniListTable}
columns={this.state.columnsMani}
selectRow={{
mode: "radio",
clickToSelect: true,
onSelect: (row, isSelect, rowIndex, e) => {
console.log("row.id" + row.codmanif);
console.log("isSelect" + isSelect);
console.log("rowIndex" + rowIndex);
this.setState({
maniListTableSelected: rowIndex
});
}
}}
/>
</Col>
</Row>
<Row>
<Col>
<Button color="danger" onClick={this.eliminarMani}>
Eliminar
</Button>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<h5>APF-Comorbilidades</h5>
<Card style={{ padding: 10 }}>
<Row style={{ marginBottom: 10 }}>
<Col>
<AutoComplete
value={this.state.comorbilidad}
suggestions={this.state.suggestions}
completeMethod={this.filterComor}
field="nombre"
size={35}
placeholder="Comorbilidad"
minLength={1}
onChange={this.onChangeComor}
onSelect={this.onSelectComor}
/>
</Col>
<Col>
<Input
type="date"
onChange={e => {
this.setState({ fechaDxComor: e.target.value });
}}
value={this.state.fechaDxComor}
name="fechaDxComor"
id="fechaDxComor"
/>
</Col>
<Col>
<Button
color="primary"
onClick={this.addComorToList}
style={{ marginLeft: 5 }}
>
Agregar
</Button>
<Button
color="success"
onClick={this.toggleComor}
style={{ marginLeft: 5 }}
>
Nuevo
</Button>
</Col>
<Modal
show={this.state.toggleComor}
onHide={this.toggleComor}
>
<Modal.Body>
<Comorbilidad />
</Modal.Body>
</Modal>
</Row>
<Row>
<Col>
<BootstrapTable
keyField="codenfermedad"
data={this.state.comorListTable}
columns={this.state.columnsComor}
selectRow={{
mode: "radio",
clickToSelect: true,
onSelect: (row, isSelect, rowIndex, e) => {
console.log("row.id" + row.codenfermedad);
console.log("isSelect" + isSelect);
console.log("rowIndex" + rowIndex);
this.setState({
comorListTableSelected: rowIndex
});
}
}}
/>
</Col>
</Row>
<Row>
<Col>
<Button color="danger" onClick={this.eliminarComor}>
Eliminar
</Button>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20, marginTop: 20 }}>
<Col>
<h5>Fames</h5>
<Card style={{ padding: 10 }}>
<Row style={{ marginBottom: 10 }}>
<Col>
<Label>Fármaco</Label>
<AutoComplete
value={this.state.fame}
suggestions={this.state.suggestions}
completeMethod={this.filterFame}
field="nombre"
size={25}
placeholder="Fames"
minLength={1}
onChange={this.onChangeFame}
onSelect={this.onSelectFame}
/>
</Col>
<Col>
<Label>Desde</Label>
<Input
type="date"
onChange={e => {
this.setState({ fameDesde: e.target.value });
}}
value={this.state.fameDesde}
name="fameDesde"
id="fameDesde"
style={{ width: 180 }}
/>
</Col>
<Col>
<Label>Hasta</Label>
<Input
type="date"
style={{ width: 180 }}
onChange={e => {
this.setState({ fameHasta: e.target.value });
}}
value={this.state.fameHasta}
name="fameHasta"
id="fameHasta"
/>
</Col>
<Col>
<Button
color="primary"
onClick={this.addFameToList}
style={{ margin: 5 }}
>
Agregar
</Button>
<Button
color="success"
onClick={this.toggleFame}
style={{ margin: 5 }}
>
Nuevo
</Button>
</Col>
<Modal
show={this.state.toggleFame}
onHide={this.toggleFame}
>
<Modal.Body>
<Fame />
</Modal.Body>
</Modal>
</Row>
<Row>
<Col>
<BootstrapTable
keyField="codfame"
data={this.state.famesListTable}
columns={this.state.columnsFames}
selectRow={{
mode: "radio",
clickToSelect: true,
onSelect: (row, isSelect, rowIndex, e) => {
console.log("row.id" + row.codfame);
console.log("isSelect" + isSelect);
console.log("rowIndex" + rowIndex);
this.setState({
famesListTableSelected: rowIndex
});
}
}}
/>
</Col>
</Row>
<Row>
<Col>
<Button color="danger" onClick={this.eliminarFame}>
Eliminar
</Button>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Card style={{ padding: 20, marginLeft: 20 }}>
<Row>
<Col>
<FormGroup check>
<Input
type="checkbox"
onChange={this.handleChange}
value={this.state.datosFicha.sedentarismo}
name="sedentarismo"
id="sedentarismo"
/>
<Label check>Sedentarismo</Label>
</FormGroup>
</Col>
<Col>
<FormGroup check>
<Input
type="checkbox"
onChange={this.handleChange}
value={this.state.datosFicha.actifisica}
name="actifisica"
id="actifisica"
/>
<Label check>Actividad Física</Label>
</FormGroup>
</Col>
</Row>
</Card>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<FormGroup check>
<Input
type="checkbox"
onChange={this.handleChange}
value={this.state.datosFicha.extabaq}
name="extabaq"
id="extabaq"
/>
<Label check>Ex Tabaquista</Label>
</FormGroup>
</Col>
<Col>
<FormGroup check>
<Input
type="checkbox"
onChange={this.handleChange}
value={this.state.datosFicha.tabaquismo}
name="tabaquismo"
id="tabaquismo"
/>
<Label check>Tabaquismo</Label>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="tabaqfecha">Fecha Inicio</Label>
<Input
disabled={this.state.deshabilitartaba}
type="date"
onChange={this.handleChange}
value={this.state.datosFicha.tabaqfecha}
name="tabaqfecha"
id="tabaqfecha"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="tabnumero">N° paq/año</Label>
<Input
disabled={this.state.deshabilitartaba}
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.tabnumero}
name="tabnumero"
id="tabnumero"
/>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<h5>Antecedentes Ginecológicos</h5>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="menarca">Menarca</Label>
<Input
disabled={this.state.deshabilitar}
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.menarca}
name="menarca"
id="menarca"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="menopausia">Menopausia</Label>
<Input
disabled={this.state.deshabilitar}
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.menopausia}
name="menopausia"
id="menopausia"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="edadvidasex">
Edad de Inicio de Vida Sexual
</Label>
<Input
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.edadvidasex}
name="edadvidasex"
id="edadvidasex"
/>
</FormGroup>
</Col>
<Col>
<FormGroup check>
<Input
disabled={this.state.deshabilitar}
type="checkbox"
onChange={this.handleChange}
value={this.state.datosFicha.hisjospost}
name="hisjospost"
id="hisjospost"
/>
<Label check>
Hijos después del diagnóstico de AR
</Label>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="gestas">Gestas</Label>
<Input
disabled={this.state.deshabilitar}
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.gestas}
name="gestas"
id="gestas"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="partos">Parto</Label>
<Input
disabled={this.state.deshabilitar}
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.partos}
name="partos"
id="partos"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="cesareas">Cesárea</Label>
<Input
disabled={this.state.deshabilitar}
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.cesareas}
name="cesareas"
id="cesareas"
/>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="abortos">Abortos</Label>
<Input
disabled={this.state.deshabilitar}
type="number"
onChange={this.handleChange}
value={this.state.datosFicha.abortos}
name="abortos"
id="abortos"
/>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col style={{ paddingLeft: 40 }}>
<FormGroup>
<Input
type="checkbox"
onChange={this.handleChange}
value={this.state.datosFicha.factorreuma_pos}
name="factorreuma_pos"
id="factorreuma_pos"
/>
<Label for="factorreuma_pos">FR (+)</Label>
</FormGroup>
</Col>
<Col style={{ paddingLeft: 40 }}>
<FormGroup>
<Input
type="checkbox"
onChange={this.handleChange}
value={this.state.datosFicha.factorreuma_neg}
name="factorreuma_neg"
id="factorreuma_neg"
/>
<Label for="factorreuma_neg">FR (-)</Label>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<Label for="factorreuma_valor">Valor</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.factorreuma_nivel}
name="factorreuma_valor"
id="factorreuma_valor"
/>
</Col>
</Row>
<Row>
<Col>
<Label for="factorreuma_nivel">Nivel/VR</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.factorreuma_nivel}
name="factorreuma_nivel"
id="factorreuma_nivel"
/>
</Col>
</Row>
</Card>
</Col>
<Col>
<Card
style={{
padding: 20,
marginLeft: 20,
marginRight: 20
}}
>
<Row>
<Col style={{ paddingLeft: 40 }}>
<FormGroup>
<Input
type="checkbox"
onChange={this.handleChange}
value={this.state.datosFicha.acpa_pos}
name="acpa_pos"
id="acpa_pos"
/>
<Label for="acpa_pos">ACPA (+)</Label>
</FormGroup>
</Col>
<Col style={{ paddingLeft: 40 }}>
<FormGroup>
<Input
type="checkbox"
onChange={this.handleChange}
value={this.state.datosFicha.acpa_neg}
name="acpa_neg"
id="acpa_neg"
/>{" "}
<Label for="acpa_neg">ACPA (-)</Label>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<Label for="acpa_valor">Valor</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.acpa_nivel}
name="acpa_valor"
id="acpa_valor"
/>
</Col>
</Row>
<Row>
<Col>
<Label for="acpa_nivel">Nivel/VR</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.acpa_nivel}
name="acpa_nivel"
id="acpa_nivel"
/>
</Col>
</Row>
</Card>
</Col>
<Col>
<Card style={{ padding: 20, marginBottom: 20 }}>
<Row>
<Col style={{ paddingLeft: 40 }}>
<FormGroup>
<Input
type="checkbox"
onChange={this.handleChange}
value={this.state.datosFicha.ana_pos}
name="ana_pos"
id="ana_pos"
/>
<Label for="ana_pos">ANA (+)</Label>
</FormGroup>
</Col>
<Col style={{ paddingLeft: 40 }}>
<FormGroup>
<Input
type="checkbox"
onChange={this.handleChange}
value={this.state.datosFicha.ana_neg}
name="ana_neg"
id="ana_neg"
/>
<Label for="ana_pos">ANA (+)</Label>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<Label for="ana_patron">Valor</Label>
<Input
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.ana_valor}
name="ana_patron"
id="ana_patron"
/>
</Col>
</Row>
<Row>
<Col>
<Label for="ana_patron">Dilución/Patrón</Label>
<Input
type="select"
onChange={this.handleChange}
value={this.state.datosFicha.ana_patron}
name="ana_patron"
id="ana_patron"
>
<option>Nuclear Homogéneo</option>
<option>Nuclear Moteado o Puntillado Fino</option>
<option>Nuclear Moteado Grueso</option>
<option>Nucleolar</option>
<option>Centromérico</option>
</Input>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<FormGroup check>
<Input
type="checkbox"
onChange={this.handleChange}
value={this.state.datosFicha.rxmanos}
name="rxmanos"
id="rxmanos"
/>
<Label check>RX Manos </Label>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="rxmanosfecha">Fecha de RX Manos</Label>
<Input
disabled={this.state.deshabilitarrxmanos}
type="date"
onChange={this.handleChange}
value={this.state.datosFicha.rxmanosfecha}
name="rxmanosfecha"
id="rxmanosfecha"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="desrxmanos">Descripcion</Label>
<Input
disabled={this.state.deshabilitarrxmanos}
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.desrxmanos}
name="desrxmanos"
id="desrxmanos"
/>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<FormGroup check>
<Input
type="checkbox"
onChange={this.handleChange}
value={this.state.datosFicha.rxpies}
name="rxpies"
id="rxpies"
/>
<Label check>RX Pies </Label>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label for="rxpiesfecha">Fecha de RX Pies</Label>
<Input
disabled={this.state.deshabilitarrxpies}
type="date"
onChange={this.handleChange}
value={this.state.datosFicha.rxpiesfecha}
name="rxpiesfecha"
id="rxpiesfecha"
/>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label for="desrxpies">Descripcion</Label>
<Input
disabled={this.state.deshabilitarrxpies}
type="text"
onChange={this.handleChange}
value={this.state.datosFicha.desrxpies}
name="desrxpies"
id="desrxpies"
/>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
</Row>
</CardBody>
</Card>
<Button
onClick={this.handleSubmit}
color="primary"
style={{ marginTop: 20 }}
>
Crear
</Button>
<SweetAlert
success
onConfirm={this.alertConfirm}
show={this.state.alertCreado}
>
Ficha HA agregada con éxito!
</SweetAlert>
</Form>
</Container>
);
}
}
export default withRouter(Ficha);
<file_sep>/src/components/ficha/fichaView.jsx
import React, { Component } from "react";
import {
Card,
Button,
CardHeader,
CardBody,
Container,
Row,
Col,
Form,
FormGroup,
Label,
Input
} from "reactstrap";
import { Link } from "react-router-dom";
import { withRouter } from "react-router-dom";
import axios from "axios";
import { Alert, Icon } from "rsuite";
import BootstrapTable from "react-bootstrap-table-next";
import "react-bootstrap-table-next/dist/react-bootstrap-table2.min.css";
import EventoCardiovascular from "./../eventocardiovascular/eventocardiovascularForm";
import { createHashHistory } from "history";
import SweetAlert from "react-bootstrap-sweetalert";
const history = createHashHistory();
class FichaView extends Component {
constructor() {
super();
this.state = {
intervalId: 0,
datosficha: {},
visible: false,
showDeclarative: false,
confirmDelete: false,
confirmCancel: false,
famesListTable: [],
columnsFames: [
{
dataField: "codfame",
hidden: true
},
{
dataField: "nombre",
text: "Nombre"
},
{
dataField: "descripcion",
text: "Descripción"
},
{
dataField: "fechadesde",
text: "Fecha Desde"
},
{
dataField: "fechahasta",
text: "Fecha Hasta"
}
],
eventListTable: [],
columnsEvent: [
{
dataField: "codeventocardio",
hidden: true
},
{
dataField: "nombre",
text: "Nombre"
}
],
maniListTable: [],
columnsMani: [
{
dataField: "codmanif",
hidden: true
},
{
dataField: "nombre",
text: "Nombre"
},
{
dataField: "descripcion",
text: "Descripción"
}
],
comorListTable: [],
columnsComor: [
{
dataField: "codenfermedad",
hidden: true
},
{
dataField: "nombre",
text: "Nombre"
},
{
dataField: "fechadiagnostico",
text: "Fecha Diagnóstico "
}
]
};
this.handleDelete = this.handleDelete.bind(this);
this.onDismiss = this.onDismiss.bind(this);
this.onCancelDelete = this.onCancelDelete.bind(this);
this.alertDelete = this.alertDelete.bind(this);
this.alertCancel = this.alertCancel.bind(this);
this.formatDate = this.formatDate.bind(this);
}
onDismiss() {
this.setState({ visible: false });
}
async handleDelete() {
//const cod = this.props.codficha; //direccto accedes, yaa, y eso nomas es, que te falta ahora?
const cod = this.props.match.params.codficha;
const url1 = "http://127.0.0.1:8000/api/ficha/" + cod + "/";
const response = await axios.delete(url1);
console.log(response.status);
if (response.status === 204) {
Alert.success("La Ficha ha sido eliminada con éxito"); //con este avisas
this.props.history.push("/modulos");
}
}
async componentWillMount() {
//const cod = this.props.codficha;
console.log(this.props.match.params.codficha);
const cod = this.props.match.params.codficha;
const url1 = "http://127.0.0.1:8000/api/ficha?codficha=";
const url2 = "http://127.0.0.1:8000/api/famesficha/?codficha=";
const url3 = "http://127.0.0.1:8000/api/fames/?codfame=";
const url2e = "http://127.0.0.1:8000/api/eventocardio_ficha/?codficha=";
const url3e = "http://127.0.0.1:8000/api/eventocardio/?codeventocardio=";
const url2m = "http://127.0.0.1:8000/api/manif/?codficha=";
const url3m = "http://127.0.0.1:8000/api/manif_extra_art/?codmanif=";
const url2c = "http://127.0.0.1:8000/api/comorbilidad/?codficha=";
const url3c = "http://127.0.0.1:8000/api/enfermedad/?codenfermedad=";
let datosficha = {};
let famesFicha = {};
let listf = [];
let listFame = [];
let eventoFicha = {};
let liste = [];
let listEvento = [];
let maniFicha = {};
let listm = [];
let listManifestacion = [];
let comorFicha = {};
let listc = [];
let listComor = [];
//comorbilidad
await axios
.get(url1 + cod)
.then(function(response) {
datosficha = response.data[0];
})
.catch(function(error) {
console.log(error);
});
this.setState({
datosficha: datosficha
});
await axios
.get(url2c + cod)
.then(function(response) {
comorFicha = response.data;
})
.catch(function(error) {
console.log(error);
});
for (let item = 0; item < comorFicha.length; item++) {
await axios
.get(url3c + comorFicha[item].codenfermedad)
.then(function(response) {
listc.push(response.data[0]);
})
.catch(function(error) {
console.log(error);
});
}
for (let item = 0; item < listc.length; item++) {
const obj = {
codenfermedad: listc[item].codenfermedad,
nombre: listc[item].nombre,
descripcion: listc[item].descripcion,
fechadiagnostico: comorFicha[item].fechadiagnostico
};
listComor.push(obj);
}
console.log(listComor);
this.setState({ comorListTable: listComor });
//manifestaciones
await axios
.get(url1 + cod)
.then(function(response) {
datosficha = response.data[0];
})
.catch(function(error) {
console.log(error);
});
this.setState({
datosficha: datosficha
});
await axios
.get(url2m + cod)
.then(function(response) {
maniFicha = response.data;
})
.catch(function(error) {
console.log(error);
});
for (let item = 0; item < maniFicha.length; item++) {
await axios
.get(url3m + maniFicha[item].codmanif)
.then(function(response) {
listm.push(response.data[0]);
})
.catch(function(error) {
console.log(error);
});
}
for (let item = 0; item < listm.length; item++) {
const obj = {
codmanif: listm[item].codmanif,
nombre: listm[item].nombre,
descripcion: listm[item].descripcion
};
listManifestacion.push(obj);
}
console.log(listManifestacion);
this.setState({ maniListTable: listManifestacion });
// evento cardiovascular
await axios
.get(url1 + cod)
.then(function(response) {
datosficha = response.data[0];
})
.catch(function(error) {
console.log(error);
});
this.setState({
datosficha: datosficha
});
await axios
.get(url2e + cod)
.then(function(response) {
eventoFicha = response.data;
})
.catch(function(error) {
console.log(error);
});
for (let item = 0; item < eventoFicha.length; item++) {
await axios
.get(url3e + eventoFicha[item].codeventocardio)
.then(function(response) {
liste.push(response.data[0]);
})
.catch(function(error) {
console.log(error);
});
}
for (let item = 0; item < liste.length; item++) {
const obj = {
codeventocardio: liste[item].codeventocardio,
nombre: liste[item].nombre
};
listEvento.push(obj);
}
console.log(listEvento);
this.setState({ eventListTable: listEvento });
// fames
await axios
.get(url2 + cod)
.then(function(response) {
famesFicha = response.data;
})
.catch(function(error) {
console.log(error);
});
for (let item = 0; item < famesFicha.length; item++) {
await axios
.get(url3 + famesFicha[item].codfame)
.then(function(response) {
listf.push(response.data[0]);
})
.catch(function(error) {
console.log(error);
});
}
for (let item = 0; item < listf.length; item++) {
const obj = {
codfame: listf[item].codfame,
nombre: listf[item].nombre,
descripcion: listf[item].descripcion,
fechadesde: famesFicha[item].fechadesde,
fechahasta: famesFicha[item].fechahasta
};
listFame.push(obj);
}
console.log(listFame);
this.setState({ famesListTable: listFame });
}
onCancelDelete = function() {
this.setState({
confirmCancel: !this.state.confirmCancel,
confirmDelete: !this.state.confirmDelete
});
};
alertDelete() {
this.setState({ confirmDelete: !this.state.confirmDelete });
}
alertCancel = function() {
this.setState({
confirmCancel: !this.state.confirmCancel
});
};
formatDate(date) {
var monthNames = [
"Enero",
"Febrero",
"Marzo",
"April",
"Mayo",
"Junio",
"Julio",
"Augusto",
"Septiembre",
"Octubre",
"Noviembre",
"Diciembre"
];
var day = date.getUTCDate();
var monthIndex = date.getMonth();
var year = date.getFullYear();
return day + " " + monthNames[monthIndex] + " " + year;
}
scroll() {
let intervalId = setInterval(
this.scrollStep.bind(this),
this.props.delayInMs
);
//store the intervalId inside the state,
//so we can use it later to cancel the scrolling
this.setState({ intervalId: intervalId });
}
scrollStep() {
if (window.scrollY === 0) {
clearInterval(this.state.intervalId);
}
window.scroll(0, window.scrollY - this.props.scrollStepInPx);
}
render() {
return (
<Container style={{ marginTop: 20 }}>
<Card style={{ backgroundColor: "#F9FCFB" }}>
<CardHeader style={{ backgroundColor: "#07689F" }}>
<h2 style={{ backgroundColor: "#07689F", color: "#FFFFFF" }}>
Datos de la Ficha HA
</h2>
</CardHeader>
<CardBody>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Fecha Inicio de los Síntomas:</strong>
</Label>
<p>
{this.formatDate(
new Date(this.state.datosficha.iniciosint)
)}
</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Forma de Inicio:</strong>
</Label>
<p>{this.state.datosficha.formainic}</p>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>APF Reumáticos de Interés:</strong>
</Label>
<p>{this.state.datosficha.apf}</p>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>APF CV:</strong>
</Label>
<p>{this.state.datosficha.apfcv}</p>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>APP de Fractura:</strong>
</Label>
<p>{this.state.datosficha.appfractura}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>APFs de Fractura:</strong>
</Label>
<p>{this.state.datosficha.apffractura}</p>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Protesis Articulares - Sitio:</strong>
</Label>
<p>{this.state.datosficha.protesissitio}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Protesis Articulares - Fecha:</strong>
</Label>
<p>{this.state.datosficha.protefecha}</p>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>APF de Neoplasias:</strong>
</Label>
<p>{this.state.datosficha.apfneoplasias}</p>
</FormGroup>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<h5>Evento Cardiovascular</h5>
<Card style={{ padding: 10 }}>
<Row>
<Col>
<BootstrapTable
keyField="codeventocardio"
data={this.state.eventListTable}
columns={this.state.columnsEvent}
/>
</Col>
</Row>
</Card>
</Col>
<Col>
<h5>Manifestaciones Extra Articulares</h5>
<Card style={{ padding: 10 }}>
<Row>
<Col>
<BootstrapTable
keyField="codmanif"
data={this.state.maniListTable}
columns={this.state.columnsMani}
/>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<h5>APF-Comorbilidades</h5>
<Card style={{ padding: 10 }}>
<Row>
<Col>
<BootstrapTable
keyField="codenfermedad"
data={this.state.comorListTable}
columns={this.state.columnsComor}
/>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<h5>Fames</h5>
<Card style={{ padding: 10 }}>
<Row>
<Col>
<BootstrapTable
keyField="codfame"
data={this.state.famesListTable}
columns={this.state.columnsFames}
/>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Card style={{ padding: 20, marginLeft: 20 }}>
<Row>
<Col xs="6">
<Row>
<Col>
<FormGroup check>
<input
disabled
checked={this.state.datosficha.sedentarismo}
type="checkbox"
value={this.state.datosficha.sedentarismo}
/>
</FormGroup>
</Col>
</Row>
<Row>
<Label check>
<strong>Sedentarismo</strong>
</Label>
</Row>
</Col>
<Col xs="6">
<Row>
<Col>
<FormGroup check>
<input
disabled
checked={this.state.datosficha.actifisica}
type="checkbox"
value={this.state.datosficha.actifisica}
/>
<Label check>
<strong>Actividad Física</strong>
</Label>
</FormGroup>
</Col>
</Row>
</Col>
</Row>
</Card>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<FormGroup check>
<input
disabled
checked={this.state.datosficha.extabaq}
type="checkbox"
value={this.state.datosficha.extabaq}
/>
<Label check>
<strong>Ex Tabaquista:</strong>
</Label>
</FormGroup>
</Col>
<Col>
<FormGroup check>
<input
disabled
checked={this.state.datosficha.tabaquismo}
type="checkbox"
value={this.state.datosficha.tabaquismo}
/>
<Label check>
<strong>Tabaquisimo:</strong>
</Label>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Fecha Inicio:</strong>
</Label>
<p>{this.state.datosficha.tabaqfecha}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>N° paq/año:</strong>
</Label>
<p>{this.state.datosficha.tabnumero}</p>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<h5>Antecedentes Ginecológicos</h5>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Menarca:</strong>
</Label>
<p>{this.state.datosficha.menarca}</p>
</FormGroup>
</Col>
<hr marginLeft={50} />
<Col>
<FormGroup>
<Label>
<strong>Menopausia:</strong>
</Label>
<p>{this.state.datosficha.menopausia}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Edad de Inicio de Actividad Sexual:</strong>
</Label>
<p>{this.state.datosficha.edadvidasex}</p>
</FormGroup>
</Col>
<Col>
<FormGroup check>
<input
disabled
checked={this.state.datosficha.hisjospost}
type="checkbox"
value={this.state.datosficha.hisjospost}
/>
<Label check>
<strong>Hijos después del diagnóstico de AR</strong>
</Label>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Gestas:</strong>
</Label>
<p>{this.state.datosficha.gestas}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Parto:</strong>
</Label>
<p>{this.state.datosficha.partos}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Cesáreas:</strong>
</Label>
<p>{this.state.datosficha.cesareas}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Abortos:</strong>
</Label>
<p>{this.state.datosficha.abortos}</p>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<FormGroup>
<Label>
<strong>FR(+):</strong>
</Label>
<p>{this.state.datosficha.factorreuma_pos}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>FR(-):</strong>
</Label>
<p>{this.state.datosficha.factorreuma_neg}</p>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<Label>
<strong>Nivel/VR:</strong>
</Label>
<p>{this.state.datosficha.factorreuma_nivel}</p>
</Col>
</Row>
</Card>
</Col>
<Col>
<Card style={{ padding: 20, marginLeft: 20, marginRight: 20 }}>
<Row>
<Col>
<Label>
<strong>ACPA (+):</strong>
</Label>
<p>{this.state.datosficha.acpa_pos}</p>
</Col>
<Col>
<Label>
<strong>ACPA (-):</strong>
</Label>
<p>{this.state.datosficha.acpa_neg}</p>
</Col>
</Row>
<Row>
<Col>
<Label>
<strong>Nivel/VR:</strong>
</Label>
<p>{this.state.datosficha.acpa_nivel}</p>
</Col>
</Row>
</Card>
</Col>
<Col>
<Card style={{ padding: 20, marginBottom: 20 }}>
<Row>
<Col>
<Label>
<strong>ANA (+):</strong>
</Label>
<p>{this.state.datosficha.ana_pos}</p>
</Col>
<Col>
<Label>
<strong>ANA (-):</strong>
</Label>
<p>{this.state.datosficha.ana_neg}</p>
</Col>
</Row>
<Row>
<Col>
<Label>
<strong>Dilución/Patrón:</strong>
</Label>
<p>{this.state.datosficha.ana_patron}</p>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<FormGroup check>
<input
disabled
checked={this.state.datosficha.rxmanos}
type="checkbox"
value={this.state.datosficha.rxmanos}
/>
<strong>RX Manos</strong>
</FormGroup>
</Col>
<Col>
<Row>
<FormGroup>
<Label>
<strong>Fecha de RX Manos:</strong>
</Label>
<p>{this.state.datosficha.rxmanosfecha}</p>
</FormGroup>
</Row>
</Col>
</Row>
</Card>
</Col>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<FormGroup check>
<input
disabled
checked={this.state.datosficha.rxpies}
type="checkbox"
value={this.state.datosficha.rxpies}
/>
<Label check>
<strong>RX Pies</strong>
</Label>
</FormGroup>
</Col>
<Col>
<Row>
<FormGroup>
<Label>
<strong>Fecha de RX Pies:</strong>
</Label>
<p>{this.state.datosficha.rxpiesfecha}</p>
</FormGroup>
</Row>
</Col>
</Row>
</Card>
</Col>
</Row>
</CardBody>
</Card>
<FormGroup>
<Link
to={`/menu_ficha/${this.state.datosficha.codficha}/ficha_edit/${
this.state.datosficha.codficha
}`}
>
<Button color="success" style={{ marginTop: 20 }}>
Modificar
</Button>
</Link>
{" "}
<Button
onClick={this.alertDelete}
color="danger"
style={{ marginTop: 20 }}
>
Eliminar
<SweetAlert
warning
showCancel
allowEscape
show={this.state.confirmDelete}
confirmBtnText="Sí, Eliminar la Ficha HA"
cancelBtnText="Cancelar"
confirmBtnBsStyle="danger"
cancelBtnBsStyle="default"
onConfirm={this.handleDelete}
onCancel={this.onCancelDelete}
>
¿Estas seguro de Eliminar la Ficha HA?
</SweetAlert>
</Button>
{" "}
<Button
onClick={this.props.history.goBack}
appearance="primary"
style={{ marginTop: 20 }}
>
Atras
</Button>
<Icon
href="#"
id="scroll"
className="scroll"
style={{ marginLeft: 700, color: "#07689F", background: "white" }}
onClick={event => {
event.preventDefault();
this.scroll();
}}
icon="angle-double-up"
size="4x"
/>
</FormGroup>
</Container>
);
}
}
//export default FichaView;
export default withRouter(FichaView);
<file_sep>/src/components/ordenestudio/ordenestudioView.jsx
import React, { Component } from "react";
import {
Card,
Button,
CardHeader,
CardBody,
Container,
Row,
Col,
Form,
FormGroup,
Label
} from "reactstrap";
import axios from "axios";
import BootstrapTable from "react-bootstrap-table-next";
import "react-bootstrap-table-next/dist/react-bootstrap-table2.min.css";
import SweetAlert from "react-bootstrap-sweetalert";
import { Alert } from "rsuite";
import Lightbox from "react-image-lightbox";
import "react-image-lightbox/style.css";
import { withRouter } from "react-router-dom";
class OrdenEstudioView extends Component {
constructor() {
super();
this.state = {
photoIndex: 0,
isOpen: false,
file: "",
datosOrdenEstudio: {},
visible: false,
showDeclarative: false,
confirmDelete: false,
confirmCancel: false,
estudioSelected: null,
estudio: "",
estudioList: [],
estudioListTable: [],
estudioListTableSelected: "",
columnsEstudio: [
{
dataField: "codestudio",
hidden: true
},
{
dataField: "nombre",
text: "Nombre"
},
{
dataField: "descripcion",
text: "Descripción"
}
]
};
this.handleDelete = this.handleDelete.bind(this);
this.onDismiss = this.onDismiss.bind(this);
this.onCancelDelete = this.onCancelDelete.bind(this);
this.alertDelete = this.alertDelete.bind(this);
this.alertCancel = this.alertCancel.bind(this);
}
onDismiss() {
this.setState({ visible: false });
}
async handleDelete() {
const cod = this.props.match.params.codordenestudio; //direccto accedes, yaa, y eso nomas es, que te falta ahora?
const url1 = "http://127.0.0.1:8000/api/ordenestudio/" + cod + "/";
const response = await axios.delete(url1);
if (response.status === 204) {
Alert.success("La Orden de Estudio ha sido eliminada con éxito"); //con este avisascmenta nomas, ok
this.props.history.push(
"/menu_ficha/" +
this.props.match.params.codficha +
"/ficha_view/" +
this.props.match.params.codficha // y con este mandas al menu de la fi
);
}
}
async componentWillMount() {
const cod = this.props.match.params.codordenestudio;
console.log(this.props.match.params.codordenestudio);
const url1 = "http://127.0.0.1:8000/api/ordenestudio?codordenestudio=";
const url4 = "http://127.0.0.1:8000/api/archivo?codordenestudio=";
let datosOrdenEstudio = {};
let datosArchivo = {};
console.log("cod_orden de estudio " + cod);
await axios
.get(url1 + cod)
.then(function(response) {
console.log(response.data[0]);
datosOrdenEstudio = response.data[0];
})
.catch(function(error) {
console.log(error);
});
await axios
.get(url4 + cod)
.then(function(response) {
if (response.data === undefined) {
return;
} else {
datosArchivo = response.data.filter(item => {
return item.codordenestudio === cod;
});
}
datosArchivo = response.data[0].archivo;
})
.catch(function(error) {
console.log(error);
});
this.setState({
datosOrdenEstudio: datosOrdenEstudio,
file: datosArchivo
});
console.log(this.state.datosOrdenEstudio); //trae bien, trae bien? el cod digo no el contenido
//tipo estudio
const url2 = "http://127.0.0.1:8000/api/ordenestudio/?codordenestudio=";
const url3 = "http://127.0.0.1:8000/api/estudio/?codestudio=";
let estudioOrden = {};
let liste = [];
let listEstudio = [];
await axios
.get(url2 + cod)
.then(function(response) {
estudioOrden = response.data;
})
.catch(function(error) {
console.log(error);
});
for (let item = 0; item < estudioOrden.length; item++) {
await axios
.get(url3 + estudioOrden[item].codestudio)
.then(function(response) {
liste.push(response.data[0]);
})
.catch(function(error) {
console.log(error);
});
}
for (let item = 0; item < liste.length; item++) {
const obj = {
codestudio: liste[item].codestudio,
nombre: liste[item].nombre,
descripcion: liste[item].descripcion
};
listEstudio.push(obj);
}
console.log(listEstudio);
this.setState({ estudioListTable: listEstudio });
}
onCancelDelete = function() {
this.setState({
confirmCancel: !this.state.confirmCancel,
confirmDelete: !this.state.confirmDelete
});
};
alertDelete() {
this.setState({ confirmDelete: !this.state.confirmDelete });
}
alertCancel = function() {
this.setState({
confirmCancel: !this.state.confirmCancel
});
};
formatDate(date) {
var monthNames = [
"Enero",
"Febrero",
"Marzo",
"April",
"Mayo",
"Junio",
"Julio",
"Agosto",
"Septiembre",
"Octubre",
"Noviembre",
"Diciembre"
];
var day = date.getUTCDate();
var monthIndex = date.getMonth();
var year = date.getFullYear();
return day + " " + monthNames[monthIndex] + " " + year;
}
render() {
const { photoIndex, isOpen } = this.state;
const images = [this.state.file];
return (
<Container style={{ marginTop: 20 }}>
<Card style={{ backgroundColor: "#F9FCFB" }}>
<CardHeader style={{ backgroundColor: "#07689F" }}>
<h2 style={{ backgroundColor: "#07689F", color: "#FFFFFF" }}>
Datos Orden de Estudio
</h2>
</CardHeader>
<CardBody>
<Form>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Fecha:</strong>
</Label>
<p>
{this.formatDate(
new Date(this.state.datosOrdenEstudio.fechaordenestudio)
)}
</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Estado:</strong>
</Label>
<p>{this.state.datosOrdenEstudio.estado}</p>
</FormGroup>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<h5>Tipo Estudio</h5>
<Card style={{ padding: 10 }}>
<Row>
<Col>
<BootstrapTable
keyField="codestudio"
data={this.state.estudioListTable}
columns={this.state.columnsEstudio}
/>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Observación:</strong>
</Label>
<p>{this.state.datosOrdenEstudio.observacion}</p>
</FormGroup>
</Col>{" "}
</Row>
<Row>
<Col>
<div>
<Button
onClick={() => this.setState({ isOpen: true })}
color="warning"
>
Ver Archivo
</Button>
{isOpen && (
<Lightbox
mainSrc={images[photoIndex]}
nextSrc={images[(photoIndex + 1) % images.length]}
prevSrc={
images[
(photoIndex + images.length - 1) % images.length
]
}
onCloseRequest={() => this.setState({ isOpen: false })}
onMovePrevRequest={() =>
this.setState({
photoIndex:
(photoIndex + images.length - 1) % images.length
})
}
onMoveNextRequest={() =>
this.setState({
photoIndex: (photoIndex + 1) % images.length
})
}
/>
)}
</div>
</Col>{" "}
</Row>
</Form>
</CardBody>
</Card>
<FormGroup>
<Button
onClick={this.alertDelete}
color="danger"
style={{ marginTop: 20 }}
>
Eliminar
<SweetAlert
warning
showCancel
allowEscape
show={this.state.confirmDelete}
confirmBtnText="Sí, Eliminar Orden de Estudio"
cancelBtnText="Cancelar"
confirmBtnBsStyle="danger"
cancelBtnBsStyle="default"
onConfirm={this.handleDelete}
onCancel={this.onCancelDelete}
>
¿Estas seguro de Eliminar la Orden de Estudio?
</SweetAlert>
</Button>
{" "}
<Button
onClick={this.props.history.goBack}
appearance="primary"
style={{ marginTop: 20 }}
>
Atras
</Button>
</FormGroup>
</Container>
);
}
}
export default OrdenEstudioView;
<file_sep>/src/components/consulta/consultaView.jsx
import React, { Component } from "react";
import manito from "./manito.jpg";
import {
Card,
Button,
CardHeader,
CardBody,
Container,
Row,
Col,
Form,
FormGroup,
Label
} from "reactstrap";
import axios from "axios";
import { Alert, Icon } from "rsuite";
import { FormattedDate } from "react-intl";
import { withRouter } from "react-router-dom";
import Consulta from "./consultaForm";
import BootstrapTable from "react-bootstrap-table-next";
import "primereact/resources/themes/nova-light/theme.css";
import "primereact/resources/primereact.min.css";
import "primeicons/primeicons.css";
import "react-bootstrap-table-next/dist/react-bootstrap-table2.min.css";
import "bootstrap/dist/css/bootstrap.css";
import "./estilos.css";
import "react-input-range/lib/css/index.css";
import { render } from "react-dom";
import SweetAlert from "react-bootstrap-sweetalert";
const options = {
day: "numeric",
month: "long",
weekday: "short",
hour: "numeric",
minute: "numeric",
timeZoneName: "short",
timeZone: "America/Los_Angeles"
};
class ConsultaView extends Component {
constructor() {
super();
this.state = {
intervalId: 0,
datosConsulta: {},
visible: false,
showDeclarative: false,
confirmDelete: false,
confirmCancel: false,
efectoSelected: {},
efecto: "",
efectoList: [],
efectoListTable: [],
efectoListTableSelected: [],
columnsEfecto: [
{
dataField: "codefecad",
hidden: true
},
{
dataField: "nombre",
text: "Nombre"
}
]
};
this.handleDelete = this.handleDelete.bind(this);
this.onDismiss = this.onDismiss.bind(this);
this.onCancelDelete = this.onCancelDelete.bind(this);
this.alertDelete = this.alertDelete.bind(this);
this.alertCancel = this.alertCancel.bind(this);
}
onDismiss() {
this.setState({ visible: false });
}
async handleDelete() {
const cod = this.props.match.params.codconsulta; //direccto accedes, yaa, y eso nomas es, que te falta ahora?
const url1 = "http://127.0.0.1:8000/api/consulta/" + cod + "/";
const response = await axios.delete(url1);
console.log(this.props.match.params.codficha);
if (response.status === 204) {
Alert.success("La Consulta ha sido eliminada con éxito"); //con este avisascmenta nomas, ok
this.props.history.push(
"/menu_ficha/" +
this.props.match.params.codficha +
"/ficha_view/" +
this.props.match.params.codficha // y con este mandas al menu de la fi
);
}
}
async componentWillMount() {
const cod = this.props.match.params.codconsulta;
console.log(cod);
const url1 = "http://127.0.0.1:8000/api/consulta?codconsulta=";
let datosConsulta = {};
await axios
.get(url1 + cod)
.then(function(response) {
console.log(response.data[0]);
datosConsulta = response.data[0];
})
.catch(function(error) {
console.log(error);
});
this.setState({
datosConsulta: datosConsulta
});
console.log(this.state.datosConsulta); //trae bien, trae bien? el cod digo no el contenido
//efecto adverso
const url2 =
"http://127.0.0.1:8000/api/efecto_adverso_consulta/?codconsulta=";
const url3 = "http://127.0.0.1:8000/api/efecto_adverso/?codefecad=";
let efectoConsulta = {};
let liste = [];
let listEfecto = [];
await axios
.get(url2 + cod)
.then(function(response) {
efectoConsulta = response.data;
})
.catch(function(error) {
console.log(error);
});
for (let item = 0; item < efectoConsulta.length; item++) {
await axios
.get(url3 + efectoConsulta[item].codefecad)
.then(function(response) {
liste.push(response.data[0]);
})
.catch(function(error) {
console.log(error);
});
}
for (let item = 0; item < liste.length; item++) {
const obj = {
codefecad: liste[item].codefecad,
nombre: liste[item].nombre
};
listEfecto.push(obj);
}
console.log(listEfecto);
this.setState({ efectoListTable: listEfecto });
}
onCancelDelete = function() {
this.setState({
confirmCancel: !this.state.confirmCancel,
confirmDelete: !this.state.confirmDelete
});
};
alertDelete() {
this.setState({ confirmDelete: !this.state.confirmDelete });
}
alertCancel = function() {
this.setState({
confirmCancel: !this.state.confirmCancel
});
};
formatDate(date) {
var monthNames = [
"Enero",
"Febrero",
"Marzo",
"April",
"Mayo",
"Junio",
"Julio",
"Augusto",
"Septiembre",
"Octubre",
"Noviembre",
"Diciembre"
];
var day = date.getUTCDate();
var monthIndex = date.getMonth();
var year = date.getFullYear();
return day + " " + monthNames[monthIndex] + " " + year;
}
scroll() {
let intervalId = setInterval(
this.scrollStep.bind(this),
this.props.delayInMs
);
//store the intervalId inside the state,
//so we can use it later to cancel the scrolling
this.setState({ intervalId: intervalId });
}
scrollStep() {
if (window.scrollY === 0) {
clearInterval(this.state.intervalId);
}
window.scroll(0, window.scrollY - this.props.scrollStepInPx);
}
render() {
return (
<Container style={{ marginTop: 20 }}>
<Card style={{ backgroundColor: "#F9FCFB" }}>
<CardHeader style={{ backgroundColor: "#07689F" }}>
<h2 style={{ backgroundColor: "#07689F", color: "#FFFFFF" }}>
Datos Consulta
</h2>
</CardHeader>
<CardBody>
<Form>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Edad:</strong>
</Label>
<p>{this.state.datosConsulta.edad}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Fecha de Consulta:</strong>
</Label>
<p>
{this.formatDate(
new Date(this.state.datosConsulta.fechaconsulta)
)}
</p>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Diagnóstico:</strong>
</Label>
<p>{this.state.datosConsulta.diagnostico}</p>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Tratamiento Actual:</strong>
</Label>
<p>{this.state.datosConsulta.tratamientoactual}</p>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Evolución:</strong>
</Label>
<p>{this.state.datosConsulta.evolucion}</p>
</FormGroup>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Limitación:</strong>
</Label>
<p>{this.state.datosConsulta.limitacion}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Motivo:</strong>
</Label>
<p>{this.state.datosConsulta.limitacionmotivo}</p>
</FormGroup>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<h5>Efectos Adversos</h5>
<Card style={{ padding: 10 }}>
<Row>
<Col>
<BootstrapTable
keyField="codefecad"
data={this.state.efectoListTable}
columns={this.state.columnsEfecto}
/>
</Col>
</Row>
</Card>
</Col>
</Row>
<Card style={{ padding: 10, marginBottom: 20 }}>
<Row>
<Col>
<h5>Examen Físico</h5>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>PA:</strong>
</Label>
<p>{this.state.datosConsulta.presionarte}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>FC:</strong>
</Label>
<p>{this.state.datosConsulta.frescresp}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>FR:</strong>
</Label>
<p>{this.state.datosConsulta.freccardia}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Peso:</strong>
</Label>
<p>{this.state.datosConsulta.peso}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>Talla:</strong>
</Label>
<p>{this.state.datosConsulta.talla}</p>
</FormGroup>
</Col>
</Row>
</Card>
<Row>
<Col>
<FormGroup>
<Label>
<strong>EVA:</strong>
</Label>
<p>{this.state.datosConsulta.eva}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>HAQ:</strong>
</Label>
<p>{this.state.datosConsulta.haq}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>¿Como se siente el Paciente?:</strong>
</Label>
<p>{this.state.datosConsulta.sientepaci}</p>
</FormGroup>
</Col>
</Row>
<Row style={{ marginBottom: 10 }}>
<Col>
<FormGroup>
<h5>Datos para los Scores</h5>
<Row>
<Col>
<Card
style={{
textAlign: "center",
justifyContent: "center",
alignItems: "center",
padding: 10
}}
>
<Row style={{}}>
<Col>
<h6>NAD</h6>
</Col>
<Col>
<h6>NAT</h6>
</Col>
</Row>
<Row>
<Col>
<div className="contenedorPrincipal">
<img src={manito} width="500" height="300" />
<input
disabled
type="checkbox"
className="checkBox1"
name="checkNAD1"
checked={this.state.datosConsulta.checkNAD1}
value={this.state.datosConsulta.checkNAD1}
/>
<input
disabled
type="checkbox"
className="checkBox2"
name="checkNAD2"
checked={this.state.datosConsulta.checkNAD2}
value={this.state.datosConsulta.checkNAD2}
/>
<input
disabled
type="checkbox"
className="checkBox3"
name="checkNAD3"
checked={this.state.datosConsulta.checkNAD3}
value={this.state.datosConsulta.checkNAD3}
/>
<input
disabled
type="checkbox"
className="checkBox4"
name="checkNAD4"
checked={this.state.datosConsulta.checkNAD4}
value={this.state.datosConsulta.checkNAD4}
/>
<input
disabled
type="checkbox"
className="checkBox5"
name="checkNAD5"
checked={this.state.datosConsulta.checkNAD5}
value={this.state.datosConsulta.checkNAD5}
/>
<input
disabled
type="checkbox"
className="checkBox6"
name="checkNAD6"
checked={this.state.datosConsulta.checkNAD6}
value={this.state.datosConsulta.checkNAD6}
/>
<input
disabled
type="checkbox"
className="checkBox7"
name="checkNAD7"
checked={this.state.datosConsulta.checkNAD7}
value={this.state.datosConsulta.checkNAD7}
/>
<input
disabled
type="checkbox"
className="checkBox8"
name="checkNAD8"
checked={this.state.datosConsulta.checkNAD8}
value={this.state.datosConsulta.checkNAD8}
/>
<input
disabled
type="checkbox"
className="checkBox9"
name="checkNAD9"
checked={this.state.datosConsulta.checkNAD9}
value={this.state.datosConsulta.checkNAD9}
/>
<input
disabled
type="checkbox"
className="checkBox10"
name="checkNAD10"
checked={this.state.datosConsulta.checkNAD10}
value={this.state.datosConsulta.checkNAD10}
/>
<input
disabled
type="checkbox"
className="checkBox11"
name="checkNAD11"
checked={this.state.datosConsulta.checkNAD11}
value={this.state.datosConsulta.checkNAD11}
/>
<input
disabled
type="checkbox"
className="checkBox12"
name="checkNAD12"
checked={this.state.datosConsulta.checkNAD12}
value={this.state.datosConsulta.checkNAD12}
/>
<input
disabled
type="checkbox"
className="checkBox13"
name="checkNAD13"
checked={this.state.datosConsulta.checkNAD13}
value={this.state.datosConsulta.checkNAD13}
/>
<input
disabled
type="checkbox"
className="checkBox14"
name="checkNAD14"
checked={this.state.datosConsulta.checkNAD14}
value={this.state.datosConsulta.checkNAD14}
/>
<input
disabled
type="checkbox"
className="checkBox15"
name="checkNAD15"
checked={this.state.datosConsulta.checkNAD15}
value={this.state.datosConsulta.checkNAD15}
/>
<input
disabled
type="checkbox"
className="checkBox16"
name="checkNAD16"
checked={this.state.datosConsulta.checkNAD16}
value={this.state.datosConsulta.checkNAD16}
/>
<input
disabled
type="checkbox"
className="checkBox17"
name="checkNAD17"
checked={this.state.datosConsulta.checkNAD17}
value={this.state.datosConsulta.checkNAD17}
/>
<input
disabled
type="checkbox"
className="checkBox18"
name="checkNAD18"
checked={this.state.datosConsulta.checkNAD18}
value={this.state.datosConsulta.checkNAD18}
/>
<input
disabled
type="checkbox"
className="checkBox19"
name="checkNAD19"
checked={this.state.datosConsulta.checkNAD19}
value={this.state.datosConsulta.checkNAD19}
/>
<input
disabled
type="checkbox"
className="checkBox20"
name="checkNAD20"
checked={this.state.datosConsulta.checkNAD20}
value={this.state.datosConsulta.checkNAD20}
/>
<input
disabled
type="checkbox"
className="checkBox21"
name="checkNAD21"
checked={this.state.datosConsulta.checkNAD21}
value={this.state.datosConsulta.checkNAD21}
/>
<input
disabled
type="checkbox"
className="checkBox22"
name="checkNAD22"
checked={this.state.datosConsulta.checkNAD22}
value={this.state.datosConsulta.checkNAD22}
/>
<input
disabled
type="checkbox"
className="checkBox23"
name="checkNAD23"
checked={this.state.datosConsulta.checkNAD23}
value={this.state.datosConsulta.checkNAD23}
/>
<input
disabled
type="checkbox"
className="checkBox24"
name="checkNAD24"
checked={this.state.datosConsulta.checkNAD24}
value={this.state.datosConsulta.checkNAD24}
/>
<input
disabled
type="checkbox"
className="checkBox25"
name="checkNAD25"
checked={this.state.datosConsulta.checkNAD25}
value={this.state.datosConsulta.checkNAD25}
/>
<input
disabled
type="checkbox"
className="checkBox26"
name="checkNAD26"
checked={this.state.datosConsulta.checkNAD26}
value={this.state.datosConsulta.checkNAD26}
/>
<input
disabled
type="checkbox"
className="checkBox27"
name="checkNAD27"
checked={this.state.datosConsulta.checkNAD27}
value={this.state.datosConsulta.checkNAD27}
/>
<input
disabled
type="checkbox"
className="checkBox28"
name="checkNAD28"
checked={this.state.datosConsulta.checkNAD28}
value={this.state.datosConsulta.checkNAD28}
/>
</div>
</Col>
<Col>
<div className="contenedorPrincipal">
<img src={manito} width="500" height="300" />
<input
disabled
type="checkbox"
className="checkBox1"
name="checkNAT1"
checked={this.state.datosConsulta.checkNAT1}
value={this.state.datosConsulta.checkNAT1}
/>
<input
disabled
type="checkbox"
className="checkBox2"
name="checkNAT2"
checked={this.state.datosConsulta.checkNAT2}
value={this.state.datosConsulta.checkNAT2}
/>
<input
disabled
type="checkbox"
className="checkBox3"
name="checkNAT3"
checked={this.state.datosConsulta.checkNAT3}
value={this.state.datosConsulta.checkNAT3}
/>
<input
disabled
type="checkbox"
className="checkBox4"
name="checkNAT4"
checked={this.state.datosConsulta.checkNAT4}
value={this.state.datosConsulta.checkNAT4}
/>
<input
disabled
type="checkbox"
className="checkBox5"
name="checkNAT5"
checked={this.state.datosConsulta.checkNAT5}
value={this.state.datosConsulta.checkNAT5}
/>
<input
disabled
type="checkbox"
className="checkBox6"
name="checkNAT6"
checked={this.state.datosConsulta.checkNAT6}
value={this.state.datosConsulta.checkNAT6}
/>
<input
disabled
type="checkbox"
className="checkBox7"
name="checkNAT7"
checked={this.state.datosConsulta.checkNAT7}
value={this.state.datosConsulta.checkNAT7}
/>
<input
disabled
type="checkbox"
className="checkBox8"
name="checkNAT8"
checked={this.state.datosConsulta.checkNAT8}
value={this.state.datosConsulta.checkNAT8}
/>
<input
disabled
type="checkbox"
className="checkBox9"
name="checkNAT9"
checked={this.state.datosConsulta.checkNAT9}
value={this.state.datosConsulta.checkNAT9}
/>
<input
disabled
type="checkbox"
className="checkBox10"
name="checkNAT10"
checked={this.state.datosConsulta.checkNAT10}
value={this.state.datosConsulta.checkNAT10}
/>
<input
disabled
type="checkbox"
className="checkBox11"
name="checkNAT11"
checked={this.state.datosConsulta.checkNAT11}
value={this.state.datosConsulta.checkNAT11}
/>
<input
disabled
type="checkbox"
className="checkBox12"
name="checkNAT12"
checked={this.state.datosConsulta.checkNAT12}
value={this.state.datosConsulta.checkNAT12}
/>
<input
disabled
type="checkbox"
className="checkBox13"
name="checkNAT13"
checked={this.state.datosConsulta.checkNAT13}
value={this.state.datosConsulta.checkNAT13}
/>
<input
disabled
type="checkbox"
className="checkBox14"
name="checkNAT14"
checked={this.state.datosConsulta.checkNAT14}
value={this.state.datosConsulta.checkNAT14}
/>
<input
disabled
type="checkbox"
className="checkBox15"
name="checkNAT15"
checked={this.state.datosConsulta.checkNAT15}
value={this.state.datosConsulta.checkNAT15}
/>
<input
disabled
type="checkbox"
className="checkBox16"
name="checkNAT16"
checked={this.state.datosConsulta.checkNAT16}
value={this.state.datosConsulta.checkNAT16}
/>
<input
disabled
type="checkbox"
className="checkBox17"
name="checkNAT17"
checked={this.state.datosConsulta.checkNAT17}
value={this.state.datosConsulta.checkNAT17}
/>
<input
disabled
type="checkbox"
className="checkBox18"
name="checkNAT18"
checked={this.state.datosConsulta.checkNAT18}
value={this.state.datosConsulta.checkNAT18}
/>
<input
disabled
type="checkbox"
className="checkBox19"
name="checkNAT19"
checked={this.state.datosConsulta.checkNAT19}
value={this.state.datosConsulta.checkNAT19}
/>
<input
disabled
type="checkbox"
className="checkBox20"
name="checkNAT20"
checked={this.state.datosConsulta.checkNAT20}
value={this.state.datosConsulta.checkNAT20}
/>
<input
disabled
type="checkbox"
className="checkBox21"
name="checkNAT21"
checked={this.state.datosConsulta.checkNAT21}
value={this.state.datosConsulta.checkNAT21}
/>
<input
disabled
type="checkbox"
className="checkBox22"
name="checkNAT22"
checked={this.state.datosConsulta.checkNAT22}
value={this.state.datosConsulta.checkNAT22}
/>
<input
disabled
type="checkbox"
className="checkBox23"
name="checkNAT23"
checked={this.state.datosConsulta.checkNAT23}
value={this.state.datosConsulta.checkNAT23}
/>
<input
disabled
type="checkbox"
className="checkBox24"
name="checkNAT24"
checked={this.state.datosConsulta.checkNAT24}
value={this.state.datosConsulta.checkNAT24}
/>
<input
disabled
type="checkbox"
className="checkBox25"
name="checkNAT25"
checked={this.state.datosConsulta.checkNAT25}
value={this.state.datosConsulta.checkNAT25}
/>
<input
disabled
type="checkbox"
className="checkBox26"
name="checkNAT26"
checked={this.state.datosConsulta.checkNAT26}
value={this.state.datosConsulta.checkNAT26}
/>
<input
disabled
type="checkbox"
className="checkBox27"
name="checkNAT27"
checked={this.state.datosConsulta.checkNAT27}
value={this.state.datosConsulta.checkNAT27}
/>
<input
disabled
type="checkbox"
className="checkBox28"
name="checkNAT28"
checked={this.state.datosConsulta.checkNAT28}
value={this.state.datosConsulta.checkNAT28}
/>
</div>
</Col>
</Row>
</Card>
</Col>
</Row>
</FormGroup>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<Col>
<FormGroup>
<Label>
<strong>CRP:</strong>
</Label>
<p>{this.state.datosConsulta.crp}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>VSG:</strong>
</Label>
<p>{this.state.datosConsulta.vsg}</p>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<FormGroup>
<Col>Variables para CDAI y SDAI</Col>
</FormGroup>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>VGP:</strong>
</Label>
<p>{this.state.datosConsulta.vgp1}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>VGM:</strong>
</Label>
<p>{this.state.datosConsulta.vgm1}</p>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
<Col>
<Card style={{ padding: 20 }}>
<Row>
<FormGroup>
<Col>Variables para DAS28-PCR y DAS28-VSG</Col>
</FormGroup>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>VGM:</strong>
</Label>
<p>{this.state.datosConsulta.vgm2}</p>
</FormGroup>
</Col>
<Col>
<FormGroup>
<Label>
<strong>VGP:</strong>
</Label>
<p>{this.state.datosConsulta.vgp2}</p>
</FormGroup>
</Col>
</Row>
</Card>
</Col>
</Row>
<Row style={{ marginBottom: 20 }}>
<Col>
<Card style={{ padding: 20, textAlign: "center" }}>
<h4>CDAI</h4>
<h1
style={{
color: "blue"
}}
>
<p>{this.state.datosConsulta.cdai}</p>
</h1>
<h3
style={{
color: "blue"
}}
>
<p>{this.state.datosConsulta.CDAI_RANGO}</p>
</h3>
</Card>
</Col>
<Col>
<Card style={{ padding: 20, textAlign: "center" }}>
<h4>SDAI</h4>
<h1
style={{
color: "green"
}}
>
<p>{this.state.datosConsulta.sdai}</p>
</h1>
<h3
style={{
color: "green"
}}
>
<p>{this.state.datosConsulta.SDAI_RANGO}</p>
</h3>
</Card>
</Col>
<Col>
<Card style={{ padding: 20, textAlign: "center" }}>
<h4>DAS28-PCR</h4>
<h1
style={{
color: "orange"
}}
>
<p>{this.state.datosConsulta.das28pcr}</p>
</h1>
<h3
style={{
color: "orange"
}}
>
<p>{this.state.datosConsulta.DAS28_PCR_RANGO}</p>
</h3>
</Card>
</Col>
<Col>
<Card style={{ padding: 20, textAlign: "center" }}>
<h4>DAS28-VSG</h4>
<h1
style={{
color: "violet"
}}
>
<p>{this.state.datosConsulta.das28vsg}</p>
</h1>
<h3
style={{
color: "violet"
}}
>
<p>{this.state.datosConsulta.DAS28_VSG_RANGO}</p>
</h3>
</Card>
</Col>
</Row>
<Row>
<Col>
<FormGroup>
<Label>
<strong>Plan:</strong>
</Label>
<p>{this.state.datosConsulta.plan}</p>
</FormGroup>
</Col>
</Row>
</Form>
</CardBody>
</Card>
<FormGroup>
<Button
onClick={this.alertDelete}
color="danger"
style={{ marginTop: 20 }}
>
Eliminar
<SweetAlert
warning
showCancel
allowEscape
show={this.state.confirmDelete}
confirmBtnText="Sí, Eliminar Consulta"
cancelBtnText="Cancelar"
confirmBtnBsStyle="danger"
cancelBtnBsStyle="default"
onConfirm={this.handleDelete}
onCancel={this.onCancelDelete}
>
¿Estas seguro de Eliminar la Consulta?
</SweetAlert>
</Button>
{" "}
<Button
onClick={this.props.history.goBack}
appearance="primary"
style={{ marginTop: 20 }}
>
Atras
</Button>
<Icon
href="#"
id="scroll"
className="scroll"
style={{ marginLeft: 700, color: "#07689F", background: "white" }}
onClick={event => {
event.preventDefault();
this.scroll();
}}
icon="angle-double-up"
size="4x"
/>
</FormGroup>
</Container>
);
}
}
export default ConsultaView;
| 4279b9a64ad8e729275bdecb358028b100ab459c | [
"JavaScript"
] | 25 | JavaScript | acostajo/sgh_front | b1202b16a75c8d5b75b6bc4f9c74f9417ba2bdb6 | dc9cb57c707293c6d5daf51bf247bca802382335 |
refs/heads/master | <file_sep>class WeekSheduleAgreement < ActiveRecord::Base
validates_presence_of :week_begin_at, :user_id
end
<file_sep>class WeekSheduleAgreementsController < ApplicationController
def create
@wsa = WeekSheduleAgreement.create(user_id:params[:user_id], week_begin_at: Date.parse(params[:date]))
end
def destroy
@wsa = WeekSheduleAgreement.where(user_id: params[:user_id]).where(week_begin_at: Date.parse(params[:date])).first
@wsa.destroy if @wsa
end
end
<file_sep># config.action_controller.relative_url_root = '/redmine'
<file_sep>[![Build Status](https://travis-ci.org/jperelli/Redmine-Periodic-Task.svg)](https://travis-ci.org/jperelli/Redmine-Periodic-Task)
periodictask
============
In some projects there are tasks that need to be assigned on a schedule.
Such as check the ssl registration once per year or run security checks every 3 months
After you installed the plugin you can add it as a module to a project that already exists
or activate it as default module for new projects. On each project it will add a new tab
named "Periodic Task" - just go there to add your tasks.
Note about redmine version support
----------------------------------
This fork (jperelli) supports now redmine v2 and v3.
Redmine v1 support has been dropped in favor of newer v3. If you still need redmine v1 support, please use redmine2 branch, that supports v1 and v2.
Support table :
<table>
<tr>
<td rowspan="2">git branch</td>
<td colspan="3">redmine version support</td>
</tr>
<tr>
<td>1.x</td>
<td>2.x</td>
<td>3.x</td>
</tr>
<tr>
<td>master</td>
<td>Unknown</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>redmine2</td>
<td>Yes</td>
<td>Yes</td>
<td>No</td>
</tr>
</table>
To use redmine2 branch, when cloning use `-b redmine2` like this `git clone -b redmine2 http://github.com:/jperelli/Redmine-Periodic-Task.git plugins/periodictask`
Installation
------------
cd /usr/local/share/redmine
git clone http://github.com:/jperelli/Redmine-Periodic-Task.git plugins/periodictask
rake redmine:plugins:migrate NAME=periodictask RAILS_ENV=production
apache2ctl graceful
Note: Copy the files into {redmine-base-dir}/plugins/periodictask. Do not use the directory name of the repository.
Upgrade
-------
cd /usr/local/share/redmine/plugins/periodictask
git pull
rake redmine:plugins:migrate NAME=periodictask RAILS_ENV=production
apache2ctl graceful
Note: If you copy the files into {redmine-base-dir}/plugins/periodictask please update them instead of using git pull.
Uninstallation
--------------
cd /usr/local/share/redmine
rake redmine:plugins:migrate NAME=periodictask VERSION=0 RAILS_ENV=production
rm -rf plugins/periodictask
apache2ctl graceful
Configuration
-------------
As root do `crontab -e` and add this to the last line
0 1 * * * cd /var/www/<redminedir>; rake redmine:check_periodictasks RAILS_ENV="production"
You can also make it run once per hour
0 * * * * cd /var/www/<redminedir>; rake redmine:check_periodictasks RAILS_ENV="production"
Or even every 10 minutes
*/10 * * * * cd /var/www/<redminedir>; rake redmine:check_periodictasks RAILS_ENV="production"
If you want to substitute variable `MONTHNAME` with localized version (`de`, `tr`, `en` or `ru`) please add `LOCALE="de"` to cronjob like this
0 * * * * cd /var/www/<redminedir>; rake redmine:check_periodictasks RAILS_ENV="production" LOCALE="de"
<file_sep>class AddKindToTimeEntry < ActiveRecord::Migration
def change
add_column :time_entries, :kind, :string, default: 'overtime'
end
end
<file_sep>class TimeEntriesSheetController < ApplicationController
include TimeEntriesSheetHelper
def index
@issues = Issue.where(status_id:2).includes(:project)
@date = Date.today
@hours = create_hours_hash @date.beginning_of_week, @date.end_of_week, User.current
end
def show
@issues = Issue.where(status_id:2).includes(:project)
@date = params[:date].to_date
@hours = create_hours_hash @date.beginning_of_week, @date.end_of_week, User.current
end
def create
params[:time_entries].keys.each do |key|
next unless params[:time_entries][key].present?
hours = params[:time_entries][key]
parts = key.split("|")
issue = Issue.find_by_id(parts[1])
next unless issue
date = parts[0].to_date
next unless date
te = TimeEntry.new(issue_id:issue.id, spent_on:date, kind: 'common', project_id:issue.project_id,custom_field_values:{"5"=>"", "7"=>"0"})
te.activity = te.project.activities.first
te.hours = hours.to_f
te.user = User.current
te.save
end
@issues = Issue.where(status_id:2).includes(:project)
@date = params[:date].to_date
@hours = create_hours_hash @date.beginning_of_week, @date.end_of_week, User.current
render :show
end
def confirmation
@date = params[:date].try(:to_date) || Date.today
@time_entries = TimeEntry.where(spent_on: @date.beginning_of_week..@date.end_of_week)
end
def confirmation_data
return if !params[:date].present? || !params[:user_id].present?
@date = params[:date].try(:to_date)
@user = User.find_by_id(params[:user_id])
return if !@date || !@user
@time_entries = TimeEntry.where(user_id: @user.id).where(spent_on: @date.beginning_of_week..@date.end_of_week)
@wsa = WeekSheduleAgreement.where(user_id: @user.id).where(week_begin_at: @date).first
end
def confirm
@ids = params[:ids].split(',')
time_entries = TimeEntry.where(id:@ids)
time_entries.update_all(:confirmation_status => 'confirmed')
@wsa = fetch_wsa time_entries.first.spent_on, User.current
end
def reject
@ids = params[:ids].split(',')
if(request.method == "POST")
TimeEntry.where(id: @ids).update_all(:confirmation_status => 'rejected', comments: params[:comment])
redirect_to time_entries_confirmation_url
end
end
end
<file_sep># Load DSL and Setup Up Stages
require 'capistrano/setup'
# Includes default deployment tasks
require 'capistrano/deploy'
# require 'rollbar/capistrano3'
require "capistrano/scm/git"
install_plugin Capistrano::SCM::Git
require 'capistrano/puma'
install_plugin Capistrano::Puma
install_plugin Capistrano::Puma::Nginx
require 'capistrano/rbenv'
require 'capistrano/bundler'
require 'capistrano/rails'
# require 'capistrano/sidekiq'
# require 'capistrano/delayed_job'
# require 'capistrano/rbenv'
# require 'capistrano/bundler'
# require 'capistrano/rails'
# require 'capistrano/puma'
# require 'capistrano/puma/workers' # if you want to control the workers (in cluster mode)
# require 'capistrano/puma/nginx' # if you want to upload a nginx site template
# require 'capistrano/sidekiq'
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
Dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r }
<file_sep>set :branch, "master"
server 'csm-team.my-mall.club', user: 'deploy', roles: %w{web app db backend}, :primary => true
<file_sep>class PeriodictaskController < ApplicationController
# unloadable
before_filter :find_project
#before_filter :find_periodictask, :except => [:new, :create, :index]
before_filter :load_users, :except => [:destroy]
before_filter :load_categories, :except => [:destroy]
def index
if !params[:project_id] then return end
@project_identifier = params[:project_id]
# find_all_by is considered deprecated (Rails 4)
@tasks = Periodictask.where(project_id: @project[:id])
#@tasks = Periodictask.find_all_by_project_id(@project[:id])
end
def new
@periodictask = Periodictask.new(:project=>@project, :author_id=>User.current.id)
end
def create
@periodictask = Periodictask.new(:project=>@project, :author_id=>User.current.id)
params[:periodictask][:project_id] = @project[:id]
@periodictask.attributes = params[:periodictask]
if @periodictask.save
flash[:notice] = l(:flash_task_created)
redirect_to :controller => 'periodictask', :action => 'index', :project_id=>params[:project_id]
end
end
def edit
@periodictask = Periodictask.find(params[:id])
@periodictask[:project_id] = @project[:identifier]
params[:project_id] = @project[:identifier]
end
def update
@periodictask = Periodictask.find(params[:id])
params[:periodictask][:project_id] = @project[:id]
if @periodictask.update_attributes(params[:periodictask])
flash[:notice] = l(:flash_task_saved)
# redirect_to :controller => 'periodictask', :action => 'index', :project_id=>params[:project_id]
redirect_to :controller => 'periodictask', :action => 'index', :project_id=>params[:project_id]
end
end
def show
end
def destroy
@task = Periodictask.find(params[:id])
@task.destroy
redirect_to :controller => 'periodictask', :action => 'index', :project_id=>params[:project_id]
end
private
def find_periodictask
@periodictask = Periodictask.find(params[:id])
rescue ActiveRecord::RecordNotFound
render_404
end
def find_project
@project = Project.find(params[:project_id])
end
def load_users
# Get the assignable users and groups in the project
@assignables = @project.assignable_users
# Get the users in the project (as authors)
@authors = []
@project.members.each do |m|
@authors << m.user
end
end
def load_categories
# Get the issue categories
@categories = @project.issue_categories
end
end
<file_sep>function weekPicked(){
$("#time-entries-form").attr("action","/time_entries_sheet/" + $('#week-select').val())
$("#time-entries-form").submit()
}
window.formReloaded = function(){
$('.submit-form-button').click(submitForm)
}
function validateForm(){
var isValid = true
$(".time-entry-input").each(function(index, element){
var value = $(element).val()
if(!value){
$(element).removeClass("red")
return
}
var value_float = parseFloat(value)
if(isNaN(value_float)){
$(element).addClass("red")
isValid = false
return
}
if(value_float > 24.0){
$(element).addClass("red")
isValid = false
} else {
$(element).removeClass("red")
}
})
return isValid
}
function submitForm(){
if(validateForm()){
$(".wrong-value-notice").hide()
$(".time-entries-form").submit()
} else {
$(".wrong-value-notice").show()
}
}
$(document).ready(function(){
formReloaded()
$('#week-select').change(weekPicked)
})
<file_sep>class Periodictask < ActiveRecord::Base
# unloadable
belongs_to :project
belongs_to :assigned_to, :class_name => 'Principal', :foreign_key => 'assigned_to_id'
belongs_to :issue_category, :class_name => 'IssueCategory', :foreign_key => 'issue_category_id'
# adapted to changes concerning mass-assigning values to attributes
attr_accessible *column_names
INTERVAL_UNITS = [
[l(:label_unit_day), 'day'],
[l(:label_unit_week), 'week'],
[l(:label_unit_month), 'month'],
[l(:label_unit_year), 'year']
]
end
<file_sep>function weekPicked(){
$("#time-entries-form").attr("action","/time_entries_confirmation/entries/" + $('#week-select').val())
$("#time-entries-form").submit()
}
function weekSheduleActionButtonclicked(){
wsa = parseInt($("#wsa-status-title").attr("wsa"))
if(wsa == 0){
$("#week-shedule-agreement-form").attr("action","/week_shedule_agreements/confirm")
} else {
$("#week-shedule-agreement-form").attr("action","/week_shedule_agreements/reject")
}
$("#week-shedule-agreement-form").submit()
}
window.formReloaded = function(wsa_id){
$("#wsa-status-title").attr("wsa", wsa_id)
if(wsa_id > 0){
$("#wsa-status-title").html("Согласовано")
$("#week-shedule-action-button").html("Отменить")
} else {
$("#wsa-status-title").html("Не согласовано")
$("#week-shedule-action-button").html("Согласовать")
}
}
$(document).ready(function(){
$('#week-select').change(weekPicked)
$('#user-select').change(weekPicked)
$('#week-shedule-action-button').click(weekSheduleActionButtonclicked)
weekPicked()
})
<file_sep>class AddConfirmationStatusToTimeEntry < ActiveRecord::Migration
def change
add_column :time_entries, :confirmation_status, :string, default: 'pending'
end
end
<file_sep>ENV['PATH'] = ENV['PATH'] + ';C:\Bitnami\redmine-3.2.3-0/git/bin'
ENV['PATH'] = ENV['PATH'] + ';C:\Bitnami\redmine-3.2.3-0/subversion/bin'
ENV['PATH'] = ENV['PATH'] + ';C:\Bitnami\redmine-3.2.3-0\imagemagick'
ENV['MAGICK_CODER_MODULE_PATH'] = 'C:\Bitnami\REDMIN~1.3-0\IMAGEM~1\modules\coders'
ENV['PATH'] = ENV['PATH'] + ';C:\Bitnami\redmine-3.2.3-0\ruby\bin'
<file_sep>module TimeEntriesSheetHelper
def weeks_selector_data
result = []
@current_date = Date.today.beginning_of_year
while @current_date.strftime('%Y') == Date.today.strftime('%Y')
@week_number = @current_date.strftime('%W')
@monday = @current_date.at_beginning_of_week
result.push ["#{@week_number} (#{@monday.strftime('%d.%m')} - #{(@monday + 6.days).strftime('%d.%m')})",@monday.strftime('%d-%m-%Y')]
@current_date += 7.days
end
result
end
def create_hours_hash date_from,date_to, user
time_entries = TimeEntry.where(user_id: user.id).where(spent_on: date_from..date_to).group_by{|a| "#{a.spent_on.strftime("%Y-%m-%d")}|#{a.issue.id}"}
time_entries.keys.each do |key|
time_entries[key] = time_entries[key].sum{|a| a.hours}
end
time_entries
end
def fetch_wsa date, user
from = date.beginning_of_week
to = date.end_of_week
unless TimeEntry.where(user_id: user.id).where(spent_on: from..to).where.not(confirmation_status: 'confirmed').present?
@wsa = WeekSheduleAgreement.where(user_id: user.id).where(week_begin_at: from).first_or_create
end
@wsa
end
end
<file_sep># -*- encoding : utf-8 -*-
# config valid only for Capistrano 3.1
lock '3.10.1'
require 'capistrano/rbenv'
require 'capistrano/bundler' # Rails needs Bundler, right?
require 'capistrano/rails/assets'
require 'capistrano/rails/migrations'
# require "whenever/capistrano"
# load "config/recipes/whenever.rb"
# load "config/recipes/other.rb"
set :default_env, { path: "/home/deploy/.rbenv/shims:/home/deploy/.rbenv/bin:$PATH" }
# set :default_env, { path: "~/.rvm/bin:~/.rvm/rubies/ruby-2.2.1/bin:$PATH" }
# config/deploy.rb
set :rbenv_type, :user # or :system, depends on your rbenv setup
set :rbenv_ruby, '2.1.0'
set :rbenv_path, '/home/deploy/.rbenv/'
# set :rvm_map_bins,[]
# set :rbenv_prefix, "RBENV_ROOT=#{fetch(:rbenv_path)} RBENV_VERSION=#{fetch(:rbenv_ruby)} #{fetch(:rbenv_path)}/bin/rbenv exec"
set :rbenv_map_bins, %w{rake gem ruby rails}
set :rbenv_roles, :all # default value
# set :rmv_roles, :all
set :bundle_bins, %w{rake gem ruby rails puma pumactl}
set :bundle_roles, %w{app}
# set :bundle_roles, :all # this is default
set :bundle_servers, -> { release_roles(fetch(:bundle_roles)) } # this is default
# set :bundle_binstubs, -> { shared_path.join('bin') } # this is default
# set :bundle_gemfile, -> { release_path.join('MyGemfile') } # default: nil
set :bundle_path, -> { shared_path.join('bundle') } # this is default
set :bundle_without, %w{development test}.join(' ') # this is default
set :bundle_flags, '--deployment --quiet' # this is default
set :bundle_env_variables, {}
# set :sidekiq_cmd => "#{fetch(:bundle_cmd, "bundle")} exec sidekiq" # Only for capistrano2.5
set :rails_env, 'production' # If the environment differs from the stage name
set :migration_role, 'web' # Defaults to 'db'
set :conditionally_migrate, true # Defaults to false
set :assets_roles, [:web] # Defaults to [:web]
set :whenever_roles, [:web]
set :assets_prefix, 'assets' # Defaults to 'assets' this should match confi
set :assets_roles, %w{web}
set :application, 'csmteam_redmine'
set :repo_url, "<EMAIL>:csmteam/csmteam_redmine.git"
set :ssh_options, { user: 'deploy' }
set :scm, :git
set :pty, false
set :forward_agent, true
set :deploy_via, :remote_cache
set :app_dir, "/srv/#{fetch(:application)}/"
set :deploy_to, "/srv/#{fetch(:application)}"
set :sidekiq_pid, "#{fetch(:deploy_to)}/shared/pids/sidekiq.pid"
set :use_sudo, false
set :linked_files, %w{config/database.yml}
set :linked_dirs, %w{public/system tmp/pids tmp/sockets}
namespace :deploy do
end
<file_sep>class ScheduledTasksChecker
def self.checktasks!
Periodictask.where("next_run_date <= ? ", Time.now).each do |task|
# replace variables (set locale from shell)
I18n.locale = ENV['LOCALE'] || I18n.default_locale
# Copy subject and description and replace variables
subject = task.subject.dup
description = task.description.dup
subject.gsub!('**WEEK**', Time.now.strftime("%W"))
subject.gsub!('**MONTH**', Time.now.strftime("%m"))
subject.gsub!('**MONTHNAME**', I18n.localize(Time.now, :format => "%B"))
subject.gsub!('**YEAR**', Time.now.strftime("%Y"))
subject.gsub!('**PREVIOUS_MONTHNAME**', I18n.localize(Time.now - 2592000, :format => "%B"))
description.gsub!('**WEEK**', Time.now.strftime("%W"))
description.gsub!('**MONTH**', Time.now.strftime("%m"))
description.gsub!('**MONTHNAME**', I18n.localize(Time.now, :format => "%B"))
description.gsub!('**YEAR**', Time.now.strftime("%Y"))
description.gsub!('**PREVIOUS_MONTHNAME**', I18n.localize(Time.now - 2592000, :format => "%B"))
print "assigning #{subject}\n"
issue = Issue.new(:project_id=>task.project_id, :tracker_id=>task.tracker_id, :category_id=>task.issue_category_id, :assigned_to_id=>task.assigned_to_id, :author_id=>task.author_id, :subject=>subject, :description=>description);
issue.start_date ||= Date.today if task.set_start_date?
if task.due_date_number
due_date = task.due_date_number
due_date_units = task.due_date_units
issue.due_date = due_date.send(due_date_units.downcase).from_now
end
issue.save
interval = task.interval_number
units = task.interval_units
interval_steps = ((Time.now - task.next_run_date) / interval.send(units.downcase)).ceil
task.next_run_date += (interval * interval_steps).send(units.downcase)
task.save
end
end
end
| cd260d3c47aa713e1389353b7dd0535db94137a4 | [
"Markdown",
"JavaScript",
"Ruby"
] | 17 | Ruby | csmteam/csmteam_redmine | aaf5c7884684276582e290b56a3d19d021de7c28 | 54ad34c743ea66f3d172e3159e5f6dba3ccf258f |
refs/heads/master | <repo_name>abazad/turkcellbipserver<file_sep>/contactlist.php
<?php
require_once 'config.php';
$userInput = urldecode(file_get_contents('php://input'));
//$userInput = $_POST["userInput"];
if (isset($userInput)) {
$jsonInput = json_decode($userInput,true);
$resultArr = array();
$resultArr["result"] = 7;
if (isset($jsonInput["id"])) {
@mysql_connect($databaseAddr,$databaseUser,$databaseUserPass) or die("Database Connection Error");
@mysql_select_db($databaseName) or die("Database Selection Error");
$userID = $jsonInput["id"];
$listType = $jsonInput["allList"];
$resultArr["id"] = $userID;
$result = mysql_query("SELECT username FROM users WHERE id='$userID'");
$row = mysql_fetch_row($result);
$userPhone = strstr($row[0],"@",true);
mysql_free_result($result);
$result = @mysql_query("SELECT * FROM contacts WHERE id='$userID' AND isBip=1") or die("Query Error1:".mysql_error());
$num = mysql_num_rows($result);
$row;
if ($num > 0) {
$contactIndex = 0;
$resultArr["contacts"] = array();
while ($row = mysql_fetch_array($result)) {
$bipArr = array();
$bipArr["msisdn"] = $row["contactPhone"];
$bipArr["abID"] = intval($row["abID"]);
$contactUsername = $row["contactPhone"]."@".$xmppDomain;
$userResult = @mysql_query("SELECT * FROM users WHERE username='$contactUsername'");
$userRow = mysql_fetch_array($userResult);
if (strlen($userRow["profileImage"]) > 3) {
$bipArr["profileUrl"] = $userRow["profileImage"];
}
mysql_free_result($userResult);
//echo "<br> Contact Phone: ".$row["contactPhone"]." ProfileImage: ".$userRow["profileImage"]."<br>";
$resultArr["contacts"][$contactIndex] = $bipArr;
$contactIndex++;
//Ejabberda rosteritemlari ekler
$request = "add_rosteritem ".$userPhone." ".$xmppDomain." ".$bipArr["msisdn"]." ".$xmppDomain." Osman Friends both";
$opts = array('http' =>array('method' => "POST",'header' => "Host: localhost\nContent-Type: text/html; charset=utf-8",'content' => $request));
$context = stream_context_create($opts);
$fp = fopen($xmppUrl, 'r', false, $context);
if ($fp) {
$response_str = stream_get_contents($fp);
fclose($fp);
}
}
mysql_free_result($result);
$resultArr["result"] = 0;
} else {
$resultArr["result"] = 13;
}
echo json_encode($resultArr,JSON_UNESCAPED_SLASHES);
} else {
echo "Json Input Error";
}
} else {
echo "User Input Error";
}
?><file_sep>/profileupload.php
<?php
require_once 'config.php';
function makeThumbnails($origFile,$thumbFile)
{
$thumbnail_width = 80;
$thumbnail_height = 80;
$arr_image_details = getimagesize($origFile); // pass id to thumb name
$original_width = $arr_image_details[0];
$original_height = $arr_image_details[1];
if ($original_width > $original_height) {
$new_width = $thumbnail_width;
$new_height = intval($original_height * $new_width / $original_width);
} else {
$new_height = $thumbnail_height;
$new_width = intval($original_width * $new_height / $original_height);
}
$dest_x = intval(($thumbnail_width - $new_width) / 2);
$dest_y = intval(($thumbnail_height - $new_height) / 2);
if ($arr_image_details[2] == 1) {
$imgt = "ImageGIF";
$imgcreatefrom = "ImageCreateFromGIF";
}
if ($arr_image_details[2] == 2) {
$imgt = "ImageJPEG";
$imgcreatefrom = "ImageCreateFromJPEG";
}
if ($arr_image_details[2] == 3) {
$imgt = "ImagePNG";
$imgcreatefrom = "ImageCreateFromPNG";
}
if ($imgt) {
$old_image = $imgcreatefrom($origFile);
$new_image = imagecreatetruecolor($thumbnail_width, $thumbnail_height);
imagecopyresized($new_image, $old_image, $dest_x, $dest_y, 0, 0, $new_width, $new_height, $original_width, $original_height);
$imgt($new_image,$thumbFile);
return true;
}
return false;
}
$userInput = $_POST["json"];
$profileImage;
//echo "User Input IS:".$userInput;
if (isset($_FILES["file"])) {
$profileImage = $_FILES["file"];
}
$resultArr = array();
if (isset($userInput)) {
$jsonInput = json_decode($userInput,true);
$nickName;
$id;
//echo "User Input:".$userInput." ID:".$id." Nick:".$nickName."<br>";
if (!isset($jsonInput["id"])) {
$resultArr["resultCode"] = 7;
echo json_encode($resultArr);
return;
}
$id = $jsonInput["id"];
@mysql_connect($databaseAddr,$databaseUser,$databaseUserPass) or die("Database Connection Error");
@mysql_select_db($databaseName) or die("Database Selection Error");
if (!isset($jsonInput["nickname"])) {
$result = mysql_query("SELECT nickname FROM users WHERE id='$id'");
$num = mysql_num_rows($result);
if ($num > 0) {
$row = mysql_fetch_row($result);
$nickName = $row[0];
}
mysql_free_result($result);
} else {
$nickName = $jsonInput["nickname"];
}
if (isset($profileImage)) {
$letters = 'abcdefghi1234567890';
$filePrefix = str_shuffle($letters);
$fileTmpName = $profileImage["tmp_name"];
$fileExt = pathinfo($profileImage["name"],PATHINFO_EXTENSION);
$thumbFileName = $filePrefix.".".$fileExt;
$originalFileName = "orig_".$thumbFileName;
$originalFilePath = $uploadsDir."/".$originalFileName;
$thumbnailFilePath = $uploadsDir."/".$thumbFileName;
//echo "File Tmp Name: $fileTmpName FileOrgName:".$profileImage["name"]." File Original Name: $originalFileName Original FilePath: $originalFilePath";
//var_dump($_FILES["file"]);
if (move_uploaded_file($fileTmpName, $originalFilePath)) {
if (makeThumbnails($originalFilePath, $thumbnailFilePath)) {
//echo "Input Values NickName:".$nickName." ID:".$id." ImagePath:".$thumbFileName."JsonInput:".$jsonInput."<br>";
@mysql_query("UPDATE users set nickname='$nickName',profileImage='$thumbFileName' WHERE id='$id'") or die("Update Query Error:".mysql_error());
$resultArr["resultCode"] = 0;
$resultArr["fileID"] = $thumbFileName;
} else {
echo "Creating Thumbnail Failed";
}
} else {
$resultArr["resultCode"] = 9;
}
} else {
@mysql_query("UPDATE users set nickname='$nickName' WHERE id='$id'") or die("Update Query Error:".mysql_error());
$resultArr["resultCode"] = 0;
}
echo json_encode($resultArr);
mysql_close();
} else {
echo "Missing Input Error";
}
?><file_sep>/msisdn.php
<?php
require_once 'config.php';
$userInput = urldecode(file_get_contents('php://input'));
//echo "User Input Is: ".$userInput."<br>";
if (isset($userInput)) {
$inputArr = json_decode($userInput,true);
$userPhone = $inputArr["msisdn"];
//echo "Input Arr:".$inputArr." UserPhone:".$userPhone."User Input:".$userInput."<br>";
$resultArr = array();
$resultArr["msisdn"] = $userPhone;
@mysql_connect($databaseAddr,$databaseUser,$databaseUserPass) or die("Database Connection Error");
@mysql_select_db($databaseName) or die("Database Selection Error");
if (!isset($inputArr["smsCode"])) { //Telefon numaraső ile registration kismi ise buraya gelir
$num = 0;
$result = @mysql_query("SELECT * FROM msisdn WHERE userPhone='$userPhone'") or die("Query Error");
$num = mysql_num_rows($result);
$activationCode = rand(10000, 99999);
$currentDate = date("Y-m-d H:i:s",time());
$resultArr["resultCode"] = 2;
if ($num == 0) {
@mysql_query("INSERT INTO msisdn (userPhone,activationCode,date,isActivated) VALUES ('$userPhone','$activationCode','$currentDate','0')") or die("Insert Query Error");
echo json_encode($resultArr);
} else if ($num > 0) {
$row = mysql_fetch_array($result,MYSQL_BOTH);
$dateNow = new DateTime($currentDate);
$dateStored = new DateTime($row["date"]);
@mysql_query("UPDATE msisdn SET activationCode='$activationCode',date='$currentDate' WHERE userPhone='$userPhone'") or die("Update Error");
echo json_encode($resultArr);
}
else {
echo "Mysql Error";
}
mysql_free_result($result);
} else { //Sms code ile aktivasyon kismi ise buraya gelir
$activationKey = $inputArr["smsCode"];
$result = mysql_query("SELECT * FROM msisdn WHERE userPhone='$userPhone' AND activationCode='$activationKey'");
$num = mysql_numrows($result);
if ($num > 0) {
$row = mysql_fetch_array($result,MYSQL_BOTH);
$resultArr["resultCode"] = 0;
if ($row["isActivated"] == 0) {
$letters = '<KEY>IJKLMN<KEY>';
$serverPassword = str_shuffle($letters);
@mysql_query("UPDATE msisdn SET serverToken='$<PASSWORD>', isActivated=1 WHERE userPhone='$userPhone'") or die("Update Activation Error");
$resultArr["token"] = $<PASSWORD>;
echo json_encode($resultArr);
}
else {
mysql_free_result($result);
$result = @mysql_query("SELECT * FROM msisdn WHERE userPhone='$userPhone'") or die("Query Error");
$row = mysql_fetch_array($result,MYSQL_BOTH);
$resultArr["token"] = $row["serverToken"];
echo json_encode($resultArr);
mysql_free_result($result);
}
}
else {
$resultArr["resultCode"] = 3;
echo json_encode($resultArr);
}
}
mysql_close();
}
?><file_sep>/libPhoneNumberPHP/data/PhoneNumberMetadata_MT.php
<?php
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '[2579]\\d{7}',
'PossibleNumberPattern' => '\\d{8}',
'ExampleNumber' => '',
),
'fixedLine' =>
array (
'NationalNumberPattern' => '
2(?:
0(?:
1[0-6]|
[69]\\d
)|
[1-357]\\d{2}
)\\d{4}
',
'PossibleNumberPattern' => '\\d{8}',
'ExampleNumber' => '21001234',
),
'mobile' =>
array (
'NationalNumberPattern' => '
(?:
7(?:
210|
[79]\\d{2}|
)|
9(?:
2[13]\\d|
696|
8(?:
1[1-3]|
89|
97
)|
9\\d{2}
)
)\\d{4}
',
'PossibleNumberPattern' => '\\d{8}',
'ExampleNumber' => '96961234',
),
'tollFree' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'premiumRate' =>
array (
'NationalNumberPattern' => '
50(?:
0(?:
3[1679]|
4\\d
)|
[169]\\d{2}|
7[06]\\d
)\\d{3}
',
'PossibleNumberPattern' => '\\d{8}',
'ExampleNumber' => '50031234',
),
'sharedCost' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'noInternationalDialling' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'id' => 'MT',
'countryCode' => 356,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
array (
0 =>
array (
'pattern' => '(\\d{4})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
array (
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
),
),
'intlNumberFormat' =>
array (
),
'mainCountryForCode' => NULL,
'leadingZeroPossible' => NULL,
);<file_sep>/libPhoneNumberPHP/data/PhoneNumberMetadata_NG.php
<?php
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '
[1-69]\\d{5,8}|
[78]\\d{5,13}
',
'PossibleNumberPattern' => '\\d{5,14}',
'ExampleNumber' => '',
),
'fixedLine' =>
array (
'NationalNumberPattern' => '
[12]\\d{6,7}|
9\\d{7}|
(?:
4[023568]|
5[02368]|
6[02-469]|
7[569]|
8[2-9]
)\\d{6}|
(?:
4[47]|
5[14579]|
6[1578]|
7[0-357]
)\\d{5,6}|
(?:
78|
41
)\\d{5}
',
'PossibleNumberPattern' => '\\d{5,9}',
'ExampleNumber' => '12345678',
),
'mobile' =>
array (
'NationalNumberPattern' => '
(?:
70(?:
[3-9]\\d|
2[1-9]
)|
8(?:
0[2-9]|
1[0235689]
)\\d
)\\d{6}
',
'PossibleNumberPattern' => '\\d{10}',
'ExampleNumber' => '8021234567',
),
'tollFree' =>
array (
'NationalNumberPattern' => '800\\d{7,11}',
'PossibleNumberPattern' => '\\d{10,14}',
'ExampleNumber' => '80017591759',
),
'premiumRate' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'sharedCost' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'noInternationalDialling' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'id' => 'NG',
'countryCode' => 234,
'internationalPrefix' => '009',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
array (
0 =>
array (
'pattern' => '([129])(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '[129]',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
1 =>
array (
'pattern' => '([3-8]\\d)(\\d{3})(\\d{2,3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '
[3-6]|
7(?:
[1-79]|
0[1-9]
)|
8[2-9]
',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
2 =>
array (
'pattern' => '([78]\\d{2})(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '
70|
8[01]
',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
3 =>
array (
'pattern' => '([78]00)(\\d{4})(\\d{4,5})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '[78]00',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
4 =>
array (
'pattern' => '([78]00)(\\d{5})(\\d{5,6})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '[78]00',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
5 =>
array (
'pattern' => '(78)(\\d{2})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '78',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
),
'intlNumberFormat' =>
array (
),
'mainCountryForCode' => NULL,
'leadingZeroPossible' => NULL,
);<file_sep>/libPhoneNumberPHP/data/PhoneNumberMetadata_IT.php
<?php
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '
[0189]\\d{5,10}|
3(?:
[12457-9]\\d{8}|
[36]\\d{7,9}
)
',
'PossibleNumberPattern' => '\\d{6,11}',
'ExampleNumber' => '',
),
'fixedLine' =>
array (
'NationalNumberPattern' => '
0(?:
[26]\\d{4,9}|
[13-57-9](?:
[0159]\\d{4,8}|
[2-46-8]\\d{5,8}
)
)
',
'PossibleNumberPattern' => '\\d{6,11}',
'ExampleNumber' => '0212345678',
),
'mobile' =>
array (
'NationalNumberPattern' => '
3(?:
[12457-9]\\d{8}|
6\\d{7,8}|
3\\d{7,9}
)
',
'PossibleNumberPattern' => '\\d{9,11}',
'ExampleNumber' => '3123456789',
),
'tollFree' =>
array (
'NationalNumberPattern' => '
80(?:
0\\d{6}|
3\\d{3}
)
',
'PossibleNumberPattern' => '\\d{6,9}',
'ExampleNumber' => '800123456',
),
'premiumRate' =>
array (
'NationalNumberPattern' => '
0878\\d{5}|
1(?:
44|
6[346]
)\\d{6}|
89(?:
2\\d{3}|
9\\d{6}
)
',
'PossibleNumberPattern' => '\\d{6,9}',
'ExampleNumber' => '899123456',
),
'sharedCost' =>
array (
'NationalNumberPattern' => '84[78]\\d{6,7}',
'PossibleNumberPattern' => '\\d{9,10}',
'ExampleNumber' => '8481234567',
),
'noInternationalDialling' =>
array (
'NationalNumberPattern' => '848\\d{6,7}',
'PossibleNumberPattern' => '\\d{9,10}',
'ExampleNumber' => '8481234567',
),
'id' => 'IT',
'countryCode' => 39,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
array (
0 =>
array (
'pattern' => '(0[26])(\\d{3,4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '0[26]',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
),
1 =>
array (
'pattern' => '(0[26])(\\d{4})(\\d{5})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '0[26]',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
),
2 =>
array (
'pattern' => '(0[26])(\\d{4,6})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
array (
0 => '0[26]',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
),
3 =>
array (
'pattern' => '(0\\d{2})(\\d{3,4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '0[13-57-9][0159]',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
),
4 =>
array (
'pattern' => '(0\\d{2})(\\d{4,6})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
array (
0 => '0[13-57-9][0159]',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
),
5 =>
array (
'pattern' => '(0\\d{3})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '0[13-57-9][2-46-8]',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
),
6 =>
array (
'pattern' => '(0\\d{3})(\\d{4,6})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
array (
0 => '0[13-57-9][2-46-8]',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
),
7 =>
array (
'pattern' => '(\\d{3})(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '
[13]|
8(?:
00|
4[78]|
99
)
',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
),
8 =>
array (
'pattern' => '(\\d{3})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '3',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
),
9 =>
array (
'pattern' => '(\\d{3})(\\d{3,6})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
array (
0 => '
8(?:
03|
92
)
',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
),
),
'intlNumberFormat' =>
array (
),
'mainCountryForCode' => NULL,
'leadingZeroPossible' => true,
);<file_sep>/register.php
<?php
require_once 'config.php';
$userInput = urldecode(file_get_contents('php://input'));
if (isset($userInput)) {
$inputArr = json_decode($userInput,true);
$userPhone = $inputArr["msisdn"];
$token = $inputArr["token"];
$phoneType = $inputArr["phoneType"];
$clientVersion = $inputArr["clientVersion"];
$clientOs = $inputArr["clientOS"];
if (isset($inputArr["apntoken"])) {
$apnToken = $inputArr["apnToken"];
}
//echo "Input Arr:".$inputArr." UserPhone:".$userPhone."User Input:".$userInput."<br>";
$resultArr = array();
$resultArr["msisdn"] = $userPhone;
@mysql_connect($databaseAddr,$databaseUser,$databaseUserPass) or die("Database Connection Error");
@mysql_select_db($databaseName) or die("Database Selection Error");
$result = mysql_query("SELECT * FROM msisdn WHERE serverToken='$token' AND userPhone='$userPhone'") or die("Query Error");
$num = mysql_num_rows($result);
mysql_free_result($result);
if ($num > 0) {
$num = 0;
$userName = $userPhone."@".$xmppDomain;
$result = @mysql_query("SELECT * FROM users WHERE username='$userName'") or die("Query Error");
$num = mysql_num_rows($result);
//echo "$userName icin Bu Kadar Kayit Bulundu: $num <br>";
$currentDate = date("Y-m-d H:i:s",time());
$resultArr["result"] = 7; //Default database hatasi set edilir bir sorun cikmassa successe (0) cevrilir;
if ($num == 0) {
//Ejabberd register request
$request = "register ".$userPhone." ".$xmppDomain." ".$token;
$opts = array('http' =>array('method' => "POST",'header' => "Host: $xmppRestHost\nContent-Type: text/html; charset=utf-8",'content' => $request));
$context = stream_context_create($opts);
$fp = fopen($xmppUrl, 'r', false, $context);
if ($fp) {
$response_str = stream_get_contents($fp);
fclose($fp);
//XMPP Serverdan ok donmezse kullaniciyi database de aktive etmez
if (stripos($response_str,"successfully registered") === false) {
//echo "XMPP Server Connection Error";
$resultArr["result"] = 7;
} else {
@mysql_query("INSERT INTO users (username,password,phoneType,clientVersion,clientOs,apnToken,dateCreated) VALUES ('$userName','$token','$phoneType','$clientVersion','$clientOs','$apnToken','$currentDate')") or die(json_encode($resultArr));
$resultArr["id"] = mysql_insert_id();
$resultArr["result"] = 0;
$resultArr["username"] = $userName;
$resultArr["password"] = $<PASSWORD>;
@mysql_query("UPDATE contacts SET isBip=1 WHERE contactPhone='$userPhone'") or die(json_encode($resultArr));
}
}
} else {
@mysql_query("UPDATE users SET phoneType='$phoneType',clientVersion='$clientVersion',clientOs='$clientOs',apnToken='$apnToken',dateCreated='$currentDate' WHERE username='$userName'") or die(json_encode($resultArr));
$row = mysql_fetch_array($result);
$resultArr["id"] = $row["id"];
$resultArr["username"] = $row["username"];
$resultArr["password"] = $row["<PASSWORD>"];
$resultArr["result"] = 0;
}
echo json_encode($resultArr);
} else {
$resultArr["result"] = 5;
echo json_encode($resultArr);
}
mysql_close();
}
?><file_sep>/libPhoneNumberPHP/data/PhoneNumberMetadata_IL.php
<?php
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '
[17]\\d{6,9}|
[2-589]\\d{3}(?:\\d{3,6})?|
6\\d{3}
',
'PossibleNumberPattern' => '\\d{4,10}',
'ExampleNumber' => '',
),
'fixedLine' =>
array (
'NationalNumberPattern' => '
(?:
[2-489]|
7[2-46-8]
)\\d{7}
',
'PossibleNumberPattern' => '\\d{7,9}',
'ExampleNumber' => '21234567',
),
'mobile' =>
array (
'NationalNumberPattern' => '
5(?:
[02346-9]\\d{2}|
5(?:
22|
33|
44|
5[58]|
66|
77|
88
)
)\\d{5}
',
'PossibleNumberPattern' => '\\d{9}',
'ExampleNumber' => '501234567',
),
'tollFree' =>
array (
'NationalNumberPattern' => '
1(?:
80[019]\\d{3}|
255
)\\d{3}
',
'PossibleNumberPattern' => '\\d{7,10}',
'ExampleNumber' => '1800123456',
),
'premiumRate' =>
array (
'NationalNumberPattern' => '
1(?:
212|
(?:
919|
200
)\\d{2}
)\\d{4}
',
'PossibleNumberPattern' => '\\d{8,10}',
'ExampleNumber' => '1919123456',
),
'sharedCost' =>
array (
'NationalNumberPattern' => '1700\\d{6}',
'PossibleNumberPattern' => '\\d{10}',
'ExampleNumber' => '1700123456',
),
'noInternationalDialling' =>
array (
'NationalNumberPattern' => '
1700\\d{6}|
[2-689]\\d{3}
',
'PossibleNumberPattern' => '\\d{4,10}',
'ExampleNumber' => '1700123456',
),
'id' => 'IL',
'countryCode' => 972,
'internationalPrefix' => '0(?:0|1[2-48])',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
array (
0 =>
array (
'pattern' => '([2-489])(\\d{3})(\\d{4})',
'format' => '$1-$2-$3',
'leadingDigitsPatterns' =>
array (
0 => '[2-489]',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
1 =>
array (
'pattern' => '([57]\\d)(\\d{3})(\\d{4})',
'format' => '$1-$2-$3',
'leadingDigitsPatterns' =>
array (
0 => '[57]',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
2 =>
array (
'pattern' => '(1)([7-9]\\d{2})(\\d{3})(\\d{3})',
'format' => '$1-$2-$3-$4',
'leadingDigitsPatterns' =>
array (
0 => '1[7-9]',
),
'nationalPrefixFormattingRule' => '$1',
'domesticCarrierCodeFormattingRule' => '',
),
3 =>
array (
'pattern' => '(1255)(\\d{3})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
array (
0 => '125',
),
'nationalPrefixFormattingRule' => '$1',
'domesticCarrierCodeFormattingRule' => '',
),
4 =>
array (
'pattern' => '(1200)(\\d{3})(\\d{3})',
'format' => '$1-$2-$3',
'leadingDigitsPatterns' =>
array (
0 => '120',
),
'nationalPrefixFormattingRule' => '$1',
'domesticCarrierCodeFormattingRule' => '',
),
5 =>
array (
'pattern' => '(1212)(\\d{2})(\\d{2})',
'format' => '$1-$2-$3',
'leadingDigitsPatterns' =>
array (
0 => '121',
),
'nationalPrefixFormattingRule' => '$1',
'domesticCarrierCodeFormattingRule' => '',
),
6 =>
array (
'pattern' => '(1599)(\\d{6})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
array (
0 => '15',
),
'nationalPrefixFormattingRule' => '$1',
'domesticCarrierCodeFormattingRule' => '',
),
7 =>
array (
'pattern' => '(\\d{4})',
'format' => '*$1',
'leadingDigitsPatterns' =>
array (
0 => '[2-689]',
),
'nationalPrefixFormattingRule' => '$1',
'domesticCarrierCodeFormattingRule' => '',
),
),
'intlNumberFormat' =>
array (
),
'mainCountryForCode' => NULL,
'leadingZeroPossible' => NULL,
);<file_sep>/people.php
<?php
use com\google\i18n\phonenumbers\PhoneNumberUtil;
use com\google\i18n\phonenumbers\PhoneNumberFormat;
use com\google\i18n\phonenumbers\NumberParseException;
require_once 'libPhoneNumberPHP/PhoneNumberUtil.php';
require_once 'config.php';
$userInput = urldecode(file_get_contents('php://input'));
//$userInput = $_POST["userInput"];
$phoneUtil = PhoneNumberUtil::getInstance();
if (isset($userInput)) {
$jsonInput = json_decode($userInput,true);
//echo "JSON INPUT ID:".$jsonInput["id"]." PhoneType:".$jsonInput["phoneType"];
if (isset($jsonInput["id"])) {
@mysql_connect($databaseAddr,$databaseUser,$databaseUserPass) or die("Database Connection Error");
@mysql_select_db($databaseName) or die("Database Selection Error");
$userID = $jsonInput["id"];
$phoneType;
$clientOs;
$apnToken;
$nickName;
$contacts;
$resultArr = array();
$resultArr["id"] = $userID;
$updateStr="id='$userID'";
if (isset($jsonInput["phoneType"])) {
$phoneType = $jsonInput["phoneType"];
$updateStr = $updateStr.",phoneType='$phoneType'";
}
if (isset($jsonInput["clientVersion"])) {
$clientVersion = $jsonInput["clientVersion"];
$updateStr = $updateStr.",clientVersion='$clientVersion'";
}
if (isset($jsonInput["clientOs"])) {
$clientOs = $jsonInput["clientOs"];
$updateStr = $updateStr.",clientOs='$clientOs'";
}
if (isset($jsonInput["apnToken"])) {
$apnToken = $jsonInput["apnToken"];
$updateStr = $updateStr.",apnToken='$apnToken'";
}
if (isset($jsonInput["nickname"])) {
$nickName = $jsonInput["nickname"];
$updateStr =$updateStr.",nickname='$nickName'";
}
if (isset($jsonInput["contacts"])) {
$contacts = $jsonInput["contacts"];
$resultArr["contacts"] = array();
$resultArr["result"] = 9;
$contactsIndex = 0;
$result = @mysql_query("SELECT username FROM users WHERE id='$userID'") or die(json_encode($resultArr));
$row = mysql_fetch_row($result);
$userPhone = strstr($row[0], "@",true);
//echo "<br> UserPhone: '$userPhone' <br>";
mysql_free_result($result);
foreach ($contacts as $msisdnArr) {
$value = $msisdnArr["msisdn"];
$abID = $msisdnArr["abID"];
//echo "<br> ABID:".$abID." Phone:".$value."<br>";
if (strlen($value) > 10) {
$countryCode = 'TR'; //Test amacli oldugu icin sadece turkiye eklenmistir
$isValid=false;
$number;
try {
$number = $phoneUtil->parseAndKeepRawInput($value, $countryCode);
$isValid = $phoneUtil->isValidNumber($number);
} catch(Exception $e) {
$isValid=false;
}
if ($isValid) { //Sadece valid phone numberlar database e eklenir
$value = substr($phoneUtil->format($number, PhoneNumberFormat::E164), 1);
//echo "<br>Formatted phone: ".$value." <br>";
$isBip = 0;
$contactUserName = $value."@".$xmppDomain;
$result = @mysql_query("SELECT * FROM users WHERE username ='$contactUserName'") or die(json_encode($resultArr));
$num_bip = mysql_num_rows($result);
if ($num_bip > 0) {
$isBip = 1;
//Bip userin profil resim url ini almak icindir
$row = mysql_fetch_array($result);
$profileURL = $row["profileImage"];
$bipArr = array();
$bipArr["msisdn"] = $value;
$bipArr["abID"] = $abID;
if ($row["profileImage"]) {
$bipArr["profileUrl"] = $profileURL;
}
$resultArr["contacts"][$contactsIndex] = $bipArr;
$contactsIndex++;
}
//echo "<br>".$value." ISBIP:".$isBip."<br>";
mysql_free_result($result);
$result = @mysql_query("SELECT contactPhone FROM contacts WHERE contactPhone='$value' AND id='$userID'") or die(json_encode($resultArr));
$num = mysql_num_rows($result);
mysql_free_result($result);
if ($num == 0) {
if ($isBip) {
//Ejabberda rosteritemlari ekler
$request = "add_rosteritem ".$userPhone." ".$xmppDomain." ".$value." ".$xmppDomain." Osman Friends both";
$opts = array('http' =>array('method' => "POST",'header' => "Host: localhost\nContent-Type: text/html; charset=utf-8",'content' => $request));
$context = stream_context_create($opts);
$fp = fopen($xmppUrl, 'r', false, $context);
if ($fp) {
$response_str = stream_get_contents($fp);
fclose($fp);
if ($response_str == "0") {
@mysql_query("INSERT INTO contacts (id,contactPhone,abID,isBip) VALUES('$userID','$value','$abID','$isBip')") or die(json_encode($resultArr));
}
}
} else {
@mysql_query("INSERT INTO contacts (id,contactPhone,abID,isBip) VALUES('$userID','$value','$abID','$isBip')") or die(json_encode($resultArr));
}
} else {
@mysql_query(@"UPDATE contacts SET isBip='$isBip',abID='$abID' WHERE id='$userID' AND contactPhone='$value'") or die(json_encode($resultArr));
}
}
}
}
}
//echo "UPDATE users SET ".$updateStr." WHERE id='$userID' <br>";
@mysql_query(@"UPDATE users SET ".$updateStr." WHERE id='$userID'") or die(json_encode($resultArr));
mysql_close();
$resultArr["result"] = 0;
echo json_encode($resultArr,JSON_UNESCAPED_SLASHES);
} else {
$resultArr["result"] = 8;
echo json_encode($resultArr);
}
} else {
$resultArr["result"] = 10;
echo json_encode($resultArr);
}
?><file_sep>/config.php
<?php
$databaseAddr = "localhost";
$databaseName = "turkcellbipserver";
$databaseUser = "turkcellbip";
$databaseUserPass = "<PASSWORD>*";
$uploadsDir = "/opt/lampp/htdocs/turkcellbipserver/uploads";
$uploadsUrl = "http://tolgatanriverdi.dyndns.org:8080/turkcellbipserver/uploads/";
$xmppUrl = "http://127.0.0.1:5285/rest";
$xmppDomain = "tolgatanriverdi.dyndns.org";
$xmppRestHost = "localhost";
?> | 17256cd1373c75ec05104756b2c6fea8e20a1eed | [
"PHP"
] | 10 | PHP | abazad/turkcellbipserver | 182a62b13ed13cbf2e5212ca40234b898e14632f | 89642c28a472176a45ab9d17393db20d6e738859 |
refs/heads/master | <file_sep>import Vue from 'vue';
import Vuex from 'vuex';
import axios from 'axios';
Vue.use(Vuex);
export const store = new Vuex.Store({
state: {
pages: [],
page: {}
},
getters: {
getPages: state => {
return state.pages
},
getSinglePage: state => {
return state.page
}
},
mutations: {
fetchPages: state => {
axios.defaults.baseURL = 'http://0.0.0.0:5000/api/'
axios.get('/pages')
.then(res => {
const data = res.data.data
for (let key in data) {
const page = data[key]
state.pages.push(page)
}
console.log(state.pages)
})
},
fetchSinglePage: (state, id) => {
axios.defaults.baseURL = 'http://0.0.0.0:5000/api/'
axios.get(`/pages/${id}`)
.then(res => {
state.page = res.data.data
console.log(state.page)
})
}
},
actions: {
fetchPages: ({commit}) => {
commit('fetchPages')
},
fetchSinglePage: ({commit},id) => {
commit('fetchSinglePage',id)
}
}
})<file_sep>// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import {store} from './store/store.js'
import 'vue-awesome/icons'
import Icon from 'vue-awesome/components/Icon'
import * as filters from './utilities/filters'
Vue.component('icon', Icon)
Vue.config.productionTip = false
Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key])
})
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
store,
components: { App },
template: '<App/>'
})
<file_sep>import moment from 'moment'
export function formatDateFromNow (date) {
return moment(date).fromNow()
} | d7433d704eeebed026e5ea5189e243be1b4ff66e | [
"JavaScript"
] | 3 | JavaScript | mnouayti/app-vue | d13ff50ac1cc54c11c93b106bce51b019b7bd93e | 6a64f13e2931bb2cf7208153a67964001820b547 |
refs/heads/master | <file_sep><?php
session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Liste Tests</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/showtest.css" rel="stylesheet" type="text/css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="<KEY>" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
</head>
<body>
<?php
include("header.php");
include("database.php");
extract($_GET);
$id=$_SESSION['login'];
$rs1=mysqli_query($con,"select * from mst_subject where sub_id=$subid");
$row1=mysqli_fetch_array($rs1);
echo " <div class='main'>";
echo " <h1 bott >Choisir Examen</h1>";
echo " <div class='down'>";
echo " <div class='tab'>";
echo "<table class='table table-borderless table-hover'>";
echo "<thead >
<tr>
<th width='100%' class='text-light'>Liste Tests</th>
</tr>
</thead>";
$rs=mysqli_query($con,"select * from mst_test where sub_id=$subid and lvl in (select niv from mst_user where loginMat=$id and mst_test.lvl=mst_user.niv)");
if(mysqli_num_rows($rs)<1)
{
echo "<td><h2>Il N'y a Pas D'Examen Dans Ce Module Pour l'instant </h2></td>";
exit;
}
while($row=mysqli_fetch_row($rs))
{
echo "<tr>
<td><a href=passer.php?testid=$row[0]&subid=$subid>$row[2]</a></td>
</tr>
";
}
echo "</table>";
echo "</table>";
echo"</div>";
echo"</div>";
echo"</div>";
?>
</body>
</html>
<file_sep>
<link href="css/startpage.css" rel="stylesheet" type="text/css">
<?php
session_start();
include ("header.php");
echo "<div class='container'>";
echo "<h1 >Platforme Examen En Ligne</h1>";
echo '<table>
<tr>
<td ><img src="image/test1.png" height="50" width="50" ></td>
<td > <a href="index.php" ><button type="button">Vous êtes étudiant</button> </a></td>
<td ><img src="image/result.png" height="50" width="50"></td>
<td> <a href="./Ens/index.php" ><button type="button">Vous êtes enseignant</button></a></td>
</tr>
</table>
</div>
';
exit;
?><file_sep><?php
session_start();
if (!isset($_SESSION['alogin']))
{
include ("logproblem.php");
}
?>
<html>
<head>
<title>Modifier Questions</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="./css/subAdd.css" rel="stylesheet" type="text/css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="<KEY>" crossorigin="anonymous">
</head>
<body>
<?php
include("header.php");
include("../database.php");
extract($_REQUEST);
$id=$_GET['que_id'];
$q=mysqli_query($con,"select * from mst_question where que_id='$id'");
$res=mysqli_fetch_assoc($q);
if(isset($update))
{
$query="update mst_question SET que_desc='$addque',ans1='$ans1',ans2='$ans2',ans3='$ans3',ans4='$ans4',true_ans='$anstrue' where que_id='$id'";
mysqli_query($con,$query);
echo"<div class='main'>";
echo "<br><br><br><div class=head1>Question Modifiée <br> <br> <a href='questionview.php'>Cliquez ici pour modifier une autre question</a></div>";
exit;
echo"</div>";
}
?>
<div class="main">
<div class="ajouter" >
<h1>Mettre à Jour Question</h1>
<form name="form1" method="post" onSubmit="return check();">
<table class="table table-borderless">
<tr>
<td width="45%" height="32"><div style="display: flex;justify-content: center;color: cornsilk;"><strong>Entrez L'Intitulé De La Question </strong></div></td>
<td width="35%" height="5"> <input style="display: flex;justify-content: center;border-radius;25px;" class="form-control" value="<?php echo $res['que_desc']; ?>" name="addque" cols="60" rows="2" id="addque" Type="text">
<td width="20%" height="32">
<tr>
<td height="26"><div align="left"><strong>Enter Answer1 </strong></div></td>
<td><input style="border-radius;25px;"class="form-control" value="<?php echo $res['ans1']; ?>" name="ans1" type="text" id="ans1" size="85" maxlength="85" type="text" ></td>
<td> </td>
</tr>
<tr>
<td height="26"><div align="left"><strong>Enter Answer2 </strong></div></td>
<td><input style="border-radius;25px;" class="form-control" value="<?php echo $res['ans2']; ?>" name="ans2" type="text" id="ans2" size="85" maxlength="85" type="text" ></td>
<td> </td>
</tr>
<tr>
<td height="26"><div align="left"><strong>Enter Answer3 </strong></div></td>
<td><input style="border-radius;25px;" class="form-control" value="<?php echo $res['ans3']; ?>" name="ans3" type="text" id="ans3" size="85" maxlength="85" type="text" ></td>
<td> </td>
</tr>
<tr>
<td height="26"><div align="left"><strong>Enter Answer4 </strong></div></td>
<td><input style="border-radius;25px;" class="form-control" value="<?php echo $res['ans4']; ?>" name="ans4" type="text" id="ans4" size="85" maxlength="85" type="text" ></td>
<td> </td>
</tr>
<tr>
<td height="26"><div align="left"><strong>Enter True Answer </strong></div></td>
<td><input style="border-radius;25px;" class="form-control" value="<?php echo $res['true_ans']; ?>" name="anstrue" type="text" id="anstrue" size="50" maxlength="50" type="text" ></td>
<td> </td>
</tr>
<tr>
<td height="26"></td>
<td></td>
<td style="display: flex;justify-content: center;"><input style="color: white;" class="btn btn-outline-dark"id="button" type="submit" name="update" value="Mettre à Jour" ></td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>
<file_sep><?php
session_start();
if (!isset($_SESSION['alogin']))
{
include ("logproblem.php");
}
require("../database.php");
include("header.php");
error_reporting(1);
?>
<link href="css/testadd.css" rel="stylesheet" type="text/css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="<KEY>" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
<?php
extract($_POST);
echo "<BR>";
if($_POST[submit]=='Save' || strlen($_POST['testid'])>0 )
{
extract($_POST);
mysqli_query($con,"insert into mst_question(test_id,que_desc,ans1,ans2,ans3,ans4,true_ans) values ('$testid','$addque','$ans1','$ans2','$ans3','$ans4','$anstrue')") or die(mysqli_error());
echo"<div class='main'>";
echo "<br><br><br><div class=head1>Question Ajouté <br> <br> <a href='questionadd.php'>Cliquez ici pour ajouter une autre question</a></div>";
exit;
echo"</div>";
unset($_POST);
}
?>
<SCRIPT LANGUAGE="JavaScript">
function check() {
mt=document.form1.addque.value;
if (mt.length<1) {
alert("Please Enter Question");
document.form1.addque.focus();
return false;
}
a1=document.form1.ans1.value;
if(a1.length<1) {
alert("Please Enter Answer1");
document.form1.ans1.focus();
return false;
}
a2=document.form1.ans2.value;
if(a1.length<1) {
alert("Please Enter Answer2");
document.form1.ans2.focus();
return false;
}
a3=document.form1.ans3.value;
if(a3.length<1) {
alert("Please Enter Answer3");
document.form1.ans3.focus();
return false;
}
a4=document.form1.ans4.value;
if(a4.length<1) {
alert("Please Enter Answer4");
document.form1.ans4.focus();
return false;
}
at=document.form1.anstrue.value;
if(at.length<1) {
alert("Please Enter True Answer");
document.form1.anstrue.focus();
return false;
}
return true;
}
</script>
<div class="main" >
<h2 class='text-center bg-primary'>ADD Question</h2>
<div class="forq" style="margin:100px">
<form name="form1" method="post" onSubmit="return check();">
<div class="tab">
<table class="table table-borderless">
<tr>
<td width="29%" height="32"><div align="left"><strong>Selectionnez L'Examen </strong></div></td>
<td width="1%" height="5">
<td width="70%" height="32"><select style="border-radius: 25px;" class="form-select form-control" name="testid" id="testid">
<?php
$rs=mysqli_query($con,"Select * from mst_test order by test_name",$cn);
while($row=mysqli_fetch_array($rs))
{
if($row[0]==$testid)
{
echo "<option value='$row[0]' selected>$row[2]</option>";
}
else
{
echo "<option value='$row[0]'>$row[2]</option>";
}
}
?>
</select>
<tr>
<td height="26"><div align="left"><strong> Entrez Votre Question </strong></div></td>
<td> </td>
<td><textarea style="border-radius: 25px;" class="form-control" name="addque" cols="60" rows="1.5" id="addque"></textarea></td>
</tr>
<tr>
<td height="26"><div align="left"><strong>Entrez Le Choix N°1 </strong></div></td>
<td> </td>
<td><input style="border-radius: 25px;" class="form-control" name="ans1" type="text" id="ans1" size="70" maxlength="70"></td>
</tr>
<tr>
<td height="26"><strong>Entrez Le Choix N°2 </strong></td>
<td> </td>
<td><input style="border-radius: 25px;" class="form-control" name="ans2" type="text" id="ans2" size="70" maxlength="70"></td>
</tr>
<tr>
<td height="26"><strong>Entrez Le Choix N°3 </strong></td>
<td> </td>
<td><input style="border-radius: 25px;" class="form-control" name="ans3" type="text" id="ans3" size="70" maxlength="70"></td>
</tr>
<tr>
<td height="26"><strong>Entrez Le Choix N°4</strong></td>
<td> </td>
<td><input style="border-radius: 25px;" class="form-control" name="ans4" type="text" id="ans4" size="70" maxlength="70"></td>
</tr>
<tr>
<td height="26"><strong>Entrez L'Indice De La Bonne Réponse</strong></td>
<td> </td>
<td><input style="border-radius: 25px;" class="form-control" name="anstrue" type="text" id="anstrue" size="50" maxlength="50" placeholder="Exp: 1 / 2 / 3 ou 4"></td>
</tr>
<tr>
<td height="26"></td>
<td> </td>
<td><div align="center"><input style="border-radius: 25px;" class="btn btn-outline-dark" type="submit" name="submit" value="Ajouter" ></div></td>
</tr>
</table>
</div>
</form>
</div>
<p> </p>
</div>
<file_sep>
<link href="./css/affichage.css" rel="stylesheet" type="text/css">
<?php
session_start();
include ("header.php");
echo "<div class='container'>";
echo "<h1 >Platforme Examen En Ligne</h1>";
echo '<table>
<tr>
<td ><img src="image/test1.png" height="50" width="50" ></td>
<td > <a href="sublist.php" ><button type="button">List Tests</button> </a></td>
<td ><img src="image/calendar.png" height="50" width="50" ></td>
<td > <a href="planing.php" ><button type="button">Planning</button> </a></td>
</tr>
</table>
</div>
';
exit;
?><file_sep><?php
session_start();
if (!isset($_SESSION['alogin']))
{
include ("logproblem.php");
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Liste Test</title>
<link href="../passer.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="./css/viewsub.css" rel="stylesheet" type="text/css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="<KEY>" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
</head>
<body>
<?php
include("header.php");
include("../database.php");
{
$sql=mysqli_query($con,"select * from mst_test");
echo " <div class='main'>";
echo " <h1 >Ajouter Un Test</h1>";
echo " <div class='down'>";
echo " <div class='tab'>";
echo "<table class='table table-borderless table-hover'>";
echo "<thead >
<tr>
<th width='25%' class='text-light'>ID</th>
<th width='25%' class='text-light'>name</th>
<th width='25%' class='text-light'>Total question</th>
<th width='25%' class='text-light'>Update/Delete</th>
</tr>
</thead>";
while($result=mysqli_fetch_assoc($sql))
{
$id=$result['test_id'];
echo "<tr>";
echo "<td class='text-light'>".$result['test_id']. "</td>";
echo "<td class='text-light'>".$result['test_name']."</td>";
echo "<td class='text-light'>".$result['total_que']."</td>";
echo "<td style='display: flex;justify-content: space-evenly;'><a href='testupdate.php?test_id=$id' role='button' class='cik btn btn-outline-warning' ><i class='bi bi-pen'></i></a>
<a href='testdelete.php?test_id=$id' role='button' class='cik fu btn btn-outline-danger' ><i class='bi bi-trash'></i></a></td>
<td>";
echo "</tr>";
}
echo "</table>";
echo"</div>";
echo"<div class='ajouter'>
<a role='button' class='add cik btn btn-outline-danger' href=\"testadd.php\">Ajouter L'Examen</a>
</div>";
echo"</div>";
echo"</div>";
}
?>
</body>
</html>
<file_sep><?php
session_start();
error_reporting(1);
if (!isset($_SESSION['alogin']))
{
include ("logproblem.php");
}
?>
<link href="../passer.css" rel="stylesheet" type="text/css">
<link href="./css/testadd.css" rel="stylesheet" type="text/css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="<KEY>" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
<?php
require("../database.php");
include("header.php");
$id=$_SESSION['login'];
echo "<h2 class='text-center bg-primary'>ADD TEST</h2>";
if($_POST[submit]=='Save' || strlen($_POST['subid'])>0 )
{
extract($_POST);
mysqli_query($con,"insert into mst_test(sub_id,test_name,total_que,loginid,lvl) values ('$subid','$testname','$totque','$id','$lvel')") or die(mysqli_error());
echo"<div class='main'>";
echo "<br><br><br><div class=head1>Examen <b> \"$testname \"</b> Ajouté <br> <br> <a href='testadd.php'>Cliquez ici pour ajouter un autre Examen</a></div>";
exit;
echo"</div>";
unset($_POST);
}
?>
<SCRIPT LANGUAGE="JavaScript">
function check() {
mt=document.form1.testname.value;
if (mt.length<1) {
alert("Please Enter Test Name");
document.form1.testname.focus();
return false;
}
tt=document.form1.totque.value;
if(tt.length<1) {
alert("Please Enter Total Question");
document.form1.totque.value;
return false;
}
return true;
}
</script>
<div class="main">
<div class="for">
<form name="form1" method="post" onSubmit="return check();">
<table class="table table-borderless ">
<tr>
<td width="49%" height="32"><div ><strong>Entrez L'ID Du Module</strong></div></td>
<td width="3%" height="5">
<td width="48%" height="32"><select style="border-radius: 25px;" class="form-select form-control" name="subid">
<?php
$rs=mysqli_query($con,"Select * from mst_subject order by sub_name");
while($row=mysqli_fetch_array($rs))
{
if($row[0]==$subid)
{
echo "<option value='$row[0]' selected>$row[1]</option>";
}
else
{
echo "<option value='$row[0]'>$row[1]</option>";
}
}
?>
</select>
<tr>
<td height="26"><div ><strong> Entrez Le Nom De L'Examen </strong></div></td>
<td> </td>
<td><input style="border-radius: 25px;" class="form-control" name="testname" type="text" id="testname"></td>
</tr>
<tr>
<td height="26"><div ><strong>Entrez Le Nombre Total De Question </strong></div></td>
<td> </td>
<td><input style="border-radius: 25px;"class="form-control" name="totque" type="text" id="totque"></td>
</tr>
<tr>
<td height="26"><div ><strong>Entrez Le Niveau De Cet Examen </strong></div></td>
<td> </td>
<td> <select style="border-radius: 25px" class="form-select form-control" id="lvel" name="lvel">
<option value="L1">L1</option>
<option value="L2">L2</option>
<option value="L3">L3</option>
<option value="M1">M1</option>
<option value="M2">M2</option>
</select>
</td>
</tr>
<tr>
<td height="26"></td>
<td><input style="border-radius: 25px;display: flex;align-self: center;" class="btn btn-outline-dark" type="submit" name="submit" value=" Ajouter " ></td>
<td> </td>
</tr>
</table>
</form>
</div>
<p> </p>
</div>
<file_sep><?php
session_start();
if (!isset($_SESSION['alogin']))
{
include ("logproblem.php");
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Modifier test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="./css/subAdd.css" rel="stylesheet" type="text/css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="<KEY>" crossorigin="anonymous">
</head>
<body>
<?php
include("header.php");
include("../database.php");
extract($_REQUEST);
$id=$_GET['test_id'];
$q=mysqli_query($con,"select * from mst_test where test_id='$id'");
$res=mysqli_fetch_assoc($q);
if(isset($update))
{
$query="update mst_test SET test_name='$testname',total_que='$totque' where test_id='$id'";
mysqli_query($con,$query);
echo"<div class='main'>";
echo "<br><br><br><div class=head1>Test Modifié <br> <br> <a href='questionview.php'>Cliquez ici pour modifier un autre test</a></div>";
exit;
echo"</div>";
}
?>
<div class="main">
<div class="ajouter" >
<h1>Mettre à Jour Test</h1>
<form name="form1" method="post" onSubmit="return check();">
<table class="table table-borderless">
<tr>
<td width="45%" height="32"><div ><strong>Entrez L'Intitulé De L'Examen </strong></div></td>
<td width="35%" height="5"> <input style="display: flex;justify-content: center;" class="form-control" value="<?php echo $res['test_name']; ?>" name="testname" type="text" id="testname">
<td width="20%" height="32">
<tr>
<td height="26"><div align="left"><strong>Entrez Le Nombre Total De Question </strong></div></td>
<td><input class="form-control" value="<?php echo $res['total_que']; ?>" name="totque" type="text" id="totque"></td>
<td> </td>
</tr>
<tr>
<td height="26"><strong>Entrez Le Niveau De Cet Examen</strong></td>
<td><input style="display: flex;justify-content: center;" value="<?php echo $res['lvl']; ?>" class="form-control" name="lvel" placeholder="Niveau" type="text" id="lvel"</td>
<td ></td>
</tr>
<tr>
<td height="26"></td>
<td></td>
<td style="display: flex;justify-content: center;"><input style="color: white;" class="btn btn-outline-dark"id="button" type="submit" name="update" value="Mettre à Jour" ></td>
</tr> <tr>
<td height="26"></td>
<td></td>
<td ></td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html><file_sep><?php
session_start();
?>
<head>
<meta charset="UTF-8">
<title>Créer Un Compte</title>
<link rel="stylesheet" href="./css/create.css">
</head>
<?php
include('header.php');?>
<div class="container">
<form action="traiteinscription.php" method="POST" class="create_form" onsubmit="return validate()">
<div class="radio-container">
<input type="radio" id="test1" name="radio-group" value="etud" checked>
<label for="test1">Etudiant</label>
<input type="radio" id="test2" name="radio-group" value="ens">
<label for="test2">Enseignant</label>
</div>
<input type="text" name="nom" placeholder="Nom">
<input type="text" name="prenom" placeholder="Prénom">
<input autocomplete="off" type="text" name="email" placeholder="Email">
<input type="text" name="spec" placeholder="Spécialité/Filière" value="Informatique">
<select class="form-select form-control" id="niveau" name="niv" placeholder="niveau">
<option value="L1">L1</option>
<option value="L2">L2</option>
<option value="L3">L3</option>
<option value="M1">M1</option>
<option value="M2">M2</option>
</select>
<input type="text" name="loginid" placeholder="Matricule Universitaire">
<input type="password" name="pass" placeholder="<PASSWORD>">
<input type="password" name="password-confirm" placeholder="<PASSWORD>">
<button type="submit">Créer</button>
</form>
</div>
</div>
<SCRIPT LANGUAGE="JavaScript">
let stu=document.getElementById('test1');
let teach=document.getElementById('test2');
let lvl=document.getElementById('niveau');
teach.addEventListener('click',()=>{
lvl.style.display='none';});
stu.addEventListener('click',()=>{
lvl.style.display='block';});
</SCRIPT>
<file_sep><link href="css/affichage.css" rel="stylesheet" type="text/css">
<?php
session_start();
if (!isset($_SESSION['alogin']))
{
include ("logproblem.php");
}
include ("header.php");
echo "<div class='container'>";
echo "<h1 style='transform: translateY(125px)'>Platforme Examen En Ligne</h1>";
echo '<table style="transform: translateY(100px)">
<tr>
<td ><img src="img/module.png" height="50" width="50" ></td>
<td > <a href="subadd.php" ><button type="button">Ajouter Module</button> </a></td>
<td ><img src="img/module.png" height="50" width="50"></td>
<td> <a href="viewsub.php" ><button type="button">Modifier Module</button></a></td>
</tr>
<tr>
<td ><img src="img/test1.png" height="50" width="50" ></td>
<td > <a href="testadd.php" ><button type="button">Ajouter Test</button> </a></td>
<td ><img src="img/test1.png" height="50" width="50"></td>
<td> <a href="testview.php" ><button type="button">Modifier Test</button></a></td>
</tr>
<tr>
<td ><img src="img/qst.png" height="50" width="50" ></td>
<td > <a href="questionadd.php" ><button type="button">Ajouter Question</button> </a></td>
<td ><img src="img/qst.png" height="50" width="50"></td>
<td> <a href="questionview.php" ><button type="button">Modifier Question</button></a></td>
</tr>
<tr >
<td ><img src="img/calendar.png" height="50" width="50"></td>
<td> <a href="planning.php" ><button type="button">Ajouter Au Planning</button></a></td>
</tr>
</table>
</div>
';
exit;
?><file_sep><link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="<KEY>" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
<link href="./Ens/css/logproblem.css" rel="stylesheet" type="text/css">
<?php
echo "<br><h2 align=center>Vous devez reconnecter pour passer un autre test!</h2>";
echo "</br></br></br></br><a role='button' class='black btn btn-outline-success' href=\"index.php\">Cliquez Ici Pour Vous Connecter/Login</a>";
exit();
?><file_sep><?php
session_start();
if (!isset($_SESSION['alogin']))
{
include ("logproblem.php");
}
require("../database.php");
include ("header.php");
error_reporting(1);
?>
<link href="./css/subAdd.css" rel="stylesheet" type="text/css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="<KEY>" crossorigin="anonymous">
<?php
extract($_POST);
?>
<SCRIPT LANGUAGE="JavaScript">
function check() {
mt=document.form1.subname.value;
if (mt.length<1) {
alert("Please Enter Subject Name");
document.form1.subname.focus();
return false;
}
return true;
}
</script>
<div class="main">
<?php
if($submit=='submit' || strlen($subname)>0 )
{
$rs=mysqli_query($con,"select * from mst_subject where sub_name='$subname'");
if (mysqli_num_rows($rs)>0)
{
echo "<br><br><br><div class=head1>Module Déjà Existant </div>";
exit;
}
mysqli_query($con,"insert into mst_subject(sub_name) values ('$subname')") or die(mysqli_error());
$submit="";
echo"<div class='main'>";
echo "<br><br><br><div class=head1>Module <b> \"$subname \"</b> Ajouté. <br> <br> <a href='subadd.php'>Cliquez ici pour ajouter un autre module</a></div>";
exit;
echo"</div>";
unset($_POST);
}
?>
<div class="ajouter" >
<h1>Ajouter Module</h1>
<form name="form1" method="post" onSubmit="return check();">
<table class="table table-borderless">
<tr>
<td width="25%" height="32"><div style="display: flex;justify-content: center;color: cornsilk;"><strong>Nom Module </strong></div></td>
<td width="55%" height="5"> <input style="display: flex;justify-content: center;" class="form-control" name="subname" placeholder="Exp: Base De Données" type="text" >
<td width="20%" height="32">
<tr>
<td height="26"> </td>
<td></td>
<td> </td>
</tr>
<tr>
<td height="26"></td>
<td></td>
<td style="display: flex;justify-content: center;"><input style="color: white;" class="btn btn-outline-dark"id="button" type="submit" name="submit" value=" Ajouter " ></td>
</tr>
<tr>
<td height="26"></td>
<td></td>
<td ></td>
</tr> <tr>
<td height="26"></td>
<td></td>
<td ></td>
</tr>
</table>
</form>
</div>
</div>
<file_sep>
<link rel="stylesheet" href="./css/header.css"/>
<?php @$_SESSION['login'];
error_reporting(1);
?>
<?php
if(isset($_SESSION['login']))
{
echo "<header class=\"main-header\">
<nav>
<img src=\"./image/exam.png\">
<ul>
<li><a href=\"affichage.php\">Affichage</a></li>
<li><a href=\"planing.php\">Planning</a></li>
<li><strong> <a href=\"signout.php\">Signout</a></strong></li>
</ul>     
</nav>
</header>
";
}
else
{
echo "<header class=\"main-header\">
<nav>
<img src=\"./image/exam.png\">
<ul>
<li><a href=\"index.php\">Login</a></li>
<li><a href=\"Create.php\">S'inscrire</a></li>
</ul>
</nav>
</header>
";
}
?>
<file_sep>-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1:3306
-- Généré le : Dim 11 juil. 2021 à 02:15
-- Version du serveur : 5.7.31
-- Version de PHP : 7.3.21
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 : `pfc`
--
CREATE DATABASE IF NOT EXISTS `pfc` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `pfc`;
-- --------------------------------------------------------
--
-- Structure de la table `events`
--
DROP TABLE IF EXISTS `events`;
CREATE TABLE IF NOT EXISTS `events` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
`color` varchar(7) CHARACTER SET utf8mb4 NOT NULL,
`start` datetime NOT NULL,
`end` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
--
-- Déchargement des données de la table `events`
--
INSERT INTO `events` (`id`, `title`, `color`, `start`, `end`) VALUES
(6, 'Données semi-structuré', '#FF8C00', '2021-07-04 10:00:00', '2021-07-04 10:00:00'),
(8, 'IA', '#40E0D0', '2021-06-26 00:00:00', '2021-06-27 00:00:00'),
(9, 'D.S.M', '', '2021-07-01 00:00:00', '2021-07-02 00:00:00'),
(10, 'SE', '', '2021-07-24 08:00:00', '2021-07-24 11:00:00'),
(11, 'Algorithme', '#40E0D0', '2021-07-10 00:00:00', '2021-07-11 00:00:00');
-- --------------------------------------------------------
--
-- Structure de la table `mst_admin`
--
DROP TABLE IF EXISTS `mst_admin`;
CREATE TABLE IF NOT EXISTS `mst_admin` (
`loginid` varchar(20) NOT NULL,
`pass` varchar(50) NOT NULL,
`nom` varchar(30) DEFAULT NULL,
`prenom` varchar(30) DEFAULT NULL,
`email` varchar(50) DEFAULT NULL,
`specialite` varchar(30) DEFAULT NULL,
PRIMARY KEY (`loginid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Déchargement des données de la table `mst_admin`
--
INSERT INTO `mst_admin` (`loginid`, `pass`, `nom`, `prenom`, `email`, `specialite`) VALUES
('123456789', 'yac06', 'LALLAMI', 'Yacine', '<EMAIL>', 'INFO'),
('mytry', '123', 'moi', 'encore moi', '<EMAIL>', 'rien'),
('1965100210', '123456789', 'moi', 'encore moi', '<EMAIL>', 'rien'),
('', '', '', '', '', '');
-- --------------------------------------------------------
--
-- Structure de la table `mst_question`
--
DROP TABLE IF EXISTS `mst_question`;
CREATE TABLE IF NOT EXISTS `mst_question` (
`que_id` int(5) NOT NULL AUTO_INCREMENT,
`test_id` int(5) NOT NULL,
`que_desc` varchar(150) DEFAULT NULL,
`ans1` varchar(75) DEFAULT NULL,
`ans2` varchar(75) DEFAULT NULL,
`ans3` varchar(75) DEFAULT NULL,
`ans4` varchar(75) DEFAULT NULL,
`true_ans` int(1) DEFAULT NULL,
PRIMARY KEY (`que_id`,`test_id`),
KEY `test_id` (`test_id`)
) ENGINE=MyISAM AUTO_INCREMENT=49 DEFAULT CHARSET=latin1;
--
-- Déchargement des données de la table `mst_question`
--
INSERT INTO `mst_question` (`que_id`, `test_id`, `que_desc`, `ans1`, `ans2`, `ans3`, `ans4`, `true_ans`) VALUES
(16, 8, 'What Default Data Type ?', 'String', 'Variant', 'Integer', 'Boolear', 2),
(17, 8, 'What is Default Form Border Style ?', 'Fixed Single', 'None', 'Sizeable', 'Fixed Diaglog', 3),
(18, 8, 'Which is not type of Control ?', 'text', 'lable', 'checkbox', 'option button', 1),
(19, 9, 'Which of the follwing contexts are available in the add watch window?', 'Project', 'Module', 'Procedure', 'All', 4),
(20, 9, 'Which window will allow you to halt the execution of your code when a variable changes?', 'The call stack window', 'The immedite window', 'The locals window', 'The watch window', 4),
(22, 9, 'How can you print the object name associated with the last VB error to the Immediate window?', 'Debug.Print Err.Number', 'Debug.Print Err.Source', 'Debug.Print Err.Description', 'Debug.Print Err.LastDLLError', 2),
(23, 9, 'How can you print the object name associated with the last VB error to the Immediate window?', 'Debug.Print Err.Number', 'Debug.Print Err.Source', 'Debug.Print Err.Description', 'Debug.Print Err.LastDLLError', 2),
(24, 9, 'What function does the TabStop property on a command button perform?', 'It determines whether the button can get the focus', 'If set to False it disables the Tabindex property.', 'It determines the order in which the button will receive the focus', 'It determines if the access key swquence can be used', 1),
(25, 10, 'You application creates an instance of a form. What is the first event that will be triggered in the from?', 'Load', 'GotFocus', 'Instance', 'Initialize', 4),
(26, 10, 'Which of the following is Hungarian notation for a menu?', 'Menu', 'Men', 'mnu', 'MN', 3),
(27, 10, 'You are ready to run your program to see if it works.Which key on your keyboard will start the program?', 'F2', 'F3', 'F4', 'F5', 4),
(28, 10, 'Which of the following snippets of code will unload a form named frmFo0rm from memory?', 'Unload Form', 'Unload This', 'Unload Me', 'Unload', 3),
(29, 10, 'You want the text in text box named txtMyText to read My Text.In which property will you place this string?', 'Caption', 'Text', 'String', 'None of the above', 2),
(30, 11, 'how to use date( ) in mysql ?', 'now( )', 'today( )', 'date( )', 'time( )', 0),
(41, 13, 'BDD1 ', 'u suck', 'toi', 'papi', 'ur daddy sucks', 1),
(42, 14, 'question 1', '1', '2', '3', '4', 1),
(43, 14, '2', '1', '2', '3', '4', 2),
(44, 14, '3', '1', '2', '3', '4', 3),
(45, 14, '4', '5', '4', '7', 'ur daddy sucks', 1),
(46, 14, 'd', 'qsdqsd', 'toi', 'papi', 'ur daddy sucks', 1),
(47, 12, 'hngc', 'studies', 'studies', 'studies', 'suicide', 4),
(48, 12, ', cnx,', 'sql', 'studies', 'n,', 'suicide', 2);
-- --------------------------------------------------------
--
-- Structure de la table `mst_subject`
--
DROP TABLE IF EXISTS `mst_subject`;
CREATE TABLE IF NOT EXISTS `mst_subject` (
`sub_id` int(5) NOT NULL AUTO_INCREMENT,
`sub_name` varchar(25) DEFAULT NULL,
PRIMARY KEY (`sub_id`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
--
-- Déchargement des données de la table `mst_subject`
--
INSERT INTO `mst_subject` (`sub_id`, `sub_name`) VALUES
(1, 'VB'),
(2, 'Oracle'),
(3, 'Java'),
(4, 'PHP'),
(5, 'hello'),
(6, 'redaction'),
(7, 'hello u'),
(8, 'hio'),
(9, 'bg'),
(10, 'cc');
-- --------------------------------------------------------
--
-- Structure de la table `mst_test`
--
DROP TABLE IF EXISTS `mst_test`;
CREATE TABLE IF NOT EXISTS `mst_test` (
`test_id` int(5) NOT NULL AUTO_INCREMENT,
`sub_id` int(5) NOT NULL,
`test_name` varchar(30) DEFAULT NULL,
`total_que` varchar(15) DEFAULT NULL,
`loginid` varchar(20) NOT NULL,
`lvl` varchar(20) NOT NULL,
PRIMARY KEY (`test_id`),
KEY `sub_id` (`sub_id`),
KEY `loginid` (`loginid`)
) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;
--
-- Déchargement des données de la table `mst_test`
--
INSERT INTO `mst_test` (`test_id`, `sub_id`, `test_name`, `total_que`, `loginid`, `lvl`) VALUES
(8, 1, 'VB Basic Test', '3', '987654321', 'l3'),
(9, 1, 'Essentials of VB', '5', '987654321', 'm1'),
(10, 1, 'Creating User Services', '5', '987654321', 'l3'),
(11, 5, 'exam', '2', '987654321', 'l1'),
(12, 5, 'hi', '2', '', 'L3'),
(13, 6, 's1', '2', '', 'L3'),
(14, 6, 's1', '2', '', 'L3'),
(15, 6, 's1', '2', '', 'L3'),
(16, 6, 's1', '2', '', 'L3'),
(17, 10, 's1', '2', '', 'L3'),
(18, 9, 'hi', '2', '', 'L3');
-- --------------------------------------------------------
--
-- Structure de la table `mst_user`
--
DROP TABLE IF EXISTS `mst_user`;
CREATE TABLE IF NOT EXISTS `mst_user` (
`loginMat` varchar(20) NOT NULL,
`pass` varchar(20) DEFAULT NULL,
`nom` varchar(30) DEFAULT NULL,
`prenom` varchar(50) DEFAULT NULL,
`email` varchar(30) DEFAULT NULL,
`specialite` varchar(30) DEFAULT NULL,
`niv` varchar(30) DEFAULT NULL,
PRIMARY KEY (`loginMat`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Déchargement des données de la table `mst_user`
--
INSERT INTO `mst_user` (`loginMat`, `pass`, `nom`, `prenom`, `email`, `specialite`, `niv`) VALUES
('123456789', 'bejaia06', 'sqdqsd', 'qsdqsd', '<EMAIL>', 'informatique', 'l3'),
('987654321', 'bejaia07', '<PASSWORD>', 'YACINE', '<EMAIL>', 'informatique', 'm1'),
('1213141516', 'nobaracutie', 'itadori', 'yuji', '<EMAIL>', 'jujutsu', 'sor1'),
('1213141517', 'nobaracutie', 'kugisake', 'nobara', '<EMAIL>', 'jujutsu', 'L1'),
('1213141518', 'nobaracutie', 'satoru', 'gojo', '<EMAIL>', 'jujutsu', '3'),
('165686317', 'heyyou2021', 'rd', 'bvg', '<EMAIL>', 'gl', 'M1');
-- --------------------------------------------------------
--
-- Structure de la table `mst_useranswer`
--
DROP TABLE IF EXISTS `mst_useranswer`;
CREATE TABLE IF NOT EXISTS `mst_useranswer` (
`sess_id` varchar(80) DEFAULT NULL,
`test_id` int(11) NOT NULL,
`que_des` varchar(200) DEFAULT NULL,
`ans1` varchar(50) DEFAULT NULL,
`ans2` varchar(50) DEFAULT NULL,
`ans3` varchar(50) DEFAULT NULL,
`ans4` varchar(50) DEFAULT NULL,
`true_ans` int(11) DEFAULT NULL,
`your_ans` int(11) DEFAULT NULL,
`ansid` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`test_id`,`ansid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Déchargement des données de la table `mst_useranswer`
--
INSERT INTO `mst_useranswer` (`sess_id`, `test_id`, `que_des`, `ans1`, `ans2`, `ans3`, `ans4`, `true_ans`, `your_ans`, `ansid`) VALUES
('3m63babrm1hqpvbiutte7vkour', 9, 'How can you print the object name associated with the last VB error to the Immediate window?', 'Debug.Print Err.Number', 'Debug.Print Err.Source', 'Debug.Print Err.Description', 'Debug.Print Err.LastDLLError', 2, 2, 4),
('3m63babrm1hqpvbiutte7vkour', 9, 'How can you print the object name associated with the last VB error to the Immediate window?', 'Debug.Print Err.Number', 'Debug.Print Err.Source', 'Debug.Print Err.Description', 'Debug.Print Err.LastDLLError', 2, 2, 3),
('3m63babrm1hqpvbiutte7vkour', 9, 'Which of the follwing contexts are available in the add watch window?', 'Project', 'Module', 'Procedure', 'All', 4, 2, 1),
('3m63babrm1hqpvbiutte7vkour', 9, 'Which window will allow you to halt the execution of your code when a variable changes?', 'The call stack window', 'The immedite window', 'The locals window', 'The watch window', 4, 1, 2);
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
session_start();
include("header.php")
?>
<head>
<title>LOGIN</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<div class="container">
<h2>Bienvenu sur le site officiel des examens de l'université de Béjaia</h2>
<form name="form1" action="login.php" method="POST" class="login_form" onsubmit="return validated()">
<input class="form-control" name="loginid" type="text" id="loginid" placeholder="Matricule Universitaire">
<div id="email_error">Veuillez insérer votre matricule</div>
<input class="form-control" name="pass" type="<PASSWORD>" id="pass" placeholder="<PASSWORD>">
<div id="pass_error">Veuillez insérer votre mot de passe</div>
<button class="btn btn-primary" name="submit" type="submit" id="submit" value="Login">Connexion</button>
<div class="newUser"> <p>Nouvel utilsateur ?</p>
<a href="../Create.php">Créer un compte</a></div>
</form>
<script src="valid.js"></script>
</div>
<file_sep><?php
session_start();
error_reporting(1);
include("database.php");
extract($_POST);
extract($_GET);
extract($_SESSION);
if(isset($subid) && isset($testid))
{
$_SESSION[sid]=$subid;
$_SESSION[tid]=$testid;
header("location:passer.php");
}
if(!isset($_SESSION[sid]) || !isset($_SESSION[tid]))
{
header("location: index.php");
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Examen En ligne</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="passer.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php
include("header.php");
$query="select * from mst_question";
$rs=mysqli_query($con,"select * from mst_question where test_id=$tid") or die(mysqli_error());
if(!isset($_SESSION[qn]))
{
$_SESSION[qn]=0;
mysqli_query("delete from mst_useranswer where sess_id='" . session_id() ."'") or die(mysqli_error());
$_SESSION[trueans]=0;
}
if($submit=='Next Question' && isset($ans))
{
mysqli_data_seek($rs,$_SESSION[qn]);
$row= mysqli_fetch_row($rs);
mysqli_query($con,"insert into mst_useranswer(sess_id, test_id, que_des, ans1,ans2,ans3,ans4,true_ans,your_ans) values ('".session_id()."', '$tid','$row[2]','$row[3]','$row[4]','$row[5]', '$row[6]','$row[7]','$ans')") or die(mysqli_error());
if($ans==$row[7])
{
$_SESSION[trueans]=$_SESSION[trueans]+1;
}
$_SESSION[qn]=$_SESSION[qn]+1;
}
else if($submit=='Get Result' && isset($ans))
{
mysqli_data_seek($rs,$_SESSION[qn]);
$row= mysqli_fetch_row($rs);
mysqli_query($con,"insert into mst_useranswer(sess_id, test_id, que_des, ans1,ans2,ans3,ans4,true_ans,your_ans) values ('".session_id()."', '$tid','$row[2]','$row[3]','$row[4]','$row[5]', '$row[6]','$row[7]','$ans')") or die(mysqli_error());
if($ans==$row[7])
{
$_SESSION[trueans]=$_SESSION[trueans]+1;
}
echo"<div class='main'>";
$_SESSION[qn]=$_SESSION[qn]+1;
echo "<Table align=center><tr class=tot><td>Nombre de questions<td> $_SESSION[qn]";
echo "<tr class=tans><td>Réponse Juste<td>".$_SESSION[trueans];
$w=$_SESSION[qn]-$_SESSION[trueans];
echo "<tr class=fans><td>Réponse Fausse<td> ". $w;
echo "<tr class='rev'><td><a href='review.php'>Cliquez ici pour terminer la session et voir le corrigé</a><td> ";
echo "</table>";
echo" </div>";
}
$rs=mysqli_query($con,"select * from mst_question where test_id=$tid") or die(mysqli_error());
if($_SESSION[qn]>mysqli_num_rows($rs)-1)
{
unset($_SESSION[qn]);
session_destroy();
exit;
}
mysqli_data_seek($rs,$_SESSION[qn]);
$row= mysqli_fetch_row($rs);
echo"<div class='main'>";
echo "<form name=myfm class='form' method=post action=passer.php>";
echo "<table width=100%> <tr> <td width=30> <td> <table border=0>";
$n=$_SESSION[qn]+1;
echo "<tr><td class='styleTd'><h1 class=style2>Question ". $n .": $row[2]";
echo "<tr><td > <label class='container'>$row[3]<input class='checkbox' type=radio name=ans value=1><span class='checkmark'></span> </label>";
echo "<tr><td > <label class='container'>$row[4]<input class='checkbox' type=radio name=ans value=2><span class='checkmark'></span></label>";
echo "<tr><td ><label class='container'>$row[5]<input class='checkbox' type=radio name=ans value=3><span class='checkmark'></span></label>";
echo "<tr><td ><label class='container'>$row[6]<input class='checkbox' type=radio name=ans value=4><span class='checkmark'></span></label>";
if($_SESSION[qn]<mysqli_num_rows($rs)-1)
echo "<tr><td><input class='button' type=submit name=submit value='Next Question'></form>";
else
echo "<tr><td><input class='button' type=submit name=submit value='Get Result'></form>";
echo "</div>";
?>
</body>
</html><file_sep><?php
session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Modules</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/sublist.css" rel="stylesheet" type="text/css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="<KEY>" crossorigin="anonymous">
</head>
<body>
<?php
include("header.php");
include("database.php");
$id=$_SESSION['login'];
{
$rs=mysqli_query($con,"select * from mst_subject ");
echo " <div class='main'>";
echo " <h1 bott >Listes Des Modules</h1>";
echo " <div class='down'>";
echo " <div class='tab'>";
echo "<table class='table table-borderless table-hover'>";
echo "<thead >
<tr>
<th width='100%' class='text-light'>Nom Module</th>
</tr>
</thead>";
while($row=mysqli_fetch_row($rs))
{
echo "<tr>";
echo "<td ><a href=showtest.php?subid=$row[0]>$row[1]</a></td>";
echo "</tr>";
}
echo "</table>";
echo"</div>";
echo"</div>";
echo"</div>";
}
?>
</body>
</html>
<file_sep>
function validate() {
var name = document.forms["formR"]["nom"];
var pname = document.forms["formR"]["prenom"];
var email = document.forms["formR"]["email"];
var mat = document.forms["formR"]["loginid"];
var niv = document.forms["formR"]["niv"];
var spec = document.forms["formR"]["spec"];
var password = document.forms["formR"]["pass"];
if (name.value == "") {
window.alert("Veuillez insérer votre nom.");
name.focus();
return false;
}
if (pname.value == "") {
window.alert("Veuillez insérer votre prénom.");
pname.focus();
return false;
}
if (email.value == "") {
window.alert(
"Veuillez insérer votre e-mail .");
email.focus();
return false;
}
if (spec.value == "") {
window.alert(
"Veuillez insérer votre specialité.");
spec.focus();
return false;
}
if (mat.value == "") {
window.alert(
"Veuillez insérer votre matricule");
mat.focus();
return false;
}
if (password.value == "" ) {
window.alert("Veuillez insérer votre mot de passe ");
password.focus();
return false;
}
if (niv.selectedIndex < 1) {
alert("Please enter your course.");
what.focus();
return false;
}
return true;
}
<file_sep><?php
session_start();
session_destroy();
header("Location: ../startpage.php");
?>
<file_sep><?php
session_start();
include("header.php")
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>LOGIN</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="./Ens/css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php
include("database.php");
extract($_POST);
if(isset($submit))
{
$rs=mysqli_query($con,"select * from mst_user where loginMat='$loginid' and pass='$pass'");
if(mysqli_num_rows($rs)<1)
{
$found="N";
}
else
{
$_SESSION['login']=$loginid;
}
}
if (isset($_SESSION['login']))
{
header('Location: affichage.php');
}
?>
<div class="container">
<h2>Bienvenu sur le site officiel des examens de l'université de Béjaia</h2>
<form name="form1" method="POST" class="login_form" onsubmit="return validated()">
<input class="form-control" name="loginid" type="text" id="loginid" placeholder="Matricule Universitaire">
<div id="email_error">Veuillez insérer votre matricule</div>
<input class="form-control" name="pass" type="<PASSWORD>" id="pass" placeholder="<PASSWORD>">
<div id="pass_error">Veuillez insérer votre mot de passe</div>
<button class="btn btn-primary" name="submit" type="submit" id="submit" value="Login">Connexion</button>
<div class="newUser"> <p>Nouvel utilsateur ?</p>
<a href="Create.php">Créer un compte</a></div>
</form>
<script src="valid.js"></script>
</div><file_sep><?php
require("connexion.php");
try {
if ($_POST['radio-group'] == "etud") {
$con->exec("INSERT into mst_user(loginMat,pass,nom,prenom,email,specialite,niv) values('" . $_POST['loginid'] . "','" . $_POST['pass'] . "','" . $_POST['nom'] . "','" . $_POST['prenom'] . "','" . $_POST['email'] . "','" . $_POST['spec'] . "','" . $_POST['niv'] . "')");
echo "<script>window.location='startpage.php'</script>";
} else {
$con->exec("INSERT into mst_admin(loginid,pass,nom,prenom,email,specialite) values('" . $_POST['loginid'] . "','" . $_POST['pass'] . "','" . $_POST['nom'] . "','" . $_POST['prenom'] . "','" . $_POST['email'] . "','" . $_POST['spec'] . "')");
echo "<script>window.location='startpage.php'</script>";
}
} catch (Exception $e) {
echo "Echec ajout ".$e -> getMessage();
}
?>
| 120c067cca366695481e3c0f97d8f54857e65981 | [
"JavaScript",
"SQL",
"PHP"
] | 21 | PHP | MERY24/pfcFinal | 1eb0622abeb70587ff35869040d836a482965326 | 2f075bfe578d7c2ad59e1f6557afdb6ec13ccc9d |
refs/heads/master | <file_sep># Maintainer: <NAME> <<EMAIL>>
# Contributor: kfgz <kfgz at interia pl>
# Contributor: <NAME> <allan at archlinux dot org>
# Contributor: <NAME> <Jeepster at gmx dot co dot uk>
pkgname=xdelta
pkgver=1.1.4
pkgrel=7
pkgdesc='Binary file delta generator'
arch=('x86_64' 'i686')
url="http://sourceforge.net/projects/xdelta/"
license=('GPL')
depends=('glib' 'zlib')
options=('!libtool')
#source=("http://xdelta.googlecode.com/files/$pkgname-$pkgver.tar.gz")
#source=("http://download.openpkg.org/components/cache/$pkgname/$pkgname-$pkgver.tar.gz")
source=("https://github.com/bbidulock/xdelta/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"
'xdelta-1.1.4-aclocal.patch')
sha256sums=('345503b60432812840991ea1d79cb10db5f34bfaba9499bd0e7d5c57ac5d5c6d'
'8a3e06cfef18ed4e976daecab0e4ebdea20dd849136ef919787f4444b8f89f2d')
prepare() {
cd ${pkgname}-${pkgver}
patch -Np1 -b -z .orig <../xdelta-1.1.4-aclocal.patch
}
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr --mandir=/usr/share/man
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
}
| 2ed2031d4b830ea1a127320bf1d3dae5d191efc1 | [
"Shell"
] | 1 | Shell | toowoxx/pkgbuild-xdelta | 364c51cd6fece09b51d5a4313de96a02c667ab7e | e2ebbaee9435202d720fc02ec3696d40a3e6ea0f |
refs/heads/master | <repo_name>rvieceli/gympoint_mobile<file_sep>/src/pages/NewHelp/styles.js
import styled from 'styled-components/native';
export const Container = styled.View`
padding: 20px;
`;
export const Input = styled.TextInput`
border: 1px solid #ddd;
border-radius: 4px;
background: #fff;
padding: 20px;
height: 75%;
margin-bottom: 20px;
font-size: 16px;
line-height: 25px;
text-align-vertical: top;
`;
<file_sep>/src/pages/CheckIn/index.js
import React, { useState, useEffect } from 'react';
import AsyncStorage from '@react-native-community/async-storage';
import PropTypes from 'prop-types';
import { ActivityIndicator } from 'react-native';
import { withNavigationFocus } from 'react-navigation';
import Background from '../../components/Background';
import Exit from '../../components/Exit';
import { Container, List, Item, Title, Time } from './styles';
import New from './New';
import { formatDistanceDateToNow } from '../../utils/format';
import api from '../../services/api';
function CheckIn({ isFocused }) {
const [loading, setLoading] = useState(false);
const [refreshing, setRefreshing] = useState(false);
const [student, setStudent] = useState();
const [checkIns, setCheckIns] = useState([]);
const [page, setPage] = useState(1);
async function startUp() {
setLoading(!refreshing);
const { data } = await api.get(`/students/${student.id}/checkins`, {
params: { page: 1, pageSize: 10 },
});
const rows = data.rows.map(checkIn => ({
...checkIn,
createdAtFormatted: formatDistanceDateToNow(checkIn.createdAt),
}));
const hasMore = data.page <= data.pages;
setCheckIns(rows);
setPage(hasMore ? 2 : null);
setLoading(false);
}
async function loadMore() {
if (!student) return;
if (!page) return;
if (loading) return;
setLoading(true);
const { data } = await api.get(`/students/${student.id}/checkins`, {
params: { page, pageSize: 10 },
});
const rows = data.rows.map(checkIn => ({
...checkIn,
createdAtFormatted: formatDistanceDateToNow(checkIn.createdAt),
}));
const hasMore = data.page <= data.pages;
setCheckIns([...checkIns, ...rows]);
setPage(hasMore ? page + 1 : null);
setLoading(false);
}
async function refreshList() {
setRefreshing(true);
await startUp();
setRefreshing(false);
}
useEffect(() => {
AsyncStorage.getItem('@GymPoint:student').then(value => {
setStudent(JSON.parse(value));
});
}, []);
useEffect(() => {
if (isFocused && student) {
startUp();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isFocused, student]);
function handleCheckIn({ checkIn }) {
const row = {
...checkIn,
createdAtFormatted: formatDistanceDateToNow(checkIn.createdAt),
};
setCheckIns([row, ...checkIns]);
}
function renderFooter() {
if (!loading || refreshing) return null;
return <ActivityIndicator size="small" />;
}
return (
<Background>
<Container>
<New student={student} onCheckIn={handleCheckIn} />
<List
data={checkIns}
keyExtractor={item => String(item.id)}
renderItem={({ item }) => (
<Item>
<Title>Check-in #{String(item.id)}</Title>
<Time>{item.createdAtFormatted}</Time>
</Item>
)}
onEndReached={loadMore}
onEndReachedThreshold={0.1}
ListFooterComponent={renderFooter}
onRefresh={refreshList}
refreshing={refreshing}
contentContainerStyle={{ paddingBottom: 50 }}
/>
</Container>
</Background>
);
}
CheckIn.propTypes = {
isFocused: PropTypes.bool.isRequired,
};
CheckIn.navigationOptions = props => ({
headerRight: <Exit {...props} />,
});
export default withNavigationFocus(CheckIn);
<file_sep>/src/pages/StartUp/index.js
import React, { useEffect } from 'react';
import { ActivityIndicator } from 'react-native';
import AsyncStorage from '@react-native-community/async-storage';
import { Container } from './styles';
export default function StartUp({ navigation }) {
useEffect(() => {
async function load() {
const student = await AsyncStorage.getItem('@GymPoint:student');
if (!student) return navigation.navigate('SignIn');
return navigation.navigate('CheckIn');
}
load();
}, [navigation]);
return (
<Container style={{ flex: 1 }}>
<ActivityIndicator size="large" />
</Container>
);
}
<file_sep>/src/routes.js
import React from 'react';
import { createAppContainer, createSwitchNavigator } from 'react-navigation';
import { createBottomTabNavigator } from 'react-navigation-tabs';
import { createStackNavigator } from 'react-navigation-stack';
import Icon from 'react-native-vector-icons/MaterialIcons';
import { Image } from 'react-native';
import StartUp from './pages/StartUp';
import SignIn from './pages/SignIn';
import CheckIn from './pages/CheckIn';
import Help from './pages/Help';
import NewHelp from './pages/NewHelp';
import ShowHelp from './pages/ShowHelp';
import logo from './assets/header_logo.png';
const header = {
headerLayoutPreset: 'center',
defaultNavigationOptions: {
headerLayoutPreset: 'center',
headerTitle: () => <Image source={logo} />,
headerBackTitleVisible: false,
defaultNavigationOptions: {
headerStyle: {
backgroundColor: '#fff',
},
},
headerBackImage: <Icon name="chevron-left" size={24} />,
},
};
const CheckInRoutes = createStackNavigator(
{
CheckIn,
},
{
...header,
navigationOptions: {
tabBarLabel: 'Check-ins',
tabBarIcon: ({ tintColor }) => (
<Icon name="edit-location" size={20} color={tintColor} />
),
},
}
);
const HelpRoutes = createStackNavigator(
{
Help,
NewHelp,
ShowHelp,
},
{
...header,
navigationOptions: {
tabBarLabel: '<NAME>',
tabBarIcon: ({ tintColor }) => (
<Icon name="live-help" size={20} color={tintColor} />
),
},
}
);
export default createAppContainer(
createSwitchNavigator(
{
SignIn: createSwitchNavigator({
StartUp,
SignIn,
}),
App: createBottomTabNavigator(
{
CheckIn: CheckInRoutes,
Help: HelpRoutes,
},
{
tabBarOptions: {
keyboardHidesTabBar: true,
activeTintColor: '#ee4e62',
inactiveTintColor: '#999',
style: {
backgroundColor: '#fff',
},
},
}
),
},
{
initialRouteName: 'SignIn',
}
)
);
<file_sep>/src/pages/Help/styles.js
import styled from 'styled-components/native';
import { FlatList } from 'react-navigation';
import Icon from 'react-native-vector-icons/MaterialIcons';
export const Container = styled.View`
padding: 20px;
`;
export const List = styled(FlatList).attrs({
showsVerticalScrollIndicator: false,
})`
margin-top: 15px;
margin-bottom: 25px;
`;
export const Item = styled.TouchableOpacity`
width: 100%;
padding: 0 20px;
margin: 5px 0;
background: #fff;
border-radius: 4px;
border: 1px solid #ddd;
padding: 20px;
`;
export const Title = styled.Text`
font-size: 14px;
font-weight: bold;
color: ${props => (props.status ? '#42CB59' : '#999')};
`;
export const Time = styled.Text`
font-size: 14px;
color: #666;
`;
export const Question = styled.Text`
font-size: 14px;
color: #666;
line-height: 26px;
margin-top: 15px;
`;
export const Head = styled.View`
flex-direction: row;
justify-content: space-between;
align-items: center;
`;
export const Status = styled.View`
flex-direction: row;
align-items: center;
`;
export const Legend = styled(Icon).attrs(props => ({
color: props.status ? '#42CB59' : '#999',
}))`
margin-right: 15px;
`;
<file_sep>/src/pages/CheckIn/New/index.js
import React, { useState } from 'react';
import { Alert } from 'react-native';
import PropTypes from 'prop-types';
import api from '../../../services/api';
import Button from '../../../components/Button';
export default function New({ student, onCheckIn }) {
const [loading, setLoading] = useState(false);
async function handleCheckIn() {
if (!student) return;
setLoading(true);
try {
const { data } = await api.post(`/students/${student.id}/checkins`);
setLoading(false);
if (onCheckIn) onCheckIn(data);
} catch (err) {
setLoading(false);
if (err.response) {
Alert.alert(err.response.data.error);
} else {
Alert.alert('Não foi possível fazer Check-in');
}
}
}
return (
<Button loading={loading} onPress={handleCheckIn}>
Novo check-in
</Button>
);
}
New.propTypes = {
student: PropTypes.shape({
id: PropTypes.number,
}),
onCheckIn: PropTypes.func,
};
New.defaultProps = {
student: null,
onCheckIn: null,
};
<file_sep>/src/pages/ShowHelp/styles.js
import styled from 'styled-components/native';
export const Container = styled.View`
flex: 1;
padding: 20px;
`;
export const Question = styled.View`
background: #fff;
border: 1px solid #ddd;
border-radius: 4px;
padding: 20px;
`;
export const Title = styled.Text`
font-size: 14px;
font-weight: bold;
color: #444;
`;
export const Time = styled.Text`
font-size: 14px;
color: #666;
`;
export const Description = styled.Text`
font-size: 14px;
color: #666;
line-height: 26px;
margin-top: 15px;
`;
export const Head = styled.View`
flex-direction: row;
justify-content: space-between;
align-items: center;
`;
export const Space = styled.View`
height: 20px;
`;
<file_sep>/src/pages/ShowHelp/index.js
import React from 'react';
import Background from '../../components/Background';
import {
Container,
Question,
Head,
Title,
Time,
Description,
Space,
} from './styles';
export default function ShowHelp({ navigation }) {
const question = navigation.getParam('question');
return (
<Background>
<Container>
<Question>
<Head>
<Title>PERGUNTA</Title>
<Time>{question.createdAtFormatted}</Time>
</Head>
<Description>{question.question}</Description>
{question.answer && (
<>
<Space />
<Head>
<Title>RESPOSTA</Title>
<Time>{question.updatedAtFormatted}</Time>
</Head>
<Description>{question.answer}</Description>
</>
)}
</Question>
</Container>
</Background>
);
}
<file_sep>/README.md
# Gympoint Mobile
App Mobile da aplicação __Gympoint__ para avaliação final do GoStack.
## Como usar
```
# Clone repository
$ git clone https://github.com/rvieceli/gympoint_mobile.git
# Enter repository folder
$ cd gympoint_mobile
# Install dependencies
$ yarn
# Create .env based on .env.example
# open android emulator
# Run application
$ npx react-native run-android
```
_App desenvolvimento em ambiente Windows, não testado no iOS_
<file_sep>/src/utils/format.js
import { parseISO, formatDistanceToNow } from 'date-fns';
import pt from 'date-fns/locale/pt-BR';
export const formatDistanceDateToNow = date => {
return formatDistanceToNow(parseISO(date), {
addSuffix: true,
locale: pt,
});
};
| 9d1f94d14f00a8633bd2440477af756c67041e3c | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | rvieceli/gympoint_mobile | ea8d223d31ad97a20b44bb3d9a5b2dd3314a358d | e89b048a29114334724c8fbce74efc6332b9dad1 |
refs/heads/master | <file_sep># Copyright 2018 Google Inc. Use of this source code is governed by an MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.
# Decrypts the encrypted credentials using Travis's private key and saves them
# to credentials.tar.
function decrypt_credentials() {
openssl aes-256-cbc -K $encrypted_b4541d8c554c_key \
-iv $encrypted_b4541d8c554c_iv \
-in tool/travis/credentials.tar.enc \
-out credentials.tar -d
}
# Prints the invocation of a command and then runs that command, in the same way
# Travis's internal infrastructure does.
function travis_cmd() {
echo "\$ $@"
"$@"
}
| 245537f005b8a7b7ff1004da6365899deb9c2b0e | [
"Shell"
] | 1 | Shell | sodatea/dart-sass | db87ed2f0efc1fb40936fa55ac310e5728ae9510 | 80d2454fe15fb6bf3103819bf24673c12a54ea62 |
refs/heads/main | <file_sep>import requests
i = 1 # to get Bitcoin data
r = requests.get(f"https://api.coinmarketcap.com/data-api/v3/cryptocurrency/detail?id={i}")
js = r.json()
price = js["data"]["statistics"]["price"]
print(js)
<file_sep># CoinMarketCap
Get all CoinMarketCap data with Python using this api
https://api.coinmarketcap.com/data-api/v3/cryptocurrency/detail?id=1
```python
import requests
i = 1 # to get Bitcoin data
r = requests.get(f"https://api.coinmarketcap.com/data-api/v3/cryptocurrency/detail?id={i}")
js = r.json()
price = js["data"]["statistics"]["price"]
print(js)
```
| 437982c82ef4da293dbdbac7cfddccaf3bc87819 | [
"Markdown",
"Python"
] | 2 | Python | vonOak/CoinMarketCap | 2bfb730a27b471431b1e0248e71e52d873a1c55d | a2c898f2d7e8d844fdd88f8e19772d71a0596973 |
refs/heads/master | <repo_name>hexinpeter/SMD_PROJ3<file_sep>/db/migrate/20150524082947_create_winds.rb
class CreateWinds < ActiveRecord::Migration
def change
create_table :winds do |t|
t.string :dir
t.float :speed
t.float :prob
t.belongs_to :record, index: true, foreign_key: true
t.timestamps null: false
end
end
end
<file_sep>/app/models/predicted_record.rb
class PredictedRecord < Record
end<file_sep>/app/views/data/locations.json.jbuilder
json.date @date.strftime('%d-%m-%Y')
json.locations @locations do |location|
json.id location.ref_code
json.(location, :long, :lat)
json.last_update location.last_update
end
<file_sep>/app/controllers/prediction_controller.rb
class PredictionController < ApplicationController
# GET '/weather/predicition/:lat/:long/:period'
def show
@location = Location.find_closest(params['lat'].to_i, params['long'].to_i)
@predictions = @location ? @location.predictions(params['period'].to_i) : []
@lat = params['lat'].to_i
@long = params['long'].to_i
end
# GET '/weather/prediction/:post_code/:period'
def show_area
@location = Location.find_closest_with_postcode(params['post_code'].to_i)
@predictions = @location ? @location.predictions(params['period'].to_i) : []
end
end
<file_sep>/app/controllers/data_controller.rb
class DataController < ApplicationController
def locations
@date = Date.today
@locations = Location.all
end
def show
@location_id = params["location_id"]
@date = params["date"]
isPostCode = false
PostCode.all.each do |postcode|
if @location_id == postcode.num
isPostCode = true
break
end
end
isBadPostCode = false
if @location_id.to_i < 3000 || (@location_id.to_i > 3999 && @location_id.to_i < 10000)
isBadPostCode == true
end
if !isPostCode
if @location_id.to_i < 3000 && @location_id.to_i > Location.all.length || (@location_id.to_i > 3999 && @location_id.to_i < 10000)
return
end
@my_locations = Location.where(ref_code: @location_id)[0]
@my_records = []
if @my_locations == nil
@all_records ==[]
return
else
@all_records = @my_locations.actual_records
end
@all_records.each do |record|
temp = @date.scan(/-/)
if temp.length == 2 #record.time.strftime('%d-%m-%Y').equal? @date
@in = true
@my_records << record
end
end
else
@my_post_code = params["location_id"]
@all_locations = Location.all
@my_locations = []
@all_locations.each do |location|
if location.post_code.num == @my_post_code
@my_locations << location
end
end
render :show_area
end
end
def show_area
end
end
<file_sep>/app/views/data/show.json.jbuilder
if @my_records.any?
json.date @date
json.current_temp @my_records.last.temperature.value
json.current_cond @my_records.last.condition
json.measurements @my_records do |record|
json.time record.time.strftime("%l:%M:%S %P")
json.temp record.temperature.value
json.precip record.rain.amount
json.wind_direction record.wind.dir
json.wind_speed record.wind.speed
end
else
json.problem "Bad location ID"
end
<file_sep>/app/models/record.rb
class Record < ActiveRecord::Base
belongs_to :location
has_one :rain
has_one :temperature
has_one :wind
scope :predicted_records, -> { where(type: 'PredictedRecord') }
scope :actual_records, -> { where(type: nil) }
class << self
def new_with_unix_time(time)
Record.new(time: Time.at(time).utc)
end
end
end
<file_sep>/app/support/unit_conversion.rb
module UnitConversion
extend ActiveSupport::Concern
def fahrenheit_to_celsius(value)
(value - 32) * 5 / 9
end
def miles_to_km(value)
value * 1.609344
end
def bearing_to_dir(value)
seg = 360/32.to_f
directions = ['N', 'NNE', 'NNE', 'NE','NE', 'ENE', 'ENE', 'E', 'E', 'ESE', 'ESE', 'SE', 'SE', 'SSE', 'SSE', 'S', 'S', 'SSW', 'SSW', 'SW', 'SW', 'WSW', 'WSW', 'W', 'w', 'WNW', 'WNW', 'NW', 'NW', 'NNW', 'NNW', 'N']
return directions[(value/seg).to_i]
end
def inch_to_mm(value)
value * 25.4
end
end<file_sep>/app/views/prediction/show_area.json.jbuilder
if @location
json.location_id @location.ref_code
end
json.predictions do
@predictions.each_index do |i|
json.set! i do
json.time "#{@predictions[i].time.strftime("%R %d-%m-%Y")}"
json.rain do
json.value "#{@predictions[i].rain.amount.round(2)}mm"
json.probability "#{@predictions[i].rain.prob.round(2)}"
end
json.temp do
json.value "#{@predictions[i].temperature.value.round(2)}"
json.probability "#{@predictions[i].temperature.prob.round(2)}"
end
json.wind do
json.direction "#{@predictions[i].wind.dir}"
json.speed "#{@predictions[i].wind.speed.round(2)}"
json.probability "#{@predictions[i].wind.prob.round(2)}"
end
end
end
end
<file_sep>/app/support/data_analysis.rb
class DataAnalysis
attr_reader :coeffs, :constant, :r2
# x_data is an array
# y_data is an array, with y_data[i] corresponds to x_data[i]
def initialize(x_data, y_data)
@x_data = x_data
@y_data = y_data
@coeffs = nil
@constant = nil
@r2 = nil
@best_eq = nil
@best_eq_r2 = nil
end
# eq: y = @coeffs['x']x + @constant
def analyse_linear!
analyse! prepare_linear
end
# eq: y = @coeffs['x1']x^1 + @coeffs['x2']x^2 + @coeffs['x3']x^3 + ... + @constant
def analyse_poly!
analyse! prepare_poly(fittest_poly_degree)
# tpo = Polynomial.new(@x_data, @y_data)
# tpo.calc
# @constant = tpo.coefficients[0]
# @coeffs = {}
# (1..tpo.coefficients.length-1).each do |i|
# @coeffs["x#{i}"] = tpo.coefficients[i]
# end
# @r2 = tpo.r_square
end
# eq: y = @coeffs['x1']x^1 + .. + @coeffs["x#{degree}"]x^degree + @constant
def analyse_poly_with_degree!(degree)
analyse! prepare_poly(degree)
end
# eq: y = @coeffs['A']*e^(@coeffs['B']x)
def analyse_exp!
expo_regression!
end
# eq: y = @coeffs['xlog']ln(x) + @constant
def analyse_log!
analyse! prepare_log
end
def best_equation
best_r2 = 0
begin
analyse_linear!
if @r2 > best_r2
best_r2 = @r2
coef_x = @coeffs['x']
const = @constant
@best_eq = Proc.new { |x| coef_x*x + const }
@best_eq_r2 = @r2
p "linear chosen"
end
rescue Exception
p "linear error"
end
begin
analyse_poly!
if @r2 > best_r2
best_r2 = @r2
poly_cos = @coeffs.dup
const = @constant
@best_eq = Proc.new do |x|
result = 0
poly_cos.keys.each do |key|
result += poly_cos[key] * (x ** key[1..-1].to_i)
end
result += const
end
@best_eq_r2 = @r2
p "poly chosen"
end
rescue Exception
p "poly error"
end
begin
analyse_exp!
if @r2 > best_r2
best_r2 = @r2
coef_a = @coeffs['A']
coef_b = @coeffs['B']
@best_eq = Proc.new { |x| coef_a * Math.exp(coef_b * x) }
@best_eq_r2 = @r2
p "exponential chosen"
end
rescue Exception
p "exponential error"
end
begin
analyse_log!
if @r2 > best_r2
best_r2 = @r2
coe_log = @coeffs['xlog']
const = @constant
@best_eq = Proc.new { |x| coe_log * Math.log(x) + const }
@best_eq_r2 = @r2
p "log chosen"
end
rescue Exception
p "log error"
end
if !@best_eq
@best_eq = Proc.new { |x| @y_data.last }
@best_eq_r2 = 0.01
end
@best_eq
end
# Return the extrapolated value, and the r-square value for the best-fit equation used
def extrapolate(x)
@best_eq ||= best_equation
[@best_eq.call(x), @best_eq_r2]
end
# calculate the R-squared value of this dataset to measure the fitness of the given equation
# the given equation has to be a callable object that takes in an argument 'x' and mapping that to the expected y value
# equation given in http://en.wikipedia.org/wiki/Coefficient_of_determination
def self.r_square(x_array, y_array, equation)
raise "lengths of x_array and y_array do not match" if x_array.length != y_array.length
expected_y_array = x_array.map {|x| equation.call(x)}
y_mean = y_array.reduce(:+).to_f/y_array.length
ss_res = 0
ss_tot = 0
x_array.length.times do |i|
ss_res += (y_array[i] - expected_y_array[i])**2
ss_tot += (y_array[i] - y_mean)**2
end
1 - (ss_res.to_f/ss_tot)
end
# private
def prepare_linear
x = @x_data.to_scale
y = @y_data.to_scale
dataset = {'x'=>x,'y'=>y}.to_dataset
end
def prepare_poly(degree)
data_hash = {}
data_hash['y'] = @y_data.to_scale
degree.times do |pow|
data_hash["x#{pow+1}"] = @x_data.map {|num| num ** (pow+1)}.to_scale
end
dataset = data_hash.to_dataset
end
def fittest_poly_degree
max_degree = 5
max_r2 = 0
best_degree = nil
(2..max_degree).to_a.each do |degree|
r2 = analyse! prepare_poly(degree)
if r2 > max_r2
max_r2 = r2
best_degree = degree
end
end
best_degree
end
# Exponential regression on the data; solving for a equation in the format of "y = Ae^(Bx)"
# Saving values of 'A' and 'B' into coeffs
# Algorithm derived from the equations given in
# http://mathworld.wolfram.com/LeastSquaresFittingExponential.html
def expo_regression!
n = @x_data.length
x2_sum = 0
x_sum = 0
xlny_sum = 0
lny_sum = 0
@x_data.length.times do |i|
x_sum += @x_data[i]
x2_sum += @x_data[i]**2
xlny_sum += @x_data[i] * Math.log(@y_data[i])
lny_sum += Math.log(@y_data[i])
end
a = (lny_sum * x2_sum - x_sum * xlny_sum)/ (n * x2_sum - x_sum**2)
b = (n * xlny_sum - x_sum * lny_sum)/ (n * x2_sum - x_sum**2)
@coeffs = {}
@coeffs['A'] = Math.exp(a)
@coeffs['B'] = b
@r2 = DataAnalysis.r_square(@x_data, @y_data, lambda{|x| Math.exp(a) * Math.exp(b*x)})
end
def prepare_log
xlog = @x_data.map {|num| Math::log(num)}.to_scale
y = @y_data.to_scale
dataset = {'xlog'=>xlog,'y'=>y}.to_dataset
end
# do regression on the dataset, using 'y' as the dependent value
def analyse!(ds)
analysis = Statsample::Regression.multiple(ds,'y')
@coeffs = analysis.coeffs
@constant = analysis.constant
@r2 = analysis.r2
end
end
class Polynomial
attr_accessor :coefficients
attr_accessor :r_square
def initialize data_time, data_data_point
@data_time = data_time
@data_data_point = data_data_point
self.calc
end
def calc
# loop throught till power of 10
best_coefficient = Array.new
best_r_square = 10**10 # just big number
for i in (0..10) # do till x**10
temp_coefficient = regress(i)
temp_r_square = get_r_square(temp_coefficient)
if temp_r_square < best_r_square
best_r_square = temp_r_square
best_coefficient = temp_coefficient
end
end
@coefficients = best_coefficient
@r_square = best_r_square
end
# this piece of code is from Project spec
def regress degree
x_data = @data_time.map { |x_i| (0..degree).map { |pow| (x_i**pow).to_f } }
mx = Matrix[*x_data]
my = Matrix.column_vector(@data_data_point)
my_coefficients = ((mx.t * mx).inv * mx.t * my).transpose.to_a[0]
return my_coefficients
end
def get_r_square my_coefficients
sum_of_error_square = 0
sum_of_data_data_point = 0
for i in (0..@data_time.length - 1)
sum_of_RHS = 0.0
(0..my_coefficients.length - 1).each do |j|
sum_of_RHS += my_coefficients[j] * @data_time[i]**j
end
sum_of_error_square = (sum_of_RHS - @data_data_point[i])**2
sum_of_data_data_point += @data_data_point[i]
end
mean_of_data_data_point = sum_of_data_data_point/@data_data_point.length
sum_of_error_mean = 0
for i in (0..@data_time.length - 1)
sum_of_error_mean += (@data_data_point[i] - mean_of_data_data_point)**2
end
return (sum_of_error_square/sum_of_error_mean)
end
def print_formula
(0..@coefficients.length - 1).each do |i|
print @coefficients[i].round(2)
if i > 0
print "x"
end
if i > 1
print "^" + i.to_s
end
if i != (@coefficients.length - 1)
if @coefficients[i+1] > 0
print " + "
else
print " - "
end
end
end
puts
end
def print_r_square
puts "R square = " + @r_square.to_s
end
end
<file_sep>/db/seeds.rb
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name: 'Emanuel', city: cities.first)
require 'csv'
POST_CODE_GAP = 20 # save 1 post code among the POST_CODE_GAP number of post codes
locations = CSV.read('./db/Postcodes.csv')
for i in 0..locations.size-1
postcode = locations[i][0]
longtitude = locations[i][6]
latitude = locations[i][5]
if ( postcode.to_i >= 3000 && postcode.to_i <= 3999 && postcode.to_i%POST_CODE_GAP == 0 )
next if PostCode.find_by(num: postcode)
pc = PostCode.create(num: postcode)
loc = Location.new_without_ref_code(
long: longtitude,
lat: latitude,
timezone: "Melbourne"
)
loc.post_code = pc
loc.save!
end
end<file_sep>/README.md
# SMD_PROJ3
## Assumptions
* Only Victoria locations and postcodes[3000 - 3999] are allowed in the usage of this application
## Installation
* $ `bundle install`
* $ `rake db:create`
* $ `rake db:migrate`
* $ `rake db:seed`
* $ `rake weather:forecastio`
* $ `rails s`
## Set Up Recurring Task
If in "development" environment:
1. `whenever --update-crontab`
If in "production":
1. Change the environtment from `development` to `production` in `config/schedule.rb`
2. Run from console `whenever --update-crontab`
## Algorithm
### When the specified location is not in our database
* The cloesest postal area is found, and the weather prediction of that area is returned.
* The closest postal area is found by calculating the sum of difference in lat and long between the given location and every registered locations in database; the location with the smallest difference is returned.
* When the sum of difference exceeds 1, approximately 100km in distance, a "beyond our prediction range" error will be returned.
### Prediction
* 4 types of regression will be done over the data, linear, polynomial, exponential, logarithmic. The one with the largest R-square value will be chosen as the best fit regression to calculate predictions.
* The predictions get more accurate when the app is left to run for a longer time with recurring task set up.
## Change Data Retrieving Frequency
* Change the `FREQUENCY` variable in `config/schedule.rb`
* Change the number of locations available by changing the `POST_CODE_GAP` in `db/seeds.rb`
## Multi-timezone Support
* every time instance must be saved to the db with a timezone attached to it
* `config/application.rb` sets the default timezone to be Melbourne (UTC +10), i.e. every time instance is converted to Melb timezone before saving by Active Record
## Note of Team Contribution
Though from the commit history, it may appear that one person did most of the commits, this is mainly because that one person is more familiar with Rails than the rest. The other two have contributed as much as they can and learnt a lot in the process, they are also the main contributers for the reflection report. We often sit together and worked together as a team, each individual of us has put in roughly the same amount of time in this project. All in all, we had a good time working together.
<file_sep>/lib/tasks/weather.rake
require "#{Rails.root}/app/support/unit_conversion.rb"
namespace :weather do
include UnitConversion
desc "Get current weather data from Forecast.io"
task forecastio: :environment do
Location.all.each do |station|
next if !station.long or !station.lat
result = JSON.parse RestClient.get("https://api.forecast.io/forecast/581e88295e8299482824f5449884df1b/#{station.lat.to_s},#{station.long.to_s}")
# Time data
record = Record.new_with_unix_time result['currently']['time']
record.location = station
# Temperature data
current_temperature = fahrenheit_to_celsius(result['currently']['temperature'].to_f)
dew_temperature = fahrenheit_to_celsius(result['currently']['dewPoint'].to_f)
record.temperature = Temperature.create(value: current_temperature, dew_point: dew_temperature, prob: 1)
# Wind data
wind_speed = miles_to_km result['currently']['windSpeed'].to_f
wind_dir = bearing_to_dir result['currently']['windBearing'].to_f
record.wind = Wind.create(dir: wind_dir, speed: wind_speed, prob: 1)
# Precipitation data
rain_amount = inch_to_mm result['currently']['precipIntensity'].to_f
record.rain = Rain.create(amount: rain_amount, prob: 1)
record.save!
p "Station ##{station.ref_code} data has been retrieved from Forecast.io"
end
end
end
<file_sep>/app/views/data/show_area.json.jbuilder
json.date @date
json.locations @my_locations do |location|
json.id location.ref_code
json.lat location.lat
json.long location.long
json.last_update location.last_update
json.measurements location.actual_records do |record|
if record.time.strftime('%d-%m-%Y') == @date
json.time record.time.strftime("%l:%M:%S %P")
json.temp record.temperature.value
json.precip record.rain.amount
json.wind_direction record.wind.dir
json.wind_speed record.wind.speed
end
end
end
<file_sep>/db/migrate/20150524083736_add_ref_code_to_location.rb
class AddRefCodeToLocation < ActiveRecord::Migration
def change
add_column :locations, :ref_code, :integer
end
end
<file_sep>/app/models/location.rb
require 'csv'
class Location < ActiveRecord::Base
belongs_to :post_code
has_many :records
delegate :predicted_records, :actual_records, to: :records
def last_update
latest = actual_records.order(:time).last
latest ? latest.time.strftime('%H:%M%p %d-%m-%Y').downcase : 'N/A'
end
def cal_distance(long, lat)
(self.lat - lat).abs + (self.long - long).abs
end
def predictions(period)
period = period.to_i if period.class == String
period = 180 if period > 180
generate_predictions
latest = actual_records.order(:time).last
result = [latest]
result += recent_predictions[0, period/10]
end
def recent_predictions
latest = predicted_records.last
return nil if !latest
predicted_records.where(created_at: latest.created_at).order(:time)
end
# Generate the predicitons for the next 180 minutes, once for every 10 minutes, and store that in db
# Actual records of the past 180 minutes has to be present for predictions to be done.
# Return nil if there is not enough data for predictions.
# Return 1 when action is complete.
def generate_predictions
# the last prediction is made less than 10 min ago
return 1 if predicted_records.any? && (Time.now - predicted_records.last.created_at) < 600
past_records = actual_records
return nil if past_records.length < 1
ref_time = past_records.order(:time).last.time
time_data = past_records.map { |rec| rec.time.to_i }
temp_value_data = past_records.map { |rec| rec.temperature.value }
temp_dew_data = past_records.map { |rec| rec.temperature.dew_point }
wind_speed_data = past_records.map { |rec| rec.wind.speed }
rain_data = past_records.map { |rec| rec.rain.amount }
temp_value_analyser = DataAnalysis.new(time_data, temp_value_data)
p temp_value_analyser
temp_dew_analyser = DataAnalysis.new(time_data, temp_dew_data)
p temp_dew_analyser
wind_speed_analyser = DataAnalysis.new(time_data, wind_speed_data)
p wind_speed_analyser
rain_analyser = DataAnalysis.new(time_data, rain_data)
p rain_analyser
(1..18).each do |i|
pred_time = ref_time + i * 10.minutes
pred_rec = predicted_records.create(time: pred_time, created_at: ref_time)
p "analysing temp #{i}"
pred_rec.temperature = Temperature.create(value: temp_value_analyser.extrapolate(pred_time.to_i)[0],
dew_point: temp_dew_analyser.extrapolate(pred_time.to_i)[0],
prob: temp_value_analyser.extrapolate(pred_time.to_i)[1])
p "analysing wind #{i}"
pred_rec.wind = Wind.create(dir: past_records.last.wind.dir,
speed: wind_speed_analyser.extrapolate(pred_time.to_i)[0],
prob: wind_speed_analyser.extrapolate(pred_time.to_i)[1])
p "analysing rain #{i}"
pred_rec.rain = Rain.create(amount: rain_analyser.extrapolate(pred_time.to_i)[0],
prob: rain_analyser.extrapolate(pred_time.to_i)[1])
end
return 1
end
class << self
# Find the closest location in the database
# Return nil if the sum of differences between the provided long lat values and those of the closest
# location exceeds 1 (appr. 100km)
def find_closest(long, lat)
result = Location.first
smallest = result.cal_distance(long, lat)
Location.all.each do |loc|
if loc.cal_distance(long, lat) < smallest
smallest = loc.cal_distance(long, lat)
result = loc
end
end
smallest <= 5 ? result : nil
end
def find_closest_with_postcode(postcode)
postcode = postcode.to_i if postcode.class == String
if PostCode.where(num: postcode).any?
return PostCode.where(num: postcode).first.locations.first
elsif postcode.to_i >= 3000 && postcode <= 3999.to_i
# reading from the csv to get lat and long
locations = CSV.read(Rails.root.join('db', 'Postcodes.csv'))
locations.each do |loc|
pc = loc[0].to_i
long = loc[6].to_d
lat = loc[5].to_d
if pc == postcode
return find_closest(long, lat)
end
end
end
nil
end
def create_without_ref_code(params={})
loc = Location.new(params)
loc.ref_code = generate_ref_code
loc.save!
loc
end
def new_without_ref_code(params={})
loc = Location.new(params)
loc.ref_code = generate_ref_code
loc
end
end
private
def Location.generate_ref_code
max_ref_code = Location.any? ? Location.order(:ref_code).last.ref_code : nil
max_ref_code ? max_ref_code + 1 : 10000
end
end
| b7570675eef7ad26e08d523b9d3f1731e35e66f6 | [
"Markdown",
"Ruby"
] | 16 | Ruby | hexinpeter/SMD_PROJ3 | e563fd6851538f09c9f466ef23f200a49aba9492 | f38106f3132edd7e73b7a0d33ce72a97d96524cf |
refs/heads/master | <file_sep>import express from 'express';
import cors from 'cors';
import bodyParser from 'body-parser'
import admin from 'firebase-admin';
import serviceAccount from './ServiceAccountKey.json'
const app = express();
/**
* Initialize Cloud Firestore
*/
admin.initializeApp({
credential: admin.credential.cert(serviceAccount)
});
let db = admin.firestore();
/**
* Add Data
*
let docRef = db.collection('users').doc('alovelace');
let setAda = docRef.set({
first: 'Ada',
last: 'Lovelace',
born: 1815
});
let aTuringRef = db.collection('users').doc('aturing');
let setAlan = aTuringRef.set({
'first': 'Alan',
'middle': 'Mathison',
'last': 'Turing',
'born': 1912
});
*/
/**
* Read Data Cloud Firestore
*/
db.collection('users').get()
.then((snapshot) => {
snapshot.forEach((doc) => {
console.log(doc.id, '=>', doc.data());
});
})
.catch((err) => {
console.log('Error getting documents', err);
});
app.get('/', (req, res) => {
res.send('SalaJuegos Server');
});
/**
* Settings
*/
app.set('port', process.env.PORT || 3000);
/**
* Middleware
*/
app.use(cors(/*{origin: ['https://salajuegos-e81f0.firebaseapp.com/','http://localhost:4200']}*/));
app.use(bodyParser.json());
/**
* Requests/Response
*/
app.route('/api/cats').get((req, res) => {
res.send({
cats: [{ name: 'lilly' }, { name: 'lucy' }],
})
})
/**
* Starting the server
*/
app.listen(app.get('port'), () => {
console.log("App now running on port", app.get('port'));
});
| 78bdc77c5ab7e39d4649bd2a9d8c266255acf77e | [
"JavaScript"
] | 1 | JavaScript | KLSR/Server | 98489f72ad37491cf0a98b27232078cf3a460bb8 | 65bc8a6aa5ad6d5fcb0b65f80b33cbbf4125a06b |
refs/heads/master | <repo_name>frankhart2017/SCARLETT<file_sep>/help_com.py
def help_commands():
print("\nxampp -> OPENS XAMPP FOLDER\nhtml -> OPENS BASIC HTML FILE")
print("php -> OPENS BASIC PHP FILE\nc -> OPENS BASIC C FILE")
print("cpp/c++ -> OPENS BASIC C++ FILE\nweb -> SHOWS LIST OF MOST USED WEBSITES\n")
<file_sep>/ASSISTANT.py
import subprocess
import os
import webbrowser
import help_com
from gtts import gTTS
import pygame
import speech_recognition as sr
from threading import Timer
import time
def audio(message):
myobj = gTTS(text=message, lang='en', slow=False)
myobj.save("welcome.mp3")
pygame.mixer.init()
pygame.mixer.music.load("welcome.mp3")
pygame.mixer.music.play()
def text_aud():
r = sr.Recognizer()
with sr.Microphone() as source:
text = r.listen(source)
try:
return r.recognize_google(text)
except:
return -1
def ret_name(usage):
if(usage != "1"):
name = input("Enter name of file:")
else:
print("Say name of your file: ")
name = str(text_aud())
return name
print("Enter your name: ")
welcome = str(text_aud())
welcome = welcome.lower()
if(welcome == "hero" or welcome == "0"):
message = "Welcome back Siddhartha."
audio(message)
print("Say 1 for voice commands: ")
usage = str(text_aud())
for x in usage:
if x=="1":
usage = "1";
print(usage)
os.system('cls')
while True:
if(usage != "1"):
command = input("\nEnter your command please: ")
command = command.lower()
else:
print("Say your voice command: ")
command = str(text_aud())
command = command.lower()
found = 0
if(command == "help" or command == "?"):
help_com.help_commands()
if(command == "xampp"):
subprocess.Popen(r'explorer /select,"C:\xampp\htdocs"')
found = 1
if(command == "html"):
name = ret_name(usage)
if(os.path.isfile(name+'.html')):
print("File exists already")
else :
file = open(name+".html","w")
file.write("<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<title></title>\n\t</head>\n\t<body>\n\t</body>\n</html>")
file.close()
subprocess.Popen(['C:\Program Files (x86)\Microsoft VS Code\Code.exe',name+'.html'])
found = 1
if(command == "php"):
name = ret_name(usage)
if(os.path.isfile(name+'.php')):
print("File exists already")
else :
file = open(name+".php","w")
file.write("<?php\n\n?>\n\n<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<title></title>\n\t</head>\n\t<body>\n\t</body>\n</html>")
file.close()
subprocess.Popen(['C:\Program Files (x86)\Microsoft VS Code\Code.exe',name+'.php'])
found = 1
if(command == "c"):
name = ret_name(usage)
if(os.path.isfile(name+".c")):
print("File exists already")
else :
file = open(name+".c","w")
file.write("#include<stdio.h>\nint main()\n{\n\n\treturn 0;\n}")
file.close()
subprocess.Popen(['C:\Program Files (x86)\Dev-Cpp\devcpp.exe',name+'.c'])
found = 1
if(command == "cpp" or command == "c++"):
name = ret_name(usage)
if(os.path.isfile(name+".cpp")):
print("File exists already")
else :
file = open(name+".cpp","w")
file.write("#include<iostream>\nusing namespace std;\nint main()\n{\n\n\treturn 0;\n}")
file.close()
subprocess.Popen(['C:\Program Files (x86)\Dev-Cpp\devcpp.exe',name+'.cpp'])
found = 1
if(command == "web"):
print("\n1)ECO WEB HOSTING\n2)FACEBOOK\n3)WHATSAPP WEB\n4)GMAIL\n")
if(usage != "1"):
ch = int(input("Enter your choice:"))
url = ["https://ecowebhosting.co.uk","https://facebook.com","https://web.whatsapp.com","https://gmail.com"]
if(len(url)>ch-1):
webbrowser.open(url[ch-1])
else:
print("Incorrect")
else:
print("Say name of website: ")
ch = str(text_aud())
ch = ch.lower()
print(ch)
if(ch == "eco"):
url = "https://ecowebhosting.co.uk"
webbrowser.open(url)
elif(ch == "facebook"):
url = "https://facebook.com"
webbrowser.open(url)
elif(ch == "whatsapp"):
url = "https://web.whatsapp.com"
webbrowser.open(url)
elif(ch == "mail"):
url = "https://gmail.com"
webbrowser.open(url)
else:
print("Not in the list")
if(command == "bye" or command=="quit" or command=="exit"):
break
if(found == 0):
print("\nCommand not found")
num = input("\nPress a key....\n")
os.system('cls')
else:
message = "Hi I am Scarlet, but I don't know you " + welcome + ". Bye Bye"
audio(message)
wait = input("Press any key to leave....")
print("Bye Bye")
<file_sep>/EXPLAIN/main.py
# Importing the libraries
import pandas as pd
import numpy as np
import pygame
import os
from gtts import gTTS
import random
# Importing the dataset
dataset = pd.read_csv('details.csv', header=None)
headings = dataset.iloc[:, 0].values.tolist()
explanations = dataset.iloc[:, 1].values
# Abbreviating the headings
abbr_headings = []
for x in headings:
abbr = ''.join(x)
abbr = abbr.split(' ')
abbre = ""
for y in abbr:
if y != '':
abbre += y[0]
abbr_headings.append(abbre)
# Function to convert text to audio and play mp3 file
def audio(message):
myobj = gTTS(text=message, lang='en', slow=False)
file_path = "welcome" + str(random.randint(1,101)) + ".mp3"
myobj.save(file_path)
pygame.mixer.init(26000)
pygame.mixer.music.load(file_path)
pygame.mixer.music.play()
# Take user input of string
list_direc = os.listdir()
for x in list_direc:
if "mp3" in x:
os.remove(x)
while True:
details = input("What do you want to know? ")
if details == "1":
break
details = details.upper()
sorry_message = "Sorry, I do not recognize what you said."
i = 0
while i<len(headings):
if details == headings[i]:
audio(explanations[i])
flag = 0
break
elif details == abbr_headings[i]:
audio(explanations[i])
flag = 0
break
else:
flag = 1
i += 1
if flag == 1:
audio(sorry_message)
| 06a27a617c26a87ff6203c2c6ce43a695c3848c5 | [
"Python"
] | 3 | Python | frankhart2017/SCARLETT | 55dfea5f1018d08d0dd1fd2b3100a3ca37a0c06b | c8857fddb88a432f5bda3ecf182ba2e6da616f71 |
refs/heads/master | <repo_name>vgasparyan1995/BigInteger<file_sep>/main.cpp
#include <iostream>
#include "BigInteger.h"
BigInteger factorial(const BigInteger& n)
{
if (n == 0) {
return 1;
} else {
return factorial(n - 1) * n;
}
}
int main()
{
//const auto value = factorial(150);
//std::cout << value.to_string() << std::endl;
std::cout << (BigInteger(2) ^ BigInteger(2048)).to_string() << std::endl;
}
| cd209ce03d1fe6286b8cd30aa6e1157a9994cb48 | [
"C++"
] | 1 | C++ | vgasparyan1995/BigInteger | 2c1876d9238a5a30d4b2eefa81166fe006fa2aac | 5fa7be518033b2fbd3c108041a94c93d764cb335 |
refs/heads/master | <repo_name>joemmccartney/DesignPatternDemo<file_sep>/expertise_strat.py
# -*- coding: utf-8 -*-
"""
Created on Sun Jul 14 16:15:54 2019
The following is the collection of strategies for determining a Humanoid's
expertise.
@author: Joe
"""
from abc import ABC, abstractmethod
class ExpertiseStratAbstract(ABC):
def __init__(self):
super().__init__()
@abstractmethod
def expertise(): pass
# Strategy for generating the value of a guards expertise in Mencrest
class MencrestExpertiseStrat(ExpertiseStratAbstract):
def expertise():
print ("I mostly just sit around all day.")
# Strategy for generating the value of a guards expertise in Karnora
class KarnoraExpertiseStrat(ExpertiseStratAbstract):
def expertise():
print ("I am a cunning adversery.")
# Strategy for generating the value of a guards expertise in Aden Valley
class AdenValleyExpertiseStrat(ExpertiseStratAbstract):
def expertise():
print ("I am a capable combatant.")
# Strategy for generating the value of a guards expertise in Vo
class VoExpertiseStrat(ExpertiseStratAbstract):
def expertise():
print ("I am a master of combat.")<file_sep>/README.md
# Design Pattern Demonstration
The program deomonstrates the Strategy and Factory design patterns within object-oriented programming. Instances of Humanoids are created using concrete factories and these instances are assigned specific strategies based on which factory is used. These strategies are designed in such a way that it is very easy to implement a new strategy and not break any code previously based on the program.
## Getting Started
The program consists of three small .py files, so ideally you should be able to run it in any standard Python environment. The Spyder ver. 3.3.3 IDE was used for development.
## Authors
* **<NAME>** - *Initial work* - [joemmccartney](https://github.com/joemmccartney)
## Acknowledgments
* [Source Making](sourcemaking.com)
<file_sep>/main.py
# -*- coding: utf-8 -*-
"""
Created on Sat Jul 13 17:51:00 2019
The following program deomonstrates the Strategy and Factory design patterns
within object-oriented programming. Instances of Humanoids are created using
concrete factories and these instances are assigned specific strategies based
on which factory is used. These strategies are designed in such a way that it
is very easy to implement a new strategy and not break any code previously
based on the program.
@author: Joe
"""
from abc import ABC
from region_strat import MencrestStrat
from region_strat import KarnoraStrat
from region_strat import AdenValleyStrat
from region_strat import VoStrat
from expertise_strat import MencrestExpertiseStrat
from expertise_strat import KarnoraExpertiseStrat
from expertise_strat import AdenValleyExpertiseStrat
from expertise_strat import VoExpertiseStrat
# Abstract Factory
class Humanoid(ABC):
def __init__(self, regionStrat, expertiseStrat):
self._regionStrat = regionStrat
self._expertiseStrat = expertiseStrat
def wealth(self):
self._regionStrat.wealth()
def religious(self):
self._regionStrat.religious()
def expertise(self):
self._expertiseStrat.expertise()
# Concrete Factories for Villagers
class MencrestVillager(Humanoid):
def __init__(self):
super(MencrestVillager, self).__init__(MencrestStrat, None)
class KarnoraVillager(Humanoid):
def __init__(self):
super(KarnoraVillager, self).__init__(KarnoraStrat, None)
class AdenValleyVillager(Humanoid):
def __init__(self):
super(AdenValleyVillager, self).__init__(AdenValleyStrat, None)
class VoVillager(Humanoid):
def __init__(self):
super(VoVillager, self).__init__(VoStrat, None)
# Concrete Factories for Guards
class MencrestGuard(Humanoid):
def __init__(self):
super(MencrestGuard, self).__init__(MencrestStrat, MencrestExpertiseStrat)
class KarnoraGuard(Humanoid):
def __init__(self):
super(KarnoraGuard, self).__init__(KarnoraStrat, KarnoraExpertiseStrat)
class AdenValleyGuard(Humanoid):
def __init__(self):
super(AdenValleyGuard, self).__init__(AdenValleyStrat, AdenValleyExpertiseStrat)
class VoGuard(Humanoid):
def __init__(self):
super(VoGuard, self).__init__(VoStrat, VoExpertiseStrat)
# Test Drive
MV = MencrestVillager()
KV = KarnoraVillager()
AVV = AdenValleyVillager()
VV = VoVillager()
MG = MencrestGuard()
KG = KarnoraGuard()
AVG = AdenValleyGuard()
VG = VoGuard()
MV.wealth()
MV.religious()
KG.wealth()
KG.religious()
KG.expertise()<file_sep>/region_strat.py
# -*- coding: utf-8 -*-
"""
Created on Sat Jul 13 17:40:02 2019
The following is the collection of strategies for determining a Humanoid's
wealth and religious disposition.
@author: Joe
"""
from abc import ABC, abstractmethod
class RegionStratAbstract(ABC):
def __init__(self):
super().__init__()
@abstractmethod
def wealth(): pass
@abstractmethod
def religious(): pass
# Strategy for generating values of citizens of the Mencrest region
class MencrestStrat(RegionStratAbstract):
def wealth():
print ("I live a modest life.")
def religious():
print ("I am a God fearing man.")
# Strategy for generating values of citizens of the Karnora region
class KarnoraStrat(RegionStratAbstract):
def wealth():
print ("I make enough to support my family.")
def religious():
print ("I reject God and his plans.")
# Strategy for generating values of citizens of the Aden Valley region
class AdenValleyStrat(RegionStratAbstract):
def wealth():
print ("I live a luxurious life.")
def religious():
print ("I am more concerned with my own well-being.")
# Strategy for generating values of citizens of the Vo region
class VoStrat(RegionStratAbstract):
def wealth():
print ("I live in the streets.")
def religious():
print ("I am nothing to God's glorious magnificence.")
| b61c3067c781617e315a2d9a9c8c783f08ce48f1 | [
"Markdown",
"Python"
] | 4 | Python | joemmccartney/DesignPatternDemo | c4f3d87c3993120276d3c0b672296a0e11285d68 | 2f2027078567cfc7d5c9cb638cab63def23d9797 |
refs/heads/master | <repo_name>Nemepher/Prepa<file_sep>/MPSI/Python/TP15.py
## IPT --- TP15 --- <NAME> ##
## 1 ##
import numpy as np
## 2 ##
A = np.array([[1,2],[3,4]])
B = np.array([[5,6],[7,8]])
C = np.array([[1,3,5],[7,9,11]])
D = np.array([[2,4],[6,8],[10,12]])
## 3 ## Lorsque les matrices ont des tailles différente, une erreur est renvoyée
print("Calculs matriciels variés avec numpy:")
print("A+B:\n",A+B)
print("A*b:\n",A*B) #A+D produit une erreur car les tailles ne correspondent pas
## 4 ##
print("dot A B:\n",np.dot(A,B))
print("dot B A:\n",np.dot(B,A))
#np.dot(C,A) Encore une erreur de dimension
# 5 ##
u=np.array([7,11,13])
v=np.array([4,5,9])
w=np.array([3,6])
'''
Numpy interprète les vecteurs ou bien comme des lignes ou bien comme des colonnes afin de donner du sens aux produits.
Les produits étant bien définis sont donc - A par w
- C par u
- w par A
- u par D
- u par v
'''
## 6 ## Cette fonction ne modifie pas la matrice d'origine
tA = A.transpose()
print("A et tA:\n",A,"\n",tA)
## 7 ##
np.vstack((A,B))
np.hstack((A,C))
#np.hstack((D,C)) et
#np.hstack((A,D)) produisent des erreurs car les dimensions des tableaux ne sont pas compatibles
## 8 ##
X =np.array([100]*3)
np.hstack((D, np.array([X]).transpose()))
## 10 ##
print("A^(-1):\n",np.linalg.inv(A))
## 11 ##
print("\nRésolution numérique des systèmes de Cramer avec linalg.inv:\nA B solution")
A = [[2,2,-3],[2,1,3],[6,4,4]]
B = [2,5,16]
print(A,B,np.linalg.solve(A,B))
A = [[0,2,-6,12],[2,-6,-1,-5],[-3,9,6,12],[-1,8,7,14]]
B = [-70,31,-51,-52]
print(A,B,np.linalg.solve(A,B))
## 12 ##
#Non inversible avec solution
A = [[0,0],[0,0]]
B = [0,0]
#np.linalg.solve(A,B) produit une erreur
#Non inversible sans solution
A = [[1,2],[3,6]]
B = [1,1]
#np.linalg.solve(A,B) produit aussi une erreur
## 13 ##
def transvection(C,i,j,c):
C[i]+=c*C[j]
def dilatation(C,i,c):
C[i]*=c
def echange(C,i,j):
for k in range(len(C[0])):
C[j,k],C[i,k] = C[i,k],C[j,k]
## 14 ##
def choixpivot(C,j):
i=0
m=0
for k in range(j,len(C)):
if m < abs(C[k,j]):
m = abs(C[k,j])
i=k
if m == 0 : return -1
return i
## 15 ##
def pivot(A,B):
C = np.hstack((A,np.array([B]).transpose()))
l = len(C)
for j in range(l):
i = choixpivot(C,j)
if i==-1 :
return -1
echange(C,i,j)
pivot = C[j,j]
for k in range(j+1,l):
transvection(C,k,j,-C[k,j]/pivot)
for j in range(l):
dilatation(C,j,1/C[j,j])
for j in range(l-1,-1,-1):
for i in range(j):
transvection(C,i,j,-C[i,j])
return(C[:,l])
## 16 ##
print(" \nTest de l'algorithme 'maison':")
A = [[0.0,2,-6,12],[2,-6,-1,-5],[-3,9,6,12],[-1,8,7,14]]
B = [-70,31,-51,-52]
C=pivot(A,B)
print("A:\n",A,"\nB:\n",B,"\nSolution obtenue:\n",C)
print("Vérification (A*C=B ?):\n",np.dot(A,C))
## 17 ##
def transvection2(C,i,j,c):
for k in range(len(C[0])):
C[i][k]+=c*C[j][k]
def dilatation2(C,i,c):
for k in range(len(C[0])):
C[i][k]*=c
def echange2(C,i,j):
for k in range(len(C[0])):
C[j][k],C[i][k] = C[i][k],C[j][k]
def choixpivot2(C,j):
i=0
m=0
for k in range(j,len(C)):
if m < abs(C[k][j]):
m = abs(C[k][j])
i=k
if m == 0 : return -1
return i
def pivot2(A,B):
C = [A[k]+[B[k]] for k in range(len(B))]
l = len(C)
for j in range(l):
i = choixpivot2(C,j)
if i==-1 :
return -1
echange2(C,i,j)
pivot = C[j][j]
for k in range(j+1,l):
transvection2(C,k,j,-C[k][j]/pivot)
for j in range(l):
dilatation2(C,j,1/C[j][j])
for j in range(l-1,-1,-1):
for i in range(j):
transvection2(C,i,j,-C[i][j])
return([C[k][l] for k in range(l)])
## 18 ##
print("\nRésolution de problèmes:")
'''
Loi des mailles : i1 -i2 -i3 = 0
i2 -i4 -i5 = 0
i6 -i3 -i5 = 0
Loi des nœuds : r*i2 + R*i4 = E
r*i2 + -R*i3 + R*i5 = 0
-R*i4 + R*i5 + r*i6 = 0
'''
E,R,r = 3,10,5
A = [[1,-1,-1,0,0,0],[0,1,0,-1,-1,0],[0,0,-1,0,-1,1],[0,r,0,R,0,0],[0,r,-R,0,R,0],[0,0,0,-R,R,r]]
B = [0,0,0,E,0,0]
print("##18##",np.linalg.solve(A,B))
## 19 ##
A = [[1,-1],[0,1]]
B = [1/3,1/5]
print("##19##",1/np.linalg.solve(A,B)[0],"soit 1h52min30sec")
'''On peut cependant (plus) facilement le résoudre à la main...'''
## 20 ##
'''
On résoud le système suivant :
a + b + 0 = 1/2
0 + b + c = 1/3
a + 0 + c = 1/4
'''
A = [[2,2,0],[0,3,3],[4,0,4]]
B = [1,1,1]
print("##20##",1/np.linalg.solve(A,B)[2])
## 21 ##
A=np.random.rand(10,10)
B=[1]*10
print("\nTest d'inversibilité:\nLa matrice\n",A,"\n a été choisie!")
try:
print("Elle est inversible! (Solution:\n",np.linalg.solve(A,B))
except:
print("ELle n'est pas inversible")
## 22 ##
'''
$\left[\begin{array}{ccc|c}
1.0 & 0.25 & 1.0 & 0.0 \\
1.0 & 1/3 & 2.0 & 0.0 \\
0.0 & 1.0 & 12.0 & 1.0 \\
\end{array}\right]\\
\left[\begin{array}{ccc|c}
1.0 & 0.25 & 1.0 & 0.0 \\
1.0 & 1/3 & 2.0 & 0.0 \\
0.0 & 1.0 & 12.0 & 1.0 \\
\end{array}\right]\\
\left[\begin{array}{ccc|c}
1.0 & 0.25 & 1.0 & 0.0 \\
0.0 & 1.0 & 12.0 & 1.0 \\
0.0 & 1/12 & 1.0 & 0.0 \\
\end{array}\right]\\
\left[\begin{array}{ccc|c}
1.0 & 0.25 & 1.0 & 0.0 \\
0.0 & 1.0 & 12.0 & 1.0 \\
0.0 & 0.0 & 0 & -1/12 \\
\end{array}\right]$
Après application de la méthode du pivot de Gauss, on trouve que le système n'admet pas de solution.
'''
## 23 ##
A=[[1,0.25,1],[1,1/3,2],[0,1,12]]
B=[0,0,1]
print("\n## 23 ##",pivot(A,B))
print(np.linalg.solve(A,B))
'''
Python parvient tout de même à trouver une solution, c'est louche...
Python accumule des erreurs d'arrondi. La matrice obtenue à la 3ême étape (avec pivot()) est ainsi :
$\left[\begin{array}{ccc|c}
1.0 & 0.25 & 1.0 & 0.0 \\
0.0 & 1.0 & 12.0 & 1.0 \\
0.0 & 0.0 & 2.220446049250313e-16 & -0.08333333333333331 \\
\end{array}\right]\\$
Le coefficient en bas à droite, censé être égal à 12-1/(1/3 - 1/4) n'est pas nul ! On pourrait réecrire une version de l'algorithme adaptée aux entiers en utlisant le module fraction...
'''
## 24 ##
'''
Le sytème equivaut à : x + y = 0
-10^{-20}*y = 1
qui est de Cramer. Il admet donc une unique solution.
'''
## 25 ##
A = [[1,1],[1,1-1e-20]]
B = [0,1]
print("\n## 25 ##",pivot(A,B))
#print(np.linalg.solve(A,B))
'''
Il s'agit encore une fois d'une erreur d'arrondi. Pour Python, 1-1e-20 = 1.0 et le système n'admet alors pas de solution.
'''
## 26 ##
Hilbert = lambda n : np.array([[1/(i+j+1) for i in range(n) ] for j in range(n)])
## 27 ## Une petite différence peut provoquer un écart bien plus important !
A = Hilbert(4)
B1 = np.array([1,0.57,0.41,0.32])
B2 = B1 + np.array([0.05,0,0,0])
print("\nPetite différence dans les conditions initiales, grand écart dans les solutions !\n\n",B1,B2)
print(pivot(A,B1),pivot(A,B2))
print(np.linalg.solve(A,B1),np.linalg.solve(A,B2))
<file_sep>/MPSI/Python/images.py
import imageio
import matplotlib.pyplot as plt
import numpy as np
image = imageio.imread("boeing-avion.jpg")
taille=np.shape(image)
largeur=taille[1] ; hauteur=taille[0]
print("largeur: ",largeur," hauteur: ",hauteur)
# 1 pixel sur 3
image2 = np.array([[image[i][j] for j in range(largeur) if j%3==0] for i in range(hauteur) if i%3==0])
# un petit morceau de l'image
image3 = np.array([[image[i][j] for j in range(400,700) ] for i in range(100,200) ])
plt.imshow(image2)
plt.show()
plt.imshow(image3)
plt.show()
<file_sep>/MPSI/Python/TP5.py
import cmath as cm
from math import sin, cos
def racines(z0,n):
z0=cm.polar(z0)
return [z0[0]**(1/n)*cm.exp(complex(0,z0[1]+(2*k*cm.pi)/n)) for k in range(n)]
#print([i**4 for i in racines(1,4)])
def log_complexe(Z):
if Z==0:
print("L'équation exp(z)=",Z," n'a pas de solutions)")
else:
print("Les solution de l'équation exp(z)=",Z," sont de la forme :\n",cm.log(abs(Z)),"+ i *(",cm.phase(Z),"+2 * k * pi ) avec k entier")
#print(log_complexe(1+3j))
a=3+4j
b=4-2j
c=-7-10j
d=-3+3j
def angle(a,b,c,r=False):
if r==True:
return cm.phase((a-b)/(c-b))
else:
return cm.phase((a-b)/(c-b))*180/cm.pi
def milieu(a,b):
return (a+b)/2
print("BAD",angle(a,d,b), angle(b,a,d), angle(d,b,a))
print("BCD", angle(b,c,d), angle(c,d,b), angle(d,b,c))
i,j,k,l = milieu(a,b), milieu(b,c), milieu(c,d), milieu(a,d)
print("IJK et KLI :",angle(i,j,k),angle(k,l,i))
print("JKL et LIJ :", angle(j,k,l),angle(k,l,i))
def transfor(a,b):
if a==0:
print("Pas une transformation")
elif a==1:
print("Translation de vecteur",b)
else:
print("Similitude directe de centre",b/(1-a),"de rapport",a+b,"et d'angle",(a+b)/b)
transfor(1+1j, 2+1j)
def morley(A,B,C):
'''Points du triangle'''
b=angle(A,B,C,True)
a=angle(C,A,B,True)
c=angle(B,C,A,True)
def inter(A,B,a,b):
return (abs(B-A)*sin(a)/sin(a+b))*rect:*2 + B
M=inter(A,B,a/3,b/3)
N=inter(B,C,b/3,c/3)
P=inter(C,A,c/3,a/3)
return(M,N,P,angle(M,N,P),angle(N,P,M),angle(P,M,N))
print(morley(0,1j,1))
<file_sep>/MPSI/Python/TP3.py
#1
def sommes(n):
S1,S2,S3=0,0,0
for k in range(1, n+1):
S1=S1+k
S2=S2+k*k
S3=S3+k*k*k
return S1,S2,S3
print(sommes(5))
print(sommes(5)[0]**2)
#2
def T(x):
if x%2==0 : return x//2
return 3*x+1
def Syracuse(n):
print(n, end=' ')
while n>1:
n=T(n)
print(n,end=' ')
def SyracuseL(n):
i=0
while n>1:
i+=1
n=T(n)
return i
Syracuse(14)
print("length :", SyracuseL(14))
def SyracuseLT(l):
n=0
s=SyracuseL(n)
while s<=l:
n+=1
s=SyracuseL(n)
return(n)
#3
from time import localtime
def conversion(t):
h,m,s = 0,0,0
h=t//3600
t=t%3600
m=t//60
s=t%60
return [h,m,s]
def bissextile(a):
return a%4==0 and (a%100!=0 or (a%100==0 and a%400==0))
def decompte(J,M,A):
jM=[0,31,28,31,30,31,30,31,31,30,31,30,31]
'''jour, mois, année'''
#l,A,M,J = 0,1,1,1
l,j,m,a=0,localtime()[2],localtime()[1],localtime()[0]
if A>a:
return
l+=(j-J)
while m>M:
if bissextile(a) and m==2:
l+=29
else:
l+=jM[m]
m-=1
while m<M:
m+=1
if bissextile(a) and m==2:
l-=29
else:
l-jM[m]
while a>A:
if bissextile(a) :
l+=366
else:
l+=365
a-=1
return l
print("decompte :", decompte(29,10,2001))
#4
def conversion10(L,b):
n=0
l=len(str(L))
for i in range(0,l):
n+=(b**i)*int(str(L)[l-1-i])
return n
def conversion(x,b):
o=[]
while x>0:
o.append(x%b)
x=x//b
o.reverse()
return o
#j=0
#while x>0:
# i=0
# while x%(b**i)==0:
# o[j]=x//(b**i)
# i+=1
# w-=o[j]*(b**i)
# j+=1
#return[o.reverse()]
print(conversion10(101010101,2))
print(conversion(102112,2))
#5
from math import floor
def premier(n):
i=2
premier = True
while i < floor(n) and premier:
if n%i==0:
premier = False
i+=1
return premier
'''def factorise(n):
o=[]
i=2
while i<10:
if n%i==0:
if premier(i):
o.append(i)
n=n//i
'''
print(premier(45))
<file_sep>/MPSI/Python/TP13.py
## IPT --- TP13 --- <NAME> ##
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import odeint
from mpl_toolkits.mplot3d.axes3d import Axes3D
## 1 ##
'''
Des solutions périodiques seraient représentées par des courbes repassants par les mêmes points et donc fermées sur le portrait de phase.
'''
## 2,3,4,5,6 ##
a,b,c,d = 3,1,2,1
G = lambda x,y : a*x-b*x*y #l'argument t n'est pas nécessaire dans ce cas
H = lambda x,y : c*x*y-d*y
#Résolution sur [0,10]. Un pas plus petit permet de se rapprocher d'une solution périodique.
#La solution obtenue pour h=0,05 avec la méthode d'Euler n'est pas périodique.
h=0.05
I = np.arange(0,10,h)
L=len(I)
X = np.zeros(L); X[0]=1
Y = np.zeros(L); Y[0]=2
#Méthodes
Phi_E = lambda F,xk,yk,h : F(xk,yk)
Phi_PM = lambda F,xk,yk,h : F(xk + h/2, yk + h/2*F(xk,yk))
Phi_PC = lambda F,xk,yk,h : 1/2*(F(xk,yk)+F(xk+h,yk+h*F(xk,yk)))
def Phi_TK(F,xk,yk,h):
k1=F(xk,yk)
k2=F(xk+h/2,yk+h/2*k1)
k3=F(xk+h/2,yk+h/2*k2)
k4=F(xk+h,yk+h*k3)
return (k1 + k2*2 + k3*2 + k4)/6
Phi_TK = np.vectorize(Phi_TK)
fig = plt.figure() #histoire d'avoir les graphiques sur une même page
plt.title("Système proies prédateurs")
plt.axis("off")
ax = fig.add_subplot(2,2,1)
for Phi in [Phi_E, Phi_PM, Phi_PC, Phi_TK]:
for k in range(L-1):
xk,yk = X[k],Y[k]
X[k+1]=xk+h*Phi(G,xk,yk,h)
Y[k+1]=yk+h*Phi(H,xk,yk,h)
ax.plot(X,Y)
ax.set_xlabel("proies")
ax.set_ylabel("prédateurs")
## 7 ##
def f(Y,t) :
x,y=Y
return [G(x,y),H(x,y)]
Y0 = 1,2
LY = odeint(f,Y0,I)
## 8 ##
X,Y = LY[:,0],LY[:,1]
## 9 ##
theme = plt.cm.viridis(np.linspace(0.1,1,14)) #Plus simple
ax = fig.add_subplot(2,2,3)
for y in range(1,15):
Y0=0.5,y/5
LY=odeint(f,Y0,I)
ax.plot(LY[:,0],LY[:,1],color=theme[y-1])
ax.set_xlabel("proies")
ax.set_ylabel("prédateurs")
## 10 ##
Y0 =1,2
LY=odeint(f,Y0,I)
ax = fig.add_subplot(2,2,2)
ax.plot(I,LY[:,1],label="prédateurs")
ax.plot(I,LY[:,0],label="proies")
ax.legend()
plt.show()
## 11 ##
'''
Si x et y sont constants, alors leur dérivée est nulle, d'ou 0=x'=ax+bxy et 0=y'=cxy-dy. On obtient alors les solutions suivantes pour (x,y) : (0,0) et (d/c,a/b). La première est située sur l'origine et la seconde au centre des courbes fermées.
'''
## 12 ##
'''
Lorsque l'on diminue ou augmente soudainement le nombre de proies ou prédateur, on obtient de nouvelles conditions initiales qui si elles sont favorables sur le moment, peuvent conduire à une augmentation de l'amplitude des variations. Il faut pour évitr cela connaitre la phase actuelle du cycle.
'''
## 13 ##
a,b,c,d,e = 3,1,2,1,0.2
G = lambda x,y : a*x-b*x*y-e*x*x
H = lambda x,y : c*x*y-d*y
I=np.arange(0,40,h)
Y0 =1,2
LY=odeint(f,Y0,I)
X,Y=LY[:,0],LY[:,1]
fig,axs=plt.subplots(1,2)
axs[1].plot(X,Y)
axs[1].set_xlabel("proies")
axs[1].set_ylabel("prédateurs")
axs[0].plot(I,Y,label="prédateurs")
axs[0].plot(I,X,label="proies")
axs[0].legend()
plt.show()
## 14 ##
a,b,c = 10,28,8/3
F = lambda x,y,z : a*(y-x)
G = lambda x,y,z : b*x-y-x*z
H = lambda x,y,z : x*y-c*z
def f(Y,t) :
x,y,z=Y
return [F(x,y,z),G(x,y,z),H(x,y,z)]
Y0=(1,0,0)
I=np.linspace(0,100,10000)
LY=odeint(f,Y0,I)
X,Y,Z = LY[:,0],LY[:,1],LY[:,2]
fig=plt.figure()
plt.title("<NAME>")
plt.axis("off")
ax = fig.add_subplot(2,2,1,projection='3d'); ax.plot(X,Y,Z,linewidth=0.5,color="orangered")
ax = fig.add_subplot(2,2,2); ax.plot(X,Y,linewidth=0.5,color="deeppink")
ax = fig.add_subplot(2,2,3); ax.plot(Y,Z,linewidth=0.5,color="deepskyblue")
ax = fig.add_subplot(2,2,4); ax.plot(Z,X,linewidth=0.5,color="chartreuse")
plt.show()
## 16,17,18,19,20 ## Les solutions finissent toutes par rejoindre une même solution périodique.
fig = plt.figure()
plt.title("<NAME> <NAME>")
plt.axis("off")
a,b = 1,1
G = lambda y,w : w # w=y', toujours pas de t
H = lambda y,w : a*b*(1-y*y)*w-b*b*y
def f(Y,t):
y,w = Y
return G(y,w),H(y,w)
I=np.linspace(0,10,400)
ax=fig.add_subplot(2,2,1)
for Y0 in [[0.5,0.5],[-2,3],[2,-3],[3,-3],[-1,4],[4,-3.5]]:
LY=odeint(f,Y0,I)
ax.plot(LY[:,0],LY[:,1])
#Pour ne dessiner que le cycle limite, il passer en argument à la fonction plot que certains points en elevant les premiers, par example LY[100:,0]
ax=fig.add_subplot(2,2,4)
plt.title("Variations de ε à ω fixé")
Y0 = -2,3
I=np.linspace(0,20,1000)
for a in np.arange(0,3,0.5):
LY=odeint(f,Y0,I)
ax.plot(LY[240:,0],LY[240:,1],linewidth=0.9)
ax=fig.add_subplot(2,2,3)
plt.title("Variations de ω à ε fixé")
I=np.linspace(0,21,1000)
for b in np.arange(0.5,3,0.5):
LY=odeint(f,Y0,I)
ax.plot(LY[300:,0],LY[300:,1],linewidth=0.9)
plt.show()
## 21,22,23,24,25 ##
fig,axs = plt.subplots(2,2)
fig.suptitle("Pendule simple")
a,w0,v0 = 1,1,0.5
G = lambda y,w : w
H = lambda y,w : -a*a*y
def f(Y,t):
y,w = Y
return G(y,w),H(y,w)
for h in [0.05,0.01,0.001]:
I=np.arange(0,20,h)
L=len(I)
X=np.zeros(L); X[0]=v0
Y=np.zeros(L); Y[0]=w0
for k in range(L-1):
xk,yk = X[k],Y[k]
X[k+1]=xk+h*Phi_E(G,xk,yk,h)
Y[k+1]=yk+h*Phi_E(H,xk,yk,h)
axs[0,0].plot(I,X)
axs[0,0].set_title("Méthode d'Euler")
Y0= [w0,v0]
LY=odeint(f,Y0,I)
axs[0,1].plot(I,LY[:,0])
axs[0,1].set_title("Avec odeint")
I=np.linspace(0,20,100)
def fr(Theta,t):
y,w=Theta
return w,-a*a*np.sin(y)
for i,w0 in enumerate([0.2,1.5]):
Y0=[w0,v0]
LY=odeint(f,Y0,I)
LYr=odeint(fr,Y0,I)
axs[1,i].plot(I,LY[:,0])
axs[1,i].plot(I,LYr[:,0])
axs[1,0].set_title("Solution réelle et approchée : θ(0) petit")
axs[1,1].set_title("θ(0) proche de pi")
plt.show()
## 26 ## Seul le pendule réel fait des tours complets
Y0=[np.pi,0]
I=np.linspace(0,50,200)
LY=odeint(f,Y0,I)
LYr=odeint(fr,Y0,I)
plt.plot(I,LY[:,0],label="odeint")
plt.plot(I,LYr[:,0],label="solution réelle")
plt.legend()
plt.title("Solution réelle et approchée pour θ(0)=2")
plt.show()
## 27 ##
'''
La résolution de l'équation pour theta0 = pi et thetha'0 = 0 n'est pas exacte. (Le pendule tombe plutot que de rester immobile)
Cette solution est un équilibre instable du pendule : la solution mathématique ne conduit à aucune evolution du système, mais ce n'est physiquement pas possible.
L'erreur de précision commise durant la résolution représente finalement mieux l'evolution d'un pendule réel.
'''
## 28 ##
fig,axs = plt.subplots(1,2)
fig.suptitle("Portait de phase des oscillateurs")
#Sélection de points particuliers
points1,points2 = [],[]
for i in np.arange(0,6,0.5):
points1.append([i,0])
for i in np.linspace(0,np.pi,6):
points2.append([i,0])
points2.append([i+np.pi,0])
for i in np.arange(-3,3,0.5):
points2.append([-np.pi,i])
points2.append([np.pi*3,i])
I=np.linspace(0,20,150)
for Y0 in points1:
LY=odeint(f,Y0,I)
axs[0].plot(LY[:,0],LY[:,1],color="tab:orange")
axs[0].set_title("oscillateur linéarisé")
for Y0 in points2:
LYr=odeint(fr,Y0,I)
axs[1].plot(LYr[:,0],LYr[:,1],color="tab:blue")
axs[1].axis([-3,9.2,-3.1,3.1])
axs[1].set_title("oscillateur réel")
plt.show()
## 29 ## On rajoute un terme d'amortissement comme dans la question 13 (theta'' = a*a*sin(theta) - b*theta')
a,b = 1,0.3
def fr(Theta,t):
y,w=Theta
return w,-a*a*np.sin(y)-b*w
#Sélection de points particuliers
points = []
for i in range(-18,22,2):
points.append([i,5])
points.append([i,-5])
I=np.linspace(0,30,200)
for Y0 in points:
LYr=odeint(fr,Y0,I)
plt.plot(LYr[:,0],LYr[:,1],color="tab:blue")
plt.axis([-6,12.5,-5,5])
plt.title("Portrait de phase de l'oscillateur réel amorti")
plt.show()
<file_sep>/MPSI/Python/TP8.py
fichier = open('hugo.txt', encoding='latin')
contenu=fichier.read()
#print(type(fichier))
#print(contenu)
fichier.close()
fichier=open('premiers-1000.txt', encoding='latin1')
#print(sum(int(L) for L in fichier))
fichier.close()
fichier=open('nouveau-fichier','w',encoding='latin1')
fichier.write('kangourou')
fichier.close()
fichier=open('nouveau-fichier','a',encoding='latin1')
fichier.write("\nEncore une fois!")
fichier.close()
fichier=open('tables.txt','w',encoding='latin1')
for i in range(1,11):
for j in range(1,11):
fichier.write(str(i)+"*"+str(j)+"="+str(i*j)+" ")
fichier.write("\n")
fichier.close()
fichier=open('matrix.txt')
#for l in fichier:
# #print(l.split(','))
#m=[ [int(i) for i in l.replace('\n','').split(",")] for l in fichier]
#print(m)
fichier.close()
def suiteS(n):
def Syra(x):
if x%2==0:
return x//2
else:
return x*3+1
S=""
S+=str(n)+" "
while n > 1:
n=Syra(n)
S+=str(n)+" "
return S
fichier=open('syracuse.txt','w',encoding='latin1')
for i in range(100):
fichier.write("Suite de Syracuse de l'entier "+str(i+1)+": "+suiteS(i+1)+"\n")
fichier.close()
from csv import reader
fichier=open('communes.csv','r')
s=reader(fichier)
grosseCommunes=[]
bonNom=[]
l=s.__next__()
l=s.__next__()
for _ in range(0,20000):
if int(l[3])>=200000:
grosseCommunes.append(l[1])
if l[1][:2]=="Ca" and l[1][-2:]=="en":
bonNom.append(l[1])
l=s.__next__()
fichier.close()
#print(grosseCommunes)
#print(bonNom)
fichier=open('hugo.txt',encoding='latin1')
contenu=fichier.read()
c=sum(len(l) for l in fichier)
m=contenu.replace("."," ").replace(","," ").replace("'"," ").replace("\n"," ").split(" ")
#print(len(m))
mots=[]
for i in m:
if 'x' in i or 'X' in i:
mots.append(i)
print(mots)
print(sum(1 for i in m if i=='Cimourdain'))
fichier.close()
def invM(s):
S=""
for i in range(1,len(s)+1):
S+=s[len(s)-i]
return S
def inverseur(name):
nName=invM(name.split(".")[0])+'.'+name.split(".")[1]
fichier1=open(name,encoding='latin1')
fichier2=open(nName,'w',encoding='latin1')
c=fichier1.read().replace("\n"," ")
fichier2.write(invM(c))
fichier1.close()
fichier2.close()
inverseur("hugo.txt")
<file_sep>/MPSI/Python/propriete.py
#%%
from math import factorial
def factSum(n):
r=0
for i in str(n):
r+=factorial(int(i))
return r
def gotSolution(n):
if 10**(n-1)>n*factorial(9):
return False
else:
return True
#%%
def findAll():
n=1
while gotSolution(n)==True:
n+=1
print(n, " is the max number of decimal")
for i in range(0,10**(n-1)):
if i==factSum(i):
print(i)
findAll()
#%%
<file_sep>/MPSI/Python/syracuse.py
#%%
def syracuse(n):
if n%2==0 :
return n/2
else :
return n*3+1
def flyTime(n):
t=0
while n!= 1:
n=syracuse(n)
t+=1
return t
def reccurence(n, l):
i=0
while i<40:
print(n)
n=syracuse(n)
i+=1
def printAll(n):
while n!=1:
print(n)
n=syracuse(n)
#%%<file_sep>/MPSI/Python/TP2.py
#%%
for i in range(6,10):
print(i)
print('koala')
print(-i)
print('kangourou')
#%%
for i in range(2,6):
print(i)
for j in range(4,6):
print([i,j])
#%%
u0=1
u1=1
u3=0
for i in range (1,10):
print(u0)
u3=u0+u1
u0=u1
u1=u3
print(str(float(u0)/u1))
#%%
L=[True, 123,1.123, [3,4,5], (1,2), 'abc']
for x in L:
print(x,type(x))
print("\n")
for i in range(len(L)):
print(L[i],type(L[i]))
#%%
s='ubktbtknvt'
for letter in s:
print(letter)
print('\n')
for i in range(len(s)):
print(s[i])
#%%
S=0
for i in range(1,101):
S+=i**2
print(S)
print(100*101*201/6)
#%%
S=0
for i in range(1,101):
for j in range (1,101):
S+=min(i,j)
print(S)
#%%
from math import factorial
f=1
for i in range(1,51):
f*=i
print(f)
print(factorial(50))
#%%
from math import factorial as fac
from math import e
S=0
for i in range(0,101):
S+=1/fac(i)
print(S)
print(e)
#%%
for i in range(9):
ligne=""
for j in range(8-i):
ligne+=" "
for j in range(2*i+1):
ligne+="*"
print(ligne)
#%%
from math import factorial
n=factorial(50)
print(n)
S=0
for c in str(n):
S+=int(c)
print(S)
#%%
print((3==3 or 1==2) and 3==4)
print(3==3 or (1==2 and 3==4))
#%%
3==3 or 1==2 and 3==4
# or prioritaire
#%%
# k%2==0 k est pair
#%%
for i in range(10):
print(i)
if i%2==0:
print("pair")
print("entier")
print("terminé")
#%%
for i in range(10):
if i%3==0:
print(i,"multiple de 3")
else :
print(-i)
#%%
for i in range(10):
if i%2==0:
print(i)
if i%3==0:
print(-i)
print("\n")
for i in range(10):
if i%2==0:
print(i)
elif i%3==0:
print(-i)
#%%
for i in range(50):
print(i)
if i%5==0:
print("A")
elif i%6==0:
print("B")
elif i%7==0:
print("C")
else:
print("D")
#%%
a=1
while a<100:
a*=2
print(a)
#%%
a=1
while a<100:
a+=2
print(a)
#%%
c=1
a=0
while c<100:
c*=105/100
a+=1
print(a)
#%%
<file_sep>/MPSI/Python/suites.py
#%%
def nextV(a):
b=0
for s in str(a):
b+=int(s)**3
return b
def reccurence(a,n):
i=0
v=a
while i<n:
print(v)
v=nextV(v)
i+=1
#%%
from math import sqrt
def nextV2(v):
return sqrt(2+v)
def reccurence2(n):
i=0
v=0
while i<n:
print(v)
v=nextV2(v)
i+=1
def getApprox(a):
n=0
v=0
while (2-v)>a:
v=nextV2(v)
n+=1
print(n)
#%%
<file_sep>/MPSI/Python/pivotGauss_latex.py
import sympy as sp
from subprocess import Popen
def transvection(C,i,j,c):
for k in range(C.shape[1]):
C[i,k] = c*C[j,k] + C[i,k]
def dilatation(C,i,c):
for k in range(C.shape[1]):
C[i,k] = c*C[i,k]
def echange(C,i,j):
for k in range(C.shape[1]):
C[j,k],C[i,k] = C[i,k],C[j,k]
def choixpivot(C,j):
i=0
m=0
for k in range(j,C.shape[0]):
if m < abs(C[k,j]):
m = abs(C[k,j])
i=k
if m == 0 : return -1
return i
def pivot(A,f,n):
C=A
l = C.shape[0]
writeMatrix(C,f,n)
for j in range(l):
i = choixpivot(C,j)
if i==-1 :
break
echange(C,i,j)
pivot = C[j,j]
writeMatrix(C,f,n)
for k in range(j+1,l):
transvection(C,k,j,-C[k,j]/pivot)
writeMatrix(C,f,n)
writeMatrix(A,f,n)
for j in range(l):
if C[j,j]!=0:
dilatation(C,j,1/C[j,j])
writeMatrix(C,f,n)
for j in range(l-1,-1,-1):
for i in range(j):
transvection(C,i,j,-C[i,j])
writeMatrix(C,f,n)
return(C)
def writeMatrix(C,f,n):
l,c = C.shape
f.write("\left[\\begin{array}{"+"c"*(c-n)+"|"+"c"*n+"}\n")
for i in range(l):
for j in range(c):
if j == c-1 : f.write(str(C[i,j])+" \\\\\n")
else: f.write(str(C[i,j])+" & ")
f.write("\end{array}\\right]\\\\\n")
A = sp.Matrix([[2,2,2,12,-22],[2,-6,-4,-5,31],[-3,9,6,12,-51],[-1,8,7,14,-52]])
'''
A=[[0.0,2,58,12],[2,-6,-4,-5],[-3,9,6,12],[-1,8,7,14]]
B=[-70,31,-51,-52]
B=[-22,31,-51,-52]
A=[[4.0,2,8,5],[2,1,2,2],[2,2,0,1],[3,2,4,3]]
B=[0,0,0,0]
A=[[1,0.25,1],[1,1/3,2],[0,1,12]]
A=[[1.0,3,4],[2,4,1],[-2,2,1]]
B=[0,0,1]'''
f = open("output.tex","w")
f.write("\\documentclass{article}\n\\setlength\parindent{0pt}\n\\begin{document}\n$")
pivot(A,f,1)
f.write("$\n\\end{document}")
f.close()
Popen(["pdflatex","output.tex"])
<file_sep>/MPSI/Python/TP10.py
import matplotlib.pyplot as plt
import numpy as np
from random import randint
#plt.fill([1,5,4,9,6],[2,0,2,-1,4],linewidth=10,color='crimson')
#plt.plot([np.cos(2*np.pi*13/30*k) for k in range(31)],[np.sin(2*np.pi*13/30*k) for k in range(31)], linewidth=10, color='crimson')
f = lambda x : np.exp(x)-4*x+9*np.cos(10*x)
#plt.plot(np.linspace(-5,5),[f(x) for x in np.linspace(-5,5)], color='crimson')
def T(n):
if n%2==0 : return n//2
else: return n*3 +1
def L(n):
c=0
while n != 1:
n=T(n)
c+=1
return c
def R(k):
if k==1 : return 0
else : return max(R(k-1), L(k))
#plt.plot([L(n) for n in range(1,101)],color='crimson')
#plt.plot([R(k) for k in range(1,101)], color='aquamarine')
S=np.linspace(0,np.pi*2)
#plt.plot([3+5*np.cos(t) for t in S], [4+5*np.sin(t) for t in S], color='crimson')
def cercle(x,y,R):
plt.plot([x+R*np.cos(t) for t in S], [y+R*np.sin(t) for t in S], color='crimson')
#for i in range(10):
# cercle(randint(0,20),randint(0,20), randint(1,10))
#for t in S:
# cercle(np.cos(t),np.sin(t),0.5)
fx = lambda t : np.cos(t)+np.cos(7*t)/2 + np.sin(17*t)/3
fy = lambda t : np.sin(t)+np.sin(t)/2 + np.cos(17*t)/3
S=np.linspace(0,np.pi*2, 300)
#plt.plot([fx(t) for t in S], [fy(t) for t in S], color="crimson")
S=np.arange(0,np.pi*50, 0.2)
r = lambda t : 1+1/3*np.cos(20/19*t)
#plt.plot(r(S)*np.cos(S), r(S)*np.sin(S), color="crimson") #!!!
phi = (1-np.sqrt(5))/2
L=np.arange(0,500)
S=np.pi*2*phi*L
A=np.sqrt(L)
#plt.plot(A*np.cos(S),A*np.sin(S), '+')
L2=np.arange(0,250)*2
#plt.plot(np.sqrt(L2)*np.cos(np.pi*2*phi*L2), np.sqrt(L2)*np.sin(np.pi*2*phi*L2), '+', color='crimson')
S=np.arange(-100,-95,0.2)
y = lambda x,K : x +K*(x**2 +1)*np.exp(-x)
for k in range(5):
plt.plot(S,y(S,k*2))
def binom(n,k):
if k==0:
return 1
return n*binom(0,k-1)//k
P = lambda n,p,k : binom(n,k)*(p**k)*(1-p)**(n-k)
#for n in range(10):
# S=np.arange(0,20,1)
# plt.plot([P(n,1/3,k) for k in S])
#plt.axis('equal')
plt.show()
<file_sep>/MPSI/Python/TP12.py
## IPT --- TP12 --- <NAME> ##
import numpy as np
import matplotlib.colors as colors
import matplotlib.cm as cmx
import matplotlib.pyplot as plt
from scipy.integrate import odeint
## 1 ##
'''
La solution générale de cette EDL1 est la somme de la solution de l'équation homogène [ y'= (t-1)²/(t²+1) * y = 0 ] et d'une solution particulière.
Or, (t-1)²/(t²+1) = 1 - 2t/(t²+1) de primitive t-ln(t²+1).
On cherche une solution particuliere sous la forme t -> at + b. On obtient alors a( t³-t²+t+1 )+ b( t²-2t+1 ) = t³-t²+t+1 donc (a,b)=(1,0) convient.
L'ensemble des solution est donc { t -> A*exp(ln(t²+1)-t) + t, A dans R}.
'''
## 2 ##
'''
Soit y une solution. Alors 8 = y(-1) = A*2/e - 1 donc A =9/2*e et la solution recherchée est t -> t + 9/2*(t²+1)exp(-1-t).
'''
## 3,4,5,6,9,10,11 --- Résolution typique d'une equa diff ##
#Données du problème
F = lambda t,y : 1/(t**2+1) * (t**3-t**2+t+1-(t-1)**2*y)
I=[-1,10]
n=30 #Plus parlant que 100 intervalles pour voir les différences entre les techniques
s=8
'''
F = lambda t,y : np.sinh(t)
I=[-10,10]
n=30
s=5
'''
#Méthodes de résolution
Phi_Euler = lambda F,tk,yk,h : F(tk,yk)
Phi_MPM = lambda F,tk,yk,h : F(tk + h/2, yk + h/2*F(tk,yk))
Phi_PC = lambda F,tk,yk,h : 1/2*(F(tk,yk)+F(tk+h,yk+h*F(tk,yk)))
def Phi_TK(F,tk,yk,h):
k1=F(tk,yk)
k2=F(tk+h/2,yk+h/2*k1)
k3=F(tk+h/2,yk+h/2*k2)
k4=F(tk+h,yk+h*k3)
return (k1 + k2*2 + k3*2 + k4)/6
Phi_TK = np.vectorize(Phi_TK)
#Solution exacte
solv = lambda t : t + 9/2*(t**2+1)*np.exp(-t-1)
def Resolution(F,I,n,s,Phi):
#Tt,Ty,h
h=(I[1]-I[0])/n
X=np.linspace(I[0],I[1],n+1) # avec des listes python X=[I[0]+h*k for k in range(n+1)]
Y=np.zeros(n+1) # Y=[0 for k in ]
Y[0]=s
for k in range(n):
Y[k+1]=Y[k] + h*Phi(F,X[k],Y[k],h)
return X,Y
#Comparaison des différentes méthodes
X,Y = Resolution(F,I,n,s,Phi_Euler) ; plt.plot(X,Y,label="Euler")
X,Y = Resolution(F,I,n,s,Phi_MPM) ; plt.plot(X,Y,label="PM")
iX,Y = Resolution(F,I,n,s,Phi_PC) ; plt.plot(X,Y,label="PC")
X,Y = Resolution(F,I,n,s,Phi_TK) ; plt.plot(X,Y,label="TK")
X=np.linspace(I[0],I[1],200) ; plt.plot(X,solv(X), color="black", label = "Solution exacte")
plt.title("Comparaison des differentes méthodes")
plt.legend()
plt.show()
## 8 ##
I=[-1,5]
L=np.linspace(-80,70,50)
X=np.linspace(-1,5,100)
#Construction d'un theme pour colorer les fonctions(bonus)
theme = cm = plt.get_cmap('rainbow') #viridis plasma
cNorm = colors.Normalize(vmin=-50, vmax=50)
scalarMap= cmx.ScalarMappable(norm=cNorm, cmap=theme)
#Representation de l'espace des phases
for s in L:
plt.plot(X,odeint(F,s,X,tfirst=True),color=scalarMap.to_rgba(s))
plt.axis([-1,5,-6,10])
plt.title("espace des phases")
plt.show()
## 12 ##
'''
y' = 2ty² equivaut lorsque y n'est pas la fonction nulle (qui est une des solutions) à -y'/y² = -2t soit en integrant 1/y = -t² + A
D'ou l'ensemble des solution est { t-> 1/(A-t²), A dans R}
Avec la condition y(0)=1/5, la solution est t-> 1/(5-t²)
'''
## 13,14,15 ##
'''
Plus l'on s'aproche du point critique (sqrt(5)), plus la méthode d'Euler s'écarte de la fonction.
Sur l'intervalle [0,3], la fonction odeint renvoie une erreure et/ou affiche des résultats aberrants.
'''
#Données du problème
F = lambda t,y : 2*t*(y**2)
s=1/5
#Solution exacte
solv = lambda t : 1/(5-t**2)
for I in [[0,2.2],[0,3]]:
X=np.linspace(I[0],I[1],200)
#Odeint
plt.plot(X,odeint(F,s,X,tfirst=True),label="Odeint")
#Solution exacte
plt.plot(X,solv(X), color="black", label = "Solution exacte")
#Méthode d'Euler
for n in [20,50,80,110]:
X,Y=Resolution(F,I,n,s,Phi_Euler)
plt.plot(X,Y,label=("Euler, n="+str(n)))
plt.axis([0,4,-3.5,3.5])
plt.legend()
plt.title("Différentes méthodes pour une borne droite égale à "+str(I[1]))
plt.show()
## 16 ##
F = lambda t,y : 1/(t**2+1) * (t**3-t**2+t+1-(t-1)**2*y)
I=[-1,5]
s=8
solv = lambda t : t + 9/2*(t**2+1)*np.exp(-t-1)
Xh=np.exp(-np.array(np.linspace(1,5,30)))
def Erreur(Phi):
erreur=[]
for h in Xh:
X=np.arange(I[0],I[1],h)
n=len(X)-1
s1=solv(X[0])
err=0
for k in range(n) :
s2=solv(X[k+1])
err+=np.abs(s2-s1-h*Phi(F,X[k],s1,h))
s1=s2
erreur.append(err)
return np.array(erreur)/erreur[0]
plt.plot(-np.log(Xh),np.log(Erreur(Phi_Euler)),label="Euler")
plt.plot(-np.log(Xh),np.log(Erreur(Phi_MPM)),label="PM")
plt.plot(-np.log(Xh),np.log(Erreur(Phi_PC)),label="PC")
plt.plot(-np.log(Xh),np.log(Erreur(Phi_TK)),label="TK")
plt.title("Comparaison des différentes erreurs")
plt.legend()
plt.show()
<file_sep>/MPSI/Python/TP7.py
from time import time
def sommes_cumulees(L):
"""1+2+...+len(L)=i!len(L)*(1+len(L))/2"""
return [sum(L[i] for i in range(0,n+1)) for n in range(0,len(L))]
#print(sommes_cumulees([1,5,7]))
from random import randint
randomList = lambda l : [randint(0,i) for i in range(l)]
L=randomList(100)
#s=time()
#sommes_cumulees(L)
#print(time()-s)
for i in range(0,5):
L=randomList(2**i)
s=time()
sommes_cumulees(L)
print(time()-s, end=' ')
print(len(L)*(1+len(L))/2)
def maximum(L):
#Lié à la longueur de la liste : L
m=L[0]
for i in L:
if i>m : m=i
return m
def maximum_indice(L):
#Lié au nombre de termes avant le max
m = maximum(L)
for i in range(len(L)):
if L[i]==m : return i
s=time()
maximum(L)
print("maximum ",time()-s)
s=time()
max(L)
print("max ", time()-s)
def recherche1(L,x):
c=0
test=False
for y in L:
c+=1
if y==x:
test=True
print(c)
return(test)
def recherche2(L,x):
c=0
test=False
for y in L:
c+=1
if y==x:
test=True
break
print(c)
return(test)
def recherche3(L,x):
c=0
for y in L:
c+=1
if y==x:
print(c)
return True
print(c)
return False
def recherche4(L,x):
c=0
i=0
trouve=False
while i<len(L) and not trouve:
if L[i]==x:
trouve=True
i=i+1
c+=1
print(c)
return trouve
L=randomList(100)
x=2
print(" ")
s=time()
recherche1(L,x)
a=time()
recherche2(L,x)
b=time()
recherche3(L,x)
c=time()
recherche4(L,x)
d=time()
x in L
e=time()
print("1:",a-s,"2:",b-a,"3:",c-b,"4:",d-c, "x in L:",e-d)
def recherche_premiere_occurence(L,x):
#Complexité liée à la position de x : peut être compris entre 1 et len(L)
for y in range(len(L)):
if L[y]==x:
return y
return -1
def recherche_liste_positions(L,x):
#Si x est dans L : complexité de "x in L", sinon lié à len(l)
if not x in L : print("nb:",x," , pas d'occurences")
else:
l=[]
for i in range(len(L)):
if L[i]==x:
l.append(i)
print("nb:",x,", occurences:",len(l),", positions:",l)
def recherche_liste_positions2(L,x):
l=[]
for i in range(len(L)):
if L[i]==x:
l.append(i)
if len(l)>0 : print("nb:",x,", occurences:",len(l),", positions:",l)
else : print("pas d'occurences")
#recherche_liste_positions(L,x)
def Dsearch1(L,x):
i = int((len(L)-1)/2)
print(i)
if L[i]>x: return Dsearch(L[:i],x)
elif L[i]<x: return i+Dsearch(L[i+1:],x)
else : return i
def Dsearch(L,x,b,a=0,c):
#Complexité relative a la position dans la chaine
i = (b+a)//2
if L[i]>x:return Dsearch(L,x,i,a)
elif L[i]<x:return i+Dsearch(L,x,b,i)
elif L[i]==x: return i
else : return -1
L=[1,2,3,8,9,14,15]
print(" ")
#print("position",Dsearch(L,14,len(L)))
for _ in range(10):
L=randomList(10)
L.sort()
s=time()
Dsearch(L,1,len(L))
print(time()-s)
<file_sep>/MPSI/Sqlite/livres.sql
titre auteur illustateur ISBN proprietaire annee
------------------ ----------- ----------- ---------- ------------ ----------
Les Contemplations <NAME> 123 Augustin 1856
La Supplication <NAME> 548 <NAME> 1997
Le Gai savoir <NAME> 151 <NAME> 1887
<file_sep>/MPSI/Python/TP.py
import numpy as np
import matplotlib.pyplot as plt
import scipy.optimize as opt
from math import pi, sqrt, log
f = lambda x : (x-pi)*(x-sqrt(2)) #sur [0,4]
def dicho(f, a , b, eps):
g,d=a,b
while d-g>2*eps:
m = (g+d)/2
if f(g)*f(d) < 0 : g=m
else : d = m
return (g+d)/2
print(pi, dicho(f,3,3.5,1e-8))
print(sqrt(2), dicho(f,1,2,0.001))
def newton(f,fp,a,n):
x=a
while n>0:
x=x-f(x)/fp(x)
n-=1
return x
'''
f= lambda x : x**3 -5*x + 12
fp = lambda x : 3*x**2 - 5
I=np.linspace(-10,10,100)
plt.plot(I,f(I))
for n in range(3):
x = newton(f,fp,5,n)
plt.plot([x]*2,[-100,100])
plt.plot([-50,50],[f(x)]*2)
plt.show()
'''
f = lambda x : x**2-2
fp = lambda x : 2*x
def newton2(a,eps):
x=a
while abs(f(x))>eps:
x= x- (x**2-2)/(2*x)
return x
print(newton2(5,1e-5))
def newton3(f,fp,a,eps):
x=a-f(a)/fp(a)
x2=a
while abs(f(x)-f(x2))>eps:
x2=x
x = x - f(x)/fp(x)
return x
f= lambda x : (x-pi)
print(opt.bisect(f,0,4))
f= lambda x : x**2 -2
print(opt.newton(f,2))
print(np.roots([5,6,0,0,2]))
def D0(f,x,h=1e-3):
return (f(x+h)-f(x))/h
def D1(f,x,h=1e-3):
return (f(x+h)-f(x-h))/(2*h)
print(D0(f,5),D1(f,5))
f = np.vectorize(lambda x : log(1+x))
I=np.arange(1,30)
plt.plot(I,D1(f,0,10.0**(-I)))
plt.show()
def delta(eps):
return 1-np.vectorize(dicho)(lambda x : log(x), 0.1,2,eps)
I=10.0**(-np.linspace(1,5,500))
plt.plot(-np.log(I),np.log(np.abs(delta(I))))
plt.show()
<file_sep>/MPSI/Python/TP11.py
import numpy as np
import matplotlib.pyplot as plt
import scipy.optimize as opt
import scipy.misc as msc
I = np.arange(0,10)
f = lambda x : np.exp(x*2)-15
def D0(x,f,h=1e-3):
return (f(x+h)-f(x))/h
def D1(x,f,h=1e-3) :
return (f(h+x)-f(x-h))/(2*h)
def lambdaN(f,a,n, s):
x=a
while n>0:
x = x - f(x)/D1(x,f,1e-3)
n-=1
return abs(s-x)
def lambdaD(f,a,b,n,s):
g,d = a,b
while n>0 :
m =(d+g)/2
if f(d)*f(g)<0 : g = m
else : d = m
n-=1
return abs(s-(g+d)/2)
plt.plot(I, (np.vectorize(lambdaN)(f,2,I,1.5)),label="Newton" )
plt.plot(I, (np.vectorize(lambdaD)(f,0.1,2,I,1.5)), label="Dicho")
plt.title("erreur/itérations")
plt.legend()
plt.show()
I=np.arange(0,15); J=10.0**(-I)
f = lambda x : np.log(1+x)
fp = lambda x : 1/(1+x)
x=0
lambda0 = lambda x,f,h : D0(x,f,h)-fp(x)
lambda1 = lambda x,f,h : D1(x,f,h)-fp(x)
plt.plot(I,np.vectorize(lambda0)(x,f,J))
plt.plot(I,np.vectorize(lambda1)(x,f,J))
plt.show()
<file_sep>/MPSI/Python/TP9.py
import numpy as np
from math import pi, cos
T=np.array([1,3,7,9])
print(type(T))
A=np.zeros((4,5))
for i in range(4):
for j in range(5):
A[i,j]=j+100*i
#print(A)
#print([[j+100*i for j in range(5)] for i in range(4)])
A=[[j/(i+j) for i in range(1,3)] for j in range(1,4)]
B=[cos(k*pi/180) for k in range(91)]
#print(A)
#print(B)
def vandermonde(A):
n=len(A)
B=np.ones((n,n))
for i in range(n):
for j in range(n):
B[i,j]=A[i]**j
return B
#print(vandermonde([1,2,3]))
A=np.ones((4,4)); A[2,3]=2; A[3,1]=6
#print(A)
B=np.zeros((7,7)); B[2:4,1:3]=np.ones((2,2))*2
#print(B)
def norme(A):
return np.sqrt(sum(A**2))
#print(norme(np.array([1,2,3])))
A=np.zeros((5,8))
A[3:,:-5]=np.ones((2,3))
A[:3,:3]=np.diag([5,6,7])
A[:,3:]=np.eye(5)
A=np.hstack((A,np.ones((5,1))*4))
A=np.vstack((A,np.ones((1,9))*3))
A=np.hstack((np.ones((6,1))*8, A))
#print(A)
<file_sep>/MPSI/Sqlite/TP16.sql
-- TP16 -- <NAME>
DROP TABLE IF EXISTS "livres";
DROP TABLE IF EXISTS "ecrivains";
DROP TABLE IF EXISTS "auteurs";
.headers on
.mode column
-- 3 --
CREATE TABLE livres(
titre TEXT NOT NULL,
auteur TEXT,
illustateur TEXT DEFAULT NULL,
ISBN INT PRIMARY KEY,
proprietaire TEXT
);
-- 4 --
ALTER TABLE livres ADD COLUMN annee INT;
-- 5 --
INSERT INTO livres VALUES
("Les Contemplations","<NAME>","","123","Augustin","1856"),
("La Supplication","<NAME>","","548","","1997");
-- 6 -- La colonne ISBN est la clée primaire, imposible d'ajouter des doublons
INSERT INTO livres VALUES ("Le Gai savoir","<NAME>","","123","","1887");
INSERT INTO livres VALUES ("Le Gai savoir","<NAME>","","151","","1887");
-- 8 --
CREATE TABLE ecrivains(
Nom TEXT NOT NULL,
Prenom TEXT NOT NULL,
Pays TEXT,
Anneenaissance INT,
Anneedeces INT
);
-- 9 --
INSERT INTO ecrivains VALUES
("Hugo","Victor","France","1802","1885"),
("Svetlana","Alexievitch","Ukraine","1948","");
-- 10 --
ALTER TABLE ecrivains RENAME TO auteurs;
-- 11 --
CREATE TABLE titi(toto);
DROP TABLE titi;
-- 12 --
UPDATE livres SET proprietaire = "<NAME>" WHERE auteur != "<NAME>";
-- 13 --
.output livres.sql
SELECT * FROM livres;
.output stdout
-- 14 -- Alternative à .output FILENAME suivi de .output stdout
.mode csv
.once livres.csv
SELECT * FROM livres;
-- 15 --
.mode column
.import livres.csv livres2
SELECT * FROM livres2;
<file_sep>/MPSI/Python/TP1.py
#%%
def swapVar(a,b):
return b,a
#%%
2+2
print(2*3)
#%%
for i in range (6,10):
print(i)
print('koala')
print(-i)
print('kangourou')
#%%
#Ceci est un petit programme pour deviner votre âge
res = 0
for k in range(7):
for i in range(128):
if i%(2**(k+1)) >= 2**k:
print(str(i),end=" ")
print()
if input("votre age figure t'il dans cette liste? o/n")=="o":
res+=2**k
print()
print('Vous avez '+str(res)+' ans!')
#%%
from math import factorial
def titi(n):
res=1
for i in range(2,n+1):
res*=i
return res
print(titi(5))
print(factorial(5))
#%%
from math import factorial
for i in range(100,1000):
if i == factorial(int(str(i)[2]))+factorial(int(str(i)[1]))+factorial(int(str(i)[0])):
print(i)
#%%
from math import sqrt
def numberOfMen(s=13, a=1):
for n in range (s+a,s+a+1000):
b= 13*n*n+a
if sqrt(b)==int(sqrt(b)):
print(b)
numberOfMen(13,1)
<file_sep>/MPSI/Python/TP6.py
caractere = lambda M, c: c in M
def caractere(M,c):
for i in M:
if c==i:
return True
return False
#print(caractere("test",'h'))
compte_caractere = lambda M,c: sum(1 for i in M if i==c)
#print(compte_caractere("test",'t'))
def match(M,m,p):
for i in range(len(m)) :
if i+p>=len(M) or M[i+p]!=m[i]:
return False
return True
#print(match("test moi","test",6))
def sous_mot(M,n):
p=0
trouve = False
while not trouve and p<=len(M):
trouve=match(M,n,p)
p+=1
return trouve
#print(sous_mot("test moi", "t em"))
def pos_sous_mot(M,n):
l=[]
s=0
p=0
while sous_mot(M[s:],n):
print(M[s:])
while not match(M,n,s):
s+=1
l.append(s)
s+=1
return l
#print(pos_sous_mot("motmoest moi", "mo"))
compte_sous_mot = lambda M,n: sum(1 for i in range(len(M)) if match(M,n,i))
#print(compte_sous_mot(["e","e","r"],["e"]))
from random import randint
def chaine_aleatoire(n):
pool="ATGC"
s=""
for _ in range(n):
s+=pool[randint(0,3)]
return s
#print(chaine_aleatoire(50))
#print(sum(compte_sous_mot(chaine_aleatoire(10**4),chaine_aleatoire(5)) for _ in range(100))/100)
#(1/4)⁴
longueurA = lambda M: len(max(M.replace("C"," ").replace("T"," ").replace("G"," ").split(), key=len))
def longueur(M,L):
for i in L:
M= M.replace(i," ")
return len(max(M.split(), key=len))
#print(longueurA(chaine_aleatoire(50)))
def longueurATGC(M):
lA=longueur(M,"TGC")
lT=longueur(M,"AGC")
lG=longueur(M,"ATC")
lC=longueur(M,"ATG")
return max(lA,lT,lG,lC)
#print(longueurATGC("AATGAGGTTTTTCCCCC"))
def nombre_mots(M):
state=0
p=0
c=0
for p in M:
if p in [" " , "," , ";" , "'" , "-" , "." , "!" , "?"]:
state=0
elif state==0:
state=1
c+=1
return c
#print(nombre_mots(C'est super chez lui ! - Vraiment ?"))
long_mot = lambda M: len(max(M.split(), key=len))
def long_mot(M):
state=0
tM=0
m=0
for p in M:
if p==" ":
state=0
if m>tM: tM=m
m=0
elif state==0:
state=1
m+=1
else : m+=1
return tM
#print(long_mot("C'est super chez lui ! - Vraiment ?"))
<file_sep>/MPSI/Sqlite/geographie.sql
DROP TABLE IF EXISTS "communes";
CREATE TABLE communes(
num_departement varchar(3) DEFAULT NULL,
nom varchar(45) DEFAULT NULL,
canton varchar(4) DEFAULT NULL,
population_2010 mediumint(11) DEFAULT NULL,
population_1999 mediumint(11) DEFAULT NULL,
surface float DEFAULT NULL,
longitude varchar(9) DEFAULT NULL,
latitude varchar(8) DEFAULT NULL,
zmin mediumint(4) DEFAULT NULL,
zmax mediumint(4) DEFAULT NULL
);
INSERT INTO "communes" VALUES('01','Ozan','26',618,469,6.6,'2866','51546',170,205);
INSERT INTO "communes" VALUES('01','Cormoranche-sur-Saône','27',1058,903,9.85,'2772','51379',168,211);
INSERT INTO "communes" VALUES('01','Plagne','03',129,83,6.2,'3769','51324',560,922);
INSERT INTO "communes" VALUES('01','Tossiat','25',1406,1111,10.17,'3309','51268',244,501);
INSERT INTO "communes" VALUES('01','Pouillat','33',88,58,6.23,'3435','51475',333,770);
INSERT INTO "communes" VALUES('01','Torcieu','28',698,643,10.72,'3398','51025',257,782);
INSERT INTO "communes" VALUES('01','Replonges','02',3500,2841,16.6,'2833','51456',169,207);
INSERT INTO "communes" VALUES('01','Corcelles','06',243,222,14.16,'3597','51151',780,1081);
INSERT INTO "communes" VALUES('01','Péron','12',2143,1578,26.01,'3989','51322',411,1501);
INSERT INTO "communes" VALUES('01','Relevant','30',466,367,12.38,'2903','51211',235,282);
INSERT INTO "communes" VALUES('01','Chaveyriat','10',927,810,16.87,'3026','51331',188,260);
INSERT INTO "communes" VALUES('01','Vaux-en-Bugey','17',1169,1003,8.22,'3352','51031',252,681);
INSERT INTO "communes" VALUES('01','Maillat','22',668,664,11.31,'3557','51255',497,825);
INSERT INTO "communes" VALUES('01','Faramans','19',681,591,11.22,'3099','51002',255,306);
INSERT INTO "communes" VALUES('01','Béon','09',373,364,10.3,'3798','50950',228,1412);
INSERT INTO "communes" VALUES('01','Saint-Bernard','34',1375,1281,3.15,'2667','51050',167,198);
INSERT INTO "communes" VALUES('01','Rossillon','36',148,147,8.07,'3619','50924',324,1022);
INSERT INTO "communes" VALUES('01','Pont-d''Ain','25',2627,2309,11.22,'3333','51165',232,314);
INSERT INTO "communes" VALUES('01','Nantua','22',3713,3922,12.79,'3633','51282',427,1125);
INSERT INTO "communes" VALUES('01','Chavannes-sur-Reyssouze','26',680,580,16.55,'2952','51590',175,218);
INSERT INTO "communes" VALUES('01','Neuville-les-Dames','10',1504,1232,26.59,'2963','51291',210,271);
INSERT INTO "communes" VALUES('01','Flaxieu','36',63,50,2.79,'3776','50898',225,385);
INSERT INTO "communes" VALUES('01','Hotonnes','06',306,295,28.4,'3730','51109',636,1338);
INSERT INTO "communes" VALUES('01','Saint-Sorlin-en-Bugey','17',1061,938,9.07,'3371','50983',196,700);
INSERT INTO "communes" VALUES('01','Songieu','09',130,123,20.58,'3740','51082',567,1275);
INSERT INTO "communes" VALUES('01','Virieu-le-Petit','09',309,281,16.36,'3764','51010',419,1524);
INSERT INTO "communes" VALUES('01','Saint-Denis-en-Bugey','01',2178,1939,2.61,'3325','51058',234,338);
INSERT INTO "communes" VALUES('01','Charnoz-sur-Ain','19',911,808,6.62,'3206','50969',203,244);
INSERT INTO "communes" VALUES('01','Chazey-sur-Ain','17',1464,1200,21.95,'3242','50992',202,261);
INSERT INTO "communes" VALUES('01','Marchamp','18',118,108,13.11,'3561','50874',400,940);
INSERT INTO "communes" VALUES('01','Culoz','31',2909,2620,19.36,'3828','50943',226,1430);
INSERT INTO "communes" VALUES('01','Mantenay-Montlin','29',288,247,10.8,'3068','51583',180,222);
INSERT INTO "communes" VALUES('01','Marboz','11',2182,2164,40.14,'3246','51492',194,240);
INSERT INTO "communes" VALUES('01','Foissiat','21',1912,1562,40.36,'3153','51523',186,228);
INSERT INTO "communes" VALUES('01','Treffort-Cuisiat','33',2204,1908,39.41,'3369','51413',221,681);
INSERT INTO "communes" VALUES('01','Izieu','04',201,178,7.67,'3674','50727',211,758);
INSERT INTO "communes" VALUES('01','Saint-Étienne-du-Bois','33',2441,2045,28.38,'3285','51431',213,259);
INSERT INTO "communes" VALUES('01','Hauteville-Lompnes','15',4044,3653,50.34,'3625','51088',455,1240);
INSERT INTO "communes" VALUES('01','Saint-Trivier-sur-Moignans','30',1877,1537,41.99,'2846','51193',230,289);
INSERT INTO "communes" VALUES('01','Peyriat','16',171,157,5.96,'3526','51282',558,825);
INSERT INTO "communes" VALUES('01','Évosges','28',140,109,12.08,'3513','51068',560,1001);
INSERT INTO "communes" VALUES('01','Poncin','24',1644,1371,19.77,'3411','51206',240,540);
INSERT INTO "communes" VALUES('01','Crans','08',269,258,13.23,'3171','51072',249,322);
INSERT INTO "communes" VALUES('01','Montréal-la-Cluse','22',3457,3699,12.83,'3593','51319',473,960);
INSERT INTO "communes" VALUES('01','Cleyzieu','28',135,116,7.82,'3438','51009',440,927);
INSERT INTO "communes" VALUES('01','Lompnieu','09',122,103,11.35,'3693','51069',524,1241);
INSERT INTO "communes" VALUES('01','Villereversure','07',1208,1102,17.45,'3400','51324',279,480);
INSERT INTO "communes" VALUES('01','Saint-Martin-du-Mont','25',1651,1304,28.09,'3324','51224',246,556);
INSERT INTO "communes" VALUES('01','Saint-Genis-Pouilly','13',8914,6382,9.77,'4094','51382',419,502);
INSERT INTO "communes" VALUES('01','Bolozon','16',94,94,4.92,'3486','51325',261,673);
INSERT INTO "communes" VALUES('01','Confrançon','21',1157,862,18.17,'3032','51408',192,224);
INSERT INTO "communes" VALUES('01','Lochieu','09',91,73,7.07,'3768','51034',479,1426);
INSERT INTO "communes" VALUES('01','Chanoz-Châtenay','10',706,492,13.42,'2993','51316',194,268);
INSERT INTO "communes" VALUES('01','Villebois','17',1153,953,14.46,'3443','50942',195,960);
INSERT INTO "communes" VALUES('01','Ceignes','16',265,229,10.01,'3514','51245',580,862);
INSERT INTO "communes" VALUES('01','Saint-Didier-sur-Chalaronne','32',2776,2263,24.98,'2757','51308',167,223);
INSERT INTO "communes" VALUES('01','Revonnas','07',788,493,7.75,'3326','51291',255,504);
INSERT INTO "communes" VALUES('01','Bourg-Saint-Christophe','19',1173,824,8.98,'3138','50990',207,305);
INSERT INTO "communes" VALUES('01','Condeissiat','10',756,649,21.64,'3048','51287',232,268);
INSERT INTO "communes" VALUES('01','Pirajoux','11',360,299,12.99,'3292','51524',192,237);
INSERT INTO "communes" VALUES('01','Chalamont','08',2322,1656,32.88,'3149','51107',269,330);
INSERT INTO "communes" VALUES('01','<NAME>','08',540,416,19.96,'3058','51137',267,286);
INSERT INTO "communes" VALUES('01','Versailleux','08',332,254,18.77,'3075','51089',274,303);
INSERT INTO "communes" VALUES('01','Montagnat','39',1646,1421,13.75,'3275','51301',229,282);
INSERT INTO "communes" VALUES('01','Vieu','09',380,311,6.54,'3717','50990',280,540);
INSERT INTO "communes" VALUES('01','Saint-André-de-Corcy','42',2991,3098,20.73,'2906','51029',279,306);
INSERT INTO "communes" VALUES('01','Bressolles','20',709,587,7.73,'3065','50963',205,292);
INSERT INTO "communes" VALUES('01','Péronnas','39',6054,5530,17.55,'3184','51309',223,277);
INSERT INTO "communes" VALUES('01','Colomieu','04',115,128,5.96,'3650','50814',319,476);
INSERT INTO "communes" VALUES('01','Monthieux','35',599,579,10.75,'2893','51064',281,311);
INSERT INTO "communes" VALUES('01','Saint-Jean-sur-Reyssouze','29',744,582,27.48,'3029','51551',178,218);
INSERT INTO "communes" VALUES('01','Garnerans','32',656,565,8.57,'2783','51340',168,215);
INSERT INTO "communes" VALUES('01','Montrevel-en-Bresse','21',2362,1995,10.27,'3102','51485',192,220);
INSERT INTO "communes" VALUES('01','Conand','28',104,69,15.28,'3483','50992',351,1021);
INSERT INTO "communes" VALUES('01','Challes-la-Montagne','24',179,203,7.65,'3475','51250',440,700);
INSERT INTO "communes" VALUES('01','Mogneneins','32',727,572,8.57,'2750','51265',168,238);
INSERT INTO "communes" VALUES('01','Thoissey','32',1540,1355,1.34,'2739','51303',168,178);
INSERT INTO "communes" VALUES('01','Chaleins','30',1165,1025,17,'2742','51145',193,267);
INSERT INTO "communes" VALUES('01','Neuville-sur-Ain','25',1571,1237,19.79,'3373','51203',242,427);
INSERT INTO "communes" VALUES('01','Thil','40',1070,946,5.15,'2983','50905',174,183);
INSERT INTO "communes" VALUES('01','Jujurieux','24',2097,1696,15.39,'3414','51156',242,633);
INSERT INTO "communes" VALUES('01','Oncieu','28',91,78,7.76,'3485','51066',300,807);
INSERT INTO "communes" VALUES('01','Lurcy','30',393,256,4.81,'2716','51181',169,233);
INSERT INTO "communes" VALUES('01','Balan','20',2348,1534,18.04,'3069','50927',178,233);
INSERT INTO "communes" VALUES('01','Ambutrix','17',729,586,5.22,'3335','51044',237,370);
INSERT INTO "communes" VALUES('01','Sainte-Croix','20',534,468,10.62,'3017','50994',229,294);
INSERT INTO "communes" VALUES('01','Blyes','17',886,691,9.32,'3236','50941',199,243);
INSERT INTO "communes" VALUES('01','Conzieu','04',135,99,7.2,'3634','50807',311,1020);
INSERT INTO "communes" VALUES('01','Niévroz','20',1488,1359,10.46,'3030','50918',175,197);
INSERT INTO "communes" VALUES('01','Nurieux-Volognat','16',1058,952,19.34,'3544','51317',448,840);
INSERT INTO "communes" VALUES('01','Ambléon','04',116,86,5.88,'3627','50833',330,940);
INSERT INTO "communes" VALUES('01','Saint-Maurice-de-Gourdans','19',2498,1949,25.39,'3176','50913',182,244);
INSERT INTO "communes" VALUES('01','Chézery-Forens','12',434,367,46.57,'3922','51357',435,1692);
INSERT INTO "communes" VALUES('01','Sault-Brénaz','17',1043,974,5.61,'3415','50950',196,660);
INSERT INTO "communes" VALUES('01','Murs-et-Gélignieux','04',241,204,6.46,'3695','50713',210,460);
INSERT INTO "communes" VALUES('01','<NAME>','06',138,142,26.95,'3697','51147',706,1177);
INSERT INTO "communes" VALUES('01','Cormoz','29',625,512,19.56,'3217','51610',187,223);
INSERT INTO "communes" VALUES('01','Saint-Martin-de-Bavel','36',443,333,8.5,'3712','50944',249,442);
INSERT INTO "communes" VALUES('01','Saint-Trivier-de-Courtes','29',1013,963,16.53,'3050','51622',184,218);
INSERT INTO "communes" VALUES('01','Boyeux-Saint-Jérôme','24',321,277,16.94,'3467','51144',329,900);
INSERT INTO "communes" VALUES('01','Château-Gaillard','01',1818,1370,16.06,'3297','51082',222,253);
INSERT INTO "communes" VALUES('01','Prémeyzel','04',234,242,7.63,'3679','50760',290,750);
INSERT INTO "communes" VALUES('01','Arandas','28',163,135,14.1,'3500','50995',455,939);
INSERT INTO "communes" VALUES('01','Châtenay','08',352,308,14.95,'3183','51148',272,317);
INSERT INTO "communes" VALUES('01','Innimond','18',114,95,13.44,'3595','50870',811,1218);
INSERT INTO "communes" VALUES('01','Boz','26',496,360,7.31,'2859','51563',168,206);
INSERT INTO "communes" VALUES('01','Briord','18',893,674,12.29,'3470','50869',200,580);
INSERT INTO "communes" VALUES('01','Reyrieux','42',4093,3690,15.7,'2763','51038',163,297);
INSERT INTO "communes" VALUES('01','Matafelon-Granges','16',652,484,21.54,'3575','51401',267,783);
INSERT INTO "communes" VALUES('01','Drom','07',209,160,7.78,'3369','51353',310,505);
INSERT INTO "communes" VALUES('01','Châtillon-en-Michaille','03',3120,2657,37.62,'3848','51272',373,1241);
INSERT INTO "communes" VALUES('01','Polliat','43',2403,2019,20.07,'3099','51388',198,233);
INSERT INTO "communes" VALUES('01','Vesancy','14',526,449,10.7,'4171','51498',582,1490);
INSERT INTO "communes" VALUES('01','Massieux','42',2428,2119,3.1,'2771','51010',168,284);
INSERT INTO "communes" VALUES('01','Saint-Cyr-sur-Menthon','27',1636,1313,16.93,'2929','51417',181,217);
INSERT INTO "communes" VALUES('01','Serrières-sur-Ain','16',119,79,8.18,'3461','51281',260,649);
INSERT INTO "communes" VALUES('01','Nivollet-Montgriffon','28',143,91,8.24,'3482','51115',440,833);
INSERT INTO "communes" VALUES('01','Izernore','16',2278,1652,20.86,'3575','51356',377,822);
INSERT INTO "communes" VALUES('01','Saint-Nizier-le-Désert','08',880,489,24.96,'3124','51173',268,323);
INSERT INTO "communes" VALUES('01','Guéreins','32',1308,1065,4.51,'2715','51231',169,232);
INSERT INTO "communes" VALUES('01','Illiat','32',570,464,20.37,'2835','51323',190,257);
INSERT INTO "communes" VALUES('01','<NAME>','25',301,300,14.75,'3250','51235',248,302);
INSERT INTO "communes" VALUES('01','Saint-Didier-de-Formans','34',1792,1545,6.53,'2715','51063',179,258);
INSERT INTO "communes" VALUES('01','Mérignat','24',139,114,3.17,'3444','51188',300,587);
INSERT INTO "communes" VALUES('01','Saint-Éloi','19',399,403,14.26,'3129','51037',234,310);
INSERT INTO "communes" VALUES('01','<NAME>-du-Châtelard','35',341,263,13.37,'2988','51188',236,285);
INSERT INTO "communes" VALUES('01','Saint-Jean-de-Niost','19',1421,1082,14.19,'3202','50933',193,242);
INSERT INTO "communes" VALUES('01','Savigneux','30',1204,876,14.75,'2790','51112',237,287);
INSERT INTO "communes" VALUES('01','Nattages','04',564,393,10.33,'3808','50811',220,633);
INSERT INTO "communes" VALUES('01','Saint-Benoît','18',773,582,21.65,'3613','50772',201,778);
INSERT INTO "communes" VALUES('01','Douvres','01',962,646,5.26,'3374','51099',249,480);
INSERT INTO "communes" VALUES('01','Francheleins','30',1323,994,13.56,'2747','51193',174,273);
INSERT INTO "communes" VALUES('01','Dortan','23',1996,2188,18.11,'3692','51465',300,758);
INSERT INTO "communes" VALUES('01','Saint-Germain-les-Paroisses','04',387,307,16.27,'3646','50860',295,1000);
INSERT INTO "communes" VALUES('01','Miribel','40',9066,8545,24.49,'2907','50916',168,314);
INSERT INTO "communes" VALUES('01','Lancrans','12',1052,934,9.66,'3885','51249',350,1606);
INSERT INTO "communes" VALUES('01','Échenevex','14',1631,1203,16.44,'4110','51454',490,1682);
INSERT INTO "communes" VALUES('01','Saint-Jean-sur-Veyle','27',1082,958,11.21,'2866','51398',176,213);
INSERT INTO "communes" VALUES('01','Billiat','03',484,411,13.7,'3832','51197',324,1314);
INSERT INTO "communes" VALUES('01','L''Abergement-de-Varey','01',221,167,9.15,'3431','51119',290,748);
INSERT INTO "communes" VALUES('01','Villeneuve','30',1383,939,26.79,'2778','51134',230,287);
INSERT INTO "communes" VALUES('01','Villars-les-Dombes','35',4399,4197,24.65,'2992','51114',263,295);
INSERT INTO "communes" VALUES('01','Thézillieu','15',324,300,26.25,'3627','50992',706,1123);
INSERT INTO "communes" VALUES('01','Saint-Étienne-sur-Reyssouze','26',531,387,13.82,'2960','51570',175,209);
INSERT INTO "communes" VALUES('01','Souclin','17',261,221,13.19,'3424','50974',420,1064);
INSERT INTO "communes" VALUES('01','Saint-Just','39',881,788,3.38,'3270','51323',235,268);
INSERT INTO "communes" VALUES('01','Civrieux','42',1362,1079,19.76,'2827','51023',225,311);
INSERT INTO "communes" VALUES('01','Argis','28',421,389,7.84,'3505','51038',300,819);
INSERT INTO "communes" VALUES('01','Talissieu','09',425,405,4.8,'3765','50962',232,574);
INSERT INTO "communes" VALUES('01','Birieux','35',236,145,15.83,'3004','51059',277,291);
INSERT INTO "communes" VALUES('01','Saint-Julien-sur-Veyle','10',715,523,9.84,'2908','51336',184,252);
INSERT INTO "communes" VALUES('01','Thoiry','13',5205,4068,28.93,'4048','51374',400,1704);
INSERT INTO "communes" VALUES('01','Laiz','27',1130,990,10.31,'2836','51387',173,210);
INSERT INTO "communes" VALUES('01','Cressin-Rochefort','04',374,308,7.93,'3805','50863',225,554);
INSERT INTO "communes" VALUES('01','Saint-Champ','04',139,132,5.14,'3771','50871',286,554);
INSERT INTO "communes" VALUES('01','Saint-Georges-sur-Renon','10',197,162,5.66,'2995','51228',240,291);
INSERT INTO "communes" VALUES('01','Lantenay','06',257,257,6.59,'3561','51175',650,1012);
INSERT INTO "communes" VALUES('01','Vernoux','29',285,127,10.2,'3082','51646',187,216);
INSERT INTO "communes" VALUES('01','Cormaranche-en-Bugey','15',859,726,18.92,'3638','51059',766,1241);
INSERT INTO "communes" VALUES('01','Sainte-Euphémie','42',1482,1133,4.61,'2735','51081',195,261);
INSERT INTO "communes" VALUES('01','Beaupont','11',624,492,14.07,'3256','51568',187,228);
INSERT INTO "communes" VALUES('01','Brens','04',1158,732,6.9,'3731','50798',219,347);
INSERT INTO "communes" VALUES('01','Ramasse','07',250,218,9.86,'3354','51328',310,590);
INSERT INTO "communes" VALUES('01','Divonne-les-Bains','14',8160,6158,33.88,'4229','51508',464,1447);
INSERT INTO "communes" VALUES('01','Léaz','12',569,482,11.4,'3944','51220',330,1507);
INSERT INTO "communes" VALUES('01','Villes','03',385,269,9.21,'3831','51209',392,1321);
INSERT INTO "communes" VALUES('01','Saint-Julien-sur-Reyssouze','29',668,509,7.52,'3083','51557',182,218);
INSERT INTO "communes" VALUES('01','Groslée','18',353,333,7.27,'3589','50792',202,1000);
INSERT INTO "communes" VALUES('01','Vandeins','43',619,510,9.4,'3047','51353',194,251);
INSERT INTO "communes" VALUES('01','Verjon','11',250,192,5.11,'3350','51495',210,496);
INSERT INTO "communes" VALUES('01','Saint-André-sur-Vieux-Jonc','39',1079,965,24.22,'3122','51286',222,269);
INSERT INTO "communes" VALUES('01','Saint-André-d''Huiriat','27',543,403,9,'2862','51348',186,225);
INSERT INTO "communes" VALUES('01','Grilly','14',762,615,7.5,'4198','51478',459,751);
INSERT INTO "communes" VALUES('01','Cessy','14',3992,2287,6.39,'4148','51466',496,583);
INSERT INTO "communes" VALUES('01','Ordonnaz','18',141,117,14.88,'3557','50930',560,1161);
INSERT INTO "communes" VALUES('01','Vescours','29',208,192,12.48,'2987','51639',184,217);
INSERT INTO "communes" VALUES('01','Meillonnas','33',1298,1205,17.74,'3350','51383',232,460);
INSERT INTO "communes" VALUES('01','Géovreisset','41',903,763,3.31,'3646','51396',567,754);
INSERT INTO "communes" VALUES('01','Ceyzérieu','36',929,816,19.72,'3766','50928',226,444);
INSERT INTO "communes" VALUES('01','Béard-Géovreissiat','22',925,712,4.69,'3578','51322',446,724);
INSERT INTO "communes" VALUES('01','<NAME>','36',72,56,10.82,'3582','50941',334,860);
INSERT INTO "communes" VALUES('01','Perrex','27',826,721,11.07,'2935','51384',179,213);
INSERT INTO "communes" VALUES('01','Villemotier','11',632,455,13.86,'3316','51496',197,261);
INSERT INTO "communes" VALUES('01','Jasseron','07',1552,1257,18.93,'3320','51347',246,590);
INSERT INTO "communes" VALUES('01','Corveissiat','33',602,473,22.69,'3494','51381',262,668);
INSERT INTO "communes" VALUES('01','Journans','25',324,330,2.43,'3329','51272',269,506);
INSERT INTO "communes" VALUES('01','Sermoyer','26',669,543,16.7,'2938','51666',168,214);
INSERT INTO "communes" VALUES('01','Charix','22',294,265,18.27,'3719','51315',580,1046);
INSERT INTO "communes" VALUES('01','Arbignieu','04',480,431,13.07,'3682','50809',221,495);
INSERT INTO "communes" VALUES('01','Leyssard','16',153,143,9.13,'3488','51284',280,825);
INSERT INTO "communes" VALUES('01','Saint-Jean-de-Thurigneux','42',710,554,16,'2829','51058',265,305);
INSERT INTO "communes" VALUES('01','Frans','34',1984,1849,7.98,'2708','51101',183,267);
INSERT INTO "communes" VALUES('01','Tenay','28',1120,1083,13.12,'3524','51022',320,1020);
INSERT INTO "communes" VALUES('01','Bâgé-la-Ville','02',3040,2318,39.68,'2898','51462',179,217);
INSERT INTO "communes" VALUES('01','Montmerle-sur-Saône','32',3823,2827,4.16,'2691','51202',168,227);
INSERT INTO "communes" VALUES('01','Courmangoux','33',507,360,14.82,'3369','51479',211,652);
INSERT INTO "communes" VALUES('01','Baneins','30',572,528,8.91,'2850','51233',207,272);
INSERT INTO "communes" VALUES('01','Lagnieu','17',6756,5882,27.25,'3347','51004',192,643);
INSERT INTO "communes" VALUES('01','Attignat','21',2936,1923,18.69,'3137','51430',199,233);
INSERT INTO "communes" VALUES('01','Saint-André-de-Bâgé','02',635,507,2.7,'2874','51446',183,212);
INSERT INTO "communes" VALUES('01','Pont-de-Vaux','26',2205,2013,7.54,'2890','51591',169,204);
INSERT INTO "communes" VALUES('01','Ambérieu-en-Bugey','01',13835,11432,24.6,'3357','51065',237,753);
INSERT INTO "communes" VALUES('01','Peyzieux-sur-Saône','32',473,337,8.66,'2754','51252',169,259);
INSERT INTO "communes" VALUES('01','Crozet','14',1862,1344,27.47,'4084','51423',463,1680);
INSERT INTO "communes" VALUES('01','Seyssel','31',942,803,2.4,'3883','51065',250,332);
INSERT INTO "communes" VALUES('01','Beynost','40',4475,3528,10.64,'2961','50934',174,322);
INSERT INTO "communes" VALUES('01','Versonnex','13',2144,1713,5.89,'4178','51447',439,506);
INSERT INTO "communes" VALUES('01','Saint-Laurent-sur-Saône','02',1749,1657,0.53,'2781','51450',167,174);
INSERT INTO "communes" VALUES('01','Artemare','09',1126,970,3.75,'3729','50972',242,360);
INSERT INTO "communes" VALUES('01','Montracol','39',967,619,14.56,'3095','51330',211,258);
INSERT INTO "communes" VALUES('01','Parves','04',360,320,5.53,'3783','50827',240,623);
INSERT INTO "communes" VALUES('01','Pugieu','36',168,125,4.85,'3680','50912',238,409);
INSERT INTO "communes" VALUES('01','Virieu-le-Grand','36',1156,949,12.55,'3683','50943',241,1059);
INSERT INTO "communes" VALUES('01','Saint-Rémy','39',906,812,7.38,'3146','51321',216,265);
INSERT INTO "communes" VALUES('01','Rancé','42',641,498,9.53,'2813','51073',244,294);
INSERT INTO "communes" VALUES('01','Grièges','27',1899,1599,14.87,'2793','51394',169,212);
INSERT INTO "communes" VALUES('01','Grand-Corent','07',161,111,7.13,'3438','51332',393,668);
INSERT INTO "communes" VALUES('01','Outriaz','06',256,267,5.91,'3567','51186',647,1103);
INSERT INTO "communes" VALUES('01','Montagnieu','18',495,387,6.22,'3479','50882',200,714);
INSERT INTO "communes" VALUES('01','Champagne-en-Valromey','09',765,674,18.16,'3712','51005',419,746);
INSERT INTO "communes" VALUES('01','Ambérieux-en-Dombes','30',1616,1407,15.92,'2851','51109',265,302);
INSERT INTO "communes" VALUES('01','La Boisse','20',2928,2704,9.4,'2999','50936',179,319);
INSERT INTO "communes" VALUES('01','Parcieux','42',1095,914,3.14,'2765','51017',168,287);
INSERT INTO "communes" VALUES('01','Saint-Didier-d''Aussiat','21',863,667,15.22,'3027','51451',194,223);
INSERT INTO "communes" VALUES('01','Saint-Nizier-le-Bouchoux','29',703,546,28.3,'3127','51622',192,222);
INSERT INTO "communes" VALUES('01','Ars-sur-Formans','42',1367,1100,5.5,'2763','51102',226,281);
INSERT INTO "communes" VALUES('01','Anglefort','31',994,772,29.26,'3858','51014',238,1524);
INSERT INTO "communes" VALUES('01','Corlier','15',124,73,5.45,'3514','51145',560,917);
INSERT INTO "communes" VALUES('01','Ferney-Voltaire','13',8025,7071,4.78,'4190','51395',409,446);
INSERT INTO "communes" VALUES('01','Saint-Maurice-de-Rémens','01',709,605,10.35,'3265','51065',212,235);
INSERT INTO "communes" VALUES('01','Châtillon-la-Palud','08',1562,1075,14.01,'3236','51084',218,326);
INSERT INTO "communes" VALUES('01','Saint-Sulpice','21',142,103,5.26,'3006','51467',193,217);
INSERT INTO "communes" VALUES('01','Saint-Bois','04',123,102,9.42,'3672','50779',301,778);
INSERT INTO "communes" VALUES('01','Virignin','04',855,642,7.88,'3752','50797',220,605);
INSERT INTO "communes" VALUES('01','Prémillieu','15',36,33,8.51,'3594','50971',580,1084);
INSERT INTO "communes" VALUES('01','Genouilleux','32',609,400,4.08,'2723','51243',169,231);
INSERT INTO "communes" VALUES('01','Reyssouze','26',929,714,9.54,'2870','51591',167,202);
INSERT INTO "communes" VALUES('01','Collonges','12',1897,1105,16.25,'3964','51265',329,1621);
INSERT INTO "communes" VALUES('01','Saint-Germain-de-Joux','03',480,476,11.27,'3780','51309',434,1091);
INSERT INTO "communes" VALUES('01','Brégnier-Cordon','04',832,566,11,'3648','50721',203,460);
INSERT INTO "communes" VALUES('01','Saint-Martin-le-Châtel','21',790,652,12.77,'3088','51424',197,225);
INSERT INTO "communes" VALUES('01','Marignieu','36',148,156,3.55,'3760','50886',309,503);
INSERT INTO "communes" VALUES('01','Neyrolles','22',637,617,9.5,'3663','51268',510,1118);
INSERT INTO "communes" VALUES('01','Sulignat','10',569,485,10.8,'2918','51308',202,278);
INSERT INTO "communes" VALUES('01','Bény','11',724,613,18.25,'3274','51466',200,244);
INSERT INTO "communes" VALUES('01','Injoux-Génissiat','03',1055,966,29.61,'3851','51168',266,1342);
INSERT INTO "communes" VALUES('01','Chanay','31',617,573,18.1,'3832','51118',260,1184);
INSERT INTO "communes" VALUES('01','Châtillon-sur-Chalaronne','10',4922,4130,17.98,'2911','51244',215,274);
INSERT INTO "communes" VALUES('01','Farges','12',854,589,14.28,'3965','51298',360,1527);
INSERT INTO "communes" VALUES('01','Saint-Alban','24',163,133,8.08,'3463','51217',376,634);
INSERT INTO "communes" VALUES('01','Curtafond','21',702,589,12.41,'3058','51414',199,227);
INSERT INTO "communes" VALUES('01','Viriat','43',6006,5287,45.03,'3200','51393',206,257);
INSERT INTO "communes" VALUES('01','Belleydoux','23',321,277,17.63,'3823','51392',616,1281);
INSERT INTO "communes" VALUES('01','Bâgé-le-Châtel','02',796,759,0.88,'2881','51453',184,211);
INSERT INTO "communes" VALUES('01','Sainte-Olive','30',303,254,7.39,'2885','51132',281,301);
INSERT INTO "communes" VALUES('01','Saint-Genis-sur-Menthon','27',408,363,11.55,'2969','51425',188,218);
INSERT INTO "communes" VALUES('01','Domsure','11',473,403,15.2,'3287','51577',192,233);
INSERT INTO "communes" VALUES('01','Chavannes-sur-Suran','33',644,485,21.5,'3433','51404',306,770);
INSERT INTO "communes" VALUES('01','Priay','25',1488,1152,15.77,'3282','51115',222,342);
INSERT INTO "communes" VALUES('01','Peyrieu','04',821,649,14.13,'3712','50752',210,683);
INSERT INTO "communes" VALUES('01','Lalleyriat','22',239,195,15.25,'3754','51283',497,1241);
INSERT INTO "communes" VALUES('01','Sergy','13',1977,1247,9.46,'4070','51392',429,1702);
INSERT INTO "communes" VALUES('01','Saint-Martin-du-Frêne','22',1077,1050,19.14,'3573','51266',476,1125);
INSERT INTO "communes" VALUES('01','Saint-Maurice-de-Beynost','40',3865,4017,6.99,'2932','50923',172,315);
INSERT INTO "communes" VALUES('01','Servas','39',1184,915,13.05,'3143','51259',234,279);
INSERT INTO "communes" VALUES('01','Cuzieu','36',407,304,4.87,'3708','50910',260,449);
INSERT INTO "communes" VALUES('01','Jayat','21',1049,774,16.3,'3093','51523',183,218);
INSERT INTO "communes" VALUES('01','Lavours','04',148,117,6.3,'3817','50899',224,320);
INSERT INTO "communes" VALUES('01','Chevroux','26',933,657,17.2,'2902','51534',176,208);
INSERT INTO "communes" VALUES('01','Pollieu','04',157,122,3.71,'3783','50889',225,480);
INSERT INTO "communes" VALUES('01','Béligneux','20',2905,2595,13.3,'3102','50947',202,283);
INSERT INTO "communes" VALUES('01','Brénaz','09',92,105,9.79,'3762','51054',580,1425);
INSERT INTO "communes" VALUES('01','Bénonces','18',275,241,15.33,'3487','50920',280,1029);
INSERT INTO "communes" VALUES('01','Saint-Jean-le-Vieux','24',1609,1449,15.33,'3392','51143',236,506);
INSERT INTO "communes" VALUES('01','Beauregard','34',870,816,0.94,'2683','51113',168,240);
INSERT INTO "communes" VALUES('01','Oyonnax','98',22650,24188,36.18,'3687','51395',440,1082);
INSERT INTO "communes" VALUES('01','Mionnay','42',2077,2111,19.62,'2881','50994',267,321);
INSERT INTO "communes" VALUES('01','Germagnat','33',145,92,9.48,'3458','51456',319,761);
INSERT INTO "communes" VALUES('01','Coligny','11',1154,1091,16.87,'3344','51537',199,575);
INSERT INTO "communes" VALUES('01','Simandre-sur-Suran','07',650,638,16.3,'3423','51361',296,644);
INSERT INTO "communes" VALUES('01','L''Abergement-Clémenciat','10',784,725,15.95,'2871','51279',206,272);
INSERT INTO "communes" VALUES('01','Lescheroux','29',683,596,20.05,'3122','51563',182,223);
INSERT INTO "communes" VALUES('01','Ornex','13',3531,2666,5.64,'4174','51418',428,487);
INSERT INTO "communes" VALUES('01','Dommartin','02',841,597,17.19,'2948','51486',186,217);
INSERT INTO "communes" VALUES('01','Lompnas','18',149,147,12.69,'3537','50892',400,980);
INSERT INTO "communes" VALUES('01','Bettant','01',724,685,3.37,'3362','51048',245,605);
INSERT INTO "communes" VALUES('01','Armix','36',20,15,6.82,'3610','50944',420,1064);
INSERT INTO "communes" VALUES('01','Feillens','02',3115,2935,14.91,'2838','51484',169,207);
INSERT INTO "communes" VALUES('01','Chavornay','09',199,176,7.77,'3759','50977',305,1440);
INSERT INTO "communes" VALUES('01','Challex','12',1225,1060,8.67,'4044','51313',330,516);
INSERT INTO "communes" VALUES('01','Vongnes','36',74,89,2.05,'3764','50905',228,505);
INSERT INTO "communes" VALUES('01','Magnieu','04',419,292,6.23,'3759','50862',227,460);
INSERT INTO "communes" VALUES('01','Groissiat','41',1143,749,6.32,'3640','51366',507,940);
INSERT INTO "communes" VALUES('01','Dompierre-sur-Chalaronne','10',389,280,4.78,'2853','51270',200,262);
INSERT INTO "communes" VALUES('01','Montluel','20',6999,6456,40.11,'3022','50946',192,312);
INSERT INTO "communes" VALUES('01','<NAME>','22',422,321,17.9,'3732','51271',551,1200);
INSERT INTO "communes" VALUES('01','Hostiaz','28',82,62,10.6,'3553','51002',680,1086);
INSERT INTO "communes" VALUES('01','Montanges','03',330,282,13.7,'3850','51293',375,1090);
INSERT INTO "communes" VALUES('01','Sainte-Julie','17',889,534,11.15,'3269','50989',209,257);
INSERT INTO "communes" VALUES('01','Bey','27',245,221,2.77,'2788','51355',175,213);
INSERT INTO "communes" VALUES('01','Sonthonnax-la-Montagne','16',320,303,14.14,'3542','51370',420,783);
INSERT INTO "communes" VALUES('01','Mézériat','10',2072,1912,19.17,'3012','51372',189,223);
INSERT INTO "communes" VALUES('01','Bellignat','41',3537,3505,7.83,'3662','51383',516,983);
INSERT INTO "communes" VALUES('01','Saint-Marcel','35',1212,1058,11.64,'2945','51054',278,292);
INSERT INTO "communes" VALUES('01','Belley','04',8755,8002,22.42,'3724','50844',220,392);
INSERT INTO "communes" VALUES('01','Corbonod','31',1176,898,31.59,'3873','51075',253,1367);
INSERT INTO "communes" VALUES('01','Neyron','40',2472,2155,5.36,'2884','50905',165,312);
INSERT INTO "communes" VALUES('01','Saint-Paul-de-Varax','35',1551,1190,25.97,'3102','51221',245,281);
INSERT INTO "communes" VALUES('01','Pressiat','33',224,191,6.01,'3388','51470',235,660);
INSERT INTO "communes" VALUES('01','Chazey-Bons','04',744,665,10.59,'3717','50892',223,423);
INSERT INTO "communes" VALUES('01','Servignat','29',160,135,7.99,'3036','51593',178,213);
INSERT INTO "communes" VALUES('01','Marlieux','35',887,676,16.85,'3040','51183',263,282);
INSERT INTO "communes" VALUES('01','Andert-et-Condon','04',340,275,6.94,'3687','50883',225,374);
INSERT INTO "communes" VALUES('01','Hautecourt-Romanèche','07',773,678,21.6,'3423','51289',260,548);
INSERT INTO "communes" VALUES('01','Crottet','27',1722,1479,12.12,'2839','51419',170,213);
INSERT INTO "communes" VALUES('01','Druillat','25',1134,879,20.72,'3312','51178',232,343);
INSERT INTO "communes" VALUES('01','Dompierre-sur-Veyle','25',1226,968,29.1,'3187','51190',264,312);
INSERT INTO "communes" VALUES('01','Pérouges','19',1204,1102,18.97,'3158','51004',205,303);
INSERT INTO "communes" VALUES('01','Rignieux-le-Franc','19',950,839,15.02,'3170','51045',237,316);
INSERT INTO "communes" VALUES('01','Giron','03',162,100,9.39,'3819','51362',779,1206);
INSERT INTO "communes" VALUES('01','Cerdon','24',741,672,12.3,'3477','51201',286,992);
INSERT INTO "communes" VALUES('01','Cruzilles-lès-Mépillat','27',818,651,11.84,'2827','51361',185,222);
INSERT INTO "communes" VALUES('01','Lélex','14',225,220,17.63,'4006','51448',720,1703);
INSERT INTO "communes" VALUES('01','Lhôpital','03',59,49,3.68,'3824','51135',395,1160);
INSERT INTO "communes" VALUES('01','Ségny','14',1649,1350,3.24,'4152','51441',467,519);
INSERT INTO "communes" VALUES('01','Cheignieu-la-Balme','36',157,112,6.26,'3634','50919',269,1166);
INSERT INTO "communes" VALUES('01','Saint-Vulbas','17',957,803,21.44,'3282','50926',192,227);
INSERT INTO "communes" VALUES('01','Échallon','23',772,665,28.09,'3783','51345',510,1082);
INSERT INTO "communes" VALUES('01','<NAME>','19',244,218,15.38,'3041','51034',267,297);
INSERT INTO "communes" VALUES('01','Martignat','41',1604,1265,13.25,'3636','51344',490,974);
INSERT INTO "communes" VALUES('01','Ceyzériat','07',2738,2388,9.36,'3319','51309',240,585);
INSERT INTO "communes" VALUES('01','Montcet','43',665,489,6.68,'3084','51347',200,247);
INSERT INTO "communes" VALUES('01','Vonnas','10',2790,2419,17.81,'2949','51355',183,253);
INSERT INTO "communes" VALUES('01','Buellas','43',1669,1288,10.21,'3108','51344',205,266);
INSERT INTO "communes" VALUES('01','Saint-Bénigne','26',1161,817,16.49,'2916','51605',168,216);
INSERT INTO "communes" VALUES('01','Chevillard','06',162,132,6.67,'3606','51233',660,1108);
INSERT INTO "communes" VALUES('01','Bouligneux','35',309,290,26.09,'2950','51136',264,301);
INSERT INTO "communes" VALUES('01','Contrevoz','36',539,430,14.18,'3658','50896',266,1218);
INSERT INTO "communes" VALUES('01','Champdor','06',464,426,17.37,'3623','51130',798,1183);
INSERT INTO "communes" VALUES('01','Port','22',847,913,4.25,'3593','51294',460,991);
INSERT INTO "communes" VALUES('01','Surjoux','03',78,69,4.31,'3851','51138',260,510);
INSERT INTO "communes" VALUES('01','Champfromier','03',677,591,32.4,'3867','51327',480,1540);
INSERT INTO "communes" VALUES('01','Vésines','02',91,113,3.88,'2812','51510',167,176);
INSERT INTO "communes" VALUES('01','Seillonnaz','18',138,123,9.59,'3504','50896',275,724);
INSERT INTO "communes" VALUES('01','Varambon','25',521,386,7.99,'3311','51156',228,347);
INSERT INTO "communes" VALUES('01','Le Grand-Abergement','06',109,108,31.92,'3709','51149',696,1293);
INSERT INTO "communes" VALUES('01','Jassans-Riottier','34',5976,5333,4.81,'2689','51095',167,249);
INSERT INTO "communes" VALUES('01','Asnières-sur-Saône','02',73,69,4.68,'2829','51538',167,175);
INSERT INTO "communes" VALUES('01','Condamine','06',404,285,4.64,'3572','51232',518,808);
INSERT INTO "communes" VALUES('01','Lhuis','18',854,721,24.43,'3552','50830',201,1020);
INSERT INTO "communes" VALUES('01','Romans','10',587,522,22.32,'2985','51243',227,280);
INSERT INTO "communes" VALUES('01','Pizay','20',777,638,11.18,'3059','50987',217,294);
INSERT INTO "communes" VALUES('01','Certines','25',1445,1287,15.92,'3253','51258',243,277);
INSERT INTO "communes" VALUES('01','Ruffieu','09',202,188,14.03,'3696','51105',605,1195);
INSERT INTO "communes" VALUES('01','Meximieux','19',7268,6835,13.75,'3175','51005',206,310);
INSERT INTO "communes" VALUES('01','Saint-Rambert-en-Bugey','28',2164,2067,28.55,'3446','51054',271,819);
INSERT INTO "communes" VALUES('01','Ambronay','01',2362,2144,33.55,'3360','51117',225,765);
INSERT INTO "communes" VALUES('01','Cize','07',170,128,4.52,'3454','51338',264,540);
INSERT INTO "communes" VALUES('01','Saint-Germain-sur-Renon','35',236,217,15.8,'3023','51201',251,286);
INSERT INTO "communes" VALUES('01','Villette-sur-Ain','08',673,472,19.38,'3258','51098',222,331);
INSERT INTO "communes" VALUES('01','Dagneux','20',4099,3760,6.65,'3035','50946',189,285);
INSERT INTO "communes" VALUES('01','Boissey','26',288,202,9.05,'2955','51535',182,208);
INSERT INTO "communes" VALUES('01','Salavre','11',284,285,7.77,'3344','51515',203,561);
INSERT INTO "communes" VALUES('01','Brion','22',517,559,4.48,'3573','51303',469,642);
INSERT INTO "communes" VALUES('01','Labalme','24',204,135,8.8,'3496','51215',473,999);
INSERT INTO "communes" VALUES('01','Sauverny','13',1078,1017,1.89,'4198','51462',449,516);
INSERT INTO "communes" VALUES('01','Montceaux','32',1164,908,10.03,'2734','51218',180,244);
INSERT INTO "communes" VALUES('01','Brénod','06',544,427,23.79,'3633','51179',831,1136);
INSERT INTO "communes" VALUES('01','Misérieux','42',1762,1432,7.41,'2749','51082',211,280);
INSERT INTO "communes" VALUES('01','Prévessin-Moëns','13',5980,4263,12.07,'4161','51395',419,486);
INSERT INTO "communes" VALUES('01','Lent','39',1328,1148,31.48,'3177','51244',240,296);
INSERT INTO "communes" VALUES('01','Marsonnas','21',1005,728,18.38,'3038','51490',189,222);
INSERT INTO "communes" VALUES('01','Manziat','02',1924,1596,12.63,'2857','51510',170,207);
INSERT INTO "communes" VALUES('01','Trévoux','34',6730,6392,5.71,'2709','51046',167,256);
INSERT INTO "communes" VALUES('01','Bellegarde-sur-Valserine','03',11790,10878,15.25,'3877','51231',330,1542);
INSERT INTO "communes" VALUES('01','Bourg-en-Bresse','99',40088,40628,23.86,'3213','51339',220,273);
INSERT INTO "communes" VALUES('01','Confort','12',525,499,11.66,'3874','51278',375,1621);
INSERT INTO "communes" VALUES('01','Saint-Denis-lès-Bourg','43',5405,4920,12.58,'3173','51333',209,242);
INSERT INTO "communes" VALUES('01','Massignieu-de-Rives','04',608,498,9.52,'3812','50838',220,494);
INSERT INTO "communes" VALUES('01','Saint-Étienne-sur-Chalaronne','32',1468,1178,20.99,'2811','51274',183,261);
INSERT INTO "communes" VALUES('01','Bohas-Meyriat-Rignat','07',811,724,23.51,'3394','51263',264,555);
INSERT INTO "communes" VALUES('01','Chevry','14',1235,808,5.84,'4111','51423',457,580);
INSERT INTO "communes" VALUES('01','Fareins','30',2137,1668,8.22,'2694','51133',167,253);
INSERT INTO "communes" VALUES('01','Gorrevod','26',799,561,6.88,'2894','51573',172,204);
INSERT INTO "communes" VALUES('01','Valeins','32',88,67,4.36,'2817','51236',229,267);
INSERT INTO "communes" VALUES('01','Vieu-d''Izenave','06',693,536,23.73,'3547','51201',540,1103);
INSERT INTO "communes" VALUES('01','Toussieux','42',769,732,4.74,'2769','51067',220,281);
INSERT INTO "communes" VALUES('01','Arbigny','26',399,330,17.47,'2918','51633',169,214);
INSERT INTO "communes" VALUES('01','Malafretaz','21',952,674,9.19,'3122','51471',190,223);
INSERT INTO "communes" VALUES('01','Samognat','16',718,421,14.01,'3599','51398',288,731);
INSERT INTO "communes" VALUES('01','Cras-sur-Reyssouze','21',1256,905,13.83,'3143','51454',195,229);
INSERT INTO "communes" VALUES('01','Messimy-sur-Saône','30',1209,932,5.95,'2698','51165',168,226);
INSERT INTO "communes" VALUES('01','Pougny','12',802,628,7.77,'4014','51267',326,463);
INSERT INTO "communes" VALUES('01','Sandrans','10',524,416,29.02,'2938','51182',235,291);
INSERT INTO "communes" VALUES('01','Pont-de-Veyle','27',1593,1485,1.94,'2835','51404',172,179);
INSERT INTO "communes" VALUES('01','Mijoux','14',379,312,22,'4065','51518',866,1614);
INSERT INTO "communes" VALUES('01','Saint-Jean-de-Gonville','12',1496,1201,12.36,'4017','51347',439,1604);
INSERT INTO "communes" VALUES('01','Saint-André-le-Bouchoux','10',316,191,9.32,'3047','51242',259,274);
INSERT INTO "communes" VALUES('01','Chaneins','30',820,560,12.63,'2795','51219',206,283);
INSERT INTO "communes" VALUES('01','Joyeux','19',223,206,16.58,'3070','51068',272,298);
INSERT INTO "communes" VALUES('01','Tramoyes','42',1674,1525,12.93,'2921','50974',268,307);
INSERT INTO "communes" VALUES('01','Biziat','10',797,647,11.39,'2898','51352',179,224);
INSERT INTO "communes" VALUES('01','Izenave','06',164,146,13.04,'3543','51153',663,1008);
INSERT INTO "communes" VALUES('01','Belmont-Luthézieu','09',514,400,19.77,'3694','50977',251,1104);
INSERT INTO "communes" VALUES('01','Arbent','23',3476,3623,23.49,'3716','51439',435,1100);
INSERT INTO "communes" VALUES('01','Sutrieu','09',235,218,19.05,'3691','51057',459,1200);
INSERT INTO "communes" VALUES('01','Serrières-de-Briord','18',1174,960,8.03,'3464','50898',200,621);
INSERT INTO "communes" VALUES('01','Aranc','15',302,275,21.65,'3525','51116',431,1011);
INSERT INTO "communes" VALUES('01','Chaley','28',127,107,4.6,'3550','51062',394,910);
INSERT INTO "communes" VALUES('01','Curciat-Dongalon','29',456,406,23.94,'3134','51639',187,218);
INSERT INTO "communes" VALUES('01','Loyettes','17',2645,2331,21.28,'3185','50860',185,204);
INSERT INTO "communes" VALUES('01','Gex','14',10372,7771,32.02,'4134','51481',532,1614);
INSERT INTO "communes" VALUES('01','Courtes','29',266,218,9.06,'3071','51621',192,221);
INSERT INTO "communes" VALUES('01','Béréziat','21',445,341,10.83,'3010','51519',185,213);
INSERT INTO "communes" VALUES('01','Lapeyrouse','35',292,225,20.04,'2933','51092',277,295);
INSERT INTO "communes" VALUES('01','Apremont','22',363,328,14.57,'3689','51341',658,1042);
INSERT INTO "communes" VALUES('01','Villieu-Loyes-Mollon','19',3095,2405,15.91,'3206','51023',207,323);
INSERT INTO "communes" VALUES('01','Leyment','17',1273,922,14.18,'3287','51026',221,321);
INSERT INTO "communes" VALUES('01','Étrez','21',803,642,12.15,'3165','51483',197,229);
INSERT INTO "communes" VALUES('02','Gercy','34',295,314,6.33,'1702','55349',108,189);
INSERT INTO "communes" VALUES('02','Villemontoire','24',210,210,7.65,'1107','54777',67,171);
INSERT INTO "communes" VALUES('02','Brancourt-le-Grand','03',619,636,13.14,'1161','55530',120,159);
INSERT INTO "communes" VALUES('02','Licy-Clignon','22',87,80,4.09,'1041','54556',80,165);
INSERT INTO "communes" VALUES('02','Proisy','16',318,295,5.2,'1559','55442',105,179);
INSERT INTO "communes" VALUES('02','Chambry','18',718,784,8.89,'1465','55102',67,96);
INSERT INTO "communes" VALUES('02','Mont-Saint-Jean','02',80,76,3.97,'2079','55322',192,266);
INSERT INTO "communes" VALUES('02','Morgny-en-Thiérache','26',110,96,6.99,'1935','55288',147,217);
INSERT INTO "communes" VALUES('02','Mesnil-Saint-Laurent','40',450,425,5.45,'1131','55366',82,126);
INSERT INTO "communes" VALUES('02','Annois','29',383,382,5.9,'934','55246',63,158);
INSERT INTO "communes" VALUES('02','Brunehamel','26',538,509,8.9,'2050','55300',198,261);
INSERT INTO "communes" VALUES('02','Audignicourt','11',102,98,5.66,'885','54976',72,154);
INSERT INTO "communes" VALUES('02','Montigny-sur-Crécy','13',309,311,8.53,'1387','55240',55,124);
INSERT INTO "communes" VALUES('02','Lor','21',142,122,8.87,'1903','55034',72,130);
INSERT INTO "communes" VALUES('02','Chivres-en-Laonnois','30',367,339,13.56,'1673','55148',68,116);
INSERT INTO "communes" VALUES('02','Saint-Gobain','14',2337,2340,29.73,'1154','55107',53,207);
INSERT INTO "communes" VALUES('02','Ugny-le-Gay','09',163,166,5.9,'915','55178',66,169);
INSERT INTO "communes" VALUES('02','Happencourt','29',148,162,5.18,'945','55309',63,101);
INSERT INTO "communes" VALUES('02','Prouvais','21',379,393,18.22,'1820','54960',72,170);
INSERT INTO "communes" VALUES('02','Azy-sur-Marne','08',387,381,2.78,'1144','54446',57,202);
INSERT INTO "communes" VALUES('02','Terny-Sorny','32',304,327,7.07,'1146','54941',72,163);
INSERT INTO "communes" VALUES('02','Droizy','24',75,79,5.42,'1173','54752',88,172);
INSERT INTO "communes" VALUES('02','Pignicourt','21',164,135,7.01,'1882','54906',55,87);
INSERT INTO "communes" VALUES('02','Moussy-Verneuil','12',127,113,6.43,'1442','54907',44,160);
INSERT INTO "communes" VALUES('02','Aguilcourt','21',349,359,10.57,'1813','54896',54,102);
INSERT INTO "communes" VALUES('02','Montaigu','30',732,673,23.51,'1659','55040',71,199);
INSERT INTO "communes" VALUES('02','Moulins','12',99,81,1.6,'1499','54912',64,179);
INSERT INTO "communes" VALUES('02','Saulchery','07',658,660,2.63,'1079','54416',57,180);
INSERT INTO "communes" VALUES('02','Nanteuil-la-Fosse','32',147,133,7.36,'1241','54929',79,176);
INSERT INTO "communes" VALUES('02','Guignicourt','21',2111,2203,17.74,'1810','54928',51,142);
INSERT INTO "communes" VALUES('02','Bucy-le-Long','32',1955,1954,12.86,'1175','54879',39,161);
INSERT INTO "communes" VALUES('02','Longpont','36',294,294,10.94,'982','54748',77,152);
INSERT INTO "communes" VALUES('02','Montgobert','36',198,185,11.18,'902','54786',70,162);
INSERT INTO "communes" VALUES('02','Noircourt','26',90,91,5.45,'1951','55187',122,191);
INSERT INTO "communes" VALUES('02','Rozet-Saint-Albin','22',286,292,7.95,'1068','54660',75,184);
INSERT INTO "communes" VALUES('02','Chivy-lès-Étouvelles','38',503,541,3.54,'1387','55031',57,79);
INSERT INTO "communes" VALUES('02','Chavonne','32',193,180,3.62,'1370','54894',42,167);
INSERT INTO "communes" VALUES('02','Artonges','10',184,145,13.12,'1351','54366',140,211);
INSERT INTO "communes" VALUES('02','Oisy','37',428,417,10.79,'1481','55579',137,161);
INSERT INTO "communes" VALUES('02','Juvigny','31',280,277,13.85,'1091','54942',69,166);
INSERT INTO "communes" VALUES('02','Marchais-en-Brie','10',275,240,12.78,'1275','54316',112,212);
INSERT INTO "communes" VALUES('02','Bouconville-Vauclair','12',181,161,13.04,'1577','54962',84,207);
INSERT INTO "communes" VALUES('02','<NAME>','34',502,508,19,'1817','55400',125,223);
INSERT INTO "communes" VALUES('02','Ly-Fontaine','20',120,86,3.47,'1080','55261',65,100);
INSERT INTO "communes" VALUES('02','Logny-lès-Aubenton','02',77,73,8.15,'2082','55365',172,245);
INSERT INTO "communes" VALUES('02','Cuirieux','19',161,143,6.46,'1642','55201',74,121);
INSERT INTO "communes" VALUES('02','Iron','16',222,225,9.51,'1471','55505',110,160);
INSERT INTO "communes" VALUES('02','Joncourt','06',322,332,7.25,'1070','55507',108,153);
INSERT INTO "communes" VALUES('02','Effry','17',353,406,2.77,'1831','55472',134,223);
INSERT INTO "communes" VALUES('02','Jumigny','12',69,68,2.49,'1534','54902',55,173);
INSERT INTO "communes" VALUES('02','Chaourse','26',535,522,18.6,'1845','55227',102,187);
INSERT INTO "communes" VALUES('02','Saint-Rémy-Blanzy','24',234,203,13.99,'1081','54713',96,208);
INSERT INTO "communes" VALUES('02','Beaumont-en-Beine','09',161,137,5.41,'884','55208',72,147);
INSERT INTO "communes" VALUES('02','<NAME>','24',76,77,5.2,'1120','54710',132,203);
INSERT INTO "communes" VALUES('02','Estrées','06',416,446,7.04,'1057','55520',97,149);
INSERT INTO "communes" VALUES('02','Baulne-en-Brie','10',288,237,18.89,'1419','54430',82,243);
INSERT INTO "communes" VALUES('02','Guivry','09',263,221,7.15,'870','55163',73,180);
INSERT INTO "communes" VALUES('02','Variscourt','21',214,109,5.56,'1832','54909',54,80);
INSERT INTO "communes" VALUES('02','Châtillon-sur-Oise','20',129,129,2.62,'1204','55324',61,119);
INSERT INTO "communes" VALUES('02','Soissons','99',28646,29439,12.32,'1096','54868',38,130);
INSERT INTO "communes" VALUES('02','Bray-Saint-Christophe','29',80,68,2.88,'897','55301',66,91);
INSERT INTO "communes" VALUES('02','<NAME>','27',239,243,9.27,'1454','55358',82,152);
INSERT INTO "communes" VALUES('02','Aubenton','02',713,713,23.7,'2076','55374',168,259);
INSERT INTO "communes" VALUES('02','Braye','32',120,131,1.34,'1148','54915',57,148);
INSERT INTO "communes" VALUES('02','Brissay-Choigny','20',317,301,8.98,'1157','55245',52,113);
INSERT INTO "communes" VALUES('02','Remaucourt','39',319,372,6.35,'1116','55440',78,144);
INSERT INTO "communes" VALUES('02','Seraucourt-le-Grand','29',789,713,10.56,'974','55311',67,99);
INSERT INTO "communes" VALUES('02','Berry-au-Bac','21',575,528,8.1,'1739','54893',50,91);
INSERT INTO "communes" VALUES('02','Vivaise','18',768,702,9.02,'1360','55135',65,118);
INSERT INTO "communes" VALUES('02','Proviseux-et-Plesnoy','21',116,102,11.21,'1859','54961',73,143);
INSERT INTO "communes" VALUES('02','Caumont','09',562,474,5.71,'934','55146',56,156);
INSERT INTO "communes" VALUES('02','Villers-le-Sec','25',277,236,10.57,'1293','55310',74,134);
INSERT INTO "communes" VALUES('02','Vichel-Nanteuil','22',95,86,6.39,'1059','54653',77,173);
INSERT INTO "communes" VALUES('02','Romery','16',84,63,3.96,'1542','55441',102,168);
INSERT INTO "communes" VALUES('02','Fontaine-lès-Clercs','29',289,274,5.33,'985','55340',67,102);
INSERT INTO "communes" VALUES('02','Chéry-lès-Pouilly','13',673,644,17.22,'1410','55175',59,116);
INSERT INTO "communes" VALUES('02','Pithon','29',75,98,2.44,'845','55281',60,88);
INSERT INTO "communes" VALUES('02','Beaurieux','12',793,705,9.69,'1556','54880',46,176);
INSERT INTO "communes" VALUES('02','Sinceny','09',2152,2156,13.13,'1011','55107',42,113);
INSERT INTO "communes" VALUES('02','Bouffignereux','21',103,110,4.36,'1676','54860',60,175);
INSERT INTO "communes" VALUES('02','Saint-Gengoulph','22',149,141,7.57,'979','54577',70,169);
INSERT INTO "communes" VALUES('02','Pargny-les-Bois','13',136,137,6.83,'1430','55251',81,137);
INSERT INTO "communes" VALUES('02','Montigny-l''Allier','22',272,239,10.14,'852','54568',55,151);
INSERT INTO "communes" VALUES('02','Beuvardes','15',721,637,15.66,'1281','54602',131,226);
INSERT INTO "communes" VALUES('02','Cuissy-et-Geny','12',66,59,4.97,'1517','54901',45,191);
INSERT INTO "communes" VALUES('02','Reuilly-Sauvigny','10',229,213,6.54,'1376','54505',62,241);
INSERT INTO "communes" VALUES('02','Vailly-sur-Aisne','32',2081,2082,9.97,'1311','54899',42,192);
INSERT INTO "communes" VALUES('02','Bièvres','38',73,76,2.64,'1527','54993',82,184);
INSERT INTO "communes" VALUES('02','Berny-Rivière','35',613,582,7.87,'893','54896',36,140);
INSERT INTO "communes" VALUES('02','Perles','04',80,66,3.7,'1466','54806',83,179);
INSERT INTO "communes" VALUES('02','Fontenelle-en-Brie','10',210,171,8.47,'1268','54354',188,222);
INSERT INTO "communes" VALUES('02','Neuflieux','09',95,92,1.9,'916','55133',54,96);
INSERT INTO "communes" VALUES('02','Sainte-Croix','12',139,124,3.35,'1603','54979',101,198);
INSERT INTO "communes" VALUES('02','Pargny-la-Dhuys','10',170,158,12.66,'1353','54393',109,221);
INSERT INTO "communes" VALUES('02','Brenelle','04',199,190,4.34,'1341','54851',60,174);
INSERT INTO "communes" VALUES('02','Urvillers','20',610,591,13.69,'1081','55322',72,126);
INSERT INTO "communes" VALUES('02','Laversine','35',152,99,7.22,'926','54835',54,161);
INSERT INTO "communes" VALUES('02','Origny-Sainte-Benoite','25',1726,1767,23.3,'1281','55374',67,139);
INSERT INTO "communes" VALUES('02','Cuiry-Housse','24',107,110,8.54,'1284','54772',83,149);
INSERT INTO "communes" VALUES('02','La Neuville-lès-Dorengt','23',385,348,10.88,'1488','55531',124,176);
INSERT INTO "communes" VALUES('02','Blanzy-lès-Fismes','04',91,93,5.27,'1485','54821',80,182);
INSERT INTO "communes" VALUES('02','Hargicourt','06',557,559,8.12,'937','55514',102,151);
INSERT INTO "communes" VALUES('02','Villers-sur-Fère','15',486,420,10.79,'1330','54647',115,214);
INSERT INTO "communes" VALUES('02','<NAME>','17',153,164,4.22,'1901','55427',146,222);
INSERT INTO "communes" VALUES('02','Bonnesvalyn','22',242,198,6.34,'1089','54580',100,210);
INSERT INTO "communes" VALUES('02','Haution','34',147,153,9.34,'1671','55407',130,199);
INSERT INTO "communes" VALUES('02','Berzy-le-Sec','41',396,395,11.69,'1085','54816',52,154);
INSERT INTO "communes" VALUES('02','La Vallée-au-Blé','34',347,342,5.17,'1614','55398',164,186);
INSERT INTO "communes" VALUES('02','<NAME>','06',194,220,0.41,'1008','55558',87,108);
INSERT INTO "communes" VALUES('02','Gizy','30',684,664,10.25,'1598','55112',69,95);
INSERT INTO "communes" VALUES('02','Saint-Algis','34',159,146,6.89,'1653','55442',112,191);
INSERT INTO "communes" VALUES('02','Saint-Aubin','11',322,273,8.36,'947','55009',49,154);
INSERT INTO "communes" VALUES('02','Bancigny','34',28,32,3.32,'1886','55334',147,216);
INSERT INTO "communes" VALUES('02','Villeneuve-sur-Fère','15',286,231,10.3,'1265','54642',118,226);
INSERT INTO "communes" VALUES('02','Fleury','36',129,148,6.51,'911','54731',91,191);
INSERT INTO "communes" VALUES('02','Quincy-sous-le-Mont','04',66,52,5.04,'1351','54785',53,137);
INSERT INTO "communes" VALUES('02','Besny-et-Loizy','18',372,350,9.76,'1383','55111',72,118);
INSERT INTO "communes" VALUES('02','Chéry-lès-Rozoy','26',105,114,4.73,'1949','55245',127,215);
INSERT INTO "communes" VALUES('02','Chauny','09',11983,12512,13.28,'981','55129',42,96);
INSERT INTO "communes" VALUES('02','Sommette-Eaucourt','29',158,157,6.28,'867','55267',61,76);
INSERT INTO "communes" VALUES('02','Lierval','12',115,132,3.77,'1422','54982',90,190);
INSERT INTO "communes" VALUES('02','Chézy-sur-Marne','07',1327,1324,22.43,'1145','54431',57,220);
INSERT INTO "communes" VALUES('02','Oulches-la-Vallée-Foulon','12',63,49,4.45,'1565','54921',70,194);
INSERT INTO "communes" VALUES('02','Anizy-le-Château','01',1895,1902,9.49,'1238','55007',52,166);
INSERT INTO "communes" VALUES('02','Maizy','21',425,354,7.09,'1553','54863',46,171);
INSERT INTO "communes" VALUES('02','Fourdrain','14',404,433,9.45,'1261','55123',57,181);
INSERT INTO "communes" VALUES('02','Nampteuil-sous-Muret','24',85,76,3.38,'1209','54779',72,171);
INSERT INTO "communes" VALUES('02','Urcel','01',549,556,7.2,'1357','54990',58,171);
INSERT INTO "communes" VALUES('02','Louâtre','36',213,215,11.02,'1011','54730',77,186);
INSERT INTO "communes" VALUES('02','Barzy-en-Thiérache','23',306,313,7.63,'1566','55604',152,202);
INSERT INTO "communes" VALUES('02','Condé-en-Brie','10',656,626,4.56,'1361','54449',75,221);
INSERT INTO "communes" VALUES('02','Dampleux','36',437,380,8.19,'908','54715',92,187);
INSERT INTO "communes" VALUES('02','Sommelans','22',57,53,4.28,'1063','54598',127,181);
INSERT INTO "communes" VALUES('02','Pontruet','33',339,324,6.75,'994','55455',72,143);
INSERT INTO "communes" VALUES('02','Oigny-en-Valois','36',142,163,11.88,'889','54688',72,158);
INSERT INTO "communes" VALUES('02','Loupeigne','15',78,77,7.3,'1331','54719',79,140);
INSERT INTO "communes" VALUES('02','Lhuys','04',149,115,4.95,'1354','54756',67,146);
INSERT INTO "communes" VALUES('02','Éparcy','17',44,49,7.52,'1916','55415',147,207);
INSERT INTO "communes" VALUES('02','<NAME>','10',189,209,14.28,'1443','54470',112,254);
INSERT INTO "communes" VALUES('02','Morsain','35',426,416,14.34,'937','54948',52,154);
INSERT INTO "communes" VALUES('02','Jaulgonne','10',666,616,1.78,'1330','54543',62,211);
INSERT INTO "communes" VALUES('02','Chermizy-Ailles','12',96,70,10.95,'1543','54965',78,198);
INSERT INTO "communes" VALUES('02','Becquigny','03',284,273,4.67,'1259','55575',135,166);
INSERT INTO "communes" VALUES('02','Festieux','38',604,509,6.67,'1575','55025',89,208);
INSERT INTO "communes" VALUES('02','Villers-lès-Guise','16',165,182,8.06,'1491','55466',130,163);
INSERT INTO "communes" VALUES('02','Nampcelles-la-Cour','34',137,133,10.89,'1852','55309',122,207);
INSERT INTO "communes" VALUES('02','Montigny-en-Arrouaise','03',300,273,9.77,'1266','55452',90,154);
INSERT INTO "communes" VALUES('02','Berrieux','12',177,160,4.98,'1679','54987',72,159);
INSERT INTO "communes" VALUES('02','Chigny','05',155,160,10.47,'1593','55464',107,198);
INSERT INTO "communes" VALUES('02','Muret-et-Crouttes','24',139,100,5.24,'1199','54761',76,151);
INSERT INTO "communes" VALUES('02','Flavigny-le-Grand-et-Beaurain','16',473,464,13.63,'1476','55434',96,161);
INSERT INTO "communes" VALUES('02','Laon','97',25986,26241,42,'1430','55071',63,183);
INSERT INTO "communes" VALUES('02','Saint-Clément','02',51,59,5.01,'1929','55307',141,212);
INSERT INTO "communes" VALUES('02','Dercy','13',367,399,11.17,'1498','55226',63,140);
INSERT INTO "communes" VALUES('02','Anguilcourt-le-Sart','14',292,268,9.14,'1218','55210',50,111);
INSERT INTO "communes" VALUES('02','Villers-en-Prayères','04',122,108,5.74,'1489','54864',43,144);
INSERT INTO "communes" VALUES('02','Chalandry','13',217,224,7.66,'1451','55197',61,135);
INSERT INTO "communes" VALUES('02','Laval-en-Laonnois','01',255,213,4.51,'1399','55001',57,178);
INSERT INTO "communes" VALUES('02','Fressancourt','14',210,184,2.51,'1210','55147',57,113);
INSERT INTO "communes" VALUES('02','<NAME>','27',162,151,7.36,'1569','55401',127,176);
INSERT INTO "communes" VALUES('02','Fontaine-Notre-Dame','39',384,381,11.9,'1214','55427',77,142);
INSERT INTO "communes" VALUES('02','Chéry-Chartreuve','04',341,309,13.69,'1419','54736',92,207);
INSERT INTO "communes" VALUES('02','Mortefontaine','35',239,255,11.9,'822','54813',64,162);
INSERT INTO "communes" VALUES('02','Serain','03',381,420,6.65,'1144','55587',114,152);
INSERT INTO "communes" VALUES('02','Maast-et-Violaine','24',160,155,10.96,'1236','54760',78,154);
INSERT INTO "communes" VALUES('02','Neuville-sur-Ailette','12',96,78,4.45,'1514','54964',77,178);
INSERT INTO "communes" VALUES('02','Francilly-Selency','33',465,435,5.43,'986','55392',86,128);
INSERT INTO "communes" VALUES('02','Bézu-le-Guéry','07',259,204,11.1,'987','54453',64,212);
INSERT INTO "communes" VALUES('02','Marle','19',2351,2524,13.79,'1594','55267',75,140);
INSERT INTO "communes" VALUES('02','Lemé','27',447,476,11.36,'1586','55375',138,183);
INSERT INTO "communes" VALUES('02','Cierges','15',74,62,8.22,'1402','54631',133,226);
INSERT INTO "communes" VALUES('02','Craonne','12',76,67,8.62,'1611','54934',59,192);
INSERT INTO "communes" VALUES('02','Courtemont-Varennes','10',298,295,5.98,'1339','54527',62,224);
INSERT INTO "communes" VALUES('02','Pommiers','31',637,602,6.69,'1038','54881',38,134);
INSERT INTO "communes" VALUES('02','Gland','08',497,452,5.65,'1251','54498',62,218);
INSERT INTO "communes" VALUES('02','Landouzy-la-Cour','34',167,174,10.12,'1830','55386',150,221);
INSERT INTO "communes" VALUES('02','Montigny-lès-Condé','10',79,56,4.77,'1367','54429',81,223);
INSERT INTO "communes" VALUES('02','Leuilly-sous-Coucy','11',413,418,12.69,'1135','54977',51,162);
INSERT INTO "communes" VALUES('02','Ploisy','41',82,88,2.87,'1061','54813',73,166);
INSERT INTO "communes" VALUES('02','Serval','04',44,43,2.14,'1499','54837',74,169);
INSERT INTO "communes" VALUES('02','Billy-sur-Ourcq','24',215,201,10.17,'1072','54686',105,194);
INSERT INTO "communes" VALUES('02','Ambrief','24',63,84,4.5,'1183','54799',76,166);
INSERT INTO "communes" VALUES('02','Prisces','34',114,105,6.63,'1695','55310',95,172);
INSERT INTO "communes" VALUES('02','Roupy','33',241,262,5.9,'941','55347',79,102);
INSERT INTO "communes" VALUES('02','Ronchères','15',130,111,6.06,'1406','54605',149,227);
INSERT INTO "communes" VALUES('02','Lugny','34',126,145,4.77,'1637','55312',82,172);
INSERT INTO "communes" VALUES('02','Chézy-en-Orxois','22',360,349,16.15,'939','54582',65,169);
INSERT INTO "communes" VALUES('02','Dhuizel','04',115,104,6.81,'1424','54851',69,177);
INSERT INTO "communes" VALUES('02','Étampes-sur-Marne','08',1164,1311,2.24,'1203','54483',59,213);
INSERT INTO "communes" VALUES('02','Vaux-en-Vermandois','33',137,131,3.85,'892','55358',75,99);
INSERT INTO "communes" VALUES('02','Boué','23',1265,1289,10.44,'1513','55569',140,189);
INSERT INTO "communes" VALUES('02','<NAME>','14',3037,2817,6.73,'1143','55180',47,80);
INSERT INTO "communes" VALUES('02','Saint-Michel','17',3535,3653,42.2,'1996','55465',172,278);
INSERT INTO "communes" VALUES('02','Castres','29',231,164,5.71,'1001','55338',67,104);
INSERT INTO "communes" VALUES('02','Mesbrecourt-Richecourt','13',298,289,8.98,'1339','55224',54,113);
INSERT INTO "communes" VALUES('02','Beugneux','24',122,83,7.68,'1197','54705',92,202);
INSERT INTO "communes" VALUES('02','Clermont-les-Fermes','26',120,131,9.3,'1780','55186',99,149);
INSERT INTO "communes" VALUES('02','Condren','09',707,683,5.58,'1049','55146',44,71);
INSERT INTO "communes" VALUES('02','Franqueville','27',130,123,3.04,'1636','55345',99,172);
INSERT INTO "communes" VALUES('02','Arcy-Sainte-Restitue','24',427,369,26.43,'1254','54725',79,197);
INSERT INTO "communes" VALUES('02','Burelles','34',138,152,13.83,'1735','55313',101,181);
INSERT INTO "communes" VALUES('02','Rocourt-Saint-Martin','22',321,298,5.76,'1168','54613',109,212);
INSERT INTO "communes" VALUES('02','Commenchon','09',191,155,3.33,'913','55156',63,182);
INSERT INTO "communes" VALUES('02','Voulpaix','34',405,370,11.55,'1660','55377',114,187);
INSERT INTO "communes" VALUES('02','Bucy-lès-Cerny','18',185,170,8.74,'1312','55091',87,196);
INSERT INTO "communes" VALUES('02','Renansart','25',169,176,8.71,'1253','55260',76,126);
INSERT INTO "communes" VALUES('02','Presles-et-Boves','04',356,343,9.61,'1358','54881',42,174);
INSERT INTO "communes" VALUES('02','Lavaqueresse','16',212,209,4.44,'1526','55499',132,175);
INSERT INTO "communes" VALUES('02','Cuffies','31',1686,1489,5.02,'1092','54895',39,155);
INSERT INTO "communes" VALUES('02','Villequier-Aumont','09',631,602,12.34,'967','55176',52,121);
INSERT INTO "communes" VALUES('02','Vendelles','33',110,127,5.28,'889','55456',78,123);
INSERT INTO "communes" VALUES('02','Attilly','33',384,394,11.81,'925','55396',66,141);
INSERT INTO "communes" VALUES('02','Berlancourt','27',104,93,5.2,'1579','55310',105,156);
INSERT INTO "communes" VALUES('02','Grisolles','22',193,159,10.63,'1135','54601',125,212);
INSERT INTO "communes" VALUES('02','Courcelles-sur-Vesle','04',345,295,8.81,'1373','54820',52,176);
INSERT INTO "communes" VALUES('02','Sons-et-Ronchères','19',234,236,9.2,'1486','55292',78,145);
INSERT INTO "communes" VALUES('02','Seringes-et-Nesles','15',296,236,13.49,'1338','54673',117,193);
INSERT INTO "communes" VALUES('02','Grandlup-et-Fay','19',320,325,20.3,'1556','55175',63,101);
INSERT INTO "communes" VALUES('02','Coincy','15',1310,1149,17.24,'1206','54624',91,218);
INSERT INTO "communes" VALUES('02','Marly-Gomont','16',414,427,12.91,'1613','55449',107,184);
INSERT INTO "communes" VALUES('02','Macogny','22',81,56,6.17,'992','54628',99,162);
INSERT INTO "communes" VALUES('02','Tartiers','35',190,168,8.89,'1002','54926',54,149);
INSERT INTO "communes" VALUES('02','Gibercourt','20',45,37,2.69,'1053','55263',79,106);
INSERT INTO "communes" VALUES('02','Pontru','33',286,276,14.98,'978','55449',72,152);
INSERT INTO "communes" VALUES('02','Trélou-sur-Marne','10',985,891,20.35,'1411','54530',62,234);
INSERT INTO "communes" VALUES('02','<NAME>-aux-Bois-lès-Dizy','26',180,205,10.22,'1841','55179',115,149);
INSERT INTO "communes" VALUES('02','Amigny-Rouy','09',731,626,13.08,'1076','55122',44,147);
INSERT INTO "communes" VALUES('02','Charmes','14',1659,1748,3.66,'1157','55168',47,100);
INSERT INTO "communes" VALUES('02','Viffort','10',333,212,9.83,'1246','54401',159,224);
INSERT INTO "communes" VALUES('02','Mâchecourt','30',122,122,10.08,'1671','55171',67,103);
INSERT INTO "communes" VALUES('02','Nogent-l''Artaud','07',2137,2050,23.99,'1097','54405',57,222);
INSERT INTO "communes" VALUES('02','Tannières','04',14,24,2.55,'1351','54768',64,141);
INSERT INTO "communes" VALUES('02','Saint-Erme-Outre-et-Ramecourt','30',1832,1860,20.11,'1670','55017',75,208);
INSERT INTO "communes" VALUES('02','Jouaignes','04',170,151,7.84,'1332','54776',68,142);
INSERT INTO "communes" VALUES('02','Vaucelles-et-Beffecourt','01',210,195,4.03,'1354','55033',58,168);
INSERT INTO "communes" VALUES('02','Lesquielles-Saint-Germain','16',859,847,16.21,'1427','55479',86,157);
INSERT INTO "communes" VALUES('02','Aizy-Jouy','32',287,240,14.63,'1311','54927',56,195);
INSERT INTO "communes" VALUES('02','Faucoucourt','01',311,280,7.35,'1254','55036',61,191);
INSERT INTO "communes" VALUES('02','Chavigny','31',153,153,5.28,'1076','54917',60,156);
INSERT INTO "communes" VALUES('02','Veuilly-la-Poterie','22',138,127,7.54,'973','54539',72,176);
INSERT INTO "communes" VALUES('02','Mézy-Moulins','10',523,461,4.48,'1315','54511',62,220);
INSERT INTO "communes" VALUES('02','Gernicourt','21',50,55,7.47,'1707','54889',49,92);
INSERT INTO "communes" VALUES('02','Quincy-Basse','11',58,68,3.87,'1157','55017',58,153);
INSERT INTO "communes" VALUES('02','Sergy','15',164,143,13.32,'1370','54647',122,217);
INSERT INTO "communes" VALUES('02','Toulis-et-Attencourt','19',133,114,7.42,'1563','55222',66,109);
INSERT INTO "communes" VALUES('02','Puiseux-en-Retz','36',217,234,9.88,'881','54775',78,226);
INSERT INTO "communes" VALUES('02','Leuze','02',162,171,10.19,'2028','55391',163,226);
INSERT INTO "communes" VALUES('02','Crézancy','10',1110,1068,7.06,'1305','54498',62,233);
INSERT INTO "communes" VALUES('02','Noyales','16',171,141,7.18,'1353','55443',80,151);
INSERT INTO "communes" VALUES('02','Marigny-en-Orxois','08',462,415,15.56,'989','54512',84,216);
INSERT INTO "communes" VALUES('02','Foreste','33',184,142,4.94,'847','55343',63,91);
INSERT INTO "communes" VALUES('02','Wissignicourt','01',150,142,4.46,'1234','55026',62,191);
INSERT INTO "communes" VALUES('02','Tavaux-et-Pontséricourt','19',601,592,25.42,'1743','55256',92,185);
INSERT INTO "communes" VALUES('02','Saponay','15',259,246,9.93,'1270','54682',97,176);
INSERT INTO "communes" VALUES('02','Ébouleau','30',206,203,13.03,'1709','55192',87,139);
INSERT INTO "communes" VALUES('02','Orainville','21',492,336,8.69,'1872','54867',57,89);
INSERT INTO "communes" VALUES('02','Missy-lès-Pierrepont','30',114,95,6.6,'1611','55147',68,91);
INSERT INTO "communes" VALUES('02','Neuilly-Saint-Front','22',2175,2088,17.89,'1030','54631',72,181);
INSERT INTO "communes" VALUES('02','Tergnier','42',14139,15096,17.95,'1056','55173',44,90);
INSERT INTO "communes" VALUES('02','<NAME>','22',2240,2108,18.35,'875','54643',62,156);
INSERT INTO "communes" VALUES('02','Bassoles-Aulers','01',132,144,7.03,'1161','55029',80,200);
INSERT INTO "communes" VALUES('02','<NAME>','33',224,231,4.28,'926','55472',74,135);
INSERT INTO "communes" VALUES('02','Ostel','32',80,82,9.1,'1370','54922',64,195);
INSERT INTO "communes" VALUES('02','Sissy','25',484,502,10.76,'1214','55337',62,127);
INSERT INTO "communes" VALUES('02','Leury','31',104,113,3.69,'1111','54923',79,162);
INSERT INTO "communes" VALUES('02','<NAME>-sur-Ourcq','22',124,91,10.45,'1130','54632',100,204);
INSERT INTO "communes" VALUES('02','Pernant','35',708,646,9.83,'1000','54864',37,151);
INSERT INTO "communes" VALUES('02','Étreux','37',1509,1669,10.36,'1467','55549',115,160);
INSERT INTO "communes" VALUES('02','Bruys','04',19,19,5.7,'1363','54745',72,188);
INSERT INTO "communes" VALUES('02','Fontenelle','05',289,272,10.47,'1699','55590',172,223);
INSERT INTO "communes" VALUES('02','Cerseuil','04',91,80,4.61,'1316','54804',65,159);
INSERT INTO "communes" VALUES('02','Voharies','27',68,78,3.32,'1620','55321',87,156);
INSERT INTO "communes" VALUES('02','Saint-Pierre-Aigle','35',352,354,12.02,'944','54800',68,163);
INSERT INTO "communes" VALUES('02','Saint-Martin-Rivière','37',125,119,5.52,'1337','55604',108,163);
INSERT INTO "communes" VALUES('02','Nanteuil-Notre-Dame','15',67,76,3.72,'1191','54658',87,129);
INSERT INTO "communes" VALUES('02','Selens','11',238,209,7.65,'970','55002',57,154);
INSERT INTO "communes" VALUES('02','Monthenault','12',120,106,2.94,'1478','54986',101,198);
INSERT INTO "communes" VALUES('02','Saint-Eugène','10',238,203,6.75,'1327','54469',70,231);
INSERT INTO "communes" VALUES('02','Étouvelles','38',223,199,2.38,'1383','55023',59,67);
INSERT INTO "communes" VALUES('02','Faverolles','36',343,319,13.79,'933','54694',67,177);
INSERT INTO "communes" VALUES('02','Lislet','26',239,232,8.2,'1872','55207',111,162);
INSERT INTO "communes" VALUES('02','Vendeuil','20',918,858,14.45,'1128','55240',49,112);
INSERT INTO "communes" VALUES('02','Folembray','11',1504,1492,8.85,'1058','55047',49,152);
INSERT INTO "communes" VALUES('02','Courbes','14',34,31,3.16,'1239','55205',52,83);
INSERT INTO "communes" VALUES('02','Chacrise','24',312,339,12.74,'1185','54784',65,173);
INSERT INTO "communes" VALUES('02','Serches','04',313,294,9.1,'1235','54822',67,173);
INSERT INTO "communes" VALUES('02','Acy','04',959,952,11.67,'1197','54828',42,165);
INSERT INTO "communes" VALUES('02','Verneuil-sous-Coucy','11',130,134,4.58,'1086','55046',64,167);
INSERT INTO "communes" VALUES('02','Bazoches-sur-Vesles','04',457,383,9.49,'1425','54786',52,174);
INSERT INTO "communes" VALUES('02','Mauregny-en-Haye','30',434,420,10.46,'1620','55034',79,200);
INSERT INTO "communes" VALUES('02','Hartennes-et-Taux','24',333,358,6.31,'1129','54746',86,196);
INSERT INTO "communes" VALUES('02','Vasseny','04',212,153,3.18,'1277','54837',46,155);
INSERT INTO "communes" VALUES('02','Merval','04',88,69,3.36,'1511','54835',69,180);
INSERT INTO "communes" VALUES('02','Corcy','36',310,306,7.25,'972','54727',77,155);
INSERT INTO "communes" VALUES('02','Bony','06',135,124,7.98,'985','55542',87,146);
INSERT INTO "communes" VALUES('02','Breny','24',268,238,4.52,'1129','54651',82,155);
INSERT INTO "communes" VALUES('02','Brécy','15',352,318,9.98,'1214','54609',103,216);
INSERT INTO "communes" VALUES('02','Bruyères-sur-Fère','15',206,217,9.05,'1229','54655',91,169);
INSERT INTO "communes" VALUES('02','Flavy-le-Martel','29',1636,1520,12.83,'952','55237',63,158);
INSERT INTO "communes" VALUES('02','Pancy-Courtecon','12',43,52,6.37,'1464','54971',70,181);
INSERT INTO "communes" VALUES('02','Bosmont-sur-Serre','19',206,186,9.68,'1692','55258',87,172);
INSERT INTO "communes" VALUES('02','Missy-aux-Bois','41',108,102,3.04,'1015','54819',69,155);
INSERT INTO "communes" VALUES('02','Surfontaine','25',103,83,6.38,'1254','55279',74,121);
INSERT INTO "communes" VALUES('02','Dagny-Lambercy','26',132,159,10.04,'1897','55301',137,211);
INSERT INTO "communes" VALUES('02','Lanchy','33',52,63,3.69,'821','55363',84,94);
INSERT INTO "communes" VALUES('02','Vaudesson','32',260,177,8.42,'1276','54967',58,194);
INSERT INTO "communes" VALUES('02','Cœuvres-et-Valsery','35',462,432,12.52,'909','54821',59,154);
INSERT INTO "communes" VALUES('02','Épieds','08',389,331,18.66,'1231','54563',125,222);
INSERT INTO "communes" VALUES('02','Villeneuve-Saint-Germain','31',2438,2313,4.54,'1136','54866',42,89);
INSERT INTO "communes" VALUES('02','Alaincourt','20',503,466,5.9,'1154','55294',57,109);
INSERT INTO "communes" VALUES('02','Soucy','36',88,73,5.22,'877','54792',65,152);
INSERT INTO "communes" VALUES('02','Archon','26',87,84,6.37,'1980','55268',146,225);
INSERT INTO "communes" VALUES('02','Pargny-Filain','32',234,200,5.01,'1342','54960',62,192);
INSERT INTO "communes" VALUES('02','Germaine','33',66,67,4.54,'865','55346',68,94);
INSERT INTO "communes" VALUES('02','La Neuville-Housset','27',63,50,4.99,'1547','55324',113,157);
INSERT INTO "communes" VALUES('02','Belleau','08',135,135,6.72,'1063','54537',87,198);
INSERT INTO "communes" VALUES('02','Paars','04',284,210,5.15,'1404','54809',54,169);
INSERT INTO "communes" VALUES('02','Laniscourt','01',175,185,3,'1340','55054',68,181);
INSERT INTO "communes" VALUES('02','Sermoise','04',319,340,5.51,'1237','54859',42,163);
INSERT INTO "communes" VALUES('02','Barenton-Bugny','13',589,534,11.38,'1461','55148',64,96);
INSERT INTO "communes" VALUES('02','Quierzy','11',459,334,8.09,'897','55079',38,73);
INSERT INTO "communes" VALUES('02','Cerizy','20',58,48,4,'1100','55289',73,123);
INSERT INTO "communes" VALUES('02','<NAME>','25',589,567,23.92,'1357','55263',56,131);
INSERT INTO "communes" VALUES('02','Ramicourt','03',171,178,3.82,'1103','55510',116,155);
INSERT INTO "communes" VALUES('02','Bussiares','22',122,101,7.4,'1023','54545',79,203);
INSERT INTO "communes" VALUES('02','Bernot','16',459,455,16.56,'1291','55410',72,144);
INSERT INTO "communes" VALUES('02','Lerzy','05',219,213,11.54,'1724','55495',140,219);
INSERT INTO "communes" VALUES('02','Samoussy','38',338,376,25.04,'1553','55094',71,100);
INSERT INTO "communes" VALUES('02','Grougis','37',385,348,11.26,'1328','55493',120,178);
INSERT INTO "communes" VALUES('02','Macquigny','16',374,362,20.18,'1350','55428',77,153);
INSERT INTO "communes" VALUES('02','<NAME>','05',1102,1099,26.43,'1760','55560',171,232);
INSERT INTO "communes" VALUES('02','Servais','14',282,240,5.51,'1119','55134',46,94);
INSERT INTO "communes" VALUES('02','Bertricourt','21',156,70,4.48,'1859','54884',57,76);
INSERT INTO "communes" VALUES('02','Osly-Courtil','35',297,271,5.23,'988','54891',37,115);
INSERT INTO "communes" VALUES('02','Verneuil-sur-Serre','13',271,253,7.86,'1485','55168',62,91);
INSERT INTO "communes" VALUES('02','Mayot','14',171,176,3.42,'1165','55227',51,116);
INSERT INTO "communes" VALUES('02','Wassigny','37',973,1024,6.79,'1404','55570',137,161);
INSERT INTO "communes" VALUES('02','Barenton-Cel','13',136,133,6.69,'1462','55158',63,106);
INSERT INTO "communes" VALUES('02','Englancourt','05',118,125,7.97,'1627','55463',111,207);
INSERT INTO "communes" VALUES('02','Athies-sous-Laon','38',2515,2128,15.44,'1496','55081',64,87);
INSERT INTO "communes" VALUES('02','Froidestrées','05',208,219,4.91,'1744','55490',147,221);
INSERT INTO "communes" VALUES('02','<NAME>','21',411,363,25.61,'1827','55017',78,133);
INSERT INTO "communes" VALUES('02','Manicamp','11',309,344,10.24,'926','55080',38,69);
INSERT INTO "communes" VALUES('02','Barenton-sur-Serre','13',115,109,8.05,'1493','55191',61,122);
INSERT INTO "communes" VALUES('02','Audigny','16',265,209,10.73,'1456','55411',112,158);
INSERT INTO "communes" VALUES('02','Ohis','17',307,317,6.48,'1859','55477',138,228);
INSERT INTO "communes" VALUES('02','Martigny','02',452,462,16.96,'2000','55399',157,228);
INSERT INTO "communes" VALUES('02','Barisis','11',723,669,15.11,'1102','55087',53,186);
INSERT INTO "communes" VALUES('02','Épaux-Bézu','08',588,534,19.5,'1123','54565',100,217);
INSERT INTO "communes" VALUES('02','Abbécourt','09',528,447,5.96,'937','55106',38,64);
INSERT INTO "communes" VALUES('02','Hauteville','16',167,172,7.1,'1317','55420',75,151);
INSERT INTO "communes" VALUES('02','Benay','20',213,187,6.81,'1076','55288',63,126);
INSERT INTO "communes" VALUES('02','<NAME>','09',178,152,3.81,'905','55195',64,158);
INSERT INTO "communes" VALUES('02','Tupigny','37',364,350,12.84,'1412','55508',95,178);
INSERT INTO "communes" VALUES('02','Vervins','34',2666,2653,10.35,'1747','55372',120,208);
INSERT INTO "communes" VALUES('02','Dorengt','23',157,142,10.5,'1497','55528',132,178);
INSERT INTO "communes" VALUES('02','Saint-Gobert','27',309,320,7.78,'1644','55335',97,177);
INSERT INTO "communes" VALUES('02','Parcy-et-Tigny','24',249,243,10.59,'1109','54754',105,200);
INSERT INTO "communes" VALUES('02','Saint-Pierre-lès-Franqueville','27',64,60,7,'1652','55355',106,182);
INSERT INTO "communes" VALUES('02','Mont-Notre-Dame','04',677,630,9.96,'1386','54771',53,165);
INSERT INTO "communes" VALUES('02','Mont-Saint-Martin','04',85,40,5.81,'1449','54758',73,208);
INSERT INTO "communes" VALUES('02','Chierry','08',1055,1034,2.82,'1214','54488',61,217);
INSERT INTO "communes" VALUES('02','Cutry','35',115,98,4.79,'939','54830',58,158);
INSERT INTO "communes" VALUES('02','Chevennes','27',142,155,6.06,'1551','55350',115,161);
INSERT INTO "communes" VALUES('02','Montigny-le-Franc','19',158,192,9.9,'1745','55209',105,150);
INSERT INTO "communes" VALUES('02','Bourg-et-Comin','12',754,679,5.12,'1464','54885',44,170);
INSERT INTO "communes" VALUES('02','Saint-Agnan','10',101,106,8.07,'1398','54467',87,242);
INSERT INTO "communes" VALUES('02','Coulonges-Cohan','15',428,369,28.75,'1444','54668',105,238);
INSERT INTO "communes" VALUES('02','Prémontré','01',769,775,8.33,'1197','55045',84,215);
INSERT INTO "communes" VALUES('02','Courtrizy-et-Fussigny','30',67,66,4.22,'1613','55022',107,205);
INSERT INTO "communes" VALUES('02','Jumencourt','11',154,119,6.2,'1130','55010',51,168);
INSERT INTO "communes" VALUES('02','Clairfontaine','05',569,497,14.31,'1832','55533',152,239);
INSERT INTO "communes" VALUES('02','Sequehart','06',227,217,6.38,'1107','55477',95,151);
INSERT INTO "communes" VALUES('02','Agnicourt-et-Séchelles','19',207,211,10.79,'1796','55240',96,175);
INSERT INTO "communes" VALUES('02','Roucy','21',404,329,6.96,'1643','54858',55,206);
INSERT INTO "communes" VALUES('02','Prémont','03',757,714,12.21,'1175','55570',112,165);
INSERT INTO "communes" VALUES('02','Clastres','29',611,509,8.24,'995','55273',63,95);
INSERT INTO "communes" VALUES('02','<NAME>','15',322,282,9.83,'1347','54570',73,225);
INSERT INTO "communes" VALUES('02','Allemant','32',180,117,5.13,'1241','54957',83,171);
INSERT INTO "communes" VALUES('02','Mont-Saint-Père','08',686,538,10.69,'1281','54528',62,222);
INSERT INTO "communes" VALUES('02','Parfondeval','26',155,149,10.91,'2026','55268',159,248);
INSERT INTO "communes" VALUES('02','Chivres-Val','32',585,574,5.54,'1221','54884',54,168);
INSERT INTO "communes" VALUES('02','Aubencheul-aux-Bois','06',310,272,2.11,'1031','55588',105,139);
INSERT INTO "communes" VALUES('02','Montfaucon','07',181,165,15.36,'1215','54382',127,219);
INSERT INTO "communes" VALUES('02','Autels','26',74,74,5.99,'2098','55293',178,260);
INSERT INTO "communes" VALUES('02','Fontenoy','35',494,532,9.03,'958','54897',36,142);
INSERT INTO "communes" VALUES('02','Crécy-au-Mont','11',289,289,11.83,'1098','54987',48,160);
INSERT INTO "communes" VALUES('02','Morcourt','39',596,577,6.07,'1095','55418',72,134);
INSERT INTO "communes" VALUES('02','Neuville-sur-Margival','32',117,91,3.65,'1182','54948',73,161);
INSERT INTO "communes" VALUES('02','Cys-la-Commune','04',152,127,4.39,'1373','54880',44,177);
INSERT INTO "communes" VALUES('02','Marizy-Saint-Mard','22',59,55,4.54,'986','54646',72,155);
INSERT INTO "communes" VALUES('02','Villeret','06',314,311,3.95,'952','55503',97,147);
INSERT INTO "communes" VALUES('02','Amifontaine','21',418,388,27.9,'1757','54981',64,119);
INSERT INTO "communes" VALUES('02','Fontaine-Uterte','03',127,119,5.77,'1148','55469',98,144);
INSERT INTO "communes" VALUES('02','Dolignon','26',59,46,3.38,'1942','55257',126,213);
INSERT INTO "communes" VALUES('02','Étaves-et-Bocquiaux','03',556,601,13.68,'1241','55488',92,160);
INSERT INTO "communes" VALUES('02','Rocquigny','05',393,391,10.99,'1828','55582',157,231);
INSERT INTO "communes" VALUES('02','Mortiers','13',207,213,6.39,'1480','55208',61,119);
INSERT INTO "communes" VALUES('02','Rozoy-sur-Serre','26',1025,1079,16.53,'1991','55232',131,232);
INSERT INTO "communes" VALUES('02','Malzy','16',194,182,10.3,'1545','55453',103,176);
INSERT INTO "communes" VALUES('02','Bellenglise','06',386,410,6.4,'1008','55469',77,129);
INSERT INTO "communes" VALUES('02','Cerny-en-Laonnois','12',71,54,7.22,'1479','54937',74,194);
INSERT INTO "communes" VALUES('02','Montloué','26',157,191,15.58,'1926','55194',115,196);
INSERT INTO "communes" VALUES('02','Sainte-Geneviève','26',77,63,4.53,'1928','55244',126,211);
INSERT INTO "communes" VALUES('02','Neuve-Maison','17',616,618,8.42,'1884','55478',143,200);
INSERT INTO "communes" VALUES('02','Bézu-Saint-Germain','08',959,478,11.13,'1192','54565',129,217);
INSERT INTO "communes" VALUES('02','Étréaupont','05',895,934,17.59,'1755','55448',120,227);
INSERT INTO "communes" VALUES('02','Berthenicourt','20',214,199,3.07,'1161','55302',58,108);
INSERT INTO "communes" VALUES('02','Thiernu','19',110,128,6.16,'1614','55290',78,157);
INSERT INTO "communes" VALUES('02','Laigny','34',220,221,10.83,'1685','55398',140,204);
INSERT INTO "communes" VALUES('02','Aisonville-et-Bernoville','16',288,289,8.73,'1317','55482',108,166);
INSERT INTO "communes" VALUES('02','Crouy','31',2716,2622,10.38,'1137','54892',40,165);
INSERT INTO "communes" VALUES('02','Hirson','17',9383,10327,33.77,'1942','55468',157,268);
INSERT INTO "communes" VALUES('02','Bagneux','35',73,62,2.21,'1047','54953',72,149);
INSERT INTO "communes" VALUES('02','Autremencourt','19',185,161,9.15,'1611','55227',73,140);
INSERT INTO "communes" VALUES('02','<NAME>','10',114,81,5.67,'1255','54294',107,184);
INSERT INTO "communes" VALUES('02','Condé-sur-Aisne','32',417,358,3.73,'1258','54887',42,171);
INSERT INTO "communes" VALUES('02','Blérancourt','11',1262,1196,10.8,'904','55018',53,159);
INSERT INTO "communes" VALUES('02','Monthurel','10',150,122,3.86,'1345','54470',71,237);
INSERT INTO "communes" VALUES('02','Petit-Verly','37',188,177,5.19,'1356','55525',120,177);
INSERT INTO "communes" VALUES('02','Soize','26',98,106,5.91,'1942','55224',130,197);
INSERT INTO "communes" VALUES('02','Saconin-et-Breuil','35',221,234,8.53,'1013','54840',58,161);
INSERT INTO "communes" VALUES('02','Largny-sur-Automne','36',234,257,9.53,'783','54734',67,218);
INSERT INTO "communes" VALUES('02','Sommeron','05',136,121,4.68,'1781','55502',152,228);
INSERT INTO "communes" VALUES('02','Veslud','38',257,252,4.13,'1551','55037',74,187);
INSERT INTO "communes" VALUES('02','Liesse-Notre-Dame','30',1275,1326,9.96,'1631','55122',68,87);
INSERT INTO "communes" VALUES('02','Chaudun','24',261,282,8.52,'1031','54798',105,157);
INSERT INTO "communes" VALUES('02','Vuillery','32',32,24,1.09,'1167','54923',61,149);
INSERT INTO "communes" VALUES('02','Omissy','39',807,743,7.09,'1084','55420',72,125);
INSERT INTO "communes" VALUES('02','Pavant','07',799,753,5.43,'1053','54393',57,206);
INSERT INTO "communes" VALUES('02','Missy-sur-Aisne','32',684,667,3.25,'1221','54874',42,152);
INSERT INTO "communes" VALUES('02','Cugny','29',576,505,9.4,'908','55230',63,138);
INSERT INTO "communes" VALUES('02','Parfondru','38',346,295,9.08,'1527','55031',69,189);
INSERT INTO "communes" VALUES('02','Coingt','02',77,73,7.31,'1950','55326',155,231);
INSERT INTO "communes" VALUES('02','Fonsomme','39',535,554,9.6,'1181','55447',82,131);
INSERT INTO "communes" VALUES('02','Dury','29',196,177,7.74,'881','55279',62,87);
INSERT INTO "communes" VALUES('02','Royaucourt-et-Chailvet','01',198,175,3.04,'1330','55013',57,162);
INSERT INTO "communes" VALUES('02','Landricourt','11',127,128,5.83,'1144','55009',51,169);
INSERT INTO "communes" VALUES('02','Sissonne','30',2072,2110,53.53,'1729','55079',71,131);
INSERT INTO "communes" VALUES('02','Berlise','26',126,100,6.59,'1967','55182',127,192);
INSERT INTO "communes" VALUES('02','Ribemont','25',1984,2095,26.91,'1246','55329',62,141);
INSERT INTO "communes" VALUES('02','Sains-Richaumont','27',1005,951,12.46,'1525','55360',96,159);
INSERT INTO "communes" VALUES('02','Filain','32',137,89,4.78,'1355','54955',64,198);
INSERT INTO "communes" VALUES('02','Chevregny','01',192,196,8.85,'1394','54970',66,188);
INSERT INTO "communes" VALUES('02','Montchâlons','38',64,67,6.76,'1546','55015',94,206);
INSERT INTO "communes" VALUES('02','Brumetz','22',222,183,7.24,'915','54558',62,161);
INSERT INTO "communes" VALUES('02','Taillefontaine','36',271,288,10.63,'784','54791',65,238);
INSERT INTO "communes" VALUES('02','Guny','11',446,446,9.32,'1034','55021',42,152);
INSERT INTO "communes" VALUES('02','Fresnoy-le-Grand','03',3096,3272,15.07,'1201','55497',96,157);
INSERT INTO "communes" VALUES('02','Nouvron-Vingré','35',226,200,9.25,'957','54921',52,149);
INSERT INTO "communes" VALUES('02','Magny-la-Fosse','06',128,140,3.63,'1042','55482',92,144);
INSERT INTO "communes" VALUES('02','Cuisy-en-Almont','35',317,355,9.17,'1010','54908',44,153);
INSERT INTO "communes" VALUES('02','Montbavin','01',41,35,5.44,'1324','55025',67,193);
INSERT INTO "communes" VALUES('02','Vorges','38',378,377,4.78,'1464','55020',70,193);
INSERT INTO "communes" VALUES('02','Montescourt-Lizerolles','29',1684,1477,6.29,'1023','55265',68,102);
INSERT INTO "communes" VALUES('02','Pont-Arcy','32',129,109,3.18,'1437','54884',42,150);
INSERT INTO "communes" VALUES('02','Grugies','29',1121,906,5.08,'1033','55348',68,111);
INSERT INTO "communes" VALUES('02','Bieuxy','35',30,25,4.5,'1027','54941',69,158);
INSERT INTO "communes" VALUES('02','Marcy','39',157,184,7.3,'1186','55389',74,128);
INSERT INTO "communes" VALUES('02','Braine','04',2162,2069,11.61,'1328','54824',48,169);
INSERT INTO "communes" VALUES('02','Orgeval','38',72,66,2.41,'1519','55008',101,189);
INSERT INTO "communes" VALUES('02','Marest-Dampcourt','09',336,326,8.35,'905','55111',38,63);
INSERT INTO "communes" VALUES('02','Cilly','19',222,246,9.3,'1661','55264',81,167);
INSERT INTO "communes" VALUES('02','Harly','40',1707,1801,3.76,'1094','55381',72,112);
INSERT INTO "communes" VALUES('02','Rouvroy','39',439,425,5.05,'1091','55394',73,121);
INSERT INTO "communes" VALUES('02','Romeny-sur-Marne','07',487,418,4.23,'1111','54418',57,208);
INSERT INTO "communes" VALUES('02','Douchy','33',150,150,5.05,'887','55329',77,96);
INSERT INTO "communes" VALUES('02','Vauxtin','04',51,51,2.27,'1408','54834',80,173);
INSERT INTO "communes" VALUES('02','Rogécourt','14',86,92,5.54,'1211','55170',52,103);
INSERT INTO "communes" VALUES('02','Montigny-Lengrain','35',668,636,11.38,'847','54857',36,163);
INSERT INTO "communes" VALUES('02','Houry','34',63,59,3.48,'1681','55314',90,172);
INSERT INTO "communes" VALUES('02','Pierrepont','19',394,377,10.54,'1617','55171',67,94);
INSERT INTO "communes" VALUES('02','Dohis','26',92,111,8.1,'1999','55291',175,243);
INSERT INTO "communes" VALUES('02','Brasles','08',1318,1235,7.45,'1212','54499',61,214);
INSERT INTO "communes" VALUES('02','Aubigny-en-Laonnois','12',116,114,4.41,'1616','54998',92,212);
INSERT INTO "communes" VALUES('02','Paissy','12',70,68,7.08,'1516','54917',60,201);
INSERT INTO "communes" VALUES('02','Nouvion-le-Comte','13',273,275,7.98,'1251','55220',52,117);
INSERT INTO "communes" VALUES('02','Monceau-le-Neuf-et-Faucouzy','27',345,330,19.72,'1421','55300',66,142);
INSERT INTO "communes" VALUES('02','Raillimont','26',90,77,4.9,'2019','55228',139,224);
INSERT INTO "communes" VALUES('02','Dammard','22',416,418,7.96,'957','54605',77,159);
INSERT INTO "communes" VALUES('02','Passy-sur-Marne','10',152,112,3.71,'1371','54513',62,229);
INSERT INTO "communes" VALUES('02','Lempire','06',108,107,2.62,'929','55547',104,144);
INSERT INTO "communes" VALUES('02','Cuiry-lès-Chaudardes','12',84,42,5.15,'1592','54874',46,160);
INSERT INTO "communes" VALUES('02','Housset','27',173,193,13.2,'1524','55327',85,157);
INSERT INTO "communes" VALUES('02','Billy-sur-Aisne','41',1081,1189,7.47,'1163','54840',56,160);
INSERT INTO "communes" VALUES('02','Belleu','41',3881,4032,4.53,'1110','54843',45,162);
INSERT INTO "communes" VALUES('02','Pontavert','21',596,444,13.37,'1648','54897',47,120);
INSERT INTO "communes" VALUES('02','Dizy-le-Gros','26',790,754,19.96,'1873','55144',92,162);
INSERT INTO "communes" VALUES('02','Crouttes-sur-Marne','07',645,634,4.33,'1004','54422',54,201);
INSERT INTO "communes" VALUES('02','Courmelles','41',1700,1657,6.76,'1084','54828',49,163);
INSERT INTO "communes" VALUES('02','Bichancourt','11',1041,937,7.73,'976','55088',41,67);
INSERT INTO "communes" VALUES('02','Beauvois-en-Vermandois','33',278,305,7.51,'852','55377',75,95);
INSERT INTO "communes" VALUES('02','Priez','22',50,47,4.93,'1029','54597',115,179);
INSERT INTO "communes" VALUES('02','Chassemy','04',803,709,10.85,'1301','54866',43,160);
INSERT INTO "communes" VALUES('02','Étrépilly','08',81,85,5.13,'1114','54539',131,222);
INSERT INTO "communes" VALUES('02','Artemps','29',359,338,6.31,'948','55295',62,93);
INSERT INTO "communes" VALUES('02','Frières-Faillouël','09',985,773,15.26,'1006','55208',57,108);
INSERT INTO "communes" VALUES('02','Wiège-Faty','27',231,200,7.47,'1536','55424',101,164);
INSERT INTO "communes" VALUES('02','Saint-Nicolas-aux-Bois','14',111,92,6.64,'1216','55103',64,193);
INSERT INTO "communes" VALUES('02','Gricourt','33',869,739,9.92,'1009','55432',78,131);
INSERT INTO "communes" VALUES('02','Blesmes','08',371,381,9.7,'1238','54486',61,231);
INSERT INTO "communes" VALUES('02','Ville-Savoye','04',58,58,2.64,'1448','54771',55,163);
INSERT INTO "communes" VALUES('02','Mercin-et-Vaux','41',940,920,7.77,'1044','54861',41,156);
INSERT INTO "communes" VALUES('02','Chevresis-Monceau','25',356,367,16.85,'1372','55282',60,137);
INSERT INTO "communes" VALUES('02','Beaurevoir','06',1512,1497,21.73,'1080','55552',97,152);
INSERT INTO "communes" VALUES('02','Saint-Bandry','35',260,238,6.02,'923','54858',49,157);
INSERT INTO "communes" VALUES('02','Vregny','32',91,102,4.5,'1207','54898',69,166);
INSERT INTO "communes" VALUES('02','Vadencourt','16',638,605,12.24,'1380','55477',82,152);
INSERT INTO "communes" VALUES('02','Vierzy','24',440,386,12.73,'1054','54767',86,155);
INSERT INTO "communes" VALUES('02','Caillouël-Crépigny','09',420,426,6.63,'879','55135',53,182);
INSERT INTO "communes" VALUES('02','Nizy-le-Comte','30',257,250,31.53,'1909','55076',77,142);
INSERT INTO "communes" VALUES('02','Vendières','07',153,123,12.35,'1234','54301',102,209);
INSERT INTO "communes" VALUES('02','Buzancy','24',186,169,4.75,'1124','54793',62,153);
INSERT INTO "communes" VALUES('02','Jeantes','02',217,213,15.61,'1910','55338',153,231);
INSERT INTO "communes" VALUES('02','Connigis','10',325,266,5.46,'1327','54480',67,233);
INSERT INTO "communes" VALUES('02','Torcy-en-Valois','22',83,73,3.62,'1046','54542',82,175);
INSERT INTO "communes" VALUES('02','Coucy-la-Ville','11',213,176,6.11,'1103','55037',62,175);
INSERT INTO "communes" VALUES('02','Goudelancourt-lès-Pierrepont','30',142,147,8.73,'1687','55188',82,135);
INSERT INTO "communes" VALUES('02','Passy-en-Valois','22',164,140,3.41,'953','54631',120,159);
INSERT INTO "communes" VALUES('02','Montgru-Saint-Hilaire','24',34,40,3.24,'1102','54655',78,181);
INSERT INTO "communes" VALUES('02','Mont-d''Origny','25',860,919,13.52,'1293','55381',71,143);
INSERT INTO "communes" VALUES('02','Vassogne','12',66,50,2.93,'1547','54913',63,188);
INSERT INTO "communes" VALUES('02','Maissemy','33',245,195,8.17,'946','55437',71,123);
INSERT INTO "communes" VALUES('02','Rogny','34',105,116,5.61,'1637','55299',81,159);
INSERT INTO "communes" VALUES('02','Vénérolles','37',216,265,8.89,'1448','55536',106,186);
INSERT INTO "communes" VALUES('02','Clamecy','32',223,273,3.4,'1138','54920',62,161);
INSERT INTO "communes" VALUES('02','Viel-Arcy','04',181,151,6.59,'1431','54866',44,180);
INSERT INTO "communes" VALUES('02','Guyencourt','21',225,224,4.2,'1667','54841',73,200);
INSERT INTO "communes" VALUES('02','Mennevret','37',664,653,11.89,'1355','55539',134,176);
INSERT INTO "communes" VALUES('02','Caulaincourt','33',136,120,5.96,'855','55405',60,104);
INSERT INTO "communes" VALUES('02','Oulchy-le-Château','24',833,849,15.08,'1146','54672',87,178);
INSERT INTO "communes" VALUES('02','Guise','16',5173,5896,16.13,'1434','55445',91,157);
INSERT INTO "communes" VALUES('02','Champs','11',293,275,9.16,'1019','55045',42,76);
INSERT INTO "communes" VALUES('02','Sainte-Preuve','30',84,85,9.61,'1745','55132',76,124);
INSERT INTO "communes" VALUES('02','Proix','16',147,135,3.45,'1367','55445',80,151);
INSERT INTO "communes" VALUES('02','Ambleny','35',1134,1116,17.32,'942','54868',38,153);
INSERT INTO "communes" VALUES('02','Ribeauville','37',82,73,3.58,'1388','55603',144,162);
INSERT INTO "communes" VALUES('02','Tugny-et-Pont','29',281,268,5.89,'909','55287',62,93);
INSERT INTO "communes" VALUES('02','Fresnes','11',152,151,7.3,'1148','55060',87,205);
INSERT INTO "communes" VALUES('02','Bourguignon-sous-Montbavin','01',133,121,1.92,'1339','55031',70,182);
INSERT INTO "communes" VALUES('02','Neuvillette','25',196,195,6.44,'1273','55393',67,135);
INSERT INTO "communes" VALUES('02','Saint-Thomas','12',97,66,2.5,'1650','54997',88,207);
INSERT INTO "communes" VALUES('02','Marfontaine','27',84,88,9.21,'1592','55338',99,171);
INSERT INTO "communes" VALUES('02','Besmont','02',153,146,15.86,'1984','55375',165,245);
INSERT INTO "communes" VALUES('02','Lehaucourt','06',912,832,9.37,'1048','55467',83,142);
INSERT INTO "communes" VALUES('02','Brissy-Hamégicourt','20',639,626,12.38,'1160','55271',54,112);
INSERT INTO "communes" VALUES('02','Plomion','34',477,518,16.39,'1868','55343',132,226);
INSERT INTO "communes" VALUES('02','Savy','33',614,704,7.49,'951','55367',84,121);
INSERT INTO "communes" VALUES('02','Puisieux-et-Clanlieu','27',296,300,17.42,'1490','55393',99,160);
INSERT INTO "communes" VALUES('02','Ciry-Salsogne','04',842,648,8.95,'1250','54847',42,170);
INSERT INTO "communes" VALUES('02','Crupilly','05',66,64,3.52,'1576','55473',129,185);
INSERT INTO "communes" VALUES('02','Dommiers','35',287,279,7.24,'970','54808',75,162);
INSERT INTO "communes" VALUES('02','Étreillers','33',1199,1104,8.69,'915','55366',81,125);
INSERT INTO "communes" VALUES('02','Chouy','22',395,318,20.03,'1013','54673',72,191);
INSERT INTO "communes" VALUES('02','Landifay-et-Bertaignemont','27',292,279,19.6,'1411','55352',77,153);
INSERT INTO "communes" VALUES('02','Silly-la-Poterie','22',134,138,2.31,'901','54664',66,156);
INSERT INTO "communes" VALUES('02','Nauroy','06',691,685,6.27,'1021','55504',93,152);
INSERT INTO "communes" VALUES('02','Limé','04',188,153,5.55,'1346','54802',52,137);
INSERT INTO "communes" VALUES('02','Aubigny-aux-Kaisnes','29',242,271,3.72,'867','55304',75,96);
INSERT INTO "communes" VALUES('02','Monceau-le-Waast','19',243,229,5.41,'1530','55132',68,106);
INSERT INTO "communes" VALUES('02','Cuiry-lès-Iviers','26',37,40,4.79,'1970','55291',162,221);
INSERT INTO "communes" VALUES('02','Regny','25',209,249,11.89,'1214','55367',66,124);
INSERT INTO "communes" VALUES('02','Villers-Saint-Christophe','29',472,439,8.99,'841','55311',65,96);
INSERT INTO "communes" VALUES('02','Chaillevois','01',188,175,2.17,'1320','55014',57,169);
INSERT INTO "communes" VALUES('02','Vézilly','15',181,124,10.74,'1505','54646',132,247);
INSERT INTO "communes" VALUES('02','Lappion','30',295,292,23.71,'1807','55119',82,134);
INSERT INTO "communes" VALUES('02','Fresnes-en-Tardenois','15',253,263,8.84,'1355','54607',133,221);
INSERT INTO "communes" VALUES('02','Grand-Rozoy','24',293,257,12.45,'1165','54705',114,203);
INSERT INTO "communes" VALUES('02','Condé-sur-Suippe','21',229,260,5.83,'1793','54911',51,86);
INSERT INTO "communes" VALUES('02','Celles-lès-Condé','10',74,77,3.91,'1372','54458',76,223);
INSERT INTO "communes" VALUES('02','Cessières','01',470,438,10.35,'1289','55065',67,188);
INSERT INTO "communes" VALUES('02','Courboin','10',296,269,14.07,'1298','54438',80,229);
INSERT INTO "communes" VALUES('02','Verdilly','08',436,425,5.1,'1208','54526',85,221);
INSERT INTO "communes" VALUES('02','Sorbais','05',272,286,13.72,'1731','55454',118,212);
INSERT INTO "communes" VALUES('02','Thenailles','34',255,285,16.43,'1780','55356',114,209);
INSERT INTO "communes" VALUES('02','Menneville','21',408,275,7.29,'1857','54910',54,129);
INSERT INTO "communes" VALUES('02','Bonneil','08',402,374,2.11,'1125','54453',58,201);
INSERT INTO "communes" VALUES('02','Couvron-et-Aumencourt','13',1325,1015,13.33,'1311','55159',60,91);
INSERT INTO "communes" VALUES('02','Chavignon','32',762,793,11.55,'1316','54977',57,195);
INSERT INTO "communes" VALUES('02','Gandelu','22',679,640,10.03,'941','54550',68,166);
INSERT INTO "communes" VALUES('02','<NAME>','26',170,149,7.06,'1934','55166',112,172);
INSERT INTO "communes" VALUES('02','Septvaux','11',191,202,8.56,'1158','55078',93,212);
INSERT INTO "communes" VALUES('02','Neufchâtel-sur-Aisne','21',416,492,2.86,'1884','54925',56,119);
INSERT INTO "communes" VALUES('02','Boncourt','30',250,225,13.29,'1787','55129',82,137);
INSERT INTO "communes" VALUES('02','Monampteuil','01',137,153,5.86,'1373','54973',64,189);
INSERT INTO "communes" VALUES('02','Villiers-Saint-Denis','07',1051,843,7.57,'1034','54437',69,201);
INSERT INTO "communes" VALUES('02','Glennes','04',226,142,8.57,'1530','54839',71,193);
INSERT INTO "communes" VALUES('02','Jussy','29',1243,1290,13.37,'994','55245',61,91);
INSERT INTO "communes" VALUES('02','Croix-Fonsomme','03',227,218,9.37,'1184','55468',85,147);
INSERT INTO "communes" VALUES('02','Bertaucourt-Epourdon','14',610,515,7.46,'1168','55141',57,121);
INSERT INTO "communes" VALUES('02','Bucilly','17',195,218,12.85,'1951','55419',152,236);
INSERT INTO "communes" VALUES('02','Saint-Thibaut','04',63,57,4.13,'1423','54777',56,168);
INSERT INTO "communes" VALUES('02','Landouzy-la-Ville','02',526,530,15.76,'1902','55401',148,234);
INSERT INTO "communes" VALUES('02','Goudelancourt-lès-Berrieux','12',63,74,5.54,'1681','54996',72,200);
INSERT INTO "communes" VALUES('02','Colligis-Crandelain','12',181,145,6.53,'1449','54973',68,194);
INSERT INTO "communes" VALUES('02','Nesles-la-Montagne','08',1210,1071,17.21,'1211','54466',72,233);
INSERT INTO "communes" VALUES('02','<NAME>','05',1853,2004,12.26,'1755','55530',174,231);
INSERT INTO "communes" VALUES('02','Aizelles','12',112,94,4.88,'1639','54989',73,175);
INSERT INTO "communes" VALUES('02','Vermand','33',1032,1072,15.75,'904','55420',67,117);
INSERT INTO "communes" VALUES('02','Monthiers','22',152,141,7.37,'1068','54559',87,199);
INSERT INTO "communes" VALUES('02','Saint-Pierremont','19',62,62,6.98,'1716','55247',90,152);
INSERT INTO "communes" VALUES('02','Celles-sur-Aisne','32',256,205,6.16,'1272','54896',42,171);
INSERT INTO "communes" VALUES('02','Évergnicourt','21',566,550,9.15,'1894','54937',56,125);
INSERT INTO "communes" VALUES('02','Fossoy','08',577,618,7.18,'1273','54498',61,234);
INSERT INTO "communes" VALUES('02','Muscourt','21',44,36,2.18,'1568','54848',64,187);
INSERT INTO "communes" VALUES('02','Chaudardes','21',88,83,4.7,'1617','54880',47,78);
INSERT INTO "communes" VALUES('02','Remigny','20',390,369,10.07,'1058','55244',59,105);
INSERT INTO "communes" VALUES('02','Mons-en-Laonnois','01',1149,947,4.1,'1352','55042',62,187);
INSERT INTO "communes" VALUES('02','Charly-sur-Marne','07',2739,2728,20.52,'1054','54419',57,211);
INSERT INTO "communes" VALUES('02','Château-Thierry','08',14480,14966,16.55,'1185','54496',59,222);
INSERT INTO "communes" VALUES('02','Eppes','38',411,348,7.71,'1557','55064',72,198);
INSERT INTO "communes" VALUES('02','Vauxrezis','31',334,355,6.54,'1049','54904',48,162);
INSERT INTO "communes" VALUES('02','Châtillon-lès-Sons','19',81,88,10.56,'1497','55288',80,151);
INSERT INTO "communes" VALUES('02','Vivières','36',400,385,13.96,'852','54778',68,226);
INSERT INTO "communes" VALUES('02','Coyolles','36',388,357,24.55,'786','54705',72,170);
INSERT INTO "communes" VALUES('02','Rozières-sur-Crise','24',231,261,7.32,'1131','54808',57,166);
INSERT INTO "communes" VALUES('02','Thenelles','25',568,569,6.99,'1257','55368',67,133);
INSERT INTO "communes" VALUES('02','Nogentel','08',1019,1032,6.93,'1184','54463',59,226);
INSERT INTO "communes" VALUES('02','<NAME>','07',281,217,7.9,'1156','54384',187,216);
INSERT INTO "communes" VALUES('02','Concevreux','21',259,201,12.51,'1614','54863',45,206);
INSERT INTO "communes" VALUES('02','Grandrieux','26',88,97,4.35,'2053','55256',147,242);
INSERT INTO "communes" VALUES('02','Origny-en-Thiérache','17',1548,1449,16.48,'1869','55439',132,227);
INSERT INTO "communes" VALUES('02','Achery','14',587,542,6.9,'1170','55214',48,103);
INSERT INTO "communes" VALUES('02','Lesdins','39',854,749,10.63,'1101','55441',76,139);
INSERT INTO "communes" VALUES('02','Liez','42',435,443,5.45,'1060','55212',53,91);
INSERT INTO "communes" VALUES('02','Haramont','36',611,574,12.24,'806','54754',75,243);
INSERT INTO "communes" VALUES('02','Mennessis','42',419,346,5.23,'1040','55216',54,88);
INSERT INTO "communes" VALUES('02','Levergies','06',587,577,7.67,'1085','55475',94,155);
INSERT INTO "communes" VALUES('02','Ollezy','29',166,157,5.31,'898','55260',63,77);
INSERT INTO "communes" VALUES('02','Colonfay','27',71,94,3.29,'1529','55398',135,162);
INSERT INTO "communes" VALUES('02','Vauxbuin','41',766,826,5,'1064','54842',46,157);
INSERT INTO "communes" VALUES('02','<NAME>','37',146,144,5.28,'1359','55579',123,161);
INSERT INTO "communes" VALUES('02','Révillon','04',70,41,2.24,'1515','54852',55,159);
INSERT INTO "communes" VALUES('02','Watigny','17',369,369,21.12,'2069','55447',197,295);
INSERT INTO "communes" VALUES('02','Grand-Verly','37',149,137,3.8,'1386','55487',87,153);
INSERT INTO "communes" VALUES('02','Troësnes','22',236,213,2.65,'926','54659',66,141);
INSERT INTO "communes" VALUES('02','Nouvion-et-Catillon','13',535,506,16.67,'1275','55224',52,122);
INSERT INTO "communes" VALUES('02','Villers-Hélon','36',222,188,8.07,'1028','54737',85,193);
INSERT INTO "communes" VALUES('02','Buironfosse','05',1189,1206,17.6,'1664','55517',173,222);
INSERT INTO "communes" VALUES('02','Courchamps','22',89,98,2.72,'1032','54570',106,178);
INSERT INTO "communes" VALUES('02','Noyant-et-Aconin','41',476,461,4.6,'1108','54814',55,161);
INSERT INTO "communes" VALUES('02','Saint-Simon','29',621,653,6.34,'932','55272',62,89);
INSERT INTO "communes" VALUES('02','Beautor','42',2642,2981,7.44,'1120','55168',45,61);
INSERT INTO "communes" VALUES('02','Presles-et-Thierny','38',383,341,8.33,'1434','55009',62,191);
INSERT INTO "communes" VALUES('02','Monceau-lès-Leups','14',473,425,13.3,'1283','55190',59,112);
INSERT INTO "communes" VALUES('02','Montcornet','26',1543,1692,5.74,'1867','55217',108,177);
INSERT INTO "communes" VALUES('02','Viels-Maisons','07',1052,962,21.44,'1179','54330',97,221);
INSERT INTO "communes" VALUES('02','Marizy-Sainte-Geneviève','22',130,124,7.71,'962','54648',67,157);
INSERT INTO "communes" VALUES('02','Autreppes','34',187,142,6.78,'1688','55449',117,201);
INSERT INTO "communes" VALUES('02','Moÿ-de-l''Aisne','20',993,1002,6.26,'1140','55281',53,112);
INSERT INTO "communes" VALUES('02','Any-Martin-Rieux','02',476,504,17.73,'2094','55424',197,266);
INSERT INTO "communes" VALUES('02','Esquéhéries','23',850,866,16.21,'1567','55538',144,199);
INSERT INTO "communes" VALUES('02','Trosly-Loire','11',593,621,15.21,'989','55021',43,157);
INSERT INTO "communes" VALUES('02','Fayet','33',588,580,5.86,'1017','55409',82,131);
INSERT INTO "communes" VALUES('02','Harcigny','34',249,264,7.57,'1827','55329',117,211);
INSERT INTO "communes" VALUES('02','Itancourt','20',1118,1048,7.11,'1120','55341',73,122);
INSERT INTO "communes" VALUES('02','Brie','14',59,69,2.8,'1273','55112',79,191);
INSERT INTO "communes" VALUES('02','Hinacourt','20',33,41,3.09,'1066','55272',76,102);
INSERT INTO "communes" VALUES('02','Latilly','22',213,179,9.32,'1082','54616',99,201);
INSERT INTO "communes" VALUES('02','Holnon','33',1433,1335,6.37,'973','55399',85,141);
INSERT INTO "communes" VALUES('02','Marchais','30',379,381,15.3,'1645','55093',70,110);
INSERT INTO "communes" VALUES('02','Parpeville','25',241,220,15.82,'1344','55317',79,144);
INSERT INTO "communes" VALUES('02','Vic-sur-Aisne','35',1760,1791,5.23,'865','54895',36,143);
INSERT INTO "communes" VALUES('02','Vigneux-Hocquet','26',283,265,13.72,'1838','55265',116,201);
INSERT INTO "communes" VALUES('02','Vézaponin','35',131,129,3.18,'992','54954',63,156);
INSERT INTO "communes" VALUES('02','Braye-en-Thiérache','34',139,153,9.17,'1802','55311',115,194);
INSERT INTO "communes" VALUES('02','Retheuil','36',387,334,14.87,'749','54802',67,243);
INSERT INTO "communes" VALUES('02','Fesmy-le-Sart','23',490,463,16.06,'1491','55602',137,192);
INSERT INTO "communes" VALUES('02','Corbeny','12',745,632,15.23,'1652','54958',64,134);
INSERT INTO "communes" VALUES('02','Fluquières','33',213,197,5.24,'907','55337',82,101);
INSERT INTO "communes" VALUES('02','Pont-Saint-Mard','11',185,179,6.79,'1054','54997',46,158);
INSERT INTO "communes" VALUES('02','Montlevon','10',248,255,22.65,'1336','54407',87,224);
INSERT INTO "communes" VALUES('02','Épagny','35',341,333,11,'1006','54958',65,157);
INSERT INTO "communes" VALUES('02','Vincy-Reuil-et-Magny','26',123,141,11.78,'1913','55242',112,203);
INSERT INTO "communes" VALUES('02','Montigny-sous-Marle','19',74,62,7.33,'1617','55276',77,157);
INSERT INTO "communes" VALUES('02','Bois-lès-Pargny','13',183,172,10.32,'1460','55257',90,142);
INSERT INTO "communes" VALUES('02','Renneval','26',132,133,6.82,'1902','55267',139,206);
INSERT INTO "communes" VALUES('02','Travecy','14',643,642,14.52,'1137','55209',47,92);
INSERT INTO "communes" VALUES('02','Lesges','04',83,81,6.65,'1301','54785',75,153);
INSERT INTO "communes" VALUES('02','Crécy-sur-Serre','13',1454,1549,17.9,'1429','55219',57,133);
INSERT INTO "communes" VALUES('02','<NAME>','30',205,190,4.77,'1845','55078',84,117);
INSERT INTO "communes" VALUES('02','Neuville-Saint-Amand','40',893,906,8.26,'1108','55362',79,127);
INSERT INTO "communes" VALUES('02','Bouresches','08',203,183,7.52,'1081','54515',105,217);
INSERT INTO "communes" VALUES('02','Beaumé','02',97,118,9.18,'2017','55376',168,254);
INSERT INTO "communes" VALUES('02','<NAME>','23',2807,2920,48.42,'1609','55575',154,229);
INSERT INTO "communes" VALUES('02','Erlon','19',292,300,8.9,'1530','55255',68,136);
INSERT INTO "communes" VALUES('02','Viry-Noureuil','09',1829,1838,17.76,'1007','55146',42,107);
INSERT INTO "communes" VALUES('02','Lizy','01',269,200,3.73,'1273','55015',58,170);
INSERT INTO "communes" VALUES('02','Dravegny','15',144,149,15.67,'1446','54700',82,227);
INSERT INTO "communes" VALUES('02','Suzy','01',307,270,9.86,'1257','55056',71,207);
INSERT INTO "communes" VALUES('02','Deuillet','14',234,165,3.76,'1139','55145',46,97);
INSERT INTO "communes" VALUES('02','Molinchart','18',317,278,4.47,'1338','55068',70,108);
INSERT INTO "communes" VALUES('02','La Ville-aux-Bois-lès-Pontavert','21',114,135,8.32,'1681','54920',52,98);
INSERT INTO "communes" VALUES('02','Arrancy','38',50,50,5.57,'1575','54991',100,209);
INSERT INTO "communes" VALUES('02','Saint-Christophe-à-Berry','35',426,347,7.78,'885','54915',43,153);
INSERT INTO "communes" VALUES('02','Gronard','34',73,78,7.1,'1719','55326',100,190);
INSERT INTO "communes" VALUES('02','Crépy','18',1896,1710,27.7,'1308','55116',63,183);
INSERT INTO "communes" VALUES('02','Bruyères-et-Montbérault','38',1576,1513,11.61,'1474','55027',67,199);
INSERT INTO "communes" VALUES('02','Béthancourt-en-Vaux','09',420,368,4.3,'901','55143',58,172);
INSERT INTO "communes" VALUES('02','Vauxaillon','01',490,376,13.77,'1191','54977',52,161);
INSERT INTO "communes" VALUES('02','Chartèves','10',368,370,8.76,'1298','54528',62,221);
INSERT INTO "communes" VALUES('02','Marcy-sous-Marle','19',220,234,4.39,'1555','55265',72,126);
INSERT INTO "communes" VALUES('02','Clacy-et-Thierret','38',346,304,4.21,'1371','55049',63,82);
INSERT INTO "communes" VALUES('02','Goussancourt','15',110,68,8.43,'1478','54629',136,229);
INSERT INTO "communes" VALUES('02','Margival','32',320,325,5.47,'1183','54927',66,164);
INSERT INTO "communes" VALUES('02','Barzy-sur-Marne','10',386,356,7.55,'1358','54534',62,231);
INSERT INTO "communes" VALUES('02','Pinon','01',1811,1709,9.48,'1233','54987',54,158);
INSERT INTO "communes" VALUES('02','Brancourt-en-Laonnois','01',677,674,6.56,'1202','55016',63,179);
INSERT INTO "communes" VALUES('02','Vassens','11',172,126,9.87,'908','54964',59,156);
INSERT INTO "communes" VALUES('02','Essigny-le-Grand','20',1109,1197,13.38,'1045','55308',78,116);
INSERT INTO "communes" VALUES('02','Chérêt','38',125,130,3.71,'1497','55017',91,189);
INSERT INTO "communes" VALUES('02','Essigny-le-Petit','39',377,377,4.53,'1144','55444',82,131);
INSERT INTO "communes" VALUES('02','Mareuil-en-Dôle','15',248,184,8.81,'1356','54712',73,203);
INSERT INTO "communes" VALUES('02','Saint-Quentin','98',55978,59049,22.56,'1054','55387',68,125);
INSERT INTO "communes" VALUES('02','Vendhuile','06',531,478,10.96,'969','55567',83,143);
INSERT INTO "communes" VALUES('02','Contescourt','29',66,74,3.42,'994','55325',67,101);
INSERT INTO "communes" VALUES('02','Monnes','22',118,70,4.92,'980','54609',107,167);
INSERT INTO "communes" VALUES('02','Domptin','07',673,530,4.56,'1045','54463',102,203);
INSERT INTO "communes" VALUES('02','Besmé','11',164,133,2.66,'919','55043',54,76);
INSERT INTO "communes" VALUES('02','Vauxcéré','04',112,96,5.8,'1443','54824',65,182);
INSERT INTO "communes" VALUES('02','Molain','37',147,151,1.81,'1331','55590',116,156);
INSERT INTO "communes" VALUES('02','Ployart-et-Vaurseine','38',21,27,4.93,'1564','54987',88,195);
INSERT INTO "communes" VALUES('02','Hautevesnes','22',158,146,7.29,'995','54566',78,173);
INSERT INTO "communes" VALUES('02','Couvrelles','04',189,194,7.5,'1279','54820',51,171);
INSERT INTO "communes" VALUES('02','Buire','17',884,896,4.13,'1911','55448',159,203);
INSERT INTO "communes" VALUES('02','Aulnois-sous-Laon','18',1292,1216,10.01,'1412','55125',66,115);
INSERT INTO "communes" VALUES('02','Courmont','15',110,114,9.86,'1377','54610',139,227);
INSERT INTO "communes" VALUES('02','Pargnan','12',62,39,2.39,'1506','54890',46,181);
INSERT INTO "communes" VALUES('02','Martigny-Courpierre','12',118,121,4.46,'1493','54989',78,196);
INSERT INTO "communes" VALUES('02','Saint-Mard','04',118,113,4.69,'1385','54874',43,182);
INSERT INTO "communes" VALUES('02','Coucy-le-Château-Auffrique','11',1076,995,11.46,'1096','55023',47,147);
INSERT INTO "communes" VALUES('02','Dallon','29',377,401,5.81,'1006','55357',67,121);
INSERT INTO "communes" VALUES('02','Armentières-sur-Ourcq','22',98,105,6.81,'1166','54647',87,151);
INSERT INTO "communes" VALUES('02','Mézières-sur-Oise','20',542,566,9.59,'1181','55315',58,118);
INSERT INTO "communes" VALUES('02','Bergues-sur-Sambre','23',220,195,4.41,'1521','55593',142,189);
INSERT INTO "communes" VALUES('02','La Neuville-Bosmont','19',183,196,9.98,'1670','55237',82,141);
INSERT INTO "communes" VALUES('02','Montreuil-aux-Lions','07',1396,1196,12.99,'954','54468',65,214);
INSERT INTO "communes" VALUES('02','Meurival','21',52,60,2.89,'1583','54842',72,187);
INSERT INTO "communes" VALUES('02','Septmonts','41',580,501,4.8,'1135','54816',57,161);
INSERT INTO "communes" VALUES('02','Pleine-Selve','25',180,179,6.05,'1323','55323',79,144);
INSERT INTO "communes" VALUES('02','Bellicourt','06',636,682,9.77,'999','55512',94,149);
INSERT INTO "communes" VALUES('02','Ancienville','36',73,78,3.85,'975','54686',72,174);
INSERT INTO "communes" VALUES('02','Leschelle','23',296,280,14.69,'1593','55510',144,206);
INSERT INTO "communes" VALUES('02','Fieulaine','39',281,253,7.74,'1236','55444',83,146);
INSERT INTO "communes" VALUES('02','Villers-Agron-Aiguizy','15',100,70,12.79,'1512','54624',110,220);
INSERT INTO "communes" VALUES('02','Fère-en-Tardenois','15',3270,3355,20.4,'1312','54666',106,225);
INSERT INTO "communes" VALUES('02','Cramaille','24',130,102,8.12,'1242','54699',123,197);
INSERT INTO "communes" VALUES('02','Homblières','40',1471,1460,14.29,'1143','55389',72,135);
INSERT INTO "communes" VALUES('02','Ognes','09',1174,1120,6.14,'953','55123',41,95);
INSERT INTO "communes" VALUES('02','Gouy','06',591,649,17.6,'1020','55558',87,150);
INSERT INTO "communes" VALUES('02','Ressons-le-Long','35',755,739,10.55,'902','54876',37,150);
INSERT INTO "communes" VALUES('02','Bucy-lès-Pierrepont','30',416,418,14.46,'1740','55163',75,136);
INSERT INTO "communes" VALUES('02','Nouvion-le-Vineux','38',162,169,3.53,'1416','55003',61,184);
INSERT INTO "communes" VALUES('02','Rozoy-Bellevalle','10',106,100,6.79,'1243','54359',189,222);
INSERT INTO "communes" VALUES('02','Rouvroy-sur-Serre','26',44,51,3.9,'2045','55245',143,233);
INSERT INTO "communes" VALUES('02','Versigny','14',467,429,12.89,'1221','55170',51,87);
INSERT INTO "communes" VALUES('02','Assis-sur-Serre','13',275,266,8.04,'1358','55209',56,90);
INSERT INTO "communes" VALUES('02','Vaux-Andigny','37',959,903,15.75,'1307','55581',121,169);
INSERT INTO "communes" VALUES('02','Fontaine-lès-Vervins','34',987,812,19.74,'1739','55393',123,215);
INSERT INTO "communes" VALUES('02','Luzoir','05',290,280,10.99,'1806','55473',128,221);
INSERT INTO "communes" VALUES('02','Montbrehain','03',807,906,9.9,'1127','55519',116,156);
INSERT INTO "communes" VALUES('02','Erloy','05',92,123,7.44,'1659','55459',112,211);
INSERT INTO "communes" VALUES('02','Papleux','05',108,118,1.93,'1720','55579',189,228);
INSERT INTO "communes" VALUES('02','Seboncourt','03',1079,1112,11.8,'1270','55505',128,166);
INSERT INTO "communes" VALUES('02','Hannapes','37',289,278,9.16,'1432','55525',100,185);
INSERT INTO "communes" VALUES('02','Monceau-sur-Oise','16',121,142,5.86,'1510','55446',101,164);
INSERT INTO "communes" VALUES('02','Froidmont-Cohartille','19',238,209,8.81,'1525','55207',62,107);
INSERT INTO "communes" VALUES('02','Résigny','26',175,208,7.83,'2080','55263',157,244);
INSERT INTO "communes" VALUES('02','Séry-lès-Mézières','25',635,627,11.51,'1203','55305',57,115);
INSERT INTO "communes" VALUES('02','Merlieux-et-Fouquerolles','01',273,218,5.77,'1298','55019',58,183);
INSERT INTO "communes" VALUES('02','L''Épine-aux-Bois','07',259,231,12.37,'1236','54317',149,221);
INSERT INTO "communes" VALUES('02','Andelain','14',186,158,2.91,'1148','55158',47,106);
INSERT INTO "communes" VALUES('02','Jeancourt','33',238,263,5.82,'900','55475',78,141);
INSERT INTO "communes" VALUES('02','Essises','07',430,370,7.31,'1204','54402',109,219);
INSERT INTO "communes" VALUES('02','Villers-Cotterêts','36',10317,9834,41.71,'838','54726',65,226);
INSERT INTO "communes" VALUES('02','Soupir','32',305,282,10.2,'1400','54896',42,190);
INSERT INTO "communes" VALUES('02','Camelin','11',442,424,9.15,'886','55028',52,162);
INSERT INTO "communes" VALUES('02','Longueval-Barbonval','04',485,406,8.73,'1462','54844',58,180);
INSERT INTO "communes" VALUES('02','Gergny','05',152,152,5.86,'1775','55461',126,219);
INSERT INTO "communes" VALUES('02','Bohain-en-Vermandois','03',5976,6593,31.74,'1242','55541',121,164);
INSERT INTO "communes" VALUES('02','Wimy','17',468,480,12.04,'1846','55482',136,238);
INSERT INTO "communes" VALUES('02','Mondrepuis','17',1008,939,20.33,'1910','55515',144,238);
INSERT INTO "communes" VALUES('02','Chamouille','12',260,204,3.34,'1477','54972',72,179);
INSERT INTO "communes" VALUES('02','Rougeries','27',228,241,4.13,'1611','55337',95,173);
INSERT INTO "communes" VALUES('02','Hary','34',222,231,11.04,'1774','55320',106,192);
INSERT INTO "communes" VALUES('02','Iviers','02',210,172,7.45,'2007','55315',172,250);
INSERT INTO "communes" VALUES('02','Noroy-sur-Ourcq','36',158,122,5.15,'975','54673',67,172);
INSERT INTO "communes" VALUES('02','Danizy','14',569,560,4.49,'1173','55183',49,93);
INSERT INTO "communes" VALUES('02','Gauchy','40',5443,5604,6.24,'1037','55360',68,118);
INSERT INTO "communes" VALUES('02','Laffaux','32',147,145,6.76,'1210','54943',79,172);
INSERT INTO "communes" VALUES('02','Pouilly-sur-Serre','13',524,505,9.9,'1391','55202',56,90);
INSERT INTO "communes" VALUES('02','Trucy','12',147,115,3.01,'1417','54969',66,173);
INSERT INTO "communes" VALUES('02','Vesles-et-Caumont','19',234,194,10.34,'1609','55189',67,105);
INSERT INTO "communes" VALUES('02','Oulchy-la-Ville','24',127,126,7.13,'1126','54682',80,193);
INSERT INTO "communes" VALUES('02','Bourguignon-sous-Coucy','11',91,83,2.8,'913','55049',48,72);
INSERT INTO "communes" VALUES('02','Coucy-lès-Eppes','30',576,612,6.03,'1593','55058',78,142);
INSERT INTO "communes" VALUES('02','Juvincourt-et-Damary','21',493,370,29.82,'1728','54941',52,101);
INSERT INTO "communes" VALUES('02','Trefcon','33',83,95,4.02,'843','55398',61,98);
INSERT INTO "communes" VALUES('02','Voyenne','19',288,282,13.97,'1549','55250',66,136);
INSERT INTO "communes" VALUES('02','Launoy','24',102,68,9.1,'1182','54738',88,201);
INSERT INTO "communes" VALUES('02','Craonnelle','12',111,107,5.91,'1593','54924',56,191);
INSERT INTO "communes" VALUES('02','Vendresse-Beaulne','12',117,98,8.71,'1478','54919',64,195);
INSERT INTO "communes" VALUES('02','Braye-en-Laonnois','12',223,195,8.09,'1413','54935',63,196);
INSERT INTO "communes" VALUES('02','Sancy-les-Cheminots','32',112,106,4.53,'1261','54926',71,187);
INSERT INTO "communes" VALUES('02','Remies','13',239,230,8.98,'1315','55199',52,88);
INSERT INTO "communes" VALUES('02','Pierremande','11',276,263,7.57,'1015','55080',42,80);
INSERT INTO "communes" VALUES('02','Cerny-lès-Bucy','18',116,114,3.19,'1347','55087',73,96);
INSERT INTO "communes" VALUES('02','Pasly','31',1021,1070,3.02,'1066','54891',38,149);
INSERT INTO "communes" VALUES('02','Autreville','09',822,761,3.55,'1004','55094',42,68);
INSERT INTO "communes" VALUES('02','Œuilly','12',277,228,2.86,'1502','54878',44,151);
INSERT INTO "communes" VALUES('02','Saint-Paul-aux-Bois','11',395,364,11.13,'963','55035',40,76);
INSERT INTO "communes" VALUES('02','Lucy-le-Bocage','07',175,166,7.75,'1047','54508',138,208);
INSERT INTO "communes" VALUES('02','Coupru','07',186,144,7.82,'1040','54479',131,209);
INSERT INTO "communes" VALUES('02','Augy','04',90,70,2.6,'1308','54820',48,159);
INSERT INTO "communes" VALUES('02','Essômes-sur-Marne','08',2741,2483,28.55,'1153','54477',58,216);
INSERT INTO "communes" VALUES('02','Venizel','31',1356,1462,3.71,'1173','54851',42,85);
INSERT INTO "communes" VALUES('03','Neure','16',171,166,11.97,'715','51941',190,234);
INSERT INTO "communes" VALUES('03','Andelaroche','15',277,267,20.28,'1570','51395',338,534);
INSERT INTO "communes" VALUES('03','Limoise','16',179,157,12.56,'795','51863',222,318);
INSERT INTO "communes" VALUES('03','Vendat','10',2227,1967,16.76,'1130','51293',265,345);
INSERT INTO "communes" VALUES('03','Louchy-Montfand','26',442,424,5.33,'1010','51453',241,342);
INSERT INTO "communes" VALUES('03','Désertines','20',4348,4646,8.34,'314','51505',193,384);
INSERT INTO "communes" VALUES('03','Montaiguët-en-Forez','08',320,320,22.49,'1628','51412',276,465);
INSERT INTO "communes" VALUES('03','Saint-Yorre','35',2757,2844,6.35,'1253','51184',254,374);
INSERT INTO "communes" VALUES('03','Garnat-sur-Engièvre','04',718,733,18.74,'1474','51815',202,242);
INSERT INTO "communes" VALUES('03','Arronnes','18',361,332,26,'1369','51176',330,597);
INSERT INTO "communes" VALUES('03','Chezelle','03',161,142,7.33,'874','51354',287,344);
INSERT INTO "communes" VALUES('03','Châtelus','15',131,132,6.64,'1553','51326',315,505);
INSERT INTO "communes" VALUES('03','<NAME>-aux-Chasses','04',213,216,25.96,'1328','51856',207,251);
INSERT INTO "communes" VALUES('03','Saint-Palais','13',190,197,20.3,'-41','51599',304,448);
INSERT INTO "communes" VALUES('03','Fleuriel','03',348,311,28.05,'935','51424',255,446);
INSERT INTO "communes" VALUES('03','Lavault-Sainte-Anne','32',1200,1157,9.08,'293','51456',203,332);
INSERT INTO "communes" VALUES('03','Bayet','26',677,607,22.58,'1036','51387',237,290);
INSERT INTO "communes" VALUES('03','Servilly','15',275,263,12.32,'1389','51420',263,342);
INSERT INTO "communes" VALUES('03','Châtillon','19',322,277,12.9,'885','51637',260,456);
INSERT INTO "communes" VALUES('03','Huriel','13',2556,2376,34.92,'156','51526',210,418);
INSERT INTO "communes" VALUES('03','Deux-Chaises','19',413,411,41.01,'779','51533',375,499);
INSERT INTO "communes" VALUES('03','Saint-Priest-en-Murat','22',222,231,25.48,'640','51499',265,433);
INSERT INTO "communes" VALUES('03','Villebret','17',1276,1024,15.34,'336','51408',210,496);
INSERT INTO "communes" VALUES('03','Neuilly-en-Donjon','08',224,228,25.02,'1721','51494',258,326);
INSERT INTO "communes" VALUES('03','Saint-Fargeol','17',206,218,10.36,'324','51265',434,573);
INSERT INTO "communes" VALUES('03','Isle-et-Bardais','02',272,320,44.65,'508','51876',201,308);
INSERT INTO "communes" VALUES('03','Domérat','34',8990,8809,35.54,'220','51512',197,376);
INSERT INTO "communes" VALUES('03','Taxat-Senat','03',223,210,13.62,'891','51334',267,406);
INSERT INTO "communes" VALUES('03','Saint-Menoux','27',1021,940,27.62,'916','51760',214,277);
INSERT INTO "communes" VALUES('03','Archignat','13',353,350,24.35,'97','51525',329,567);
INSERT INTO "communes" VALUES('03','Saligny-sur-Roudon','07',777,767,57.77,'1570','51631',227,307);
INSERT INTO "communes" VALUES('03','Montord','26',233,236,4.44,'993','51437',255,338);
INSERT INTO "communes" VALUES('03','Souvigny','27',1989,1953,44.35,'951','51705',224,357);
INSERT INTO "communes" VALUES('03','Louroux-Hodement','12',346,291,29.18,'420','51623',229,338);
INSERT INTO "communes" VALUES('03','Hyds','05',317,359,18.71,'548','51427',365,553);
INSERT INTO "communes" VALUES('03','Buxières-les-Mines','01',1076,1179,46.95,'693','51631',239,391);
INSERT INTO "communes" VALUES('03','Beaulon','04',1622,1559,63.98,'1485','51780',203,263);
INSERT INTO "communes" VALUES('03','Valignat','09',75,57,2.32,'821','51308',353,467);
INSERT INTO "communes" VALUES('03','Doyet','22',1218,1164,27.58,'512','51484',254,386);
INSERT INTO "communes" VALUES('03','Vallon-en-Sully','12',1674,1711,38.02,'302','51707',167,280);
INSERT INTO "communes" VALUES('03','Meaulne','02',763,759,21.07,'310','51776',158,311);
INSERT INTO "communes" VALUES('03','Bourbon-l''Archambault','01',2571,2572,54.84,'800','51759',215,321);
INSERT INTO "communes" VALUES('03','Néris-les-Bains','32',2667,2707,33.13,'361','51431',230,441);
INSERT INTO "communes" VALUES('03','Lavoine','18',153,173,17.53,'1511','51086',636,1280);
INSERT INTO "communes" VALUES('03','Liernolles','14',246,282,37.31,'1573','51550',247,340);
INSERT INTO "communes" VALUES('03','Meillers','27',151,169,23.48,'840','51675',240,426);
INSERT INTO "communes" VALUES('03','Arfeuilles','15',677,710,59.56,'1546','51285',335,795);
INSERT INTO "communes" VALUES('03','Boucé','28',560,512,21.68,'1285','51464',246,310);
INSERT INTO "communes" VALUES('03','Teillet-Argenty','32',542,471,21.99,'195','51399',238,432);
INSERT INTO "communes" VALUES('03','Yzeure','33',13074,12691,43.24,'1131','51740',217,278);
INSERT INTO "communes" VALUES('03','Gannat','11',5806,5830,36.85,'958','51222',312,547);
INSERT INTO "communes" VALUES('03','Loddes','08',146,191,23.49,'1588','51432',354,532);
INSERT INTO "communes" VALUES('03','Chouvigny','09',235,238,13.41,'727','51251',310,584);
INSERT INTO "communes" VALUES('03','<NAME>','25',298,285,18.88,'1115','51552',214,239);
INSERT INTO "communes" VALUES('03','Espinasse-Vozelle','10',905,739,17.87,'1097','51252',280,362);
INSERT INTO "communes" VALUES('03','Neuvy','24',1510,1496,19.03,'1060','51736',200,263);
INSERT INTO "communes" VALUES('03','Chappes','22',193,221,18.6,'656','51542',290,436);
INSERT INTO "communes" VALUES('03','Theneuille','02',388,412,39.73,'585','51760',247,391);
INSERT INTO "communes" VALUES('03','Saint-Ennemond','33',654,618,38.08,'1207','51862',209,258);
INSERT INTO "communes" VALUES('03','Montluçon','98',38402,41350,20.67,'296','51489',194,364);
INSERT INTO "communes" VALUES('03','Vitray','02',115,130,29.03,'359','51791',194,312);
INSERT INTO "communes" VALUES('03','Cressanges','19',670,668,41.76,'916','51607',298,475);
INSERT INTO "communes" VALUES('03','Autry-Issards','27',356,307,19.45,'888','51721',227,335);
INSERT INTO "communes" VALUES('03','Viplaix','13',291,296,30.4,'47','51623',270,403);
INSERT INTO "communes" VALUES('03','Chazemais','13',482,387,29.1,'210','51648',210,330);
INSERT INTO "communes" VALUES('03','Saint-Léger-sur-Vouzance','08',281,312,18.18,'1778','51566',234,302);
INSERT INTO "communes" VALUES('03','Besson','27',792,775,47.16,'1030','51633',224,350);
INSERT INTO "communes" VALUES('03','Mesples','13',132,127,15.3,'25','51593',307,441);
INSERT INTO "communes" VALUES('03','Ferrières-sur-Sichon','18',560,561,38.58,'1458','51139',397,980);
INSERT INTO "communes" VALUES('03','<NAME>','19',514,501,1.77,'799','51566',423,486);
INSERT INTO "communes" VALUES('03','Treteau','14',558,515,31.28,'1321','51519',253,307);
INSERT INTO "communes" VALUES('03','Saint-Bonnet-Tronçais','02',742,783,27.98,'396','51845',198,271);
INSERT INTO "communes" VALUES('03','Ainay-le-Château','02',1050,1163,24.07,'395','51901',184,252);
INSERT INTO "communes" VALUES('03','Braize','02',288,257,20.95,'348','51852',186,291);
INSERT INTO "communes" VALUES('03','Vaumas','07',549,564,34.88,'1437','51607',227,304);
INSERT INTO "communes" VALUES('03','Valigny','02',388,441,21.18,'534','51902',211,278);
INSERT INTO "communes" VALUES('03','Saint-Rémy-en-Rollat','10',1619,1455,20.84,'1172','51315',239,333);
INSERT INTO "communes" VALUES('03','Montilly','24',553,506,22.09,'1017','51791',197,264);
INSERT INTO "communes" VALUES('03','Arpheuilles-Saint-Priest','17',343,307,20.02,'379','51361',393,543);
INSERT INTO "communes" VALUES('03','Saint-Bonnet-de-Four','22',199,221,18.73,'638','51459',318,476);
INSERT INTO "communes" VALUES('03','Chamblet','20',1073,939,20.5,'406','51481',279,393);
INSERT INTO "communes" VALUES('03','Colombier','05',316,312,12.92,'508','51415',362,519);
INSERT INTO "communes" VALUES('03','Paray-le-Frésil','04',418,415,37.3,'1416','51840',205,252);
INSERT INTO "communes" VALUES('03','Saint-Germain-de-Salles','03',442,411,11.59,'974','51310',262,374);
INSERT INTO "communes" VALUES('03','<NAME>','12',342,353,44.61,'423','51746',198,383);
INSERT INTO "communes" VALUES('03','<NAME>-de-Montagne','18',1573,1601,29.03,'1478','51190',415,880);
INSERT INTO "communes" VALUES('03','Beaune-d''Allier','22',285,270,24.2,'609','51423',360,586);
INSERT INTO "communes" VALUES('03','Thionne','14',326,306,26.96,'1377','51561',237,305);
INSERT INTO "communes" VALUES('03','Gouise','25',233,216,23.12,'1215','51568',230,294);
INSERT INTO "communes" VALUES('03','Bressolles','23',1026,962,23.38,'1089','51701',203,292);
INSERT INTO "communes" VALUES('03','Montoldre','28',641,607,18.9,'1233','51483',239,307);
INSERT INTO "communes" VALUES('03','Saint-Loup','28',570,585,17.62,'1157','51501',225,292);
INSERT INTO "communes" VALUES('03','Fourilles','03',213,188,6.98,'954','51380',252,330);
INSERT INTO "communes" VALUES('03','<NAME>','08',208,222,22.55,'1735','51451',269,332);
INSERT INTO "communes" VALUES('03','Gipcy','27',224,233,27.57,'798','51670',244,433);
INSERT INTO "communes" VALUES('03','Saint-Victor','31',2032,1956,23.22,'302','51550',187,372);
INSERT INTO "communes" VALUES('03','Neuilly-le-Réal','25',1434,1303,46.97,'1217','51627',227,293);
INSERT INTO "communes" VALUES('03','Saint-Christophe','15',494,483,28.02,'1377','51296',305,471);
INSERT INTO "communes" VALUES('03','Mercy','25',262,293,28.8,'1311','51624',257,297);
INSERT INTO "communes" VALUES('03','<NAME>-d''École','11',272,260,6.76,'1005','51299',269,320);
INSERT INTO "communes" VALUES('03','Chambérat','13',311,306,28.37,'85','51577',258,426);
INSERT INTO "communes" VALUES('03','Monétay-sur-Allier','26',549,460,11.77,'1074','51535',217,311);
INSERT INTO "communes" VALUES('03','Malicorne','05',830,813,11.84,'495','51446',309,416);
INSERT INTO "communes" VALUES('03','Verneuil-en-Bourbonnais','26',238,283,14.14,'1017','51496',234,356);
INSERT INTO "communes" VALUES('03','Cindré','14',322,312,22.63,'1366','51474',254,342);
INSERT INTO "communes" VALUES('03','Bellerive-sur-Allier','10',8546,8444,18.97,'1186','51241',247,337);
INSERT INTO "communes" VALUES('03','Périgny','15',461,404,27.22,'1354','51390',285,347);
INSERT INTO "communes" VALUES('03','Barrais-Bussolles','15',213,222,25.34,'1532','51435',287,505);
INSERT INTO "communes" VALUES('03','Saint-Prix','15',797,809,21.75,'1460','51369',279,386);
INSERT INTO "communes" VALUES('03','Blomard','22',207,205,22.37,'712','51433',343,487);
INSERT INTO "communes" VALUES('03','Luneau','08',287,291,27.27,'1795','51515',232,302);
INSERT INTO "communes" VALUES('03','Saint-Martin-des-Lais','04',145,142,18.25,'1466','51853',197,209);
INSERT INTO "communes" VALUES('03','Courçais','13',322,310,26.51,'110','51634',253,394);
INSERT INTO "communes" VALUES('03','Saulzet','11',349,330,9.21,'981','51261',295,423);
INSERT INTO "communes" VALUES('03','Ussel-d''Allier','03',145,146,8.02,'948','51342',262,390);
INSERT INTO "communes" VALUES('03','Saint-Pierre-Laval','15',369,362,24.03,'1603','51335',339,664);
INSERT INTO "communes" VALUES('03','Marcillat-en-Combraille','17',901,911,35.21,'330','51297',347,535);
INSERT INTO "communes" VALUES('03','Saint-Didier-la-Forêt','10',380,362,33.59,'1119','51361',246,323);
INSERT INTO "communes" VALUES('03','Mazerier','11',287,278,7.23,'949','51250',290,461);
INSERT INTO "communes" VALUES('03','Durdat-Larequille','17',1286,1109,24.45,'406','51391',370,534);
INSERT INTO "communes" VALUES('03','Monteignet-sur-l''Andelot','11',238,271,9.38,'1022','51247',305,345);
INSERT INTO "communes" VALUES('03','Saint-Priest-d''Andelot','11',140,120,8.17,'923','51190',376,532);
INSERT INTO "communes" VALUES('03','Gennetines','33',669,559,39.14,'1191','51818',224,267);
INSERT INTO "communes" VALUES('03','Busset','35',829,849,36.96,'1307','51180',265,608);
INSERT INTO "communes" VALUES('03','Givarlais','12',244,228,14.85,'346','51621',205,359);
INSERT INTO "communes" VALUES('03','Échassières','09',404,380,23.4,'664','51316',390,765);
INSERT INTO "communes" VALUES('03','Châtelperron','14',149,137,20.8,'1444','51554',234,352);
INSERT INTO "communes" VALUES('03','Charmes','11',369,293,8.19,'1017','51195',318,428);
INSERT INTO "communes" VALUES('03','Villefranche-d''Allier','22',1331,1306,39.63,'578','51552',227,351);
INSERT INTO "communes" VALUES('03','Brugheas','10',1352,1224,26.81,'1146','51196',269,383);
INSERT INTO "communes" VALUES('03','Saint-Martinien','13',622,517,25.48,'149','51484',344,557);
INSERT INTO "communes" VALUES('03','Le Breuil','15',542,552,34.55,'1469','51315',290,510);
INSERT INTO "communes" VALUES('03','Saint-Pourçain-sur-Sioule','26',4987,5263,35.67,'1059','51453',226,306);
INSERT INTO "communes" VALUES('03','Sazeret','22',160,149,17.94,'688','51488',348,497);
INSERT INTO "communes" VALUES('03','Vichy','97',24774,26501,5.85,'1210','51252',243,317);
INSERT INTO "communes" VALUES('03','Vernusse','22',171,193,19.55,'712','51410',332,465);
INSERT INTO "communes" VALUES('03','Jaligny-sur-Besbre','14',618,696,9.63,'1395','51533',239,307);
INSERT INTO "communes" VALUES('03','Droiturier','15',357,384,22.07,'1535','51368',314,472);
INSERT INTO "communes" VALUES('03','<NAME>','35',1909,1588,10.07,'1251','51232',279,504);
INSERT INTO "communes" VALUES('03','Hérisson','12',648,709,32.57,'416','51676',177,327);
INSERT INTO "communes" VALUES('03','Deneuille-lès-Chantelle','03',91,89,8.21,'900','51384',273,372);
INSERT INTO "communes" VALUES('03','Coulandon','24',702,593,17.06,'1021','51723',212,278);
INSERT INTO "communes" VALUES('03','Molles','35',819,709,26.89,'1358','51235',325,495);
INSERT INTO "communes" VALUES('03','Saint-Gérand-de-Vaux','25',417,465,40.08,'1180','51534',223,304);
INSERT INTO "communes" VALUES('03','Avrilly','08',153,179,11.48,'1827','51481',234,312);
INSERT INTO "communes" VALUES('03','Varennes-sur-Tèche','14',254,252,18.73,'1436','51473',258,380);
INSERT INTO "communes" VALUES('03','<NAME>','16',516,577,21.16,'781','51951',182,241);
INSERT INTO "communes" VALUES('03','Nassigny','12',195,145,18.32,'295','51659',173,271);
INSERT INTO "communes" VALUES('03','Urçay','02',295,298,12.49,'281','51805',158,278);
INSERT INTO "communes" VALUES('03','Deneuille-les-Mines','20',347,350,24.88,'495','51532',244,390);
INSERT INTO "communes" VALUES('03','Bellenaves','09',1015,1005,34.88,'826','51334',297,543);
INSERT INTO "communes" VALUES('03','Hauterive','10',1135,1056,8.08,'1233','51209',252,305);
INSERT INTO "communes" VALUES('03','Treignat','13',447,475,28.94,'5','51498',374,556);
INSERT INTO "communes" VALUES('03','Noyant-d''Allier','27',687,818,21.05,'874','51644',247,485);
INSERT INTO "communes" VALUES('03','Bagneux','24',311,280,24.87,'965','51842',192,262);
INSERT INTO "communes" VALUES('03','Saint-Voir','25',197,204,25.12,'1314','51563',247,308);
INSERT INTO "communes" VALUES('03','Bransat','26',503,508,15.52,'993','51476',254,401);
INSERT INTO "communes" VALUES('03','<NAME>','19',411,416,28.92,'886','51505',334,463);
INSERT INTO "communes" VALUES('03','<NAME>','08',1080,1170,37.02,'1618','51501',265,466);
INSERT INTO "communes" VALUES('03','Montbeugny','25',681,552,32.65,'1280','51699',238,287);
INSERT INTO "communes" VALUES('03','Louroux-de-Beaune','22',182,186,10.66,'576','51436',316,501);
INSERT INTO "communes" VALUES('03','Sanssat','28',253,278,8.4,'1265','51395',249,367);
INSERT INTO "communes" VALUES('03','Commentry','05',6651,7206,20.96,'450','51432',332,462);
INSERT INTO "communes" VALUES('03','Cognat-Lyonne','10',655,547,12.51,'1082','51231',308,368);
INSERT INTO "communes" VALUES('03','Seuillet','28',494,418,9.94,'1262','51336',246,363);
INSERT INTO "communes" VALUES('03','Poëzat','11',123,129,2.12,'986','51197',330,349);
INSERT INTO "communes" VALUES('03','Estivareilles','12',1124,1027,11.27,'314','51584',179,348);
INSERT INTO "communes" VALUES('03','<NAME>','35',382,348,21.1,'1373','51213',331,586);
INSERT INTO "communes" VALUES('03','Isserpent','15',503,484,26.31,'1414','51292',316,543);
INSERT INTO "communes" VALUES('03','Saint-Désiré','13',470,455,41.89,'106','51664',193,400);
INSERT INTO "communes" VALUES('03','Montcombroux-les-Mines','08',371,427,23.42,'1504','51503',281,414);
INSERT INTO "communes" VALUES('03','Vieure','01',267,268,29.81,'599','51668',222,304);
INSERT INTO "communes" VALUES('03','Saint-Aubin-le-Monial','01',284,278,21.63,'735','51697',247,331);
INSERT INTO "communes" VALUES('03','Monétay-sur-Loire','07',285,338,31.26,'1645','51589',232,303);
INSERT INTO "communes" VALUES('03','Bert','14',267,273,24.15,'1523','51472',285,487);
INSERT INTO "communes" VALUES('03','Saint-Félix','28',347,251,5.2,'1272','51364',285,373);
INSERT INTO "communes" VALUES('03','Saint-Angel','20',755,685,25.27,'401','51508',242,406);
INSERT INTO "communes" VALUES('03','Serbannes','10',743,689,14.3,'1136','51221',278,375);
INSERT INTO "communes" VALUES('03','Barberier','03',131,107,8.08,'1010','51353',254,290);
INSERT INTO "communes" VALUES('03','Treban','19',394,369,25.63,'931','51561',304,480);
INSERT INTO "communes" VALUES('03','Laféline','26',191,173,23.1,'924','51499',295,426);
INSERT INTO "communes" VALUES('03','Biozat','11',744,661,16.46,'1040','51197',326,404);
INSERT INTO "communes" VALUES('03','Quinssaines','21',1360,1061,25.37,'193','51475',295,483);
INSERT INTO "communes" VALUES('03','Ygrande','01',773,779,52.71,'674','51725',237,344);
INSERT INTO "communes" VALUES('03','Escurolles','10',729,657,13.27,'1032','51270',287,323);
INSERT INTO "communes" VALUES('03','Venas','12',238,241,32.15,'475','51641',210,293);
INSERT INTO "communes" VALUES('03','Vaux','31',1057,963,18.1,'290','51585',178,247);
INSERT INTO "communes" VALUES('03','Rongères','28',582,566,8.95,'1237','51438',242,305);
INSERT INTO "communes" VALUES('03','Montmarault','22',1530,1664,9,'687','51464',394,498);
INSERT INTO "communes" VALUES('03','Prémilhat','21',2315,1992,21.12,'221','51459',217,426);
INSERT INTO "communes" VALUES('03','Chapeau','25',224,216,33.42,'1318','51653',239,285);
INSERT INTO "communes" VALUES('03','Lamaids','21',175,136,8.02,'106','51447',399,505);
INSERT INTO "communes" VALUES('03','Laprugne','18',362,405,34.61,'1563','51096',549,1164);
INSERT INTO "communes" VALUES('03','Saint-Bonnet-de-Rochefort','11',640,655,16.36,'891','51274',290,412);
INSERT INTO "communes" VALUES('03','Lételon','02',120,144,6.37,'277','51840',158,237);
INSERT INTO "communes" VALUES('03','Nizerolles','18',333,302,17.57,'1446','51220',356,587);
INSERT INTO "communes" VALUES('03','Villeneuve-sur-Allier','33',985,939,26.3,'1013','51845',194,257);
INSERT INTO "communes" VALUES('03','Verneix','20',601,583,30.87,'371','51552',230,387);
INSERT INTO "communes" VALUES('03','Saint-Éloy-d''Allier','13',55,69,12.83,'26','51653',257,400);
INSERT INTO "communes" VALUES('03','Gannay-sur-Loire','04',415,387,32.29,'1415','51923',193,240);
INSERT INTO "communes" VALUES('03','Audes','12',452,451,28.26,'246','51620',177,299);
INSERT INTO "communes" VALUES('03','Nades','09',129,135,8.49,'702','51288',394,734);
INSERT INTO "communes" VALUES('03','Molinet','07',1160,1160,25.98,'1777','51629',219,288);
INSERT INTO "communes" VALUES('03','Saint-Didier-en-Donjon','08',268,284,32.92,'1691','51542',250,321);
INSERT INTO "communes" VALUES('03','Châtel-de-Neuvre','19',549,515,19.34,'1084','51563',214,301);
INSERT INTO "communes" VALUES('03','Saint-Léon','14',602,654,33.62,'1500','51559',245,436);
INSERT INTO "communes" VALUES('03','Lurcy-Lévis','16',2147,2093,71.42,'669','51922',196,283);
INSERT INTO "communes" VALUES('03','Meillard','19',279,280,25.48,'998','51544',245,391);
INSERT INTO "communes" VALUES('03','Chavroches','14',277,250,9.95,'1390','51505',247,331);
INSERT INTO "communes" VALUES('03','Murat','22',291,310,20.07,'639','51559',247,360);
INSERT INTO "communes" VALUES('03','Château-sur-Allier','16',175,172,27.75,'769','51962',180,233);
INSERT INTO "communes" VALUES('03','Bézenet','22',987,953,9.94,'565','51477',270,376);
INSERT INTO "communes" VALUES('03','Ronnet','17',185,177,19.88,'404','51339',456,565);
INSERT INTO "communes" VALUES('03','Target','03',267,249,26.47,'805','51433',315,459);
INSERT INTO "communes" VALUES('03','Chareil-Cintrat','03',348,317,12.77,'982','51408',241,342);
INSERT INTO "communes" VALUES('03','Mazirat','17',287,266,20.26,'226','51359',259,495);
INSERT INTO "communes" VALUES('03','Pouzy-Mésangy','16',415,411,35.04,'742','51899',187,255);
INSERT INTO "communes" VALUES('03','Saint-Léopardin-d''Augy','16',365,327,39.59,'853','51870',185,305);
INSERT INTO "communes" VALUES('03','Saint-Hilaire','01',500,566,20.64,'759','51661',265,420);
INSERT INTO "communes" VALUES('03','Maillet','12',368,322,26.61,'351','51643',182,323);
INSERT INTO "communes" VALUES('03','Lenax','08',242,296,28.25,'1644','51443',277,427);
INSERT INTO "communes" VALUES('03','<NAME>','17',185,215,14.93,'261','51326',310,505);
INSERT INTO "communes" VALUES('03','Sainte-Thérence','17',202,187,13.14,'249','51380',235,458);
INSERT INTO "communes" VALUES('03','Coutansouze','09',131,108,13.42,'749','51354',379,671);
INSERT INTO "communes" VALUES('03','Agonges','27',342,357,24.1,'913','51785',204,266);
INSERT INTO "communes" VALUES('03','Vicq','09',328,299,13.25,'840','51274',302,437);
INSERT INTO "communes" VALUES('03','Bost','06',192,147,9.48,'1313','51310',267,429);
INSERT INTO "communes" VALUES('03','Abrest','35',2732,2419,10.46,'1231','51221',251,434);
INSERT INTO "communes" VALUES('03','Billy','28',837,931,10.22,'1214','51374',235,375);
INSERT INTO "communes" VALUES('03','Saint-Clément','18',363,330,25.98,'1520','51180',468,904);
INSERT INTO "communes" VALUES('03','Saint-Étienne-de-Vicq','15',513,431,19.22,'1330','51308',278,482);
INSERT INTO "communes" VALUES('03','Saint-Plaisir','01',403,441,52.54,'701','51803',207,319);
INSERT INTO "communes" VALUES('03','Chemilly','27',633,562,16.94,'1087','51653',206,276);
INSERT INTO "communes" VALUES('03','Reugny','12',264,275,7.66,'309','51624',178,282);
INSERT INTO "communes" VALUES('03','Magnet','28',860,694,12.72,'1297','51348',274,366);
INSERT INTO "communes" VALUES('03','Lapalisse','15',3150,3329,33.01,'1445','51388',264,465);
INSERT INTO "communes" VALUES('03','Saint-Sauvier','13',340,330,31.47,'-6','51540',339,472);
INSERT INTO "communes" VALUES('03','Billezois','15',392,346,15.68,'1373','51345',287,353);
INSERT INTO "communes" VALUES('03','Cosne-d''Allier','12',2213,2405,25.29,'550','51639',217,312);
INSERT INTO "communes" VALUES('03','Chirat-l''Église','09',137,119,18.48,'775','51381',311,494);
INSERT INTO "communes" VALUES('03','Avermes','24',3808,3963,15.6,'1078','51764',199,262);
INSERT INTO "communes" VALUES('03','Voussac','03',464,457,34.46,'806','51475',359,467);
INSERT INTO "communes" VALUES('03','Saint-Pourçain-sur-Besbre','07',411,426,32.99,'1444','51639',219,286);
INSERT INTO "communes" VALUES('03','Diou','07',1502,1554,24.89,'1564','51705',207,276);
INSERT INTO "communes" VALUES('03','Broût-Vernet','10',1182,1066,31.71,'1041','51320',253,331);
INSERT INTO "communes" VALUES('03','<NAME>','13',981,953,28.6,'187','51578',197,380);
INSERT INTO "communes" VALUES('03','Langy','28',239,218,7.36,'1261','51408',260,342);
INSERT INTO "communes" VALUES('03','Saint-Germain-des-Fossés','28',3658,3686,8.3,'1219','51341',239,365);
INSERT INTO "communes" VALUES('03','Charroux','03',386,330,10.43,'916','51317',291,426);
INSERT INTO "communes" VALUES('03','Sussat','09',98,104,8,'808','51281',349,516);
INSERT INTO "communes" VALUES('03','Veauce','09',40,46,3.54,'800','51295',363,505);
INSERT INTO "communes" VALUES('03','Naves','09',120,109,8.13,'859','51306',296,433);
INSERT INTO "communes" VALUES('03','Aubigny','24',138,103,17.14,'922','51869',189,255);
INSERT INTO "communes" VALUES('03','Lalizolle','09',376,308,23.72,'739','51285',415,729);
INSERT INTO "communes" VALUES('03','Saulcet','26',644,608,7.98,'1029','51472',230,326);
INSERT INTO "communes" VALUES('03','Châtel-Montagne','18',412,373,36.81,'1496','51237',331,972);
INSERT INTO "communes" VALUES('03','Bizeneuille','12',283,287,29.75,'445','51564',250,404);
INSERT INTO "communes" VALUES('03','Terjat','17',207,228,17.74,'310','51338',378,541);
INSERT INTO "communes" VALUES('03','Aurouër','33',370,319,27.06,'1070','51875',215,262);
INSERT INTO "communes" VALUES('03','Couzon','16',298,295,19.85,'871','51842',197,274);
INSERT INTO "communes" VALUES('03','Cusset','96',13370,13385,31.93,'1244','51261',255,483);
INSERT INTO "communes" VALUES('03','Monestier','03',266,266,29.68,'863','51395',290,413);
INSERT INTO "communes" VALUES('03','Saint-Gérand-le-Puy','28',996,1030,19.55,'1306','51398',268,359);
INSERT INTO "communes" VALUES('03','Saint-Marcel-en-Marcillat','17',150,138,10.55,'281','51273',331,534);
INSERT INTO "communes" VALUES('03','Trévol','33',1635,1366,40.84,'1077','51810',197,264);
INSERT INTO "communes" VALUES('03','<NAME>','02',265,266,26.37,'512','51735',266,412);
INSERT INTO "communes" VALUES('03','Lusigny','04',1665,1428,44.55,'1283','51764',224,273);
INSERT INTO "communes" VALUES('03','Saint-Marcel-en-Murat','22',139,157,16.82,'747','51468',356,484);
INSERT INTO "communes" VALUES('03','Créchy','28',487,442,11.61,'1208','51402',233,344);
INSERT INTO "communes" VALUES('03','Chavenon','22',137,159,17.47,'678','51571',265,416);
INSERT INTO "communes" VALUES('03','Marigny','27',189,204,17.24,'969','51758',217,274);
INSERT INTO "communes" VALUES('03','Trézelles','14',387,398,18.14,'1395','51477',250,330);
INSERT INTO "communes" VALUES('03','<NAME>','17',416,407,31.2,'498','51365',390,645);
INSERT INTO "communes" VALUES('03','Saint-Pont','10',578,452,12.31,'1068','51294',287,343);
INSERT INTO "communes" VALUES('03','Coulanges','07',305,308,23.96,'1692','51650',216,278);
INSERT INTO "communes" VALUES('03','Saint-Sornin','19',230,225,19.44,'755','51568',344,458);
INSERT INTO "communes" VALUES('03','Creuzier-le-Vieux','06',3333,2963,11.38,'1224','51291',243,404);
INSERT INTO "communes" VALUES('03','Montaigu-le-Blin','28',308,355,12.96,'1305','51438',263,342);
INSERT INTO "communes" VALUES('03','Couleuvre','16',581,645,53.83,'634','51858',207,317);
INSERT INTO "communes" VALUES('03','Moulins','99',19590,21885,8.61,'1107','51738',202,240);
INSERT INTO "communes" VALUES('03','Ébreuil','09',1277,1230,23.22,'834','51239',301,545);
INSERT INTO "communes" VALUES('03','<NAME>','08',393,381,21.78,'1731','51569',237,307);
INSERT INTO "communes" VALUES('03','Bègues','11',230,200,8.3,'910','51253',290,520);
INSERT INTO "communes" VALUES('03','<NAME>','18',189,193,20,'1574','51135',514,1040);
INSERT INTO "communes" VALUES('03','Saint-Nicolas-des-Biefs','18',181,159,28.9,'1607','51177',620,1122);
INSERT INTO "communes" VALUES('03','Chantelle','03',1072,1041,10.96,'907','51376',258,349);
INSERT INTO "communes" VALUES('03','Chassenard','08',961,923,25.12,'1826','51598',222,281);
INSERT INTO "communes" VALUES('03','Bessay-sur-Allier','25',1388,1378,34.6,'1140','51602',209,271);
INSERT INTO "communes" VALUES('03','Louroux-Bourbonnais','12',238,245,33.02,'561','51706',243,397);
INSERT INTO "communes" VALUES('03','Loriges','26',342,326,9.48,'1122','51410',240,284);
INSERT INTO "communes" VALUES('03','Toulon-sur-Allier','23',1137,1079,38.69,'1136','51686',206,284);
INSERT INTO "communes" VALUES('03','Mariol','35',762,659,9.41,'1289','51134',256,540);
INSERT INTO "communes" VALUES('03','Chézy','04',212,218,36.53,'1257','51790',218,274);
INSERT INTO "communes" VALUES('03','Thiel-sur-Acolin','04',1001,925,57.71,'1384','51693',228,286);
INSERT INTO "communes" VALUES('03','Tronget','19',926,925,31.06,'813','51581',369,480);
INSERT INTO "communes" VALUES('03','Jenzat','11',517,450,11.64,'954','51290',274,449);
INSERT INTO "communes" VALUES('03','Rocles','19',377,374,21.66,'772','51582',355,460);
INSERT INTO "communes" VALUES('03','Bresnay','27',395,376,23.13,'1014','51602',235,357);
INSERT INTO "communes" VALUES('03','<NAME>','18',143,158,12.33,'1447','51091',518,1081);
INSERT INTO "communes" VALUES('03','Sauvagny','12',94,99,19.41,'537','51605',227,275);
INSERT INTO "communes" VALUES('03','Cérilly','02',1351,1567,70.55,'538','51798',228,397);
INSERT INTO "communes" VALUES('03','Sorbier','14',292,307,17.09,'1471','51517',266,394);
INSERT INTO "communes" VALUES('03','Contigny','26',611,559,17.93,'1075','51503',221,307);
INSERT INTO "communes" VALUES('03','Cesset','26',378,353,12.19,'968','51449',269,399);
INSERT INTO "communes" VALUES('03','Paray-sous-Briailles','26',641,538,22.18,'1143','51434',228,266);
INSERT INTO "communes" VALUES('03','Montvicq','22',743,685,10.02,'539','51467',281,402);
INSERT INTO "communes" VALUES('03','Saint-Caprais','12',92,92,20.14,'444','51723',217,407);
INSERT INTO "communes" VALUES('03','Varennes-sur-Allier','28',3600,4064,24.1,'1183','51459',228,292);
INSERT INTO "communes" VALUES('03','Creuzier-le-Neuf','06',1033,960,10.88,'1237','51314',246,400);
INSERT INTO "communes" VALUES('03','Franchesse','01',446,452,40.24,'778','51818',204,322);
INSERT INTO "communes" VALUES('03','Dompierre-sur-Besbre','07',3152,3476,45.63,'1494','51691',207,271);
INSERT INTO "communes" VALUES('03','Étroussat','03',718,605,13.03,'983','51354',265,374);
INSERT INTO "communes" VALUES('03','Charmeil','10',746,609,7.4,'1174','51290',243,311);
INSERT INTO "communes" VALUES('03','Chevagnes','04',701,720,49.78,'1349','51790',215,262);
INSERT INTO "communes" VALUES('03','Pierrefitte-sur-Loire','07',513,533,25.36,'1644','51674',212,267);
INSERT INTO "communes" VALUES('03','Saint-Genest','17',342,347,15.17,'285','51404',214,451);
INSERT INTO "communes" VALUES('03','Tortezais','12',177,148,24.11,'579','51614',230,307);
INSERT INTO "communes" VALUES('03','Louroux-de-Bouble','09',280,285,16.87,'712','51362',357,550);
INSERT INTO "communes" VALUES('03','Lignerolles','32',697,567,11.81,'256','51422',204,396);
INSERT INTO "communes" VALUES('03','Marcenat','26',375,301,18.07,'1177','51372',234,287);
INSERT INTO "communes" VALUES('04','<NAME>','08',331,256,45.91,'4312','49078',646,1887);
INSERT INTO "communes" VALUES('04','Turriers','28',379,297,19.86,'4258','49335',853,1714);
INSERT INTO "communes" VALUES('04','Thèze','16',218,144,11.17,'3983','49243',492,728);
INSERT INTO "communes" VALUES('04','Rougon','06',104,85,35.83,'4517','48665',568,1900);
INSERT INTO "communes" VALUES('04','Blieux','05',55,59,56.8,'4483','48747',831,1921);
INSERT INTO "communes" VALUES('04','Valbelle','18',240,213,32.99,'3939','49053',494,1655);
INSERT INTO "communes" VALUES('04','Saint-Jeannet','15',52,38,21.14,'4207','48836',567,971);
INSERT INTO "communes" VALUES('04','Quinson','21',447,355,28.11,'4115','48558',353,584);
INSERT INTO "communes" VALUES('04','Mées','14',3630,2923,65.4,'4044','48922',348,824);
INSERT INTO "communes" VALUES('04','<NAME>','22',327,252,34.73,'4649','48866',890,2120);
INSERT INTO "communes" VALUES('04','Curel','18',47,57,10.45,'3695','49085',670,1440);
INSERT INTO "communes" VALUES('04','Villeneuve','10',3514,2978,25.55,'3918','48771',313,600);
INSERT INTO "communes" VALUES('04','Montfort','30',377,385,12.08,'4040','48960',395,860);
INSERT INTO "communes" VALUES('04','<NAME>','09',58,53,18.8,'5060','48794',637,1505);
INSERT INTO "communes" VALUES('04','Vaumeilh','16',268,198,25.52,'4025','49209',460,1055);
INSERT INTO "communes" VALUES('04','Entrages','08',116,85,22.61,'4366','48940',593,1515);
INSERT INTO "communes" VALUES('04','Seyne','26',1439,1441,84.27,'4466','49279',1079,2720);
INSERT INTO "communes" VALUES('04','Marcoux','08',517,399,32.17,'4378','49032',604,1311);
INSERT INTO "communes" VALUES('04','Colmars','07',388,378,81.82,'4767','49090',1178,2742);
INSERT INTO "communes" VALUES('04','Châteauneuf-Miravail','18',77,67,19.7,'3767','49069',619,1628);
INSERT INTO "communes" VALUES('04','Forcalquier','10',4680,4326,42.76,'3826','48844',397,904);
INSERT INTO "communes" VALUES('04','Vachères','20',293,257,23.42,'3669','48813',499,865);
INSERT INTO "communes" VALUES('04','Saint-Julien-d''Asse','15',165,124,25.6,'4175','48797',407,886);
INSERT INTO "communes" VALUES('04','Mirabeau','31',494,394,18.22,'4171','48959',437,1053);
INSERT INTO "communes" VALUES('04','Entrevaux','09',947,743,60.37,'4971','48832',414,1541);
INSERT INTO "communes" VALUES('04','Dauphin','10',796,796,9.71,'3829','48776',364,656);
INSERT INTO "communes" VALUES('04','Saint-Pierre','09',111,73,5.62,'5098','48791',617,1199);
INSERT INTO "communes" VALUES('04','Puimichel','14',242,238,36.81,'4093','48860',486,884);
INSERT INTO "communes" VALUES('04','Sausses','09',120,65,14.68,'4939','48898',568,2151);
INSERT INTO "communes" VALUES('04','Braux','02',131,118,11.67,'4848','48873',639,1600);
INSERT INTO "communes" VALUES('04','Faucon-du-Caire','28',57,35,19.93,'4172','49330',846,1714);
INSERT INTO "communes" VALUES('04','Saint-Maime','10',833,668,7.51,'3840','48782',351,772);
INSERT INTO "communes" VALUES('04','Saint-Geniez','27',87,90,38.94,'4129','49161',637,1705);
INSERT INTO "communes" VALUES('04','<NAME>','14',278,202,18.87,'4048','48821',362,665);
INSERT INTO "communes" VALUES('04','Enchastrayes','04',420,507,44.19,'4843','49297',1151,2775);
INSERT INTO "communes" VALUES('04','Aiglun','31',1276,1035,14.89,'4226','48948',507,900);
INSERT INTO "communes" VALUES('04','Claret','16',240,249,21.04,'4021','49302',528,1254);
INSERT INTO "communes" VALUES('04','Saint-Martin-les-Eaux','13',100,104,9.15,'3776','48749',395,705);
INSERT INTO "communes" VALUES('04','<NAME>','31',741,674,36.2,'4237','48931',470,960);
INSERT INTO "communes" VALUES('04','Revest-du-Bion','03',578,465,43.45,'3569','48981',833,1365);
INSERT INTO "communes" VALUES('04','<NAME>','03',106,92,30.11,'3688','48975',760,1533);
INSERT INTO "communes" VALUES('04','Clumanc','05',182,154,53.68,'4496','48915',773,1703);
INSERT INTO "communes" VALUES('04','Demandolx','06',122,93,20.37,'4713','48744',788,1894);
INSERT INTO "communes" VALUES('04','Thuiles','04',368,344,32.8,'4705','49326',1053,2898);
INSERT INTO "communes" VALUES('04','Saint-Étienne-les-Orgues','23',1228,875,48.42,'3826','48940',549,1825);
INSERT INTO "communes" VALUES('04','Ongles','23',344,278,31.46,'3774','48920',517,1320);
INSERT INTO "communes" VALUES('04','Montagnac-Montpezat','21',421,321,34.18,'4176','48644',394,653);
INSERT INTO "communes" VALUES('04','<NAME>','17',322,300,81.26,'4450','48644',471,1920);
INSERT INTO "communes" VALUES('04','Saint-Vincent-les-Forts','12',300,204,22.82,'4485','49383',770,2500);
INSERT INTO "communes" VALUES('04','<NAME>','19',943,766,7.22,'3949','48807',332,520);
INSERT INTO "communes" VALUES('04','Pierrerue','10',532,404,10.86,'3885','48840',379,621);
INSERT INTO "communes" VALUES('04','Tartonne','05',132,131,44.88,'4502','48967',879,2285);
INSERT INTO "communes" VALUES('04','Val-de-Chalvagne','09',69,48,32.57,'4968','48793',599,1587);
INSERT INTO "communes" VALUES('04','Entrepierres','27',390,314,47.79,'4064','49097',455,1444);
INSERT INTO "communes" VALUES('04','Aubenas-les-Alpes','20',105,62,7.93,'3715','48812',480,780);
INSERT INTO "communes" VALUES('04','Meyronnes','04',72,44,40.59,'4958','49418',1307,3192);
INSERT INTO "communes" VALUES('04','Thorame-Basse','07',214,154,97.72,'4627','48990',985,2395);
INSERT INTO "communes" VALUES('04','Montsalier','03',109,91,23.81,'3636','48903',570,963);
INSERT INTO "communes" VALUES('04','Saint-Laurent-du-Verdon','21',92,74,8.89,'4146','48582',394,581);
INSERT INTO "communes" VALUES('04','Allemagne-en-Provence','21',514,384,32.99,'4078','48647',389,622);
INSERT INTO "communes" VALUES('04','Montfuron','33',196,168,18.88,'3730','48707',373,706);
INSERT INTO "communes" VALUES('04','Saint-Michel-l''Observatoire','10',1160,905,27.78,'3755','48789',386,767);
INSERT INTO "communes" VALUES('04','Soleilhas','06',111,95,34.53,'4792','48730',931,1894);
INSERT INTO "communes" VALUES('04','Larche','04',74,83,68.86,'5011','49390',1606,3165);
INSERT INTO "communes" VALUES('04','Pierrevert','33',3682,3284,27.9,'3792','48679',308,618);
INSERT INTO "communes" VALUES('04','Sainte-Croix-du-Verdon','21',123,102,13.7,'4238','48621',443,669);
INSERT INTO "communes" VALUES('04','Volx','13',3017,2701,19.52,'3894','48753',307,791);
INSERT INTO "communes" VALUES('04','Saint-Paul-sur-Ubaye','04',226,190,205.55,'4905','49461',1291,3410);
INSERT INTO "communes" VALUES('04','Sigoyer','16',92,75,15.3,'4024','49243',482,945);
INSERT INTO "communes" VALUES('04','<NAME>','31',50,51,25.74,'4209','49097',776,1840);
INSERT INTO "communes" VALUES('04','Bevons','18',202,131,11.26,'3941','49089',485,969);
INSERT INTO "communes" VALUES('04','Aubignosc','30',553,430,14.74,'4036','49033',432,1330);
INSERT INTO "communes" VALUES('04','Clamensane','16',172,130,23.73,'4146','49247',630,1654);
INSERT INTO "communes" VALUES('04','L''Escale','30',1311,1166,20.36,'4096','48984',408,1081);
INSERT INTO "communes" VALUES('04','Château-Arnoux-Saint-Auban','30',5266,4974,18.34,'4080','48993',403,742);
INSERT INTO "communes" VALUES('04','Archail','11',17,7,12.99,'4442','49024',759,1984);
INSERT INTO "communes" VALUES('04','Saint-Jacques','05',56,36,4.66,'4487','48855',780,1447);
INSERT INTO "communes" VALUES('04','Châteaufort','16',23,28,13.73,'4088','49193',541,1280);
INSERT INTO "communes" VALUES('04','L''Hospitalet','03',89,78,19.35,'3735','48985',779,1632);
INSERT INTO "communes" VALUES('04','Villemus','20',166,112,9.59,'3738','48732',424,779);
INSERT INTO "communes" VALUES('04','Niozelles','10',248,202,10.47,'3890','48818',354,603);
INSERT INTO "communes" VALUES('04','<NAME>','26',121,100,23.05,'4504','49196',1153,2642);
INSERT INTO "communes" VALUES('04','Mallemoisson','31',993,992,6.04,'4209','48935',476,663);
INSERT INTO "communes" VALUES('04','Oppedette','20',61,56,8.49,'3615','48816',397,746);
INSERT INTO "communes" VALUES('04','<NAME>','12',231,202,66.26,'4551','49367',771,2500);
INSERT INTO "communes" VALUES('04','Barrême','05',474,433,37.05,'4479','48837',685,1621);
INSERT INTO "communes" VALUES('04','Valavoire','16',35,27,16.81,'4144','49199',696,1885);
INSERT INTO "communes" VALUES('04','Cruis','23',615,551,36.47,'3888','48958',575,1732);
INSERT INTO "communes" VALUES('04','Jausiers','04',1115,891,107.73,'4882','49353',1195,3027);
INSERT INTO "communes" VALUES('04','Mane','10',1373,1172,22,'3812','48820',386,868);
INSERT INTO "communes" VALUES('04','Esparron-de-Verdon','21',429,312,34.2,'4039','48599',307,585);
INSERT INTO "communes" VALUES('04','Simiane-la-Rotonde','03',584,532,67.86,'3584','48867',456,1113);
INSERT INTO "communes" VALUES('04','Montclar','26',461,398,23.38,'4445','49330',1082,2500);
INSERT INTO "communes" VALUES('04','Estoublon','15',466,337,33.85,'4261','48825',493,1362);
INSERT INTO "communes" VALUES('04','<NAME>','06',90,56,16.63,'4690','48700',777,1894);
INSERT INTO "communes" VALUES('04','Puimoisson','21',743,550,35.44,'4212','48736',567,781);
INSERT INTO "communes" VALUES('04','Bellaffaire','28',143,141,13.12,'4267','49355',717,1597);
INSERT INTO "communes" VALUES('04','<NAME>-du-Caire','16',525,486,27.27,'4102','49271',623,1547);
INSERT INTO "communes" VALUES('04','Montjustin','20',48,60,10.15,'3665','48721',386,721);
INSERT INTO "communes" VALUES('04','Riez','21',1805,1667,40,'4173','48687',473,680);
INSERT INTO "communes" VALUES('04','Bras-d''Asse','15',531,395,26.1,'4210','48806',455,812);
INSERT INTO "communes" VALUES('04','Sainte-Tulle','32',3344,3059,17.07,'3810','48651',269,521);
INSERT INTO "communes" VALUES('04','Redortiers','03',75,68,45.77,'3646','49005',810,1430);
INSERT INTO "communes" VALUES('04','Allos','07',691,640,116.65,'4768','49156',1339,3040);
INSERT INTO "communes" VALUES('04','Moriez','22',194,178,37.18,'4594','48846',820,1700);
INSERT INTO "communes" VALUES('04','Moustiers-Sainte-Marie','17',706,631,87.97,'4316','48719',474,1729);
INSERT INTO "communes" VALUES('04','Saumane','03',108,86,3.21,'3727','48990',746,980);
INSERT INTO "communes" VALUES('04','Mison','27',1005,850,31.72,'3914','49186',489,735);
INSERT INTO "communes" VALUES('04','Peyruis','19',2689,2218,23.23,'4004','48921',381,740);
INSERT INTO "communes" VALUES('04','Verdaches','26',57,47,22.92,'4451','49182',1078,2186);
INSERT INTO "communes" VALUES('04','Ubraye','02',105,85,35.65,'4845','48787',720,1938);
INSERT INTO "communes" VALUES('04','<NAME>','12',409,325,39.66,'4398','49396',650,1590);
INSERT INTO "communes" VALUES('04','Thoard','31',737,647,43.69,'4235','49055',667,1652);
INSERT INTO "communes" VALUES('04','Saint-Benoît','02',127,112,21.03,'4877','48853',515,1402);
INSERT INTO "communes" VALUES('04','Beynes','15',123,114,41.24,'4319','48879',537,1601);
INSERT INTO "communes" VALUES('04','Valernes','16',237,231,28.49,'4024','49180',460,1357);
INSERT INTO "communes" VALUES('04','Malijai','14',1960,1636,26.56,'4104','48940',422,1080);
INSERT INTO "communes" VALUES('04','Lurs','19',375,346,22.48,'3947','48855',340,621);
INSERT INTO "communes" VALUES('04','Auzet','26',79,87,34.53,'4423','49216',1068,2028);
INSERT INTO "communes" VALUES('04','Châteauneuf-Val-Saint-Donat','30',503,348,21.1,'4014','48993',480,1458);
INSERT INTO "communes" VALUES('04','Mallefougasse-Augès','23',239,136,19.71,'3957','48962',460,1545);
INSERT INTO "communes" VALUES('04','Saint-Lions','05',34,32,11.55,'4514','48872',739,1589);
INSERT INTO "communes" VALUES('04','Angles','22',71,67,9.83,'4690','48825',880,1777);
INSERT INTO "communes" VALUES('04','Nibles','16',44,42,12.31,'4092','49202',538,1162);
INSERT INTO "communes" VALUES('04','Revest-Saint-Martin','23',82,85,7.56,'3878','48901',520,830);
INSERT INTO "communes" VALUES('04','Reillanne','20',1521,1339,38.55,'3692','48754',387,805);
INSERT INTO "communes" VALUES('04','Allons','22',135,81,41.71,'4732','48864',951,1992);
INSERT INTO "communes" VALUES('04','Castellane','06',1537,1515,117.79,'4641','48718',639,1761);
INSERT INTO "communes" VALUES('04','Ganagobie','19',102,91,10.5,'3977','48899',367,719);
INSERT INTO "communes" VALUES('04','Volonne','30',1668,1516,24.61,'4086','49012',433,1244);
INSERT INTO "communes" VALUES('04','Montlaux','23',137,132,19.75,'3898','48941',492,807);
INSERT INTO "communes" VALUES('04','Oraison','14',5392,4122,38.42,'3980','48797',323,645);
INSERT INTO "communes" VALUES('04','Saint-André-les-Alpes','22',923,818,47.46,'4634','48853',880,1784);
INSERT INTO "communes" VALUES('04','Vergons','02',120,108,45.73,'4723','48793',860,1938);
INSERT INTO "communes" VALUES('04','Sigonce','10',411,319,19.97,'3893','48885',414,744);
INSERT INTO "communes" VALUES('04','Chaudon-Norante','05',156,129,37.48,'4417','48866',628,1612);
INSERT INTO "communes" VALUES('04','Barles','26',156,114,59.05,'4368','49182',912,2186);
INSERT INTO "communes" VALUES('04','Gigors','28',61,41,13.69,'4248','49355',806,1586);
INSERT INTO "communes" VALUES('04','Pontis','12',81,45,14.11,'4468','49449',771,2320);
INSERT INTO "communes" VALUES('04','Limans','10',337,295,20.97,'3771','48872',452,919);
INSERT INTO "communes" VALUES('04','Méolans-Revel','12',336,285,127.74,'4639','49335',912,2928);
INSERT INTO "communes" VALUES('04','Lardiers','23',114,124,30.08,'3751','48952',679,1700);
INSERT INTO "communes" VALUES('04','Authon','27',45,33,40.16,'4211','49154',881,2114);
INSERT INTO "communes" VALUES('04','Prads-Haute-Bléone','11',179,147,165.64,'4563','49133',831,2920);
INSERT INTO "communes" VALUES('04','Mézel','15',700,535,21.36,'4288','48885',537,971);
INSERT INTO "communes" VALUES('04','Uvernet-Fours','04',609,612,135.44,'4766','49290',1093,3040);
INSERT INTO "communes" VALUES('04','Barcelonnette','04',2700,2815,16.42,'4795','49318',1115,2680);
INSERT INTO "communes" VALUES('04','Faucon-de-Barcelonnette','04',303,209,17.42,'4824','49326',1157,2984);
INSERT INTO "communes" VALUES('04','Valensole','29',3224,2336,127.77,'4053','48709',290,651);
INSERT INTO "communes" VALUES('04','Salignac','30',546,400,14.42,'4051','49064',431,802);
INSERT INTO "communes" VALUES('04','Corbières','32',987,798,19.06,'3794','48623',256,531);
INSERT INTO "communes" VALUES('04','<NAME>','11',968,965,22.25,'4414','49068',694,1550);
INSERT INTO "communes" VALUES('04','<NAME>','16',66,76,17.63,'4137','49299',743,1559);
INSERT INTO "communes" VALUES('04','Sisteron','27',7450,6962,50.25,'4011','49100',448,1145);
INSERT INTO "communes" VALUES('04','<NAME>','11',392,329,37.27,'4461','49083',752,2186);
INSERT INTO "communes" VALUES('04','Noyers-sur-Jabron','18',464,337,56.58,'3879','49076',524,1825);
INSERT INTO "communes" VALUES('04','Lambruisse','22',90,68,21.78,'4562','48942',993,2000);
INSERT INTO "communes" VALUES('04','<NAME>','04',173,165,56.08,'4899','49398',1239,3047);
INSERT INTO "communes" VALUES('04','Saint-Jurs','17',155,150,33.59,'4292','48776',619,1726);
INSERT INTO "communes" VALUES('04','Banon','03',1070,879,39.81,'3657','48931',540,1093);
INSERT INTO "communes" VALUES('04','Venterol','28',248,196,22.75,'4180','49383',595,1562);
INSERT INTO "communes" VALUES('04','Castellet-lès-Sausses','09',109,106,53.91,'4918','48883',510,2564);
INSERT INTO "communes" VALUES('04','Manosque','98',22105,19607,56.73,'3829','48704',279,730);
INSERT INTO "communes" VALUES('04','Beaujeu','11',150,151,45.68,'4483','49115',821,2186);
INSERT INTO "communes" VALUES('04','Beauvezer','07',336,279,26.98,'4728','49048',1120,2490);
INSERT INTO "communes" VALUES('04','<NAME>','02',232,171,28.38,'4783','48893',760,1960);
INSERT INTO "communes" VALUES('04','Selonnet','26',432,405,29.55,'4416','49301',846,2028);
INSERT INTO "communes" VALUES('04','Senez','05',170,144,70.27,'4523','48793',748,1720);
INSERT INTO "communes" VALUES('04','Châteauredon','15',93,96,10.53,'4309','48905',573,1507);
INSERT INTO "communes" VALUES('04','Saint-Martin-de-Brômes','29',535,404,21.09,'4010','48633',307,588);
INSERT INTO "communes" VALUES('04','Roumoules','21',700,631,26.04,'4215','48695',545,783);
INSERT INTO "communes" VALUES('04','Piégut','28',145,123,11.12,'4213','49391',610,1560);
INSERT INTO "communes" VALUES('04','Brunet','29',256,218,28.47,'4104','48768',369,690);
INSERT INTO "communes" VALUES('04','Melve','16',103,114,14.11,'4059','49283',698,1478);
INSERT INTO "communes" VALUES('04','Saint-Julien-du-Verdon','06',150,108,6.19,'4671','48792',869,1760);
INSERT INTO "communes" VALUES('04','Draix','11',80,86,23.04,'4451','49038',760,2280);
INSERT INTO "communes" VALUES('04','Fontienne','23',132,116,8.18,'3841','48899',513,894);
INSERT INTO "communes" VALUES('04','Hautes-Duyes','31',35,27,22.84,'4246','49089',776,1872);
INSERT INTO "communes" VALUES('04','Saint-Vincent-sur-Jabron','18',218,192,30.2,'3783','49079',585,1723);
INSERT INTO "communes" VALUES('04','Champtercier','31',794,694,18.31,'4252','48995',587,1140);
INSERT INTO "communes" VALUES('04','Céreste','20',1264,1047,32.54,'3612','48729',323,971);
INSERT INTO "communes" VALUES('04','Méailles','02',117,87,32.74,'4772','48915',867,2183);
INSERT INTO "communes" VALUES('04','Entrevennes','14',168,163,29.81,'4096','48820',451,800);
INSERT INTO "communes" VALUES('04','Digne-les-Bains','97',16922,16029,117.07,'4332','48992',524,1731);
INSERT INTO "communes" VALUES('04','Peipin','30',1351,1046,13.15,'4022','49041',438,1281);
INSERT INTO "communes" VALUES('04','Thorame-Haute','07',232,175,108.35,'4688','48997',971,2682);
INSERT INTO "communes" VALUES('04','Peyroules','06',226,136,33.34,'4784','48684',919,1894);
INSERT INTO "communes" VALUES('04','Revest-des-Brousses','03',258,203,22.95,'3706','48858',515,868);
INSERT INTO "communes" VALUES('04','Gréoux-les-Bains','29',2545,1913,69.46,'3941','48620',268,571);
INSERT INTO "communes" VALUES('04','Saint-Martin-lès-Seyne','26',18,22,12.27,'4356','49317',840,1662);
INSERT INTO "communes" VALUES('04','Bayons','28',255,200,125.75,'4252','49265',749,2111);
INSERT INTO "communes" VALUES('04','Sainte-Croix-à-Lauze','20',79,72,8.65,'3645','48787',374,793);
INSERT INTO "communes" VALUES('04','Barras','31',158,121,20.8,'4196','49005',533,1298);
INSERT INTO "communes" VALUES('04','Saint-Pons','04',762,641,32.06,'4768','49325',1097,2879);
INSERT INTO "communes" VALUES('04','Curbans','16',442,292,28.88,'4112','49364',544,1559);
INSERT INTO "communes" VALUES('04','Villars-Colmars','07',253,209,40.59,'4742','49074',1164,2642);
INSERT INTO "communes" VALUES('04','Omergues','18',126,98,34.22,'3635','49080',789,1452);
INSERT INTO "communes" VALUES('04','Annot','02',1058,990,29.8,'4813','48850',599,1638);
INSERT INTO "communes" VALUES('04','Majastres','15',2,8,29.85,'4391','48793',800,1860);
INSERT INTO "communes" VALUES('04','Sourribes','30',173,138,19.75,'4088','49054',467,1438);
INSERT INTO "communes" VALUES('05','Salérans','16',85,84,13.9,'3742','49159',648,1526);
INSERT INTO "communes" VALUES('05','Risoul','11',644,638,30.34,'4781','49610',872,2573);
INSERT INTO "communes" VALUES('05','Veynes','24',3186,3093,42.6,'3874','49483',771,1815);
INSERT INTO "communes" VALUES('05','Monêtier-Allemont','12',318,264,7.15,'4007','49318',530,1373);
INSERT INTO "communes" VALUES('05','Remollon','07',431,398,6.45,'4257','49408',610,1400);
INSERT INTO "communes" VALUES('05','Saint-Apollinaire','21',120,106,7.54,'4473','49507',858,2120);
INSERT INTO "communes" VALUES('05','Montmaur','24',519,423,48.77,'3930','49523',849,2680);
INSERT INTO "communes" VALUES('05','Rabou','09',79,67,26.56,'4076','49546',1020,2280);
INSERT INTO "communes" VALUES('05','La Roche-des-Arnauds','09',1398,957,53.75,'4022','49515',885,2709);
INSERT INTO "communes" VALUES('05','Barcillonnette','04',136,104,19.51,'3980','49372',691,1560);
INSERT INTO "communes" VALUES('05','La Bâtie-Neuve','05',2325,1692,27.99,'4288','49518',824,2420);
INSERT INTO "communes" VALUES('05','Montgenèvre','06',511,498,40.07,'4872','49923',1360,3124);
INSERT INTO "communes" VALUES('05','Manteyer','09',421,304,25.63,'4030','49486',890,1974);
INSERT INTO "communes" VALUES('05','Cervières','25',174,129,109.68,'4872','49855',1375,3294);
INSERT INTO "communes" VALUES('05','<NAME>','23',1302,905,7.89,'4079','49361',555,1046);
INSERT INTO "communes" VALUES('05','Vallouise','02',742,632,68.58,'4611','49828',1106,3667);
INSERT INTO "communes" VALUES('05','Puy-Saint-André','25',468,462,15.37,'4735','49865',1159,2923);
INSERT INTO "communes" VALUES('05','Saint-Étienne-en-Dévoluy','19',558,539,67.87,'4005','49658',1134,2652);
INSERT INTO "communes" VALUES('05','La Rochette','05',423,375,10.34,'4244','49550',779,1631);
INSERT INTO "communes" VALUES('05','Montgardin','05',452,381,15.32,'4337','49500',772,1420);
INSERT INTO "communes" VALUES('05','Saint-Chaffrey','13',1668,1572,25.88,'4744','49918',1274,2632);
INSERT INTO "communes" VALUES('05','Saint-Julien-en-Beauchêne','03',128,108,59.43,'3748','49574',847,2365);
INSERT INTO "communes" VALUES('05','Saint-Firmin','20',477,438,22.39,'4103','49757',767,2776);
INSERT INTO "communes" VALUES('05','Chabestan','24',153,126,12.2,'3829','49420',715,1360);
INSERT INTO "communes" VALUES('05','Val-des-Prés','06',541,453,44.77,'4824','49943',1338,2761);
INSERT INTO "communes" VALUES('05','Sorbiers','17',41,54,13.93,'3585','49305',700,1177);
INSERT INTO "communes" VALUES('05','Champoléon','14',127,113,98.54,'4360','49689',1173,3439);
INSERT INTO "communes" VALUES('05','Espinasses','07',675,592,13.86,'4320','49408',637,1730);
INSERT INTO "communes" VALUES('05','Saint-Crépin','11',624,541,46.3,'4745','49674',894,2905);
INSERT INTO "communes" VALUES('05','Saint-Laurent-du-Cros','18',518,422,12.69,'4193','49604',979,1366);
INSERT INTO "communes" VALUES('05','Poligny','18',327,230,13.81,'4123','49657',896,2082);
INSERT INTO "communes" VALUES('05','Méreuil','22',89,78,10.61,'3771','49319',610,1546);
INSERT INTO "communes" VALUES('05','Chabottes','18',757,609,9.96,'4260','49604',1028,1347);
INSERT INTO "communes" VALUES('05','Montmorin','22',90,84,25.86,'3562','49391',719,1564);
INSERT INTO "communes" VALUES('05','Étoile-Saint-Cyrice','15',34,31,14.41,'3657','49239',698,1296);
INSERT INTO "communes" VALUES('05','Ristolas','01',90,78,82.18,'5132','49749',1571,3294);
INSERT INTO "communes" VALUES('05','Arvieux','01',375,356,72.62,'4891','49741',1138,2905);
INSERT INTO "communes" VALUES('05','Prunières','07',289,232,13.2,'4441','49491',770,2390);
INSERT INTO "communes" VALUES('05','<NAME>','20',121,127,108.02,'4287','49797',1022,3667);
INSERT INTO "communes" VALUES('05','Neffes','23',747,570,8.36,'4095','49449',633,892);
INSERT INTO "communes" VALUES('05','Orcières','14',718,811,98.27,'4431','49649',1174,3117);
INSERT INTO "communes" VALUES('05','Pelvoux','02',467,399,76.23,'4611','49855',1179,4099);
INSERT INTO "communes" VALUES('05','Bénévent-et-Charbillac','18',270,260,12.15,'4166','49664',923,2058);
INSERT INTO "communes" VALUES('05','Saint-Véran','01',257,265,44.75,'5035','49667',1756,3175);
INSERT INTO "communes" VALUES('05','Lagrand','15',268,269,6.92,'3799','49268',581,1219);
INSERT INTO "communes" VALUES('05','Saint-Bonnet-en-Champsaur','18',1700,1449,15.01,'4155','49647',934,2358);
INSERT INTO "communes" VALUES('05','Embrun','08',6110,6186,36.39,'4621','49517',778,2800);
INSERT INTO "communes" VALUES('05','Eygliers','11',730,697,30.04,'4775','49640',881,2670);
INSERT INTO "communes" VALUES('05','Champcella','02',174,142,30.25,'4705','49692',900,3156);
INSERT INTO "communes" VALUES('05','Puy-Saint-Eusèbe','21',128,115,11.31,'4516','49520',860,2620);
INSERT INTO "communes" VALUES('05','Châteauroux-les-Alpes','08',1117,943,92.84,'4650','49572',811,3120);
INSERT INTO "communes" VALUES('05','Crots','08',933,723,53.84,'4594','49482',778,2896);
INSERT INTO "communes" VALUES('05','Forest-Saint-Julien','18',283,218,6.95,'4221','49593',1015,1631);
INSERT INTO "communes" VALUES('05','Savournon','22',241,208,39.23,'3838','49358',671,1760);
INSERT INTO "communes" VALUES('05','Vigneaux','02',480,392,15.99,'4671','49804',978,2800);
INSERT INTO "communes" VALUES('05','Infournas','18',28,24,8.69,'4174','49683',1158,2442);
INSERT INTO "communes" VALUES('05','Oze','24',94,65,12.03,'3854','49450',737,1603);
INSERT INTO "communes" VALUES('05','Jarjayes','23',433,380,22.67,'4193','49450',586,1310);
INSERT INTO "communes" VALUES('05','Réotier','11',207,161,22.33,'4726','49627',871,3086);
INSERT INTO "communes" VALUES('05','Montrond','22',54,39,4.46,'3782','49313',605,822);
INSERT INTO "communes" VALUES('05','<NAME>','03',10,10,7.13,'3657','49516',993,1690);
INSERT INTO "communes" VALUES('05','Saint-Eusèbe-en-Champsaur','18',142,143,7.83,'4101','49695',850,1221);
INSERT INTO "communes" VALUES('05','Avançon','05',391,331,22.57,'4276','49473',718,1629);
INSERT INTO "communes" VALUES('05','Gap','99',39744,36269,110.43,'4157','49509',625,2360);
INSERT INTO "communes" VALUES('05','Savines-le-Lac','21',1088,819,25.13,'4520','49473',775,2260);
INSERT INTO "communes" VALUES('05','Lettret','23',184,109,4.2,'4138','49409',591,960);
INSERT INTO "communes" VALUES('05','Aspres-sur-Buëch','03',819,756,42.65,'3792','49471',727,2063);
INSERT INTO "communes" VALUES('05','Ceillac','11',304,277,96.05,'4933','49630',1224,3381);
INSERT INTO "communes" VALUES('05','Villar-Loubière','20',46,62,22.63,'4232','49807',975,3098);
INSERT INTO "communes" VALUES('05','Guillestre','11',2325,2219,51.29,'4792','49622',867,2694);
INSERT INTO "communes" VALUES('05','<NAME>','13',1035,1021,97.87,'4636','49973',1397,3659);
INSERT INTO "communes" VALUES('05','Costes','18',153,140,8.78,'4108','49718',1043,2776);
INSERT INTO "communes" VALUES('05','Ribeyret','17',105,114,17.87,'3576','49348',720,1564);
INSERT INTO "communes" VALUES('05','Saint-Jacques-en-Valgodemard','20',150,152,15.65,'4119','49751',820,2776);
INSERT INTO "communes" VALUES('05','Sigottier','22',79,74,25.33,'3728','49394',672,1634);
INSERT INTO "communes" VALUES('05','Bruis','17',66,73,25.15,'3530','49409',655,1521);
INSERT INTO "communes" VALUES('05','Saint-André-de-Rosans','17',146,139,36.61,'3531','49308',557,1213);
INSERT INTO "communes" VALUES('05','Saint-Léger-les-Mélèzes','18',323,228,6.76,'4291','49604',1076,2459);
INSERT INTO "communes" VALUES('05','Rambaud','05',367,278,10.71,'4217','49494',793,1260);
INSERT INTO "communes" VALUES('05','Puy-Saint-Vincent','02',299,271,22.98,'4612','49811',1155,3303);
INSERT INTO "communes" VALUES('05','Saint-Pierre-Avez','16',24,24,11.37,'3805','49175',610,1480);
INSERT INTO "communes" VALUES('05','Saint-Sauveur','08',440,399,24.18,'4649','49490',791,2420);
INSERT INTO "communes" VALUES('05','La Roche-de-Rame','02',839,679,40.53,'4715','49722',910,2808);
INSERT INTO "communes" VALUES('05','Agnières-en-Dévoluy','19',270,212,32.46,'3939','49660',1114,2597);
INSERT INTO "communes" VALUES('05','La Grave','10',488,517,126.91,'4410','50051',1135,3976);
INSERT INTO "communes" VALUES('05','Château-Ville-Vieille','01',337,324,66.9,'4949','49730',1229,3280);
INSERT INTO "communes" VALUES('05','Upaix','12',423,377,23.26,'3931','49242',494,757);
INSERT INTO "communes" VALUES('05','Aspres-lès-Corps','20',139,123,16.73,'4050','49780',743,2776);
INSERT INTO "communes" VALUES('05','Névache','06',348,301,191.93,'4742','50021',1430,3222);
INSERT INTO "communes" VALUES('05','Eyguians','12',232,237,9.37,'3817','49274',576,1200);
INSERT INTO "communes" VALUES('05','La Salle-les-Alpes','13',906,986,35.42,'4705','49939',1356,2845);
INSERT INTO "communes" VALUES('05','Antonaves','16',179,160,8.03,'3853','49185',512,1414);
INSERT INTO "communes" VALUES('05','Molines-en-Queyras','01',315,322,53.62,'5007','49701',1625,3160);
INSERT INTO "communes" VALUES('05','Montbrand','03',61,64,25.03,'3717','49544',846,1728);
INSERT INTO "communes" VALUES('05','L''Argentière-la-Bessée','02',2326,2325,64.55,'4692','49771',945,3243);
INSERT INTO "communes" VALUES('05','<NAME>','03',164,140,29.64,'3667','49503',786,1640);
INSERT INTO "communes" VALUES('05','<NAME>','24',98,81,22.15,'3874','49417',774,1830);
INSERT INTO "communes" VALUES('05','<NAME>','20',180,179,21.93,'4051','49726',774,2570);
INSERT INTO "communes" VALUES('05','La Motte-en-Champsaur','18',204,177,52.8,'4146','49703',1014,3164);
INSERT INTO "communes" VALUES('05','Châteauneuf-de-Chabre','16',315,259,23.9,'3870','49203',514,1352);
INSERT INTO "communes" VALUES('05','Théus','07',216,156,16.71,'4280','49418',635,1732);
INSERT INTO "communes" VALUES('05','Saint-Martin-de-Queyrières','02',1086,936,55.52,'4721','49822',1000,2920);
INSERT INTO "communes" VALUES('05','<NAME>','19',53,54,40.15,'3902','49599',1027,2683);
INSERT INTO "communes" VALUES('05','Bréziers','07',164,124,30.35,'4292','49363',707,1578);
INSERT INTO "communes" VALUES('05','Saint-Clément-sur-Durance','11',294,229,25.06,'4713','49610',858,2836);
INSERT INTO "communes" VALUES('05','Barret-sur-Méouge','16',227,232,26.72,'3774','49181',592,1555);
INSERT INTO "communes" VALUES('05','<NAME>','09',536,456,8.32,'4081','49483',840,1232);
INSERT INTO "communes" VALUES('05','<NAME>','12',728,705,15.51,'3956','49215',460,678);
INSERT INTO "communes" VALUES('05','Sainte-Marie','17',42,48,7.5,'3487','49406',627,1243);
INSERT INTO "communes" VALUES('05','Vitrolles','04',209,139,14.62,'4019','49347',545,1455);
INSERT INTO "communes" VALUES('05','Sainte-Colombe','15',59,50,17.18,'3703','49205',715,1360);
INSERT INTO "communes" VALUES('05','Trescléoux','15',311,275,18.68,'3746','49282',584,1375);
INSERT INTO "communes" VALUES('05','Saint-Julien-en-Champsaur','18',306,275,10.04,'4213','49621',993,1842);
INSERT INTO "communes" VALUES('05','Lazer','12',329,276,21.98,'3890','49276',565,1321);
INSERT INTO "communes" VALUES('05','Baratier','08',510,463,15.99,'4621','49486',780,2857);
INSERT INTO "communes" VALUES('05','Laragne-Montéglin','12',3756,3306,23.51,'3872','49239',544,1240);
INSERT INTO "communes" VALUES('05','<NAME>','18',449,413,10.27,'4150','49640',949,2082);
INSERT INTO "communes" VALUES('05','Sigoyer','23',640,584,24.38,'4044','49420',639,2000);
INSERT INTO "communes" VALUES('05','Châteauneuf-d''Oze','24',27,14,26.23,'3920','49457',861,2016);
INSERT INTO "communes" VALUES('05','Serres','22',1283,1201,18.57,'3754','49365',633,1431);
INSERT INTO "communes" VALUES('05','Puy-Saint-Pierre','25',507,354,7.74,'4757','49881',1237,2538);
INSERT INTO "communes" VALUES('05','Moydans','17',56,53,10.51,'3519','49333',633,1494);
INSERT INTO "communes" VALUES('05','Fouillouse','23',198,138,7.24,'4074','49397',599,1081);
INSERT INTO "communes" VALUES('05','Montjay','17',104,79,27,'3630','49289',764,1298);
INSERT INTO "communes" VALUES('05','Furmeyer','24',142,153,14.27,'3929','49489',817,1661);
INSERT INTO "communes" VALUES('05','<NAME>','22',152,134,8.02,'3792','49346',636,1299);
INSERT INTO "communes" VALUES('05','Montclus','22',55,48,21.25,'3718','49350',680,1546);
INSERT INTO "communes" VALUES('05','Orres','08',507,458,74.79,'4682','49460',1198,2914);
INSERT INTO "communes" VALUES('05','Chauffayer','20',391,332,10.9,'4080','49727',775,1132);
INSERT INTO "communes" VALUES('05','Saint-Auban-d''Oze','24',71,68,13.21,'3900','49440',848,1603);
INSERT INTO "communes" VALUES('05','Saint-Étienne-le-Laus','05',301,215,8.66,'4251','49447',699,1266);
INSERT INTO "communes" VALUES('05','Orpierre','15',328,256,27.57,'3727','49237',619,1323);
INSERT INTO "communes" VALUES('05','Aspremont','03',320,237,18.52,'3768','49436',696,1378);
INSERT INTO "communes" VALUES('05','Saint-Jean-Saint-Nicolas','14',1010,781,37.17,'4324','49630',1077,2614);
INSERT INTO "communes" VALUES('05','Freissinières','02',198,169,88.21,'4667','49727',936,3236);
INSERT INTO "communes" VALUES('05','Châteauvieux','23',447,408,7.07,'4127','49426',612,960);
INSERT INTO "communes" VALUES('05','Saint-Genis','22',52,49,18.32,'3813','49310',591,1422);
INSERT INTO "communes" VALUES('05','<NAME>','22',97,63,21.67,'3688','49417',760,1760);
INSERT INTO "communes" VALUES('05','Esparron','04',38,27,24.11,'3962','49393',795,1830);
INSERT INTO "communes" VALUES('05','L''Épine','22',182,154,33.47,'3645','49352',785,1760);
INSERT INTO "communes" VALUES('05','Saint-Maurice-en-Valgodemard','20',137,150,36.37,'4176','49782',875,2824);
INSERT INTO "communes" VALUES('05','Lardier-et-Valença','23',293,198,14.86,'4049','49372',548,1482);
INSERT INTO "communes" VALUES('05','Aiguilles','01',433,435,40.16,'5036','49758',1400,3078);
INSERT INTO "communes" VALUES('05','Saint-André-d''Embrun','08',620,495,38.63,'4664','49540',796,2934);
INSERT INTO "communes" VALUES('05','Saléon','15',92,69,9.86,'3821','49266',557,1280);
INSERT INTO "communes" VALUES('05','Pelleautier','09',606,391,12.81,'4089','49463',737,2016);
INSERT INTO "communes" VALUES('05','Saint-Michel-de-Chaillol','18',328,301,16.78,'4256','49647',1220,2745);
INSERT INTO "communes" VALUES('05','Saint-Pierre-d''Argençon','03',158,152,18.81,'3735','49467',737,1560);
INSERT INTO "communes" VALUES('05','Chorges','07',2599,1894,53.34,'4378','49495',773,2510);
INSERT INTO "communes" VALUES('05','Abriès','01',365,358,77.13,'5100','49772',1513,3305);
INSERT INTO "communes" VALUES('05','Nossage-et-Bénévent','15',12,8,4.31,'3791','49239',610,1352);
INSERT INTO "communes" VALUES('05','<NAME>','21',134,86,8.49,'4419','49420',770,1300);
INSERT INTO "communes" VALUES('05','Ventavon','12',512,459,42.69,'3966','49301',503,1422);
INSERT INTO "communes" VALUES('05','Rousset','07',163,176,14.38,'4331','49407',650,1500);
INSERT INTO "communes" VALUES('05','Éourres','16',151,85,26.47,'3736','49125',759,1613);
INSERT INTO "communes" VALUES('05','Villar-Saint-Pancrace','25',1457,1415,42.53,'4767','49859',1160,2903);
INSERT INTO "communes" VALUES('05','<NAME>','03',316,232,31.44,'3781','49519',780,2063);
INSERT INTO "communes" VALUES('05','<NAME>','22',210,136,15.08,'3792','49396',671,1431);
INSERT INTO "communes" VALUES('05','<NAME>-Vieille','05',278,246,9.05,'4251','49504',798,1152);
INSERT INTO "communes" VALUES('05','<NAME>','18',267,222,21.5,'4084','49665',839,2563);
INSERT INTO "communes" VALUES('05','Rosans','17',519,492,30.39,'3481','49324',532,1563);
INSERT INTO "communes" VALUES('05','Valserres','05',229,192,11.92,'4212','49432',608,1410);
INSERT INTO "communes" VALUES('05','Rochebrune','07',161,128,12.37,'4267','49396',622,1374);
INSERT INTO "communes" VALUES('05','Tallard','23',1988,1300,15.02,'4131','49402',570,1121);
INSERT INTO "communes" VALUES('05','Saint-Disdier','19',136,141,45.89,'3956','49705',950,2755);
INSERT INTO "communes" VALUES('05','Ribiers','16',794,682,36.55,'3911','49146',464,1480);
INSERT INTO "communes" VALUES('05','Chanousse','17',58,36,20.32,'3688','49283',695,1520);
INSERT INTO "communes" VALUES('05','Buissard','18',182,100,2.92,'4232','49619',1026,1340);
INSERT INTO "communes" VALUES('05','Villar-d''Arêne','10',287,217,77.51,'4445','50047',1519,3883);
INSERT INTO "communes" VALUES('05','Ancelle','18',858,620,50.66,'4300','49582',1160,2779);
INSERT INTO "communes" VALUES('05','Briançon','98',11627,10729,28.07,'4776','49884',1167,2540);
INSERT INTO "communes" VALUES('05','Laye','18',246,208,10.55,'4164','49623',976,2158);
INSERT INTO "communes" VALUES('05','Mont-Dauphin','11',147,88,0.58,'4763','49632',898,1035);
INSERT INTO "communes" VALUES('05','Puy-Sanières','21',236,155,11.38,'4553','49509',780,2524);
INSERT INTO "communes" VALUES('05','Réallon','21',253,195,71.4,'4476','49551',1000,2990);
INSERT INTO "communes" VALUES('05','Crévoux','08',142,105,56.26,'4745','49498',1169,2989);
INSERT INTO "communes" VALUES('05','Vars','11',677,641,92.2,'4837','49550',1320,3381);
INSERT INTO "communes" VALUES('06','<NAME>','12',931,823,3.99,'5402','48698',108,600);
INSERT INTO "communes" VALUES('06','Bairols','29',107,117,15.24,'5323','48868',280,1803);
INSERT INTO "communes" VALUES('06','Aspremont','12',2187,1853,9.44,'5453','48648',100,855);
INSERT INTO "communes" VALUES('06','Colomars','12',3290,2883,6.72,'5428','48626',57,402);
INSERT INTO "communes" VALUES('06','Castagniers','12',1542,1363,7.52,'5439','48657',68,881);
INSERT INTO "communes" VALUES('06','<NAME>','28',6821,6172,13.1,'5351','48580',24,349);
INSERT INTO "communes" VALUES('06','Vence','28',19281,16970,39.23,'5308','48581',40,1033);
INSERT INTO "communes" VALUES('06','Gattières','50',4052,3573,10.03,'5377','48622',48,950);
INSERT INTO "communes" VALUES('06','Grasse','94',51036,43848,44.44,'5098','48509',80,1061);
INSERT INTO "communes" VALUES('06','Spéracèdes','25',1266,1092,3.46,'5024','48498',204,790);
INSERT INTO "communes" VALUES('06','Courmes','02',100,88,15.71,'5191','48603',260,1263);
INSERT INTO "communes" VALUES('06','Mujouls','21',44,30,14.55,'5026','48760',518,1416);
INSERT INTO "communes" VALUES('06','Levens','12',4683,3700,29.85,'5431','48734',121,1414);
INSERT INTO "communes" VALUES('06','Touët-sur-Var','29',661,439,14.98,'5188','48831',280,1043);
INSERT INTO "communes" VALUES('06','Saint-Léger','18',67,65,4.61,'4991','48889',590,1600);
INSERT INTO "communes" VALUES('06','Ferres','08',97,59,13.7,'5286','48719',180,1278);
INSERT INTO "communes" VALUES('06','Tourette-du-Château','20',117,89,9.74,'5340','48758',276,1551);
INSERT INTO "communes" VALUES('06','Tourrettes-sur-Loup','02',4007,3904,29.28,'5248','48573',47,1246);
INSERT INTO "communes" VALUES('06','Coaraze','07',736,658,17.14,'5509','48738',313,1414);
INSERT INTO "communes" VALUES('06','Saint-Martin-du-Var','12',2576,2190,5.59,'5395','48691',88,403);
INSERT INTO "communes" VALUES('06','Peymeinade','25',7867,7150,9.76,'5043','48491',29,326);
INSERT INTO "communes" VALUES('06','Beausoleil','03',13515,12774,2.79,'5652','48602',40,621);
INSERT INTO "communes" VALUES('06','Duranus','12',181,155,16.1,'5469','48770',194,1500);
INSERT INTO "communes" VALUES('06','Auvare','18',49,44,18.27,'5079','48876',479,2133);
INSERT INTO "communes" VALUES('06','Amirat','21',55,41,12.95,'4986','48767',725,1373);
INSERT INTO "communes" VALUES('06','Péone','11',908,686,48.59,'5080','49020',947,2640);
INSERT INTO "communes" VALUES('06','Roquefort-les-Pins','02',6355,5265,21.53,'5238','48517',20,362);
INSERT INTO "communes" VALUES('06','Saint-Dalmas-le-Selvage','22',126,123,81.03,'5033','49205',1280,2881);
INSERT INTO "communes" VALUES('06','Utelle','27',720,490,67.97,'5456','48797',126,2080);
INSERT INTO "communes" VALUES('06','Blausasc','09',1469,1256,10.21,'5587','48672',108,661);
INSERT INTO "communes" VALUES('06','Biot','01',9449,7411,15.54,'5287','48476',9,208);
INSERT INTO "communes" VALUES('06','Villefranche-sur-Mer','30',5419,6825,4.88,'5528','48560',0,575);
INSERT INTO "communes" VALUES('06','<NAME>','29',465,300,36.7,'5386','48830',195,1900);
INSERT INTO "communes" VALUES('06','Tourrette-Levens','12',4729,4113,16.5,'5488','48652',160,845);
INSERT INTO "communes" VALUES('06','<NAME>','19',560,416,35.57,'5549','48877',465,2122);
INSERT INTO "communes" VALUES('06','Valbonne','02',12275,10762,18.97,'5191','48490',75,302);
INSERT INTO "communes" VALUES('06','Puget-Théniers','18',1805,1550,21.45,'5063','48840',353,1436);
INSERT INTO "communes" VALUES('06','Saint-Martin-d''Entraunes','11',83,87,40.05,'4917','49047',968,2742);
INSERT INTO "communes" VALUES('06','Sauze','11',98,99,27.77,'4998','48986',780,2502);
INSERT INTO "communes" VALUES('06','Vallauris','35',28252,25765,13.04,'5241','48422',0,285);
INSERT INTO "communes" VALUES('06','Puget-Rostang','18',107,115,22.46,'5090','48860',537,1738);
INSERT INTO "communes" VALUES('06','Entraunes','11',123,125,81.45,'4902','49098',1100,2880);
INSERT INTO "communes" VALUES('06','Saint-Sauveur-sur-Tinée','24',343,337,32.28,'5298','48982',432,2708);
INSERT INTO "communes" VALUES('06','Saint-Paul-de-Vence','45',3486,2874,7.26,'5317','48551',39,355);
INSERT INTO "communes" VALUES('06','Fontan','04',255,234,49.61,'5796','48893',405,2447);
INSERT INTO "communes" VALUES('06','Sospel','26',3527,2887,62.39,'5680','48752',257,1737);
INSERT INTO "communes" VALUES('06','<NAME>','31',700,599,91.77,'5866','48958',559,2650);
INSERT INTO "communes" VALUES('06','Drap','07',4385,4333,5.54,'5538','48617',75,520);
INSERT INTO "communes" VALUES('06','Moulinet','26',207,248,41.07,'5640','48823',516,2080);
INSERT INTO "communes" VALUES('06','Roquestéron-Grasse','08',79,65,23.98,'5187','48745',289,1565);
INSERT INTO "communes" VALUES('06','Saint-Antonin','18',109,78,6.44,'5159','48789',625,901);
INSERT INTO "communes" VALUES('06','Auribeau-sur-Siagne','10',3042,2611,5.48,'5083','48445',12,302);
INSERT INTO "communes" VALUES('06','Revest-les-Roches','20',212,162,8.61,'5356','48756',138,1524);
INSERT INTO "communes" VALUES('06','<NAME>','30',3180,3017,7.42,'5627','48606',146,658);
INSERT INTO "communes" VALUES('06','Briançonnet','21',217,169,24.32,'4912','48739',740,1600);
INSERT INTO "communes" VALUES('06','Contes','07',7010,6550,19.47,'5530','48680',123,642);
INSERT INTO "communes" VALUES('06','Castillon','26',372,282,7.51,'5706','48704',275,1289);
INSERT INTO "communes" VALUES('06','Touët-de-l''Escarène','09',325,242,4.57,'5587','48719',374,1080);
INSERT INTO "communes" VALUES('06','Valderoure','21',397,306,25.34,'4859','48663',1027,1645);
INSERT INTO "communes" VALUES('06','Escragnolles','25',596,384,25.48,'4941','48590',400,1644);
INSERT INTO "communes" VALUES('06','Pierrefeu','20',254,244,22.27,'5272','48750',222,1520);
INSERT INTO "communes" VALUES('06','Mouans-Sartoux','46',10198,8886,13.52,'5150','48467',40,321);
INSERT INTO "communes" VALUES('06','Andon','21',579,343,54.3,'4944','48637',911,1649);
INSERT INTO "communes" VALUES('06','Belvédère','19',656,499,75.41,'5538','48905',575,3080);
INSERT INTO "communes" VALUES('06','Saint-André-de-la-Roche','43',5004,4130,2.86,'5501','48600',43,383);
INSERT INTO "communes" VALUES('06','Malaussène','29',267,174,19.48,'5324','48811',154,1468);
INSERT INTO "communes" VALUES('06','Beuil','11',495,335,75.65,'5168','48994',1040,2815);
INSERT INTO "communes" VALUES('06','Antibes','97',74120,72454,26.48,'5318','48422',0,163);
INSERT INTO "communes" VALUES('06','Èze','30',2686,2510,9.47,'5583','48586',0,700);
INSERT INTO "communes" VALUES('06','Rigaud','18',219,147,32.54,'5172','48879',333,1907);
INSERT INTO "communes" VALUES('06','Cannes','98',73234,67406,19.62,'5205','48392',0,260);
INSERT INTO "communes" VALUES('06','Villeneuve-Loubet','45',15020,12940,19.6,'5316','48509',0,213);
INSERT INTO "communes" VALUES('06','Saint-Jeannet','28',3682,3599,14.58,'5341','48607',39,934);
INSERT INTO "communes" VALUES('06','<NAME>','02',2795,2581,14.47,'5169','48557',100,1312);
INSERT INTO "communes" VALUES('06','Opio','02',2115,1928,9.47,'5161','48520',154,361);
INSERT INTO "communes" VALUES('06','Pégomas','10',6809,5768,11.28,'5107','48441',6,483);
INSERT INTO "communes" VALUES('06','Isola','22',752,535,97.98,'5239','49095',719,2930);
INSERT INTO "communes" VALUES('06','<NAME>','18',313,164,18.08,'5125','48809',520,1436);
INSERT INTO "communes" VALUES('06','Châteauneuf-d''Entraunes','11',63,56,29.91,'4995','49031',880,2813);
INSERT INTO "communes" VALUES('06','Saint-Vallier-de-Thiey','25',3321,2259,50.68,'5012','48554',460,1542);
INSERT INTO "communes" VALUES('06','Tournefort','29',138,143,10.13,'5349','48830',171,1304);
INSERT INTO "communes" VALUES('06','Mougins','46',18917,16040,25.64,'5176','48445',32,269);
INSERT INTO "communes" VALUES('06','Saorge','04',442,396,86.78,'5795','48875',319,2680);
INSERT INTO "communes" VALUES('06','Châteauneuf-Villevieille','07',872,686,8.38,'5511','48676',234,901);
INSERT INTO "communes" VALUES('06','Rimplas','24',128,108,24.95,'5326','48960',400,2649);
INSERT INTO "communes" VALUES('06','<NAME>','95',42320,41940,7.71,'5202','48418',12,285);
INSERT INTO "communes" VALUES('06','Sallagriffon','21',50,54,9.59,'5078','48759',557,1259);
INSERT INTO "communes" VALUES('06','Lieuche','29',40,45,13.4,'5200','48885',509,1783);
INSERT INTO "communes" VALUES('06','Coursegoules','08',473,322,40.98,'5230','48659',640,1700);
INSERT INTO "communes" VALUES('06','Collongues','21',100,102,10.78,'5029','48764',574,1200);
INSERT INTO "communes" VALUES('06','Peille','09',2291,2042,43.16,'5628','48669',190,1268);
INSERT INTO "communes" VALUES('06','Carros','50',11508,10713,15.11,'5390','48658',63,945);
INSERT INTO "communes" VALUES('06','Gilette','20',1494,1252,10.18,'5363','48722',108,808);
INSERT INTO "communes" VALUES('06','Thiéry','29',103,93,22.24,'5215','48865',351,1783);
INSERT INTO "communes" VALUES('06','<NAME>','43',10332,10041,14.9,'5530','48601',47,700);
INSERT INTO "communes" VALUES('06','<NAME>','02',3857,3434,7.1,'5188','48527',178,480);
INSERT INTO "communes" VALUES('06','Clans','24',562,532,37.79,'5346','48883',264,2082);
INSERT INTO "communes" VALUES('06','Cabris','25',1410,1471,5.43,'5041','48507',240,762);
INSERT INTO "communes" VALUES('06','Cagnes-sur-Mer','96',47141,43929,17.95,'5346','48515',0,187);
INSERT INTO "communes" VALUES('06','Gréolières','08',559,456,52.67,'5119','48662',492,1778);
INSERT INTO "communes" VALUES('06','<NAME>','18',87,98,30.06,'5043','48875',495,1743);
INSERT INTO "communes" VALUES('06','<NAME>','25',3140,2794,11.26,'5010','48490',30,600);
INSERT INTO "communes" VALUES('06','Bonson','20',665,600,6.72,'5392','48736',119,841);
INSERT INTO "communes" VALUES('06','Roubion','24',124,113,27.26,'5237','48992',840,2488);
INSERT INTO "communes" VALUES('06','Bendejun','07',930,840,6.35,'5504','48708',240,1100);
INSERT INTO "communes" VALUES('06','Roquebillière','19',1672,1477,25.92,'5522','48901',500,2045);
INSERT INTO "communes" VALUES('06','Bézaudun-les-Alpes','08',204,140,21.44,'5288','48675',560,1340);
INSERT INTO "communes" VALUES('06','Gars','21',60,50,15.57,'4963','48739',640,1649);
INSERT INTO "communes" VALUES('06','Théoule-sur-Mer','36',1551,1297,10.49,'5115','48341',0,440);
INSERT INTO "communes" VALUES('06','Menton','93',28858,28792,14.05,'5737','48639',0,774);
INSERT INTO "communes" VALUES('06','Saint-Auban','21',222,267,42.54,'4877','48720',899,1689);
INSERT INTO "communes" VALUES('06','Saint-Laurent-du-Var','05',29963,27166,10.11,'5393','48526',0,214);
INSERT INTO "communes" VALUES('06','Peillon','09',1382,1230,8.7,'5606','48642',115,720);
INSERT INTO "communes" VALUES('06','Gorbio','52',1284,1159,7.02,'5676','48652',77,928);
INSERT INTO "communes" VALUES('06','La Roquette-sur-Siagne','46',4962,4444,6.31,'5132','48422',6,170);
INSERT INTO "communes" VALUES('06','Cantaron','07',1239,1256,7.38,'5535','48624',90,780);
INSERT INTO "communes" VALUES('06','<NAME>','21',169,136,32.15,'5024','48715',440,1689);
INSERT INTO "communes" VALUES('06','Nice','99',343304,343123,71.92,'5480','48558',0,520);
INSERT INTO "communes" VALUES('06','Caille','21',336,224,16.96,'4883','48644',1122,1644);
INSERT INTO "communes" VALUES('06','Châteauneuf-Grasse','02',3245,2980,8.95,'5154','48528',197,662);
INSERT INTO "communes" VALUES('06','Séranon','21',477,318,23.28,'4850','48638',1018,1712);
INSERT INTO "communes" VALUES('06','Saint-Martin-Vésubie','23',1324,1102,97.13,'5466','48965',715,3120);
INSERT INTO "communes" VALUES('06','Ilonse','24',167,113,40.59,'5292','48925',351,1992);
INSERT INTO "communes" VALUES('06','Castellar','13',974,821,12.24,'5733','48671',100,1382);
INSERT INTO "communes" VALUES('06','Lucéram','09',1237,1036,65.52,'5582','48758',400,1567);
INSERT INTO "communes" VALUES('06','Lantosque','27',1343,1025,44.76,'5529','48859',335,2000);
INSERT INTO "communes" VALUES('06','Aiglun','21',94,106,15.37,'5086','48730',373,1541);
INSERT INTO "communes" VALUES('06','Daluis','11',148,132,40.03,'4970','48915',590,2502);
INSERT INTO "communes" VALUES('06','Saint-Jean-Cap-Ferrat','30',2030,1891,2.48,'5553','48542',0,143);
INSERT INTO "communes" VALUES('06','Caussols','02',242,150,27.39,'5070','48601',895,1458);
INSERT INTO "communes" VALUES('06','Tende','31',2084,1837,177.47,'5841','48986',552,2920);
INSERT INTO "communes" VALUES('06','Conségudes','08',82,62,12.47,'5235','48715',256,1464);
INSERT INTO "communes" VALUES('06','Sigale','20',209,181,5.62,'5142','48747',327,1108);
INSERT INTO "communes" VALUES('06','<NAME>','50',1317,1024,18.65,'5370','48677',91,1024);
INSERT INTO "communes" VALUES('06','Ascros','18',143,146,17.74,'5197','48801',600,1449);
INSERT INTO "communes" VALUES('06','Guillaumes','11',689,588,87.02,'5019','48989',679,2582);
INSERT INTO "communes" VALUES('06','Venanson','23',149,123,17.98,'5463','48948',760,2089);
INSERT INTO "communes" VALUES('06','Bouyon','08',482,352,12.29,'5318','48694',159,1260);
INSERT INTO "communes" VALUES('06','Roure','24',212,165,40.3,'5279','48989',500,2339);
INSERT INTO "communes" VALUES('06','Falicon','43',1913,1647,5.17,'5492','48610',103,581);
INSERT INTO "communes" VALUES('06','Toudon','20',286,227,18.56,'5309','48779',192,1512);
INSERT INTO "communes" VALUES('06','Villeneuve-d''Entraunes','11',85,73,28.2,'4954','49022',858,2457);
INSERT INTO "communes" VALUES('06','Roquesteron','20',550,479,6.47,'5186','48749',270,1040);
INSERT INTO "communes" VALUES('06','Breil-sur-Roya','04',2313,2045,81.31,'5753','48819',151,2080);
INSERT INTO "communes" VALUES('06','Roquebrune-Cap-Martin','52',12532,11691,9.33,'5708','48619',0,800);
INSERT INTO "communes" VALUES('06','Beaulieu-sur-Mer','30',3761,3672,0.95,'5550','48563',0,140);
INSERT INTO "communes" VALUES('06','Villars-sur-Var','29',671,553,25.27,'5289','48819',239,1803);
INSERT INTO "communes" VALUES('06','Pierlas','29',97,84,31.31,'5221','48924',560,2106);
INSERT INTO "communes" VALUES('06','Cap-d''Ail','30',5022,4545,2.04,'5632','48579',0,540);
INSERT INTO "communes" VALUES('06','Cuébris','20',150,180,23.1,'5204','48763',320,1108);
INSERT INTO "communes" VALUES('06','Saint-Blaise','12',959,892,8.04,'5445','48691',88,808);
INSERT INTO "communes" VALUES('06','L''Escarène','09',2399,2126,10.67,'5578','48705',220,1054);
INSERT INTO "communes" VALUES('06','Saint-Cézaire-sur-Siagne','25',3670,2841,30.02,'4951','48499',95,771);
INSERT INTO "communes" VALUES('06','Cipières','08',373,269,38.15,'5132','48648',459,1381);
INSERT INTO "communes" VALUES('06','<NAME>','45',7676,6706,9.82,'5297','48540',10,351);
INSERT INTO "communes" VALUES('06','Sainte-Agnès','52',1197,1097,9.37,'5694','48667',76,1238);
INSERT INTO "communes" VALUES('06','Saint-Étienne-de-Tinée','22',1304,1519,173.81,'5098','49174',949,3027);
INSERT INTO "communes" VALUES('06','Valdeblore','24',882,685,94.16,'5372','48968',399,2880);
INSERT INTO "communes" VALUES('06','Mandelieu-la-Napoule','36',22203,17863,31.37,'5112','48384',0,486);
INSERT INTO "communes" VALUES('06','Berre-les-Alpes','07',1279,1163,9.58,'5547','48700',237,816);
INSERT INTO "communes" VALUES('06','Marie','24',84,50,14.77,'5331','48924',341,2089);
INSERT INTO "communes" VALUES('06','Gourdon','02',426,379,22.53,'5157','48578',157,1335);
INSERT INTO "communes" VALUES('06','Massoins','29',125,119,12.13,'5320','48824',186,1789);
INSERT INTO "communes" VALUES('07','Saint-Jeure-d''Andaure','15',97,96,13.28,'2357','50051',528,1124);
INSERT INTO "communes" VALUES('07','Andance','22',1129,985,6.52,'2736','50267',121,363);
INSERT INTO "communes" VALUES('07','Charnas','22',779,511,5.39,'2675','50374',141,398);
INSERT INTO "communes" VALUES('07','Ucel','33',1963,1750,5.54,'2288','49585',197,456);
INSERT INTO "communes" VALUES('07','Prades','23',1152,891,9.79,'2197','49598',243,750);
INSERT INTO "communes" VALUES('07','Coucouron','08',841,713,23.89,'1816','49782',958,1313);
INSERT INTO "communes" VALUES('07','Thueyts','23',1212,1006,21.78,'2094','49640',340,1149);
INSERT INTO "communes" VALUES('07','Beaumont','25',212,173,19.16,'2034','49487',207,1000);
INSERT INTO "communes" VALUES('07','Gilhoc-sur-Ormèze','10',413,388,20.74,'2613','49985',411,846);
INSERT INTO "communes" VALUES('07','Saint-Sernin','03',1580,1146,5.78,'2284','49524',167,365);
INSERT INTO "communes" VALUES('07','Saint-André-de-Cruzières','27',485,415,19.81,'2089','49239',152,431);
INSERT INTO "communes" VALUES('07','Larnas','04',129,88,13.5,'2514','49387',120,364);
INSERT INTO "communes" VALUES('07','Saint-Laurent-du-Pape','31',1571,1298,20.1,'2700','49804',106,535);
INSERT INTO "communes" VALUES('07','Saint-Péray','19',7294,6504,24.05,'2787','49943',107,652);
INSERT INTO "communes" VALUES('07','Sainte-Marguerite-Lafigère','27',79,73,10.07,'1835','49420',255,1000);
INSERT INTO "communes" VALUES('07','Silhac','28',353,301,22.71,'2522','49868',270,880);
INSERT INTO "communes" VALUES('07','Boffres','28',608,508,30.1,'2629','49912',375,872);
INSERT INTO "communes" VALUES('07','Dompnac','25',81,82,16.12,'1964','49516',355,1249);
INSERT INTO "communes" VALUES('07','Veyras','13',1539,1466,7.76,'2472','49704',280,601);
INSERT INTO "communes" VALUES('07','Saint-Pierre-Saint-Jean','27',146,131,23.62,'1967','49397',175,924);
INSERT INTO "communes" VALUES('07','Alboussière','19',938,754,18.39,'2658','49938',234,774);
INSERT INTO "communes" VALUES('07','Flaviac','13',1113,1093,12.98,'2597','49719',125,828);
INSERT INTO "communes" VALUES('07','Saint-Vincent-de-Durfort','13',244,213,12.52,'2564','49784',153,829);
INSERT INTO "communes" VALUES('07','Châteaubourg','19',218,204,4.27,'2786','49997',106,444);
INSERT INTO "communes" VALUES('07','Saint-Pierre-de-Colombier','05',410,382,9.43,'2140','49672',360,1062);
INSERT INTO "communes" VALUES('07','Saint-Alban-en-Montagne','16',78,72,13.94,'1749','49672',951,1329);
INSERT INTO "communes" VALUES('07','Saint-Symphorien-de-Mahun','21',134,131,19.32,'2470','50182',539,1286);
INSERT INTO "communes" VALUES('07','Villeneuve-de-Berg','29',2825,2423,24.61,'2406','49508',208,494);
INSERT INTO "communes" VALUES('07','Talencieux','32',995,772,7.1,'2712','50246',140,403);
INSERT INTO "communes" VALUES('07','Plats','24',793,510,16.25,'2717','50011',178,543);
INSERT INTO "communes" VALUES('07','Colombier-le-Vieux','17',648,551,15.49,'2622','50073',210,486);
INSERT INTO "communes" VALUES('07','Accons','06',428,418,9.87,'2278','49874',476,1201);
INSERT INTO "communes" VALUES('07','Ardoix','21',1082,779,12.15,'2666','50208',147,397);
INSERT INTO "communes" VALUES('07','Saint-Julien-le-Roux','28',92,91,8.64,'2601','49859',316,791);
INSERT INTO "communes" VALUES('07','Boucieu-le-Roi','24',282,259,8.94,'2606','50040',242,623);
INSERT INTO "communes" VALUES('07','Saint-André-Lachamp','09',133,122,17.09,'2030','49450',220,882);
INSERT INTO "communes" VALUES('07','Saint-Jean-le-Centenier','29',673,573,15.16,'2443','49546',256,578);
INSERT INTO "communes" VALUES('07','Creysseilles','13',123,110,10.25,'2453','49728',337,924);
INSERT INTO "communes" VALUES('07','Saint-Georges-les-Bains','31',2046,1715,14.11,'2747','49846',98,527);
INSERT INTO "communes" VALUES('07','Banne','27',687,554,32.68,'2021','49296',133,481);
INSERT INTO "communes" VALUES('07','Le Crestet','10',534,510,9.91,'2576','50016',290,846);
INSERT INTO "communes" VALUES('07','Saint-Genest-Lachamp','06',99,104,23.09,'2319','49830',560,1133);
INSERT INTO "communes" VALUES('07','Darbres','29',244,212,16.52,'2409','49609',337,880);
INSERT INTO "communes" VALUES('07','Laviolle','02',120,130,13.84,'2225','49736',560,1364);
INSERT INTO "communes" VALUES('07','Salelles','27',319,210,5.61,'1962','49371',152,543);
INSERT INTO "communes" VALUES('07','Sainte-Eulalie','05',233,253,22.11,'2059','49789',1156,1534);
INSERT INTO "communes" VALUES('07','Saint-Apollinaire-de-Rias','28',164,119,8.34,'2507','49911',492,834);
INSERT INTO "communes" VALUES('07','Péreyres','05',51,55,12.63,'2130','49752',676,1400);
INSERT INTO "communes" VALUES('07','Châteauneuf-de-Vernoux','28',187,188,6.07,'2565','49910',555,949);
INSERT INTO "communes" VALUES('07','Valvignères','30',445,378,29.78,'2486','49445',136,521);
INSERT INTO "communes" VALUES('07','Borée','18',167,135,27.67,'2115','49887',807,1747);
INSERT INTO "communes" VALUES('07','Saint-Étienne-de-Boulogne','33',365,297,14.97,'2358','49668',387,1019);
INSERT INTO "communes" VALUES('07','Montréal','11',539,463,6.15,'2174','49476',120,371);
INSERT INTO "communes" VALUES('07','Grospierres','09',866,623,27.3,'2169','49334',96,550);
INSERT INTO "communes" VALUES('07','Saint-Sauveur-de-Cruzières','27',529,490,24.84,'2130','49222',118,448);
INSERT INTO "communes" VALUES('07','Saint-Andéol-de-Fourchades','06',54,89,16.47,'2180','49832',727,1486);
INSERT INTO "communes" VALUES('07','Joannas','11',333,304,11.93,'2128','49517',309,1207);
INSERT INTO "communes" VALUES('07','Saint-Symphorien-sous-Chomérac','07',708,682,7.86,'2631','49688',110,394);
INSERT INTO "communes" VALUES('07','Genestelle','02',279,271,21.43,'2285','49687',349,1345);
INSERT INTO "communes" VALUES('07','Beauchastel','31',1666,1567,8.46,'2740','49807',96,560);
INSERT INTO "communes" VALUES('07','Saint-Andéol-de-Berg','29',131,94,15.57,'2434','49474',262,524);
INSERT INTO "communes" VALUES('07','Saint-Martin-de-Valamas','18',1264,1299,19.98,'2258','49930',470,1050);
INSERT INTO "communes" VALUES('07','Saint-Priest','13',1275,1102,19.15,'2455','49685',278,1019);
INSERT INTO "communes" VALUES('07','Saint-Alban-d''Ay','21',1332,1118,23.73,'2557','50209',369,1181);
INSERT INTO "communes" VALUES('07','Vanosc','32',886,767,26.1,'2460','50249',460,1371);
INSERT INTO "communes" VALUES('07','Saint-Sauveur-de-Montagut','20',1139,1257,11.54,'2492','49801',190,757);
INSERT INTO "communes" VALUES('07','Meyras','23',846,774,12.31,'2145','49646',298,880);
INSERT INTO "communes" VALUES('07','Colombier-le-Cardinal','22',278,229,2.5,'2673','50296',311,392);
INSERT INTO "communes" VALUES('07','Satillieu','21',1609,1596,32.82,'2531','50167',433,1225);
INSERT INTO "communes" VALUES('07','Saint-Gineis-en-Coiron','29',102,96,13.2,'2441','49592',386,775);
INSERT INTO "communes" VALUES('07','<NAME>','30',8010,8008,26.59,'2606','49495',55,460);
INSERT INTO "communes" VALUES('07','Usclades-et-Rieutord','12',126,103,12.46,'2024','49751',1112,1445);
INSERT INTO "communes" VALUES('07','Bogy','22',359,263,7.02,'2694','50314',239,403);
INSERT INTO "communes" VALUES('07','Saint-Cirgues-de-Prades','23',128,99,3.48,'2150','49582',319,861);
INSERT INTO "communes" VALUES('07','<NAME>','12',43,43,16.43,'2011','49693',627,1348);
INSERT INTO "communes" VALUES('07','Bidon','04',192,112,28.93,'2443','49295',48,402);
INSERT INTO "communes" VALUES('07','Planzolles','09',137,121,5.41,'2019','49429',260,727);
INSERT INTO "communes" VALUES('07','Saint-Étienne-de-Fontbellon','03',2480,2298,9.51,'2277','49556',167,406);
INSERT INTO "communes" VALUES('07','Saint-Julien-Boutières','18',209,215,11.12,'2239','49971',574,1083);
INSERT INTO "communes" VALUES('07','Saint-Fortunat-sur-Eyrieux','31',727,542,22.07,'2599','49810',115,791);
INSERT INTO "communes" VALUES('07','Mauves','24',1174,1100,7.05,'2770','50043',113,432);
INSERT INTO "communes" VALUES('07','Ozon','24',359,314,8.32,'2740','50184',126,403);
INSERT INTO "communes" VALUES('07','Valgorge','25',472,451,26.36,'1991','49541',419,1482);
INSERT INTO "communes" VALUES('07','Saint-Barthélemy-le-Meil','06',214,223,7.35,'2402','49872',340,800);
INSERT INTO "communes" VALUES('07','Vallon-Pont-d''Arc','26',2328,2027,28.62,'2286','49341',60,434);
INSERT INTO "communes" VALUES('07','Lyas','13',558,516,7.95,'2515','49711',220,803);
INSERT INTO "communes" VALUES('07','Chanéac','18',267,268,15.73,'2203','49926',540,1271);
INSERT INTO "communes" VALUES('07','Saint-Paul-le-Jeune','27',871,763,14.38,'2019','49267',196,451);
INSERT INTO "communes" VALUES('07','Lagorce','26',1002,706,69.49,'2312','49386',96,700);
INSERT INTO "communes" VALUES('07','Intres','18',114,122,10.05,'2251','49981',649,1093);
INSERT INTO "communes" VALUES('07','Saint-Jacques-d''Atticieux','22',255,173,4.97,'2590','50372',331,657);
INSERT INTO "communes" VALUES('07','Mayres','23',267,258,30.07,'1975','49629',499,1533);
INSERT INTO "communes" VALUES('07','Saint-Marcel-d''Ardèche','04',2403,2147,36.12,'2534','49253',49,345);
INSERT INTO "communes" VALUES('07','Limony','22',762,607,7.22,'2690','50391',134,396);
INSERT INTO "communes" VALUES('07','Berrias-et-Casteljau','27',663,566,26.42,'2071','49305',100,262);
INSERT INTO "communes" VALUES('07','Davézieux','01',2950,2629,5.59,'2634','50284',352,458);
INSERT INTO "communes" VALUES('07','Rochessauve','07',397,300,17.62,'2544','49644',219,824);
INSERT INTO "communes" VALUES('07','Vaudevant','17',204,197,12.46,'2536','50115',500,1061);
INSERT INTO "communes" VALUES('07','Lalouvesc','21',460,497,10.53,'2443','50134',716,1256);
INSERT INTO "communes" VALUES('07','Lamastre','10',2480,2465,25.45,'2494','49984',342,860);
INSERT INTO "communes" VALUES('07','Beauvène','20',246,220,11.82,'2415','49863',273,1051);
INSERT INTO "communes" VALUES('07','Dunière-sur-Eyrieux','13',416,324,7.73,'2580','49803',148,622);
INSERT INTO "communes" VALUES('07','Arcens','18',398,451,18.55,'2213','49889',554,1137);
INSERT INTO "communes" VALUES('07','Champis','19',586,437,16.34,'2663','49956',346,652);
INSERT INTO "communes" VALUES('07','Saint-Prix','10',253,250,15.21,'2405','49936',465,1046);
INSERT INTO "communes" VALUES('07','Saint-Basile','10',326,279,17.85,'2483','49951',413,878);
INSERT INTO "communes" VALUES('07','Mazan-l''Abbaye','12',137,163,44.79,'1947','49698',874,1446);
INSERT INTO "communes" VALUES('07','Faugères','09',97,99,5.99,'1999','49417',299,811);
INSERT INTO "communes" VALUES('07','Vernoux-en-Vivarais','28',1886,1722,30.55,'2565','49884',360,949);
INSERT INTO "communes" VALUES('07','Laval-d''Aurelle','16',56,48,8.72,'1805','49517',600,1180);
INSERT INTO "communes" VALUES('07','Tauriers','11',174,166,4.51,'2160','49502',219,503);
INSERT INTO "communes" VALUES('07','Peyraud','22',524,451,5.96,'2723','50337',134,381);
INSERT INTO "communes" VALUES('07','Saint-Pierre-la-Roche','14',52,46,9.92,'2541','49611',280,711);
INSERT INTO "communes" VALUES('07','Saint-Romain-d''Ay','21',1022,776,9.36,'2588','50185',315,586);
INSERT INTO "communes" VALUES('07','Vernon','09',220,203,3.71,'2099','49453',160,471);
INSERT INTO "communes" VALUES('07','Saint-Maurice-en-Chalencon','28',197,181,7.81,'2503','49843',219,727);
INSERT INTO "communes" VALUES('07','Ribes','09',272,284,7.17,'2078','49439',177,680);
INSERT INTO "communes" VALUES('07','Saint-Bauzile','07',270,183,7.05,'2597','49641',220,646);
INSERT INTO "communes" VALUES('07','Uzer','11',435,333,3.51,'2211','49466',130,335);
INSERT INTO "communes" VALUES('07','Vals-les-Bains','33',3649,3544,19.2,'2255','49628',226,967);
INSERT INTO "communes" VALUES('07','Borne','16',40,41,32.01,'1865','49572',750,1506);
INSERT INTO "communes" VALUES('07','Saint-Germain','29',635,503,9.5,'2349','49505',175,438);
INSERT INTO "communes" VALUES('07','Malarce-sur-la-Thines','27',227,258,37.34,'1928','49384',172,1062);
INSERT INTO "communes" VALUES('07','Cros-de-Géorand','12',175,205,43.39,'1988','49770',916,1594);
INSERT INTO "communes" VALUES('07','Viviers','30',3861,3433,34.15,'2614','49425',55,400);
INSERT INTO "communes" VALUES('07','Fons','03',310,263,4.03,'2236','49537',232,492);
INSERT INTO "communes" VALUES('07','Berzème','29',154,135,18.36,'2476','49613',516,839);
INSERT INTO "communes" VALUES('07','Vogüé','29',929,720,11.72,'2309','49501',140,342);
INSERT INTO "communes" VALUES('07','Saint-Remèze','04',882,554,42.69,'2406','49325',40,663);
INSERT INTO "communes" VALUES('07','Saint-Montan','04',1804,1312,33.18,'2543','49377',56,400);
INSERT INTO "communes" VALUES('07','Brossainc','22',217,165,4.38,'2603','50367',363,753);
INSERT INTO "communes" VALUES('07','Préaux','21',643,513,22.33,'2585','50159',353,980);
INSERT INTO "communes" VALUES('07','Issarlès','08',166,166,18.44,'1882','49827',850,1266);
INSERT INTO "communes" VALUES('07','Lafarre','17',37,57,11.33,'2414','50088',540,1183);
INSERT INTO "communes" VALUES('07','<NAME>','16',61,53,16.07,'1788','49667',1056,1463);
INSERT INTO "communes" VALUES('07','Saint-Pierre-sur-Doux','21',105,85,21.19,'2364','50134',660,1325);
INSERT INTO "communes" VALUES('07','Salavas','26',555,506,17.11,'2270','49327',80,522);
INSERT INTO "communes" VALUES('07','Orgnac-l''Aven','26',534,343,21.84,'2330','49229',140,388);
INSERT INTO "communes" VALUES('07','Issamoulenc','20',108,96,15.66,'2377','49758',394,1240);
INSERT INTO "communes" VALUES('07','Dornas','06',286,247,17.63,'2241','49836',584,1201);
INSERT INTO "communes" VALUES('07','Boulieu-lès-Annonay','01',2122,2096,9.45,'2589','50301',358,915);
INSERT INTO "communes" VALUES('07','Ailhon','03',502,337,7.8,'2228','49553',258,544);
INSERT INTO "communes" VALUES('07','Saint-Étienne-de-Valoux','22',298,200,2.36,'2717','50274',155,388);
INSERT INTO "communes" VALUES('07','Chauzon','11',342,257,10.68,'2248','49428',100,326);
INSERT INTO "communes" VALUES('07','Saint-Maurice-d''Ardèche','29',322,241,5.19,'2292','49468',121,300);
INSERT INTO "communes" VALUES('07','Sanilhac','11',396,346,20.95,'2126','49484',185,781);
INSERT INTO "communes" VALUES('07','Quintenas','21',1424,1254,14,'2612','50210',200,435);
INSERT INTO "communes" VALUES('07','<NAME>','06',56,74,10.52,'2188','49819',687,1420);
INSERT INTO "communes" VALUES('07','Monestier','32',51,65,7.41,'2438','50221',617,1388);
INSERT INTO "communes" VALUES('07','<NAME>','12',301,337,32.83,'1980','49832',960,1602);
INSERT INTO "communes" VALUES('07','Saint-Vincent-de-Barrès','14',807,608,19.1,'2636','49623',153,560);
INSERT INTO "communes" VALUES('07','Saint-Cierge-la-Serre','31',259,198,16.2,'2611','49771',179,829);
INSERT INTO "communes" VALUES('07','Sablières','09',142,101,38.98,'1931','49480',314,1261);
INSERT INTO "communes" VALUES('07','Saint-Clair','01',1071,917,5.81,'2604','50309',397,715);
INSERT INTO "communes" VALUES('07','Lanas','29',380,325,9.85,'2292','49479',127,318);
INSERT INTO "communes" VALUES('07','Labatie-d''Andaure','15',203,204,9.93,'2396','50028',473,1003);
INSERT INTO "communes" VALUES('07','Guilherand-Granges','19',11044,10707,6.55,'2820','49927',106,407);
INSERT INTO "communes" VALUES('07','Jaunac','06',143,107,3.92,'2292','49911',440,980);
INSERT INTO "communes" VALUES('07','Saint-Clément','18',110,104,19.55,'2143','49948',697,1313);
INSERT INTO "communes" VALUES('07','Privas','13',8369,9163,12.14,'2514','49706',200,750);
INSERT INTO "communes" VALUES('07','Rosières','09',1145,991,16.29,'2134','49426',120,460);
INSERT INTO "communes" VALUES('07','Burzet','05',455,504,38.06,'2120','49711',465,1393);
INSERT INTO "communes" VALUES('07','<NAME>','23',349,291,31.52,'2067','49588',463,1494);
INSERT INTO "communes" VALUES('07','Barnas','23',229,205,26.51,'2037','49631',431,1494);
INSERT INTO "communes" VALUES('07','Largentière','11',1814,1943,7.22,'2174','49492',147,420);
INSERT INTO "communes" VALUES('07','Gras','04',562,381,56.68,'2448','49382',120,732);
INSERT INTO "communes" VALUES('07','Malbosc','27',151,169,21.43,'1929','49273',210,907);
INSERT INTO "communes" VALUES('07','Lemps','24',769,573,12.18,'2698','50121',117,478);
INSERT INTO "communes" VALUES('07','Nonières','06',213,180,9.34,'2389','49926',379,1060);
INSERT INTO "communes" VALUES('07','Chalencon','28',314,307,9.44,'2486','49864',259,867);
INSERT INTO "communes" VALUES('07','Sampzon','26',228,183,8.39,'2230','49361',84,449);
INSERT INTO "communes" VALUES('07','<NAME>','08',273,253,14.35,'1916','49801',874,1322);
INSERT INTO "communes" VALUES('07','Félines','22',1481,1106,14,'2657','50352',160,705);
INSERT INTO "communes" VALUES('07','Saint-Martial','18',245,271,36.18,'2153','49853',679,1528);
INSERT INTO "communes" VALUES('07','Saint-Maurice-d''Ibie','29',208,160,23.3,'2385','49446',174,490);
INSERT INTO "communes" VALUES('07','Chomérac','07',2849,2448,18.94,'2583','49676',135,620);
INSERT INTO "communes" VALUES('07','Tournon-sur-Rhône','24',10676,9960,21.01,'2773','50075',115,508);
INSERT INTO "communes" VALUES('07','Saint-Andéol-de-Vals','02',542,437,16.65,'2294','49658',304,786);
INSERT INTO "communes" VALUES('07','Saint-Jean-de-Muzols','24',2436,2404,10.68,'2753','50091',109,418);
INSERT INTO "communes" VALUES('07','Joyeuse','09',1657,1487,13.04,'2112','49422',120,323);
INSERT INTO "communes" VALUES('07','<NAME>','07',2828,2706,12.52,'2679','49726',82,385);
INSERT INTO "communes" VALUES('07','Champagne','22',610,488,4.1,'2738','50303',135,361);
INSERT INTO "communes" VALUES('07','Jaujac','23',1198,1048,24.27,'2133','49597',332,1207);
INSERT INTO "communes" VALUES('07','Roiffieux','32',2758,2453,19.52,'2575','50252',240,957);
INSERT INTO "communes" VALUES('07','Labastide-sur-Bésorgues','02',241,176,17.29,'2184','49694',556,1403);
INSERT INTO "communes" VALUES('07','Saint-Félicien','17',1184,1183,21.44,'2545','50096',414,1028);
INSERT INTO "communes" VALUES('07','Saint-Jean-Roure','18',266,207,23.99,'2325','49936',470,1132);
INSERT INTO "communes" VALUES('07','Ruoms','26',2253,2130,12.14,'2228','49392',80,252);
INSERT INTO "communes" VALUES('07','Saint-Pierreville','20',543,504,20.56,'2389','49795',398,1005);
INSERT INTO "communes" VALUES('07','Astet','23',41,51,34.45,'1876','49664',746,1544);
INSERT INTO "communes" VALUES('07','Balazuc','26',341,337,18.9,'2262','49454',113,379);
INSERT INTO "communes" VALUES('07','Mirabel','29',444,313,19.9,'2401','49565',210,685);
INSERT INTO "communes" VALUES('07','Saint-Laurent-sous-Coiron','29',110,133,15.58,'2384','49597',355,1019);
INSERT INTO "communes" VALUES('07','Saint-Étienne-de-Lugdarès','16',445,458,50.34,'1799','49613',969,1485);
INSERT INTO "communes" VALUES('07','Devesset','15',287,273,29.24,'2280','50075',669,1212);
INSERT INTO "communes" VALUES('07','Laveyrune','16',128,126,13.44,'1732','49591',974,1365);
INSERT INTO "communes" VALUES('07','Arlebosc','17',348,321,12.35,'2572','50040',265,1028);
INSERT INTO "communes" VALUES('07','Saint-Mélany','25',128,118,10.64,'1980','49478',275,920);
INSERT INTO "communes" VALUES('07','Désaignes','10',1193,1105,50.72,'2423','49994',380,1170);
INSERT INTO "communes" VALUES('07','Prunet','11',137,104,8.81,'2138','49553',376,1193);
INSERT INTO "communes" VALUES('07','Saint-Agrève','15',2534,2686,48.56,'2288','50011',590,1183);
INSERT INTO "communes" VALUES('07','Villevocance','32',1255,1089,9.38,'2502','50250',380,912);
INSERT INTO "communes" VALUES('07','<NAME>','18',59,57,13.86,'2116','49907',787,1726);
INSERT INTO "communes" VALUES('07','Saint-Jean-Chambre','28',253,249,15.26,'2476','49893',388,907);
INSERT INTO "communes" VALUES('07','Mariac','06',660,741,16.39,'2253','49868',508,1075);
INSERT INTO "communes" VALUES('07','Juvinas','02',169,149,8.43,'2188','49678',400,1062);
INSERT INTO "communes" VALUES('07','Payzac','09',525,389,13.7,'2018','49393',188,619);
INSERT INTO "communes" VALUES('07','Lachapelle-sous-Aubenas','03',1463,1264,10.12,'2253','49516',178,449);
INSERT INTO "communes" VALUES('07','Lablachère','09',1860,1517,26.38,'2086','49404',160,451);
INSERT INTO "communes" VALUES('07','Rompon','31',979,863,22.03,'2652','49735',85,510);
INSERT INTO "communes" VALUES('07','Rochemaure','14',2153,1867,24.33,'2630','49542',55,682);
INSERT INTO "communes" VALUES('07','Laboule','25',147,112,17.45,'2032','49542',393,1410);
INSERT INTO "communes" VALUES('07','Chambonas','27',635,556,12.08,'1991','49352',121,409);
INSERT INTO "communes" VALUES('07','Vesseaux','33',1643,1277,18.71,'2337','49613',219,702);
INSERT INTO "communes" VALUES('07','Cruas','14',2740,2405,15.45,'2696','49619',72,480);
INSERT INTO "communes" VALUES('07','Rocles','11',241,208,16.51,'2088','49514',270,1207);
INSERT INTO "communes" VALUES('07','Saint-Lager-Bressac','07',865,665,15.37,'2638','49658',130,553);
INSERT INTO "communes" VALUES('07','Saint-Thomé','30',400,358,19.65,'2544','49445',93,380);
INSERT INTO "communes" VALUES('07','Pont-de-Labeaume','23',568,485,4.66,'2169','49629',256,586);
INSERT INTO "communes" VALUES('07','Saint-Julien-en-Saint-Alban','07',1344,1021,10.39,'2623','49727',98,697);
INSERT INTO "communes" VALUES('07','Vans','27',2816,2668,31.09,'1995','49339',126,948);
INSERT INTO "communes" VALUES('07','Pailharès','17',284,288,19.69,'2477','50087',496,1184);
INSERT INTO "communes" VALUES('07','Coux','13',1679,1466,12.02,'2537','49704',170,807);
INSERT INTO "communes" VALUES('07','Meysse','14',1380,1109,19.18,'2651','49566',66,680);
INSERT INTO "communes" VALUES('07','Saint-Didier-sous-Aubenas','03',814,730,2.76,'2310','49563',175,324);
INSERT INTO "communes" VALUES('07','Chirols','23',256,257,6.91,'2167','49651',320,969);
INSERT INTO "communes" VALUES('07','Sarras','24',2067,1829,11.65,'2735','50208',121,402);
INSERT INTO "communes" VALUES('07','Saint-Joseph-des-Bancs','02',187,186,12.89,'2306','49708',547,1294);
INSERT INTO "communes" VALUES('07','Saint-Michel-de-Chabrillanoux','31',364,272,12.14,'2518','49822',183,674);
INSERT INTO "communes" VALUES('07','Lavillatte','08',71,87,18.6,'1796','49716',1060,1405);
INSERT INTO "communes" VALUES('07','Sagnes-et-Goudoulet','05',130,131,25.02,'2099','49767',1080,1527);
INSERT INTO "communes" VALUES('07','Issanlas','08',117,129,28.4,'1861','49739',1119,1374);
INSERT INTO "communes" VALUES('07','Saint-Privat','33',1597,1429,6.13,'2309','49587',177,409);
INSERT INTO "communes" VALUES('07','Annonay','99',16660,17517,21.2,'2593','50267',270,746);
INSERT INTO "communes" VALUES('07','Pourchères','13',140,118,7.64,'2411','49719',428,1041);
INSERT INTO "communes" VALUES('07','Saint-Martin-d''Ardèche','04',906,642,5.53,'2477','49226',41,210);
INSERT INTO "communes" VALUES('07','Saint-Pons','29',264,203,16.5,'2489','49549',214,683);
INSERT INTO "communes" VALUES('07','Vion','24',924,753,6.21,'2745','50123',115,446);
INSERT INTO "communes" VALUES('07','Ollières-sur-Eyrieux','13',935,797,7.58,'2538','49784',157,600);
INSERT INTO "communes" VALUES('07','Saint-Barthélemy-Grozon','10',497,468,19.4,'2549','49960',479,949);
INSERT INTO "communes" VALUES('07','Rochecolombe','29',229,170,21.5,'2332','49464',159,440);
INSERT INTO "communes" VALUES('07','Montselgues','25',91,76,35.87,'1854','49470',355,1229);
INSERT INTO "communes" VALUES('07','Labastide-de-Virac','26',232,218,23.32,'2296','49278',40,408);
INSERT INTO "communes" VALUES('07','Savas','22',817,694,12.44,'2617','50330',448,738);
INSERT INTO "communes" VALUES('07','Beaume','09',603,498,17.76,'2189','49388',99,265);
INSERT INTO "communes" VALUES('07','Mercuer','03',1165,1012,7.57,'2246','49590',257,535);
INSERT INTO "communes" VALUES('07','Pranles','13',468,409,29.49,'2488','49747',226,815);
INSERT INTO "communes" VALUES('07','Gravières','27',411,370,18.52,'1950','49357',159,955);
INSERT INTO "communes" VALUES('07','Saint-Marcel-lès-Annonay','01',1366,1185,16.61,'2544','50318',411,860);
INSERT INTO "communes" VALUES('07','Bourg-Saint-Andéol','04',7264,7798,43.74,'2564','49304',48,415);
INSERT INTO "communes" VALUES('07','Chazeaux','11',107,104,4.62,'2189','49550',289,830);
INSERT INTO "communes" VALUES('07','Arras-sur-Rhône','24',527,417,5.89,'2745','50158',117,388);
INSERT INTO "communes" VALUES('07','Vinezac','11',1245,991,10.91,'2210','49487',159,450);
INSERT INTO "communes" VALUES('07','Saint-Romain-de-Lerps','19',734,540,14.14,'2733','49976',200,650);
INSERT INTO "communes" VALUES('07','Gilhac-et-Bruzac','31',157,115,30.94,'2658','49844',160,786);
INSERT INTO "communes" VALUES('07','Montpezat-sous-Bauzon','12',807,634,27.23,'2078','49680',430,1464);
INSERT INTO "communes" VALUES('07','Étables','24',801,553,15.7,'2654','50112',178,563);
INSERT INTO "communes" VALUES('07','Empurany','10',544,492,18.94,'2525','50027',310,1028);
INSERT INTO "communes" VALUES('07','Saint-Julien-du-Serre','33',823,711,9.78,'2305','49619',224,482);
INSERT INTO "communes" VALUES('07','Lachamp-Raphaël','02',84,117,14.09,'2171','49789',1058,1445);
INSERT INTO "communes" VALUES('07','Saint-Julien-du-Gua','20',160,174,16.96,'2341','49742',430,1329);
INSERT INTO "communes" VALUES('07','Antraigues-sur-Volane','02',544,498,13.46,'2246','49687',372,1344);
INSERT INTO "communes" VALUES('07','Saint-Martin-sur-Lavezon','14',448,395,23.54,'2572','49597',119,702);
INSERT INTO "communes" VALUES('07','Saint-André-en-Vivarais','15',227,235,20.48,'2305','50135',687,1205);
INSERT INTO "communes" VALUES('07','Saint-Étienne-de-Serre','20',208,175,16.52,'2449','49779',271,974);
INSERT INTO "communes" VALUES('07','Rochepaule','15',285,341,33.34,'2355','50085',553,1191);
INSERT INTO "communes" VALUES('07','Saint-Alban-Auriolles','09',1005,736,17.57,'2180','49362',92,254);
INSERT INTO "communes" VALUES('07','Gourdon','13',97,79,12.84,'2346','49701',514,1068);
INSERT INTO "communes" VALUES('07','Cheminas','24',297,226,9.39,'2683','50138',352,563);
INSERT INTO "communes" VALUES('07','Glun','24',686,502,7.56,'2780','50018',105,472);
INSERT INTO "communes" VALUES('07','Saint-Cyr','01',1288,996,8.12,'2660','50280',304,410);
INSERT INTO "communes" VALUES('07','Saint-Cirgues-en-Montagne','12',246,285,21.78,'1950','49729',919,1464);
INSERT INTO "communes" VALUES('07','Saint-Barthélemy-le-Plain','24',795,663,19.08,'2678','50060',137,532);
INSERT INTO "communes" VALUES('07','Alba-la-Romaine','30',1407,1128,30.46,'2513','49506',135,554);
INSERT INTO "communes" VALUES('07','Sceautres','14',146,104,14.64,'2524','49573',292,703);
INSERT INTO "communes" VALUES('07','Saint-Cierge-sous-le-Cheylard','06',191,211,5.99,'2345','49914',390,967);
INSERT INTO "communes" VALUES('07','Lalevade-d''Ardèche','23',1177,1031,2.27,'2207','49609',255,490);
INSERT INTO "communes" VALUES('07','Saint-Julien-Vocance','32',244,241,26.42,'2407','50195',569,1388);
INSERT INTO "communes" VALUES('07','Peaugres','22',1959,1681,14.44,'2658','50318',300,627);
INSERT INTO "communes" VALUES('07','<NAME>','06',3218,3524,13.45,'2317','49895',404,927);
INSERT INTO "communes" VALUES('07','Saint-Julien-Labrousse','06',356,319,16.47,'2413','49909',315,899);
INSERT INTO "communes" VALUES('07','Laurac-en-Vivarais','11',895,790,8.97,'2171','49454',149,373);
INSERT INTO "communes" VALUES('07','Colombier-le-Jeune','24',563,505,15.14,'2629','50011',277,762);
INSERT INTO "communes" VALUES('07','Saint-Michel-d''Aurance','06',255,222,8.14,'2360','49891',370,922);
INSERT INTO "communes" VALUES('07','Vocance','32',595,618,17.17,'2462','50224',442,1191);
INSERT INTO "communes" VALUES('07','Gluiras','20',375,351,25.1,'2429','49830',219,1046);
INSERT INTO "communes" VALUES('07','Toulaud','19',1685,1502,34.73,'2755','49886',150,631);
INSERT INTO "communes" VALUES('07','Bessas','26',202,169,17.18,'2184','49272',153,504);
INSERT INTO "communes" VALUES('07','Eclassan','24',933,702,15.93,'2694','50176',273,530);
INSERT INTO "communes" VALUES('07','Rocher','11',279,227,3.09,'2165','49530',300,741);
INSERT INTO "communes" VALUES('07','Mézilhac','02',102,108,26.66,'2239','49787',717,1445);
INSERT INTO "communes" VALUES('07','Alissas','13',1371,1027,12.43,'2549','49681',196,789);
INSERT INTO "communes" VALUES('07','Serrières','22',1132,1077,3.96,'2696','50353',135,371);
INSERT INTO "communes" VALUES('07','Assions','27',654,533,14.88,'2041','49357',122,329);
INSERT INTO "communes" VALUES('07','Saint-Jeure-d''Ay','21',486,380,6.9,'2633','50163',353,552);
INSERT INTO "communes" VALUES('07','Vagnas','26',524,433,23.83,'2256','49273',151,550);
INSERT INTO "communes" VALUES('07','Saint-Désirat','22',809,709,7.31,'2720','50285',136,382);
INSERT INTO "communes" VALUES('07','Saint-Michel-de-Boulogne','33',146,130,7.53,'2330','49662',350,775);
INSERT INTO "communes" VALUES('07','Fabras','23',383,276,7.52,'2170','49611',279,607);
INSERT INTO "communes" VALUES('07','Lachapelle-sous-Chanéac','18',186,174,8.94,'2216','49942',594,1121);
INSERT INTO "communes" VALUES('07','Asperjoc','02',393,361,8.47,'2247','49650',278,879);
INSERT INTO "communes" VALUES('07','Albon-d''Ardèche','20',156,165,9.11,'2324','49801',567,1112);
INSERT INTO "communes" VALUES('07','Saint-Christol','06',111,92,14.63,'2338','49853',550,1201);
INSERT INTO "communes" VALUES('07','<NAME>','31',5064,5165,9.7,'2714','49777',85,405);
INSERT INTO "communes" VALUES('07','Baix','07',1034,823,17.39,'2697','49680',76,457);
INSERT INTO "communes" VALUES('07','Lentillères','03',217,175,8.72,'2197','49571',298,864);
INSERT INTO "communes" VALUES('07','Lespéron','08',320,277,24.99,'1735','49701',910,1355);
INSERT INTO "communes" VALUES('07','Lavilledieu','29',1923,1429,14.65,'2352','49528',196,371);
INSERT INTO "communes" VALUES('07','Aizac','02',154,169,6.65,'2213','49683',420,1200);
INSERT INTO "communes" VALUES('07','Thorrenc','22',235,185,3.67,'2695','50263',197,400);
INSERT INTO "communes" VALUES('07','Vinzieux','22',395,262,6.87,'2627','50364',317,753);
INSERT INTO "communes" VALUES('07','Lussas','29',1001,777,16.45,'2373','49569',199,632);
INSERT INTO "communes" VALUES('07','Ajoux','13',95,89,12.2,'2396','49730',393,1068);
INSERT INTO "communes" VALUES('07','Bozas','17',246,247,12.5,'2571','50061',277,808);
INSERT INTO "communes" VALUES('07','Marcols-les-Eaux','20',336,301,16,'2292','49795',671,1345);
INSERT INTO "communes" VALUES('07','Soyons','19',1921,1719,7.9,'2793','49877',104,280);
INSERT INTO "communes" VALUES('07','Lachapelle-Graillouse','08',257,239,20.48,'1871','49792',868,1233);
INSERT INTO "communes" VALUES('07','Saint-Sylvestre','19',497,350,15.16,'2680','49989',305,627);
INSERT INTO "communes" VALUES('07','Sécheras','24',489,312,7.26,'2704','50144',170,449);
INSERT INTO "communes" VALUES('07','Lanarce','08',164,198,22.37,'1852','49698',1094,1412);
INSERT INTO "communes" VALUES('07','Mars','15',276,216,18.69,'2205','50024',759,1138);
INSERT INTO "communes" VALUES('07','Freyssenet','13',53,49,9.54,'2450','49647',356,909);
INSERT INTO "communes" VALUES('07','Loubaresse','25',32,32,8.99,'1904','49555',871,1433);
INSERT INTO "communes" VALUES('07','Charmes-sur-Rhône','31',2419,2070,5.95,'2776','49849',106,223);
INSERT INTO "communes" VALUES('07','Chassiers','11',1006,865,12.26,'2178','49501',193,603);
INSERT INTO "communes" VALUES('07','Labégude','33',1360,1337,3.12,'2259','49606',226,520);
INSERT INTO "communes" VALUES('07','Vernosc-lès-Annonay','32',2287,1676,16.08,'2641','50240',182,427);
INSERT INTO "communes" VALUES('07','Pradons','26',426,296,7.98,'2247','49416',108,365);
INSERT INTO "communes" VALUES('07','Aubenas','03',11323,11013,14.32,'2282','49578',170,421);
INSERT INTO "communes" VALUES('07','Aubignas','30',418,337,15.42,'2553','49543',160,664);
INSERT INTO "communes" VALUES('07','Saint-Laurent-les-Bains','16',149,182,26.76,'1815','49563',623,1379);
INSERT INTO "communes" VALUES('07','Chandolas','09',469,342,11.63,'2129','49337',105,242);
INSERT INTO "communes" VALUES('07','Beaulieu','09',455,400,25.47,'2108','49290',108,471);
INSERT INTO "communes" VALUES('07','Saint-Just-d''Ardèche','04',1601,1162,10.44,'2527','49227',38,115);
INSERT INTO "communes" VALUES('07','Nozières','10',271,258,21.79,'2452','50032',471,1061);
INSERT INTO "communes" VALUES('07','Saint-Victor','17',949,828,31.88,'2595','50112',240,881);
INSERT INTO "communes" VALUES('07','Saint-Genest-de-Beauzon','09',265,224,5.31,'2056','49381',176,356);
INSERT INTO "communes" VALUES('07','Cellier-du-Luc','16',109,99,14.73,'1738','49644',932,1202);
INSERT INTO "communes" VALUES('07','Cornas','19',2253,2082,8.33,'2791','49960',98,492);
INSERT INTO "communes" VALUES('08','Ayvelles','09',927,768,5.45,'2689','55246',143,210);
INSERT INTO "communes" VALUES('08','Nouart','03',143,140,17.73,'3015','54933',184,307);
INSERT INTO "communes" VALUES('08','Bayonville','03',103,107,16.19,'2966','54885',181,305);
INSERT INTO "communes" VALUES('08','Tremblois-lès-Rocroi','24',160,167,1.64,'2399','55387',238,293);
INSERT INTO "communes" VALUES('08','Hannogne-Saint-Martin','09',466,473,4.71,'2772','55192',147,296);
INSERT INTO "communes" VALUES('08','Lametz','30',80,77,9.46,'2615','55034',130,212);
INSERT INTO "communes" VALUES('08','Sault-lès-Rethel','23',1882,1921,6.45,'2254','54995',68,146);
INSERT INTO "communes" VALUES('08','Remilly-Aillicourt','21',804,779,13.26,'2953','55168',153,302);
INSERT INTO "communes" VALUES('08','Champlin','25',77,80,5.9,'2216','55378',208,277);
INSERT INTO "communes" VALUES('08','Brognon','29',150,126,7.38,'2168','55477',251,323);
INSERT INTO "communes" VALUES('08','This','15',213,180,4.46,'2525','55277',159,296);
INSERT INTO "communes" VALUES('08','Anchamps','35',231,194,2.26,'2598','55479',127,345);
INSERT INTO "communes" VALUES('08','Cernion','25',57,45,6.58,'2327','55331',211,294);
INSERT INTO "communes" VALUES('08','Tannay','08',159,149,14.04,'2773','55030',160,276);
INSERT INTO "communes" VALUES('08','Rancennes','11',721,828,6.5,'2757','55686',102,236);
INSERT INTO "communes" VALUES('08','Thugny-Trugny','23',232,235,13.41,'2319','54983',72,142);
INSERT INTO "communes" VALUES('08','Lançon','12',38,40,8.24,'2819','54750',107,218);
INSERT INTO "communes" VALUES('08','Ham-sur-Meuse','11',252,246,6.19,'2716','55679',102,348);
INSERT INTO "communes" VALUES('08','Coucy','23',530,488,6.39,'2357','55007',74,100);
INSERT INTO "communes" VALUES('08','Haudrecy','22',297,265,3.36,'2532','55319',147,290);
INSERT INTO "communes" VALUES('08','Fossé','03',55,76,8.94,'2965','54940',208,329);
INSERT INTO "communes" VALUES('08','Fléville','12',98,102,7.89,'2927','54784',125,256);
INSERT INTO "communes" VALUES('08','Montgon','08',69,97,8.2,'2642','55006',112,210);
INSERT INTO "communes" VALUES('08','Logny-Bogny','25',192,143,10.66,'2289','55308',187,277);
INSERT INTO "communes" VALUES('08','Margny','04',178,173,6.68,'3350','55128',187,310);
INSERT INTO "communes" VALUES('08','Donchery','36',2369,2393,27.36,'2820','55218',147,408);
INSERT INTO "communes" VALUES('08','Marquigny','30',73,65,6.65,'2634','55057',162,257);
INSERT INTO "communes" VALUES('08','Chatel-Chéhéry','12',161,140,16.08,'2909','54759',129,246);
INSERT INTO "communes" VALUES('08','Rouvroy-sur-Audry','25',570,539,9.15,'2397','55320',162,294);
INSERT INTO "communes" VALUES('08','Touligny','20',75,88,7.28,'2533','55189',167,274);
INSERT INTO "communes" VALUES('08','Auvillers-les-Forges','29',897,833,8.19,'2246','55403',235,296);
INSERT INTO "communes" VALUES('08','Tourcelles-Chaumont','14',95,73,4.81,'2519','54890',98,181);
INSERT INTO "communes" VALUES('08','Terron-sur-Aisne','31',116,114,6.5,'2622','54948',87,204);
INSERT INTO "communes" VALUES('08','Artaise-le-Vivier','21',59,55,8.47,'2837','55074',169,252);
INSERT INTO "communes" VALUES('08','Joigny-sur-Meuse','34',700,634,3.86,'2693','55375',132,327);
INSERT INTO "communes" VALUES('08','Chéhéry','36',132,141,4.92,'2818','55160',152,312);
INSERT INTO "communes" VALUES('08','Exermont','12',36,32,18.29,'2966','54772',141,262);
INSERT INTO "communes" VALUES('08','Doumely-Bégny','07',95,86,7.8,'2182','55143',88,172);
INSERT INTO "communes" VALUES('08','Bergnicourt','01',203,153,8.16,'2132','54910',72,136);
INSERT INTO "communes" VALUES('08','Vaux-lès-Mouzon','18',84,78,7.64,'3103','55119',161,349);
INSERT INTO "communes" VALUES('08','Verpel','03',81,88,15.25,'2885','54871',132,211);
INSERT INTO "communes" VALUES('08','Angecourt','21',371,350,3.73,'2936','55149',161,307);
INSERT INTO "communes" VALUES('08','Ville-sur-Lumes','37',495,374,3.1,'2726','55281',180,273);
INSERT INTO "communes" VALUES('08','Ménil-Lépinois','13',127,92,18.01,'2165','54865',94,159);
INSERT INTO "communes" VALUES('08','Leffincourt','14',177,149,18.02,'2455','54875',113,183);
INSERT INTO "communes" VALUES('08','Antheny','25',103,108,10.14,'2196','55387',193,264);
INSERT INTO "communes" VALUES('08','Fépin','10',280,245,5.79,'2658','55577',111,382);
INSERT INTO "communes" VALUES('08','Sévigny-la-Forêt','24',259,200,26.13,'2396','55430',243,377);
INSERT INTO "communes" VALUES('08','Thilay','16',1053,1094,36.04,'2745','55414',147,492);
INSERT INTO "communes" VALUES('08','Marvaux-Vieux','17',70,73,11.61,'2604','54767',106,196);
INSERT INTO "communes" VALUES('08','Aubrives','11',868,1026,10.73,'2695','55671',104,355);
INSERT INTO "communes" VALUES('08','<NAME>','21',110,133,13.97,'2915','55064',182,275);
INSERT INTO "communes" VALUES('08','Belleville-et-Châtillon-sur-Bar','08',316,327,21.21,'2768','54940',162,243);
INSERT INTO "communes" VALUES('08','Remaucourt','07',154,135,10.8,'2110','55120',96,198);
INSERT INTO "communes" VALUES('08','Mogues','04',154,137,8.26,'3269','55168',225,358);
INSERT INTO "communes" VALUES('08','Falaise','31',346,329,9.52,'2659','54865',93,196);
INSERT INTO "communes" VALUES('08','Pouru-Saint-Remy','27',1263,1167,10.19,'3052','55199',155,237);
INSERT INTO "communes" VALUES('08','Contreuve','31',65,73,11.02,'2542','54847',102,183);
INSERT INTO "communes" VALUES('08','Villers-le-Tourneur','19',178,161,7.85,'2479','55141',163,276);
INSERT INTO "communes" VALUES('08','Novy-Chevrières','23',652,549,17.2,'2341','55043',78,112);
INSERT INTO "communes" VALUES('08','Wagnon','19',113,96,15.28,'2325','55144',113,271);
INSERT INTO "communes" VALUES('08','Montcy-Notre-Dame','05',1562,1483,6.13,'2674','55305',133,276);
INSERT INTO "communes" VALUES('08','Voncq','02',227,238,19.87,'2587','54968',82,194);
INSERT INTO "communes" VALUES('08','Séchault','17',67,59,10.86,'2668','54739',105,191);
INSERT INTO "communes" VALUES('08','Écordal','30',293,269,12.89,'2493','55031',89,172);
INSERT INTO "communes" VALUES('08','<NAME>','26',160,156,7.52,'2976','55268',248,428);
INSERT INTO "communes" VALUES('08','Givry','02',243,218,11.93,'2443','54989',77,107);
INSERT INTO "communes" VALUES('08','Villers-devant-Mouzon','18',105,116,4.53,'2993','55138',152,296);
INSERT INTO "communes" VALUES('08','Lépron-les-Vallées','25',91,59,6.42,'2351','55290',194,305);
INSERT INTO "communes" VALUES('08','Authe','08',92,94,9.47,'2825','54955',164,225);
INSERT INTO "communes" VALUES('08','Aure','17',49,46,12.72,'2554','54749',118,191);
INSERT INTO "communes" VALUES('08','Bazeilles','27',1978,1891,9.38,'2933','55197',152,238);
INSERT INTO "communes" VALUES('08','Chaumont-Porcien','07',449,472,35.97,'2123','55166',97,237);
INSERT INTO "communes" VALUES('08','Barbaise','28',105,106,6.68,'2492','55183',188,282);
INSERT INTO "communes" VALUES('08','Boult-aux-Bois','08',146,148,15.2,'2784','54923',166,238);
INSERT INTO "communes" VALUES('08','Houldizy','32',342,331,4.62,'2592','55345',165,309);
INSERT INTO "communes" VALUES('08','Dom-le-Mesnil','09',1074,1047,7.99,'2745','55211',146,297);
INSERT INTO "communes" VALUES('08','Murtin-et-Bogny','22',180,143,7.11,'2445','55352',155,241);
INSERT INTO "communes" VALUES('08','Corny-Machéroménil','19',175,124,10.54,'2341','55087',83,161);
INSERT INTO "communes" VALUES('08','Remilly-les-Pothées','22',253,216,9.92,'2438','55312',152,298);
INSERT INTO "communes" VALUES('08','Vaux-en-Dieulet','03',69,69,11.03,'2951','54981',177,329);
INSERT INTO "communes" VALUES('08','Belval','15',245,197,4.94,'2553','55307',145,215);
INSERT INTO "communes" VALUES('08','Neuville-Day','30',171,154,7.68,'2613','54995',95,191);
INSERT INTO "communes" VALUES('08','Sorcy-Bauthémont','19',143,139,11.14,'2444','55042',82,151);
INSERT INTO "communes" VALUES('08','Montcheutin','17',146,118,9.64,'2760','54768',106,175);
INSERT INTO "communes" VALUES('08','Mazerny','20',120,112,12.3,'2530','55122',171,294);
INSERT INTO "communes" VALUES('08','Grandham','12',57,49,5.91,'2804','54778',107,178);
INSERT INTO "communes" VALUES('08','Linay','04',243,210,7.28,'3208','55128',164,272);
INSERT INTO "communes" VALUES('08','Wignicourt','19',67,61,4.49,'2491','55087',132,231);
INSERT INTO "communes" VALUES('08','Regniowez','24',387,395,18.27,'2326','55487',302,359);
INSERT INTO "communes" VALUES('08','Chesnois-Auboncourt','19',173,166,4.71,'2480','55076',109,186);
INSERT INTO "communes" VALUES('08','<NAME>','30',75,92,3.64,'2594','55051',172,216);
INSERT INTO "communes" VALUES('08','Guincourt','30',96,95,5.31,'2544','55064',127,210);
INSERT INTO "communes" VALUES('08','Cheveuges','36',439,419,8.9,'2829','55184',153,336);
INSERT INTO "communes" VALUES('08','Banogne-Recouvrance','06',160,139,19.01,'1990','55080',80,162);
INSERT INTO "communes" VALUES('08','Herpy-l''Arlésienne','06',207,155,10.64,'2080','55026',62,145);
INSERT INTO "communes" VALUES('08','Amagne','23',704,705,9.32,'2405','55019',75,100);
INSERT INTO "communes" VALUES('08','Auge','29',52,69,4.5,'2148','55401',199,262);
INSERT INTO "communes" VALUES('08','Brieulles-sur-Bar','08',199,203,13.23,'2797','54975',162,246);
INSERT INTO "communes" VALUES('08','Maisoncelle-et-Villers','21',73,67,11.08,'2859','55108',189,307);
INSERT INTO "communes" VALUES('08','Chardeny','14',43,42,5.02,'2516','54909',101,175);
INSERT INTO "communes" VALUES('08','Challerange','17',465,462,11.13,'2676','54790',100,129);
INSERT INTO "communes" VALUES('08','Houdilcourt','01',146,140,11.3,'1988','54917',61,111);
INSERT INTO "communes" VALUES('08','<NAME>','25',85,71,11.01,'2184','55292',188,273);
INSERT INTO "communes" VALUES('08','Saulces-Champenoises','02',206,197,22.64,'2410','54944',80,164);
INSERT INTO "communes" VALUES('08','Bulson','21',139,123,6.47,'2866','55142',184,322);
INSERT INTO "communes" VALUES('08','Alincourt','13',142,78,8.62,'2231','54893',83,141);
INSERT INTO "communes" VALUES('08','Villers-sur-le-Mont','09',95,77,5.3,'2603','55183',195,312);
INSERT INTO "communes" VALUES('08','Champigneulle','12',58,64,7.73,'2877','54835',117,201);
INSERT INTO "communes" VALUES('08','Neufmaison','28',58,61,7.06,'2414','55290',197,319);
INSERT INTO "communes" VALUES('08','Sainte-Marie','31',88,67,5.57,'2590','54858',96,124);
INSERT INTO "communes" VALUES('08','Viel-Saint-Remy','19',241,243,22.63,'2407','55144',127,270);
INSERT INTO "communes" VALUES('08','Vireux-Molhain','11',1680,1836,8.29,'2653','55648',107,306);
INSERT INTO "communes" VALUES('08','Sapogne-et-Feuchères','09',516,504,10.71,'2732','55178',149,300);
INSERT INTO "communes" VALUES('08','Blanzy-la-Salonnaise','01',335,283,12.13,'2039','54987',61,141);
INSERT INTO "communes" VALUES('08','Avançon','06',328,300,20.99,'2121','54973',83,146);
INSERT INTO "communes" VALUES('08','Mont-Laurent','23',69,75,6.83,'2382','54967',80,164);
INSERT INTO "communes" VALUES('08','Brévilly','18',397,381,7.3,'3047','55182',156,257);
INSERT INTO "communes" VALUES('08','Wadelincourt','36',524,528,4.22,'2894','55206',152,315);
INSERT INTO "communes" VALUES('08','Manre','17',106,108,18.5,'2587','54736',111,192);
INSERT INTO "communes" VALUES('08','Tournes','22',1014,1075,8.26,'2556','55330',146,245);
INSERT INTO "communes" VALUES('08','Fraillicourt','07',207,204,14.39,'2029','55185',131,213);
INSERT INTO "communes" VALUES('08','Poix-Terron','20',852,806,14.26,'2559','55166',171,299);
INSERT INTO "communes" VALUES('08','Seraincourt','06',242,214,16.2,'2072','55123',95,194);
INSERT INTO "communes" VALUES('08','Puilly-et-Charbeaux','04',258,245,18.29,'3260','55145',195,326);
INSERT INTO "communes" VALUES('08','Sery','19',344,287,18.57,'2236','55093',76,179);
INSERT INTO "communes" VALUES('08','Autry','17',140,127,16.34,'2778','54743',110,168);
INSERT INTO "communes" VALUES('08','Petites-Armoises','08',63,58,4.37,'2766','55006',162,223);
INSERT INTO "communes" VALUES('08','Machault','14',505,437,16.58,'2403','54839',114,171);
INSERT INTO "communes" VALUES('08','<NAME>','08',988,939,23.87,'2697','55015',143,227);
INSERT INTO "communes" VALUES('08','Haybes','10',2051,2090,28.05,'2632','55566',110,488);
INSERT INTO "communes" VALUES('08','Alland''Huy-et-Sausseuil','02',253,215,8.71,'2466','55014',77,121);
INSERT INTO "communes" VALUES('08','Signy-l''Abbaye','28',1358,1341,62.03,'2315','55220',120,297);
INSERT INTO "communes" VALUES('08','Saint-Étienne-à-Arnes','14',219,166,29.56,'2396','54789',114,208);
INSERT INTO "communes" VALUES('08','Grandes-Armoises','08',54,41,4.47,'2841','55034',192,300);
INSERT INTO "communes" VALUES('08','Ville-sur-Retourne','13',76,89,9.56,'2344','54885',94,149);
INSERT INTO "communes" VALUES('08','Nouvion-sur-Meuse','09',2289,2192,9.06,'2732','55222',145,250);
INSERT INTO "communes" VALUES('08','Malandry','04',67,60,6.87,'3177','55089',183,338);
INSERT INTO "communes" VALUES('08','Gomont','01',342,318,7.23,'2028','55000',61,136);
INSERT INTO "communes" VALUES('08','Cornay','12',83,86,10.94,'2903','54780',122,246);
INSERT INTO "communes" VALUES('08','Doux','23',71,76,6.52,'2326','55005',72,153);
INSERT INTO "communes" VALUES('08','Omicourt','09',44,34,7.36,'2772','55146',153,300);
INSERT INTO "communes" VALUES('08','Tourteron','30',177,186,8.83,'2556','55044',113,216);
INSERT INTO "communes" VALUES('08','Saint-Pierre-à-Arnes','14',65,69,8.41,'2352','54777',108,157);
INSERT INTO "communes" VALUES('08','Givet','11',6663,7370,18.41,'2764','55709',95,224);
INSERT INTO "communes" VALUES('08','Baâlons','20',213,170,14.72,'2593','55105',173,292);
INSERT INTO "communes" VALUES('08','Clavy-Warby','28',351,350,11.78,'2466','55283',162,307);
INSERT INTO "communes" VALUES('08','Thin-le-Moutier','28',557,497,39.72,'2405','55243',174,312);
INSERT INTO "communes" VALUES('08','Ambly-Fleury','23',133,151,5.88,'2386','54985',77,144);
INSERT INTO "communes" VALUES('08','Chilly','24',162,113,5.89,'2375','55376',201,284);
INSERT INTO "communes" VALUES('08','Arnicourt','23',164,139,8.33,'2236','55061',72,147);
INSERT INTO "communes" VALUES('08','Saint-Menges','36',1058,996,12.21,'2877','55265',147,420);
INSERT INTO "communes" VALUES('08','Issancourt-et-Rumel','37',411,372,5.47,'2762','55283',168,273);
INSERT INTO "communes" VALUES('08','Aire','01',212,205,6.29,'2028','54979',61,125);
INSERT INTO "communes" VALUES('08','Bignicourt','13',65,64,8.62,'2320','54888',93,147);
INSERT INTO "communes" VALUES('08','Rubécourt-et-Lamécourt','27',149,172,4.61,'2984','55211',158,272);
INSERT INTO "communes" VALUES('08','Marcq','12',106,103,10.61,'2878','54800',117,242);
INSERT INTO "communes" VALUES('08','Château-Porcien','06',1401,1286,17.31,'2121','55033',62,144);
INSERT INTO "communes" VALUES('08','Douzy','18',1845,1514,12.76,'3005','55191',153,250);
INSERT INTO "communes" VALUES('08','Buzancy','03',375,410,22.67,'2909','54918',166,291);
INSERT INTO "communes" VALUES('08','Flaignes-Havys','25',114,133,13.7,'2294','55354',203,298);
INSERT INTO "communes" VALUES('08','Saint-Laurent','37',1209,897,4.26,'2705','55293',142,289);
INSERT INTO "communes" VALUES('08','Bertoncourt','23',135,147,6.83,'2294','55040',84,147);
INSERT INTO "communes" VALUES('08','Givonne','26',1134,993,14.04,'2946','55245',176,402);
INSERT INTO "communes" VALUES('08','Villers-devant-le-Thour','01',390,303,16.41,'1944','55008',67,134);
INSERT INTO "communes" VALUES('08','Foisches','11',235,193,4.65,'2714','55696',130,229);
INSERT INTO "communes" VALUES('08','Ham-les-Moines','22',376,358,3.12,'2512','55328',149,168);
INSERT INTO "communes" VALUES('08','Lalobbe','28',185,207,9.96,'2267','55188',112,223);
INSERT INTO "communes" VALUES('08','Oches','03',38,41,6.76,'2877','55005',182,270);
INSERT INTO "communes" VALUES('08','Mont-Saint-Martin','17',84,75,13.95,'2568','54817',106,196);
INSERT INTO "communes" VALUES('08','Osnes','04',236,219,5.89,'3140','55173',159,229);
INSERT INTO "communes" VALUES('08','Quatre-Champs','31',187,189,11.51,'2701','54939',113,231);
INSERT INTO "communes" VALUES('08','L''Échelle','25',138,148,9.96,'2375','55334',168,299);
INSERT INTO "communes" VALUES('08','Prez','25',146,112,12.4,'2238','55333',205,285);
INSERT INTO "communes" VALUES('08','Marlemont','25',147,110,10.06,'2264','55278',188,293);
INSERT INTO "communes" VALUES('08','Brienne-sur-Aisne','01',181,161,12.23,'1907','54926',56,99);
INSERT INTO "communes" VALUES('08','Champigneul-sur-Vence','09',136,105,4.61,'2577','55223',163,293);
INSERT INTO "communes" VALUES('08','Marby','25',66,66,7.35,'2325','55366',214,298);
INSERT INTO "communes" VALUES('08','Thelonne','36',364,260,3.84,'2897','55168',162,307);
INSERT INTO "communes" VALUES('08','Juniville','13',1211,844,26.2,'2273','54886',88,147);
INSERT INTO "communes" VALUES('08','Villers-sur-Bar','36',249,235,5.45,'2792','55200',146,300);
INSERT INTO "communes" VALUES('08','Glaire','26',933,935,6.46,'2865','55234',147,207);
INSERT INTO "communes" VALUES('08','Neuville-lès-This','15',384,354,7.74,'2514','55269',175,313);
INSERT INTO "communes" VALUES('08','Wasigny','19',358,318,9.98,'2244','55148',85,177);
INSERT INTO "communes" VALUES('08','Renwez','22',1745,1428,16.18,'2517','55377',198,339);
INSERT INTO "communes" VALUES('08','Aouste','25',198,208,12.83,'2199','55331',187,269);
INSERT INTO "communes" VALUES('08','Damouzy','32',412,449,8.78,'2599','55331',145,356);
INSERT INTO "communes" VALUES('08','Hierges','11',217,220,4.05,'2670','55672',107,236);
INSERT INTO "communes" VALUES('08','Poilcourt-Sydney','01',180,151,7.88,'1961','54914',59,99);
INSERT INTO "communes" VALUES('08','Givron','07',86,85,7.15,'2170','55165',102,183);
INSERT INTO "communes" VALUES('08','Longwé','31',89,82,10.78,'2725','54878',125,233);
INSERT INTO "communes" VALUES('08','Quilly','14',84,65,5.49,'2514','54898',101,177);
INSERT INTO "communes" VALUES('08','Sapogne-sur-Marche','04',146,130,5.41,'3312','55110',175,302);
INSERT INTO "communes" VALUES('08','Évigny','15',206,194,4.33,'2595','55257',159,265);
INSERT INTO "communes" VALUES('08','Vaux-lès-Rubigny','07',46,57,3.92,'2054','55212',138,236);
INSERT INTO "communes" VALUES('08','Chalandry-Elaire','09',579,524,5.18,'2698','55235',145,209);
INSERT INTO "communes" VALUES('08','Sommerance','12',45,52,5.18,'2944','54810',135,255);
INSERT INTO "communes" VALUES('08','Mesmont','19',101,101,11.32,'2293','55128',90,179);
INSERT INTO "communes" VALUES('08','Guignicourt-sur-Vence','09',295,317,9.44,'2573','55202',162,302);
INSERT INTO "communes" VALUES('08','Monthermé','16',2459,2790,32.33,'2661','55429',127,487);
INSERT INTO "communes" VALUES('08','Villy','04',183,139,7.78,'3210','55104',165,226);
INSERT INTO "communes" VALUES('08','Chevières','12',50,44,6.17,'2847','54815',117,213);
INSERT INTO "communes" VALUES('08','Puiseux','19',108,80,3.41,'2450','55103',153,202);
INSERT INTO "communes" VALUES('08','Nouzonville','34',6318,6873,10.92,'2676','55350',132,361);
INSERT INTO "communes" VALUES('08','Saint-Marceau','09',365,421,4.8,'2649','55233',153,231);
INSERT INTO "communes" VALUES('08','Blagny','04',1197,1259,7.42,'3172','55135',162,280);
INSERT INTO "communes" VALUES('08','Rocquigny','07',717,755,36.85,'2123','55212',128,261);
INSERT INTO "communes" VALUES('08','Saint-Aignan','36',139,150,7.74,'2788','55170',148,268);
INSERT INTO "communes" VALUES('08','Montigny-sur-Vence','20',223,158,8.24,'2534','55163',174,300);
INSERT INTO "communes" VALUES('08','Chémery-sur-Bar','21',436,437,22.87,'2814','55112',153,314);
INSERT INTO "communes" VALUES('08','Taizy','06',108,110,9.11,'2137','55023',66,136);
INSERT INTO "communes" VALUES('08','Omont','20',86,98,17.96,'2661','55108',174,297);
INSERT INTO "communes" VALUES('08','Chagny','20',176,131,13.35,'2632','55085',177,267);
INSERT INTO "communes" VALUES('08','Éteignières','29',492,406,11.79,'2282','55429',247,360);
INSERT INTO "communes" VALUES('08','Bosseval-et-Briancourt','36',416,403,14.53,'2821','55283',166,390);
INSERT INTO "communes" VALUES('08','La Neuville-à-Maire','21',108,75,7.26,'2799','55091',157,201);
INSERT INTO "communes" VALUES('08','Haraucourt','21',753,785,11.53,'2916','55136',169,308);
INSERT INTO "communes" VALUES('08','Hargnies','10',487,514,42.24,'2727','55577',167,492);
INSERT INTO "communes" VALUES('08','Saint-Fergeux','06',206,197,25.5,'2085','55070',76,161);
INSERT INTO "communes" VALUES('08','<NAME>','33',1587,1591,6.79,'2642','55255',150,256);
INSERT INTO "communes" VALUES('08','Harricourt','03',45,61,7.87,'2881','54927',165,261);
INSERT INTO "communes" VALUES('08','Maranwez','28',46,59,3.03,'2229','55254',176,251);
INSERT INTO "communes" VALUES('08','Barby','23',375,352,11.32,'2196','55025',66,142);
INSERT INTO "communes" VALUES('08','Yoncq','18',94,86,15.5,'2977','55074',164,302);
INSERT INTO "communes" VALUES('08','Bourg-Fidèle','24',844,771,14.79,'2449','55435',200,381);
INSERT INTO "communes" VALUES('08','Coulommes-et-Marqueny','02',92,87,11.99,'2492','54928',95,177);
INSERT INTO "communes" VALUES('08','Son','06',96,105,9.03,'2155','55091',83,170);
INSERT INTO "communes" VALUES('08','Ardeuil-et-Montfauxelles','17',85,76,4.28,'2634','54742',109,179);
INSERT INTO "communes" VALUES('08','Grivy-Loisy','31',178,191,11.56,'2550','54907',87,120);
INSERT INTO "communes" VALUES('08','Montcornet','22',326,218,11.51,'2547','55368',175,358);
INSERT INTO "communes" VALUES('08','Beffu-et-le-Morthomme','12',74,53,5.49,'2848','54854',147,247);
INSERT INTO "communes" VALUES('08','Mondigny','09',181,147,5.9,'2558','55233',182,302);
INSERT INTO "communes" VALUES('08','Saint-Pierre-sur-Vence','09',148,158,4.63,'2597','55215',154,250);
INSERT INTO "communes" VALUES('08','Gespunsart','34',1100,1124,21.02,'2769','55357',184,388);
INSERT INTO "communes" VALUES('08','Tournavaux','16',172,148,1.55,'2722','55415',138,359);
INSERT INTO "communes" VALUES('08','Neuflize','13',728,611,13.78,'2187','54901',78,146);
INSERT INTO "communes" VALUES('08','Hautes-Rivières','16',1647,1947,31.34,'2784','55427',157,501);
INSERT INTO "communes" VALUES('08','Beaumont-en-Argonne','18',465,433,31.05,'3023','55043',162,296);
INSERT INTO "communes" VALUES('08','Amblimont','18',149,143,7.4,'3028','55143',154,342);
INSERT INTO "communes" VALUES('08','Saint-Germainmont','01',809,774,15.69,'1994','55009',61,144);
INSERT INTO "communes" VALUES('08','La Croix-aux-Bois','31',114,138,5.77,'2730','54892',135,228);
INSERT INTO "communes" VALUES('08','Dricourt','14',83,87,7.12,'2418','54884',107,167);
INSERT INTO "communes" VALUES('08','Brécy-Brières','17',77,84,8.68,'2699','54803',96,185);
INSERT INTO "communes" VALUES('08','Acy-Romance','23',441,437,11.13,'2228','55001',67,147);
INSERT INTO "communes" VALUES('08','Floing','26',2468,2453,7.43,'2882','55247',148,281);
INSERT INTO "communes" VALUES('08','Neufmanil','34',1172,1205,10.12,'2732','55345',167,386);
INSERT INTO "communes" VALUES('08','Charleville-Mézières','98',49810,55481,31.44,'2647','55302',133,323);
INSERT INTO "communes" VALUES('08','La Neuville-aux-Joûtes','29',353,353,13.17,'2103','55468',229,313);
INSERT INTO "communes" VALUES('08','Cliron','22',289,280,6.18,'2530','55345',149,245);
INSERT INTO "communes" VALUES('08','Belval-Bois-des-Dames','03',38,51,17.22,'2999','54966',168,317);
INSERT INTO "communes" VALUES('08','Sévigny-Waleppe','06',250,255,24.11,'1938','55116',93,163);
INSERT INTO "communes" VALUES('08','Tremblois-lès-Carignan','04',114,125,4.28,'3244','55176',224,347);
INSERT INTO "communes" VALUES('08','Semuy','02',87,100,3.97,'2580','54986',82,162);
INSERT INTO "communes" VALUES('08','Rumigny','25',383,369,17.38,'2144','55343',178,256);
INSERT INTO "communes" VALUES('08','Sugny','17',105,89,6.11,'2578','54842',98,189);
INSERT INTO "communes" VALUES('08','Jonval','30',84,81,2.53,'2587','55080',189,243);
INSERT INTO "communes" VALUES('08','Rimogne','24',1423,1415,3.77,'2447','55378',194,282);
INSERT INTO "communes" VALUES('08','Saint-Jean-aux-Bois','07',141,138,8.9,'2189','55250',168,263);
INSERT INTO "communes" VALUES('08','Saint-Clément-à-Arnes','14',102,115,10.13,'2324','54778',104,167);
INSERT INTO "communes" VALUES('08','Pure','04',643,585,6.5,'3154','55192',179,286);
INSERT INTO "communes" VALUES('08','Lucquy','19',570,488,5.07,'2379','55037',78,124);
INSERT INTO "communes" VALUES('08','Maubert-Fontaine','24',1060,902,10.33,'2325','55409',233,363);
INSERT INTO "communes" VALUES('08','Deux-Villes','04',265,219,8.14,'3217','55167',188,297);
INSERT INTO "communes" VALUES('08','Germont','08',46,35,4.77,'2822','54930',165,218);
INSERT INTO "communes" VALUES('08','Imécourt','03',57,61,8.42,'2930','54859',158,231);
INSERT INTO "communes" VALUES('08','Savigny-sur-Aisne','17',366,361,10.41,'2656','54844',95,152);
INSERT INTO "communes" VALUES('08','Biermes','23',273,245,7.96,'2278','54984',71,146);
INSERT INTO "communes" VALUES('08','Charbogne','02',206,206,9.06,'2502','55003',79,147);
INSERT INTO "communes" VALUES('08','Fumay','10',3697,4664,37.56,'2634','55548',112,466);
INSERT INTO "communes" VALUES('08','Aussonce','13',188,158,19.14,'2207','54834',94,170);
INSERT INTO "communes" VALUES('08','Landrichamps','11',140,132,4.72,'2771','55655',135,342);
INSERT INTO "communes" VALUES('08','Matton-et-Clémency','04',462,454,18.32,'3186','55184',176,357);
INSERT INTO "communes" VALUES('08','Étalle','24',95,71,4.44,'2341','55386',211,292);
INSERT INTO "communes" VALUES('08','Briquenay','03',129,113,14.5,'2824','54895',158,258);
INSERT INTO "communes" VALUES('08','Rocroi','24',2408,2420,50.41,'2427','55473',121,391);
INSERT INTO "communes" VALUES('08','Faissault','19',208,189,6.07,'2414','55120',156,216);
INSERT INTO "communes" VALUES('08','<NAME>','07',132,119,9.91,'2198','55199',120,204);
INSERT INTO "communes" VALUES('08','Termes','12',138,138,13.98,'2764','54804',102,223);
INSERT INTO "communes" VALUES('08','Revin','35',7214,8962,38.42,'2558','55492',117,469);
INSERT INTO "communes" VALUES('08','Saint-Pierremont','03',91,113,19.77,'2890','54985',178,294);
INSERT INTO "communes" VALUES('08','Prix-lès-Mézières','15',1367,1426,5.08,'2615','55283',141,227);
INSERT INTO "communes" VALUES('08','Saint-Quentin-le-Petit','06',147,158,8.95,'1936','55093',82,140);
INSERT INTO "communes" VALUES('08','Dommery','28',188,175,10.66,'2374','55196',196,267);
INSERT INTO "communes" VALUES('08','Rethel','23',7716,8053,18.58,'2257','55011',67,146);
INSERT INTO "communes" VALUES('08','Vaux-Montreuil','19',108,103,8.35,'2474','55086',128,219);
INSERT INTO "communes" VALUES('08','Vrigne-aux-Bois','36',3433,3670,8.04,'2799','55264',152,248);
INSERT INTO "communes" VALUES('08','Francheval','27',624,594,19.6,'3014','55224',180,432);
INSERT INTO "communes" VALUES('08','Illy','26',404,422,15.6,'2917','55262',197,427);
INSERT INTO "communes" VALUES('08','Montigny-sur-Meuse','10',97,78,8.1,'2650','55610',107,327);
INSERT INTO "communes" VALUES('08','Fromelennes','11',1065,1139,7.17,'2803','55693',105,305);
INSERT INTO "communes" VALUES('08','Escombres-et-le-Chesnois','27',346,282,8.29,'3097','55216',178,329);
INSERT INTO "communes" VALUES('08','Renneville','07',203,234,9.85,'1992','55176',114,183);
INSERT INTO "communes" VALUES('08','Flize','09',1158,1277,2.07,'2707','55221',145,230);
INSERT INTO "communes" VALUES('08','Saint-Marcel','22',319,325,10.84,'2485','55292',153,296);
INSERT INTO "communes" VALUES('08','Gruyères','28',72,51,5.48,'2517','55233',188,306);
INSERT INTO "communes" VALUES('08','Élan','09',77,77,9.86,'2688','55182',166,307);
INSERT INTO "communes" VALUES('08','Laifour','16',514,566,3.25,'2618','55459',127,388);
INSERT INTO "communes" VALUES('08','Charnois','11',86,89,5.61,'2770','55675',126,318);
INSERT INTO "communes" VALUES('08','Deville','16',1131,1218,7.83,'2632','55423',130,398);
INSERT INTO "communes" VALUES('08','Saint-Remy-le-Petit','01',54,36,7.5,'2115','54905',72,126);
INSERT INTO "communes" VALUES('08','Euilly-et-Lombut','18',108,114,10.11,'3093','55144',161,323);
INSERT INTO "communes" VALUES('08','Carignan','04',3107,3258,14.01,'3146','55147',161,291);
INSERT INTO "communes" VALUES('08','Bièvres','04',61,66,7.3,'3254','55063',183,352);
INSERT INTO "communes" VALUES('08','Autrecourt-et-Pourron','18',356,350,12.04,'2992','55125',154,312);
INSERT INTO "communes" VALUES('08','Fromy','04',81,84,3.71,'3238','55108',166,278);
INSERT INTO "communes" VALUES('08','Singly','20',125,138,9.92,'2627','55158',193,303);
INSERT INTO "communes" VALUES('08','Arreux','22',364,320,4.23,'2572','55361',195,317);
INSERT INTO "communes" VALUES('08','<NAME>','25',67,71,7.09,'2162','55266',163,261);
INSERT INTO "communes" VALUES('08','Vieux-lès-Asfeld','01',257,266,6.66,'1963','54953',57,111);
INSERT INTO "communes" VALUES('08','<NAME>','01',329,317,16.62,'1948','55044',70,129);
INSERT INTO "communes" VALUES('08','<NAME>-sur-Sormonne','24',169,195,9.85,'2427','55364',163,376);
INSERT INTO "communes" VALUES('08','Sachy','04',177,162,5.9,'3107','55187',157,227);
INSERT INTO "communes" VALUES('08','Bourcq','31',60,70,9.85,'2551','54872',104,181);
INSERT INTO "communes" VALUES('08','Lumes','37',1138,1224,6.14,'2719','55261',143,252);
INSERT INTO "communes" VALUES('08','Balham','01',135,124,1.77,'2026','54991',61,92);
INSERT INTO "communes" VALUES('08','Bogny-sur-Meuse','16',5478,5836,23.16,'2699','55395',132,396);
INSERT INTO "communes" VALUES('08','Mazures','22',945,774,36.14,'2544','55431',127,401);
INSERT INTO "communes" VALUES('08','Rubigny','07',76,64,5.12,'2065','55206',138,232);
INSERT INTO "communes" VALUES('08','Bouconville','17',51,55,15.21,'2695','54728',106,182);
INSERT INTO "communes" VALUES('08','Étrépigny','09',260,217,4.23,'2686','55205',159,275);
INSERT INTO "communes" VALUES('08','Saulces-Monclin','19',677,528,20.23,'2401','55085',92,177);
INSERT INTO "communes" VALUES('08','Raucourt-et-Flaba','21',855,905,21.83,'2912','55114',177,320);
INSERT INTO "communes" VALUES('08','Le Châtelet-sur-Retourne','13',667,528,9.94,'2157','54908',77,143);
INSERT INTO "communes" VALUES('08','Vireux-Wallerand','11',1933,2035,21.07,'2659','55649',107,368);
INSERT INTO "communes" VALUES('08','Gernelle','37',347,335,4.83,'2756','55297',178,292);
INSERT INTO "communes" VALUES('08','Condé-lès-Autry','17',73,84,7.97,'2798','54724',113,178);
INSERT INTO "communes" VALUES('08','Rilly-sur-Aisne','02',111,105,3.44,'2553','54986',82,127);
INSERT INTO "communes" VALUES('08','Hannogne-Saint-Rémy','06',115,105,18.09,'2001','55117',91,167);
INSERT INTO "communes" VALUES('08','La Neuville-en-Tourne-à-Fuy','13',542,363,27.34,'2267','54830',111,162);
INSERT INTO "communes" VALUES('08','Chuffilly-Roche','02',93,91,7.67,'2523','54942',87,128);
INSERT INTO "communes" VALUES('08','Alleux','08',85,63,12.04,'2668','54968',133,209);
INSERT INTO "communes" VALUES('08','Warcq','15',1312,1446,9.19,'2604','55300',141,203);
INSERT INTO "communes" VALUES('08','Vouziers','31',4141,4734,27.8,'2627','54887',89,186);
INSERT INTO "communes" VALUES('08','Balaives-et-Butz','09',241,207,11.05,'2664','55192',173,326);
INSERT INTO "communes" VALUES('08','Boutancourt','09',277,280,2.99,'2702','55205',149,276);
INSERT INTO "communes" VALUES('08','Olizy-Primat','12',219,205,21.35,'2710','54830',96,221);
INSERT INTO "communes" VALUES('08','Draize','07',102,100,6.79,'2220','55175',100,187);
INSERT INTO "communes" VALUES('08','Villers-le-Tilleul','09',261,191,8.61,'2656','55151',187,292);
INSERT INTO "communes" VALUES('08','Daigny','27',351,352,2.85,'2950','55226',170,285);
INSERT INTO "communes" VALUES('08','Hannappes','25',156,155,8.45,'2104','55360',172,250);
INSERT INTO "communes" VALUES('08','Estrebay','25',75,69,9.37,'2243','55366',199,296);
INSERT INTO "communes" VALUES('08','Pauvres','14',187,186,12.64,'2395','54901',99,163);
INSERT INTO "communes" VALUES('08','Bouvellemont','20',95,78,4.31,'2584','55093',189,258);
INSERT INTO "communes" VALUES('08','L''Écaille','01',202,133,9.15,'2083','54908',69,129);
INSERT INTO "communes" VALUES('08','Mouzon','18',2303,2618,34.43,'3043','55118',154,333);
INSERT INTO "communes" VALUES('08','Sécheval','22',507,395,13.79,'2581','55399',242,396);
INSERT INTO "communes" VALUES('08','Écly','06',199,177,9.36,'2169','55049',67,146);
INSERT INTO "communes" VALUES('08','Balan','27',1616,1612,4.65,'2915','55210',152,238);
INSERT INTO "communes" VALUES('08','Williers','04',48,38,2.26,'3304','55187',240,342);
INSERT INTO "communes" VALUES('08','Auflance','04',85,91,6.16,'3283','55132',176,281);
INSERT INTO "communes" VALUES('08','Saint-Lambert-et-Mont-de-Jeux','02',174,183,10.74,'2527','54998',82,175);
INSERT INTO "communes" VALUES('08','Jandun','28',287,235,12.78,'2467','55181',182,305);
INSERT INTO "communes" VALUES('08','Suzanne','30',70,61,6.45,'2553','55018',94,191);
INSERT INTO "communes" VALUES('08','Attigny','02',1226,1200,11.46,'2490','54975',77,133);
INSERT INTO "communes" VALUES('08','Nanteuil-sur-Aisne','23',118,125,7.92,'2182','55014',67,145);
INSERT INTO "communes" VALUES('08','Mont-Saint-Remy','14',55,37,7.55,'2383','54877',98,135);
INSERT INTO "communes" VALUES('08','Sommauthe','03',119,109,9.78,'2941','54992',177,290);
INSERT INTO "communes" VALUES('08','Taillette','24',374,314,15.25,'2389','55479',319,377);
INSERT INTO "communes" VALUES('08','Létanne','18',142,104,7.5,'3049','55050',156,286);
INSERT INTO "communes" VALUES('08','Hagnicourt','19',71,64,5.75,'2498','55121',154,261);
INSERT INTO "communes" VALUES('08','Harcy','22',504,452,19.15,'2474','55373',193,373);
INSERT INTO "communes" VALUES('08','Tailly','03',175,206,39.31,'3051','54928',185,337);
INSERT INTO "communes" VALUES('08','Aiglemont','05',1593,1730,8.85,'2699','55313',132,327);
INSERT INTO "communes" VALUES('08','Avaux','01',464,458,13.19,'1941','54951',57,130);
INSERT INTO "communes" VALUES('08','Aubigny-les-Pothées','25',349,319,10.42,'2332','55307',177,294);
INSERT INTO "communes" VALUES('08','Landres-et-Saint-Georges','03',103,113,20.43,'2971','54837',165,263);
INSERT INTO "communes" VALUES('08','Neuvizy','19',112,116,8.62,'2440','55142',171,271);
INSERT INTO "communes" VALUES('08','Saint-Juvin','12',112,133,9.4,'2892','54817',117,202);
INSERT INTO "communes" VALUES('08','Novion-Porcien','19',502,481,17.21,'2319','55111',83,177);
INSERT INTO "communes" VALUES('08','Mouron','12',81,79,6.4,'2719','54789',101,188);
INSERT INTO "communes" VALUES('08','Bar-lès-Buzancy','03',118,98,9.4,'2894','54926',166,305);
INSERT INTO "communes" VALUES('08','Tétaigne','18',81,82,5.79,'3104','55168',157,222);
INSERT INTO "communes" VALUES('08','Moiry','04',191,188,3.91,'3267','55102',169,250);
INSERT INTO "communes" VALUES('08','Launois-sur-Vence','28',651,562,13.37,'2446','55170',188,269);
INSERT INTO "communes" VALUES('08','Faux','19',56,51,3.28,'2403','55042',83,124);
INSERT INTO "communes" VALUES('08','Fleigneux','26',203,201,13.65,'2902','55276',199,421);
INSERT INTO "communes" VALUES('08','Vaux-lès-Mouron','17',84,62,2.1,'2719','54778',102,143);
INSERT INTO "communes" VALUES('08','Blombay','24',121,91,9.47,'2351','55360',202,301);
INSERT INTO "communes" VALUES('08','Senuc','12',149,142,13.58,'2780','54792',102,213);
INSERT INTO "communes" VALUES('08','Liart','25',537,523,13.44,'2228','55300',192,283);
INSERT INTO "communes" VALUES('08','Girondelle','25',153,139,11.53,'2281','55384',226,292);
INSERT INTO "communes" VALUES('08','Messincourt','04',610,530,8.15,'3130','55200',185,316);
INSERT INTO "communes" VALUES('08','Tagnon','13',939,746,23.97,'2171','54933',83,148);
INSERT INTO "communes" VALUES('08','Grandchamp','19',95,86,7.28,'2293','55161',131,235);
INSERT INTO "communes" VALUES('08','Noyers-Pont-Maugis','36',735,715,9.32,'2890','55180',153,341);
INSERT INTO "communes" VALUES('08','Mairy','18',258,140,7.44,'3013','55166',153,291);
INSERT INTO "communes" VALUES('08','Villers-Cernay','27',328,293,22.15,'2994','55241',192,433);
INSERT INTO "communes" VALUES('08','Saint-Loup-Terrier','30',167,154,15.3,'2533','55085',124,236);
INSERT INTO "communes" VALUES('08','Saint-Morel','17',236,227,12.04,'2619','54819',101,147);
INSERT INTO "communes" VALUES('08','Chappes','07',94,91,9.59,'2148','55123',82,200);
INSERT INTO "communes" VALUES('08','Liry','17',107,96,12.69,'2580','54786',111,198);
INSERT INTO "communes" VALUES('08','Hauviné','14',303,232,14.55,'2293','54781',103,159);
INSERT INTO "communes" VALUES('08','Justine-Herbigny','19',168,114,11.77,'2209','55109',79,179);
INSERT INTO "communes" VALUES('08','Sormonne','22',564,542,4.75,'2477','55345',154,227);
INSERT INTO "communes" VALUES('08','Mars-sous-Bourcq','31',55,55,4.73,'2561','54885',95,130);
INSERT INTO "communes" VALUES('08','Saint-Loup-en-Champagne','06',243,223,15.77,'2093','54950',74,144);
INSERT INTO "communes" VALUES('08','Laval-Morency','24',245,234,4.28,'2394','55370',183,266);
INSERT INTO "communes" VALUES('08','Fligny','29',189,176,6.85,'2143','55424',212,266);
INSERT INTO "communes" VALUES('08','Sedan','99',18577,20547,16.28,'2893','55224',149,301);
INSERT INTO "communes" VALUES('08','Neuville-lez-Beaulieu','29',345,265,35.92,'2210','55407',217,346);
INSERT INTO "communes" VALUES('08','Warnécourt','15',378,387,5.36,'2570','55259',153,272);
INSERT INTO "communes" VALUES('08','Lonny','22',590,412,4.69,'2501','55351',159,241);
INSERT INTO "communes" VALUES('08','Vendresse','20',494,400,43.22,'2730','55116',157,303);
INSERT INTO "communes" VALUES('08','Villers-Semeuse','37',3405,3532,7.03,'2681','55266',142,222);
INSERT INTO "communes" VALUES('08','Vrigne-Meuse','09',261,191,4.44,'2788','55225',146,243);
INSERT INTO "communes" VALUES('08','Montmeillant','07',94,84,7.02,'2216','55214',127,216);
INSERT INTO "communes" VALUES('08','Boulzicourt','09',938,1006,6.65,'2621','55216',155,311);
INSERT INTO "communes" VALUES('08','<NAME>','20',190,106,5.27,'2593','55141',194,293);
INSERT INTO "communes" VALUES('08','Noirval','08',34,27,5,'2733','54955',135,227);
INSERT INTO "communes" VALUES('08','Ballay','31',248,245,10.46,'2681','54922',91,221);
INSERT INTO "communes" VALUES('08','Vandy','31',172,211,11.11,'2632','54927',87,206);
INSERT INTO "communes" VALUES('08','Perthes','13',302,276,23.41,'2238','54944',86,158);
INSERT INTO "communes" VALUES('08','Sorbon','23',203,215,14.43,'2242','55043',77,146);
INSERT INTO "communes" VALUES('08','Grandpré','12',456,518,28.56,'2815','54823',107,253);
INSERT INTO "communes" VALUES('08','Margut','04',789,836,7.53,'3249','55094',166,350);
INSERT INTO "communes" VALUES('08','Chooz','11',773,749,13.08,'2745','55671',101,345);
INSERT INTO "communes" VALUES('08','Thénorgues','03',105,85,9.25,'2880','54896',154,227);
INSERT INTO "communes" VALUES('08','Signy-le-Petit','29',1302,1314,38.72,'2159','55449',222,338);
INSERT INTO "communes" VALUES('08','<NAME>','04',181,224,6.41,'3228','55083',165,320);
INSERT INTO "communes" VALUES('08','Sury','15',97,113,3.31,'2525','55295',159,301);
INSERT INTO "communes" VALUES('08','Vrizy','31',341,360,8.18,'2603','54918',86,141);
INSERT INTO "communes" VALUES('08','Vaux-Villaine','25',192,186,9.96,'2373','55301',172,311);
INSERT INTO "communes" VALUES('08','Ménil-Annelles','13',96,119,9.15,'2342','54933',107,165);
INSERT INTO "communes" VALUES('08','Yvernaumont','09',134,142,2.82,'2580','55198',162,302);
INSERT INTO "communes" VALUES('08','Louvergny','08',80,75,8.95,'2670','55058',172,249);
INSERT INTO "communes" VALUES('08','Stonne','21',49,33,7.18,'2878','55056',189,340);
INSERT INTO "communes" VALUES('08','Hauteville','06',111,111,5.61,'2182','55093',76,150);
INSERT INTO "communes" VALUES('08','Apremont','12',129,118,12.86,'2946','54743',137,247);
INSERT INTO "communes" VALUES('08','Cauroy','14',183,194,17.46,'2371','54831',117,174);
INSERT INTO "communes" VALUES('08','Bossus-lès-Rumigny','25',102,95,8.14,'2133','55376',178,241);
INSERT INTO "communes" VALUES('08','Semide','14',206,244,37.04,'2496','54823',109,203);
INSERT INTO "communes" VALUES('08','<NAME>','27',135,127,1.35,'2948','55210',166,231);
INSERT INTO "communes" VALUES('08','Herbeuval','04',94,79,7.4,'3336','55114',199,318);
INSERT INTO "communes" VALUES('08','Signy-Montlibert','04',78,87,6.12,'3295','55088',190,368);
INSERT INTO "communes" VALUES('08','Roizy','01',250,223,11.15,'2045','54917',66,123);
INSERT INTO "communes" VALUES('08','Sault-Saint-Remy','01',171,160,9.63,'2028','54918',67,118);
INSERT INTO "communes" VALUES('08','Sainte-Vaubourg','02',94,92,6.91,'2503','54957',86,110);
INSERT INTO "communes" VALUES('08','<NAME>-lès-Wasigny','19',165,129,5.21,'2247','55158',101,170);
INSERT INTO "communes" VALUES('08','Gué-d''Hossus','24',526,503,5.23,'2441','55507',291,384);
INSERT INTO "communes" VALUES('08','Inaumont','06',81,75,4.75,'2197','55065',71,140);
INSERT INTO "communes" VALUES('08','<NAME>','03',50,32,10.54,'2870','55025',189,328);
INSERT INTO "communes" VALUES('08','Tarzy','29',141,137,10.12,'2176','55412',217,276);
INSERT INTO "communes" VALUES('08','Vivier-au-Court','37',3321,3296,9.34,'2771','55261',154,252);
INSERT INTO "communes" VALUES('08','Blanchefosse-et-Bay','25',155,151,20.47,'2110','55308',170,278);
INSERT INTO "communes" VALUES('08','Pouru-aux-Bois','27',290,263,9.02,'3061','55229',188,373);
INSERT INTO "communes" VALUES('08','Sailly','04',246,222,12.8,'3154','55124',162,343);
INSERT INTO "communes" VALUES('08','Raillicourt','28',221,179,6.87,'2500','55168',179,279);
INSERT INTO "communes" VALUES('08','Verrières','08',33,31,6.36,'2819','54992',170,247);
INSERT INTO "communes" VALUES('08','Condé-lès-Herpy','06',201,159,11.55,'2097','55032',65,157);
INSERT INTO "communes" VALUES('08','Sy','08',48,45,7.97,'2816','55017',176,267);
INSERT INTO "communes" VALUES('08','Monthois','17',386,336,11.98,'2636','54791',103,188);
INSERT INTO "communes" VALUES('08','Auboncourt-Vauzelles','19',102,85,5.4,'2396','55058',86,127);
INSERT INTO "communes" VALUES('08','Vaux-Champagne','02',132,90,10.78,'2466','54937',87,172);
INSERT INTO "communes" VALUES('08','Haulmé','16',110,84,3.63,'2721','55401',143,382);
INSERT INTO "communes" VALUES('08','La Grandville','37',818,680,10.02,'2733','55311',187,316);
INSERT INTO "communes" VALUES('08','Fagnon','15',350,345,9.98,'2554','55263',158,313);
INSERT INTO "communes" VALUES('08','Le Mont-Dieu','21',20,24,18.72,'2824','55039',157,325);
INSERT INTO "communes" VALUES('08','Sauville','08',270,189,14.76,'2730','55062',158,262);
INSERT INTO "communes" VALUES('08','Seuil','23',159,166,11.79,'2352','54979',74,164);
INSERT INTO "communes" VALUES('08','Autruche','08',63,44,8.24,'2848','54950',166,242);
INSERT INTO "communes" VALUES('08','Annelles','13',139,118,12.31,'2314','54920',98,168);
INSERT INTO "communes" VALUES('08','Toges','31',94,94,3.44,'2712','54917',124,221);
INSERT INTO "communes" VALUES('08','Asfeld','01',1077,977,22.19,'1980','54966',60,118);
INSERT INTO "communes" VALUES('09','Bédeilhac-et-Aynat','18',203,150,6.38,'-858','47636',549,1424);
INSERT INTO "communes" VALUES('09','Contrazy','14',61,82,8.27,'-1247','47844',387,693);
INSERT INTO "communes" VALUES('09','Suc-et-Sentenac','20',55,103,31.69,'-956','47536',752,2196);
INSERT INTO "communes" VALUES('09','Ventenac','19',226,198,19.62,'-673','47784',410,730);
INSERT INTO "communes" VALUES('09','Thouars-sur-Arize','08',53,50,2.34,'-1217','47983',232,320);
INSERT INTO "communes" VALUES('09','Artix','19',118,91,7.35,'-857','47854',337,701);
INSERT INTO "communes" VALUES('09','Tourtouse','14',156,169,11.87,'-1347','47881',346,560);
INSERT INTO "communes" VALUES('09','Rieux-de-Pelleport','19',1248,848,8.16,'-807','47842',309,686);
INSERT INTO "communes" VALUES('09','Besset','10',145,119,8.13,'-555','47865',279,480);
INSERT INTO "communes" VALUES('09','Lieurac','07',158,153,6.42,'-608','47757',352,671);
INSERT INTO "communes" VALUES('09','Vernajoul','21',691,573,9.08,'-811','47763',359,724);
INSERT INTO "communes" VALUES('09','Urs','03',46,24,0.91,'-671','47528',567,1160);
INSERT INTO "communes" VALUES('09','<NAME>','06',1063,784,14.41,'-1032','47971',231,353);
INSERT INTO "communes" VALUES('09','Lanoux','06',51,53,3.75,'-1011','47909',270,405);
INSERT INTO "communes" VALUES('09','<NAME>','21',112,137,25.57,'-975','47719',634,1668);
INSERT INTO "communes" VALUES('09','Castéras','06',31,30,1.84,'-1041','47921',308,404);
INSERT INTO "communes" VALUES('09','Montségur','07',116,117,37.16,'-559','47635',630,2365);
INSERT INTO "communes" VALUES('09','Belloc','10',65,60,9.54,'-451','47792',345,491);
INSERT INTO "communes" VALUES('09','Esplas-de-Sérou','15',159,143,34.13,'-1067','47750',426,1502);
INSERT INTO "communes" VALUES('09','Lassur','03',62,64,11.99,'-666','47522',575,1946);
INSERT INTO "communes" VALUES('09','Eycheil','15',555,500,4.77,'-1304','47743',402,1240);
INSERT INTO "communes" VALUES('09','Ségura','19',173,139,8.77,'-717','47819',366,689);
INSERT INTO "communes" VALUES('09','Dun','10',585,491,41.41,'-597','47808',303,648);
INSERT INTO "communes" VALUES('09','Benagues','12',456,329,3.01,'-807','47863',295,481);
INSERT INTO "communes" VALUES('09','Vèbre','03',134,126,5.19,'-683','47528',552,1485);
INSERT INTO "communes" VALUES('09','Loubens','19',254,200,11.73,'-879','47828',382,702);
INSERT INTO "communes" VALUES('09','La Bastide-du-Salat','16',204,171,6.6,'-1500','47840',295,464);
INSERT INTO "communes" VALUES('09','Raissac','07',39,51,3.84,'-582','47713',535,823);
INSERT INTO "communes" VALUES('09','La Tour-du-Crieu','22',2671,1977,10.28,'-758','47893',297,341);
INSERT INTO "communes" VALUES('09','Larbont','02',40,47,6.17,'-1039','47768',409,722);
INSERT INTO "communes" VALUES('09','Saint-Jean-du-Castillonnais','04',29,22,4.74,'-1562','47707',633,1416);
INSERT INTO "communes" VALUES('09','Carla-de-Roquefort','07',153,158,9.34,'-632','47750',368,729);
INSERT INTO "communes" VALUES('09','Engomer','04',274,256,7.6,'-1419','47719',448,1120);
INSERT INTO "communes" VALUES('09','Aigues-Juntes','02',44,49,7.77,'-962','47839',340,616);
INSERT INTO "communes" VALUES('09','Bézac','12',303,227,8.35,'-846','47942',248,390);
INSERT INTO "communes" VALUES('09','Montardit','14',201,145,7.26,'-1269','47854',340,564);
INSERT INTO "communes" VALUES('09','Ussat','18',325,372,4.4,'-796','47590',467,1187);
INSERT INTO "communes" VALUES('09','Sautel','07',129,99,9.13,'-585','47751',375,823);
INSERT INTO "communes" VALUES('09','Lordat','03',38,43,7.37,'-650','47529',680,2321);
INSERT INTO "communes" VALUES('09','Montgaillard','21',1372,1321,7.93,'-780','47705',394,941);
INSERT INTO "communes" VALUES('09','Gajan','16',298,292,8.17,'-1344','47814',365,600);
INSERT INTO "communes" VALUES('09','Soulan','09',352,324,23.76,'-1226','47682',466,1415);
INSERT INTO "communes" VALUES('09','Fabas','14',329,306,23.04,'-1367','47898',288,560);
INSERT INTO "communes" VALUES('09','Balaguères','04',199,193,17.84,'-1436','47722',467,1253);
INSERT INTO "communes" VALUES('09','Labatut','17',136,79,3.58,'-911','48068',217,305);
INSERT INTO "communes" VALUES('09','Ignaux','01',104,59,5.49,'-552','47479',840,1722);
INSERT INTO "communes" VALUES('09','Sabarat','08',360,284,9.5,'-1053','47889',265,510);
INSERT INTO "communes" VALUES('09','Sainte-Foi','10',27,22,2.41,'-469','47921',337,451);
INSERT INTO "communes" VALUES('09','Lézat-sur-Lèze','06',2343,2116,40.13,'-1100','48085',197,315);
INSERT INTO "communes" VALUES('09','Suzan','02',23,17,3.05,'-994','47816',436,631);
INSERT INTO "communes" VALUES('09','Montégut-en-Couserans','15',69,67,6.18,'-1380','47757',403,880);
INSERT INTO "communes" VALUES('09','Bagert','14',59,54,3.28,'-1394','47864',340,563);
INSERT INTO "communes" VALUES('09','Rouze','13',91,88,9.51,'-296','47479',729,1882);
INSERT INTO "communes" VALUES('09','Pujols','22',700,521,13.18,'-687','47876',255,384);
INSERT INTO "communes" VALUES('09','Gabre','08',94,92,13.36,'-1021','47861',286,570);
INSERT INTO "communes" VALUES('09','Saint-Victor-Rouzaud','12',237,161,12.77,'-872','47882',293,681);
INSERT INTO "communes" VALUES('09','Montoulieu','21',357,305,14.12,'-787','47676',428,1488);
INSERT INTO "communes" VALUES('09','Cazaux','19',45,44,7.37,'-919','47836',354,683);
INSERT INTO "communes" VALUES('09','Justiniac','17',51,58,4.56,'-938','48013',264,363);
INSERT INTO "communes" VALUES('09','Pradières','21',111,105,6.79,'-760','47740',415,940);
INSERT INTO "communes" VALUES('09','Campagne-sur-Arize','08',268,281,13.34,'-1109','47920',251,482);
INSERT INTO "communes" VALUES('09','L''Aiguillon','07',392,424,6.37,'-484','47686',457,920);
INSERT INTO "communes" VALUES('09','Montjoie-en-Couserans','16',1047,984,29.63,'-1308','47780',393,677);
INSERT INTO "communes" VALUES('09','Celles','21',119,133,10.27,'-722','47685',470,1093);
INSERT INTO "communes" VALUES('09','Galey','04',112,101,9.35,'-1579','47707',636,1566);
INSERT INTO "communes" VALUES('09','Ax-les-Thermes','01',1363,1440,30.26,'-553','47466',697,2411);
INSERT INTO "communes" VALUES('09','Castex','08',95,73,7.03,'-1138','47962',248,394);
INSERT INTO "communes" VALUES('09','Mérens-les-Vals','01',185,181,80.12,'-556','47398',929,2840);
INSERT INTO "communes" VALUES('09','Bouan','03',37,30,3.44,'-765','47556',491,1535);
INSERT INTO "communes" VALUES('09','Malléon','19',48,33,6.78,'-694','47813',359,730);
INSERT INTO "communes" VALUES('09','Bestiac','03',19,12,6.57,'-610','47520',709,1866);
INSERT INTO "communes" VALUES('09','Bédeille','14',82,72,9.46,'-1370','47875',330,590);
INSERT INTO "communes" VALUES('09','Balacet','04',20,24,2.12,'-1506','47649',833,1674);
INSERT INTO "communes" VALUES('09','Garde','10',184,191,11.93,'-447','47833',316,543);
INSERT INTO "communes" VALUES('09','Malegoude','10',48,66,6.14,'-442','47903',315,425);
INSERT INTO "communes" VALUES('09','Alzen','02',221,163,17.87,'-960','47766',430,1173);
INSERT INTO "communes" VALUES('09','Sainte-Suzanne','06',252,190,10.39,'-1056','48011',220,361);
INSERT INTO "communes" VALUES('09','Cazavet','16',216,181,17.93,'-1437','47780',367,1247);
INSERT INTO "communes" VALUES('09','Tabre','10',348,387,2.83,'-530','47766',427,641);
INSERT INTO "communes" VALUES('09','Encourtiech','15',99,84,4.78,'-1283','47733',409,858);
INSERT INTO "communes" VALUES('09','Massat','09',693,589,44.71,'-1099','47654',598,1941);
INSERT INTO "communes" VALUES('09','Monesple','06',25,26,6.09,'-969','47889',302,532);
INSERT INTO "communes" VALUES('09','Mazères','17',3707,2618,44.04,'-732','48057',218,333);
INSERT INTO "communes" VALUES('09','Appy','03',28,9,6.1,'-670','47545',744,2168);
INSERT INTO "communes" VALUES('09','Roquefixade','07',153,151,12.31,'-645','47706',508,995);
INSERT INTO "communes" VALUES('09','Rivèrenert','15',188,135,28.81,'-1231','47730',462,1415);
INSERT INTO "communes" VALUES('09','Audressein','04',116,107,3.98,'-1459','47699',489,959);
INSERT INTO "communes" VALUES('09','Saint-Lary','04',148,138,33.91,'-1602','47699',654,2209);
INSERT INTO "communes" VALUES('09','Larnat','03',20,16,5.6,'-783','47555',639,1544);
INSERT INTO "communes" VALUES('09','Tourtrol','10',243,205,4.97,'-598','47855',269,471);
INSERT INTO "communes" VALUES('09','Méras','08',97,61,3.69,'-1139','47980',264,395);
INSERT INTO "communes" VALUES('09','Crampagna','19',648,560,10.02,'-811','47810',335,686);
INSERT INTO "communes" VALUES('09','Oust','11',554,515,18.97,'-1246','47639',480,1494);
INSERT INTO "communes" VALUES('09','Dreuilhe','07',365,326,6.93,'-530','47719',464,765);
INSERT INTO "communes" VALUES('09','Bethmale','04',98,84,31.61,'-1421','47654',638,2838);
INSERT INTO "communes" VALUES('09','Prayols','21',361,305,7.76,'-792','47697',399,1403);
INSERT INTO "communes" VALUES('09','Montégut-Plantaurel','19',327,266,18.95,'-946','47855',307,630);
INSERT INTO "communes" VALUES('09','Erp','15',144,102,9.24,'-1262','47713',428,1208);
INSERT INTO "communes" VALUES('09','Gudas','19',143,107,10.73,'-734','47788',383,706);
INSERT INTO "communes" VALUES('09','Arrien-en-Bethmale','04',101,110,14.59,'-1439','47663',598,2085);
INSERT INTO "communes" VALUES('09','Montseron','02',82,66,8.88,'-1125','47798',335,580);
INSERT INTO "communes" VALUES('09','Alliat','18',61,62,3.46,'-834','47574',500,1268);
INSERT INTO "communes" VALUES('09','<NAME>','17',648,536,5.59,'-816','47983',235,376);
INSERT INTO "communes" VALUES('09','Pech','03',46,34,4.81,'-723','47537',533,1729);
INSERT INTO "communes" VALUES('09','Esplas','17',95,93,7.64,'-931','47986',259,370);
INSERT INTO "communes" VALUES('09','Savignac-les-Ormeaux','01',423,399,28.31,'-577','47477',665,2789);
INSERT INTO "communes" VALUES('09','Lescousse','12',81,81,8.48,'-915','47949',280,383);
INSERT INTO "communes" VALUES('09','Rabat-les-Trois-Seigneurs','18',323,264,26.96,'-871','47618',548,2196);
INSERT INTO "communes" VALUES('09','Mirepoix','10',3137,3076,47.28,'-514','47876',276,462);
INSERT INTO "communes" VALUES('09','Auzat','20',582,664,162.74,'-951','47518',720,3140);
INSERT INTO "communes" VALUES('09','Boussenac','09',192,183,26,'-1075','47671',636,1645);
INSERT INTO "communes" VALUES('09','Lapège','18',27,34,8.29,'-849','47556',702,1805);
INSERT INTO "communes" VALUES('09','Orlu','01',190,195,70.79,'-498','47447',830,2773);
INSERT INTO "communes" VALUES('09','Bonnac','22',722,681,9.63,'-827','47962',237,413);
INSERT INTO "communes" VALUES('09','Loubaut','08',31,21,2.39,'-1168','47987',257,392);
INSERT INTO "communes" VALUES('09','Saint-Julien-de-Gras-Capou','10',62,60,6.14,'-534','47819',323,470);
INSERT INTO "communes" VALUES('09','Camon','10',166,144,10.25,'-411','47802',326,582);
INSERT INTO "communes" VALUES('09','Montferrier','07',638,671,51.79,'-602','47662',548,2343);
INSERT INTO "communes" VALUES('09','<NAME>','02',958,910,43.62,'-1010','47791',354,692);
INSERT INTO "communes" VALUES('09','Allières','02',61,65,9.1,'-1079','47818',347,652);
INSERT INTO "communes" VALUES('09','Barjac','14',36,42,2.78,'-1336','47851',404,603);
INSERT INTO "communes" VALUES('09','L''Hospitalet-près-l''Andorre','01',94,166,26.12,'-593','47323',1279,2816);
INSERT INTO "communes" VALUES('09','Bordes-sur-Arize','08',517,514,12.68,'-1074','47894',256,508);
INSERT INTO "communes" VALUES('09','Mercus-Garrabet','18',1150,1001,14.79,'-785','47644',432,1603);
INSERT INTO "communes" VALUES('09','Pailhès','06',396,296,21.52,'-993','47891',267,532);
INSERT INTO "communes" VALUES('09','Bonac-Irazein','04',135,98,38.13,'-1514','47641',672,2750);
INSERT INTO "communes" VALUES('09','Villeneuve-du-Latou','06',132,112,6.52,'-1003','48004',232,369);
INSERT INTO "communes" VALUES('09','Lercoul','20',23,18,19.01,'-879','47522',826,2876);
INSERT INTO "communes" VALUES('09','Lescure','15',507,461,25.8,'-1226','47778',410,820);
INSERT INTO "communes" VALUES('09','Calzan','19',26,25,3.99,'-666','47820',318,631);
INSERT INTO "communes" VALUES('09','Fougax-et-Barrineuf','07',522,449,31.48,'-494','47644',511,1120);
INSERT INTO "communes" VALUES('09','Senconac','03',8,8,4.67,'-694','47554',715,2072);
INSERT INTO "communes" VALUES('09','Nalzen','07',123,141,5.5,'-643','47686',520,969);
INSERT INTO "communes" VALUES('09','Cérizols','14',154,138,14.34,'-1417','47921',309,587);
INSERT INTO "communes" VALUES('09','Aulos','03',55,61,1.04,'-735','47547',513,968);
INSERT INTO "communes" VALUES('09','Brassac','21',638,585,24.33,'-888','47718',447,1695);
INSERT INTO "communes" VALUES('09','Arabaux','21',59,54,4.59,'-771','47761',395,826);
INSERT INTO "communes" VALUES('09','Saverdun','17',4528,3562,61.47,'-847','48038',209,374);
INSERT INTO "communes" VALUES('09','Sentenac-d''Oust','11',93,97,18.38,'-1287','47640',592,2304);
INSERT INTO "communes" VALUES('09','Saint-Paul-de-Jarrat','21',1260,1222,22.51,'-751','47682',425,1773);
INSERT INTO "communes" VALUES('09','Burret','21',42,22,4.96,'-952','47727',587,1203);
INSERT INTO "communes" VALUES('09','Durfort','06',163,126,10.98,'-977','48007',245,372);
INSERT INTO "communes" VALUES('09','Bénaix','07',155,165,14.68,'-530','47674',517,980);
INSERT INTO "communes" VALUES('09','Montfa','08',81,72,8.54,'-1170','47888',313,571);
INSERT INTO "communes" VALUES('09','Cazals-des-Baylès','10',43,36,4.71,'-433','47875',305,421);
INSERT INTO "communes" VALUES('09','Roquefort-les-Cascades','07',97,107,7.08,'-645','47735',433,880);
INSERT INTO "communes" VALUES('09','Gaudiès','17',218,200,10.41,'-673','47973',238,370);
INSERT INTO "communes" VALUES('09','Esclagne','10',114,141,3.52,'-543','47756',444,565);
INSERT INTO "communes" VALUES('09','Rieucros','10',620,438,5.57,'-633','47871',263,433);
INSERT INTO "communes" VALUES('09','La Bastide-de-Bousignac','10',339,327,12.53,'-501','47837',310,500);
INSERT INTO "communes" VALUES('09','Prades','01',47,47,28.97,'-509','47541',1078,1921);
INSERT INTO "communes" VALUES('09','Cadarcet','02',236,213,11.01,'-930','47790',386,917);
INSERT INTO "communes" VALUES('09','Couflens','11',82,63,56.26,'-1278','47541',559,2865);
INSERT INTO "communes" VALUES('09','Saint-Quentin-la-Tour','10',327,301,9.02,'-486','47815',334,463);
INSERT INTO "communes" VALUES('09','Génat','18',27,26,8.21,'-848','47582',781,1477);
INSERT INTO "communes" VALUES('09','Vernaux','03',33,28,6.06,'-643','47525',639,2081);
INSERT INTO "communes" VALUES('09','Taurignan-Vieux','16',217,209,5.86,'-1358','47809',355,570);
INSERT INTO "communes" VALUES('09','Ascou','01',139,102,35.59,'-527','47468',879,2360);
INSERT INTO "communes" VALUES('09','Roumengoux','10',154,127,6.87,'-447','47857',304,461);
INSERT INTO "communes" VALUES('09','Canté','17',207,179,9.8,'-894','48061',216,352);
INSERT INTO "communes" VALUES('09','Issards','22',252,189,3.81,'-668','47865',270,383);
INSERT INTO "communes" VALUES('09','Varilhes','19',3036,2703,11.76,'-787','47828',309,592);
INSERT INTO "communes" VALUES('09','Loubières','21',227,201,2.9,'-818','47788',355,569);
INSERT INTO "communes" VALUES('09','Larcat','03',39,33,9.31,'-750','47532',686,1840);
INSERT INTO "communes" VALUES('09','Vals','10',91,68,4.13,'-640','47884',255,390);
INSERT INTO "communes" VALUES('09','Ferrières-sur-Ariège','21',822,701,3.46,'-800','47714',390,1056);
INSERT INTO "communes" VALUES('09','Baulou','21',160,145,14.62,'-892','47796',393,655);
INSERT INTO "communes" VALUES('09','Sorgeat','01',95,96,18.92,'-540','47477',910,1853);
INSERT INTO "communes" VALUES('09','Aulus-les-Bains','11',237,189,52.24,'-1110','47545',719,2698);
INSERT INTO "communes" VALUES('09','Bélesta','07',1102,1181,26.94,'-447','47671',475,1082);
INSERT INTO "communes" VALUES('09','Leychert','07',106,100,5.77,'-675','47716',516,934);
INSERT INTO "communes" VALUES('09','Niaux','18',195,203,3.99,'-828','47570',509,1322);
INSERT INTO "communes" VALUES('09','Saint-Girons','15',6500,6279,19.13,'-1323','47761',387,1200);
INSERT INTO "communes" VALUES('09','Foix','05',9885,9109,19.32,'-811','47739',358,933);
INSERT INTO "communes" VALUES('09','Saint-Lizier','16',1453,1592,9.01,'-1333','47780',368,578);
INSERT INTO "communes" VALUES('09','Nescus','02',73,61,3,'-1005','47769',415,680);
INSERT INTO "communes" VALUES('09','Lavelanet','07',6525,6933,12.57,'-542','47703',490,802);
INSERT INTO "communes" VALUES('09','Saint-Amans','12',44,48,2.64,'-877','47952',290,402);
INSERT INTO "communes" VALUES('09','Montgauch','16',120,130,9.15,'-1401','47778',376,1151);
INSERT INTO "communes" VALUES('09','Biert','09',294,288,23.51,'-1134','47665',559,1371);
INSERT INTO "communes" VALUES('09','Saint-Jean-de-Verges','21',1145,840,12.73,'-807','47793',335,709);
INSERT INTO "communes" VALUES('09','Daumazan-sur-Arize','08',714,659,13.78,'-1143','47937',239,361);
INSERT INTO "communes" VALUES('09','Sentein','04',150,148,59.18,'-1535','47639',715,2882);
INSERT INTO "communes" VALUES('09','Camarade','08',180,157,27.68,'-1168','47873',367,751);
INSERT INTO "communes" VALUES('09','Artigues','13',50,41,12.43,'-297','47464',990,2547);
INSERT INTO "communes" VALUES('09','Manses','10',124,123,15.36,'-583','47889',274,470);
INSERT INTO "communes" VALUES('09','Sieuras','06',73,73,7.63,'-1109','47982',229,408);
INSERT INTO "communes" VALUES('09','Lacave','16',122,116,4.5,'-1488','47822',318,466);
INSERT INTO "communes" VALUES('09','La Bastide-de-Lordat','17',264,213,5.97,'-693','47938',249,315);
INSERT INTO "communes" VALUES('09','Troye-d''Ariège','10',95,93,8.15,'-509','47808',359,549);
INSERT INTO "communes" VALUES('09','Saint-Michel','12',73,67,5.92,'-927','47928',310,434);
INSERT INTO "communes" VALUES('09','Villeneuve','04',42,43,5,'-1505','47709',546,1129);
INSERT INTO "communes" VALUES('09','Viviès','10',129,84,4.4,'-615','47849',291,476);
INSERT INTO "communes" VALUES('09','Caychax','03',12,18,5.66,'-686','47547',718,2113);
INSERT INTO "communes" VALUES('09','Verniolle','19',2317,2021,11.26,'-764','47869',312,363);
INSERT INTO "communes" VALUES('09','<NAME>','13',37,20,2.89,'-262','47465',851,1248);
INSERT INTO "communes" VALUES('09','Serres-sur-Arget','21',787,705,17.73,'-909','47743',469,1056);
INSERT INTO "communes" VALUES('09','Artigat','06',566,516,23.9,'-996','47929',242,434);
INSERT INTO "communes" VALUES('09','Lesparrou','07',238,265,16.09,'-480','47701',440,761);
INSERT INTO "communes" VALUES('09','Saint-Félix-de-Rieutord','19',435,328,6.77,'-737','47829',348,582);
INSERT INTO "communes" VALUES('09','Unzent','12',123,119,7.9,'-899','47972',265,410);
INSERT INTO "communes" VALUES('09','Bompas','18',204,196,2.75,'-799','47627',466,884);
INSERT INTO "communes" VALUES('09','Seix','11',790,702,86.78,'-1262','47627',495,2838);
INSERT INTO "communes" VALUES('09','Aigues-Vives','10',577,486,5.16,'-512','47774',391,621);
INSERT INTO "communes" VALUES('09','Illier-et-Laramade','20',21,21,5.02,'-886','47541',621,1804);
INSERT INTO "communes" VALUES('09','Pamiers','99',15372,13463,45.85,'-806','47907',256,473);
INSERT INTO "communes" VALUES('09','Cabannes','03',351,360,0.87,'-722','47539',519,581);
INSERT INTO "communes" VALUES('09','Saint-Félix-de-Tournegat','10',144,117,10.51,'-653','47923',249,410);
INSERT INTO "communes" VALUES('09','Verdun','03',231,183,11.71,'-720','47549',513,1461);
INSERT INTO "communes" VALUES('09','Axiat','03',24,35,9.54,'-644','47538',707,2365);
INSERT INTO "communes" VALUES('09','Garanou','03',168,189,3.01,'-650','47518',575,1409);
INSERT INTO "communes" VALUES('09','Arrout','04',75,60,3.02,'-1454','47716',480,959);
INSERT INTO "communes" VALUES('09','La Bastide-de-Besplas','08',390,293,10.22,'-1180','47963',234,391);
INSERT INTO "communes" VALUES('09','Laroque-d''Olmes','10',2720,2667,14.36,'-516','47745',408,735);
INSERT INTO "communes" VALUES('09','Betchat','16',364,294,22,'-1472','47880',296,491);
INSERT INTO "communes" VALUES('09','Sentenac-de-Sérou','02',36,41,13.53,'-1053','47746',492,1615);
INSERT INTO "communes" VALUES('09','Perles-et-Castelet','01',204,159,17.77,'-611','47493',618,2243);
INSERT INTO "communes" VALUES('09','Saint-Pierre-de-Rivière','21',692,564,2.35,'-863','47734',436,569);
INSERT INTO "communes" VALUES('09','Mérigon','14',117,104,6.33,'-1270','47875',319,554);
INSERT INTO "communes" VALUES('09','Vaychis','01',31,33,4.49,'-591','47491',746,1505);
INSERT INTO "communes" VALUES('09','Mijanès','13',91,79,39.95,'-311','47478',1037,2541);
INSERT INTO "communes" VALUES('09','Cescau','04',141,105,5.32,'-1442','47701',480,1107);
INSERT INTO "communes" VALUES('09','Saint-Jean-du-Falga','12',2719,2271,4.03,'-788','47874',289,324);
INSERT INTO "communes" VALUES('09','Escosse','12',414,349,14.83,'-874','47916',269,416);
INSERT INTO "communes" VALUES('09','Ludiès','22',75,48,1.87,'-691','47909',257,329);
INSERT INTO "communes" VALUES('09','Arnave','18',217,166,8.38,'-766','47615',514,1303);
INSERT INTO "communes" VALUES('09','Capoulet-et-Junac','18',184,192,2.78,'-834','47551',559,933);
INSERT INTO "communes" VALUES('09','<NAME>','09',208,189,49.87,'-1071','47632',666,2196);
INSERT INTO "communes" VALUES('09','Sem','20',27,19,5.22,'-909','47520',825,2042);
INSERT INTO "communes" VALUES('09','Cazenave-Serres-et-Allens','18',44,49,16.15,'-738','47600',714,2001);
INSERT INTO "communes" VALUES('09','L''Herm','21',215,177,14.67,'-723','47747',411,960);
INSERT INTO "communes" VALUES('09','Castelnau-Durban','15',420,423,13.18,'-1105','47779',361,931);
INSERT INTO "communes" VALUES('09','Pradettes','10',41,37,3.52,'-574','47767',417,582);
INSERT INTO "communes" VALUES('09','Saurat','18',645,600,44.29,'-888','47642',621,1941);
INSERT INTO "communes" VALUES('09','Coutens','10',158,148,4.19,'-570','47861',278,480);
INSERT INTO "communes" VALUES('09','<NAME>','22',235,140,9.39,'-712','47934',250,327);
INSERT INTO "communes" VALUES('09','Léran','10',596,543,11.92,'-474','47765',375,545);
INSERT INTO "communes" VALUES('09','Dalou','19',782,638,7.66,'-772','47815',337,643);
INSERT INTO "communes" VALUES('09','Carla-Bayle','06',770,645,35.52,'-1048','47945',236,411);
INSERT INTO "communes" VALUES('09','Illartein','04',83,77,3.97,'-1523','47707',555,1721);
INSERT INTO "communes" VALUES('09','Sainte-Croix-Volvestre','14',650,613,19.66,'-1292','47918',266,525);
INSERT INTO "communes" VALUES('09','Bénac','21',172,152,2.8,'-894','47728',455,920);
INSERT INTO "communes" VALUES('09','Madière','12',214,184,10.28,'-913','47895',290,470);
INSERT INTO "communes" VALUES('09','Sor','04',35,33,1.08,'-1474','47689',520,760);
INSERT INTO "communes" VALUES('09','Buzan','04',24,43,8.55,'-1526','47713',600,1371);
INSERT INTO "communes" VALUES('09','Ornolac-Ussat-les-Bains','18',257,222,11.99,'-783','47577',481,1482);
INSERT INTO "communes" VALUES('09','Ustou','11',334,301,98.34,'-1192','47554',560,2803);
INSERT INTO "communes" VALUES('09','Mauvezin-de-Sainte-Croix','14',42,48,5.2,'-1231','47865',387,693);
INSERT INTO "communes" VALUES('09','Limbrassac','10',108,98,12.42,'-547','47797',360,642);
INSERT INTO "communes" VALUES('09','Régat','10',83,62,2.16,'-501','47765',403,524);
INSERT INTO "communes" VALUES('09','Taurignan-Castet','16',167,151,6.78,'-1384','47822',354,584);
INSERT INTO "communes" VALUES('09','Carcanières','13',72,46,6.5,'-254','47460',895,1391);
INSERT INTO "communes" VALUES('09','Lacourt','15',198,264,16.5,'-1291','47718',411,1232);
INSERT INTO "communes" VALUES('09','Sinsat','03',104,109,4.01,'-749','47554',490,1481);
INSERT INTO "communes" VALUES('09','Villeneuve-d''Olmes','07',1125,1294,5.92,'-574','47675',544,880);
INSERT INTO "communes" VALUES('09','Montbel','10',114,123,17.36,'-400','47751',345,587);
INSERT INTO "communes" VALUES('09','Unac','03',121,117,2.65,'-624','47512',598,1160);
INSERT INTO "communes" VALUES('09','Lorp-Sentaraille','16',1324,1143,6.15,'-1352','47788',354,418);
INSERT INTO "communes" VALUES('09','Aleu','09',152,122,13.95,'-1189','47659',496,1105);
INSERT INTO "communes" VALUES('09','Durban-sur-Arize','02',163,135,6.75,'-1103','47799',335,622);
INSERT INTO "communes" VALUES('09','Saint-Martin-d''Oydes','12',261,225,11.64,'-934','47967',259,381);
INSERT INTO "communes" VALUES('09','Montels','02',161,124,3.73,'-960','47783',413,544);
INSERT INTO "communes" VALUES('09','Penne','10',113,129,21.57,'-651','47940',244,410);
INSERT INTO "communes" VALUES('09','Montaut','17',684,582,35.03,'-770','47986',241,295);
INSERT INTO "communes" VALUES('09','Arvigna','22',215,156,8.6,'-667','47845',279,490);
INSERT INTO "communes" VALUES('09','Saint-Bauzeil','19',64,56,4.47,'-849','47863',317,473);
INSERT INTO "communes" VALUES('09','<NAME>','08',1215,1111,39.36,'-1084','47867',275,580);
INSERT INTO "communes" VALUES('09','Goulier','20',40,42,10.22,'-926','47506',840,2472);
INSERT INTO "communes" VALUES('09','Teilhet','10',172,151,8.96,'-619','47880',262,424);
INSERT INTO "communes" VALUES('09','Mercenac','16',374,254,13.57,'-1399','47823',328,544);
INSERT INTO "communes" VALUES('09','Gestiès','20',9,10,27.46,'-848','47518',827,2742);
INSERT INTO "communes" VALUES('09','Cos','21',375,258,6.4,'-852','47753',440,720);
INSERT INTO "communes" VALUES('09','Péreille','07',193,178,5.36,'-594','47710',485,841);
INSERT INTO "communes" VALUES('09','Uchentein','04',24,26,4.02,'-1484','47653',640,1360);
INSERT INTO "communes" VALUES('09','Soueix-Rogalle','11',406,361,13.65,'-1250','47659',463,1120);
INSERT INTO "communes" VALUES('09','Montesquieu-Avantès','16',250,240,16.52,'-1266','47804',430,690);
INSERT INTO "communes" VALUES('09','Montaillou','01',32,14,8.61,'-487','47542',1181,1806);
INSERT INTO "communes" VALUES('09','Castillon-en-Couserans','04',416,423,4.94,'-1449','47690',518,1320);
INSERT INTO "communes" VALUES('09','<NAME>','10',724,674,4.77,'-475','47729',428,721);
INSERT INTO "communes" VALUES('09','Moulin-Neuf','10',210,181,2.62,'-436','47860',307,480);
INSERT INTO "communes" VALUES('09','Trémoulet','17',101,66,3.89,'-687','47952',245,286);
INSERT INTO "communes" VALUES('09','Ganac','21',692,654,20.19,'-860','47719',420,1606);
INSERT INTO "communes" VALUES('09','Quérigut','13',141,116,36.4,'-264','47443',1022,2359);
INSERT INTO "communes" VALUES('09','Luzenac','03',551,630,26.43,'-637','47515',594,2247);
INSERT INTO "communes" VALUES('09','Albiès','03',134,151,7.69,'-705','47530',531,1887);
INSERT INTO "communes" VALUES('09','Saint-Jean-d''Aigues-Vives','07',403,433,4.52,'-519','47694',482,767);
INSERT INTO "communes" VALUES('09','Miglos','18',111,81,18.76,'-819','47546',600,1903);
INSERT INTO "communes" VALUES('09','Lissac','17',208,176,3.77,'-917','48077',212,334);
INSERT INTO "communes" VALUES('09','Orgibet','04',165,162,7.45,'-1556','47704',587,1613);
INSERT INTO "communes" VALUES('09','Bordes-sur-Lez','04',170,164,50.46,'-1452','47664',548,2838);
INSERT INTO "communes" VALUES('09','Prat-Bonrepaux','16',834,821,14.43,'-1464','47810',319,727);
INSERT INTO "communes" VALUES('09','Moulis','15',789,759,36.55,'-1384','47735',412,1608);
INSERT INTO "communes" VALUES('09','Vira','19',172,130,5.28,'-642','47835',288,577);
INSERT INTO "communes" VALUES('09','Aston','03',218,238,153.8,'-737','47527',554,2912);
INSERT INTO "communes" VALUES('09','Salsein','04',45,41,5.73,'-1477','47677',588,1640);
INSERT INTO "communes" VALUES('09','Lasserre','14',205,169,8.47,'-1296','47855',360,576);
INSERT INTO "communes" VALUES('09','Brie','17',191,149,7.06,'-909','48006',255,363);
INSERT INTO "communes" VALUES('09','Freychenet','21',95,83,24.69,'-685','47676',557,2001);
INSERT INTO "communes" VALUES('09','Surba','18',352,343,2.22,'-846','47621',469,1064);
INSERT INTO "communes" VALUES('09','Château-Verdun','03',49,39,0.79,'-730','47536',529,766);
INSERT INTO "communes" VALUES('09','Ilhat','07',122,107,6.89,'-613','47730',397,770);
INSERT INTO "communes" VALUES('09','Saint-Amadou','22',231,215,4.64,'-681','47901',253,334);
INSERT INTO "communes" VALUES('09','Aucazein','04',64,57,6.02,'-1513','47706',531,1682);
INSERT INTO "communes" VALUES('09','<NAME>','13',46,79,12.97,'-285','47462',983,2431);
INSERT INTO "communes" VALUES('09','Vicdessos','20',556,463,6.01,'-931','47522',652,1585);
INSERT INTO "communes" VALUES('09','Tarascon-sur-Ariège','18',3468,3429,8.65,'-812','47608',463,1187);
INSERT INTO "communes" VALUES('09','Antras','04',62,58,20.02,'-1548','47646',777,2268);
INSERT INTO "communes" VALUES('09','Arignac','18',712,581,8.84,'-818','47634',467,1371);
INSERT INTO "communes" VALUES('09','<NAME>','10',479,456,6.13,'-462','47730',406,763);
INSERT INTO "communes" VALUES('09','Montagagne','02',49,57,7.06,'-1029','47750',469,1386);
INSERT INTO "communes" VALUES('09','Saint-Ybars','06',665,551,24.31,'-1056','48042',213,334);
INSERT INTO "communes" VALUES('09','Alos','15',130,135,24.26,'-1324','47676',553,1874);
INSERT INTO "communes" VALUES('09','Mauvezin-de-Prat','16',89,68,1.85,'-1489','47812',325,601);
INSERT INTO "communes" VALUES('09','Coussa','19',223,201,7.71,'-730','47848',312,481);
INSERT INTO "communes" VALUES('09','Clermont','15',95,101,7.41,'-1150','47822',344,571);
INSERT INTO "communes" VALUES('09','Rimont','15',584,497,28.4,'-1171','47773',386,1059);
INSERT INTO "communes" VALUES('09','Augirein','04',64,73,9.84,'-1577','47702',631,1721);
INSERT INTO "communes" VALUES('09','Ercé','11',560,532,40.75,'-1163','47610',574,1905);
INSERT INTO "communes" VALUES('09','Orus','20',28,18,9.12,'-921','47536',819,1980);
INSERT INTO "communes" VALUES('09','Soula','21',206,159,11.16,'-714','47715',480,1011);
INSERT INTO "communes" VALUES('09','Caumont','16',310,312,9.22,'-1390','47812',338,528);
INSERT INTO "communes" VALUES('09','Villeneuve-du-Paréage','22',669,523,11.47,'-777','47949',266,290);
INSERT INTO "communes" VALUES('09','Saint-Martin-de-Caralp','21',359,288,9.16,'-879','47768',481,917);
INSERT INTO "communes" VALUES('09','Argein','04',177,149,11.09,'-1493','47701',517,1675);
INSERT INTO "communes" VALUES('09','Gourbit','18',93,61,17.95,'-893','47604',671,2162);
INSERT INTO "communes" VALUES('09','Quié','18',293,342,2.51,'-825','47607',475,1040);
INSERT INTO "communes" VALUES('09','Tignac','01',19,14,3.53,'-602','47496',720,1440);
INSERT INTO "communes" VALUES('09','Caussou','03',65,84,15.83,'-590','47521',760,1920);
INSERT INTO "communes" VALUES('09','Siguer','20',99,97,38.73,'-857','47516',615,2902);
INSERT INTO "communes" VALUES('09','Orgeix','01',88,71,18.39,'-522','47454',800,2481);
INSERT INTO "communes" VALUES('09','Saint-Quirc','17',374,267,3.75,'-927','48084',207,292);
INSERT INTO "communes" VALUES('09','Fornex','08',109,126,9.62,'-1210','47964',233,422);
INSERT INTO "communes" VALUES('10','Montmorency-Beaufort','08',125,120,9.38,'2474','53874',112,182);
INSERT INTO "communes" VALUES('10','Lignières','07',235,248,25.79,'1811','53280',135,233);
INSERT INTO "communes" VALUES('10','Prusy','07',105,108,3.95,'1898','53302',194,236);
INSERT INTO "communes" VALUES('10','Villechétif','22',945,670,12.24,'2009','53679',103,168);
INSERT INTO "communes" VALUES('10','Chennegy','11',451,398,23.19,'1686','53583',146,254);
INSERT INTO "communes" VALUES('10','Étourvy','07',208,196,15.41,'1993','53286',194,312);
INSERT INTO "communes" VALUES('10','Morvilliers','21',313,264,15.64,'2536','53756',128,165);
INSERT INTO "communes" VALUES('10','Fontaine','03',285,254,5.68,'2643','53571',167,346);
INSERT INTO "communes" VALUES('10','Saint-Pouange','05',906,719,10.02,'1895','53583',114,146);
INSERT INTO "communes" VALUES('10','Magnant','10',179,190,15.32,'2318','53522',168,265);
INSERT INTO "communes" VALUES('10','Palis','13',620,555,20.89,'1524','53653',136,267);
INSERT INTO "communes" VALUES('10','Herbisse','02',177,148,22.04,'1973','54026',96,168);
INSERT INTO "communes" VALUES('10','Granges','07',81,72,1.61,'1908','53398',132,151);
INSERT INTO "communes" VALUES('10','Crésantignes','05',285,271,2.1,'1869','53490',152,195);
INSERT INTO "communes" VALUES('10','Bagneux-la-Fosse','19',175,197,22.93,'2179','53325',199,320);
INSERT INTO "communes" VALUES('10','Saint-Julien-les-Villas','32',6883,6425,5.26,'1957','53635',106,126);
INSERT INTO "communes" VALUES('10','Précy-Saint-Martin','06',205,225,6.57,'2349','53796',110,154);
INSERT INTO "communes" VALUES('10','Estissac','11',1820,1726,25.66,'1633','53632',129,235);
INSERT INTO "communes" VALUES('10','Fontaine-les-Grès','14',863,903,12.16,'1746','53804',89,146);
INSERT INTO "communes" VALUES('10','Saint-Jean-de-Bonneval','05',371,351,6.14,'1902','53525',124,171);
INSERT INTO "communes" VALUES('10','Vitry-le-Croisé','10',256,291,32.72,'2478','53495',221,347);
INSERT INTO "communes" VALUES('10','Aubeterre','02',254,167,11.66,'1982','53811',115,187);
INSERT INTO "communes" VALUES('10','Bernon','07',196,196,17.91,'1843','53320',134,221);
INSERT INTO "communes" VALUES('10','Dampierre','18',292,302,29.36,'2257','53945',104,196);
INSERT INTO "communes" VALUES('10','Poligny','04',77,28,1.59,'2226','53527',138,173);
INSERT INTO "communes" VALUES('10','Lévigny','21',103,110,13.75,'2634','53669',195,305);
INSERT INTO "communes" VALUES('10','Vailly','23',305,247,11.25,'1984','53744',123,215);
INSERT INTO "communes" VALUES('10','Saint-Lyé','29',2911,2631,32.7,'1850','53737',92,212);
INSERT INTO "communes" VALUES('10','Bessy','14',130,122,7.03,'1874','53941',80,109);
INSERT INTO "communes" VALUES('10','Pel-et-Der','06',145,141,13.18,'2310','53779',110,153);
INSERT INTO "communes" VALUES('10','Saint-Léger-près-Troyes','05',744,616,9.21,'1935','53596',113,131);
INSERT INTO "communes" VALUES('10','Lignol-le-Château','03',202,175,21.85,'2746','53582',172,323);
INSERT INTO "communes" VALUES('10','Puits-et-Nuisement','10',205,192,12.19,'2403','53570',166,251);
INSERT INTO "communes" VALUES('10','Bourguignons','04',276,282,16.42,'2247','53479',142,240);
INSERT INTO "communes" VALUES('10','Maupas','05',102,82,4.26,'1931','53484',129,159);
INSERT INTO "communes" VALUES('10','Châtres','14',644,579,15.76,'1680','53891',77,107);
INSERT INTO "communes" VALUES('10','Charny-le-Bachot','14',212,173,13.64,'1786','53948',76,117);
INSERT INTO "communes" VALUES('10','Villiers-sous-Praslin','04',74,60,8.42,'2123','53402',175,242);
INSERT INTO "communes" VALUES('10','Torcy-le-Grand','02',427,415,7.54,'2037','53926',87,145);
INSERT INTO "communes" VALUES('10','Chauchigny','14',254,253,9.72,'1812','53804',87,198);
INSERT INTO "communes" VALUES('10','Rhèges','14',225,191,14.8,'1845','53942',79,119);
INSERT INTO "communes" VALUES('10','Précy-Notre-Dame','06',81,68,4.53,'2334','53790',111,137);
INSERT INTO "communes" VALUES('10','Brienne-la-Vieille','06',451,421,16.21,'2436','53750',117,153);
INSERT INTO "communes" VALUES('10','Vulaines','01',238,211,8.72,'1427','53593',107,193);
INSERT INTO "communes" VALUES('10','Couvignon','03',224,237,13.43,'2572','53564',193,362);
INSERT INTO "communes" VALUES('10','Saint-Usage','10',87,88,16.3,'2526','53445',254,352);
INSERT INTO "communes" VALUES('10','Lhuître','18',279,233,35.82,'2126','53967',93,196);
INSERT INTO "communes" VALUES('10','Lagesse','07',180,169,12.57,'1997','53357',163,258);
INSERT INTO "communes" VALUES('10','Montsuzain','02',358,286,19.62,'1995','53827',108,203);
INSERT INTO "communes" VALUES('10','Vougrey','07',46,44,4.17,'2101','53431',167,232);
INSERT INTO "communes" VALUES('10','Fralignes','04',76,65,5.14,'2264','53516',158,241);
INSERT INTO "communes" VALUES('10','Crancey','20',819,838,8.81,'1447','53907',66,130);
INSERT INTO "communes" VALUES('10','Saint-Léger-sous-Brienne','06',393,344,13.52,'2407','53782',114,163);
INSERT INTO "communes" VALUES('10','<NAME>','96',13228,14442,10.48,'1898','53680',98,164);
INSERT INTO "communes" VALUES('10','Crespy-le-Neuf','21',146,146,10.19,'2509','53774',122,161);
INSERT INTO "communes" VALUES('10','Coursan-en-Othe','09',99,96,9.27,'1669','53413',128,302);
INSERT INTO "communes" VALUES('10','Échemines','13',81,85,18.2,'1662','53765',115,182);
INSERT INTO "communes" VALUES('10','Bligny','25',194,207,22.74,'2533','53524',199,333);
INSERT INTO "communes" VALUES('10','Bayel','03',854,858,23,'2710','53554',167,329);
INSERT INTO "communes" VALUES('10','Sainte-Savine','28',10196,10124,7.55,'1902','53661',106,150);
INSERT INTO "communes" VALUES('10','Fresnoy-le-Château','12',242,222,11.48,'2097','53566',112,158);
INSERT INTO "communes" VALUES('10','<NAME>','02',272,198,21.01,'2045','53944',86,163);
INSERT INTO "communes" VALUES('10','Courtenot','04',227,242,8.37,'2186','53499',137,206);
INSERT INTO "communes" VALUES('10','Paisy-Cosdon','01',337,264,17.84,'1529','53594',118,240);
INSERT INTO "communes" VALUES('10','Ville-sur-Terre','21',114,145,16.1,'2679','53702',145,237);
INSERT INTO "communes" VALUES('10','Neuville-sur-Seine','15',397,357,14.42,'2305','53380',160,318);
INSERT INTO "communes" VALUES('10','Brillecourt','18',92,82,5.73,'2254','53857',100,164);
INSERT INTO "communes" VALUES('10','Champigny-sur-Aube','02',88,59,6.71,'1929','53956',82,122);
INSERT INTO "communes" VALUES('10','<NAME>','20',215,189,3.73,'1461','53825',89,156);
INSERT INTO "communes" VALUES('10','Viâpres-le-Petit','14',127,107,11.13,'1895','53958',81,134);
INSERT INTO "communes" VALUES('10','Villery','05',273,286,3.59,'1869','53523',144,292);
INSERT INTO "communes" VALUES('10','Barbuise','26',416,345,18.09,'1378','53954',62,162);
INSERT INTO "communes" VALUES('10','Saint-Lupien','13',244,222,22.92,'1517','53731',118,181);
INSERT INTO "communes" VALUES('10','Montceaux-lès-Vaudes','05',264,217,10.11,'2025','53509',126,173);
INSERT INTO "communes" VALUES('10','Rouilly-Sacey','17',378,340,19.48,'2140','53718',113,188);
INSERT INTO "communes" VALUES('10','Nogent-sur-Seine','16',6064,5960,20.08,'1296','53882',60,113);
INSERT INTO "communes" VALUES('10','Val-d''Auzon','17',403,351,27.58,'2252','53786',103,181);
INSERT INTO "communes" VALUES('10','<NAME>','05',240,246,10.48,'1971','53514',121,170);
INSERT INTO "communes" VALUES('10','Thieffrain','10',161,143,7.36,'2338','53551',164,225);
INSERT INTO "communes" VALUES('10','Mesnil-la-Comtesse','18',35,52,0.95,'2066','53885',110,170);
INSERT INTO "communes" VALUES('10','Fay-lès-Marcilly','13',102,85,5.76,'1407','53781',124,178);
INSERT INTO "communes" VALUES('10','Assenay','05',151,95,3.42,'1914','53536',121,151);
INSERT INTO "communes" VALUES('10','Mesnil-Saint-Loup','13',557,523,11.4,'1587','53668',134,197);
INSERT INTO "communes" VALUES('10','Bordes-Aumont','05',540,294,5.49,'1984','53540',118,142);
INSERT INTO "communes" VALUES('10','Coussegrey','07',159,194,16.16,'1867','53283',162,285);
INSERT INTO "communes" VALUES('10','Juvancourt','03',148,148,8.29,'2736','53461',190,358);
INSERT INTO "communes" VALUES('10','Saint-Martin-de-Bossenay','20',381,316,16.26,'1496','53823',83,153);
INSERT INTO "communes" VALUES('10','Viviers-sur-Artaut','10',111,127,6.04,'2400','53440',196,348);
INSERT INTO "communes" VALUES('10','Bouy-sur-Orvin','16',57,56,6.7,'1291','53792',77,129);
INSERT INTO "communes" VALUES('10','Maizières-lès-Brienne','06',183,164,9.5,'2501','53819',116,154);
INSERT INTO "communes" VALUES('10','Fontaine-Mâcon','16',618,425,16.01,'1303','53850',71,121);
INSERT INTO "communes" VALUES('10','Creney-près-Troyes','23',1610,1426,15.76,'1989','53703',104,221);
INSERT INTO "communes" VALUES('10','Montier-en-l''Isle','03',201,237,10.55,'2585','53623',152,314);
INSERT INTO "communes" VALUES('10','Montgueux','28',401,373,11.25,'1803','53673',145,268);
INSERT INTO "communes" VALUES('10','Bréviandes','32',2284,1926,6.14,'1954','53618',109,131);
INSERT INTO "communes" VALUES('10','Dierrey-Saint-Julien','13',258,231,21.25,'1659','53680',132,227);
INSERT INTO "communes" VALUES('10','Virey-sous-Bar','04',641,663,10.85,'2187','53490',137,208);
INSERT INTO "communes" VALUES('10','Buxeuil','04',141,145,4.43,'2289','53394',159,313);
INSERT INTO "communes" VALUES('10','Mussy-sur-Seine','15',1119,1276,28.07,'2400','53308',183,347);
INSERT INTO "communes" VALUES('10','Saint-Nabord-sur-Aube','18',134,122,8.55,'2086','53919',90,162);
INSERT INTO "communes" VALUES('10','Montfey','09',137,134,11.49,'1709','53407',123,186);
INSERT INTO "communes" VALUES('10','Blignicourt','06',42,55,4.27,'2439','53847',113,118);
INSERT INTO "communes" VALUES('10','Nogent-en-Othe','01',38,38,9.06,'1633','53494',195,280);
INSERT INTO "communes" VALUES('10','Gyé-sur-Seine','15',523,514,23.66,'2325','53366',169,333);
INSERT INTO "communes" VALUES('10','Auxon','09',965,928,25.49,'1758','53449',122,294);
INSERT INTO "communes" VALUES('10','Croûtes','09',98,113,7.11,'1697','53330',109,155);
INSERT INTO "communes" VALUES('10','Saint-Aubin','16',595,537,17.76,'1358','53862',63,177);
INSERT INTO "communes" VALUES('10','Méry-sur-Seine','14',1430,1330,12.42,'1725','53901',77,97);
INSERT INTO "communes" VALUES('10','Racines','09',175,179,7.5,'1675','53389',118,177);
INSERT INTO "communes" VALUES('10','Vosnon','09',207,164,12.83,'1673','53454',158,300);
INSERT INTO "communes" VALUES('10','Loches-sur-Ource','10',370,397,13.71,'2409','53404',170,346);
INSERT INTO "communes" VALUES('10','Nogent-sur-Aube','18',349,316,16.03,'2191','53882',95,182);
INSERT INTO "communes" VALUES('10','Saint-Flavy','13',267,210,17.24,'1582','53782',109,180);
INSERT INTO "communes" VALUES('10','Magnicourt','08',67,69,7.89,'2271','53834',100,143);
INSERT INTO "communes" VALUES('10','Polisot','15',339,306,10.52,'2262','53413',153,282);
INSERT INTO "communes" VALUES('10','Dommartin-le-Coq','18',60,60,6.34,'2245','53890',98,162);
INSERT INTO "communes" VALUES('10','Saint-Nicolas-la-Chapelle','16',77,79,11.54,'1256','53923',60,166);
INSERT INTO "communes" VALUES('10','Vaucogne','18',78,65,16.51,'2231','53920',98,195);
INSERT INTO "communes" VALUES('10','Neuville-sur-Vanne','11',425,340,17.25,'1604','53617',124,238);
INSERT INTO "communes" VALUES('10','Jeugny','05',461,387,15.85,'1889','53479',138,188);
INSERT INTO "communes" VALUES('10','Brévonnes','17',708,585,19.77,'2292','53730',111,153);
INSERT INTO "communes" VALUES('10','Payns','29',1255,895,16.97,'1823','53757',89,138);
INSERT INTO "communes" VALUES('10','Marnay-sur-Seine','16',246,241,10.1,'1358','53903',62,98);
INSERT INTO "communes" VALUES('10','Mergey','23',678,606,15.01,'1853','53762',91,196);
INSERT INTO "communes" VALUES('10','Mesnil-Lettre','18',59,47,8.89,'2144','53840',121,183);
INSERT INTO "communes" VALUES('10','Juzanvigny','21',122,134,7.64,'2503','53794',119,161);
INSERT INTO "communes" VALUES('10','Verpillières-sur-Ource','10',115,121,17.93,'2481','53379',185,346);
INSERT INTO "communes" VALUES('10','Sainte-Maure','23',1412,1211,20.92,'1916','53716',96,213);
INSERT INTO "communes" VALUES('10','Ferreux-Quincey','16',353,337,15.32,'1418','53834',73,188);
INSERT INTO "communes" VALUES('10','Brienne-le-Château','06',3060,3332,21.56,'2432','53768',112,167);
INSERT INTO "communes" VALUES('10','Prémierfait','14',103,73,14.79,'1879','53892',94,134);
INSERT INTO "communes" VALUES('10','Soulaines-Dhuys','21',320,264,20.06,'2663','53749',127,196);
INSERT INTO "communes" VALUES('10','Saint-Étienne-sous-Barbuise','02',135,118,10.84,'1970','53889',96,140);
INSERT INTO "communes" VALUES('10','Messon','11',449,296,11.49,'1744','53628',151,250);
INSERT INTO "communes" VALUES('10','Rumilly-lès-Vaudes','04',474,484,42.38,'2089','53492',128,197);
INSERT INTO "communes" VALUES('10','Ailleville','03',276,218,5.01,'2605','53614',156,296);
INSERT INTO "communes" VALUES('10','Planty','13',211,168,10.82,'1463','53635',143,263);
INSERT INTO "communes" VALUES('10','Pont-sur-Seine','16',995,935,16.15,'1398','53910',63,208);
INSERT INTO "communes" VALUES('10','Torcy-le-Petit','02',81,84,7.29,'2064','53924',89,145);
INSERT INTO "communes" VALUES('10','Jaucourt','03',174,171,6.61,'2567','53621',147,290);
INSERT INTO "communes" VALUES('10','Longchamp-sur-Aujon','03',423,450,16.39,'2772','53500',182,334);
INSERT INTO "communes" VALUES('10','Saint-Germain','31',2276,2151,13.8,'1884','53620',113,252);
INSERT INTO "communes" VALUES('10','Fontette','10',183,176,19.36,'2525','53424',230,357);
INSERT INTO "communes" VALUES('10','Fuligny','21',52,54,10.34,'2634','53702',138,219);
INSERT INTO "communes" VALUES('10','Plessis-Barbuise','26',155,126,5.5,'1387','53974',66,118);
INSERT INTO "communes" VALUES('10','Laubressel','12',474,329,16.24,'2084','53665',112,196);
INSERT INTO "communes" VALUES('10','Mesgrigny','14',267,214,7.27,'1718','53874',78,112);
INSERT INTO "communes" VALUES('10','Marolles-lès-Bailly','04',101,100,4.4,'2232','53539',129,192);
INSERT INTO "communes" VALUES('10','Villenauxe-la-Grande','26',2788,2666,18.05,'1356','53990',72,186);
INSERT INTO "communes" VALUES('10','Villemoiron-en-Othe','01',228,203,12.49,'1602','53556',142,244);
INSERT INTO "communes" VALUES('10','Pont-Sainte-Marie','23',4786,4936,3.99,'1961','53690',102,121);
INSERT INTO "communes" VALUES('10','Vaupoisson','18',145,139,10.79,'2110','53908',91,181);
INSERT INTO "communes" VALUES('10','Balnot-sur-Laignes','19',159,176,10.13,'2254','53369',160,310);
INSERT INTO "communes" VALUES('10','La Loge-aux-Chèvres','25',83,79,2.82,'2307','53637',148,181);
INSERT INTO "communes" VALUES('10','Mesnil-Sellières','17',568,377,8.43,'2094','53711',135,188);
INSERT INTO "communes" VALUES('10','Chamoy','09',482,424,16.7,'1815','53465',133,283);
INSERT INTO "communes" VALUES('10','Molins-sur-Aube','06',113,85,6.26,'2270','53817',102,133);
INSERT INTO "communes" VALUES('10','Bercenay-en-Othe','11',437,376,17.85,'1730','53565',164,282);
INSERT INTO "communes" VALUES('10','Courcelles-sur-Voire','06',34,25,4.9,'2447','53858',113,172);
INSERT INTO "communes" VALUES('10','Éguilly-sous-Bois','10',131,98,10.11,'2444','53489',211,336);
INSERT INTO "communes" VALUES('10','Barberey-Saint-Sulpice','29',1220,766,9.36,'1884','53709',97,182);
INSERT INTO "communes" VALUES('10','Vanlay','07',310,321,25.91,'1868','53364',126,227);
INSERT INTO "communes" VALUES('10','Buxières-sur-Arce','10',157,149,10.43,'2357','53472',182,295);
INSERT INTO "communes" VALUES('10','Montaulin','12',763,628,12.41,'2065','53615',107,132);
INSERT INTO "communes" VALUES('10','Maizières-la-Grande-Paroisse','20',1442,1491,20.46,'1615','53902',73,94);
INSERT INTO "communes" VALUES('10','Baroville','03',342,332,17.32,'2650','53547',182,366);
INSERT INTO "communes" VALUES('10','Charmont-sous-Barbuise','02',1027,676,38.33,'2042','53787',119,212);
INSERT INTO "communes" VALUES('10','Perthes-lès-Brienne','06',83,49,3.63,'2448','53812',114,128);
INSERT INTO "communes" VALUES('10','Trouans','18',241,207,29.75,'2113','54033',108,200);
INSERT INTO "communes" VALUES('10','Jessains','25',296,243,10.88,'2490','53663',140,228);
INSERT INTO "communes" VALUES('10','Thennelières','12',343,269,6.73,'2044','53656',112,157);
INSERT INTO "communes" VALUES('10','Sommeval','05',328,279,9.57,'1810','53518',175,298);
INSERT INTO "communes" VALUES('10','Villemorien','04',216,172,13.8,'2177','53428',161,256);
INSERT INTO "communes" VALUES('10','Marigny-le-Châtel','13',1653,1517,20.31,'1556','53781',101,182);
INSERT INTO "communes" VALUES('10','Verricourt','18',41,44,6.93,'2235','53835',100,152);
INSERT INTO "communes" VALUES('10','Braux','08',111,121,15.21,'2372','53871',104,167);
INSERT INTO "communes" VALUES('10','Chalette-sur-Voire','08',143,133,5.64,'2320','53828',106,157);
INSERT INTO "communes" VALUES('10','Feuges','02',283,206,10.99,'1970','53775',140,223);
INSERT INTO "communes" VALUES('10','Coclois','18',189,144,6.92,'2223','53859',99,157);
INSERT INTO "communes" VALUES('10','Avant-lès-Marcilly','13',499,432,27.62,'1370','53803',85,196);
INSERT INTO "communes" VALUES('10','Fontenay-de-Bossery','16',78,78,8.4,'1244','53837',63,117);
INSERT INTO "communes" VALUES('10','Vendeuvre-sur-Barse','25',2400,2625,51.94,'2368','53598',144,233);
INSERT INTO "communes" VALUES('10','Juvanzé','25',28,38,4.94,'2471','53685',134,172);
INSERT INTO "communes" VALUES('10','Montpothier','26',334,242,7.72,'1313','53970',88,178);
INSERT INTO "communes" VALUES('10','La Villeneuve-au-Chêne','25',436,413,10.94,'2280','53599',134,177);
INSERT INTO "communes" VALUES('10','Landreville','10',538,545,14.2,'2374','53413',164,321);
INSERT INTO "communes" VALUES('10','Montigny-les-Monts','09',256,193,14.63,'1789','53448',123,280);
INSERT INTO "communes" VALUES('10','Avant-lès-Ramerupt','18',149,166,20.77,'2167','53831',108,193);
INSERT INTO "communes" VALUES('10','Piney','17',1353,1223,70.98,'2218','53737',107,177);
INSERT INTO "communes" VALUES('10','Charmoy','13',67,63,6.89,'1389','53781',119,164);
INSERT INTO "communes" VALUES('10','Romilly-sur-Seine','97',13526,14610,25.32,'1545','53907',67,112);
INSERT INTO "communes" VALUES('10','Merrey-sur-Arce','04',322,305,8.39,'2284','53440',149,281);
INSERT INTO "communes" VALUES('10','Mailly-le-Camp','02',1777,1424,42.7,'2078','54076',118,202);
INSERT INTO "communes" VALUES('10','Balnot-la-Grange','07',139,158,20.11,'2068','53318',210,318);
INSERT INTO "communes" VALUES('10','Courceroy','16',119,100,6.69,'1197','53849',58,87);
INSERT INTO "communes" VALUES('10','Saint-André-les-Vergers','31',11335,11103,5.86,'1908','53644',106,129);
INSERT INTO "communes" VALUES('10','Courteron','15',118,136,10.33,'2343','53355',172,310);
INSERT INTO "communes" VALUES('10','Proverville','03',255,291,6.98,'2621','53590',156,316);
INSERT INTO "communes" VALUES('10','Polisy','15',173,214,11.35,'2271','53401',157,292);
INSERT INTO "communes" VALUES('10','Amance','25',275,235,22.88,'2421','53661',132,213);
INSERT INTO "communes" VALUES('10','Thil','21',154,138,19.42,'2721','53719',166,260);
INSERT INTO "communes" VALUES('10','Semoine','02',222,181,22.55,'1946','54088',121,169);
INSERT INTO "communes" VALUES('10','Bouy-Luxembourg','17',207,160,12.04,'2134','53754',129,203);
INSERT INTO "communes" VALUES('10','Saint-Léger-sous-Margerie','08',54,81,6.58,'2390','53924',111,151);
INSERT INTO "communes" VALUES('10','Grandville','18',103,86,9.24,'2105','53995',102,163);
INSERT INTO "communes" VALUES('10','Chaserey','07',51,48,6.86,'1924','53287',186,287);
INSERT INTO "communes" VALUES('10','Fravaux','25',46,57,3.72,'2557','53598',184,295);
INSERT INTO "communes" VALUES('10','Pouan-les-Vallées','02',510,442,16.61,'1920','53935',82,109);
INSERT INTO "communes" VALUES('10','Villy-en-Trodes','04',284,202,17.91,'2272','53554',133,227);
INSERT INTO "communes" VALUES('10','Rouilly-Saint-Loup','12',554,503,11.26,'2016','53625',105,128);
INSERT INTO "communes" VALUES('10','Pougy','18',279,246,8.96,'2244','53830',102,147);
INSERT INTO "communes" VALUES('10','Noës-près-Troyes','33',3173,3465,0.73,'1894','53669',104,111);
INSERT INTO "communes" VALUES('10','Saint-Mards-en-Othe','01',655,543,31.4,'1625','53525',158,267);
INSERT INTO "communes" VALUES('10','Buchères','05',1395,1345,7.14,'1972','53596',111,133);
INSERT INTO "communes" VALUES('10','Poivres','02',161,155,42.51,'2134','54093',120,228);
INSERT INTO "communes" VALUES('10','Faux-Villecerf','13',215,217,21.3,'1555','53705',139,237);
INSERT INTO "communes" VALUES('10','Thors','21',75,97,8.33,'2750','53671',207,295);
INSERT INTO "communes" VALUES('10','Balignicourt','08',77,94,13.06,'2360','53907',109,166);
INSERT INTO "communes" VALUES('10','Metz-Robert','07',52,51,4.26,'1970','53418',133,176);
INSERT INTO "communes" VALUES('10','Urville','03',158,148,12.2,'2574','53523',212,365);
INSERT INTO "communes" VALUES('10','Ervy-le-Châtel','09',1229,1214,21.39,'1749','53379',115,186);
INSERT INTO "communes" VALUES('10','Gélannes','20',722,706,12.13,'1484','53871',73,144);
INSERT INTO "communes" VALUES('10','Rouvres-les-Vignes','03',113,122,8.28,'2762','53601',207,345);
INSERT INTO "communes" VALUES('10','Bétignicourt','06',30,37,3.18,'2354','53830',107,168);
INSERT INTO "communes" VALUES('10','Droupt-Saint-Basle','14',327,290,18.61,'1782','53862',82,129);
INSERT INTO "communes" VALUES('10','Hampigny','06',257,241,9.49,'2504','53840',113,128);
INSERT INTO "communes" VALUES('10','Blaincourt-sur-Aube','06',96,87,5.79,'2353','53767',112,139);
INSERT INTO "communes" VALUES('10','Saint-Oulph','14',218,192,10.94,'1701','53910',78,97);
INSERT INTO "communes" VALUES('10','Chaudrey','18',153,144,13.68,'2153','53894',94,204);
INSERT INTO "communes" VALUES('10','Ortillon','18',36,32,8.02,'2124','53903',92,193);
INSERT INTO "communes" VALUES('10','Fouchères','04',520,450,8.58,'2142','53499',130,192);
INSERT INTO "communes" VALUES('10','Eaux-Puiseaux','09',234,194,8.61,'1724','53466',157,280);
INSERT INTO "communes" VALUES('10','Chavanges','08',667,689,29.79,'2486','53899',114,182);
INSERT INTO "communes" VALUES('10','Arrelles','19',87,73,14.36,'2155','53389',170,288);
INSERT INTO "communes" VALUES('10','Mathaux','06',242,190,12.44,'2380','53746',113,146);
INSERT INTO "communes" VALUES('10','Gumery','16',235,216,10.92,'1215','53831',59,114);
INSERT INTO "communes" VALUES('10','Rosières-près-Troyes','32',3353,2602,6.23,'1928','53623',112,130);
INSERT INTO "communes" VALUES('10','Épagne','06',114,102,3.94,'2365','53771',112,157);
INSERT INTO "communes" VALUES('10','Longeville-sur-Mogne','05',104,94,4.15,'1916','53499',126,171);
INSERT INTO "communes" VALUES('10','Vauchonvilliers','25',142,124,11.62,'2433','53628',169,228);
INSERT INTO "communes" VALUES('10','Saint-Loup-de-Buffigny','20',194,165,10.16,'1442','53834',85,174);
INSERT INTO "communes" VALUES('10','Praslin','07',87,63,11.98,'2069','53385',164,272);
INSERT INTO "communes" VALUES('10','Vallentigny','06',192,191,15.74,'2493','53830',113,149);
INSERT INTO "communes" VALUES('10','Périgny-la-Rose','26',114,116,6.86,'1432','53944',65,136);
INSERT INTO "communes" VALUES('10','Machy','05',115,114,2.74,'1901','53489',133,212);
INSERT INTO "communes" VALUES('10','Colombé-la-Fosse','21',211,238,9.31,'2723','53627',195,343);
INSERT INTO "communes" VALUES('10','Villiers-le-Bois','07',102,94,5.16,'2057','53288',261,335);
INSERT INTO "communes" VALUES('10','Souligny','05',410,362,10.59,'1845','53561',124,283);
INSERT INTO "communes" VALUES('10','Arconville','03',113,149,15,'2651','53514',207,367);
INSERT INTO "communes" VALUES('10','Plaines-Saint-Lange','15',293,337,10.73,'2378','53323',177,325);
INSERT INTO "communes" VALUES('10','Droupt-Sainte-Marie','14',236,218,14.4,'1764','53883',79,119);
INSERT INTO "communes" VALUES('10','Rances','06',39,40,3.81,'2455','53852',113,118);
INSERT INTO "communes" VALUES('10','Ville-sur-Arce','04',248,266,16.16,'2343','53452',165,321);
INSERT INTO "communes" VALUES('10','Voigny','03',183,195,7.09,'2701','53601',172,319);
INSERT INTO "communes" VALUES('10','Villeret','08',65,57,3.25,'2503','53863',112,127);
INSERT INTO "communes" VALUES('10','Briel-sur-Barse','04',210,160,12.45,'2243','53566',127,185);
INSERT INTO "communes" VALUES('10','Saint-Christophe-Dodinicourt','06',34,42,4.87,'2370','53821',109,119);
INSERT INTO "communes" VALUES('10','Saint-Benoist-sur-Vanne','01',232,215,16.68,'1482','53596',110,234);
INSERT INTO "communes" VALUES('10','Vaudes','04',632,543,7.57,'2057','53531',123,133);
INSERT INTO "communes" VALUES('10','Bergères','03',125,119,5.81,'2589','53540',216,367);
INSERT INTO "communes" VALUES('10','Donnement','08',82,111,11.24,'2333','53902',105,186);
INSERT INTO "communes" VALUES('10','Pargues','07',119,130,13.98,'2068','53369',189,297);
INSERT INTO "communes" VALUES('10','Saint-Parres-aux-Tertres','22',2842,2615,11.82,'1979','53666',103,132);
INSERT INTO "communes" VALUES('10','Turgy','07',44,40,9.97,'1896','53360',133,187);
INSERT INTO "communes" VALUES('10','Marolles-sous-Lignières','09',326,304,15.12,'1757','53277',119,192);
INSERT INTO "communes" VALUES('10','Chaumesnil','21',88,82,11.07,'2510','53734',130,168);
INSERT INTO "communes" VALUES('10','Chaource','07',1102,1090,31.06,'2002','53399',134,233);
INSERT INTO "communes" VALUES('10','Dienville','06',849,747,20.34,'2441','53723',120,186);
INSERT INTO "communes" VALUES('10','Prugny','11',408,315,8.62,'1786','53607',172,260);
INSERT INTO "communes" VALUES('10','Assencières','17',201,145,7.39,'2069','53732',150,199);
INSERT INTO "communes" VALUES('10','Longpré-le-Sec','10',77,80,15.71,'2431','53542',186,302);
INSERT INTO "communes" VALUES('10','Saulcy','21',84,74,11.39,'2774','53642',230,352);
INSERT INTO "communes" VALUES('10','Davrey','09',267,235,9.66,'1793','53390',119,156);
INSERT INTO "communes" VALUES('10','Arsonval','03',341,331,7.58,'2571','53631',147,271);
INSERT INTO "communes" VALUES('10','Chesley','07',338,320,21.17,'1971','53308',174,294);
INSERT INTO "communes" VALUES('10','Bar-sur-Aube','03',5259,6273,16.27,'2633','53592',156,348);
INSERT INTO "communes" VALUES('10','Bouranton','12',515,451,8.15,'2048','53679',109,171);
INSERT INTO "communes" VALUES('10','Mesnil-Saint-Père','12',430,331,17.45,'2223','53612',132,171);
INSERT INTO "communes" VALUES('10','Épothémont','21',177,176,10.43,'2579','53798',120,161);
INSERT INTO "communes" VALUES('10','Avon-la-Pèze','13',188,120,12.7,'1464','53766',114,186);
INSERT INTO "communes" VALUES('10','Origny-le-Sec','20',641,594,16.31,'1597','53851',86,127);
INSERT INTO "communes" VALUES('10','Villemereuil','05',238,229,7.81,'1945','53555',117,146);
INSERT INTO "communes" VALUES('10','Champ-sur-Barse','25',32,34,7.12,'2301','53598',136,181);
INSERT INTO "communes" VALUES('10','Lirey','05',103,94,4.84,'1901','53508',128,208);
INSERT INTO "communes" VALUES('10','Villiers-Herbisse','02',91,90,26.44,'1973','54040',104,172);
INSERT INTO "communes" VALUES('10','Maraye-en-Othe','01',493,432,42.32,'1684','53516',177,288);
INSERT INTO "communes" VALUES('10','Prunay-Belleville','13',228,231,25.65,'1593','53742',122,182);
INSERT INTO "communes" VALUES('10','Noé-les-Mallets','10',116,136,8.33,'2482','53445',217,357);
INSERT INTO "communes" VALUES('10','Magny-Fouchard','25',280,199,15.16,'2444','53603',172,274);
INSERT INTO "communes" VALUES('10','Chervey','10',184,198,13.28,'2395','53472',192,320);
INSERT INTO "communes" VALUES('10','Allibaudières','02',268,269,24.13,'1970','53983',88,166);
INSERT INTO "communes" VALUES('10','Loges-Margueron','07',231,145,31.21,'1970','53430',132,194);
INSERT INTO "communes" VALUES('10','Villacerf','23',518,420,9.64,'1838','53777',88,191);
INSERT INTO "communes" VALUES('10','Maisons-lès-Chaource','07',182,188,5.85,'2032','53344',184,273);
INSERT INTO "communes" VALUES('10','<NAME>','21',107,125,7.13,'2468','53717',132,171);
INSERT INTO "communes" VALUES('10','Fresnay','21',40,44,7.54,'2683','53683',190,275);
INSERT INTO "communes" VALUES('10','Aix-en-Othe','01',2434,2132,34.76,'1553','53582',124,246);
INSERT INTO "communes" VALUES('10','Marcilly-le-Hayer','13',677,702,34.34,'1443','53719',113,266);
INSERT INTO "communes" VALUES('10','Montreuil-sur-Barse','12',314,268,13.13,'2176','53583',119,156);
INSERT INTO "communes" VALUES('10','Villemoyenne','04',748,523,12.21,'2102','53531',124,177);
INSERT INTO "communes" VALUES('10','Meurville','25',179,177,16.35,'2541','53558',180,317);
INSERT INTO "communes" VALUES('10','Dosnon','18',110,79,28.69,'2104','54012',106,201);
INSERT INTO "communes" VALUES('10','Villy-le-Bois','05',64,56,5.41,'1952','53512',119,133);
INSERT INTO "communes" VALUES('10','Salon','14',150,156,21.67,'1853','54045',99,152);
INSERT INTO "communes" VALUES('10','Arcis-sur-Aube','02',3011,2841,9.49,'2003','53927',85,124);
INSERT INTO "communes" VALUES('10','Pars-lès-Romilly','20',780,684,17.88,'1550','53874',68,107);
INSERT INTO "communes" VALUES('10','Pars-lès-Chavanges','08',73,70,8.5,'2402','53897',112,152);
INSERT INTO "communes" VALUES('10','Luyères','17',429,383,17.37,'2065','53758',135,223);
INSERT INTO "communes" VALUES('10','Courtaoult','09',83,74,8.36,'1696','53361',112,152);
INSERT INTO "communes" VALUES('10','Ramerupt','18',386,354,13.6,'2173','53910',93,164);
INSERT INTO "communes" VALUES('10','Cormost','05',292,263,11.36,'2000','53521',122,153);
INSERT INTO "communes" VALUES('10','Ruvigny','12',456,383,4.15,'2053','53636',108,135);
INSERT INTO "communes" VALUES('10','Champfleury','14',146,125,17.98,'1855','54019',88,154);
INSERT INTO "communes" VALUES('10','Moussey','05',558,399,7.25,'1954','53571',112,139);
INSERT INTO "communes" VALUES('10','Bossancourt','25',198,236,6.92,'2517','53647',146,248);
INSERT INTO "communes" VALUES('10','Laines-aux-Bois','31',510,460,16.43,'1835','53593',123,277);
INSERT INTO "communes" VALUES('10','Joncreuil','08',83,87,10.55,'2529','53914',122,139);
INSERT INTO "communes" VALUES('10','Lassicourt','06',69,54,7.73,'2392','53825',110,134);
INSERT INTO "communes" VALUES('10','Villeneuve-au-Chemin','09',180,176,3.35,'1682','53433',132,270);
INSERT INTO "communes" VALUES('10','Rilly-Sainte-Syre','14',254,216,14.16,'1801','53827',84,168);
INSERT INTO "communes" VALUES('10','Longsols','18',127,131,12.61,'2167','53812',107,202);
INSERT INTO "communes" VALUES('10','<NAME>-Sainte-Julie','29',316,222,22.93,'1737','53744',113,214);
INSERT INTO "communes" VALUES('10','Saint-Mesmin','14',897,836,16.15,'1766','53827',84,128);
INSERT INTO "communes" VALUES('10','Arrembécourt','08',46,41,7.12,'2512','53936',122,143);
INSERT INTO "communes" VALUES('10','La Rivière-de-Corps','28',2926,2952,7.26,'1870','53653',108,136);
INSERT INTO "communes" VALUES('10','Villette-sur-Aube','02',235,175,7.28,'1959','53928',85,121);
INSERT INTO "communes" VALUES('10','Orvilliers-Saint-Julien','20',311,211,23.92,'1657','53827',92,139);
INSERT INTO "communes" VALUES('10','La Villeneuve-au-Châtelot','26',147,145,6.17,'1417','53945',63,117);
INSERT INTO "communes" VALUES('10','Voué','02',583,427,13.25,'1984','53841',105,181);
INSERT INTO "communes" VALUES('10','La Louptière-Thénard','16',282,216,13.68,'1221','53765',75,184);
INSERT INTO "communes" VALUES('10','Unienville','25',112,116,11.79,'2454','53697',127,184);
INSERT INTO "communes" VALUES('10','Engente','03',43,46,5.12,'2688','53633',209,328);
INSERT INTO "communes" VALUES('10','Bourdenay','13',110,402,18.69,'1390','53732',94,186);
INSERT INTO "communes" VALUES('10','Torvilliers','28',875,763,12.11,'1822','53640',120,254);
INSERT INTO "communes" VALUES('10','Savières','14',984,953,18.54,'1794','53786',88,139);
INSERT INTO "communes" VALUES('10','Pouy-sur-Vannes','13',147,136,15.82,'1392','53674',134,258);
INSERT INTO "communes" VALUES('10','Bucey-en-Othe','11',445,343,13.03,'1697','53621',137,247);
INSERT INTO "communes" VALUES('10','Saint-Parres-lès-Vaudes','04',1003,960,3.08,'2088','53524',123,132);
INSERT INTO "communes" VALUES('10','Vinets','18',179,176,9.17,'2113','53927',89,146);
INSERT INTO "communes" VALUES('10','Bouilly','05',1060,1090,15.49,'1848','53551',135,298);
INSERT INTO "communes" VALUES('10','Saint-Hilaire-sous-Romilly','20',370,333,20.2,'1464','53907',66,157);
INSERT INTO "communes" VALUES('10','Vauchassis','11',514,491,24.17,'1764','53581',170,292);
INSERT INTO "communes" VALUES('10','Macey','28',880,741,20.46,'1754','53658',129,262);
INSERT INTO "communes" VALUES('10','Lantages','07',247,217,18.87,'2082','53414',148,226);
INSERT INTO "communes" VALUES('10','Vallant-Saint-Georges','14',387,354,17.86,'1740','53855',81,128);
INSERT INTO "communes" VALUES('10','<NAME>','26',677,494,18.93,'1294','53936',62,191);
INSERT INTO "communes" VALUES('10','Riceys','19',1349,1375,42.93,'2256','53324',166,338);
INSERT INTO "communes" VALUES('10','<NAME>','07',67,57,5.22,'1887','53394',127,170);
INSERT INTO "communes" VALUES('10','Bérulle','01',264,235,16.5,'1475','53531',134,245);
INSERT INTO "communes" VALUES('10','Grandes-Chapelles','14',377,329,22.1,'1866','53852',98,157);
INSERT INTO "communes" VALUES('10','Bercenay-le-Hayer','13',144,0,14.63,'1395','53715',99,238);
INSERT INTO "communes" VALUES('10','Rosnay-l''Hôpital','06',225,215,12.47,'2408','53844',111,172);
INSERT INTO "communes" VALUES('10','Villemaur-sur-Vanne','11',501,422,19.65,'1546','53618',120,232);
INSERT INTO "communes" VALUES('10','Onjon','17',248,240,22.31,'2161','53773',117,200);
INSERT INTO "communes" VALUES('10','Fontvannes','11',597,553,13.01,'1707','53643',142,237);
INSERT INTO "communes" VALUES('10','Trancault','13',181,0,26.8,'1334','53748',86,166);
INSERT INTO "communes" VALUES('10','Clérey','12',1119,929,18.79,'2060','53565',118,164);
INSERT INTO "communes" VALUES('10','Traînel','16',1058,983,19.99,'1227','53794',66,154);
INSERT INTO "communes" VALUES('10','Channes','19',123,143,14.26,'2131','53267',230,334);
INSERT INTO "communes" VALUES('10','Petit-Mesnil','21',241,216,14.83,'2501','53721',131,182);
INSERT INTO "communes" VALUES('10','Dosches','17',302,237,20.64,'2126','53690',114,204);
INSERT INTO "communes" VALUES('10','Dierrey-Saint-Pierre','13',220,181,21.61,'1656','53698',144,219);
INSERT INTO "communes" VALUES('10','Lentilles','08',90,107,17.18,'2528','53871',113,135);
INSERT INTO "communes" VALUES('10','Argançon','25',100,113,8.2,'2519','53615',155,275);
INSERT INTO "communes" VALUES('10','Champignol-lez-Mondeville','03',336,305,44.17,'2598','53487',226,372);
INSERT INTO "communes" VALUES('10','Isle-Aumont','05',513,541,3.48,'1987','53569',112,136);
INSERT INTO "communes" VALUES('10','Longueville-sur-Aube','14',125,135,11.64,'1752','53950',76,103);
INSERT INTO "communes" VALUES('10','Verrières','12',1750,1721,10.12,'2013','53592',111,138);
INSERT INTO "communes" VALUES('10','Troyes','99',60280,60903,13.2,'1935','53665',100,126);
INSERT INTO "communes" VALUES('10','Montmartin-le-Haut','10',60,57,1.61,'2462','53565',220,267);
INSERT INTO "communes" VALUES('10','Essoyes','10',711,650,35.57,'2442','53397',175,337);
INSERT INTO "communes" VALUES('10','Colombé-le-Sec','03',139,148,8.78,'2733','53617',201,352);
INSERT INTO "communes" VALUES('10','<NAME>','21',37,29,8.81,'2581','53736',132,182);
INSERT INTO "communes" VALUES('10','Lusigny-sur-Barse','12',1755,1450,37.92,'2145','53616',112,147);
INSERT INTO "communes" VALUES('10','Dolancourt','25',139,145,4.88,'2534','53630',148,245);
INSERT INTO "communes" VALUES('10','Ville-sous-la-Ferté','03',1119,1278,19.77,'2726','53468',182,333);
INSERT INTO "communes" VALUES('10','Courteranges','12',585,425,6.47,'2113','53631',110,135);
INSERT INTO "communes" VALUES('10','Celles-sur-Ource','15',487,455,9.59,'2292','53419',155,310);
INSERT INTO "communes" VALUES('10','Villeloup','29',119,110,16.31,'1709','53735',136,217);
INSERT INTO "communes" VALUES('10','Cunfin','10',211,200,33.12,'2591','53379',208,367);
INSERT INTO "communes" VALUES('10','Éclance','21',112,120,11.48,'2553','53674',155,251);
INSERT INTO "communes" VALUES('10','Maisons-lès-Soulaines','21',80,55,6.16,'2724','53655',240,337);
INSERT INTO "communes" VALUES('10','Chacenay','10',62,62,7.8,'2434','53462',219,346);
INSERT INTO "communes" VALUES('10','Vallières','07',144,135,8.34,'1915','53329',152,236);
INSERT INTO "communes" VALUES('10','Chapelle-Vallon','14',225,196,19.24,'1893','53818',128,204);
INSERT INTO "communes" VALUES('10','Saint-Thibault','05',465,462,11.71,'2006','53562',112,126);
INSERT INTO "communes" VALUES('10','Boulages','14',239,221,11.54,'1754','53976',76,103);
INSERT INTO "communes" VALUES('10','Maison-des-Champs','25',40,39,4.35,'2479','53602',194,260);
INSERT INTO "communes" VALUES('10','<NAME>','16',574,495,12.6,'1226','53895',59,184);
INSERT INTO "communes" VALUES('10','Morembert','18',47,37,2.5,'2214','53892',97,150);
INSERT INTO "communes" VALUES('10','Nozay','02',139,109,15.75,'1954','53898',90,134);
INSERT INTO "communes" VALUES('10','Rigny-la-Nonneuse','13',149,145,18.19,'1473','53790',100,179);
INSERT INTO "communes" VALUES('10','Villadin','13',129,134,12.35,'1493','53686',146,272);
INSERT INTO "communes" VALUES('10','Vernonvilliers','21',80,87,7.66,'2604','53684',157,258);
INSERT INTO "communes" VALUES('10','Javernant','05',162,113,5.62,'1851','53513',180,303);
INSERT INTO "communes" VALUES('10','Radonvilliers','06',393,367,23.29,'2409','53733',118,174);
INSERT INTO "communes" VALUES('10','Ossey-les-Trois-Maisons','20',598,506,16.25,'1557','53816',88,178);
INSERT INTO "communes" VALUES('10','Soligny-les-Étangs','16',221,180,15.94,'1304','53786',76,158);
INSERT INTO "communes" VALUES('10','Bar-sur-Seine','04',3233,3513,27.53,'2266','53460',147,293);
INSERT INTO "communes" VALUES('10','Lesmont','06',340,301,9.92,'2309','53808',106,126);
INSERT INTO "communes" VALUES('10','Avreuil','07',160,167,10.33,'1846','53384',123,171);
INSERT INTO "communes" VALUES('10','Trannes','25',250,190,10.11,'2499','53669',139,218);
INSERT INTO "communes" VALUES('10','Beurey','10',189,171,17.33,'2366','53538',184,278);
INSERT INTO "communes" VALUES('10','Ormes','02',197,193,10.14,'1977','53947',83,142);
INSERT INTO "communes" VALUES('10','Chappes','04',297,257,9.75,'2122','53518',128,182);
INSERT INTO "communes" VALUES('10','Fays-la-Chapelle','05',148,143,0.58,'1870','53478',154,180);
INSERT INTO "communes" VALUES('10','<NAME>','21',19,12,5.56,'2615','53785',122,166);
INSERT INTO "communes" VALUES('10','Bertignolles','10',67,65,6.19,'2424','53477',202,317);
INSERT INTO "communes" VALUES('10','Bailly-le-Franc','08',28,35,6,'2575','53915',117,135);
INSERT INTO "communes" VALUES('10','Jasseines','08',170,148,16.29,'2279','53891',101,195);
INSERT INTO "communes" VALUES('10','Saint-Benoît-sur-Seine','23',404,401,11.78,'1881','53744',93,227);
INSERT INTO "communes" VALUES('10','Arrentières','03',214,231,13.91,'2673','53626',183,331);
INSERT INTO "communes" VALUES('10','Bragelogne-Beauvoir','19',263,271,23.39,'2143','53298',214,327);
INSERT INTO "communes" VALUES('10','Chessy-les-Prés','09',527,502,25.69,'1753','53361',113,162);
INSERT INTO "communes" VALUES('10','Cussangy','07',210,199,21.39,'1962','53353',131,226);
INSERT INTO "communes" VALUES('10','Avirey-Lingey','19',220,210,17.85,'2182','53362',185,309);
INSERT INTO "communes" VALUES('10','Villy-le-Maréchal','05',167,132,3.29,'1932','53542',119,144);
INSERT INTO "communes" VALUES('10','Lavau','23',857,472,5.74,'1944','53695',99,148);
INSERT INTO "communes" VALUES('10','Roncenay','05',134,134,3.82,'1905','53555',124,151);
INSERT INTO "communes" VALUES('10','Géraudot','17',301,291,16.74,'2207','53677',114,152);
INSERT INTO "communes" VALUES('10','Plancy-l''Abbaye','14',944,851,41.38,'1813','53967',76,132);
INSERT INTO "communes" VALUES('10','Isle-Aubigny','18',165,142,18.76,'2143','53917',91,182);
INSERT INTO "communes" VALUES('10','Spoy','25',135,155,10.36,'2538','53587',167,303);
INSERT INTO "communes" VALUES('10','Aulnay','08',126,118,10.44,'2299','53858',104,168);
INSERT INTO "communes" VALUES('10','Yèvres-le-Petit','06',74,67,8.35,'2393','53865',113,161);
INSERT INTO "communes" VALUES('10','Rigny-le-Ferron','01',375,338,19.05,'1439','53565',109,228);
INSERT INTO "communes" VALUES('10','<NAME>','16',380,328,11.59,'1223','53860',58,91);
INSERT INTO "communes" VALUES('10','Jully-sur-Sarce','04',296,274,30.44,'2187','53455',144,233);
INSERT INTO "communes" VALUES('10','Chauffour-lès-Bailly','04',124,94,19.01,'2214','53552',128,206);
INSERT INTO "communes" VALUES('10','Saint-Phal','09',534,490,33.27,'1845','53469',129,290);
INSERT INTO "communes" VALUES('10','Saint-Remy-sous-Barbuise','02',190,140,15.57,'1977','53870',99,158);
INSERT INTO "communes" VALUES('10','Montiéramey','12',441,406,6.73,'2188','53590',118,164);
INSERT INTO "communes" VALUES('10','Étrelles-sur-Aube','14',142,125,10.43,'1706','53956',74,97);
INSERT INTO "communes" VALUES('11','Souilhe','09',336,238,4.2,'-470','48189',159,207);
INSERT INTO "communes" VALUES('11','Labastide-en-Val','18',93,75,11.7,'152','47862',218,728);
INSERT INTO "communes" VALUES('11','Salsigne','21',372,355,11.48,'23','48144',166,472);
INSERT INTO "communes" VALUES('11','Cassaignes','13',68,49,3.74,'-41','47718',252,486);
INSERT INTO "communes" VALUES('11','Souilhanels','09',405,253,2.72,'-465','48167',155,194);
INSERT INTO "communes" VALUES('11','Cassés','09',241,176,7.28,'-521','48251',189,323);
INSERT INTO "communes" VALUES('11','Floure','06',367,319,4.25,'171','47981',69,384);
INSERT INTO "communes" VALUES('11','Villebazy','27',113,100,12.18,'-15','47849',197,601);
INSERT INTO "communes" VALUES('11','Talairan','18',375,345,36.29,'363','47835',132,597);
INSERT INTO "communes" VALUES('11','Trausse','25',515,446,10.7,'250','48124',127,322);
INSERT INTO "communes" VALUES('11','Counozouls','03',45,41,27.8,'-121','47480',677,2424);
INSERT INTO "communes" VALUES('11','Cabrespine','25',180,195,17.56,'137','48181',275,943);
INSERT INTO "communes" VALUES('11','Saint-Martin-Lalande','10',1090,960,12.65,'-352','48110',134,192);
INSERT INTO "communes" VALUES('11','Villar-Saint-Anselme','27',95,94,5.88,'-42','47838',210,424);
INSERT INTO "communes" VALUES('11','Monthaut','01',47,42,7.01,'-305','47864',279,551);
INSERT INTO "communes" VALUES('11','Cournanel','20',659,529,6.34,'-114','47815',174,482);
INSERT INTO "communes" VALUES('11','Corbières','11',36,26,8.53,'-385','47822',354,610);
INSERT INTO "communes" VALUES('11','Clermont-sur-Lauquet','27',25,26,18.29,'95','47828',338,705);
INSERT INTO "communes" VALUES('11','Embres-et-Castelmaure','15',163,142,32.2,'530','47711',138,709);
INSERT INTO "communes" VALUES('11','Granès','26',119,124,5.38,'-99','47663',312,665);
INSERT INTO "communes" VALUES('11','Mérial','04',26,21,17.19,'-397','47541',880,2027);
INSERT INTO "communes" VALUES('11','Saint-Paulet','09',177,155,7.42,'-510','48229',170,285);
INSERT INTO "communes" VALUES('11','Villeneuve-lès-Montréal','22',258,116,2.2,'-250','47978',179,250);
INSERT INTO "communes" VALUES('11','Verdun-en-Lauragais','09',259,232,20.21,'-308','48184',198,613);
INSERT INTO "communes" VALUES('11','Lasserre-de-Prouille','01',240,201,4.16,'-282','47977',197,302);
INSERT INTO "communes" VALUES('11','Fourtou','13',62,53,20.46,'103','47675',432,926);
INSERT INTO "communes" VALUES('11','Carlipa','09',315,251,5.26,'-234','48119',141,238);
INSERT INTO "communes" VALUES('11','Villetritouls','18',39,33,4.88,'171','47868',200,667);
INSERT INTO "communes" VALUES('11','Belpech','05',1320,1152,42.46,'-650','47997',228,371);
INSERT INTO "communes" VALUES('11','Bizanet','33',1331,1082,37.09,'592','47960',30,260);
INSERT INTO "communes" VALUES('11','Escales','19',374,336,10.18,'398','48026',52,201);
INSERT INTO "communes" VALUES('11','Lasbordes','10',825,689,14.74,'-323','48105',131,205);
INSERT INTO "communes" VALUES('11','Fanjeaux','16',779,771,25.49,'-337','47986',155,395);
INSERT INTO "communes" VALUES('11','Saint-Laurent-de-la-Cabrerisse','15',764,642,25.03,'405','47873',76,344);
INSERT INTO "communes" VALUES('11','Cavanac','07',921,664,8.96,'-11','47965',109,320);
INSERT INTO "communes" VALUES('11','Sainte-Valière','17',546,395,6.39,'561','48080',28,115);
INSERT INTO "communes" VALUES('11','Rennes-le-Château','13',72,111,14.68,'-81','47697',272,568);
INSERT INTO "communes" VALUES('11','<NAME>','20',284,251,3.61,'-196','47824',208,380);
INSERT INTO "communes" VALUES('11','Aunat','04',39,52,10.62,'-268','47549',593,1200);
INSERT INTO "communes" VALUES('11','Mas-Cabardès','21',200,204,9.09,'29','48190',286,945);
INSERT INTO "communes" VALUES('11','Alet-les-Bains','20',431,464,23.54,'-89','47774',180,720);
INSERT INTO "communes" VALUES('11','Carcassonne','98',47419,43937,65.08,'17','48018',81,250);
INSERT INTO "communes" VALUES('11','Tuchan','31',832,804,59.52,'425','47654',136,920);
INSERT INTO "communes" VALUES('11','Saint-Marcel-sur-Aude','17',1654,1269,8.37,'651','48049',9,31);
INSERT INTO "communes" VALUES('11','Quillan','26',3301,3540,20.97,'-172','47639',261,1122);
INSERT INTO "communes" VALUES('11','Cuxac-d''Aude','14',4253,4280,21.54,'736','48051',0,48);
INSERT INTO "communes" VALUES('11','Taurize','18',78,64,8.34,'187','47863',197,665);
INSERT INTO "communes" VALUES('11','Routier','01',252,225,11.27,'-233','47897',190,304);
INSERT INTO "communes" VALUES('11','Villardonnel','21',535,411,16.63,'-28','48151',193,550);
INSERT INTO "communes" VALUES('11','Arquettes-en-Val','18',97,96,9.31,'184','47893',195,561);
INSERT INTO "communes" VALUES('11','Pouzols-Minervois','17',455,329,10.15,'543','48097',39,294);
INSERT INTO "communes" VALUES('11','Gruissan','14',4676,3091,43.65,'835','47897',0,200);
INSERT INTO "communes" VALUES('11','Pépieux','25',1001,949,9.85,'381','48109',48,102);
INSERT INTO "communes" VALUES('11','Cailhavel','01',100,111,5.34,'-233','47958',194,301);
INSERT INTO "communes" VALUES('11','Vinassan','14',2499,2009,8.96,'819','48004',3,142);
INSERT INTO "communes" VALUES('11','Davejean','23',113,118,13.36,'300','47733',354,603);
INSERT INTO "communes" VALUES('11','Maisons','31',41,56,12.15,'329','47697',280,891);
INSERT INTO "communes" VALUES('11','Mouthoumet','23',116,86,13.73,'211','47733',400,704);
INSERT INTO "communes" VALUES('11','Saint-Julia-de-Bec','26',101,97,13.88,'-101','47632',355,855);
INSERT INTO "communes" VALUES('11','Soupex','09',265,225,7.37,'-490','48198',162,224);
INSERT INTO "communes" VALUES('11','Verzeille','27',438,358,5.21,'-13','47918',133,300);
INSERT INTO "communes" VALUES('11','Ladern-sur-Lauquet','27',259,228,24.64,'17','47894',176,623);
INSERT INTO "communes" VALUES('11','Raissac-sur-Lampy','02',390,212,5.23,'-197','48086',116,231);
INSERT INTO "communes" VALUES('11','Villasavary','16',1200,875,33.08,'-330','48023',137,320);
INSERT INTO "communes" VALUES('11','Arzens','22',1148,1000,21.11,'-141','47999',125,425);
INSERT INTO "communes" VALUES('11','Brunels','09',224,162,11.97,'-319','48226',349,631);
INSERT INTO "communes" VALUES('11','Ricaud','10',294,242,5.92,'-495','48162',165,204);
INSERT INTO "communes" VALUES('11','Mas-Saintes-Puelles','10',900,805,27.63,'-511','48126',164,324);
INSERT INTO "communes" VALUES('11','Sallèles-d''Aude','17',2580,1835,12.55,'677','48066',8,46);
INSERT INTO "communes" VALUES('11','Molleville','29',91,76,3.59,'-558','48125',223,294);
INSERT INTO "communes" VALUES('11','Tourouzelle','19',477,448,14.19,'428','48059',28,144);
INSERT INTO "communes" VALUES('11','Fajac-en-Val','18',34,30,13.81,'136','47912',292,582);
INSERT INTO "communes" VALUES('11','Generville','16',57,64,10.21,'-449','48014',293,413);
INSERT INTO "communes" VALUES('11','Saint-Martin-Lys','26',40,46,9.99,'-123','47586',340,1041);
INSERT INTO "communes" VALUES('11','Pezens','02',1334,1113,11.11,'-79','48060',103,154);
INSERT INTO "communes" VALUES('11','Villautou','05',57,50,5.97,'-561','47955',261,424);
INSERT INTO "communes" VALUES('11','Plavilla','16',120,104,12.4,'-470','47941',307,483);
INSERT INTO "communes" VALUES('11','Fonters-du-Razès','16',90,90,12.15,'-446','48032',275,394);
INSERT INTO "communes" VALUES('11','Montjardin','11',98,110,14.11,'-343','47759',388,763);
INSERT INTO "communes" VALUES('11','Mazuby','04',24,25,8.96,'-337','47557',749,1933);
INSERT INTO "communes" VALUES('11','Palairac','23',33,18,17.93,'361','47730',252,633);
INSERT INTO "communes" VALUES('11','Brugairolles','01',253,196,8.47,'-198','47916',184,386);
INSERT INTO "communes" VALUES('11','Vignevieille','23',102,72,16.72,'209','47784',190,694);
INSERT INTO "communes" VALUES('11','Loupia','20',230,180,4.46,'-250','47847',213,388);
INSERT INTO "communes" VALUES('11','Dernacueillette','23',43,45,7.75,'290','47698',316,642);
INSERT INTO "communes" VALUES('11','Peyriac-Minervois','25',1087,1004,10.19,'257','48101',105,221);
INSERT INTO "communes" VALUES('11','Brenac','26',203,203,13.66,'-203','47657',311,820);
INSERT INTO "communes" VALUES('11','Belvis','04',182,167,23.61,'-290','47612',679,1260);
INSERT INTO "communes" VALUES('11','Cailla','03',53,51,7.64,'-155','47572',387,1240);
INSERT INTO "communes" VALUES('11','Treilles','30',182,163,12.42,'675','47692',20,305);
INSERT INTO "communes" VALUES('11','Niort-de-Sault','04',29,35,22.11,'-370','47558',771,1974);
INSERT INTO "communes" VALUES('11','Thézan-des-Corbières','15',535,515,26.38,'483','47893',75,365);
INSERT INTO "communes" VALUES('11','Montfort-sur-Boulzane','03',91,65,33.32,'-32','47492',639,1841);
INSERT INTO "communes" VALUES('11','Montbrun-des-Corbières','19',318,293,10.61,'387','47999',68,206);
INSERT INTO "communes" VALUES('11','Rivel','11',223,224,24.3,'-374','47716',381,1090);
INSERT INTO "communes" VALUES('11','Saint-Ferriol','26',144,147,9.85,'-125','47657',273,634);
INSERT INTO "communes" VALUES('11','Airoux','09',128,126,5.49,'-522','48182',165,251);
INSERT INTO "communes" VALUES('11','Sainte-Colombe-sur-Guette','03',49,57,21.04,'-113','47500',440,1832);
INSERT INTO "communes" VALUES('11','Castelnaudary','99',11753,10880,47.72,'-425','48131',145,215);
INSERT INTO "communes" VALUES('11','Trassanel','21',32,20,4.34,'111','48163',270,687);
INSERT INTO "communes" VALUES('11','Montauriol','29',77,74,8.47,'-557','48086',225,313);
INSERT INTO "communes" VALUES('11','Raissac-d''Aude','33',243,238,5.93,'604','48032',17,27);
INSERT INTO "communes" VALUES('11','Tréville','09',110,117,5.33,'-427','48206',178,311);
INSERT INTO "communes" VALUES('11','Soulatgé','23',113,92,24.16,'186','47643',357,932);
INSERT INTO "communes" VALUES('11','Sainte-Camelle','29',114,102,9.52,'-590','48076',227,360);
INSERT INTO "communes" VALUES('11','Luc-sur-Orbieu','19',1023,786,9.88,'499','47974',29,150);
INSERT INTO "communes" VALUES('11','Villalier','12',934,918,7.7,'85','48064',87,151);
INSERT INTO "communes" VALUES('11','Cumiès','29',36,40,3.92,'-550','48107',224,313);
INSERT INTO "communes" VALUES('11','Lafage','05',103,98,12.71,'-526','47972',265,455);
INSERT INTO "communes" VALUES('11','Villanière','21',144,100,7.04,'27','48158',240,615);
INSERT INTO "communes" VALUES('11','Labastide-d''Anjou','10',994,889,8.57,'-539','48163',165,253);
INSERT INTO "communes" VALUES('11','Mirepeisset','17',748,450,5.19,'622','48095',26,47);
INSERT INTO "communes" VALUES('11','Caunettes-en-Val','18',50,36,8.71,'241','47848',159,363);
INSERT INTO "communes" VALUES('11','Joucou','04',38,27,6.44,'-276','47585',544,1067);
INSERT INTO "communes" VALUES('11','Tournissan','18',271,215,11.53,'364','47869',119,310);
INSERT INTO "communes" VALUES('11','Castelnau-d''Aude','19',461,359,7.38,'377','48034',39,121);
INSERT INTO "communes" VALUES('11','Gueytes-et-Labastide','11',41,27,4.81,'-367','47854',340,500);
INSERT INTO "communes" VALUES('11','Molandier','05',232,213,19.84,'-690','48051',226,351);
INSERT INTO "communes" VALUES('11','Sainte-Colombe-sur-l''Hers','11',502,539,10.61,'-412','47725',389,764);
INSERT INTO "communes" VALUES('11','Villeneuve-Minervois','25',1032,824,23.85,'140','48127',166,760);
INSERT INTO "communes" VALUES('11','Villeneuve-les-Corbières','15',267,240,24.31,'488','47753',109,418);
INSERT INTO "communes" VALUES('11','Ginoles','26',356,349,6.17,'-198','47631',307,1000);
INSERT INTO "communes" VALUES('11','Puivert','11',521,404,41.29,'-322','47690',375,1087);
INSERT INTO "communes" VALUES('11','Monze','06',195,194,13.96,'137','47951',103,487);
INSERT INTO "communes" VALUES('11','<NAME>','04',15,10,15.79,'-413','47523',1069,2059);
INSERT INTO "communes" VALUES('11','Fajac-la-Relenque','29',47,42,3.51,'-680','48089',218,332);
INSERT INTO "communes" VALUES('11','La Courtète','01',45,56,5.47,'-325','47940',245,390);
INSERT INTO "communes" VALUES('11','Caux-et-Sauzens','02',782,739,9,'-90','48029',103,177);
INSERT INTO "communes" VALUES('11','Limoux','20',10130,9411,32.41,'-131','47841',156,740);
INSERT INTO "communes" VALUES('11','Villardebelle','27',68,74,13.14,'63','47801',414,857);
INSERT INTO "communes" VALUES('11','Roquefort-des-Corbières','30',971,662,45.44,'685','47767',10,540);
INSERT INTO "communes" VALUES('11','Mayreville','05',75,76,8.17,'-552','48044',262,361);
INSERT INTO "communes" VALUES('11','Feuilla','30',98,77,24.12,'638','47702',100,709);
INSERT INTO "communes" VALUES('11','Comigne','06',274,182,9.24,'272','47967',80,548);
INSERT INTO "communes" VALUES('11','Saint-Martin-de-Villereglan','20',336,248,9.38,'-139','47896',149,309);
INSERT INTO "communes" VALUES('11','Magrie','20',511,424,9.95,'-152','47809',179,654);
INSERT INTO "communes" VALUES('11','Terroles','13',14,15,6.63,'2','47761',480,767);
INSERT INTO "communes" VALUES('11','Pauligne','20',335,296,6.06,'-195','47859',191,350);
INSERT INTO "communes" VALUES('11','Malras','20',355,330,4.22,'-183','47848',194,286);
INSERT INTO "communes" VALUES('11','Termes','23',48,52,18.63,'251','47778',200,680);
INSERT INTO "communes" VALUES('11','Salza','23',19,22,8.34,'178','47760',360,694);
INSERT INTO "communes" VALUES('11','Gincla','03',48,43,7.65,'-12','47514',578,1322);
INSERT INTO "communes" VALUES('11','Belvianes-et-Cavirac','26',288,332,11.68,'-151','47614',295,1034);
INSERT INTO "communes" VALUES('11','Roquetaillade','13',212,192,11.35,'-153','47772',240,654);
INSERT INTO "communes" VALUES('11','Massac','23',30,21,11.89,'263','47687',435,907);
INSERT INTO "communes" VALUES('11','Espezel','04',214,207,14.31,'-350','47580',733,1100);
INSERT INTO "communes" VALUES('11','Galinagues','04',39,41,4.14,'-324','47564',736,1098);
INSERT INTO "communes" VALUES('11','Villerouge-Termenès','23',155,157,19.41,'324','47786',272,620);
INSERT INTO "communes" VALUES('11','Preixan','22',535,444,8.56,'-53','47940',122,341);
INSERT INTO "communes" VALUES('11','Argens-Minervois','19',376,330,4.59,'477','48047',27,120);
INSERT INTO "communes" VALUES('11','Fournes-Cabardès','21',63,49,12.45,'68','48165',217,851);
INSERT INTO "communes" VALUES('11','Gourvieille','29',56,55,3.09,'-616','48155',197,275);
INSERT INTO "communes" VALUES('11','Saint-Papoul','09',769,770,26.48,'-334','48146',139,405);
INSERT INTO "communes" VALUES('11','Hounoux','01',134,101,7.62,'-373','47921',270,420);
INSERT INTO "communes" VALUES('11','Belvèze-du-Razès','01',872,767,4.52,'-268','47917',219,344);
INSERT INTO "communes" VALUES('11','Saint-Frichoux','25',226,181,6.33,'240','48057',51,100);
INSERT INTO "communes" VALUES('11','Escueillens-et-Saint-Just-de-Bélengard','01',190,140,11.2,'-352','47899',285,520);
INSERT INTO "communes" VALUES('11','Antugnac','13',318,266,9.49,'-124','47728',260,587);
INSERT INTO "communes" VALUES('11','Villesiscle','16',352,280,5.46,'-270','48031',137,193);
INSERT INTO "communes" VALUES('11','Serres','13',48,58,4.06,'-13','47718',259,797);
INSERT INTO "communes" VALUES('11','Lignairolles','01',36,30,7.31,'-381','47886',324,450);
INSERT INTO "communes" VALUES('11','Ventenac-en-Minervois','17',534,349,6.2,'581','48054',18,100);
INSERT INTO "communes" VALUES('11','Rennes-les-Bains','13',196,159,18.77,'-20','47688',254,822);
INSERT INTO "communes" VALUES('11','Villegly','12',1051,749,9.83,'115','48096',128,283);
INSERT INTO "communes" VALUES('11','Azille','25',1188,1054,23.33,'359','48087',39,120);
INSERT INTO "communes" VALUES('11','Montgaillard','31',56,51,16.72,'320','47678',240,920);
INSERT INTO "communes" VALUES('11','Caves','30',692,357,9.13,'711','47701',13,209);
INSERT INTO "communes" VALUES('11','Saint-Couat-d''Aude','06',394,339,5.38,'325','48003',48,96);
INSERT INTO "communes" VALUES('11','Coustaussa','13',56,49,4.47,'-65','47712',235,548);
INSERT INTO "communes" VALUES('11','Roullens','22',495,419,7.89,'-71','47961',132,400);
INSERT INTO "communes" VALUES('11','Orsans','16',92,101,9.94,'-394','47957',304,400);
INSERT INTO "communes" VALUES('11','Barbaira','06',733,522,9.4,'195','47983',66,502);
INSERT INTO "communes" VALUES('11','Tréziers','11',105,84,6.41,'-425','47841',317,530);
INSERT INTO "communes" VALUES('11','Mézerville','29',82,81,7.3,'-605','48067',251,360);
INSERT INTO "communes" VALUES('11','Courtauly','11',74,73,7.72,'-326','47822',380,581);
INSERT INTO "communes" VALUES('11','Pradelles-en-Val','18',200,174,16.19,'197','47939',180,500);
INSERT INTO "communes" VALUES('11','Gardie','27',106,101,4.65,'-41','47861',174,345);
INSERT INTO "communes" VALUES('11','<NAME>','29',79,79,6.25,'-650','48070',235,342);
INSERT INTO "communes" VALUES('11','Saint-Just-et-le-Bézu','26',65,62,13.54,'-77','47644',417,1010);
INSERT INTO "communes" VALUES('11','Mireval-Lauragais','10',164,164,10.32,'-420','48061',143,346);
INSERT INTO "communes" VALUES('11','Cuxac-Cabardès','28',905,854,25.06,'-59','48190',338,907);
INSERT INTO "communes" VALUES('11','La Pomarède','09',162,159,13.08,'-429','48228',188,375);
INSERT INTO "communes" VALUES('11','Alairac','22',1279,708,16.37,'-107','47982',158,422);
INSERT INTO "communes" VALUES('11','Cazilhac','07',1658,1449,3.83,'30','47981',126,222);
INSERT INTO "communes" VALUES('11','Puichéric','25',1082,1028,13.21,'320','48026',48,106);
INSERT INTO "communes" VALUES('11','Marquein','29',76,59,5.49,'-678','48117',210,311);
INSERT INTO "communes" VALUES('11','Narbonne','97',51039,46506,172.96,'741','47983',0,285);
INSERT INTO "communes" VALUES('11','Rouvenac','26',208,154,12.23,'-212','47709',279,587);
INSERT INTO "communes" VALUES('11','Saint-Amans','05',62,74,8.16,'-500','48030',258,376);
INSERT INTO "communes" VALUES('11','Peyrefitte-du-Razès','11',51,37,6.72,'-348','47845',360,551);
INSERT INTO "communes" VALUES('11','Cenne-Monestiés','09',362,307,7.76,'-243','48146',145,310);
INSERT INTO "communes" VALUES('11','Lacombe','28',170,113,14.99,'-114','48219',605,886);
INSERT INTO "communes" VALUES('11','Ornaisons','19',1233,951,10.8,'557','47979',27,163);
INSERT INTO "communes" VALUES('11','Labastide-Esparbairenque','21',85,103,16.77,'65','48201',300,984);
INSERT INTO "communes" VALUES('11','Montréal','22',1921,1675,55.03,'-217','48000',117,443);
INSERT INTO "communes" VALUES('11','Laure-Minervois','25',1051,1095,39.23,'204','48079',60,243);
INSERT INTO "communes" VALUES('11','Conilhac-Corbières','19',887,601,12.18,'421','47987',55,204);
INSERT INTO "communes" VALUES('11','Coudons','26',48,62,9.5,'-235','47626',779,1271);
INSERT INTO "communes" VALUES('11','Gaja-et-Villedieu','20',293,265,7.75,'-166','47868',167,305);
INSERT INTO "communes" VALUES('11','Sigean','30',5377,4055,35.35,'712','47809',0,126);
INSERT INTO "communes" VALUES('11','Couiza','13',1147,1190,6.77,'-90','47714',218,563);
INSERT INTO "communes" VALUES('11','Albas','15',74,59,22.69,'442','47785',189,533);
INSERT INTO "communes" VALUES('11','Belcastel-et-Buc','27',71,58,14.15,'4','47820',273,802);
INSERT INTO "communes" VALUES('11','Montferrand','10',496,410,17.93,'-575','48183',186,301);
INSERT INTO "communes" VALUES('11','Rieux-Minervois','25',2011,2069,21.19,'279','48091',55,180);
INSERT INTO "communes" VALUES('11','Montirat','06',71,60,12.67,'113','47970',97,440);
INSERT INTO "communes" VALUES('11','Villar-en-Val','18',35,30,11.42,'135','47870',238,640);
INSERT INTO "communes" VALUES('11','Homps','19',694,597,3.06,'427','48075',29,56);
INSERT INTO "communes" VALUES('11','Saint-Julien-de-Briola','16',79,75,11.31,'-437','47955',294,402);
INSERT INTO "communes" VALUES('11','Pennautier','08',2465,2251,17.78,'-20','48051',94,201);
INSERT INTO "communes" VALUES('11','Malves-en-Minervois','12',784,756,4.88,'116','48058',100,194);
INSERT INTO "communes" VALUES('11','Couffoulens','07',606,541,9.47,'-33','47950',116,260);
INSERT INTO "communes" VALUES('11','Névian','33',1327,1089,14.25,'629','48013',17,175);
INSERT INTO "communes" VALUES('11','Rouffiac-des-Corbières','31',75,83,16.04,'241','47645',319,761);
INSERT INTO "communes" VALUES('11','Ribouisse','16',105,103,10.21,'-488','47980',275,435);
INSERT INTO "communes" VALUES('11','Salles-sur-l''Hers','29',614,542,19.31,'-613','48105',205,335);
INSERT INTO "communes" VALUES('11','Caudeval','11',179,153,7.19,'-401','47862',314,530);
INSERT INTO "communes" VALUES('11','Lespinassière','25',116,90,16.24,'223','48225',416,1045);
INSERT INTO "communes" VALUES('11','Plaigne','05',114,128,13.19,'-583','47971',249,392);
INSERT INTO "communes" VALUES('11','Saint-Sernin','05',40,40,6.53,'-593','48037',271,352);
INSERT INTO "communes" VALUES('11','Malviès','01',379,266,7.22,'-169','47910',169,280);
INSERT INTO "communes" VALUES('11','Montmaur','09',324,266,12.61,'-547','48215',188,306);
INSERT INTO "communes" VALUES('11','Villefloure','27',147,76,16.69,'50','47915',198,487);
INSERT INTO "communes" VALUES('11','Saint-Pierre-des-Champs','18',172,127,15.89,'298','47843',133,520);
INSERT INTO "communes" VALUES('11','Bages','34',840,758,12.53,'727','47915',0,190);
INSERT INTO "communes" VALUES('11','Pieusse','20',983,905,12.92,'-116','47866',147,387);
INSERT INTO "communes" VALUES('11','Boutenac','19',705,609,22.96,'504','47942',36,265);
INSERT INTO "communes" VALUES('11','Miraval-Cabardes','21',43,48,12.16,'11','48203',313,848);
INSERT INTO "communes" VALUES('11','Brousses-et-Villaret','28',314,307,11.16,'-92','48158',229,594);
INSERT INTO "communes" VALUES('11','Conilhac-de-la-Montagne','13',61,45,4.45,'-158','47754',380,602);
INSERT INTO "communes" VALUES('11','Payra-sur-l''Hers','29',168,175,24.52,'-535','48074',237,362);
INSERT INTO "communes" VALUES('11','Bellegarde-du-Razès','01',219,184,6.41,'-325','47900',250,380);
INSERT INTO "communes" VALUES('11','Salles-d''Aude','14',2833,1901,18.15,'870','48042',2,87);
INSERT INTO "communes" VALUES('11','Argeliers','17',1808,1233,10.79,'637','48124',26,220);
INSERT INTO "communes" VALUES('11','Saint-Denis','28',494,392,8.21,'-129','48178',280,645);
INSERT INTO "communes" VALUES('11','Bourigeole','20',46,56,9.08,'-225','47765',315,711);
INSERT INTO "communes" VALUES('11','Rustiques','06',473,305,6.47,'152','48018',90,161);
INSERT INTO "communes" VALUES('11','Lavalette','22',1294,1066,6.55,'-79','47984',134,241);
INSERT INTO "communes" VALUES('11','Pomy','01',54,49,6,'-301','47844',297,560);
INSERT INTO "communes" VALUES('11','Villefort','11',101,87,12.67,'-338','47726',394,760);
INSERT INTO "communes" VALUES('11','Limousis','12',107,103,9.92,'72','48149',144,580);
INSERT INTO "communes" VALUES('11','Moussoulens','02',942,709,19.6,'-119','48088',108,294);
INSERT INTO "communes" VALUES('11','Bouriège','20',132,140,10.65,'-189','47762',273,597);
INSERT INTO "communes" VALUES('11','Belflou','29',106,80,8.93,'-612','48131',203,300);
INSERT INTO "communes" VALUES('11','Laurabuc','10',406,308,8.04,'-396','48052',143,231);
INSERT INTO "communes" VALUES('11','Saint-Jean-de-Barrou','15',281,204,7.61,'559','47730',109,347);
INSERT INTO "communes" VALUES('11','Campagna-de-Sault','04',14,15,10.4,'-314','47511',735,1965);
INSERT INTO "communes" VALUES('11','Fleury','14',3405,2556,51.27,'886','48033',0,163);
INSERT INTO "communes" VALUES('11','Roquefort-de-Sault','03',79,113,21.84,'-151','47487',450,1740);
INSERT INTO "communes" VALUES('11','Pécharic-et-le-Py','05',30,31,5.77,'-557','47985',260,346);
INSERT INTO "communes" VALUES('11','Duilhac-sous-Peyrepertuse','31',135,104,21.09,'255','47626',233,966);
INSERT INTO "communes" VALUES('11','Seignalens','01',33,49,6.17,'-407','47888',327,451);
INSERT INTO "communes" VALUES('11','Belfort-sur-Rebenty','04',40,37,5.24,'-321','47584',680,932);
INSERT INTO "communes" VALUES('11','Montclar','22',194,172,11.31,'-98','47928',162,400);
INSERT INTO "communes" VALUES('11','Camps-sur-l''Agly','13',78,60,26.35,'108','47622',445,1227);
INSERT INTO "communes" VALUES('11','Peyrens','09',416,346,4.77,'-419','48179',159,221);
INSERT INTO "communes" VALUES('11','Montgradail','01',59,66,4.48,'-345','47913',249,333);
INSERT INTO "communes" VALUES('11','<NAME>','16',196,183,12.13,'-381','48003',209,410);
INSERT INTO "communes" VALUES('11','Puilaurens','03',260,236,33.38,'-35','47566',399,1420);
INSERT INTO "communes" VALUES('11','Campagne-sur-Aude','26',661,593,5.97,'-144','47685',239,560);
INSERT INTO "communes" VALUES('11','Villesèque-des-Corbières','15',396,311,31.69,'572','47795',36,380);
INSERT INTO "communes" VALUES('11','Saint-Benoît','11',113,106,21.31,'-305','47797',406,766);
INSERT INTO "communes" VALUES('11','Comus','04',31,39,14.07,'-496','47569',612,1623);
INSERT INTO "communes" VALUES('11','Fitou','30',965,679,30.25,'713','47659',0,318);
INSERT INTO "communes" VALUES('11','<NAME>','03',35,33,10.25,'-188','47540',466,1394);
INSERT INTO "communes" VALUES('11','Citou','25',82,96,17.34,'227','48196',260,929);
INSERT INTO "communes" VALUES('11','Marsa','26',26,26,19.17,'-201','47581',461,1241);
INSERT INTO "communes" VALUES('11','Artigues','03',83,82,6.29,'-139','47559',434,1204);
INSERT INTO "communes" VALUES('11','Auriac','23',32,35,20.93,'173','47701',356,907);
INSERT INTO "communes" VALUES('11','Fraisse-Cabardès','28',110,109,7.13,'-72','48139',237,470);
INSERT INTO "communes" VALUES('11','Cahuzac','05',32,38,3.04,'-540','47991',266,361);
INSERT INTO "communes" VALUES('11','Mailhac','17',473,373,10.51,'546','48115',57,247);
INSERT INTO "communes" VALUES('11','Capendu','06',1583,1378,15.12,'248','47982',59,461);
INSERT INTO "communes" VALUES('11','Villedaigne','33',452,463,2.49,'582','48017',19,36);
INSERT INTO "communes" VALUES('11','Pexiora','10',1200,812,13.16,'-333','48076',130,160);
INSERT INTO "communes" VALUES('11','Ginestas','17',1358,1063,9.5,'595','48076',30,115);
INSERT INTO "communes" VALUES('11','Ajac','20',198,196,5.29,'-221','47831',226,401);
INSERT INTO "communes" VALUES('11','Cucugnan','31',137,113,15.33,'295','47612',218,822);
INSERT INTO "communes" VALUES('11','Cruscades','19',538,319,9.65,'533','47990',26,50);
INSERT INTO "communes" VALUES('11','<NAME>','25',1121,1037,13.49,'352','48058',39,111);
INSERT INTO "communes" VALUES('11','Saint-Polycarpe','27',159,185,13.81,'-53','47823',194,806);
INSERT INTO "communes" VALUES('11','Marcorignan','33',1163,1066,5.64,'650','48028',14,89);
INSERT INTO "communes" VALUES('11','<NAME>','20',537,493,3.14,'-174','47829',191,380);
INSERT INTO "communes" VALUES('11','Bagnoles','12',243,188,5.63,'111','48079',110,222);
INSERT INTO "communes" VALUES('11','Bouisse','23',93,85,25.44,'130','47763',472,926);
INSERT INTO "communes" VALUES('11','Bram','16',3315,2968,17.72,'-247','48047',119,165);
INSERT INTO "communes" VALUES('11','Port-la-Nouvelle','30',5713,4872,28.55,'785','47801',0,133);
INSERT INTO "communes" VALUES('11','Montazels','13',530,468,4.39,'-101','47717',211,527);
INSERT INTO "communes" VALUES('11','Saint-Jean-de-Paracol','11',114,94,7.08,'-247','47706',316,726);
INSERT INTO "communes" VALUES('11','Fontcouverte','19',534,425,9.97,'391','47964',62,189);
INSERT INTO "communes" VALUES('11','Montolieu','02',766,788,23.65,'-135','48121',123,407);
INSERT INTO "communes" VALUES('11','Montredon-des-Corbières','33',1286,904,17.15,'655','47990',28,176);
INSERT INTO "communes" VALUES('11','Ventenac-Cabardès','02',848,758,10.36,'-58','48074',102,285);
INSERT INTO "communes" VALUES('11','Villeneuve-la-Comptal','10',1226,1029,15.1,'-461','48096',159,361);
INSERT INTO "communes" VALUES('11','Caunes-Minervois','25',1629,1482,27.84,'213','48141',144,861);
INSERT INTO "communes" VALUES('11','Villarzel-Cabardès','12',191,145,6.38,'137','48088',119,242);
INSERT INTO "communes" VALUES('11','Aigues-Vives','25',519,483,10.21,'219','48034',55,109);
INSERT INTO "communes" VALUES('11','Pech-Luna','05',98,80,6.57,'-549','48018',279,360);
INSERT INTO "communes" VALUES('11','Castans','25',118,113,17.01,'163','48230',380,1187);
INSERT INTO "communes" VALUES('11','Félines-Termenès','23',135,111,10.01,'309','47765',305,621);
INSERT INTO "communes" VALUES('11','Laurac','16',180,124,11.58,'-401','48033',196,413);
INSERT INTO "communes" VALUES('11','<NAME>','20',44,42,6.51,'-254','47815',300,601);
INSERT INTO "communes" VALUES('11','Alzonne','02',1319,1220,22.38,'-178','48060',108,242);
INSERT INTO "communes" VALUES('11','<NAME>','13',76,77,9.59,'-171','47741',309,568);
INSERT INTO "communes" VALUES('11','Sainte-Eulalie','02',522,406,6.5,'-140','48052',109,134);
INSERT INTO "communes" VALUES('11','Castelreng','20',202,165,11.02,'-221','47809',244,572);
INSERT INTO "communes" VALUES('11','Moussan','33',1806,1174,14.88,'682','48035',6,124);
INSERT INTO "communes" VALUES('11','Rouffiac-d''Aude','22',390,341,5.24,'-42','47920',130,289);
INSERT INTO "communes" VALUES('11','Fendeille','10',565,418,7.17,'-436','48077',154,331);
INSERT INTO "communes" VALUES('11','Saissac','28',929,924,57.03,'-187','48179',166,742);
INSERT INTO "communes" VALUES('11','Serviès-en-Val','18',219,250,6.5,'204','47877',175,321);
INSERT INTO "communes" VALUES('11','Festes-et-Saint-André','20',202,202,18.07,'-212','47749',323,760);
INSERT INTO "communes" VALUES('11','Lagrasse','18',583,613,32.2,'316','47879',82,586);
INSERT INTO "communes" VALUES('11','Blomac','06',204,201,8.41,'289','48005',56,86);
INSERT INTO "communes" VALUES('11','Alaigne','01',340,299,13.86,'-273','47890',244,444);
INSERT INTO "communes" VALUES('11','Villespy','09',346,341,6.38,'-265','48133',150,260);
INSERT INTO "communes" VALUES('11','Saint-Hilaire','27',751,699,23.02,'-30','47881',146,582);
INSERT INTO "communes" VALUES('11','Quirbajou','26',37,38,13.95,'-175','47589',360,1280);
INSERT INTO "communes" VALUES('11','Villemoustaussou','12',3479,2691,11.94,'31','48058',84,180);
INSERT INTO "communes" VALUES('11','Donazac','01',93,88,5.06,'-242','47864',203,388);
INSERT INTO "communes" VALUES('11','Pomas','27',777,645,10.15,'-49','47902',136,347);
INSERT INTO "communes" VALUES('11','Issel','09',465,391,17.66,'-385','48186',160,340);
INSERT INTO "communes" VALUES('11','Rieux-en-Val','18',87,84,6.9,'216','47868',165,449);
INSERT INTO "communes" VALUES('11','Fontjoncouse','15',141,118,27.35,'502','47831',69,420);
INSERT INTO "communes" VALUES('11','Jonquières','15',61,46,13.66,'437','47822',177,380);
INSERT INTO "communes" VALUES('11','Paraza','17',610,391,9.47,'550','48055',19,171);
INSERT INTO "communes" VALUES('11','Bouilhonnac','06',226,215,5.71,'115','48035',80,160);
INSERT INTO "communes" VALUES('11','Fa','26',366,299,11.48,'-160','47709',253,580);
INSERT INTO "communes" VALUES('11','Berriac','07',885,624,2.67,'86','48018',80,144);
INSERT INTO "communes" VALUES('11','Leucate','30',4043,2776,23.55,'769','47677',0,70);
INSERT INTO "communes" VALUES('11','Roubia','17',477,400,7.38,'515','48053',19,122);
INSERT INTO "communes" VALUES('11','Valmigère','13',20,25,5.94,'44','47757',596,926);
INSERT INTO "communes" VALUES('11','Axat','03',640,832,11.77,'-113','47560',394,1330);
INSERT INTO "communes" VALUES('11','Fontiès-d''Aude','06',403,371,6.07,'130','47985',74,195);
INSERT INTO "communes" VALUES('11','Missègre','13',66,66,7.28,'40','47782',545,824);
INSERT INTO "communes" VALUES('11','Pradelles-Cabardès','21',151,159,20.61,'122','48232',520,1207);
INSERT INTO "communes" VALUES('11','Fenouillet-du-Razès','01',88,80,7.22,'-342','47952',257,430);
INSERT INTO "communes" VALUES('11','Martys','21',271,198,19.18,'-34','48240',639,964);
INSERT INTO "communes" VALUES('11','Lanet','23',48,59,8.75,'176','47737',300,723);
INSERT INTO "communes" VALUES('11','Brézilhac','01',169,118,6.82,'-286','47964',210,353);
INSERT INTO "communes" VALUES('11','Caudebronde','21',182,151,6.22,'-29','48199',510,806);
INSERT INTO "communes" VALUES('11','Roquefeuil','04',277,265,22.38,'-380','47578',834,1180);
INSERT INTO "communes" VALUES('11','Puginier','09',146,147,6.78,'-454','48197',168,237);
INSERT INTO "communes" VALUES('11','Laroque-de-Fa','23',149,143,20.41,'253','47729',360,849);
INSERT INTO "communes" VALUES('11','Montlaur','18',530,522,33.92,'246','47922',135,552);
INSERT INTO "communes" VALUES('11','Lézignan-Corbières','19',10539,8278,37.68,'468','48001',19,187);
INSERT INTO "communes" VALUES('11','Aragon','02',421,451,20.56,'-24','48107',136,346);
INSERT INTO "communes" VALUES('11','Nébias','26',270,246,12.69,'-245','47663',509,1121);
INSERT INTO "communes" VALUES('11','Mazerolles-du-Razès','01',175,181,8.22,'-294','47932',219,320);
INSERT INTO "communes" VALUES('11','Saint-Louis-et-Parahou','26',62,35,15.61,'-19','47608',519,1007);
INSERT INTO "communes" VALUES('11','Véraza','20',38,45,14.66,'-34','47762',308,781);
INSERT INTO "communes" VALUES('11','Mas-des-Cours','07',23,17,7.55,'97','47922',251,493);
INSERT INTO "communes" VALUES('11','Caunette-sur-Lauquet','27',7,4,4.97,'88','47812',400,786);
INSERT INTO "communes" VALUES('11','Villepinte','10',1231,1028,15.4,'-278','48091',124,202);
INSERT INTO "communes" VALUES('11','Lauraguel','01',587,461,7.01,'-180','47887',166,286);
INSERT INTO "communes" VALUES('11','Palaja','07',2135,1868,14.69,'54','47970',140,440);
INSERT INTO "communes" VALUES('11','Villedubert','06',334,285,3.04,'94','48034',80,141);
INSERT INTO "communes" VALUES('11','Fontiers-Cabardès','28',435,324,8.46,'-98','48188',438,803);
INSERT INTO "communes" VALUES('11','Villegailhenc','12',1633,1326,4.78,'20','48077',109,203);
INSERT INTO "communes" VALUES('11','Luc-sur-Aude','13',202,173,7.67,'-74','47732',217,561);
INSERT INTO "communes" VALUES('11','Saint-Martin-le-Vieil','02',233,191,13.25,'-213','48105',130,306);
INSERT INTO "communes" VALUES('11','Baraigne','29',151,130,4.76,'-570','48145',208,285);
INSERT INTO "communes" VALUES('11','Cailhau','01',255,230,9.76,'-222','47941',195,346);
INSERT INTO "communes" VALUES('11','Saint-Michel-de-Lanès','29',376,283,13.03,'-643','48138',189,302);
INSERT INTO "communes" VALUES('11','Leuc','07',717,583,11.28,'-15','47941',124,341);
INSERT INTO "communes" VALUES('11','Paziols','31',523,512,28.02,'426','47620',110,560);
INSERT INTO "communes" VALUES('11','Laprade','28',93,80,4.61,'-87','48269',775,900);
INSERT INTO "communes" VALUES('11','Douzens','06',704,606,14.91,'290','47984',53,587);
INSERT INTO "communes" VALUES('11','Ouveillan','17',2346,1918,29.98,'705','48098',6,59);
INSERT INTO "communes" VALUES('11','Camplong-d''Aude','19',313,269,12.28,'350','47921',67,589);
INSERT INTO "communes" VALUES('11','Bize-Minervois','17',1081,875,20.8,'594','48132',34,323);
INSERT INTO "communes" VALUES('11','Montséret','19',498,403,11.31,'527','47892',55,240);
INSERT INTO "communes" VALUES('11','Mayronnes','18',34,40,11.86,'209','47841',192,704);
INSERT INTO "communes" VALUES('11','Greffeil','27',87,76,13.67,'47','47865',219,640);
INSERT INTO "communes" VALUES('11','Fraissé-des-Corbières','15',252,169,19.1,'582','47736',116,641);
INSERT INTO "communes" VALUES('11','Cambieure','01',252,214,3.2,'-226','47918',188,283);
INSERT INTO "communes" VALUES('11','Portel-des-Corbières','30',1197,1053,35.1,'650','47838',5,301);
INSERT INTO "communes" VALUES('11','Conques-sur-Orbiel','12',2334,2062,25.07,'72','48078',101,286);
INSERT INTO "communes" VALUES('11','Peyrolles','13',83,57,14.49,'-20','47733',280,764);
INSERT INTO "communes" VALUES('11','Ferran','01',101,64,5.86,'-274','47947',209,300);
INSERT INTO "communes" VALUES('11','Badens','06',746,625,9.6,'191','48021',61,160);
INSERT INTO "communes" VALUES('11','Armissan','14',1554,1214,12.51,'844','47986',3,195);
INSERT INTO "communes" VALUES('11','Saint-Nazaire-d''Aude','17',1847,1111,8.63,'620','48049',14,62);
INSERT INTO "communes" VALUES('11','La Force','16',205,187,4.6,'-270','47994',158,233);
INSERT INTO "communes" VALUES('11','Cubières-sur-Cinoble','13',105,64,14.48,'138','47623',360,893);
INSERT INTO "communes" VALUES('11','Sougraigne','13',82,54,18.43,'20','47668',329,854);
INSERT INTO "communes" VALUES('11','Trèbes','06',5308,5512,16.36,'116','48011',67,161);
INSERT INTO "communes" VALUES('11','Salvezines','03',74,108,20.09,'-33','47533',495,1483);
INSERT INTO "communes" VALUES('11','Villelongue-d''Aude','20',325,279,13.11,'-268','47838',239,580);
INSERT INTO "communes" VALUES('11','Ribaute','18',295,228,9.41,'331','47897',68,306);
INSERT INTO "communes" VALUES('11','La Palme','30',1527,1154,27.47,'729','47750',0,201);
INSERT INTO "communes" VALUES('11','Coustouge','15',95,73,9.67,'452','47831',129,343);
INSERT INTO "communes" VALUES('11','Villesèquelande','02',821,568,5.35,'-117','48042',104,160);
INSERT INTO "communes" VALUES('11','Lairière','23',45,37,13.08,'165','47795',246,875);
INSERT INTO "communes" VALUES('11','Saint-Couat-du-Razès','20',55,49,6.4,'-252','47778',340,681);
INSERT INTO "communes" VALUES('11','Chalabre','11',1131,1171,15.49,'-367','47760',357,646);
INSERT INTO "communes" VALUES('11','Montjoi','23',42,29,7.18,'162','47770',249,875);
INSERT INTO "communes" VALUES('11','Villemagne','09',283,210,10.69,'-250','48176',206,655);
INSERT INTO "communes" VALUES('11','Cascastel-des-Corbières','15',212,196,15.38,'470','47761',111,509);
INSERT INTO "communes" VALUES('11','Fabrezan','19',1263,1087,28.62,'401','47928',54,274);
INSERT INTO "communes" VALUES('11','Peyriac-de-Mer','30',1035,833,26.92,'690','47875',0,285);
INSERT INTO "communes" VALUES('11','Coursan','14',6050,5248,24.61,'803','48036',0,14);
INSERT INTO "communes" VALUES('11','Canet','33',1384,1072,14.04,'567','48032',18,37);
INSERT INTO "communes" VALUES('11','Marseillette','06',677,678,11.17,'228','48003',52,118);
INSERT INTO "communes" VALUES('11','<NAME>','21',22,32,5.03,'-2','48201',355,803);
INSERT INTO "communes" VALUES('11','Durban-Corbières','15',684,644,25.9,'534','47773',79,366);
INSERT INTO "communes" VALUES('11','Roquefère','21',72,56,8.06,'48','48193',299,983);
INSERT INTO "communes" VALUES('11','Camurac','04',116,134,11.61,'-468','47554',1134,1764);
INSERT INTO "communes" VALUES('11','Padern','31',129,139,29.79,'356','47631',148,920);
INSERT INTO "communes" VALUES('11','Escouloubre','03',95,89,31.14,'-236','47488',599,2323);
INSERT INTO "communes" VALUES('11','Saint-André-de-Roquelongue','19',1130,827,30.81,'556','47904',48,291);
INSERT INTO "communes" VALUES('11','Ferrals-les-Corbières','19',1135,1005,15.95,'434','47941',47,248);
INSERT INTO "communes" VALUES('11','Labécède-Lauragais','09',403,336,19.96,'-368','48213',230,593);
INSERT INTO "communes" VALUES('11','Tourreilles','20',121,93,6.29,'-185','47802',252,597);
INSERT INTO "communes" VALUES('11','Belcaire','04',454,392,30.68,'-422','47573',696,1546);
INSERT INTO "communes" VALUES('11','Lastours','21',165,163,2.8,'47','48149',163,383);
INSERT INTO "communes" VALUES('11','Espéraza','26',2081,2113,10.52,'-129','47706',229,480);
INSERT INTO "communes" VALUES('11','Roquecourbe-Minervois','06',122,109,3.62,'347','48022',49,121);
INSERT INTO "communes" VALUES('11','Cazalrenoux','16',77,84,13.35,'-430','47999',285,410);
INSERT INTO "communes" VALUES('11','Albières','23',98,74,17.25,'157','47719',371,823);
INSERT INTO "communes" VALUES('11','<NAME>','03',45,53,25.99,'-193','47493',907,2447);
INSERT INTO "communes" VALUES('11','Rodome','04',135,95,11.77,'-296','47554',718,1631);
INSERT INTO "communes" VALUES('11','Fontanès-de-Sault','04',5,4,5.29,'-283','47520',660,1600);
INSERT INTO "communes" VALUES('11','Bessède-de-Sault','03',56,52,15.04,'-235','47543',512,1412);
INSERT INTO "communes" VALUES('11','Quintillan','15',65,55,16.42,'416','47739',215,612);
INSERT INTO "communes" VALUES('11','Gaja-la-Selve','16',152,126,11.38,'-490','47995',273,374);
INSERT INTO "communes" VALUES('11','Arques','13',275,199,18.53,'43','47725',329,854);
INSERT INTO "communes" VALUES('11','Moux','06',602,510,15.7,'350','47978',54,601);
INSERT INTO "communes" VALUES('11','Peyrefitte-sur-l''Hers','05',75,58,6.47,'-564','48053',235,351);
INSERT INTO "communes" VALUES('11','Saint-Martin-des-Puits','18',22,13,6.94,'258','47823',170,470);
INSERT INTO "communes" VALUES('11','Saint-Gaudéric','16',76,58,11.13,'-433','47921',318,451);
INSERT INTO "communes" VALUES('11','Villarzel-du-Razès','01',96,91,12.6,'-144','47932',215,446);
INSERT INTO "communes" VALUES('11','Cépie','20',653,540,6.61,'-102','47894',146,364);
INSERT INTO "communes" VALUES('11','Sonnac-sur-l''Hers','11',159,130,13.74,'-382','47782',344,570);
INSERT INTO "communes" VALUES('11','Gramazie','01',101,71,2,'-266','47932',210,253);
INSERT INTO "communes" VALUES('11','Sallèles-Cabardès','12',109,105,6.82,'92','48138',147,480);
INSERT INTO "communes" VALUES('11','Bugarach','13',202,176,26.62,'16','47641',340,1227);
INSERT INTO "communes" VALUES('11','Ilhes','21',51,61,4.16,'46','48169',220,573);
INSERT INTO "communes" VALUES('12','Murasson','02',194,212,40.25,'475','48622',473,1013);
INSERT INTO "communes" VALUES('12','Alpuech','33',77,81,14.88,'569','49736',950,1303);
INSERT INTO "communes" VALUES('12','Roussennac','18',517,430,17.27,'-93','49394',464,560);
INSERT INTO "communes" VALUES('12','Villecomtal','13',422,420,14.05,'254','49487',296,654);
INSERT INTO "communes" VALUES('12','Saint-Saturnin-de-Lenne','05',344,365,33.81,'757','49360',559,918);
INSERT INTO "communes" VALUES('12','Peyrusse-le-Roc','18',220,229,13.81,'-218','49440',233,496);
INSERT INTO "communes" VALUES('12','Montsalès','43',248,215,12.47,'-415','49434',178,369);
INSERT INTO "communes" VALUES('12','<NAME>','38',1066,1063,54.24,'-148','49133',210,638);
INSERT INTO "communes" VALUES('12','Vézins-de-Lévézou','41',653,634,78.96,'685','49199',713,1155);
INSERT INTO "communes" VALUES('12','Belcastel','27',226,251,10.74,'1','49321',391,707);
INSERT INTO "communes" VALUES('12','Montclar','36',153,147,12.8,'344','48853',221,669);
INSERT INTO "communes" VALUES('12','<NAME>','43',276,240,13.36,'-444','49375',214,400);
INSERT INTO "communes" VALUES('12','Tayrac','38',170,174,15.73,'-114','49114',276,536);
INSERT INTO "communes" VALUES('12','Quins','22',837,648,38.46,'40','49147',343,724);
INSERT INTO "communes" VALUES('12','Mur-de-Barrez','19',816,910,20.18,'361','49825',653,953);
INSERT INTO "communes" VALUES('12','Agen-d''Aveyron','24',1077,1013,22.35,'381','49286',525,863);
INSERT INTO "communes" VALUES('12','Cornus','09',507,364,92.74,'936','48780',496,887);
INSERT INTO "communes" VALUES('12','Lapanouse','40',753,688,27.19,'772','49262',630,923);
INSERT INTO "communes" VALUES('12','Bessuéjouls','12',247,223,11.29,'435','49474',319,660);
INSERT INTO "communes" VALUES('12','Ayssènes','35',214,226,23.14,'492','48966',262,983);
INSERT INTO "communes" VALUES('12','Najac','20',754,744,53.88,'-397','49133',158,507);
INSERT INTO "communes" VALUES('12','<NAME>','24',470,448,25.92,'465','49239',650,931);
INSERT INTO "communes" VALUES('12','<NAME>','13',551,568,36.57,'363','49570',260,848);
INSERT INTO "communes" VALUES('12','Curan','37',310,295,41.18,'575','49111',804,1062);
INSERT INTO "communes" VALUES('12','Luc-la-Primaube','45',5709,4719,26.85,'220','49238',514,740);
INSERT INTO "communes" VALUES('12','Saint-Laurent-de-Lévézou','41',155,152,23.33,'691','49120',614,1121);
INSERT INTO "communes" VALUES('12','Comps-la-Grand-Ville','07',542,428,21.95,'256','49145',441,772);
INSERT INTO "communes" VALUES('12','Réquista','25',2026,2069,59.32,'221','48925',207,670);
INSERT INTO "communes" VALUES('12','Lugan','18',332,314,12.61,'-86','49425',293,544);
INSERT INTO "communes" VALUES('12','Brusque','04',305,366,36.18,'681','48632',416,1080);
INSERT INTO "communes" VALUES('12','Castelnau-Pégayrols','31',329,284,53.01,'663','49033',421,1102);
INSERT INTO "communes" VALUES('12','Meljac','22',137,155,9.54,'110','49043',350,608);
INSERT INTO "communes" VALUES('12','Foissac','06',454,331,9.68,'-370','49457',213,383);
INSERT INTO "communes" VALUES('12','Boisse-Penchot','10',538,509,4.64,'-144','49546',172,463);
INSERT INTO "communes" VALUES('12','Balsac','16',611,505,15.57,'120','49337',374,606);
INSERT INTO "communes" VALUES('12','Ambeyrac','43',185,191,11.24,'-436','49455',141,344);
INSERT INTO "communes" VALUES('12','Vimenet','15',257,233,20.95,'655','49333',586,844);
INSERT INTO "communes" VALUES('12','Saint-Rome-de-Cernon','29',772,799,37.88,'699','48903',374,856);
INSERT INTO "communes" VALUES('12','Verrières','31',429,341,53.01,'802','49113',420,962);
INSERT INTO "communes" VALUES('12','Calmels-et-le-Viala','29',232,207,23.2,'462','48829',269,574);
INSERT INTO "communes" VALUES('12','Laissac','15',1580,1465,20.21,'540','49312',569,923);
INSERT INTO "communes" VALUES('12','<NAME>','20',1113,1035,32.54,'-327','49146',215,511);
INSERT INTO "communes" VALUES('12','Pousthomy','36',221,186,17.33,'307','48731',308,807);
INSERT INTO "communes" VALUES('12','Sauveterre-de-Rouergue','39',799,832,23.43,'-21','49134',333,682);
INSERT INTO "communes" VALUES('12','Auriac-Lagast','07',241,281,30.76,'271','49052',574,930);
INSERT INTO "communes" VALUES('12','Peyreleau','23',78,70,16.14,'969','49098',392,882);
INSERT INTO "communes" VALUES('12','Saint-Hippolyte','11',445,500,36.87,'284','49679',228,785);
INSERT INTO "communes" VALUES('12','Salles-la-Source','16',2076,1801,78.03,'196','49373',290,613);
INSERT INTO "communes" VALUES('12','Saint-Rémy','43',318,292,8.98,'-331','49332',290,486);
INSERT INTO "communes" VALUES('12','Saint-Rome-de-Tarn','35',861,714,52.06,'622','48943',300,665);
INSERT INTO "communes" VALUES('12','Espeyrac','11',248,243,22.28,'193','49570',220,674);
INSERT INTO "communes" VALUES('12','Clairvaux-d''Aveyron','16',1152,1037,25.14,'82','49364',319,734);
INSERT INTO "communes" VALUES('12','Sébazac-Concourès','46',3069,2720,25.82,'293','49337',553,625);
INSERT INTO "communes" VALUES('12','Montpeyroux','14',559,551,61.71,'527','49600',510,1023);
INSERT INTO "communes" VALUES('12','Balaguier-sur-Rance','36',104,100,9.8,'267','48775',253,748);
INSERT INTO "communes" VALUES('12','Albres','06',337,331,15.22,'-181','49487',223,541);
INSERT INTO "communes" VALUES('12','Tauriac-de-Camarès','04',61,64,24.75,'771','48644',467,905);
INSERT INTO "communes" VALUES('12','Saint-Izaire','29',311,317,34.48,'427','48861',234,620);
INSERT INTO "communes" VALUES('12','Versols-et-Lapeyre','29',445,353,27.95,'676','48771',346,766);
INSERT INTO "communes" VALUES('12','Salles-Curan','37',1067,1087,93.9,'501','49092',547,1084);
INSERT INTO "communes" VALUES('12','Sévérac-le-Château','40',2424,2427,108.42,'817','49246',454,1091);
INSERT INTO "communes" VALUES('12','<NAME>','42',737,628,29.81,'-402','49225',230,429);
INSERT INTO "communes" VALUES('12','Compeyre','17',517,491,10.36,'850','49068',367,860);
INSERT INTO "communes" VALUES('12','Villefranche-de-Panat','37',761,762,29.13,'409','48987',260,984);
INSERT INTO "communes" VALUES('12','Veyreau','23',128,109,41.09,'1070','49094',428,1011);
INSERT INTO "communes" VALUES('12','Savignac','42',608,543,15.28,'-412','49288',333,420);
INSERT INTO "communes" VALUES('12','Flagnac','10',984,888,12.93,'-95','49564',180,466);
INSERT INTO "communes" VALUES('12','Sainte-Juliette-sur-Viaur','07',537,441,16.71,'205','49127',394,650);
INSERT INTO "communes" VALUES('12','Bertholène','15',999,929,46.96,'491','49327',533,926);
INSERT INTO "communes" VALUES('12','Bournazel','27',321,246,16.35,'-42','49401',340,664);
INSERT INTO "communes" VALUES('12','Grand-Vabre','08',403,425,29.53,'24','49588',180,629);
INSERT INTO "communes" VALUES('12','Auzits','27',862,816,24.34,'-10','49452',248,644);
INSERT INTO "communes" VALUES('12','Saint-Félix-de-Lunel','08',405,401,18.98,'225','49513',388,684);
INSERT INTO "communes" VALUES('12','Sévérac-l''Église','15',416,417,13.69,'569','49291',609,950);
INSERT INTO "communes" VALUES('12','Saint-Chély-d''Aubrac','32',554,532,78.65,'649','49545',560,1405);
INSERT INTO "communes" VALUES('12','Rebourguil','02',273,304,35.31,'486','48764',341,656);
INSERT INTO "communes" VALUES('12','Salles-Courbatiès','06',404,382,13.35,'-288','49413',241,391);
INSERT INTO "communes" VALUES('12','Martrin','36',219,238,23.31,'314','48821',311,630);
INSERT INTO "communes" VALUES('12','Thérondels','19',444,478,38.47,'469','49884',646,1023);
INSERT INTO "communes" VALUES('12','Vailhourles','42',658,511,32.41,'-478','49228',275,437);
INSERT INTO "communes" VALUES('12','Sanvensa','20',643,506,25.48,'-320','49214',230,534);
INSERT INTO "communes" VALUES('12','Bouillac','06',438,424,8.2,'-193','49527',161,538);
INSERT INTO "communes" VALUES('12','Causse-et-Diège','06',725,620,29.85,'-320','49460',148,430);
INSERT INTO "communes" VALUES('12','Entraygues-sur-Truyère','11',1168,1266,30.15,'256','49607',222,744);
INSERT INTO "communes" VALUES('12','Calmont','07',2001,1579,30.89,'195','49165',473,755);
INSERT INTO "communes" VALUES('12','Brasc','36',204,174,20.14,'263','48865',214,658);
INSERT INTO "communes" VALUES('12','Saint-Parthem','10',401,445,20.43,'-24','49585',180,592);
INSERT INTO "communes" VALUES('12','La Bastide-Solages','36',116,98,7.1,'208','48827',205,570);
INSERT INTO "communes" VALUES('12','Rodelle','03',976,890,53.43,'322','49434',320,606);
INSERT INTO "communes" VALUES('12','Cransac','01',1645,1821,6.91,'-58','49472',274,470);
INSERT INTO "communes" VALUES('12','Pomayrols','34',137,152,23.1,'764','49413',433,1180);
INSERT INTO "communes" VALUES('12','Coussergues','15',252,199,10.89,'601','49346',582,738);
INSERT INTO "communes" VALUES('12','Montrozier','03',1433,1279,46.78,'410','49326',538,886);
INSERT INTO "communes" VALUES('12','Gissac','04',116,97,31.02,'661','48718',351,769);
INSERT INTO "communes" VALUES('12','Lacroix-Barrez','19',489,551,28.01,'333','49752',300,804);
INSERT INTO "communes" VALUES('12','Saint-Salvadou','26',395,432,15.5,'-262','49201',369,610);
INSERT INTO "communes" VALUES('12','<NAME>','28',2109,1807,6.73,'269','49270',519,648);
INSERT INTO "communes" VALUES('12','Camjac','22',556,554,23.03,'47','49090',319,613);
INSERT INTO "communes" VALUES('12','Saint-Santin','10',546,535,22.78,'-131','49610',187,592);
INSERT INTO "communes" VALUES('12','Florentin-la-Capelle','30',328,375,36.8,'328','49589',230,803);
INSERT INTO "communes" VALUES('12','Naussac','06',333,296,14.7,'-269','49467',207,462);
INSERT INTO "communes" VALUES('12','Saint-Amans-des-Cots','30',772,771,41.51,'359','49655',355,882);
INSERT INTO "communes" VALUES('12','Saint-Igest','43',177,163,11.72,'-279','49377',280,504);
INSERT INTO "communes" VALUES('12','Laguiole','14',1256,1250,63.06,'567','49649',868,1342);
INSERT INTO "communes" VALUES('12','Gramond','39',431,367,13.14,'32','49183',457,728);
INSERT INTO "communes" VALUES('12','<NAME>','03',1407,1175,28.71,'326','49340',526,691);
INSERT INTO "communes" VALUES('12','Trémouilles','24',512,504,28.83,'342','49160',533,871);
INSERT INTO "communes" VALUES('12','Saint-Geniez-d''Olt','34',2042,1857,35.49,'708','49406',403,985);
INSERT INTO "communes" VALUES('12','Rullac-Saint-Cirq','25',382,407,32.74,'171','49033',344,671);
INSERT INTO "communes" VALUES('12','Canet-de-Salars','24',421,380,29.97,'464','49151',713,870);
INSERT INTO "communes" VALUES('12','Saint-Jean-et-Saint-Paul','09',266,218,37.91,'743','48809',432,825);
INSERT INTO "communes" VALUES('12','Saint-Félix-de-Sorgues','29',198,196,31,'720','48760',375,745);
INSERT INTO "communes" VALUES('12','Monteils','20',549,465,17.19,'-377','49184',210,487);
INSERT INTO "communes" VALUES('12','Camarès','04',976,1011,41.86,'603','48692',356,968);
INSERT INTO "communes" VALUES('12','Huparlac','30',246,238,24.7,'473','49682',659,952);
INSERT INTO "communes" VALUES('12','<NAME>','09',75,66,19.6,'929','48701',459,803);
INSERT INTO "communes" VALUES('12','Campuac','13',457,429,19.19,'282','49521',394,679);
INSERT INTO "communes" VALUES('12','Livinhac-le-Haut','10',1113,1121,10.97,'-114','49546',169,472);
INSERT INTO "communes" VALUES('12','Asprières','06',683,706,17.09,'-213','49495',167,546);
INSERT INTO "communes" VALUES('12','Saint-Laurent-d''Olt','05',648,620,28.74,'860','49385',448,1033);
INSERT INTO "communes" VALUES('12','Vaureilles','18',517,435,14.24,'-154','49392',436,554);
INSERT INTO "communes" VALUES('12','Compolibat','18',397,406,17.04,'-157','49308',350,664);
INSERT INTO "communes" VALUES('12','Onet-le-Château','46',11084,9925,40.2,'286','49295',524,631);
INSERT INTO "communes" VALUES('12','Campagnac','05',455,395,41.88,'834','49353',492,960);
INSERT INTO "communes" VALUES('12','Nauviale','16',569,453,26.19,'102','49467',235,485);
INSERT INTO "communes" VALUES('12','Lavernhe','40',242,232,26.32,'740','49232',642,1129);
INSERT INTO "communes" VALUES('12','Anglars-Saint-Félix','27',709,561,22.22,'-131','49359',446,615);
INSERT INTO "communes" VALUES('12','Sylvanès','04',96,117,16.96,'692','48705',399,780);
INSERT INTO "communes" VALUES('12','Rodez','98',23917,23734,11.18,'264','49278',501,643);
INSERT INTO "communes" VALUES('12','Soulages-Bonneval','14',272,235,15.16,'503','49641',760,978);
INSERT INTO "communes" VALUES('12','<NAME>','05',91,95,14.12,'751','49380',444,855);
INSERT INTO "communes" VALUES('12','Lédergues','25',705,683,36.31,'116','48988',331,544);
INSERT INTO "communes" VALUES('12','Prades-Salars','24',279,293,30.55,'498','49181',769,984);
INSERT INTO "communes" VALUES('12','Sainte-Croix','43',729,632,25.88,'-410','49363',312,441);
INSERT INTO "communes" VALUES('12','Plaisance','36',212,228,14,'234','48808',229,647);
INSERT INTO "communes" VALUES('12','<NAME>','25',652,713,48.27,'221','49013',387,683);
INSERT INTO "communes" VALUES('12','Arvieu','07',865,879,46.91,'361','49101',606,929);
INSERT INTO "communes" VALUES('12','Escandolières','27',204,224,13.5,'3','49410',294,638);
INSERT INTO "communes" VALUES('12','Crespin','38',256,272,18.35,'-59','49067',237,521);
INSERT INTO "communes" VALUES('12','Boussac','39',529,414,17.92,'35','49201',518,758);
INSERT INTO "communes" VALUES('12','Saint-Jean-du-Bruel','21',682,644,37.23,'1138','48914',492,1339);
INSERT INTO "communes" VALUES('12','<NAME>','23',330,273,19.06,'881','49086',372,868);
INSERT INTO "communes" VALUES('12','Gabriac','03',487,428,25.54,'508','49391',533,808);
INSERT INTO "communes" VALUES('12','L''Hospitalet-du-Larzac','21',316,249,12.4,'955','48859',699,861);
INSERT INTO "communes" VALUES('12','Flavin','24',2247,1940,50.77,'300','49210',513,844);
INSERT INTO "communes" VALUES('12','Firmi','01',2517,2555,29.13,'-29','49489',231,620);
INSERT INTO "communes" VALUES('12','Saint-André-de-Vézines','23',126,117,38.97,'1024','49058',396,983);
INSERT INTO "communes" VALUES('12','Peux-et-Couffouleux','04',104,109,21.71,'599','48635',595,1092);
INSERT INTO "communes" VALUES('12','Saint-Affrique','29',8288,7513,110.96,'611','48843',279,720);
INSERT INTO "communes" VALUES('12','Saint-Jean-Delnous','25',430,389,18.29,'173','48938',350,599);
INSERT INTO "communes" VALUES('12','Prades-d''Aubrac','34',411,402,46.64,'669','49482',405,1385);
INSERT INTO "communes" VALUES('12','Coubisou','13',541,506,30.95,'439','49504',319,836);
INSERT INTO "communes" VALUES('12','Estaing','13',600,612,16.96,'372','49506',301,760);
INSERT INTO "communes" VALUES('12','Cassuéjouls','14',130,153,10.35,'534','49696',824,1129);
INSERT INTO "communes" VALUES('12','Balaguier-d''Olt','06',127,143,10.84,'-405','49471',152,378);
INSERT INTO "communes" VALUES('12','Taussac','19',457,526,39.3,'339','49810',398,834);
INSERT INTO "communes" VALUES('12','Moyrazès','39',1139,1109,48.67,'114','49270',430,773);
INSERT INTO "communes" VALUES('12','Viviez','01',1375,1499,6.53,'-134','49507',178,440);
INSERT INTO "communes" VALUES('12','Rieupeyroux','26',2084,2157,54.81,'-111','49231',390,804);
INSERT INTO "communes" VALUES('12','Comprégnac','44',232,216,11.09,'694','48981',340,701);
INSERT INTO "communes" VALUES('12','Saint-Martin-de-Lenne','05',302,208,9.48,'698','49368',480,840);
INSERT INTO "communes" VALUES('12','Brandonnet','18',309,315,12.22,'-224','49320',318,546);
INSERT INTO "communes" VALUES('12','Campouriez','30',383,393,18.38,'300','49655',226,713);
INSERT INTO "communes" VALUES('12','Espalion','12',4341,4400,36.6,'474','49470',330,764);
INSERT INTO "communes" VALUES('12','Naucelle','22',2017,1800,23.23,'6','49109',333,560);
INSERT INTO "communes" VALUES('12','Cruéjouls','15',417,370,18.35,'576','49383',557,777);
INSERT INTO "communes" VALUES('12','Rivière-sur-Tarn','23',1055,959,26.08,'882','49098',372,880);
INSERT INTO "communes" VALUES('12','<NAME>-l''Évêque','26',820,881,44.16,'-224','49267',280,713);
INSERT INTO "communes" VALUES('12','Laval-Roquecezière','36',293,337,30.66,'346','48674',329,932);
INSERT INTO "communes" VALUES('12','Gaillac-d''Aveyron','15',329,328,29.03,'658','49284',584,975);
INSERT INTO "communes" VALUES('12','<NAME>','35',352,372,26.48,'465','48944',260,828);
INSERT INTO "communes" VALUES('12','Durenque','25',553,606,33.15,'313','49011',553,908);
INSERT INTO "communes" VALUES('12','Mélagues','04',64,102,44.51,'757','48599',554,1067);
INSERT INTO "communes" VALUES('12','Lanuéjouls','18',732,605,12,'-196','49361',437,556);
INSERT INTO "communes" VALUES('12','<NAME>','21',175,153,61.91,'1089','48792',640,900);
INSERT INTO "communes" VALUES('12','Sainte-Eulalie-de-Cernon','09',256,221,46.35,'888','48868',529,916);
INSERT INTO "communes" VALUES('12','Bor-et-Bar','20',188,203,12.92,'-290','49098',172,528);
INSERT INTO "communes" VALUES('12','Montjaux','31',386,388,31.48,'632','49003',340,1087);
INSERT INTO "communes" VALUES('12','Montbazens','18',1407,1317,17.48,'-120','49418',340,508);
INSERT INTO "communes" VALUES('12','<NAME>','26',390,357,15.63,'-171','49216',514,728);
INSERT INTO "communes" VALUES('12','Sébrazac','13',509,483,25.04,'356','49472',300,584);
INSERT INTO "communes" VALUES('12','<NAME>','11',163,146,24.89,'187','49615',220,781);
INSERT INTO "communes" VALUES('12','Murols','19',103,130,13.9,'266','49727',308,725);
INSERT INTO "communes" VALUES('12','Mayran','27',577,454,15.36,'30','49320',400,734);
INSERT INTO "communes" VALUES('12','Lescure-Jaoul','38',255,271,18.52,'-212','49146',210,623);
INSERT INTO "communes" VALUES('12','Toulonjac','42',702,643,7.25,'-373','49313',288,441);
INSERT INTO "communes" VALUES('12','Millau','97',21887,21371,168.23,'824','48997',340,888);
INSERT INTO "communes" VALUES('12','Castanet','39',538,524,30.42,'-52','49198',436,744);
INSERT INTO "communes" VALUES('12','Galgan','18',352,324,20.37,'-175','49447',240,492);
INSERT INTO "communes" VALUES('12','Connac','25',109,122,10.69,'295','48911',224,662);
INSERT INTO "communes" VALUES('12','Villefranche-de-Rouergue','42',12124,11930,45.85,'-336','49280',237,544);
INSERT INTO "communes" VALUES('12','Sainte-Geneviève-sur-Argence','33',1003,1027,43.4,'469','49780',316,928);
INSERT INTO "communes" VALUES('12','Capdenac-Gare','06',4457,4586,20.21,'-284','49524',156,421);
INSERT INTO "communes" VALUES('12','Mouret','16',510,476,31.61,'198','49464',269,608);
INSERT INTO "communes" VALUES('12','Lestrade-et-Thouels','35',467,454,42.27,'359','48955',315,803);
INSERT INTO "communes" VALUES('12','Valady','16',1548,1127,15.51,'100','49395',283,636);
INSERT INTO "communes" VALUES('12','Brommat','19',693,781,43.28,'387','49811',312,933);
INSERT INTO "communes" VALUES('12','Cabanès','22',224,220,15.78,'-34','49094',290,513);
INSERT INTO "communes" VALUES('12','Marnhagues-et-Latour','09',140,132,21.92,'770','48747',396,762);
INSERT INTO "communes" VALUES('12','Cassagnes-Bégonhès','07',903,983,30.93,'215','49077',419,665);
INSERT INTO "communes" VALUES('12','Saint-Sever-du-Moustier','02',229,218,26.03,'404','48640',456,964);
INSERT INTO "communes" VALUES('12','Creissels','44',1474,1491,28.19,'810','48986',340,808);
INSERT INTO "communes" VALUES('12','Goutrens','27',492,411,25.99,'37','49381',331,725);
INSERT INTO "communes" VALUES('12','Manhac','39',723,505,18.5,'147','49172',459,793);
INSERT INTO "communes" VALUES('12','Saint-Beaulize','09',101,95,19.97,'859','48775',500,849);
INSERT INTO "communes" VALUES('12','Saint-Georges-de-Luzençon','44',1567,1303,47.73,'721','48961',340,782);
INSERT INTO "communes" VALUES('12','Ségur','41',578,623,67.05,'553','49214',716,1005);
INSERT INTO "communes" VALUES('12','Mounes-Prohencoux','02',184,190,37.62,'574','48652',440,951);
INSERT INTO "communes" VALUES('12','Saint-Sernin-sur-Rance','36',694,530,11.14,'297','48760',288,662);
INSERT INTO "communes" VALUES('12','Pruines','16',284,239,18.88,'185','49478',264,703);
INSERT INTO "communes" VALUES('12','Roquefort-sur-Soulzon','29',666,679,17.03,'725','48863',424,828);
INSERT INTO "communes" VALUES('12','Aurelle-Verlac','34',165,209,54.68,'745','49451',500,1461);
INSERT INTO "communes" VALUES('12','Montlaur','02',650,579,41.57,'552','48755',330,681);
INSERT INTO "communes" VALUES('12','Fondamente','09',309,306,50.58,'874','48751',422,844);
INSERT INTO "communes" VALUES('12','Saint-Symphorien-de-Thénières','30',239,228,31.63,'436','49708',300,946);
INSERT INTO "communes" VALUES('12','Pont-de-Salars','24',1635,1424,44.9,'435','49201',570,883);
INSERT INTO "communes" VALUES('12','<NAME>','33',164,170,27.6,'536','49728',820,1222);
INSERT INTO "communes" VALUES('12','<NAME>-Sainte-Marguerite','23',198,172,49.4,'985','49028',385,909);
INSERT INTO "communes" VALUES('12','Combret','36',308,296,49.85,'373','48713',326,919);
INSERT INTO "communes" VALUES('12','Curières','14',234,264,36.06,'588','49614',635,1404);
INSERT INTO "communes" VALUES('12','Aguessac','17',860,831,17.64,'846','49063',367,869);
INSERT INTO "communes" VALUES('12','Saint-Jean-d''Alcapiès','29',258,163,8.62,'709','48835',422,689);
INSERT INTO "communes" VALUES('12','Montfranc','36',128,132,6.2,'257','48715',595,834);
INSERT INTO "communes" VALUES('12','Decazeville','10',6012,6787,13.88,'-90','49510',163,454);
INSERT INTO "communes" VALUES('12','Golinhac','11',404,391,32.41,'274','49560',229,694);
INSERT INTO "communes" VALUES('12','Saint-Christophe-Vallon','16',1141,1002,23.22,'84','49412',269,585);
INSERT INTO "communes" VALUES('12','Sonnac','06',466,389,11.98,'-253','49498',176,467);
INSERT INTO "communes" VALUES('12','Buzeins','40',186,198,21.59,'705','49304',612,895);
INSERT INTO "communes" VALUES('12','Aubin','01',4044,4358,27.23,'-101','49475',211,500);
INSERT INTO "communes" VALUES('12','Lunac','20',439,462,18.78,'-248','49151',260,562);
INSERT INTO "communes" VALUES('12','Ols-et-Rinhodes','43',148,120,10.82,'-417','49407',305,400);
INSERT INTO "communes" VALUES('12','Centrès','22',546,599,36.71,'80','49071',320,605);
INSERT INTO "communes" VALUES('12','<NAME>-Pradines','29',111,98,20.56,'789','48891',460,862);
INSERT INTO "communes" VALUES('12','<NAME>','36',126,140,18.52,'384','48761',398,668);
INSERT INTO "communes" VALUES('12','Vitrac-en-Viadène','33',112,99,16.99,'553','49772',858,1102);
INSERT INTO "communes" VALUES('12','Noailhac','08',174,193,15.96,'43','49518',280,625);
INSERT INTO "communes" VALUES('12','Sainte-Radegonde','28',1658,1354,30.48,'322','49264',526,791);
INSERT INTO "communes" VALUES('12','Viala-du-Pas-de-Jaux','09',99,74,18.95,'799','48841',720,879);
INSERT INTO "communes" VALUES('12','Saujac','43',128,139,12.23,'-494','49441',144,368);
INSERT INTO "communes" VALUES('12','Sénergues','08',474,544,44.9,'165','49562',188,664);
INSERT INTO "communes" VALUES('12','Privezac','18',331,273,11.09,'-166','49347',436,595);
INSERT INTO "communes" VALUES('12','Muret-le-Château','16',334,273,14.98,'266','49437',327,604);
INSERT INTO "communes" VALUES('12','Paulhe','17',348,312,4.72,'852','49058',366,846);
INSERT INTO "communes" VALUES('12','Palmas','15',311,223,14.34,'562','49327',572,701);
INSERT INTO "communes" VALUES('12','Morlhon-le-Haut','42',560,531,22.09,'-305','49250',280,591);
INSERT INTO "communes" VALUES('12','Camboulazet','39',365,318,13.78,'118','49143',379,746);
INSERT INTO "communes" VALUES('12','Rignac','27',1934,1652,33.35,'-52','49343',390,684);
INSERT INTO "communes" VALUES('12','Graissac','33',207,236,22.42,'492','49740',776,984);
INSERT INTO "communes" VALUES('12','Druelle','45',1972,1686,35.68,'174','49272',392,666);
INSERT INTO "communes" VALUES('12','Montézic','30',248,241,18.87,'336','49677',284,773);
INSERT INTO "communes" VALUES('12','Colombiès','39',951,986,55.23,'2','49272',390,751);
INSERT INTO "communes" VALUES('12','Conques','08',275,303,30.51,'67','49555',221,653);
INSERT INTO "communes" VALUES('12','<NAME>','12',275,282,22.16,'506','49541',470,885);
INSERT INTO "communes" VALUES('12','Salvagnac-Cajarc','43',356,351,23.19,'-543','49417',140,391);
INSERT INTO "communes" VALUES('12','Tauriac-de-Naucelle','22',375,354,21.59,'0','49061',293,505);
INSERT INTO "communes" VALUES('12','Villeneuve','43',1947,2013,65.3,'-339','49375',295,505);
INSERT INTO "communes" VALUES('12','Pradinas','39',372,390,22.68,'-81','49155',325,652);
INSERT INTO "communes" VALUES('12','Prévinquières','26',301,290,20.86,'-119','49305',366,712);
INSERT INTO "communes" VALUES('12','Almont-les-Junies','10',487,424,23.75,'-48','49552',180,556);
INSERT INTO "communes" VALUES('12','Baraqueville','39',3041,2570,34.01,'107','49197',470,813);
INSERT INTO "communes" VALUES('12','Broquiès','35',638,678,37.99,'399','48895',243,738);
INSERT INTO "communes" VALUES('12','Vabre-Tizac','26',436,416,22.67,'-208','49190',353,607);
INSERT INTO "communes" VALUES('12','Martiel','42',915,822,46.71,'-459','49308',254,430);
INSERT INTO "communes" VALUES('12','Mostuéjouls','23',291,264,30.95,'941','49114',376,962);
INSERT INTO "communes" VALUES('12','Viala-du-Tarn','31',531,526,38.56,'601','48969',300,1050);
INSERT INTO "communes" VALUES('12','Tournemire','29',393,416,8.91,'759','48855',490,856);
INSERT INTO "communes" VALUES('12','Sauclières','21',173,189,38.81,'1145','48862',580,1341);
INSERT INTO "communes" VALUES('12','Vabres-l''Abbaye','29',1128,1082,41.36,'556','48828',299,730);
INSERT INTO "communes" VALUES('12','Nant','21',924,845,109.4,'1072','48913',421,926);
INSERT INTO "communes" VALUES('12','Alrance','37',400,417,35.43,'385','49035',719,971);
INSERT INTO "communes" VALUES('12','Belmont-sur-Rance','02',998,1008,44.19,'465','48685',394,854);
INSERT INTO "communes" VALUES('12','Saint-Just-sur-Viaur','22',201,222,25.1,'33','49028',300,625);
INSERT INTO "communes" VALUES('12','Marcillac-Vallon','16',1667,1533,14.59,'142','49415',275,534);
INSERT INTO "communes" VALUES('12','Saint-Beauzély','31',529,524,30.69,'690','49072',549,1062);
INSERT INTO "communes" VALUES('12','Saint-Juéry','36',220,257,29.01,'399','48789',289,637);
INSERT INTO "communes" VALUES('12','<NAME>','21',1071,816,40.56,'914','48899',764,892);
INSERT INTO "communes" VALUES('12','Castelnau-de-Mandailles','12',542,528,35.87,'610','49484',360,949);
INSERT INTO "communes" VALUES('12','Maleville','18',919,905,36.35,'-261','49330',280,555);
INSERT INTO "communes" VALUES('12','Valzergues','18',196,203,6.49,'-128','49444',261,468);
INSERT INTO "communes" VALUES('12','Fayet','04',260,271,15.87,'680','48670',407,761);
INSERT INTO "communes" VALUES('12','Brousse-le-Château','35',155,163,15.54,'321','48886',220,665);
INSERT INTO "communes" VALUES('12','Saint-Victor-et-Melvieu','35',381,327,17.91,'550','48946',262,689);
INSERT INTO "communes" VALUES('12','Condom-d''Aubrac','32',315,350,46.08,'588','49560',465,1440);
INSERT INTO "communes" VALUES('12','Montagnol','04',158,159,34.47,'752','48709',450,826);
INSERT INTO "communes" VALUES('12','Castelmary','38',134,114,11.81,'-93','49077',240,486);
INSERT INTO "communes" VALUES('12','Coupiac','36',449,534,24.72,'272','48837',278,649);
INSERT INTO "communes" VALUES('12','Salmiech','07',731,728,28.16,'260','49090',517,846);
INSERT INTO "communes" VALUES('12','Recoules-Prévinquières','40',471,428,25.2,'703','49267',609,1040);
INSERT INTO "communes" VALUES('12','Drulhe','18',413,417,18.03,'-230','49402',276,523);
INSERT INTO "communes" VALUES('12','Saint-André-de-Najac','20',418,373,25.1,'-329','49100',150,437);
INSERT INTO "communes" VALUES('12','Arques','24',118,123,11.29,'515','49241',714,947);
INSERT INTO "communes" VALUES('12','Lacalm','33',197,208,26.49,'607','49747',981,1284);
INSERT INTO "communes" VALUES('12','Pierrefiche','34',275,273,17.1,'679','49382',423,787);
INSERT INTO "communes" VALUES('12','Saint-Côme-d''Olt','12',1365,1257,30.1,'531','49462',340,840);
INSERT INTO "communes" VALUES('12','Saint-Cyprien-sur-Dourdou','08',847,765,30.23,'84','49497',229,645);
INSERT INTO "communes" VALUES('12','Bozouls','03',2759,2330,69.69,'427','49412',355,711);
INSERT INTO "communes" VALUES('12','Olemps','45',3182,3026,12.79,'240','49274',490,639);
INSERT INTO "communes" VALUES('12','Lassouts','12',320,326,30.74,'586','49429',360,863);
INSERT INTO "communes" VALUES('12','Lapanouse-de-Cernon','09',118,99,22.87,'846','48884',473,880);
INSERT INTO "communes" VALUES('12','Cantoin','33',325,312,42.37,'529','49818',647,1024);
INSERT INTO "communes" VALUES('12','Arnac-sur-Dourdou','04',27,31,16.57,'662','48585',506,1000);
INSERT INTO "communes" VALUES('12','Sainte-Eulalie-d''Olt','34',366,325,17.48,'677','49405',400,876);
INSERT INTO "communes" VALUES('12','Saint-Léons','41',363,300,32.89,'721','49128',506,981);
INSERT INTO "communes" VALUES('12','Costes-Gozon','35',176,174,20.33,'517','48908',293,697);
INSERT INTO "communes" VALUES('13','<NAME>','12',5186,4471,25.49,'3305','48572',128,484);
INSERT INTO "communes" VALUES('13','Cassis','54',7722,7998,26.87,'3556','48017',0,385);
INSERT INTO "communes" VALUES('13','Peynier','34',2943,2783,24.76,'3672','48274',211,500);
INSERT INTO "communes" VALUES('13','Aureille','09',1499,1359,21.74,'2900','48564',55,410);
INSERT INTO "communes" VALUES('13','Cabannes','26',4319,4114,20.91,'2905','48734',42,65);
INSERT INTO "communes" VALUES('13','Sénas','26',6540,5618,30.61,'3046','48605',85,273);
INSERT INTO "communes" VALUES('13','Charleval','12',2481,2076,14.41,'3232','48576',121,390);
INSERT INTO "communes" VALUES('13','Barbentane','07',3791,3643,27.13,'2679','48777',12,167);
INSERT INTO "communes" VALUES('13','Orgon','26',3118,2650,34.78,'3002','48657',62,298);
INSERT INTO "communes" VALUES('13','Cadolive','29',2124,2087,4.18,'3568','48217',294,660);
INSERT INTO "communes" VALUES('13','Saint-Rémy-de-Provence','31',10617,9793,89.09,'2772','48655',7,392);
INSERT INTO "communes" VALUES('13','Mollégès','26',2547,2171,14.2,'2903','48673',45,67);
INSERT INTO "communes" VALUES('13','Éguilles','02',7554,7124,34.07,'3353','48410',128,316);
INSERT INTO "communes" VALUES('13','Istres','95',42544,38983,113.73,'2947','48349',0,120);
INSERT INTO "communes" VALUES('13','Noves','07',5233,4440,27.92,'2850','48752',32,105);
INSERT INTO "communes" VALUES('13','Rognonas','07',4104,3583,9.41,'2742','48779',16,25);
INSERT INTO "communes" VALUES('13','Aix-en-Provence','97',141438,134324,186.08,'3454','48364',73,501);
INSERT INTO "communes" VALUES('13','Rousset','34',4432,3623,19.5,'3650','48314',196,480);
INSERT INTO "communes" VALUES('13','Allauch','35',19521,18943,50.3,'3495','48151',116,721);
INSERT INTO "communes" VALUES('13','La Fare-les-Oliviers','51',6895,6279,13.98,'3176','48391',27,223);
INSERT INTO "communes" VALUES('13','Saint-Cannat','12',5523,4636,36.54,'3290','48468',159,391);
INSERT INTO "communes" VALUES('13','Boulbon','33',1535,1511,19.33,'2619','48736',10,165);
INSERT INTO "communes" VALUES('13','Bouc-Bel-Air','10',13679,12356,21.75,'3420','48283',153,330);
INSERT INTO "communes" VALUES('13','Peypin','29',5384,4954,13.35,'3602','48206',216,602);
INSERT INTO "communes" VALUES('13','Mimet','10',4519,4121,18.7,'3521','48237',269,782);
INSERT INTO "communes" VALUES('13','<NAME>','29',5990,4914,12.61,'3621','48217',193,686);
INSERT INTO "communes" VALUES('13','Châteauneuf-le-Rouge','34',2123,1875,13.15,'3592','48322',179,511);
INSERT INTO "communes" VALUES('13','Belcodène','29',1799,1434,12.97,'3614','48251',297,450);
INSERT INTO "communes" VALUES('13','Saint-Marc-Jaumegarde','01',1123,1071,22.56,'3542','48386',241,600);
INSERT INTO "communes" VALUES('13','Roquefort-la-Bédoule','54',5052,4733,31.15,'3616','48053',158,567);
INSERT INTO "communes" VALUES('13','Saint-Victoret','36',6561,6806,4.73,'3219','48245',15,120);
INSERT INTO "communes" VALUES('13','Saint-Antonin-sur-Bayon','34',137,165,17.57,'3607','48354',277,1015);
INSERT INTO "communes" VALUES('13','Salon-de-Provence','32',43152,37098,70.3,'3067','48489',53,325);
INSERT INTO "communes" VALUES('13','Lamanon','09',1747,1713,19.19,'3055','48558',94,326);
INSERT INTO "communes" VALUES('13','Ceyreste','08',4112,3636,22.61,'3659','48015',57,501);
INSERT INTO "communes" VALUES('13','Marseille','99',850726,797491,240.62,'3377','48107',0,640);
INSERT INTO "communes" VALUES('13','Rognes','12',4682,4195,58.32,'3345','48516',160,501);
INSERT INTO "communes" VALUES('13','Eyragues','07',4170,3942,20.78,'2783','48712',11,99);
INSERT INTO "communes" VALUES('13','Port-Saint-Louis-du-Rhône','28',8638,8118,73.38,'2742','48208',0,3);
INSERT INTO "communes" VALUES('13','Maillane','31',2318,1890,16.77,'2717','48703',7,17);
INSERT INTO "communes" VALUES('13','<NAME>-Sainte-Réparade','27',5299,4826,46.29,'3445','48515',164,492);
INSERT INTO "communes" VALUES('13','Châteaurenard','07',14928,13058,34.95,'2798','48758',15,110);
INSERT INTO "communes" VALUES('13','Mallemort','09',6041,4987,28.16,'3159','48590',99,225);
INSERT INTO "communes" VALUES('13','<NAME>','51',684,554,22.85,'3155','48478',87,204);
INSERT INTO "communes" VALUES('13','Cabriès','52',8572,7871,36.55,'3381','48268',124,261);
INSERT INTO "communes" VALUES('13','Saint-Chamas','06',7778,6594,26.71,'2998','48389',0,191);
INSERT INTO "communes" VALUES('13','Verquières','26',803,801,4.59,'2869','48711',45,51);
INSERT INTO "communes" VALUES('13','Maussane-les-Alpilles','31',2132,1965,31.6,'2742','48580',0,342);
INSERT INTO "communes" VALUES('13','Saint-Mitre-les-Remparts','49',5428,5451,21.02,'2975','48283',0,141);
INSERT INTO "communes" VALUES('13','Rognac','06',11770,11640,17.46,'3217','48320',0,271);
INSERT INTO "communes" VALUES('13','Baux-de-Provence','31',436,430,18.07,'2732','48604',52,310);
INSERT INTO "communes" VALUES('13','Plan-de-Cuques','35',10917,10502,8.52,'3474','48163',114,550);
INSERT INTO "communes" VALUES('13','Plan-d''Orgon','26',2895,2429,14.94,'2961','48679',58,165);
INSERT INTO "communes" VALUES('13','Puyloubier','34',1821,1475,40.85,'3712','48361',239,1007);
INSERT INTO "communes" VALUES('13','Arles','98',52661,50467,758.93,'2547','48530',0,57);
INSERT INTO "communes" VALUES('13','Venelles','01',8185,7553,20.54,'3495','48442',254,442);
INSERT INTO "communes" VALUES('13','Alleins','09',2414,2069,16.78,'3139','48560',104,345);
INSERT INTO "communes" VALUES('13','Aubagne','94',46423,42681,54.9,'3594','48101',74,701);
INSERT INTO "communes" VALUES('13','Martigues','96',47544,43579,71.44,'3012','48228',0,187);
INSERT INTO "communes" VALUES('13','Port-de-Bouc','50',17216,17106,11.46,'2947','48228',0,68);
INSERT INTO "communes" VALUES('13','Vernègues','09',1437,939,15.89,'3150','48540',163,395);
INSERT INTO "communes" VALUES('13','Graveson','07',3914,3189,23.54,'2708','48724',8,143);
INSERT INTO "communes" VALUES('13','Gignac-la-Nerthe','48',9018,9193,8.64,'3221','48215',11,128);
INSERT INTO "communes" VALUES('13','Vitrolles','53',35021,36739,36.58,'3235','48289',0,255);
INSERT INTO "communes" VALUES('13','Tarascon','33',13297,12668,73.97,'2581','48672',3,200);
INSERT INTO "communes" VALUES('13','Gréasque','29',4109,3578,6.15,'3558','48256',276,385);
INSERT INTO "communes" VALUES('13','Peyrolles-en-Provence','27',4682,3913,34.9,'3609','48495',201,782);
INSERT INTO "communes" VALUES('13','Septèmes-les-Vallons','52',11209,10207,17.84,'3366','48220',140,580);
INSERT INTO "communes" VALUES('13','Meyrargues','27',3578,3264,41.67,'3546','48484',186,554);
INSERT INTO "communes" VALUES('13','Aurons','51',532,515,12.82,'3134','48517',140,330);
INSERT INTO "communes" VALUES('13','Sausset-les-Pins','48',7606,7234,12.1,'3086','48147',0,176);
INSERT INTO "communes" VALUES('13','Miramas','11',25368,22520,25.74,'2961','48424',0,125);
INSERT INTO "communes" VALUES('13','Beaurecueil','34',613,568,9.86,'3564','48345',199,660);
INSERT INTO "communes" VALUES('13','Fuveau','34',9247,7513,30.02,'3583','48280',179,381);
INSERT INTO "communes" VALUES('13','Saint-Étienne-du-Grès','33',2250,2109,29.04,'2654','48645',5,231);
INSERT INTO "communes" VALUES('13','Roquevaire','29',8549,7900,23.83,'3631','48166',134,732);
INSERT INTO "communes" VALUES('13','<NAME>','01',2240,2270,10.82,'3527','48358',150,350);
INSERT INTO "communes" VALUES('13','Saint-Paul-lès-Durance','27',985,790,45.81,'3746','48541',230,519);
INSERT INTO "communes" VALUES('13','Fos-sur-Mer','49',15357,14007,92.31,'2899','48263',0,49);
INSERT INTO "communes" VALUES('13','Saint-Pierre-de-Mézoargues','33',242,226,4.13,'2569','48732',9,18);
INSERT INTO "communes" VALUES('13','Meyreuil','02',5295,4403,20.13,'3510','48318',138,346);
INSERT INTO "communes" VALUES('13','Vauvenargues','01',992,727,54.31,'3629','48395',346,1016);
INSERT INTO "communes" VALUES('13','Pennes-Mirabeau','52',19482,19022,33.66,'3303','48233',56,287);
INSERT INTO "communes" VALUES('13','Pélissanne','51',9518,8586,19.11,'3126','48479',70,295);
INSERT INTO "communes" VALUES('13','<NAME>','08',33829,31583,31.46,'3635','47973',0,388);
INSERT INTO "communes" VALUES('13','<NAME>-sur-Huveaune','05',6336,5980,3.56,'3532','48089',70,404);
INSERT INTO "communes" VALUES('13','Eygalières','26',1775,1859,33.97,'2904','48623',50,375);
INSERT INTO "communes" VALUES('13','Saint-Savournin','29',3239,2559,5.89,'3545','48229',298,780);
INSERT INTO "communes" VALUES('13','Mas-Blanc-des-Alpilles','33',502,370,1.57,'2689','48655',9,65);
INSERT INTO "communes" VALUES('13','Paradou','31',1417,1165,16.15,'2724','48579',0,162);
INSERT INTO "communes" VALUES('13','Saint-Andiol','26',3189,2607,16,'2898','48706',47,67);
INSERT INTO "communes" VALUES('13','Trets','34',10288,9308,70.31,'3721','48274',217,810);
INSERT INTO "communes" VALUES('13','Gémenos','54',6137,5481,32.75,'3656','48107',104,1041);
INSERT INTO "communes" VALUES('13','Mouriès','09',3560,2751,38.35,'2816','48544',1,280);
INSERT INTO "communes" VALUES('13','Fontvieille','03',3621,3442,40.18,'2636','48585',0,245);
INSERT INTO "communes" VALUES('13','Saintes-Maries-de-la-Mer','30',2296,2469,374.61,'2324','48280',0,6);
INSERT INTO "communes" VALUES('13','Carry-le-Rouet','48',6305,5998,10.1,'3128','48147',0,178);
INSERT INTO "communes" VALUES('13','Saint-Martin-de-Crau','03',11180,11026,214.87,'2751','48489',2,447);
INSERT INTO "communes" VALUES('13','Ensuès-la-Redonne','48',5225,4542,25.83,'3186','48173',0,238);
INSERT INTO "communes" VALUES('13','Marignane','36',34485,34016,23.16,'3198','48241',0,100);
INSERT INTO "communes" VALUES('13','Simiane-Collongue','10',5435,5275,29.84,'3440','48257',192,711);
INSERT INTO "communes" VALUES('13','Grans','32',4245,3754,27.6,'3029','48454',38,110);
INSERT INTO "communes" VALUES('13','Lançon-Provence','51',8326,6685,68.92,'3101','48436',3,236);
INSERT INTO "communes" VALUES('13','Cornillon-Confoux','51',1337,1168,14.95,'3039','48403',21,190);
INSERT INTO "communes" VALUES('13','Lambesc','12',9239,7595,65.34,'3250','48504',111,482);
INSERT INTO "communes" VALUES('13','Jouques','27',4238,3323,80.35,'3667','48485',209,782);
INSERT INTO "communes" VALUES('13','Carnoux-en-Provence','54',6862,7035,3.45,'3586','48063',180,380);
INSERT INTO "communes" VALUES('13','Saint-Estève-Janson','12',354,302,8.65,'3397','48541',154,415);
INSERT INTO "communes" VALUES('13','Eyguières','09',6404,5390,68.75,'2994','48550',63,496);
INSERT INTO "communes" VALUES('13','Cuges-les-Pins','54',4873,3761,38.81,'3738','48085',165,1041);
INSERT INTO "communes" VALUES('13','<NAME>','29',2953,2485,2.93,'3633','48196',177,364);
INSERT INTO "communes" VALUES('13','Ventabren','51',4581,4549,26.32,'3285','48377',59,286);
INSERT INTO "communes" VALUES('13','Velaux','51',8515,7603,25.23,'3241','48358',27,270);
INSERT INTO "communes" VALUES('13','Gardanne','10',20474,19350,27.02,'3488','48283',170,387);
INSERT INTO "communes" VALUES('13','Berre-l''Étang','06',13582,13410,43.64,'3146','48306',0,146);
INSERT INTO "communes" VALUES('13','Auriol','29',11764,9465,44.64,'3661','48188',171,937);
INSERT INTO "communes" VALUES('13','Coudoux','51',3448,2869,12.65,'3235','48398',40,277);
INSERT INTO "communes" VALUES('13','<NAME>','48',4273,4028,22.97,'3237','48188',0,263);
INSERT INTO "communes" VALUES('13','Châteauneuf-les-Martigues','48',11665,11365,31.65,'3142','48203',0,203);
INSERT INTO "communes" VALUES('14','Saint-Pierre-Canivet','17',377,342,7.01,'-2840','54367',142,231);
INSERT INTO "communes" VALUES('14','Grangues','15',248,240,6.61,'-2657','54740',16,141);
INSERT INTO "communes" VALUES('14','Vieux-Bourg','27',84,74,1.3,'-2318','54792',44,135);
INSERT INTO "communes" VALUES('14','Englesqueville-la-Percée','20',86,97,7.88,'-3654','54862',0,42);
INSERT INTO "communes" VALUES('14','Ranchy','03',205,158,5.14,'-3437','54727',27,82);
INSERT INTO "communes" VALUES('14','Castillon-en-Auge','24',151,130,7.23,'-2490','54479',49,170);
INSERT INTO "communes" VALUES('14','Grentheville','06',919,754,4.08,'-2915','54610',22,33);
INSERT INTO "communes" VALUES('14','Authieux-sur-Calonne','05',294,250,10.2,'-2281','54775',23,162);
INSERT INTO "communes" VALUES('14','Vieux-Fumé','07',440,335,6.69,'-2726','54508',23,73);
INSERT INTO "communes" VALUES('14','Cheffreville-Tonnencourt','23',261,172,7.72,'-2327','54480',78,186);
INSERT INTO "communes" VALUES('14','Grimbosq','07',269,302,8.63,'-3098','54493',8,142);
INSERT INTO "communes" VALUES('14','Tour-en-Bessin','33',590,506,10.31,'-3461','54774',20,77);
INSERT INTO "communes" VALUES('14','Saint-Georges-en-Auge','29',96,79,5.16,'-2529','54434',98,197);
INSERT INTO "communes" VALUES('14','Le Bô','31',105,100,3.9,'-3100','54330',37,273);
INSERT INTO "communes" VALUES('14','Conteville','06',103,82,4.14,'-2859','54543',39,94);
INSERT INTO "communes" VALUES('14','Saint-Vigor-des-Mézerets','12',241,196,9.47,'-3309','54343',117,237);
INSERT INTO "communes" VALUES('14','Montchamp','36',553,522,16.2,'-3447','54357',154,260);
INSERT INTO "communes" VALUES('14','<NAME>-Abenon','26',154,135,10.75,'-2125','54425',122,207);
INSERT INTO "communes" VALUES('14','Pierres','36',197,199,9.73,'-3412','54301',146,246);
INSERT INTO "communes" VALUES('14','Saint-Côme-de-Fresné','28',237,224,4.31,'-3270','54816',0,58);
INSERT INTO "communes" VALUES('14','Maisoncelles-la-Jourdan','38',472,469,13.54,'-3540','54223',173,289);
INSERT INTO "communes" VALUES('14','Hermanville-sur-Mer','14',2732,2659,8.05,'-2946','54760',3,59);
INSERT INTO "communes" VALUES('14','Mosles','33',370,253,6.42,'-3506','54788',7,62);
INSERT INTO "communes" VALUES('14','Bonneville-sur-Touques','27',395,318,6.63,'-2463','54820',3,132);
INSERT INTO "communes" VALUES('14','Drubec','27',111,112,3.14,'-2476','54734',80,145);
INSERT INTO "communes" VALUES('14','Équemauville','19',1280,1212,5.98,'-2364','54881',20,119);
INSERT INTO "communes" VALUES('14','Auberville','15',487,214,2.62,'-2628','54785',5,131);
INSERT INTO "communes" VALUES('14','Vauville','27',235,255,5.13,'-2537','54791',9,95);
INSERT INTO "communes" VALUES('14','Baron-sur-Odon','16',842,626,6.43,'-3134','54586',25,111);
INSERT INTO "communes" VALUES('14','Castilly','20',287,246,12.2,'-3734','54745',4,64);
INSERT INTO "communes" VALUES('14','<NAME>','02',158,154,10.14,'-3560','54621',57,142);
INSERT INTO "communes" VALUES('14','Perrières','25',309,252,8.17,'-2748','54399',42,136);
INSERT INTO "communes" VALUES('14','Rocquancourt','06',815,581,2.75,'-2954','54549',68,92);
INSERT INTO "communes" VALUES('14','Vouilly','20',164,190,6.33,'-3747','54772',0,45);
INSERT INTO "communes" VALUES('14','Landes-sur-Ajon','37',392,252,6,'-3240','54529',70,175);
INSERT INTO "communes" VALUES('14','Ernes','25',297,285,8.9,'-2733','54463',35,84);
INSERT INTO "communes" VALUES('14','Saint-Julien-le-Faucon','24',719,585,3.22,'-2499','54522',29,73);
INSERT INTO "communes" VALUES('14','Vaucelles','03',369,213,3.56,'-3414','54762',22,64);
INSERT INTO "communes" VALUES('14','Courvaudon','37',212,203,9.53,'-3237','54479',137,249);
INSERT INTO "communes" VALUES('14','Courcy','25',151,140,9.12,'-2644','54413',38,79);
INSERT INTO "communes" VALUES('14','Saint-Ouen-des-Besaces','04',355,254,8.48,'-3538','54470',120,301);
INSERT INTO "communes" VALUES('14','Fervaques','23',725,646,10.67,'-2314','54490',73,197);
INSERT INTO "communes" VALUES('14','Rouvres','07',225,197,8.87,'-2787','54449',54,135);
INSERT INTO "communes" VALUES('14','Subles','03',655,571,2.44,'-3430','54712',30,82);
INSERT INTO "communes" VALUES('14','Saint-Pierre-la-Vieille','12',363,347,12.43,'-3236','54354',117,252);
INSERT INTO "communes" VALUES('14','Longvillers','37',349,324,6.65,'-3297','54502',87,187);
INSERT INTO "communes" VALUES('14','Isigny-sur-Mer','20',2803,2925,17.44,'-3821','54798',0,37);
INSERT INTO "communes" VALUES('14','Livarot','23',2269,2514,12.09,'-2427','54452',52,184);
INSERT INTO "communes" VALUES('14','Saint-Gatien-des-Bois','19',1363,1166,49.11,'-2390','54831',30,153);
INSERT INTO "communes" VALUES('14','Estrées-la-Campagne','07',234,176,7.45,'-2856','54460',82,179);
INSERT INTO "communes" VALUES('14','Amfreville','47',1185,1056,6.06,'-2856','54721',0,57);
INSERT INTO "communes" VALUES('14','Creully','13',1651,1426,8.56,'-3197','54760',7,61);
INSERT INTO "communes" VALUES('14','Écrammeville','33',199,161,6.84,'-3645','54803',0,48);
INSERT INTO "communes" VALUES('14','Osmanville','20',625,514,10.88,'-3797','54810',0,31);
INSERT INTO "communes" VALUES('14','Roullours','38',871,769,13.15,'-3529','54259',169,308);
INSERT INTO "communes" VALUES('14','Monfréville','20',108,95,7.22,'-3749','54787',1,42);
INSERT INTO "communes" VALUES('14','Vierville-sur-Mer','33',246,237,6.41,'-3602','54860',0,62);
INSERT INTO "communes" VALUES('14','Bernesq','33',195,153,5.9,'-3642','54749',6,62);
INSERT INTO "communes" VALUES('14','Ablon','19',1189,1044,12,'-2268','54882',0,118);
INSERT INTO "communes" VALUES('14','<NAME>','33',399,258,4.37,'-3550','54728',15,58);
INSERT INTO "communes" VALUES('14','Saint-Pierre-Azif','15',176,153,6.17,'-2549','54772',40,139);
INSERT INTO "communes" VALUES('14','Bucéels','02',382,352,4.84,'-3308','54657',42,96);
INSERT INTO "communes" VALUES('14','Ryes','28',496,449,9.59,'-3289','54791',15,59);
INSERT INTO "communes" VALUES('14','Cormelles-le-Royal','46',4690,4598,3.48,'-2963','54616',13,37);
INSERT INTO "communes" VALUES('14','Heuland','15',90,71,3.02,'-2598','54754',25,148);
INSERT INTO "communes" VALUES('14','Boulon','07',608,554,14.96,'-3033','54498',29,142);
INSERT INTO "communes" VALUES('14','Monceaux-en-Bessin','03',514,383,4.73,'-3367','54720',40,82);
INSERT INTO "communes" VALUES('14','Sannerville','34',1701,1621,5.14,'-2843','54645',7,55);
INSERT INTO "communes" VALUES('14','Houlgate','15',2086,1832,4.69,'-2682','54779',0,124);
INSERT INTO "communes" VALUES('14','Troarn','34',3700,3178,11.53,'-2801','54646',2,61);
INSERT INTO "communes" VALUES('14','Bavent','47',1734,1723,18.45,'-2805','54701',2,66);
INSERT INTO "communes" VALUES('14','Bretteville-l''Orgueilleuse','32',2357,2384,6.18,'-3167','54679',47,72);
INSERT INTO "communes" VALUES('14','Saint-Germain-la-Blanche-Herbe','09',2475,2534,2.63,'-3052','54655',60,76);
INSERT INTO "communes" VALUES('14','Mittois','29',165,155,7.38,'-2570','54455',37,176);
INSERT INTO "communes" VALUES('14','Ouilly-le-Vicomte','21',871,787,7.73,'-2347','54646',31,141);
INSERT INTO "communes" VALUES('14','Soulangy','17',258,238,7.18,'-2840','54381',139,176);
INSERT INTO "communes" VALUES('14','Beuvron-en-Auge','10',239,234,9.68,'-2647','54654',3,143);
INSERT INTO "communes" VALUES('14','Bons-Tassilly','17',385,387,9.38,'-2853','54399',130,206);
INSERT INTO "communes" VALUES('14','Torteval-Quesnay','11',349,363,16.96,'-3408','54597',68,160);
INSERT INTO "communes" VALUES('14','Angerville','15',143,120,3.91,'-2633','54715',14,120);
INSERT INTO "communes" VALUES('14','Boissey','29',224,207,5.28,'-2544','54466',34,165);
INSERT INTO "communes" VALUES('14','Percy-en-Auge','24',249,230,7.04,'-2666','54506',15,41);
INSERT INTO "communes" VALUES('14','Saint-Jouin','15',195,196,5.03,'-2612','54678',30,140);
INSERT INTO "communes" VALUES('14','<NAME>','32',299,216,3.51,'-3202','54661',69,97);
INSERT INTO "communes" VALUES('14','Tortisambert','23',150,149,6.07,'-2466','54407',77,213);
INSERT INTO "communes" VALUES('14','Villons-les-Buissons','13',705,554,3.76,'-3051','54712',58,75);
INSERT INTO "communes" VALUES('14','Pierrefitte-en-Cinglais','17',260,233,10.72,'-3027','54337',43,300);
INSERT INTO "communes" VALUES('14','Lasson','13',601,492,4.02,'-3111','54704',34,59);
INSERT INTO "communes" VALUES('14','Vaudry','38',1513,1449,11.89,'-3545','54268',106,261);
INSERT INTO "communes" VALUES('14','Saint-Denis-de-Méré','31',835,799,11.37,'-3169','54300',57,208);
INSERT INTO "communes" VALUES('14','Saint-Samson','15',333,322,3.66,'-2773','54650',2,45);
INSERT INTO "communes" VALUES('14','<NAME>','49',850,747,10.72,'-2445','54613',72,178);
INSERT INTO "communes" VALUES('14','Évrecy','16',1616,1261,8.31,'-3155','54555',58,122);
INSERT INTO "communes" VALUES('14','Cintheaux','07',188,180,7.58,'-2921','54506',69,122);
INSERT INTO "communes" VALUES('14','Englesqueville-en-Auge','27',112,109,3.61,'-2438','54814',15,121);
INSERT INTO "communes" VALUES('14','Bretteville-le-Rabet','07',258,193,4.53,'-2884','54472',75,125);
INSERT INTO "communes" VALUES('14','Familly','26',126,98,10.71,'-2202','54407',165,231);
INSERT INTO "communes" VALUES('14','Longraye','11',240,206,6.59,'-3373','54619',68,138);
INSERT INTO "communes" VALUES('14','Notre-Dame-de-Courson','23',423,358,19.4,'-2305','54434',87,214);
INSERT INTO "communes" VALUES('14','Cossesseville','31',107,88,4.74,'-3062','54329',38,201);
INSERT INTO "communes" VALUES('14','Saint-Martin-Don','04',247,260,7.6,'-3646','54365',64,204);
INSERT INTO "communes" VALUES('14','Montigny','16',97,78,3.91,'-3187','54495',112,207);
INSERT INTO "communes" VALUES('14','Saint-Germain-du-Pert','20',180,153,6.03,'-3752','54818',0,40);
INSERT INTO "communes" VALUES('14','Le Mesnil-Germain','23',265,218,8.67,'-2385','54492',64,182);
INSERT INTO "communes" VALUES('14','Oubeaux','20',226,238,4.27,'-3782','54763',14,47);
INSERT INTO "communes" VALUES('14','Clinchamps-sur-Orne','06',1101,967,6.37,'-3041','54534',6,98);
INSERT INTO "communes" VALUES('14','Blay','33',373,267,7.14,'-3530','54745',15,81);
INSERT INTO "communes" VALUES('14','Rosel','13',545,557,3.9,'-3105','54699',37,68);
INSERT INTO "communes" VALUES('14','Canapville','27',219,219,2.5,'-2446','54797',3,115);
INSERT INTO "communes" VALUES('14','<NAME>','23',221,175,4.47,'-2446','54444',58,186);
INSERT INTO "communes" VALUES('14','Thaon','13',1492,1350,8.3,'-3102','54731',17,66);
INSERT INTO "communes" VALUES('14','Sainte-Honorine-de-Ducy','11',133,115,4.99,'-3460','54607',110,168);
INSERT INTO "communes" VALUES('14','Saint-André-d''Hébertot','05',455,390,9.79,'-2286','54792',23,146);
INSERT INTO "communes" VALUES('14','Firfol','21',449,433,5.01,'-2240','54616',97,162);
INSERT INTO "communes" VALUES('14','Fontaine-Henry','13',478,517,5.81,'-3102','54752',7,58);
INSERT INTO "communes" VALUES('14','Norrey-en-Auge','25',100,76,8.86,'-2614','54348',60,151);
INSERT INTO "communes" VALUES('14','Villiers-le-Sec','28',291,301,2.71,'-3224','54768',11,66);
INSERT INTO "communes" VALUES('14','<NAME>','36',81,86,3.88,'-3498','54339',132,186);
INSERT INTO "communes" VALUES('14','Saint-Loup-Hors','03',315,282,5.29,'-3396','54732',27,82);
INSERT INTO "communes" VALUES('14','Grainville-sur-Odon','32',1008,966,5.26,'-3184','54598',46,119);
INSERT INTO "communes" VALUES('14','Léaupartie','10',82,62,3.2,'-2550','54649',25,133);
INSERT INTO "communes" VALUES('14','Leffard','17',171,169,6.89,'-2934','54353',160,228);
INSERT INTO "communes" VALUES('14','Courtonne-les-Deux-Églises','26',648,541,13.68,'-2184','54539',90,201);
INSERT INTO "communes" VALUES('14','Garcelles-Secqueville','06',770,507,5.64,'-2918','54554',57,105);
INSERT INTO "communes" VALUES('14','Grainville-Langannerie','07',676,522,5.32,'-2899','54458',101,175);
INSERT INTO "communes" VALUES('14','Fontenay-le-Marmion','06',1551,1469,10.16,'-2988','54548',17,92);
INSERT INTO "communes" VALUES('14','L''Oudon','29',1535,1327,54.84,'-2513','54409',40,237);
INSERT INTO "communes" VALUES('14','Maizières','07',455,421,7.15,'-2772','54463',43,105);
INSERT INTO "communes" VALUES('14','Mont-Bertrand','04',243,203,6.33,'-3614','54407',102,247);
INSERT INTO "communes" VALUES('14','Cardonville','20',105,78,3.29,'-3779','54828',13,38);
INSERT INTO "communes" VALUES('14','Bonnœil','17',113,106,7.19,'-3002','54362',175,293);
INSERT INTO "communes" VALUES('14','Saint-André-sur-Orne','06',1904,1608,3.68,'-3022','54576',3,53);
INSERT INTO "communes" VALUES('14','Lénault','12',189,148,6.67,'-3295','54370',130,248);
INSERT INTO "communes" VALUES('14','Varaville','47',888,816,16.49,'-2768','54761',2,20);
INSERT INTO "communes" VALUES('14','Rully','36',218,204,9.97,'-3390','54250',152,242);
INSERT INTO "communes" VALUES('14','Asnières-en-Bessin','20',58,55,4.61,'-3638','54853',12,49);
INSERT INTO "communes" VALUES('14','Genneville','19',759,597,9.36,'-2291','54855',30,139);
INSERT INTO "communes" VALUES('14','Foulognes','11',200,174,6.43,'-3501','54603',95,176);
INSERT INTO "communes" VALUES('14','Guéron','03',233,236,5.27,'-3388','54721',38,84);
INSERT INTO "communes" VALUES('14','Argences','34',3544,3241,9.76,'-2782','54585',2,74);
INSERT INTO "communes" VALUES('14','Basseneville','15',260,263,10.59,'-2740','54667',2,45);
INSERT INTO "communes" VALUES('14','Saint-Contest','09',2443,1989,8.05,'-3042','54682',54,77);
INSERT INTO "communes" VALUES('14','Cahagnolles','02',243,178,7.17,'-3442','54621',83,139);
INSERT INTO "communes" VALUES('14','Monts-en-Bessin','37',425,384,7.16,'-3266','54572',82,192);
INSERT INTO "communes" VALUES('14','Villers-Bocage','37',3001,2902,5.76,'-3325','54532',95,217);
INSERT INTO "communes" VALUES('14','Lessard-et-le-Chêne','49',154,176,10.09,'-2464','54527',30,173);
INSERT INTO "communes" VALUES('14','Saint-Jean-des-Essartiers','01',210,154,8.27,'-3527','54494',109,202);
INSERT INTO "communes" VALUES('14','Saint-Aignan-de-Cramesnil','06',505,361,6.91,'-2907','54534',63,119);
INSERT INTO "communes" VALUES('14','Combray','31',135,130,4.51,'-3084','54388',88,230);
INSERT INTO "communes" VALUES('14','Pontécoulant','12',92,108,2.38,'-3249','54309',98,245);
INSERT INTO "communes" VALUES('14','Culey-le-Patry','31',345,318,7.81,'-3186','54390',27,277);
INSERT INTO "communes" VALUES('14','<NAME>','49',155,155,9.59,'-2479','54546',27,173);
INSERT INTO "communes" VALUES('14','Montchauvet','04',366,340,18.21,'-3417','54382',145,293);
INSERT INTO "communes" VALUES('14','Crocy','25',303,285,10.07,'-2669','54311',56,106);
INSERT INTO "communes" VALUES('14','Sainte-Marie-Outre-l''Eau','30',81,81,5.75,'-3734','54373',46,192);
INSERT INTO "communes" VALUES('14','Blainville-sur-Orne','48',5813,4387,7.11,'-2929','54699',0,36);
INSERT INTO "communes" VALUES('14','<NAME>-la-Chapelle','25',92,63,2.42,'-2624','54313',64,95);
INSERT INTO "communes" VALUES('14','Ouistreham','48',9381,8674,9.95,'-2883','54755',0,32);
INSERT INTO "communes" VALUES('14','Cordey','17',138,159,4.52,'-2850','54279',142,229);
INSERT INTO "communes" VALUES('14','Esson','31',457,335,8.86,'-3101','54405',24,187);
INSERT INTO "communes" VALUES('14','Coulonces','38',733,639,15.58,'-3612','54305',84,196);
INSERT INTO "communes" VALUES('14','Moult','06',1848,1128,10.26,'-2779','54573',19,76);
INSERT INTO "communes" VALUES('14','Carpiquet','09',2374,1848,5.88,'-3090','54651',45,74);
INSERT INTO "communes" VALUES('14','Ouézy','06',243,0,4.55,'-2711','54537',14,76);
INSERT INTO "communes" VALUES('14','Lingèvres','02',492,458,14.46,'-3344','54639',61,137);
INSERT INTO "communes" VALUES('14','Fresney-le-Vieux','07',274,209,2.48,'-3027','54449',167,191);
INSERT INTO "communes" VALUES('14','Saint-Loup-de-Fribois','24',183,177,3.47,'-2588','54570',10,31);
INSERT INTO "communes" VALUES('14','Préaux-Saint-Sébastien','26',36,43,3.72,'-2255','54430',165,215);
INSERT INTO "communes" VALUES('14','<NAME>','11',288,298,10.18,'-3550','54547',80,200);
INSERT INTO "communes" VALUES('14','Donnay','31',182,191,11.19,'-3059','54393',110,297);
INSERT INTO "communes" VALUES('14','Louvières','33',68,73,4.19,'-3617','54849',0,49);
INSERT INTO "communes" VALUES('14','Martragny','13',369,325,3.69,'-3259','54723',43,82);
INSERT INTO "communes" VALUES('14','Luc-sur-Mer','14',3099,3040,3.64,'-2991','54794',4,33);
INSERT INTO "communes" VALUES('14','Mathieu','14',1940,1625,9.41,'-3011','54728',30,59);
INSERT INTO "communes" VALUES('14','Anguerny','13',768,724,2.85,'-3039','54740',44,69);
INSERT INTO "communes" VALUES('14','Bauquay','01',254,165,1.79,'-3281','54482',100,163);
INSERT INTO "communes" VALUES('14','Rucqueville','13',124,139,2.63,'-3245','54729',32,73);
INSERT INTO "communes" VALUES('14','Tournières','02',182,169,3.41,'-3629','54704',34,76);
INSERT INTO "communes" VALUES('14','Ellon','02',414,373,6.73,'-3351','54690',45,91);
INSERT INTO "communes" VALUES('14','Anctoville','11',1067,909,17.48,'-3381','54562',62,158);
INSERT INTO "communes" VALUES('14','Moutiers-Hubert','23',49,50,8.13,'-2300','54419',102,213);
INSERT INTO "communes" VALUES('14','Brucourt','15',127,120,6.6,'-2708','54718',2,105);
INSERT INTO "communes" VALUES('14','Proussy','12',411,353,12.64,'-3193','54313',82,256);
INSERT INTO "communes" VALUES('14','Saint-Désir','49',1662,1693,19.35,'-2362','54600',42,172);
INSERT INTO "communes" VALUES('14','Vire','38',11999,12793,22.5,'-3584','54265',85,225);
INSERT INTO "communes" VALUES('14','Colombiers-sur-Seulles','28',170,181,3.29,'-3164','54770',2,56);
INSERT INTO "communes" VALUES('14','Saint-Sever-Calvados','30',1368,1329,27.92,'-3760','54267',144,350);
INSERT INTO "communes" VALUES('14','Fleury-sur-Orne','44',4118,4232,6.75,'-3014','54607',2,66);
INSERT INTO "communes" VALUES('14','Saint-Aubin-des-Bois','30',224,261,8.26,'-3850','54255',129,218);
INSERT INTO "communes" VALUES('14','Barbery','07',729,523,8.6,'-2989','54456',77,193);
INSERT INTO "communes" VALUES('14','Vienne-en-Bessin','28',281,200,4.1,'-3274','54755',17,67);
INSERT INTO "communes" VALUES('14','Bellengreville','06',1596,1410,10.15,'-2831','54583',6,73);
INSERT INTO "communes" VALUES('14','Campigny','02',186,154,5.61,'-3485','54721',38,77);
INSERT INTO "communes" VALUES('14','Colleville-Montgomery','48',2169,1925,7.74,'-2930','54750',3,58);
INSERT INTO "communes" VALUES('14','Goustranville','15',188,187,10.35,'-2704','54687',1,28);
INSERT INTO "communes" VALUES('14','Sommervieu','28',1068,734,4.3,'-3316','54770',31,68);
INSERT INTO "communes" VALUES('14','Hérouvillette','47',1101,1119,4,'-2867','54691',8,45);
INSERT INTO "communes" VALUES('14','<NAME>','02',3086,2657,27.12,'-3566','54714',25,112);
INSERT INTO "communes" VALUES('14','Vaubadon','02',438,384,7.54,'-3527','54674',43,124);
INSERT INTO "communes" VALUES('14','Saint-Vigor-le-Grand','03',2011,1900,9.7,'-3362','54756',32,75);
INSERT INTO "communes" VALUES('14','Saint-Ouen-du-Mesnil-Oger','34',206,147,5.89,'-2731','54618',4,35);
INSERT INTO "communes" VALUES('14','Ouville-la-Bien-Tournée','29',212,239,7.67,'-2620','54503',17,59);
INSERT INTO "communes" VALUES('14','Biéville-Quétiéville','24',319,338,20.1,'-2638','54566',4,58);
INSERT INTO "communes" VALUES('14','Tournay-sur-Odon','37',365,349,6.93,'-3249','54546',58,173);
INSERT INTO "communes" VALUES('14','Étouvy','04',309,279,2.29,'-3585','54326',82,134);
INSERT INTO "communes" VALUES('14','Tracy-Bocage','37',345,298,5.24,'-3364','54525',95,189);
INSERT INTO "communes" VALUES('14','Martigny-sur-l''Ante','17',333,293,9.34,'-2914','54317',183,248);
INSERT INTO "communes" VALUES('14','Auquainville','23',307,258,9.56,'-2330','54508',67,184);
INSERT INTO "communes" VALUES('14','Caumont-sur-Orne','31',84,76,0.92,'-3130','54396',26,145);
INSERT INTO "communes" VALUES('14','Litteau','02',261,214,6.94,'-3600','54615',88,143);
INSERT INTO "communes" VALUES('14','Le Theil-en-Auge','19',182,159,2.78,'-2321','54831',94,142);
INSERT INTO "communes" VALUES('14','Le Theil-Bocage','36',244,239,8.86,'-3391','54312',155,233);
INSERT INTO "communes" VALUES('14','Saint-Aubin-sur-Mer','14',2154,1812,3.03,'-3029','54809',2,30);
INSERT INTO "communes" VALUES('14','Bissières','24',178,155,1.55,'-2699','54571',13,50);
INSERT INTO "communes" VALUES('14','Crépon','28',218,200,5.42,'-3208','54796',39,61);
INSERT INTO "communes" VALUES('14','Planquery','02',212,245,14.37,'-3528','54617',60,143);
INSERT INTO "communes" VALUES('14','Reux','27',348,251,7.39,'-2428','54749',4,124);
INSERT INTO "communes" VALUES('14','Sept-Frères','30',351,373,9.63,'-3740','54292',84,197);
INSERT INTO "communes" VALUES('14','Barbeville','03',180,163,3.47,'-3428','54750',22,62);
INSERT INTO "communes" VALUES('14','Mézidon-Canon','24',4944,4712,10.92,'-2674','54526',9,72);
INSERT INTO "communes" VALUES('14','Valsemé','10',280,247,5.62,'-2488','54706',75,156);
INSERT INTO "communes" VALUES('14','Cully','13',165,163,6.55,'-3189','54723',19,67);
INSERT INTO "communes" VALUES('14','Audrieu','32',1042,839,11.31,'-3255','54677',37,105);
INSERT INTO "communes" VALUES('14','Burcy','36',372,345,11.52,'-3488','54297',115,247);
INSERT INTO "communes" VALUES('14','Frénouville','06',1681,1481,6.45,'-2867','54597',9,47);
INSERT INTO "communes" VALUES('14','<NAME>','36',94,88,4.93,'-3346','54321',169,226);
INSERT INTO "communes" VALUES('14','Airan','06',686,696,13.5,'-2765','54557',22,64);
INSERT INTO "communes" VALUES('14','Juaye-Mondaye','02',678,623,16.12,'-3360','54674',44,118);
INSERT INTO "communes" VALUES('14','Soignolles','07',106,71,5.77,'-2830','54477',60,104);
INSERT INTO "communes" VALUES('14','<NAME>','11',64,59,1.57,'-3562','54521',89,132);
INSERT INTO "communes" VALUES('14','Ouilly-le-Tesson','07',539,484,12,'-2842','54431',67,165);
INSERT INTO "communes" VALUES('14','Fresney-le-Puceux','07',733,654,9.65,'-3009','54515',20,108);
INSERT INTO "communes" VALUES('14','Cauvicourt','07',431,367,9.62,'-2889','54496',55,133);
INSERT INTO "communes" VALUES('14','Trois-Monts','16',402,338,7.04,'-3130','54497',12,159);
INSERT INTO "communes" VALUES('14','Mondrainville','32',461,409,3.17,'-3170','54599',43,104);
INSERT INTO "communes" VALUES('14','Cesny-Bois-Halbout','31',644,631,6.66,'-3016','54430',115,206);
INSERT INTO "communes" VALUES('14','<NAME>','20',119,114,6.53,'-3683','54732',14,63);
INSERT INTO "communes" VALUES('14','Benerville-sur-Mer','35',483,505,3.03,'-2555','54825',2,111);
INSERT INTO "communes" VALUES('14','Loges','01',141,115,4.46,'-3492','54492',137,255);
INSERT INTO "communes" VALUES('14','Saint-Michel-de-Livet','23',200,127,4.74,'-2446','54466',52,184);
INSERT INTO "communes" VALUES('14','Préaux-Bocage','16',118,112,4.32,'-3175','54507',73,173);
INSERT INTO "communes" VALUES('14','Maisoncelles-Pelvey','37',261,228,5.4,'-3345','54508',103,193);
INSERT INTO "communes" VALUES('14','Amblie','13',262,293,5.82,'-3137','54768',2,53);
INSERT INTO "communes" VALUES('14','Beaufour-Druval','10',433,362,11.34,'-2567','54682',30,151);
INSERT INTO "communes" VALUES('14','Thiéville','29',312,287,3.94,'-2625','54485',22,49);
INSERT INTO "communes" VALUES('14','Coupesarte','24',37,49,4.47,'-2477','54510',32,135);
INSERT INTO "communes" VALUES('14','Saint-Germain-de-Montgommery','23',159,163,8.13,'-2404','54382',83,233);
INSERT INTO "communes" VALUES('14','<NAME>','26',537,497,7.01,'-2219','54516',71,169);
INSERT INTO "communes" VALUES('14','Estry','36',355,333,10.75,'-3413','54330',143,245);
INSERT INTO "communes" VALUES('14','Bazenville','28',147,144,4.07,'-3247','54781',53,67);
INSERT INTO "communes" VALUES('14','Langrune-sur-Mer','14',1779,1706,4.74,'-3010','54803',3,34);
INSERT INTO "communes" VALUES('14','Sainte-Foy-de-Montgommery','23',203,175,4.59,'-2401','54401',77,200);
INSERT INTO "communes" VALUES('14','Fontaine-Étoupefour','16',1932,1674,5.08,'-3101','54607',19,111);
INSERT INTO "communes" VALUES('14','Pont-Farcy','30',538,514,13.45,'-3747','54374',39,253);
INSERT INTO "communes" VALUES('14','Bellou','23',155,125,7.39,'-2343','54425',128,204);
INSERT INTO "communes" VALUES('14','Mesnil-Clinchamps','30',985,833,15.33,'-3697','54281',111,232);
INSERT INTO "communes" VALUES('14','Rapilly','17',44,47,4.19,'-2968','54286',54,222);
INSERT INTO "communes" VALUES('14','Barou-en-Auge','25',95,69,8.35,'-2645','54369',49,116);
INSERT INTO "communes" VALUES('14','Bonneville-la-Louvet','05',803,667,20.75,'-2219','54750',39,166);
INSERT INTO "communes" VALUES('14','Sainte-Marguerite-des-Loges','23',190,163,10.85,'-2368','54465',85,191);
INSERT INTO "communes" VALUES('14','Ifs','46',11028,9207,9.06,'-2988','54598',19,61);
INSERT INTO "communes" VALUES('14','Fontenermont','30',142,140,2.79,'-3823','54248',170,255);
INSERT INTO "communes" VALUES('14','<NAME>','31',194,153,9.74,'-3200','54347',90,262);
INSERT INTO "communes" VALUES('14','Saint-Hymer','27',671,662,12.32,'-2403','54726',20,144);
INSERT INTO "communes" VALUES('14','La Boissière','49',203,121,2.02,'-2451','54596',115,176);
INSERT INTO "communes" VALUES('14','<NAME>-en-Auge','05',977,845,9.39,'-2345','54697',21,145);
INSERT INTO "communes" VALUES('14','Cormolain','11',394,356,11.04,'-3547','54589',68,180);
INSERT INTO "communes" VALUES('14','Cricqueville-en-Bessin','20',192,182,8.55,'-3706','54864',0,39);
INSERT INTO "communes" VALUES('14','Noron-la-Poterie','02',342,290,3.01,'-3457','54696',34,76);
INSERT INTO "communes" VALUES('14','Hubert-Folie','06',352,213,1.93,'-2946','54588',29,65);
INSERT INTO "communes" VALUES('14','Cheux','32',1267,1088,14.38,'-3180','54629',62,119);
INSERT INTO "communes" VALUES('14','Pont-Bellanger','30',65,86,3.54,'-3685','54369',53,202);
INSERT INTO "communes" VALUES('14','Pont-l''Évêque','27',4347,4132,8.07,'-2392','54762',7,118);
INSERT INTO "communes" VALUES('14','Saint-Lambert','31',248,202,7.45,'-3206','54374',29,264);
INSERT INTO "communes" VALUES('14','<NAME>','01',338,254,9.24,'-3432','54422',209,306);
INSERT INTO "communes" VALUES('14','Pennedepie','19',326,309,5.68,'-2400','54897',1,138);
INSERT INTO "communes" VALUES('14','Esquay-sur-Seulles','28',338,338,2.9,'-3288','54747',19,80);
INSERT INTO "communes" VALUES('14','Fourneaux-le-Val','17',175,175,5.39,'-2893','54283',122,241);
INSERT INTO "communes" VALUES('14','Saint-Laurent-de-Condel','07',506,447,12.31,'-3057','54490',85,187);
INSERT INTO "communes" VALUES('14','Condé-sur-Noireau','12',5422,5820,12.53,'-3207','54279',72,173);
INSERT INTO "communes" VALUES('14','Soumont-Saint-Quentin','17',560,481,6.87,'-2854','54420',93,194);
INSERT INTO "communes" VALUES('14','Ussy','17',863,755,8.68,'-2911','54386',124,200);
INSERT INTO "communes" VALUES('14','Saint-Vaast-sur-Seulles','32',137,134,4.25,'-3299','54602',57,125);
INSERT INTO "communes" VALUES('14','Saint-Pierre-du-Bû','17',462,410,7.39,'-2837','54298',159,236);
INSERT INTO "communes" VALUES('14','Petiville','47',523,437,2.89,'-2790','54714',2,25);
INSERT INTO "communes" VALUES('14','Banneville-sur-Ajon','37',379,390,5.63,'-3229','54514',84,184);
INSERT INTO "communes" VALUES('14','Moulines','07',252,225,9.38,'-2971','54431',95,192);
INSERT INTO "communes" VALUES('14','Truttemer-le-Grand','38',631,565,14.69,'-3506','54201',197,302);
INSERT INTO "communes" VALUES('14','Villerville','35',765,666,3.3,'-2453','54890',0,144);
INSERT INTO "communes" VALUES('14','Saint-Germain-du-Crioult','12',912,850,14.64,'-3269','54286',82,202);
INSERT INTO "communes" VALUES('14','<NAME>','10',117,116,4.64,'-2486','54643',51,156);
INSERT INTO "communes" VALUES('14','<NAME>','24',1052,1004,31.24,'-2575','54542',10,78);
INSERT INTO "communes" VALUES('14','Monteille','24',165,163,4.53,'-2545','54565',17,59);
INSERT INTO "communes" VALUES('14','Le Gast','30',232,255,12.74,'-3792','54218',202,347);
INSERT INTO "communes" VALUES('14','Laize-la-Ville','06',619,319,1.76,'-3019','54536',15,74);
INSERT INTO "communes" VALUES('14','Castillon','02',322,307,11.02,'-3482','54670',39,132);
INSERT INTO "communes" VALUES('14','Grandchamp-le-Château','24',68,69,3.45,'-2514','54531',24,147);
INSERT INTO "communes" VALUES('14','<NAME>','10',59,43,2.99,'-2475','54670',85,154);
INSERT INTO "communes" VALUES('14','Maltot','16',812,575,4.24,'-3066','54588',4,106);
INSERT INTO "communes" VALUES('14','<NAME>','17',91,90,5.52,'-2985','54297',89,251);
INSERT INTO "communes" VALUES('14','Colombelles','47',5585,6235,7.14,'-2926','54671',2,49);
INSERT INTO "communes" VALUES('14','Bricqueville','33',143,110,6.7,'-3665','54767',0,42);
INSERT INTO "communes" VALUES('14','Martainville','31',96,96,5.84,'-2992','54392',144,227);
INSERT INTO "communes" VALUES('14','Neuilly-la-Forêt','20',464,446,21.2,'-3817','54745',0,57);
INSERT INTO "communes" VALUES('14','Cordebugle','21',139,91,8.97,'-2174','54568',86,194);
INSERT INTO "communes" VALUES('14','<NAME>','30',203,158,4.08,'-3658','54305',80,164);
INSERT INTO "communes" VALUES('14','Clarbec','27',383,280,9.7,'-2448','54722',47,140);
INSERT INTO "communes" VALUES('14','Bretteville-sur-Dives','29',295,279,6.91,'-2619','54487',20,70);
INSERT INTO "communes" VALUES('14','<NAME>','04',311,282,11.43,'-3586','54417',75,243);
INSERT INTO "communes" VALUES('14','Coulvain','01',365,289,4.31,'-3403','54498',128,222);
INSERT INTO "communes" VALUES('14','<NAME>','04',1033,920,8.91,'-3529','54374',84,262);
INSERT INTO "communes" VALUES('14','Placy','31',133,125,5.46,'-3063','54418',60,206);
INSERT INTO "communes" VALUES('14','Pierrepont','17',94,87,4.29,'-2954','54312',135,240);
INSERT INTO "communes" VALUES('14','Condé-sur-Seulles','02',238,206,2.44,'-3302','54694',35,90);
INSERT INTO "communes" VALUES('14','Gonneville-sur-Honfleur','19',808,716,8.5,'-2325','54871',34,129);
INSERT INTO "communes" VALUES('14','Tourville-en-Auge','27',250,221,3.16,'-2372','54802',27,140);
INSERT INTO "communes" VALUES('14','Deauville','35',3866,4371,3.57,'-2513','54844',0,83);
INSERT INTO "communes" VALUES('14','Vendes','32',303,283,3.47,'-3259','54609',62,130);
INSERT INTO "communes" VALUES('14','Surville','27',455,381,4.8,'-2360','54778',12,141);
INSERT INTO "communes" VALUES('14','Trungy','02',222,236,7.07,'-3400','54663',54,108);
INSERT INTO "communes" VALUES('14','Coudray-Rabut','27',305,333,4.91,'-2390','54784',5,148);
INSERT INTO "communes" VALUES('14','Périers-en-Auge','15',141,145,5.09,'-2684','54730',2,126);
INSERT INTO "communes" VALUES('14','Commes','28',399,397,6.64,'-3414','54820',0,77);
INSERT INTO "communes" VALUES('14','Bréville-les-Monts','47',656,565,4.75,'-2846','54713',11,63);
INSERT INTO "communes" VALUES('14','Campeaux','04',555,501,8.43,'-3631','54390',64,252);
INSERT INTO "communes" VALUES('14','Nonant','03',470,384,6.82,'-3306','54714',27,86);
INSERT INTO "communes" VALUES('14','Lisores','23',309,260,11.91,'-2369','54402',82,214);
INSERT INTO "communes" VALUES('14','Sassy','25',184,184,9.56,'-2750','54427',51,104);
INSERT INTO "communes" VALUES('14','Bernières-sur-Mer','14',2331,1887,7.66,'-3065','54814',0,55);
INSERT INTO "communes" VALUES('14','Saint-Étienne-la-Thillaye','27',492,437,12.36,'-2464','54766',2,123);
INSERT INTO "communes" VALUES('14','Moutiers-en-Cinglais','07',419,350,6.75,'-3066','54479',15,186);
INSERT INTO "communes" VALUES('14','Auvillars','10',220,180,11.62,'-2523','54663',36,154);
INSERT INTO "communes" VALUES('14','Saint-Martin-du-Mesnil-Oury','23',102,90,4.78,'-2457','54479',43,182);
INSERT INTO "communes" VALUES('14','Biéville-Beuville','48',2542,2189,11.15,'-2960','54706',1,58);
INSERT INTO "communes" VALUES('14','Saint-Laurent-du-Mont','24',194,137,3.48,'-2555','54601',20,149);
INSERT INTO "communes" VALUES('14','Cairon','13',1616,1584,5.91,'-3096','54712',28,72);
INSERT INTO "communes" VALUES('14','<NAME>','31',46,51,2.8,'-3064','54343',117,294);
INSERT INTO "communes" VALUES('14','Putot-en-Bessin','32',389,332,3.51,'-3197','54680',55,77);
INSERT INTO "communes" VALUES('14','Angoville','31',34,30,3.72,'-3017','54383',173,248);
INSERT INTO "communes" VALUES('14','Lisieux','99',21640,23171,13.07,'-2345','54606',32,152);
INSERT INTO "communes" VALUES('14','Magny-le-Freule','24',302,313,6.38,'-2674','54556',6,72);
INSERT INTO "communes" VALUES('14','Juvigny-sur-Seulles','32',70,55,3.53,'-3278','54625',53,118);
INSERT INTO "communes" VALUES('14','<NAME>','04',1125,1122,11.89,'-3574','54327',79,165);
INSERT INTO "communes" VALUES('14','Friardel','26',242,200,9.39,'-2164','54445',115,204);
INSERT INTO "communes" VALUES('14','Notre-Dame-de-Livaye','24',130,131,2.67,'-2551','54572',19,96);
INSERT INTO "communes" VALUES('14','Mandeville-en-Bessin','33',335,229,8.83,'-3572','54779',4,68);
INSERT INTO "communes" VALUES('14','Bény-sur-Mer','13',347,317,6.65,'-3078','54767',10,65);
INSERT INTO "communes" VALUES('14','Rocques','21',315,308,6.14,'-2326','54635',44,143);
INSERT INTO "communes" VALUES('14','Gonneville-en-Auge','47',430,350,4.32,'-2807','54735',3,30);
INSERT INTO "communes" VALUES('14','May-sur-Orne','06',1823,1716,3.49,'-3011','54556',5,80);
INSERT INTO "communes" VALUES('14','Sainte-Honorine-du-Fay','16',1306,1080,7.56,'-3143','54531',10,156);
INSERT INTO "communes" VALUES('14','Saint-Pierre-des-Ifs','49',470,386,11.16,'-2421','54570',83,177);
INSERT INTO "communes" VALUES('14','Cambremer','10',1114,1091,23.57,'-2543','54613',34,162);
INSERT INTO "communes" VALUES('14','Saint-Manvieu-Bocage','30',569,507,11.78,'-3682','54250',148,290);
INSERT INTO "communes" VALUES('14','Louvagny','25',67,64,5.5,'-2646','54385',48,88);
INSERT INTO "communes" VALUES('14','Bourgeauville','15',139,150,6.15,'-2535','54749',68,148);
INSERT INTO "communes" VALUES('14','Tournebu','31',376,295,11.4,'-2974','54410',109,188);
INSERT INTO "communes" VALUES('14','Saint-Marcouf','20',96,100,5.03,'-3702','54726',18,67);
INSERT INTO "communes" VALUES('14','Saint-Sylvain','07',1289,978,13.48,'-2837','54507',38,86);
INSERT INTO "communes" VALUES('14','Saint-Benoît-d''Hébertot','27',372,292,7.13,'-2297','54797',50,148);
INSERT INTO "communes" VALUES('14','Sainte-Marie-Laumont','04',626,566,15.61,'-3605','54352',67,201);
INSERT INTO "communes" VALUES('14','Saint-Vaast-en-Auge','15',103,83,2.98,'-2602','54768',64,147);
INSERT INTO "communes" VALUES('14','Le Tourneur','04',599,500,23.02,'-3511','54404',87,242);
INSERT INTO "communes" VALUES('14','Giberville','34',4921,4607,5,'-2910','54646',6,36);
INSERT INTO "communes" VALUES('14','Cerqueux','26',95,94,5.66,'-2193','54438',151,209);
INSERT INTO "communes" VALUES('14','Saint-Pierre-du-Mont','20',74,85,4.96,'-3686','54877',0,42);
INSERT INTO "communes" VALUES('14','Cauville','31',148,126,5.76,'-3232','54386',80,267);
INSERT INTO "communes" VALUES('14','Caumont-l''Éventé','11',1350,1191,6.27,'-3491','54545',125,247);
INSERT INTO "communes" VALUES('14','Maisons','33',396,320,6.67,'-3429','54794',13,60);
INSERT INTO "communes" VALUES('14','Maizet','16',303,238,5.72,'-3121','54532',7,120);
INSERT INTO "communes" VALUES('14','Chouain','02',208,186,3.15,'-3301','54679',37,86);
INSERT INTO "communes" VALUES('14','<NAME>','05',173,184,7.37,'-2307','54734',34,162);
INSERT INTO "communes" VALUES('14','Gavrus','16',520,215,2.71,'-3168','54576',45,114);
INSERT INTO "communes" VALUES('14','Sully','03',126,148,4,'-3415','54777',18,58);
INSERT INTO "communes" VALUES('14','Orbec','26',2344,2569,10.14,'-2144','54469',90,193);
INSERT INTO "communes" VALUES('14','Saint-Germain-de-Tallevende-la-Lande-Vaumont','38',1969,1731,41.89,'-3599','54223',125,351);
INSERT INTO "communes" VALUES('14','Tessel','32',221,174,5.54,'-3234','54615',79,122);
INSERT INTO "communes" VALUES('14','Magny-la-Campagne','07',584,478,6.26,'-2710','54500',23,61);
INSERT INTO "communes" VALUES('14','Cricquebœuf','19',198,182,1.85,'-2434','54892',2,143);
INSERT INTO "communes" VALUES('14','Saint-Rémy','31',1079,1072,7.52,'-3155','54378',26,216);
INSERT INTO "communes" VALUES('14','Monceaux','49',181,148,3.72,'-2443','54571',104,176);
INSERT INTO "communes" VALUES('14','Morteaux-Coulibœuf','25',550,514,11.76,'-2680','54360',41,106);
INSERT INTO "communes" VALUES('14','Campandré-Valcongrain','37',109,87,6.57,'-3247','54419',123,334);
INSERT INTO "communes" VALUES('14','Moutiers-en-Auge','25',120,121,10.1,'-2603','54332',71,228);
INSERT INTO "communes" VALUES('14','Saint-Arnoult','35',1176,903,5.12,'-2497','54815',2,100);
INSERT INTO "communes" VALUES('14','Sainte-Croix-sur-Mer','28',239,201,2.08,'-3163','54793',33,56);
INSERT INTO "communes" VALUES('14','<NAME>-Caussois','30',123,103,4.22,'-3726','54283',98,196);
INSERT INTO "communes" VALUES('14','Bougy','16',445,257,3.03,'-3178','54569',50,117);
INSERT INTO "communes" VALUES('14','Noyers-Bocage','37',1094,827,8.87,'-3226','54581',85,193);
INSERT INTO "communes" VALUES('14','Saint-Paul-du-Vernay','02',736,654,15.13,'-3442','54653',35,139);
INSERT INTO "communes" VALUES('14','Saint-Laurent-sur-Mer','33',246,185,3.9,'-3571','54843',3,76);
INSERT INTO "communes" VALUES('14','<NAME>-Villement','17',291,283,3.55,'-3008','54281',48,187);
INSERT INTO "communes" VALUES('14','Colleville-sur-Mer','33',177,171,6.93,'-3533','54832',0,79);
INSERT INTO "communes" VALUES('14','Surrain','33',162,139,7.08,'-3556','54808',5,79);
INSERT INTO "communes" VALUES('14','Livry','11',782,705,23.48,'-3447','54565',90,242);
INSERT INTO "communes" VALUES('14','Saint-Martin-de-Fontenay','06',2504,1885,10.72,'-3008','54577',29,87);
INSERT INTO "communes" VALUES('14','<NAME>','04',259,200,4.73,'-3536','54343',86,157);
INSERT INTO "communes" VALUES('14','Brémoy','01',216,226,12.5,'-3463','54434',158,358);
INSERT INTO "communes" VALUES('14','Blonville-sur-Mer','35',1602,1338,6.8,'-2562','54821',2,112);
INSERT INTO "communes" VALUES('14','Ouffières','16',189,158,4.21,'-3142','54471',15,182);
INSERT INTO "communes" VALUES('14','Saint-Germain-le-Vasson','07',983,935,9.41,'-2930','54448',75,192);
INSERT INTO "communes" VALUES('14','<NAME>','05',329,204,4.45,'-2242','54701',89,165);
INSERT INTO "communes" VALUES('14','Crèvecœur-en-Auge','24',515,503,2.15,'-2580','54576',14,143);
INSERT INTO "communes" VALUES('14','Vaux-sur-Seulles','13',292,323,6.56,'-3295','54734',22,72);
INSERT INTO "communes" VALUES('14','Autels-Saint-Bazile','23',48,51,5.53,'-2504','54379',81,226);
INSERT INTO "communes" VALUES('14','Gonneville-sur-Mer','15',642,564,12.38,'-2641','54757',5,149);
INSERT INTO "communes" VALUES('14','Versainville','18',414,389,7.7,'-2794','54352',70,166);
INSERT INTO "communes" VALUES('14','Feuguerolles-Bully','16',1357,1126,8.18,'-3048','54574',4,78);
INSERT INTO "communes" VALUES('14','Quetteville','19',375,295,10.32,'-2253','54819',30,141);
INSERT INTO "communes" VALUES('14','<NAME>','31',91,71,3.53,'-3119','54352',32,264);
INSERT INTO "communes" VALUES('14','Saint-Martin-de-la-Lieue','22',832,884,8.4,'-2354','54569',46,166);
INSERT INTO "communes" VALUES('14','Épaney','25',474,319,11.59,'-2783','54387',72,166);
INSERT INTO "communes" VALUES('14','La Brévière','23',121,128,3.53,'-2414','54414',69,182);
INSERT INTO "communes" VALUES('14','Saon','33',235,217,5.24,'-3549','54745',7,76);
INSERT INTO "communes" VALUES('14','Olendon','25',189,168,7.45,'-2786','54410',81,170);
INSERT INTO "communes" VALUES('14','Verson','16',3596,3577,10.36,'-3099','54617',12,93);
INSERT INTO "communes" VALUES('14','Rubercy','33',134,94,5.54,'-3573','54759',5,74);
INSERT INTO "communes" VALUES('14','Montreuil-en-Auge','10',46,54,3.37,'-2535','54635',34,149);
INSERT INTO "communes" VALUES('14','Pierrefitte-en-Auge','27',155,114,5.48,'-2372','54732',11,136);
INSERT INTO "communes" VALUES('14','Saint-Pierre-Tarentaine','04',353,254,12.23,'-3478','54405',125,260);
INSERT INTO "communes" VALUES('14','Sainte-Marguerite-d''Elle','20',757,744,20.49,'-3731','54675',4,85);
INSERT INTO "communes" VALUES('14','Meulles','26',396,367,16.29,'-2228','54418',144,228);
INSERT INTO "communes" VALUES('14','<NAME>','13',827,787,7.06,'-3138','54734',19,59);
INSERT INTO "communes" VALUES('14','Chênedollé','36',245,221,6.91,'-3442','54283',182,246);
INSERT INTO "communes" VALUES('14','Loges-Saulces','17',172,119,6.74,'-2929','54295',105,241);
INSERT INTO "communes" VALUES('14','Cricqueville-en-Auge','15',185,154,6.79,'-2666','54713',3,127);
INSERT INTO "communes" VALUES('14','Ver-sur-Mer','28',1572,1307,9.01,'-3184','54813',0,56);
INSERT INTO "communes" VALUES('14','Cabourg','47',3889,3523,5.52,'-2725','54765',0,15);
INSERT INTO "communes" VALUES('14','Basly','13',1093,651,3.92,'-3066','54755',18,62);
INSERT INTO "communes" VALUES('14','Montamy','04',90,74,3.67,'-3447','54414',183,294);
INSERT INTO "communes" VALUES('14','Brouay','32',472,320,3.98,'-3223','54680',50,84);
INSERT INTO "communes" VALUES('14','Saint-Martin-de-Blagny','02',126,123,8.89,'-3649','54724',12,75);
INSERT INTO "communes" VALUES('14','Beaumont-en-Auge','27',450,496,7.98,'-2474','54754',29,146);
INSERT INTO "communes" VALUES('14','Falaise','98',8279,8434,11.84,'-2811','54325',89,188);
INSERT INTO "communes" VALUES('14','Cuverville','34',2051,1769,2.01,'-2889','54656',16,32);
INSERT INTO "communes" VALUES('14','Ranville','47',1633,1896,8.42,'-2882','54701',1,49);
INSERT INTO "communes" VALUES('14','Lison','20',484,453,10.94,'-3749','54713',2,62);
INSERT INTO "communes" VALUES('14','Hiéville','29',290,250,4.77,'-2605','54470',22,74);
INSERT INTO "communes" VALUES('14','Bayeux','03',13222,14961,7.1,'-3378','54754',32,67);
INSERT INTO "communes" VALUES('14','Sainte-Honorine-des-Pertes','33',587,415,5.69,'-3493','54830',0,78);
INSERT INTO "communes" VALUES('14','Victot-Pontfol','10',119,123,10.66,'-2615','54626',7,127);
INSERT INTO "communes" VALUES('14','Saonnet','33',253,169,5.34,'-3573','54748',5,75);
INSERT INTO "communes" VALUES('14','Tierceville','28',174,138,2.62,'-3187','54770',7,59);
INSERT INTO "communes" VALUES('14','Périers-sur-le-Dan','48',490,456,2.95,'-2977','54731',18,58);
INSERT INTO "communes" VALUES('14','Fontenay-le-Pesnel','32',950,944,10.07,'-3240','54634',51,114);
INSERT INTO "communes" VALUES('14','Bretteville-sur-Odon','08',4091,3953,6.46,'-3056','54633',5,72);
INSERT INTO "communes" VALUES('14','Repentigny','10',89,91,2.13,'-2545','54673',37,135);
INSERT INTO "communes" VALUES('14','Fierville-les-Parcs','05',222,192,4.91,'-2346','54714',17,126);
INSERT INTO "communes" VALUES('14','Arganchy','03',239,227,7.07,'-3420','54707',33,81);
INSERT INTO "communes" VALUES('14','Sallen','11',297,235,11.21,'-3517','54571',75,189);
INSERT INTO "communes" VALUES('14','<NAME>','26',132,73,3.45,'-2279','54474',108,189);
INSERT INTO "communes" VALUES('14','Douvres-la-Délivrande','14',4959,4811,10.71,'-3018','54771',17,58);
INSERT INTO "communes" VALUES('14','Mondeville','43',9450,10428,9.05,'-2953','54638',2,38);
INSERT INTO "communes" VALUES('14','Agy','03',240,277,4.21,'-3442','54713',30,83);
INSERT INTO "communes" VALUES('14','Saint-Pierre-de-Mailloc','26',496,384,4.68,'-2243','54520',67,166);
INSERT INTO "communes" VALUES('14','Hérouville-Saint-Clair','93',21434,23992,10.64,'-2959','54671',1,70);
INSERT INTO "communes" VALUES('14','Missy','37',544,461,5.06,'-3209','54580',47,120);
INSERT INTO "communes" VALUES('14','Formentin','10',214,206,5.93,'-2439','54664',74,154);
INSERT INTO "communes" VALUES('14','Saint-Denis-de-Mailloc','26',324,314,4.25,'-2249','54547',64,174);
INSERT INTO "communes" VALUES('14','Douville-en-Auge','15',224,197,6.17,'-2622','54735',28,149);
INSERT INTO "communes" VALUES('14','Périgny','12',55,62,2.66,'-3268','54358',120,232);
INSERT INTO "communes" VALUES('14','Colomby-sur-Thaon','13',388,347,2.76,'-3053','54739',19,68);
INSERT INTO "communes" VALUES('14','Corbon','10',66,56,4.09,'-2606','54607',5,15);
INSERT INTO "communes" VALUES('14','Anisy','13',666,631,4.19,'-3032','54724',44,67);
INSERT INTO "communes" VALUES('14','Rumesnil','10',93,80,5.35,'-2563','54650',15,121);
INSERT INTO "communes" VALUES('14','Goupillières','16',166,150,2.27,'-3129','54480',14,165);
INSERT INTO "communes" VALUES('14','Carcagny','32',302,276,4.15,'-3283','54710',27,87);
INSERT INTO "communes" VALUES('14','Esquay-Notre-Dame','16',1382,907,3.02,'-3120','54570',50,112);
INSERT INTO "communes" VALUES('14','Saint-Manvieu-Norrey','32',1729,1427,8.28,'-3153','54645',59,91);
INSERT INTO "communes" VALUES('14','Banville','28',657,583,4.68,'-3138','54792',2,53);
INSERT INTO "communes" VALUES('14','Bénouville','48',1984,1739,5.28,'-2907','54712',1,50);
INSERT INTO "communes" VALUES('14','Annebault','15',415,349,5.54,'-2530','54725',60,153);
INSERT INTO "communes" VALUES('14','Soliers','06',2156,1731,5.08,'-2924','54594',27,53);
INSERT INTO "communes" VALUES('14','Saint-Martin-de-Mailloc','26',883,662,7.17,'-2264','54544',61,173);
INSERT INTO "communes" VALUES('14','Avenay','16',519,406,5.62,'-3107','54557',35,120);
INSERT INTO "communes" VALUES('14','Roucamps','01',194,145,5.41,'-3287','54433',203,307);
INSERT INTO "communes" VALUES('14','Sainte-Croix-Grand-Tonne','32',295,292,5.26,'-3222','54702',34,77);
INSERT INTO "communes" VALUES('14','Vacognes-Neuilly','16',507,412,7.9,'-3179','54527',63,157);
INSERT INTO "communes" VALUES('14','Vieux','16',636,585,5.5,'-3078','54564',25,112);
INSERT INTO "communes" VALUES('14','Hermival-les-Vaux','21',843,764,13.76,'-2282','54633',52,166);
INSERT INTO "communes" VALUES('14','<NAME>','01',197,174,3.85,'-3398','54457',152,266);
INSERT INTO "communes" VALUES('14','Cernay','26',137,108,5.82,'-2236','54467',144,201);
INSERT INTO "communes" VALUES('14','Glos','21',886,909,12.93,'-2284','54581',49,165);
INSERT INTO "communes" VALUES('14','Banneville-la-Campagne','34',142,88,6.44,'-2840','54632',3,24);
INSERT INTO "communes" VALUES('14','Parfouru-sur-Odon','37',175,136,3.65,'-3273','54545',69,217);
INSERT INTO "communes" VALUES('14','Tourville-sur-Odon','16',1103,1066,1.7,'-3154','54601',37,88);
INSERT INTO "communes" VALUES('14','Coquainvilliers','05',852,766,11.9,'-2361','54665',22,146);
INSERT INTO "communes" VALUES('14','Deux-Jumeaux','20',73,69,4.07,'-3665','54832',8,47);
INSERT INTO "communes" VALUES('14','<NAME>','18',689,569,24.44,'-2774','54309',89,267);
INSERT INTO "communes" VALUES('14','Balleroy','02',901,786,4.23,'-3527','54645',49,131);
INSERT INTO "communes" VALUES('14','Potigny','17',1783,1701,4.26,'-2872','54412',125,206);
INSERT INTO "communes" VALUES('14','Plumetot','14',221,233,1.23,'-2993','54755',29,59);
INSERT INTO "communes" VALUES('14','Presles','36',264,243,9.03,'-3465','54308',128,246);
INSERT INTO "communes" VALUES('14','Vaudeloges','29',211,154,12.51,'-2602','54382',61,126);
INSERT INTO "communes" VALUES('14','Beaumais','25',174,164,10.73,'-2679','54328',47,83);
INSERT INTO "communes" VALUES('14','Saint-Julien-sur-Calonne','27',190,189,8.54,'-2343','54768',11,147);
INSERT INTO "communes" VALUES('14','Condé-sur-Ifs','07',446,351,11.34,'-2737','54492',28,81);
INSERT INTO "communes" VALUES('14','Carville','04',374,305,10.43,'-3551','54367',73,206);
INSERT INTO "communes" VALUES('14','Caen','97',108954,114007,25.7,'-3008','54647',2,73);
INSERT INTO "communes" VALUES('14','Tourgéville','35',933,849,12.01,'-2524','54804',2,100);
INSERT INTO "communes" VALUES('14','Le Bû-sur-Rouvres','07',120,81,2.83,'-2796','54482',71,94);
INSERT INTO "communes" VALUES('14','Meuvaines','28',150,150,7.36,'-3225','54808',2,63);
INSERT INTO "communes" VALUES('14','Saint-Cyr-du-Ronceray','26',620,675,4.03,'-2265','54504',99,183);
INSERT INTO "communes" VALUES('14','Saint-Jean-le-Blanc','12',341,314,15.12,'-3322','54373',137,290);
INSERT INTO "communes" VALUES('14','Hamars','16',433,391,9.44,'-3203','54443',67,272);
INSERT INTO "communes" VALUES('14','Aubigny','17',324,316,5.02,'-2835','54353',145,206);
INSERT INTO "communes" VALUES('14','Authie','09',1394,982,3.21,'-3076','54673',60,73);
INSERT INTO "communes" VALUES('14','Canchy','20',219,179,5.72,'-3688','54811',0,39);
INSERT INTO "communes" VALUES('14','Pont-d''Ouilly','17',1016,1048,19.5,'-3050','54304',42,251);
INSERT INTO "communes" VALUES('14','Épron','40',1532,1693,1.42,'-3008','54691',25,60);
INSERT INTO "communes" VALUES('14','Ondefontaine','01',319,290,15.26,'-3356','54440',205,325);
INSERT INTO "communes" VALUES('14','Aignerville','33',200,139,4.35,'-3617','54814',1,54);
INSERT INTO "communes" VALUES('14','Géfosse-Fontenay','20',130,111,11.11,'-3811','54850',0,32);
INSERT INTO "communes" VALUES('14','Cagny','34',1414,1594,8.46,'-2883','54606',13,32);
INSERT INTO "communes" VALUES('14','Fierville-Bray','07',492,426,12.66,'-2798','54522',29,84);
INSERT INTO "communes" VALUES('14','Glanville','27',176,166,6.43,'-2517','54759',38,142);
INSERT INTO "communes" VALUES('14','Aunay-sur-Odon','01',3099,2904,12.74,'-3298','54467',98,307);
INSERT INTO "communes" VALUES('14','Graye-sur-Mer','28',646,593,6.54,'-3121','54810',2,47);
INSERT INTO "communes" VALUES('14','Isles-Bardel','17',65,58,5.69,'-2972','54273',54,194);
INSERT INTO "communes" VALUES('14','Pertheville-Ners','18',250,209,8.25,'-2717','54309',71,153);
INSERT INTO "communes" VALUES('14','Dives-sur-Mer','15',5949,5812,6.46,'-2708','54762',0,135);
INSERT INTO "communes" VALUES('14','Curcy-sur-Orne','16',443,383,13.57,'-3172','54454',16,227);
INSERT INTO "communes" VALUES('14','Colombières','33',205,226,10.64,'-3686','54774',0,33);
INSERT INTO "communes" VALUES('14','Étréham','33',278,233,4.24,'-3482','54802',12,68);
INSERT INTO "communes" VALUES('14','Espins','31',223,229,4.58,'-3054','54446',90,186);
INSERT INTO "communes" VALUES('14','Saint-Martin-de-Bienfaite-la-Cressonnière','26',506,445,11.55,'-2194','54495',80,190);
INSERT INTO "communes" VALUES('14','Magny-en-Bessin','28',154,108,4.42,'-3334','54785',27,76);
INSERT INTO "communes" VALUES('14','Vaux-sur-Aure','28',323,344,7.6,'-3376','54781',19,58);
INSERT INTO "communes" VALUES('14','Saint-Philbert-des-Champs','05',688,606,12.03,'-2282','54676',89,166);
INSERT INTO "communes" VALUES('14','Tracy-sur-Mer','28',357,240,3.72,'-3304','54815',0,74);
INSERT INTO "communes" VALUES('14','Sallenelles','47',282,293,1.25,'-2851','54738',0,40);
INSERT INTO "communes" VALUES('14','Rots','32',1435,1355,12.22,'-3127','54675',41,72);
INSERT INTO "communes" VALUES('14','Lantheuil','13',653,592,4.42,'-3169','54743',12,61);
INSERT INTO "communes" VALUES('14','Prêtreville','49',436,333,11.23,'-2318','54528',62,162);
INSERT INTO "communes" VALUES('14','<NAME>','37',63,57,4.3,'-3262','54494',88,197);
INSERT INTO "communes" VALUES('14','Cesny-aux-Vignes','06',364,498,4.19,'-2730','54544',14,51);
INSERT INTO "communes" VALUES('14','Manerbe','05',505,499,18.27,'-2402','54650',50,171);
INSERT INTO "communes" VALUES('14','<NAME>','49',345,234,7.1,'-2480','54583',35,163);
INSERT INTO "communes" VALUES('14','Port-en-Bessin-Huppain','28',2116,2137,7.56,'-3435','54827',0,74);
INSERT INTO "communes" VALUES('14','Tilly-la-Campagne','06',125,93,3.55,'-2936','54568',57,85);
INSERT INTO "communes" VALUES('14','Fumichon','21',273,245,6.63,'-2184','54637',103,171);
INSERT INTO "communes" VALUES('14','Amayé-sur-Orne','16',1026,686,5.29,'-3084','54539',7,109);
INSERT INTO "communes" VALUES('14','Cambes-en-Plaine','13',1387,1491,3.25,'-3024','54703',47,66);
INSERT INTO "communes" VALUES('14','Jort','25',337,306,6.58,'-2684','54415',29,67);
INSERT INTO "communes" VALUES('14','La Vespière','26',973,980,8.65,'-2138','54465',118,190);
INSERT INTO "communes" VALUES('14','Saint-Germain-d''Ectot','11',337,275,4.97,'-3394','54581',101,168);
INSERT INTO "communes" VALUES('14','Louvigny','44',2701,1765,5.64,'-3032','54620',2,48);
INSERT INTO "communes" VALUES('14','Notre-Dame-d''Estrées','10',168,128,7.43,'-2606','54607',5,110);
INSERT INTO "communes" VALUES('14','Maisoncelles-sur-Ajon','37',202,182,4.24,'-3195','54505',94,196);
INSERT INTO "communes" VALUES('14','L''Hôtellerie','21',317,187,5.74,'-2145','54602',124,177);
INSERT INTO "communes" VALUES('14','Dampierre','01',118,120,5.26,'-3562','54493',97,181);
INSERT INTO "communes" VALUES('14','Villers-sur-Mer','35',2713,2324,8.99,'-2603','54801',3,136);
INSERT INTO "communes" VALUES('14','<NAME>','12',116,79,4.07,'-3273','54324',98,206);
INSERT INTO "communes" VALUES('14','Tréprel','17',109,108,5.4,'-2981','54331',130,246);
INSERT INTO "communes" VALUES('14','Malloué','04',30,28,1.27,'-3653','54390',62,207);
INSERT INTO "communes" VALUES('14','Croissanville','24',442,333,4.41,'-2708','54580',12,57);
INSERT INTO "communes" VALUES('14','<NAME>','23',310,272,9.86,'-2440','54494',39,164);
INSERT INTO "communes" VALUES('14','Asnelles','28',579,570,2.52,'-3245','54820',1,21);
INSERT INTO "communes" VALUES('14','Saint-Martin-de-Mieux','17',428,356,10.12,'-2851','54301',137,241);
INSERT INTO "communes" VALUES('14','Mutrécy','07',347,266,6.71,'-3065','54515',7,104);
INSERT INTO "communes" VALUES('14','Bonnebosq','10',716,655,12.17,'-2510','54672',51,159);
INSERT INTO "communes" VALUES('14','Saint-Aubin-d''Arquenay','48',793,631,3.29,'-2917','54736',14,46);
INSERT INTO "communes" VALUES('14','Cartigny-l''Épinay','20',302,279,10.23,'-3717','54711',7,66);
INSERT INTO "communes" VALUES('14','Norolles','05',249,271,6.52,'-2329','54666',27,157);
INSERT INTO "communes" VALUES('14','Marolles','21',689,625,12.22,'-2182','54598',79,184);
INSERT INTO "communes" VALUES('14','Crouay','33',550,418,7.73,'-3493','54741',24,81);
INSERT INTO "communes" VALUES('14','Fresné-la-Mère','18',546,416,8.14,'-2731','54327',58,159);
INSERT INTO "communes" VALUES('14','Danestal','15',283,235,6.38,'-2573','54723',33,150);
INSERT INTO "communes" VALUES('14','Fourches','25',214,151,4.78,'-2685','54290',73,160);
INSERT INTO "communes" VALUES('14','Cléville','34',351,269,8.53,'-2699','54618',2,43);
INSERT INTO "communes" VALUES('14','Longueville','20',281,241,6.54,'-3663','54822',0,50);
INSERT INTO "communes" VALUES('14','Saint-Omer','31',171,157,8.07,'-3100','54362',90,306);
INSERT INTO "communes" VALUES('14','Cresserons','14',1208,1198,3.59,'-2990','54764',17,59);
INSERT INTO "communes" VALUES('14','Saint-Ouen-le-Pin','10',285,268,5.59,'-2477','54609',94,166);
INSERT INTO "communes" VALUES('14','Merville-Franceville-Plage','47',2109,1521,10.42,'-2822','54753',0,42);
INSERT INTO "communes" VALUES('14','Montviette','29',177,191,6.62,'-2489','54444',109,195);
INSERT INTO "communes" VALUES('14','Amayé-sur-Seulles','37',200,163,5.62,'-3390','54534',91,194);
INSERT INTO "communes" VALUES('14','Heurtevent','23',203,166,5.86,'-2450','54430',64,190);
INSERT INTO "communes" VALUES('14','Fauguernon','21',251,182,7.41,'-2295','54658',68,167);
INSERT INTO "communes" VALUES('14','Canteloup','34',196,166,2.32,'-2741','54592',24,44);
INSERT INTO "communes" VALUES('14','Bretteville-sur-Laize','07',1642,1502,9.68,'-2957','54495',38,130);
INSERT INTO "communes" VALUES('14','Saint-Germain-de-Livet','49',785,580,16.41,'-2384','54527',53,182);
INSERT INTO "communes" VALUES('14','Le Torquesne','05',437,301,5.26,'-2410','54686',93,147);
INSERT INTO "communes" VALUES('14','Montfiquet','02',83,90,19.54,'-3579','54636',55,146);
INSERT INTO "communes" VALUES('14','Noron-l''Abbaye','17',339,219,7.62,'-2869','54327',154,229);
INSERT INTO "communes" VALUES('14','Danvou-la-Ferrière','01',165,166,11.51,'-3344','54394',177,298);
INSERT INTO "communes" VALUES('14','Saint-Louet-sur-Seulles','37',189,171,4.33,'-3337','54552',77,141);
INSERT INTO "communes" VALUES('14','Saint-Martin-de-Sallen','16',597,456,18.1,'-3176','54408',22,285);
INSERT INTO "communes" VALUES('14','Vendeuvre','25',736,740,26.31,'-2680','54435',25,86);
INSERT INTO "communes" VALUES('14','Bonnemaison','37',375,322,8.4,'-3245','54457',99,298);
INSERT INTO "communes" VALUES('14','Le Plessis-Grimoult','01',359,311,16.15,'-3273','54402',200,361);
INSERT INTO "communes" VALUES('14','Vieux-Pont-en-Auge','29',300,276,12.49,'-2538','54485',27,130);
INSERT INTO "communes" VALUES('14','Vicques','25',55,51,2.66,'-2681','54387',33,64);
INSERT INTO "communes" VALUES('14','Honfleur','19',8093,8175,13.67,'-2337','54910',0,117);
INSERT INTO "communes" VALUES('14','Secqueville-en-Bessin','13',355,358,7.16,'-3172','54704',27,65);
INSERT INTO "communes" VALUES('14','La Chapelle-Haute-Grue','23',60,30,2.92,'-2432','54408',70,192);
INSERT INTO "communes" VALUES('14','Dozulé','15',1923,1611,5.23,'-2644','54702',8,139);
INSERT INTO "communes" VALUES('14','Branville','15',206,146,6.39,'-2570','54748',49,148);
INSERT INTO "communes" VALUES('14','Saint-Pair','34',233,199,3.28,'-2802','54633',3,43);
INSERT INTO "communes" VALUES('14','Le Brévedent','05',154,146,4.43,'-2258','54698',62,143);
INSERT INTO "communes" VALUES('14','Ouilly-du-Houley','21',208,193,8.92,'-2229','54631',72,165);
INSERT INTO "communes" VALUES('14','Saint-Germain-Langot','17',311,271,10.35,'-2955','54358',135,239);
INSERT INTO "communes" VALUES('14','Villers-Canivet','17',731,497,12.24,'-2880','54378',139,233);
INSERT INTO "communes" VALUES('14','Trévières','33',935,904,11.7,'-3601','54787',0,46);
INSERT INTO "communes" VALUES('14','Billy','06',331,318,6.78,'-2811','54545',27,54);
INSERT INTO "communes" VALUES('14','Fourneville','19',498,352,6.86,'-2335','54841',54,145);
INSERT INTO "communes" VALUES('14','<NAME>-Eudes','49',301,288,8.42,'-2396','54548',60,176);
INSERT INTO "communes" VALUES('14','Saint-Georges-d''Aunay','01',711,658,23.51,'-3353','54486',117,325);
INSERT INTO "communes" VALUES('14','Jurques','01',667,559,12.69,'-3421','54464',139,351);
INSERT INTO "communes" VALUES('14','Saint-Martin-aux-Chartrains','27',405,351,5.06,'-2425','54786',3,125);
INSERT INTO "communes" VALUES('14','<NAME>','30',52,45,2.62,'-3690','54297',87,167);
INSERT INTO "communes" VALUES('14','Beaumesnil','30',210,188,4.99,'-3689','54326',72,153);
INSERT INTO "communes" VALUES('14','Chicheboville','06',512,460,7.54,'-2837','54567',17,72);
INSERT INTO "communes" VALUES('14','Beaulieu','04',174,142,3.15,'-3507','54344',110,175);
INSERT INTO "communes" VALUES('14','Beuvillers','21',1333,1076,4.92,'-2321','54589',47,140);
INSERT INTO "communes" VALUES('14','Eraines','18',311,228,4.04,'-2774','54343',64,148);
INSERT INTO "communes" VALUES('14','Touffréville','34',290,292,5.75,'-2845','54656',9,68);
INSERT INTO "communes" VALUES('14','Sept-Vents','11',409,360,12.52,'-3507','54529',94,233);
INSERT INTO "communes" VALUES('14','Bourguébus','06',1414,1074,5.52,'-2927','54580',40,73);
INSERT INTO "communes" VALUES('14','Saint-Julien-de-Mailloc','26',495,369,6.18,'-2242','54534',67,173);
INSERT INTO "communes" VALUES('14','Courseulles-sur-Mer','13',4153,3892,7.92,'-3105','54814',1,51);
INSERT INTO "communes" VALUES('14','<NAME>','21',731,481,11.53,'-2223','54679',100,159);
INSERT INTO "communes" VALUES('14','Villy-Bocage','37',772,629,11.39,'-3310','54551',68,217);
INSERT INTO "communes" VALUES('14','Saint-Martin-des-Entrées','03',623,500,5.99,'-3343','54742',46,82);
INSERT INTO "communes" VALUES('14','Champ-du-Boult','30',383,435,13.85,'-3716','54215',170,351);
INSERT INTO "communes" VALUES('14','Saint-Agnan-le-Malherbe','37',119,94,6.14,'-3243','54490',114,228);
INSERT INTO "communes" VALUES('14','Saint-Pierre-sur-Dives','29',3654,3975,9.68,'-2632','54465',23,74);
INSERT INTO "communes" VALUES('14','Coulombs','13',366,247,4.43,'-3221','54724',39,79);
INSERT INTO "communes" VALUES('14','Loucelles','32',203,138,3.07,'-3242','54693',45,83);
INSERT INTO "communes" VALUES('14','Putot-en-Auge','15',293,329,6.58,'-2672','54686',3,139);
INSERT INTO "communes" VALUES('14','Saint-Denis-Maisoncelles','04',101,74,2.36,'-3550','54424',104,194);
INSERT INTO "communes" VALUES('14','Gerrots','10',54,37,3.48,'-2602','54659',16,123);
INSERT INTO "communes" VALUES('14','<NAME>','21',586,496,3.85,'-2276','54561',57,171);
INSERT INTO "communes" VALUES('14','Vignats','25',272,224,8.8,'-2711','54283',86,175);
INSERT INTO "communes" VALUES('14','Touques','35',3995,3496,8.13,'-2483','54825',2,149);
INSERT INTO "communes" VALUES('14','Courson','30',431,484,16.7,'-3797','54282',94,231);
INSERT INTO "communes" VALUES('14','<NAME>','37',273,279,3.68,'-3210','54560',50,131);
INSERT INTO "communes" VALUES('14','Cahagnes','01',1373,1069,24.35,'-3450','54518',97,268);
INSERT INTO "communes" VALUES('14','Manvieux','28',118,107,2.82,'-3324','54819',0,72);
INSERT INTO "communes" VALUES('14','Authieux-Papion','24',62,60,4.28,'-2536','54518',30,79);
INSERT INTO "communes" VALUES('14','Saint-Jean-de-Livet','49',200,234,3.47,'-2318','54552',58,172);
INSERT INTO "communes" VALUES('14','Épinay-sur-Odon','37',642,536,11.58,'-3286','54529',76,209);
INSERT INTO "communes" VALUES('14','Blangy-le-Château','05',686,627,10.62,'-2292','54716',38,162);
INSERT INTO "communes" VALUES('14','Tilly-sur-Seulles','32',1537,1249,8.98,'-3292','54639',44,122);
INSERT INTO "communes" VALUES('14','Gouvix','07',803,819,5.18,'-2933','54484',56,133);
INSERT INTO "communes" VALUES('14','Campagnolles','30',449,392,10.06,'-3624','54322',95,164);
INSERT INTO "communes" VALUES('14','Escoville','47',725,626,5.18,'-2861','54678',13,42);
INSERT INTO "communes" VALUES('14','Cristot','32',227,160,3.92,'-3241','54661',66,106);
INSERT INTO "communes" VALUES('14','Arromanches-les-Bains','28',587,551,1.37,'-3288','54821',0,55);
INSERT INTO "communes" VALUES('14','Acqueville','31',186,178,6.65,'-3004','54413',126,211);
INSERT INTO "communes" VALUES('14','Saint-Léger-Dubosq','15',175,165,4.06,'-2628','54695',17,131);
INSERT INTO "communes" VALUES('14','Saint-Charles-de-Percy','36',193,167,6.61,'-3472','54361',134,245);
INSERT INTO "communes" VALUES('14','Cottun','03',181,182,3.77,'-3477','54747',39,75);
INSERT INTO "communes" VALUES('14','Méry-Corbon','24',961,835,7.57,'-2688','54595',4,37);
INSERT INTO "communes" VALUES('14','Truttemer-le-Petit','38',102,115,5.28,'-3501','54192',229,310);
INSERT INTO "communes" VALUES('14','Ducy-Sainte-Marguerite','32',142,144,3.61,'-3275','54695',33,86);
INSERT INTO "communes" VALUES('14','Clécy','31',1260,1253,24.63,'-3133','54351',31,261);
INSERT INTO "communes" VALUES('14','Saint-Martin-des-Besaces','04',1161,1064,22.03,'-3536','54457',115,308);
INSERT INTO "communes" VALUES('14','<NAME>','28',201,109,5.88,'-3257','54760',12,64);
INSERT INTO "communes" VALUES('14','Tordouet','26',271,295,6.76,'-2229','54500',88,181);
INSERT INTO "communes" VALUES('14','Saint-Pierre-du-Fresne','01',199,198,3.43,'-3443','54484',159,275);
INSERT INTO "communes" VALUES('14','Émiéville','34',548,349,3.92,'-2845','54613',4,22);
INSERT INTO "communes" VALUES('14','Damblainville','18',232,189,6.35,'-2721','54351',54,157);
INSERT INTO "communes" VALUES('14','Croisilles','31',519,404,10.23,'-3090','54442',16,182);
INSERT INTO "communes" VALUES('14','La Rivière-Saint-Sauveur','19',1951,1574,5.39,'-2294','54897',0,108);
INSERT INTO "communes" VALUES('14','Janville','34',362,406,4.44,'-2775','54626',2,43);
INSERT INTO "communes" VALUES('14','Hotot-en-Auge','10',307,281,24.05,'-2657','54629',2,35);
INSERT INTO "communes" VALUES('14','Mouen','32',1342,1292,4.16,'-3133','54609',28,94);
INSERT INTO "communes" VALUES('14','<NAME>','20',635,522,11.17,'-3713','54826',0,39);
INSERT INTO "communes" VALUES('14','Landelles-et-Coupigny','30',817,839,24.67,'-3705','54320',57,202);
INSERT INTO "communes" VALUES('14','Villy-lez-Falaise','18',256,229,4.95,'-2748','54330',58,126);
INSERT INTO "communes" VALUES('14','Sainte-Marguerite-de-Viette','29',394,368,7.72,'-2496','54459',72,184);
INSERT INTO "communes" VALUES('14','Fontaine-le-Pin','07',362,284,8.54,'-2911','54415',108,203);
INSERT INTO "communes" VALUES('14','Démouville','34',3329,3046,3.56,'-2895','54646',13,29);
INSERT INTO "communes" VALUES('14','Lassy','12',348,326,12.6,'-3348','54350',145,268);
INSERT INTO "communes" VALUES('14','Thury-Harcourt','31',2022,1828,4.9,'-3123','54427',18,156);
INSERT INTO "communes" VALUES('14','Cresseveuille','15',279,212,5.48,'-2585','54713',25,136);
INSERT INTO "communes" VALUES('14','Grandcamp-Maisy','20',1752,1831,14.85,'-3753','54875',0,34);
INSERT INTO "communes" VALUES('14','Viessoix','36',808,614,12.87,'-3483','54266',139,302);
INSERT INTO "communes" VALUES('14','Bernières-d''Ailly','25',258,212,9.39,'-2695','54402',34,137);
INSERT INTO "communes" VALUES('14','Poussy-la-Campagne','06',94,92,4.08,'-2845','54533',37,86);
INSERT INTO "communes" VALUES('14','Barneville-la-Bertran','19',140,138,4.18,'-2387','54876',15,127);
INSERT INTO "communes" VALUES('14','Lécaude','24',151,147,8.14,'-2513','54560',27,162);
INSERT INTO "communes" VALUES('14','Courtonne-la-Meurdrac','21',694,656,12.69,'-2241','54584',64,174);
INSERT INTO "communes" VALUES('14','Russy','33',178,157,4.86,'-3507','54814',7,78);
INSERT INTO "communes" VALUES('14','Hottot-les-Bagues','11',484,470,8.39,'-3317','54614',57,138);
INSERT INTO "communes" VALUES('14','Saint-Pierre-du-Jonquet','34',210,157,8.17,'-2750','54632',2,44);
INSERT INTO "communes" VALUES('14','Saint-Ouen-le-Houx','23',82,70,5.21,'-2391','54420',99,189);
INSERT INTO "communes" VALUES('14','Manneville-la-Pipard','05',319,348,6.31,'-2351','54735',12,149);
INSERT INTO "communes" VALUES('14','Reviers','13',564,478,4.38,'-3112','54780',2,54);
INSERT INTO "communes" VALUES('14','Éterville','16',1376,1043,4.87,'-3068','54605',12,78);
INSERT INTO "communes" VALUES('14','Bernières-le-Patry','36',569,502,15.67,'-3414','54238',152,270);
INSERT INTO "communes" VALUES('14','Vassy','36',1786,1652,31.01,'-3347','54281',103,260);
INSERT INTO "communes" VALUES('14','Vimont','34',749,480,8.96,'-2817','54580',2,29);
INSERT INTO "communes" VALUES('14','Trouville-sur-Mer','35',4821,5410,6.79,'-2505','54853',0,148);
INSERT INTO "communes" VALUES('14','Cussy','03',148,150,2.34,'-3443','54760',29,68);
INSERT INTO "communes" VALUES('14','Meslay','31',213,195,5.69,'-3037','54396',155,242);
INSERT INTO "communes" VALUES('14','Formigny','33',257,244,10.86,'-3595','54819',2,77);
INSERT INTO "communes" VALUES('14','Urville','07',502,479,6.02,'-2926','54473',66,136);
INSERT INTO "communes" VALUES('14','Lion-sur-Mer','14',2639,2402,4.75,'-2950','54779',0,30);
INSERT INTO "communes" VALUES('14','Longues-sur-Mer','28',648,584,12.29,'-3369','54818',0,77);
INSERT INTO "communes" VALUES('14','Moyaux','21',1354,1240,16.23,'-2200','54662',115,171);
INSERT INTO "communes" VALUES('14','<NAME>','16',110,93,2.41,'-3174','54483',114,193);
INSERT INTO "communes" VALUES('14','Saint-Gabriel-Brécy','13',301,242,7.44,'-3224','54753',10,63);
INSERT INTO "communes" VALUES('14','Bures-les-Monts','04',144,107,5.21,'-3669','54385',54,257);
INSERT INTO "communes" VALUES('14','<NAME>','02',751,629,13.07,'-3511','54698',35,106);
INSERT INTO "communes" VALUES('15','Chaudes-Aigues','05',926,988,53.16,'742','49838',637,1280);
INSERT INTO "communes" VALUES('15','Naucelles','27',1917,1782,11.69,'91','49954',579,842);
INSERT INTO "communes" VALUES('15','Cézens','13',251,264,31.82,'577','49982',955,1476);
INSERT INTO "communes" VALUES('15','Lieutadès','05',204,225,39.91,'625','49822',621,1136);
INSERT INTO "communes" VALUES('15','Champagnac','17',1062,1168,28.01,'70','50396',321,697);
INSERT INTO "communes" VALUES('15','Lacapelle-Viescamp','07',468,434,15.62,'-82','49914',517,629);
INSERT INTO "communes" VALUES('15','Vieillevie','11',107,114,9.65,'90','49606',188,660);
INSERT INTO "communes" VALUES('15','Celles','12',239,239,18.35,'686','50128',800,1075);
INSERT INTO "communes" VALUES('15','Paulhenc','13',258,283,23.69,'534','49877',646,961);
INSERT INTO "communes" VALUES('15','Fontanges','22',214,245,18.04,'186','50126',664,1246);
INSERT INTO "communes" VALUES('15','Collandres','15',173,223,43.32,'357','50263',896,1540);
INSERT INTO "communes" VALUES('15','<NAME>','17',121,114,9.49,'242','50360',515,940);
INSERT INTO "communes" VALUES('15','Saint-Bonnet-de-Condat','06',100,177,17.32,'502','50311',799,1146);
INSERT INTO "communes" VALUES('15','Saint-Paul-de-Salers','22',117,146,36.57,'200','50155',689,1642);
INSERT INTO "communes" VALUES('15','Talizat','19',580,593,37.62,'789','50127',700,1162);
INSERT INTO "communes" VALUES('15','Anglards-de-Salers','22',815,761,48.36,'115','50227',530,1317);
INSERT INTO "communes" VALUES('15','Champs-sur-Tarentaine-Marchal','04',1038,1048,60.32,'249','50440',449,966);
INSERT INTO "communes" VALUES('15','Sainte-Anastasie','01',140,167,15.88,'704','50192',839,1200);
INSERT INTO "communes" VALUES('15','Freix-Anglards','18',195,195,17.69,'55','50024',591,842);
INSERT INTO "communes" VALUES('15','Valjouze','08',25,23,3.05,'804','50181',712,1101);
INSERT INTO "communes" VALUES('15','Pierrefort','13',900,1001,24.59,'557','49913',730,1115);
INSERT INTO "communes" VALUES('15','Apchon','15',212,242,12.43,'397','50277',833,1143);
INSERT INTO "communes" VALUES('15','Aurillac','98',27924,30554,28.76,'115','49917',573,867);
INSERT INTO "communes" VALUES('15','Saint-Bonnet-de-Salers','22',314,331,32.67,'130','50178',720,1350);
INSERT INTO "communes" VALUES('15','Saint-Projet-de-Salers','22',126,117,36.32,'211','50095',720,1736);
INSERT INTO "communes" VALUES('15','Madic','17',216,248,6.63,'134','50421',400,580);
INSERT INTO "communes" VALUES('15','Montchamp','19',130,124,15.9,'962','50078',946,1174);
INSERT INTO "communes" VALUES('15','Charmensac','01',86,130,15.17,'835','50241',649,1104);
INSERT INTO "communes" VALUES('15','Saint-Martin-sous-Vigouroux','13',243,279,19.29,'518','49915',670,1371);
INSERT INTO "communes" VALUES('15','Saint-Poncy','08',329,342,40.37,'945','50183',599,1065);
INSERT INTO "communes" VALUES('15','Vitrac','21',290,278,17.88,'-24','49795',444,786);
INSERT INTO "communes" VALUES('15','<NAME>','12',239,252,9.2,'622','50120',860,1124);
INSERT INTO "communes" VALUES('15','Condat','06',996,1121,40.24,'467','50379',672,1266);
INSERT INTO "communes" VALUES('15','<NAME>','10',88,99,5.87,'-165','49632',234,403);
INSERT INTO "communes" VALUES('15','Pradiers','01',92,112,23.61,'653','50300',1039,1405);
INSERT INTO "communes" VALUES('15','Saint-Cirgues-de-Malbert','18',227,226,16.21,'63','50109',502,833);
INSERT INTO "communes" VALUES('15','Saint-Paul-des-Landes','03',1473,1101,19,'-25','49937',536,664);
INSERT INTO "communes" VALUES('15','<NAME>','21',981,901,8.23,'-116','49838',555,665);
INSERT INTO "communes" VALUES('15','Siran','07',511,529,50.88,'-232','49950',347,699);
INSERT INTO "communes" VALUES('15','Saint-Martin-Valmeroux','22',846,910,25.92,'98','50130',609,963);
INSERT INTO "communes" VALUES('15','Peyrusse','01',164,215,29.26,'769','50225',629,1204);
INSERT INTO "communes" VALUES('15','Jaleyrac','09',374,374,16.86,'38','50293',348,742);
INSERT INTO "communes" VALUES('15','Antignac','17',282,293,16.02,'232','50380',468,928);
INSERT INTO "communes" VALUES('15','Saint-Victor','07',109,127,13.53,'-54','50011',440,652);
INSERT INTO "communes" VALUES('15','Saint-Chamant','22',256,281,13.72,'114','50101',635,940);
INSERT INTO "communes" VALUES('15','Cussac','20',137,135,13.68,'662','49982',880,1079);
INSERT INTO "communes" VALUES('15','Joursac','01',153,155,21.11,'743','50158',681,1166);
INSERT INTO "communes" VALUES('15','Deux-Verges','05',57,61,11.2,'763','49785',959,1286);
INSERT INTO "communes" VALUES('15','Escorailles','14',71,78,2.79,'-7','50192',518,805);
INSERT INTO "communes" VALUES('15','Rouffiac','07',217,237,23.12,'-221','50025',280,685);
INSERT INTO "communes" VALUES('15','Besse','18',128,143,3.77,'14','50107',559,769);
INSERT INTO "communes" VALUES('15','Sainte-Eulalie','14',204,216,14.51,'41','50131',560,828);
INSERT INTO "communes" VALUES('15','<NAME>-Laurent','08',334,382,26.09,'1008','50198',623,1060);
INSERT INTO "communes" VALUES('15','Clavières','16',234,265,44.66,'1045','49984',872,1434);
INSERT INTO "communes" VALUES('15','Cheylade','12',277,336,32.81,'421','50233',914,1490);
INSERT INTO "communes" VALUES('15','Saint-Martial','05',64,78,14.19,'787','49859',659,1029);
INSERT INTO "communes" VALUES('15','Saint-Étienne-Cantalès','07',140,157,11.21,'-126','49942',452,604);
INSERT INTO "communes" VALUES('15','Mandailles-Saint-Julien','25',197,226,35.37,'355','50076',837,1780);
INSERT INTO "communes" VALUES('15','Saint-Vincent-de-Salers','22',73,107,18.87,'217','50226',575,1264);
INSERT INTO "communes" VALUES('15','Narnhac','13',75,84,10.29,'492','49921',756,1110);
INSERT INTO "communes" VALUES('15','Saint-Étienne-de-Carlat','23',132,115,10.62,'264','49894',674,949);
INSERT INTO "communes" VALUES('15','Veyrières','17',128,116,13.67,'42','50368',321,675);
INSERT INTO "communes" VALUES('15','Fournoulès','10',63,83,7.18,'-67','49640',291,604);
INSERT INTO "communes" VALUES('15','Saint-Illide','18',660,666,39.71,'-24','50069',424,733);
INSERT INTO "communes" VALUES('15','Arnac','07',152,174,20.15,'-115','50065',360,671);
INSERT INTO "communes" VALUES('15','Tournemire','18',139,145,9.68,'162','50060',708,1046);
INSERT INTO "communes" VALUES('15','Glénat','07',212,223,24.27,'-173','49890',534,747);
INSERT INTO "communes" VALUES('15','Landeyrat','01',102,120,21.28,'586','50304',1038,1327);
INSERT INTO "communes" VALUES('15','Chastel-sur-Murat','12',139,95,13.79,'578','50138',1000,1360);
INSERT INTO "communes" VALUES('15','Saint-Cernin','18',1076,1119,46.75,'94','50065',556,985);
INSERT INTO "communes" VALUES('15','Faverolles','16',302,334,32.19,'900','49934',733,1066);
INSERT INTO "communes" VALUES('15','Vèze','01',66,100,25.46,'730','50296',871,1372);
INSERT INTO "communes" VALUES('15','Vézac','26',1135,951,15.02,'203','49881',617,860);
INSERT INTO "communes" VALUES('15','Dienne','12',261,295,46.33,'501','50176',1015,1561);
INSERT INTO "communes" VALUES('15','Leucamp','11',235,237,13.5,'217','49754',349,758);
INSERT INTO "communes" VALUES('15','Vernols','01',67,81,24.2,'615','50251',988,1226);
INSERT INTO "communes" VALUES('15','Saint-Flour','99',6711,6629,27.14,'840','50037',757,1040);
INSERT INTO "communes" VALUES('15','Salins','09',154,152,8.75,'63','50212',573,821);
INSERT INTO "communes" VALUES('15','Cros-de-Montvert','07',218,223,29.28,'-210','50060',304,703);
INSERT INTO "communes" VALUES('15','Chaussenac','14',234,232,16.13,'-65','50198',360,723);
INSERT INTO "communes" VALUES('15','Sourniac','09',192,178,11.72,'3','50308',471,706);
INSERT INTO "communes" VALUES('15','Roannes-Saint-Mary','21',1007,908,36.29,'60','49841',560,804);
INSERT INTO "communes" VALUES('15','Allanche','01',891,1101,49.89,'664','50255',784,1295);
INSERT INTO "communes" VALUES('15','Lascelle','25',306,317,19.1,'265','50025',708,1337);
INSERT INTO "communes" VALUES('15','Ayrens','07',564,494,25.5,'-11','49983',517,729);
INSERT INTO "communes" VALUES('15','Trémouille','04',189,203,29.09,'376','50415',563,961);
INSERT INTO "communes" VALUES('15','Paulhac','20',456,444,46.92,'631','50007',991,1485);
INSERT INTO "communes" VALUES('15','Neussargues-Moissac','12',968,1030,13.62,'711','50143',738,1022);
INSERT INTO "communes" VALUES('15','Ferrières-Saint-Mary','08',251,299,19.17,'802','50203',633,1178);
INSERT INTO "communes" VALUES('15','Ruynes-en-Margeride','16',630,648,29.66,'985','50002',724,1371);
INSERT INTO "communes" VALUES('15','Védrines-Saint-Loup','16',143,162,27.56,'1050','50077',873,1372);
INSERT INTO "communes" VALUES('15','Giou-de-Mamou','25',743,696,14.23,'197','49924',616,966);
INSERT INTO "communes" VALUES('15','Lacapelle-del-Fraisse','11',309,251,15.29,'111','49756',579,834);
INSERT INTO "communes" VALUES('15','Ternes','20',575,455,19.13,'752','49998',896,1061);
INSERT INTO "communes" VALUES('15','Lacapelle-Barrès','13',58,78,6.3,'430','49927',927,1233);
INSERT INTO "communes" VALUES('15','Arpajon-sur-Cère','26',6053,5507,47.67,'133','49893',566,844);
INSERT INTO "communes" VALUES('15','Rageade','16',111,135,12.59,'1045','50116',920,1125);
INSERT INTO "communes" VALUES('15','Gourdièges','13',64,54,8.46,'604','49930',987,1157);
INSERT INTO "communes" VALUES('15','Alleuze','20',211,193,22.85,'832','49958',740,1004);
INSERT INTO "communes" VALUES('15','Lafeuillade-en-Vézie','11',579,513,16.54,'137','49766',660,834);
INSERT INTO "communes" VALUES('15','Brezons','13',205,208,43.2,'523','49965',785,1813);
INSERT INTO "communes" VALUES('15','Cros-de-Ronesque','23',130,137,16.23,'304','49858',440,871);
INSERT INTO "communes" VALUES('15','Pailherols','23',159,153,25.98,'386','49945',807,1632);
INSERT INTO "communes" VALUES('15','Parlan','21',327,281,24.12,'-182','49810',510,743);
INSERT INTO "communes" VALUES('15','Tanavelle','20',244,250,13.58,'735','50025',943,1089);
INSERT INTO "communes" VALUES('15','Murat','12',1983,2152,6.47,'591','50122',868,1163);
INSERT INTO "communes" VALUES('15','Nieudan','07',106,105,12.4,'-104','49982',479,626);
INSERT INTO "communes" VALUES('15','Marchastel','06',154,169,22.92,'432','50315',769,1176);
INSERT INTO "communes" VALUES('15','Anglards-de-Saint-Flour','19',336,284,12.28,'908','49979',732,884);
INSERT INTO "communes" VALUES('15','Saignes','17',902,1001,6.81,'159','50372',442,780);
INSERT INTO "communes" VALUES('15','Cayrols','21',267,227,9.22,'-115','49813',476,664);
INSERT INTO "communes" VALUES('15','<NAME>','05',44,62,17.57,'672','49721',1035,1310);
INSERT INTO "communes" VALUES('15','Jussac','27',1871,1780,18.43,'96','49986',609,874);
INSERT INTO "communes" VALUES('15','Molèdes','08',98,115,22.38,'781','50292',661,1284);
INSERT INTO "communes" VALUES('15','Albepierre-Bredons','12',222,237,34.42,'550','50086',872,1855);
INSERT INTO "communes" VALUES('15','Reilhac','27',1064,955,8.89,'94','49971',582,867);
INSERT INTO "communes" VALUES('15','Coren','19',429,406,16.86,'857','50086',854,1153);
INSERT INTO "communes" VALUES('15','Brageac','14',72,66,12.23,'-54','50227',288,686);
INSERT INTO "communes" VALUES('15','Maurines','05',100,103,14.29,'832','49856',740,1056);
INSERT INTO "communes" VALUES('15','Mauriac','09',3836,4019,27.61,'-3','50243',351,760);
INSERT INTO "communes" VALUES('15','Molompize','08',299,285,17.12,'878','50255',549,997);
INSERT INTO "communes" VALUES('15','Andelat','19',440,335,21.05,'805','50067',796,1083);
INSERT INTO "communes" VALUES('15','Sansac-Veinazès','11',213,210,12.56,'121','49712',530,807);
INSERT INTO "communes" VALUES('15','Roumégoux','21',260,214,13.29,'-153','49841',579,761);
INSERT INTO "communes" VALUES('15','Quézac','10',323,322,16.43,'-167','49720',287,594);
INSERT INTO "communes" VALUES('15','<NAME>','17',260,274,23.47,'181','50331',553,1022);
INSERT INTO "communes" VALUES('15','Cassaniouze','11',509,547,35.84,'52','49656',180,688);
INSERT INTO "communes" VALUES('15','Laroquevieille','25',375,324,15.68,'214','50023',657,1140);
INSERT INTO "communes" VALUES('15','Marcolès','21',616,578,52.89,'18','49758',427,828);
INSERT INTO "communes" VALUES('15','Chanterelle','06',123,151,19.72,'531','50422',800,1225);
INSERT INTO "communes" VALUES('15','Mourjou','10',317,353,29.99,'-8','49656',294,663);
INSERT INTO "communes" VALUES('15','Valette','15',262,271,14.9,'296','50297',677,1133);
INSERT INTO "communes" VALUES('15','Lanobre','04',1421,1418,40.99,'220','50488',430,896);
INSERT INTO "communes" VALUES('15','Méallet','09',168,173,21.52,'104','50284',368,828);
INSERT INTO "communes" VALUES('15','Sériers','20',135,147,12.62,'781','49974',757,1016);
INSERT INTO "communes" VALUES('15','Ségur-les-Villas','01',227,270,26.69,'534','50251',960,1289);
INSERT INTO "communes" VALUES('15','Polminhac','23',1092,1156,29.03,'268','49946',629,1178);
INSERT INTO "communes" VALUES('15','<NAME>','09',826,879,28.99,'18','50252',462,789);
INSERT INTO "communes" VALUES('15','Saint-Gérons','07',210,177,16.68,'-133','49945',435,699);
INSERT INTO "communes" VALUES('15','Marmanhac','25',733,706,24.24,'162','50004',627,971);
INSERT INTO "communes" VALUES('15','Saint-Cirgues-de-Jordanne','25',140,176,16.24,'273','50031',733,1520);
INSERT INTO "communes" VALUES('15','Labrousse','26',416,378,19.86,'228','49840',467,850);
INSERT INTO "communes" VALUES('15','Saint-Julien-de-Toursac','10',148,105,9.44,'-141','49749',270,582);
INSERT INTO "communes" VALUES('15','Lugarde','06',159,165,13.43,'471','50320',753,1165);
INSERT INTO "communes" VALUES('15','Saint-Pierre','17',168,150,14.27,'57','50432',352,692);
INSERT INTO "communes" VALUES('15','Jou-sous-Monjou','23',112,136,6.16,'365','49931',694,1056);
INSERT INTO "communes" VALUES('15','Saint-Mary-le-Plain','08',154,156,21.8,'917','50207',640,1021);
INSERT INTO "communes" VALUES('15','Saint-Étienne-de-Chomeil','15',210,259,27.57,'295','50381',500,981);
INSERT INTO "communes" VALUES('15','Barriac-les-Bosquets','14',163,187,12.8,'-86','50160',555,737);
INSERT INTO "communes" VALUES('15','Chalinargues','12',430,433,27.55,'662','50172',909,1169);
INSERT INTO "communes" VALUES('15','Espinasse','05',72,80,16.72,'672','49858',620,1064);
INSERT INTO "communes" VALUES('15','Carlat','23',325,305,20.88,'256','49877',480,906);
INSERT INTO "communes" VALUES('15','Anterrieux','05',127,131,16.16,'786','49817',862,1132);
INSERT INTO "communes" VALUES('15','Montgreleix','06',42,67,17.63,'593','50383',1036,1426);
INSERT INTO "communes" VALUES('15','Saint-Santin-de-Maurs','10',365,340,14.52,'-134','49612',233,487);
INSERT INTO "communes" VALUES('15','Saint-Saury','21',204,187,30.11,'-219','49853',574,761);
INSERT INTO "communes" VALUES('15','Beaulieu','04',102,138,7.64,'195','50507',531,748);
INSERT INTO "communes" VALUES('15','Saint-Hippolyte','15',108,124,13.92,'409','50249',879,1336);
INSERT INTO "communes" VALUES('15','Rézentières','19',125,115,13.29,'852','50149',760,1143);
INSERT INTO "communes" VALUES('15','Saint-Clément','23',64,80,17.43,'360','49972',788,1554);
INSERT INTO "communes" VALUES('15','Vic-sur-Cère','23',1982,1889,29.37,'321','49978',652,1262);
INSERT INTO "communes" VALUES('15','Sainte-Marie','13',113,107,17.87,'610','49864',620,1055);
INSERT INTO "communes" VALUES('15','Marcenat','06',515,625,51.47,'545','50341',760,1449);
INSERT INTO "communes" VALUES('15','Saint-Antoine','10',120,133,7.22,'1','49723',485,702);
INSERT INTO "communes" VALUES('15','Bonnac','08',162,158,22.6,'913','50231',560,1007);
INSERT INTO "communes" VALUES('15','Jabrun','05',147,178,34.03,'694','49786',710,1285);
INSERT INTO "communes" VALUES('15','Vieillespesse','19',257,246,24.91,'906','50141',880,1131);
INSERT INTO "communes" VALUES('15','Thiézac','23',612,614,41.7,'365','50016',673,1565);
INSERT INTO "communes" VALUES('15','Ladinhac','11',493,464,26.72,'191','49728',320,794);
INSERT INTO "communes" VALUES('15','Badailhac','23',123,123,12.48,'320','49910',677,1023);
INSERT INTO "communes" VALUES('15','Saint-Urcize','05',487,527,54.3,'742','49663',1044,1427);
INSERT INTO "communes" VALUES('15','Boisset','10',607,654,37.73,'-92','49758',277,688);
INSERT INTO "communes" VALUES('15','Sauvat','17',193,191,14.48,'118','50351',390,740);
INSERT INTO "communes" VALUES('15','Coltines','19',454,404,19.02,'723','50104',913,1010);
INSERT INTO "communes" VALUES('15','Saint-Martin-Cantalès','14',166,185,19.59,'-38','50102',421,736);
INSERT INTO "communes" VALUES('15','Lapeyrugue','11',102,128,8.47,'230','49698',272,735);
INSERT INTO "communes" VALUES('15','Roffiac','19',584,563,21.26,'779','50058',815,1006);
INSERT INTO "communes" VALUES('15','Lastic','19',108,130,10.47,'970','50125',985,1143);
INSERT INTO "communes" VALUES('15','Chaliers','16',197,196,18.37,'990','49952',728,1002);
INSERT INTO "communes" VALUES('15','Pleaux','14',1590,1825,92.39,'-122','50150',264,765);
INSERT INTO "communes" VALUES('15','Saint-Simon','25',1082,1018,27.27,'170','49959',655,1031);
INSERT INTO "communes" VALUES('15','Saint-Georges','19',1083,939,33.14,'879','50021',740,1001);
INSERT INTO "communes" VALUES('15','Prunet','26',569,517,27.34,'141','49800',639,823);
INSERT INTO "communes" VALUES('15','Girgols','18',77,73,12.62,'161','50043',786,1228);
INSERT INTO "communes" VALUES('15','Montsalvy','11',875,899,20.29,'182','49675',269,822);
INSERT INTO "communes" VALUES('15','Sénezergues','11',195,230,17.61,'85','49669',278,795);
INSERT INTO "communes" VALUES('15','Chavagnac','12',104,94,16.58,'606','50171',1053,1284);
INSERT INTO "communes" VALUES('15','Raulhac','23',314,332,16.98,'355','49888',539,995);
INSERT INTO "communes" VALUES('15','Malbo','13',133,121,29.34,'466','49970',995,1612);
INSERT INTO "communes" VALUES('15','Montmurat','10',136,133,5.07,'-150','49588',235,418);
INSERT INTO "communes" VALUES('15','Bassignac','17',224,230,11.95,'77','50356',359,671);
INSERT INTO "communes" VALUES('15','<NAME>','21',122,98,6.57,'-143','49881',536,652);
INSERT INTO "communes" VALUES('15','Soulages','16',89,101,15.09,'1041','50099',840,1118);
INSERT INTO "communes" VALUES('15','Ally','14',658,700,23.11,'-24','50194',471,810);
INSERT INTO "communes" VALUES('15','Saint-Santin-Cantalès','07',318,316,34.28,'-88','50033',428,707);
INSERT INTO "communes" VALUES('15','Lorcières','16',187,222,21.82,'1042','49953',760,1341);
INSERT INTO "communes" VALUES('15','Riom-ès-Montagnes','15',2698,2838,46.48,'359','50313',575,1102);
INSERT INTO "communes" VALUES('15','Fridefont','05',96,138,13.96,'833','49890',660,956);
INSERT INTO "communes" VALUES('15','Chalvignac','09',433,502,35.89,'-100','50267',259,692);
INSERT INTO "communes" VALUES('15','Laurie','08',96,117,19.23,'849','50307',649,1200);
INSERT INTO "communes" VALUES('15','<NAME>','22',70,87,17.51,'255','50210',710,1510);
INSERT INTO "communes" VALUES('15','Trizac','15',529,655,44.9,'225','50281',625,1264);
INSERT INTO "communes" VALUES('15','Virargues','12',141,140,11.03,'638','50139',854,1225);
INSERT INTO "communes" VALUES('15','Laveissière','12',587,585,34.93,'522','50129',894,1811);
INSERT INTO "communes" VALUES('15','Neuvéglise','20',1108,1028,54.7,'719','49920',635,1055);
INSERT INTO "communes" VALUES('15','Ussel','20',484,437,10.34,'666','50090',959,1086);
INSERT INTO "communes" VALUES('15','Saint-Rémy-de-Chaudes-Aigues','05',109,116,14.87,'771','49750',951,1282);
INSERT INTO "communes" VALUES('15','Loubaresse','16',406,434,28.24,'970','49928',726,996);
INSERT INTO "communes" VALUES('15','Ydes','17',1844,1933,17.36,'112','50386',390,665);
INSERT INTO "communes" VALUES('15','Yolet','25',575,489,9.82,'217','49921',616,969);
INSERT INTO "communes" VALUES('15','Menet','15',506,579,29.86,'274','50330',579,980);
INSERT INTO "communes" VALUES('15','<NAME>','12',213,260,28.07,'410','50178',994,1780);
INSERT INTO "communes" VALUES('15','Saint-Saturnin','01',220,250,38.71,'509','50284',911,1380);
INSERT INTO "communes" VALUES('15','Saint-Constant','10',559,553,21.8,'-117','49650',251,524);
INSERT INTO "communes" VALUES('15','Auzers','09',186,236,19.27,'136','50294',440,908);
INSERT INTO "communes" VALUES('15','Oradour','13',279,299,33.77,'664','49910',620,1159);
INSERT INTO "communes" VALUES('15','Laroquebrou','07',814,1082,17.15,'-161','49965',429,693);
INSERT INTO "communes" VALUES('15','Saint-Amandin','06',239,244,31.89,'398','50381',577,1072);
INSERT INTO "communes" VALUES('15','Pers','21',302,234,16.05,'-109','49875',516,657);
INSERT INTO "communes" VALUES('15','Celoux','16',78,89,9.62,'1031','50161',919,1122);
INSERT INTO "communes" VALUES('15','Laveissenet','12',97,104,10.79,'614','50091',949,1480);
INSERT INTO "communes" VALUES('15','Rouziers','10',132,122,8.61,'-142','49771',349,594);
INSERT INTO "communes" VALUES('15','Velzic','25',394,378,11.26,'240','50001',693,1173);
INSERT INTO "communes" VALUES('15','Drugeac','09',353,367,18.24,'55','50185',537,817);
INSERT INTO "communes" VALUES('15','Chazelles','16',35,45,6.28,'1111','50115',677,1115);
INSERT INTO "communes" VALUES('15','Villedieu','20',528,516,18.99,'808','49999',795,1045);
INSERT INTO "communes" VALUES('15','Saint-Mamet-la-Salvetat','21',1536,1321,51.49,'-33','49842',499,790);
INSERT INTO "communes" VALUES('15','Moussages','09',269,293,19.03,'149','50264',549,1003);
INSERT INTO "communes" VALUES('15','Saint-Marc','16',83,97,8.78,'950','49891',828,1051);
INSERT INTO "communes" VALUES('15','Leynhac','10',356,386,27.68,'-41','49711',275,652);
INSERT INTO "communes" VALUES('15','Mentières','19',126,112,13.17,'891','50077',834,1128);
INSERT INTO "communes" VALUES('15','<NAME>','22',144,191,30.59,'318','50173',813,1780);
INSERT INTO "communes" VALUES('15','Lavastrie','20',239,221,24.14,'784','49928',660,1042);
INSERT INTO "communes" VALUES('15','Tiviers','19',157,145,13.53,'913','50068',818,1124);
INSERT INTO "communes" VALUES('15','Calvinet','11',483,432,13.73,'23','49686',452,742);
INSERT INTO "communes" VALUES('15','Montvert','07',118,115,11.37,'-196','49995',392,684);
INSERT INTO "communes" VALUES('15','Labesserette','11',264,260,13.64,'138','49713',517,775);
INSERT INTO "communes" VALUES('15','Leyvaux','08',31,36,14.95,'817','50348',615,1106);
INSERT INTO "communes" VALUES('15','Montboudif','06',186,231,20.42,'439','50413',580,1111);
INSERT INTO "communes" VALUES('15','Saint-Just','16',208,222,17.06,'969','49878',868,1087);
INSERT INTO "communes" VALUES('15','Salers','22',358,401,4.85,'175','50154',830,1207);
INSERT INTO "communes" VALUES('15','Massiac','08',1829,1849,34.78,'956','50279',511,1005);
INSERT INTO "communes" VALUES('15','Arches','09',182,173,16.15,'-10','50340',321,687);
INSERT INTO "communes" VALUES('15','Auriac-l''Église','08',205,209,19.73,'878','50294',539,1010);
INSERT INTO "communes" VALUES('15','Valuéjols','20',542,529,38.51,'664','50059',974,1410);
INSERT INTO "communes" VALUES('15','Junhac','11',328,336,27.71,'129','49681',280,778);
INSERT INTO "communes" VALUES('15','Crandelles','27',715,599,12.46,'14','49954',569,744);
INSERT INTO "communes" VALUES('15','Vabres','19',223,253,18.83,'967','50039',814,1143);
INSERT INTO "communes" VALUES('15','Saint-Étienne-de-Maurs','10',785,622,17.27,'-144','49685',252,550);
INSERT INTO "communes" VALUES('15','Ytrac','03',3902,3334,38.37,'29','49902',517,665);
INSERT INTO "communes" VALUES('15','Teissières-de-Cornet','27',223,174,9.32,'21','49967',577,754);
INSERT INTO "communes" VALUES('15','Saint-Jacques-des-Blats','23',322,326,31.48,'415','50058',800,1855);
INSERT INTO "communes" VALUES('15','<NAME>','22',26,37,19.46,'275','50113',793,1650);
INSERT INTO "communes" VALUES('15','Lavigerie','12',104,102,24.25,'453','50154',1054,1773);
INSERT INTO "communes" VALUES('15','Vebret','17',489,503,24.43,'204','50377',425,727);
INSERT INTO "communes" VALUES('15','Maurs','10',2182,2252,30.84,'-154','49679',237,551);
INSERT INTO "communes" VALUES('15','Omps','21',300,275,12.62,'-67','49864',517,723);
INSERT INTO "communes" VALUES('15','Sansac-de-Marmiesse','03',1294,1101,14.35,'12','49871',546,724);
INSERT INTO "communes" VALUES('15','Vezels-Roussy','26',149,143,12.87,'276','49788',371,764);
INSERT INTO "communes" VALUES('15','Teissières-lès-Bouliès','26',318,268,19.51,'230','49803',402,821);
INSERT INTO "communes" VALUES('16','Saint-Front','18',344,315,13.35,'-2275','50993',66,119);
INSERT INTO "communes" VALUES('16','Eymouthiers','19',306,296,8.68,'-1993','50714',118,254);
INSERT INTO "communes" VALUES('16','Saint-Ciers-sur-Bonnieure','18',297,256,10.44,'-2325','50955',60,122);
INSERT INTO "communes" VALUES('16','Bourg-Charente','27',789,754,12.02,'-2841','50748',6,55);
INSERT INTO "communes" VALUES('16','<NAME>','25',199,151,7.69,'-2555','50933',45,111);
INSERT INTO "communes" VALUES('16','Pérignac','07',507,485,25.52,'-2510','50516',77,189);
INSERT INTO "communes" VALUES('16','Ambérac','25',321,336,12.1,'-2523','50948',46,101);
INSERT INTO "communes" VALUES('16','Saint-Amant-de-Nouère','16',420,382,11.15,'-2594','50829',62,130);
INSERT INTO "communes" VALUES('16','Linars','16',2060,2095,5.97,'-2513','50722',25,82);
INSERT INTO "communes" VALUES('16','Exideuil','09',1078,1015,20.56,'-1848','50985',140,243);
INSERT INTO "communes" VALUES('16','Javrezac','33',635,687,3.66,'-2993','50779',7,69);
INSERT INTO "communes" VALUES('16','Salles-de-Villefagnan','29',343,325,12.83,'-2416','51065',69,132);
INSERT INTO "communes" VALUES('16','Deviat','21',166,158,8.42,'-2586','50464',74,167);
INSERT INTO "communes" VALUES('16','Verteuil-sur-Charente','24',609,719,14.24,'-2341','51091',72,133);
INSERT INTO "communes" VALUES('16','Barbezières','01',122,147,9.29,'-2697','51012',79,141);
INSERT INTO "communes" VALUES('16','Saint-Même-les-Carrières','27',1099,1051,15.14,'-2754','50717',13,86);
INSERT INTO "communes" VALUES('16','Vitrac-Saint-Vincent','20',515,512,22.07,'-2048','50884',116,254);
INSERT INTO "communes" VALUES('16','Mansle','18',1565,1596,5.75,'-2398','50974',55,115);
INSERT INTO "communes" VALUES('16','Soyaux','32',9561,10180,12.76,'-2376','50712',56,166);
INSERT INTO "communes" VALUES('16','Luxé','18',800,755,12.17,'-2467','50992',52,98);
INSERT INTO "communes" VALUES('16','Vœuil-et-Giget','30',1603,1431,8.48,'-2425','50651',55,147);
INSERT INTO "communes" VALUES('16','Saint-Laurent-de-Cognac','33',876,925,10.87,'-3050','50774',2,76);
INSERT INTO "communes" VALUES('16','Vignolles','06',187,184,8.8,'-2695','50566',41,116);
INSERT INTO "communes" VALUES('16','Roumazières-Loubert','26',2527,2779,46.59,'-1957','50995',155,245);
INSERT INTO "communes" VALUES('16','Nabinaud','04',81,89,5.88,'-2359','50318',45,133);
INSERT INTO "communes" VALUES('16','Marcillac-Lanville','23',594,565,18.41,'-2574','50940',47,136);
INSERT INTO "communes" VALUES('16','Fontclaireau','18',399,360,5.61,'-2371','50994',56,124);
INSERT INTO "communes" VALUES('16','Essards','04',204,196,8.98,'-2467','50267',30,145);
INSERT INTO "communes" VALUES('16','Puyréaux','18',490,396,8.11,'-2361','50957',57,116);
INSERT INTO "communes" VALUES('16','Saint-Amant','21',683,646,27.2,'-2422','50439',70,191);
INSERT INTO "communes" VALUES('16','Coulgens','22',495,382,11.7,'-2277','50902',65,127);
INSERT INTO "communes" VALUES('16','Touzac','12',447,459,15.65,'-2769','50612',36,151);
INSERT INTO "communes" VALUES('16','Marsac','25',815,720,13.34,'-2509','50824',35,143);
INSERT INTO "communes" VALUES('16','Puymoyen','30',2430,2309,7.26,'-2395','50682',51,149);
INSERT INTO "communes" VALUES('16','Boutiers-Saint-Trojan','13',1388,1381,7.13,'-2928','50792',5,49);
INSERT INTO "communes" VALUES('16','Massignac','20',386,401,23.93,'-1869','50867',214,290);
INSERT INTO "communes" VALUES('16','Châteauneuf-sur-Charente','12',3418,3419,24.02,'-2656','50665',16,99);
INSERT INTO "communes" VALUES('16','Brigueuil','15',1052,1007,47.07,'-1640','51059',190,347);
INSERT INTO "communes" VALUES('16','Torsac','28',770,717,28.55,'-2358','50626',73,175);
INSERT INTO "communes" VALUES('16','Montembœuf','20',682,669,16.05,'-1982','50865',181,342);
INSERT INTO "communes" VALUES('16','Ruffec','24',3545,3627,13.37,'-2375','51143',83,145);
INSERT INTO "communes" VALUES('16','Criteuil-la-Magdeleine','27',428,513,15.19,'-2836','50597',25,89);
INSERT INTO "communes" VALUES('16','Oradour-Fanais','15',380,342,26.41,'-1725','51245',178,239);
INSERT INTO "communes" VALUES('16','Angeduc','06',127,96,3.59,'-2652','50528',54,123);
INSERT INTO "communes" VALUES('16','Rancogne','22',384,330,12.52,'-2148','50774',81,136);
INSERT INTO "communes" VALUES('16','Magnac-Lavalette-Villars','28',442,366,23.75,'-2318','50556',103,223);
INSERT INTO "communes" VALUES('16','Châteaubernard','33',3829,3536,13.31,'-2945','50747',7,53);
INSERT INTO "communes" VALUES('16','Vars','25',1940,1569,27.46,'-2458','50847',35,153);
INSERT INTO "communes" VALUES('16','Trois-Palis','16',813,671,4.22,'-2534','50711',22,92);
INSERT INTO "communes" VALUES('16','Mainzac','19',113,102,11.29,'-2057','50613',119,192);
INSERT INTO "communes" VALUES('16','Ars','33',712,746,11.4,'-3021','50715',5,58);
INSERT INTO "communes" VALUES('16','Genouillac','26',610,575,14.59,'-1962','50948',154,267);
INSERT INTO "communes" VALUES('16','Saint-Laurent-des-Combes','08',97,71,7.67,'-2555','50395',74,174);
INSERT INTO "communes" VALUES('16','Juignac','21',399,439,24.18,'-2414','50420',61,191);
INSERT INTO "communes" VALUES('16','Saint-Groux','18',140,122,4.5,'-2410','50997',52,90);
INSERT INTO "communes" VALUES('16','Nercillac','17',1022,1049,16.35,'-2869','50795',8,34);
INSERT INTO "communes" VALUES('16','Tusson','01',261,317,13.97,'-2520','51038',72,148);
INSERT INTO "communes" VALUES('16','Boisbreteau','08',124,122,15.16,'-2765','50359',79,157);
INSERT INTO "communes" VALUES('16','Anville','23',202,156,8.16,'-2723','50921',93,152);
INSERT INTO "communes" VALUES('16','Saint-Amant-de-Boixe','25',1398,1128,22.39,'-2446','50887',41,139);
INSERT INTO "communes" VALUES('16','Bouëx','32',933,808,15.64,'-2242','50684',71,191);
INSERT INTO "communes" VALUES('16','Saint-Cybardeaux','23',816,741,21,'-2628','50854',74,163);
INSERT INTO "communes" VALUES('16','Combiers','28',120,114,23.96,'-2135','50547',90,215);
INSERT INTO "communes" VALUES('16','Réparsac','17',626,506,11.06,'-2859','50812',10,38);
INSERT INTO "communes" VALUES('16','Saint-Eutrope','21',176,169,2.67,'-2472','50464',114,186);
INSERT INTO "communes" VALUES('16','Saint-Maurice-des-Lions','15',952,931,50.08,'-1816','51072',132,245);
INSERT INTO "communes" VALUES('16','Brillac','15',638,664,42.41,'-1732','51178',143,241);
INSERT INTO "communes" VALUES('16','Coulonges','25',149,113,3.02,'-2495','50926',53,124);
INSERT INTO "communes" VALUES('16','Raix','29',149,150,6.87,'-2471','51112',89,146);
INSERT INTO "communes" VALUES('16','Ansac-sur-Vienne','14',827,852,30.79,'-1877','51103',130,231);
INSERT INTO "communes" VALUES('16','Aigre','01',1076,1135,6.59,'-2584','50994',62,129);
INSERT INTO "communes" VALUES('16','Blanzac-Porcheresse','07',835,836,10.84,'-2561','50529',62,160);
INSERT INTO "communes" VALUES('16','Montigné','23',152,112,8.91,'-2683','50914',78,170);
INSERT INTO "communes" VALUES('16','Médillac','10',153,168,5.84,'-2569','50247',22,107);
INSERT INTO "communes" VALUES('16','Yvrac-et-Malleyrand','22',517,465,18.9,'-2098','50833',109,315);
INSERT INTO "communes" VALUES('16','Cellettes','18',446,417,9.37,'-2432','50960',52,117);
INSERT INTO "communes" VALUES('16','Feuillade','19',303,314,21.83,'-2072','50674',102,201);
INSERT INTO "communes" VALUES('16','Bonnes','04',378,333,14.76,'-2430','50267',32,136);
INSERT INTO "communes" VALUES('16','<NAME>','30',7123,6857,28.82,'-2485','50675',31,137);
INSERT INTO "communes" VALUES('16','Villejésus','01',571,544,17.23,'-2563','50995',60,151);
INSERT INTO "communes" VALUES('16','Graves-Saint-Amant','12',337,338,8.99,'-2701','50716',14,97);
INSERT INTO "communes" VALUES('16','Montignac-le-Coq','04',131,150,10.2,'-2348','50374',62,191);
INSERT INTO "communes" VALUES('16','Saint-Martial','21',140,143,9.31,'-2533','50413',72,181);
INSERT INTO "communes" VALUES('16','Pins','26',446,400,21.06,'-2162','50911',72,137);
INSERT INTO "communes" VALUES('16','Courlac','10',66,59,6.58,'-2494','50334',48,139);
INSERT INTO "communes" VALUES('16','Saint-Bonnet','06',372,337,17.77,'-2705','50531',45,109);
INSERT INTO "communes" VALUES('16','Métairies','17',605,530,5.18,'-2780','50783',17,48);
INSERT INTO "communes" VALUES('16','Louzac-Saint-André','33',1039,992,10.04,'-3053','50793',20,89);
INSERT INTO "communes" VALUES('16','Benest','11',352,382,21.1,'-2094','51154',132,192);
INSERT INTO "communes" VALUES('16','Poursac','24',203,210,11.39,'-2309','51067',70,139);
INSERT INTO "communes" VALUES('16','Lesterps','15',479,594,36.03,'-1729','51123',170,275);
INSERT INTO "communes" VALUES('16','<NAME>êt-de-Tessé','29',211,195,10.7,'-2503','51200',120,158);
INSERT INTO "communes" VALUES('16','Cellefrouin','18',552,510,40.09,'-2162','50990',81,189);
INSERT INTO "communes" VALUES('16','Charras','19',353,294,15.12,'-2134','50603',125,202);
INSERT INTO "communes" VALUES('16','Juillaguet','28',139,98,7.27,'-2360','50531',103,203);
INSERT INTO "communes" VALUES('16','Condéon','05',564,538,31.4,'-2748','50453',63,162);
INSERT INTO "communes" VALUES('16','Touvérac','05',774,577,18.19,'-2832','50423',68,156);
INSERT INTO "communes" VALUES('16','Segonzac','27',2143,2296,35.19,'-2839','50686',19,141);
INSERT INTO "communes" VALUES('16','Chalais','10',1844,2032,17.58,'-2552','50303',35,130);
INSERT INTO "communes" VALUES('16','Saint-Félix','08',118,119,8.08,'-2584','50417',84,175);
INSERT INTO "communes" VALUES('16','Curac','10',123,110,4.92,'-2567','50327',47,127);
INSERT INTO "communes" VALUES('16','Garat','32',1871,1481,19.44,'-2303','50695',52,169);
INSERT INTO "communes" VALUES('16','Chillac','08',208,170,14.61,'-2688','50401',84,183);
INSERT INTO "communes" VALUES('16','Palluaud','21',247,290,8.57,'-2320','50387',57,191);
INSERT INTO "communes" VALUES('16','Adjots','24',492,392,10.94,'-2367','51197',120,168);
INSERT INTO "communes" VALUES('16','Cressac-Saint-Genis','07',148,125,8.78,'-2583','50496',69,173);
INSERT INTO "communes" VALUES('16','<NAME>','11',167,190,16.43,'-2176','51164',133,193);
INSERT INTO "communes" VALUES('16','Bessac','07',114,131,10.55,'-2617','50478',62,162);
INSERT INTO "communes" VALUES('16','Charmé','01',368,407,11.42,'-2466','51058',63,131);
INSERT INTO "communes" VALUES('16','Bardenac','10',253,238,8.04,'-2613','50334',61,160);
INSERT INTO "communes" VALUES('16','Saint-Sulpice-de-Ruffec','24',34,35,2.38,'-2247','51044',92,162);
INSERT INTO "communes" VALUES('16','Saint-Vallier','08',144,166,18.21,'-2664','50327',53,158);
INSERT INTO "communes" VALUES('16','Nieuil','26',920,907,23.9,'-2039','50976',128,218);
INSERT INTO "communes" VALUES('16','Besse','01',148,152,7.67,'-2514','51062',84,131);
INSERT INTO "communes" VALUES('16','Vouzan','32',668,676,16.27,'-2201','50670',107,204);
INSERT INTO "communes" VALUES('16','Champagne-Mouton','11',963,986,22.59,'-2140','51101',115,194);
INSERT INTO "communes" VALUES('16','Sireuil','16',1175,1124,10.01,'-2585','50684',20,87);
INSERT INTO "communes" VALUES('16','Saint-Claud','26',1070,1062,26.75,'-2080','50995',107,222);
INSERT INTO "communes" VALUES('16','Claix','07',936,746,14.87,'-2548','50617',50,148);
INSERT INTO "communes" VALUES('16','Cherves-Châtelars','20',432,443,30.68,'-1988','50901',125,313);
INSERT INTO "communes" VALUES('16','Ventouse','18',123,113,10.15,'-2234','51004',75,162);
INSERT INTO "communes" VALUES('16','Bonneuil','12',269,248,13.58,'-2752','50640',58,154);
INSERT INTO "communes" VALUES('16','Voulgézac','07',266,310,13.42,'-2463','50569',67,192);
INSERT INTO "communes" VALUES('16','Saint-Michel','30',3277,2964,2.46,'-2478','50713',25,62);
INSERT INTO "communes" VALUES('16','Fontenille','18',338,334,9.52,'-2413','51018',55,128);
INSERT INTO "communes" VALUES('16','Saint-Germain-de-Confolens','15',90,98,4.67,'-1836','51170',122,213);
INSERT INTO "communes" VALUES('16','Vaux-Lavalette','28',99,90,6.78,'-2337','50468',72,188);
INSERT INTO "communes" VALUES('16','Saint-Amant-de-Bonnieure','18',338,315,10.67,'-2270','50947',65,129);
INSERT INTO "communes" VALUES('16','Sonneville','23',206,218,10.43,'-2745','50893',68,161);
INSERT INTO "communes" VALUES('16','Moulidars','16',735,558,17.17,'-2638','50735',22,103);
INSERT INTO "communes" VALUES('16','Mosnac','12',470,384,6.33,'-2617','50688',17,67);
INSERT INTO "communes" VALUES('16','Auge-Saint-Médard','23',299,306,17.37,'-2691','50941',69,131);
INSERT INTO "communes" VALUES('16','Chadurie','07',525,484,16.42,'-2443','50551',78,201);
INSERT INTO "communes" VALUES('16','Montboyer','10',402,414,26.79,'-2513','50361',47,171);
INSERT INTO "communes" VALUES('16','Reignac','05',662,582,22.14,'-2799','50469',66,140);
INSERT INTO "communes" VALUES('16','Mérignac','17',718,716,18.51,'-2685','50777',23,101);
INSERT INTO "communes" VALUES('16','Taponnat-Fleurignac','22',1489,1193,21.49,'-2142','50866',85,158);
INSERT INTO "communes" VALUES('16','Saint-Fraigne','01',455,426,32.1,'-2608','51059',66,127);
INSERT INTO "communes" VALUES('16','Mainfonds','07',191,142,9.26,'-2575','50576',65,154);
INSERT INTO "communes" VALUES('16','Douzat','16',433,343,11.48,'-2595','50791',51,115);
INSERT INTO "communes" VALUES('16','<NAME>','22',2997,3226,7.21,'-2167','50823',75,136);
INSERT INTO "communes" VALUES('16','Manot','14',574,577,20.34,'-1888','51048',132,231);
INSERT INTO "communes" VALUES('16','Ladiville','06',118,139,7.19,'-2670','50572',47,123);
INSERT INTO "communes" VALUES('16','Nanteuil-en-Vallée','24',1471,1394,68.85,'-2237','51112',82,218);
INSERT INTO "communes" VALUES('16','Barro','24',366,265,10.65,'-2344','51112',77,164);
INSERT INTO "communes" VALUES('16','Genac','23',723,687,25.84,'-2568','50888',44,157);
INSERT INTO "communes" VALUES('16','Champagne-Vigny','07',230,184,8.31,'-2555','50564',78,160);
INSERT INTO "communes" VALUES('16','Saint-Palais-du-Né','06',282,287,13.6,'-2908','50609',21,86);
INSERT INTO "communes" VALUES('16','Vibrac','12',317,243,2.82,'-2666','50715',15,68);
INSERT INTO "communes" VALUES('16','<NAME>','29',127,119,6.68,'-2515','51168',128,159);
INSERT INTO "communes" VALUES('16','Rougnac','28',441,547,29.88,'-2198','50596',105,221);
INSERT INTO "communes" VALUES('16','Jauldes','22',750,613,25.59,'-2310','50873',82,151);
INSERT INTO "communes" VALUES('16','Maine-de-Boixe','25',467,383,9.35,'-2400','50945',78,121);
INSERT INTO "communes" VALUES('16','<NAME>','20',343,330,17.95,'-1939','50829',224,351);
INSERT INTO "communes" VALUES('16','Châtignac','08',215,185,9.75,'-2605','50386',71,190);
INSERT INTO "communes" VALUES('16','Étriac','07',190,165,9.47,'-2625','50587',57,149);
INSERT INTO "communes" VALUES('16','Tuzie','29',161,120,2.43,'-2421','51084',76,136);
INSERT INTO "communes" VALUES('16','Saint-Georges','24',54,67,2.25,'-2295','51081',76,125);
INSERT INTO "communes" VALUES('16','Laprade','04',230,211,10.17,'-2391','50309',40,132);
INSERT INTO "communes" VALUES('16','Saint-Laurent-de-Belzagot','21',366,351,9.99,'-2465','50434',59,172);
INSERT INTO "communes" VALUES('16','Saint-Christophe','15',315,315,23.65,'-1652','51114',199,340);
INSERT INTO "communes" VALUES('16','Villejoubert','25',332,294,7.82,'-2401','50893',73,146);
INSERT INTO "communes" VALUES('16','Roussines','20',285,300,16.08,'-1907','50804',147,281);
INSERT INTO "communes" VALUES('16','Taizé-Aizie','24',586,564,14.81,'-2329','51181',83,163);
INSERT INTO "communes" VALUES('16','Cherves-Richemont','13',2399,2445,37.94,'-2988','50826',5,73);
INSERT INTO "communes" VALUES('16','Agris','22',828,711,18.74,'-2224','50861',70,134);
INSERT INTO "communes" VALUES('16','Empuré','29',126,108,8.37,'-2539','51136',84,156);
INSERT INTO "communes" VALUES('16','Blanzaguet-Saint-Cybard','28',259,216,11.95,'-2240','50522',82,162);
INSERT INTO "communes" VALUES('16','Juillé','18',185,181,8.6,'-2436','51033',56,116);
INSERT INTO "communes" VALUES('16','Villognon','18',370,389,9.17,'-2486','50958',50,107);
INSERT INTO "communes" VALUES('16','Birac','12',333,214,11.84,'-2666','50622',49,131);
INSERT INTO "communes" VALUES('16','Verdille','01',350,357,14.48,'-2713','50980',75,139);
INSERT INTO "communes" VALUES('16','Ambleville','27',187,214,5.09,'-2843','50620',34,94);
INSERT INTO "communes" VALUES('16','Saint-Angeau','18',713,648,10.94,'-2277','50943',62,109);
INSERT INTO "communes" VALUES('16','Pranzac','22',941,792,15.06,'-2206','50745',80,131);
INSERT INTO "communes" VALUES('16','Mainxe','27',694,519,10.1,'-2806','50713',9,58);
INSERT INTO "communes" VALUES('16','Barret','06',905,867,22.37,'-2824','50544',34,127);
INSERT INTO "communes" VALUES('16','<NAME>','11',136,134,9.65,'-2102','51073',141,196);
INSERT INTO "communes" VALUES('16','Guizengeard','08',152,155,14.76,'-2711','50348',64,157);
INSERT INTO "communes" VALUES('16','Xambes','25',295,320,5.25,'-2480','50918',65,133);
INSERT INTO "communes" VALUES('16','Moutonneau','18',102,123,4.22,'-2332','51008',61,119);
INSERT INTO "communes" VALUES('16','Aubeville','07',150,142,8.22,'-2601','50554',51,153);
INSERT INTO "communes" VALUES('16','Magnac-sur-Touvre','31',3054,2829,7.82,'-2332','50740',42,156);
INSERT INTO "communes" VALUES('16','<NAME>','18',104,95,7.3,'-2201','50964',88,183);
INSERT INTO "communes" VALUES('16','Oriolles','08',265,219,18.3,'-2737','50401',84,162);
INSERT INTO "communes" VALUES('16','Orival','10',155,155,5.43,'-2517','50308',45,154);
INSERT INTO "communes" VALUES('16','Chassenon','09',879,903,23.48,'-1746','50947',150,262);
INSERT INTO "communes" VALUES('16','Saint-Genis-d''Hiersac','16',883,806,19.08,'-2564','50833',41,147);
INSERT INTO "communes" VALUES('16','Vieux-Ruffec','24',116,98,12.75,'-2165','51122',120,218);
INSERT INTO "communes" VALUES('16','Lussac','26',278,291,11.7,'-2081','50957',129,182);
INSERT INTO "communes" VALUES('16','Foussignac','17',606,553,15.14,'-2734','50793',24,114);
INSERT INTO "communes" VALUES('16','Challignac','06',299,313,13.21,'-2687','50461',57,133);
INSERT INTO "communes" VALUES('16','Sigogne','17',983,896,22.16,'-2772','50819',20,91);
INSERT INTO "communes" VALUES('16','Mouton','18',234,223,9.08,'-2326','50991',57,109);
INSERT INTO "communes" VALUES('16','Dirac','32',1536,1328,29.29,'-2320','50672',65,183);
INSERT INTO "communes" VALUES('16','Brie','22',4002,2987,34.05,'-2328','50820',67,167);
INSERT INTO "communes" VALUES('16','Verneuil','20',96,85,7.7,'-1825','50868',217,298);
INSERT INTO "communes" VALUES('16','Orgedeuil','19',230,207,10.39,'-2049','50768',113,322);
INSERT INTO "communes" VALUES('16','Saint-Yrieix-sur-Charente','35',7025,6369,14.65,'-2454','50750',27,103);
INSERT INTO "communes" VALUES('16','Saint-Simon','12',204,239,3.77,'-2681','50722',15,53);
INSERT INTO "communes" VALUES('16','Chenon','18',151,149,10.48,'-2332','51047',70,118);
INSERT INTO "communes" VALUES('16','Jarnac','17',4434,4665,11.99,'-2791','50757',8,40);
INSERT INTO "communes" VALUES('16','Sainte-Souline','08',121,113,7.32,'-2614','50422',98,186);
INSERT INTO "communes" VALUES('16','Mesnac','13',409,332,6.51,'-2977','50863',10,25);
INSERT INTO "communes" VALUES('16','<NAME>','09',501,514,8.52,'-1910','50975',158,251);
INSERT INTO "communes" VALUES('16','Verrières','27',362,401,13.37,'-2893','50635',21,98);
INSERT INTO "communes" VALUES('16','Brie-sous-Chalais','10',163,159,10.34,'-2589','50350',54,158);
INSERT INTO "communes" VALUES('16','Saint-Léger','07',119,136,4.21,'-2546','50511',76,179);
INSERT INTO "communes" VALUES('16','Souvigné','29',241,232,10.37,'-2532','51079',80,129);
INSERT INTO "communes" VALUES('16','Bassac','17',572,461,7.62,'-2715','50737',12,38);
INSERT INTO "communes" VALUES('16','Charmant','28',316,327,17.15,'-2392','50551',89,203);
INSERT INTO "communes" VALUES('16','Rouillac','23',1833,1761,29.28,'-2666','50862',89,186);
INSERT INTO "communes" VALUES('16','Valence','18',231,241,10.87,'-2255','50989',72,143);
INSERT INTO "communes" VALUES('16','Grassac','19',296,274,28.23,'-2149','50651',107,225);
INSERT INTO "communes" VALUES('16','Juillac-le-Coq','27',668,654,14.54,'-2886','50655',26,131);
INSERT INTO "communes" VALUES('16','Sainte-Sévère','17',531,550,18.31,'-2861','50836',11,31);
INSERT INTO "communes" VALUES('16','Brie-sous-Barbezieux','06',117,124,6.5,'-2640','50468',67,162);
INSERT INTO "communes" VALUES('16','Plaizac','23',151,156,3.98,'-2733','50839',62,123);
INSERT INTO "communes" VALUES('16','Chasseneuil-sur-Bonnieure','26',2986,2785,33.34,'-2096','50916',91,174);
INSERT INTO "communes" VALUES('16','Anais','25',584,467,9.87,'-2364','50860',60,139);
INSERT INTO "communes" VALUES('16','Fléac','30',3629,2907,12.6,'-2492','50739',25,112);
INSERT INTO "communes" VALUES('16','<NAME>','26',156,149,8.4,'-2102','51045',124,191);
INSERT INTO "communes" VALUES('16','Montignac-Charente','25',715,701,8.63,'-2458','50870',39,90);
INSERT INTO "communes" VALUES('16','Chavenat','28',224,179,9.83,'-2408','50507',90,192);
INSERT INTO "communes" VALUES('16','Parzac','26',131,127,11.38,'-2133','51037',105,182);
INSERT INTO "communes" VALUES('16','Gurat','28',190,184,16.03,'-2296','50477',72,197);
INSERT INTO "communes" VALUES('16','Tourriers','25',749,588,6.77,'-2383','50886',89,141);
INSERT INTO "communes" VALUES('16','Guimps','06',472,493,12.6,'-2870','50515',49,108);
INSERT INTO "communes" VALUES('16','Saint-Sulpice-de-Cognac','13',1270,1199,23.82,'-3021','50844',10,104);
INSERT INTO "communes" VALUES('16','Chabrac','09',555,464,22.4,'-1775','51036',168,273);
INSERT INTO "communes" VALUES('16','Rivières','22',1833,1737,21.54,'-2194','50837',65,156);
INSERT INTO "communes" VALUES('16','Saint-Laurent-de-Céris','26',778,746,29.89,'-2062','51046',127,209);
INSERT INTO "communes" VALUES('16','Pressignac','09',413,449,28.15,'-1771','50918',163,282);
INSERT INTO "communes" VALUES('16','Malaville','12',420,391,12.82,'-2704','50620',42,150);
INSERT INTO "communes" VALUES('16','Yviers','10',516,469,22.56,'-2601','50306',48,147);
INSERT INTO "communes" VALUES('16','Salles-d''Angles','27',1081,1127,21.8,'-2966','50687',11,87);
INSERT INTO "communes" VALUES('16','Courbillac','23',655,502,11.83,'-2797','50853',25,70);
INSERT INTO "communes" VALUES('16','Marillac-le-Franc','22',767,617,14.49,'-2119','50817',84,203);
INSERT INTO "communes" VALUES('16','Sauvignac','08',98,96,11.62,'-2687','50285',49,131);
INSERT INTO "communes" VALUES('16','Lamérac','05',196,216,9.21,'-2844','50483',60,114);
INSERT INTO "communes" VALUES('16','Mouzon','20',133,149,10.62,'-1913','50895',220,316);
INSERT INTO "communes" VALUES('16','Vouthon','19',363,327,10.38,'-2084','50744',93,172);
INSERT INTO "communes" VALUES('16','Merpins','33',1007,938,10.46,'-2993','50750',2,33);
INSERT INTO "communes" VALUES('16','Abzac','15',496,539,33.35,'-1814','51226',122,232);
INSERT INTO "communes" VALUES('16','Saint-Adjutory','20',414,349,14.04,'-2069','50850',119,293);
INSERT INTO "communes" VALUES('16','Saint-Avit','10',189,180,3.66,'-2535','50274',33,128);
INSERT INTO "communes" VALUES('16','Gond-Pontouvre','35',5937,5971,7.45,'-2412','50743',27,94);
INSERT INTO "communes" VALUES('16','Houlette','17',390,388,7.15,'-2832','50845',18,41);
INSERT INTO "communes" VALUES('16','Sauvagnac','20',77,64,7.24,'-1876','50832',229,282);
INSERT INTO "communes" VALUES('16','Champmillon','16',525,490,9.51,'-2596','50710',21,97);
INSERT INTO "communes" VALUES('16','Villiers-le-Roux','29',122,140,4.84,'-2478','51165',115,139);
INSERT INTO "communes" VALUES('16','Esse','15',489,497,30.37,'-1795','51147',124,242);
INSERT INTO "communes" VALUES('16','Bernac','29',477,419,8.46,'-2402','51162',94,152);
INSERT INTO "communes" VALUES('16','Hiersac','16',1086,1006,7.36,'-2591','50743',43,121);
INSERT INTO "communes" VALUES('16','Oradour','01',200,201,14.4,'-2631','51008',65,120);
INSERT INTO "communes" VALUES('16','Suaux','26',377,356,11.93,'-2034','50946',120,212);
INSERT INTO "communes" VALUES('16','Fleurac','17',234,232,2.17,'-2689','50801',49,92);
INSERT INTO "communes" VALUES('16','Julienne','17',447,395,6.3,'-2852','50774',8,51);
INSERT INTO "communes" VALUES('16','Montmoreau-Saint-Cybard','21',1059,1052,12,'-2451','50443',71,182);
INSERT INTO "communes" VALUES('16','Villefagnan','29',1049,1022,23.65,'-2508','51126',88,158);
INSERT INTO "communes" VALUES('16','Saint-Séverin','04',817,728,14.93,'-2314','50348',45,134);
INSERT INTO "communes" VALUES('16','Aubeterre-sur-Dronne','04',418,366,2.39,'-2407','50302',38,112);
INSERT INTO "communes" VALUES('16','Vaux-Rouillac','23',298,297,13.37,'-2698','50826',58,169);
INSERT INTO "communes" VALUES('16','Saulgond','09',523,459,27.36,'-1725','51056',172,284);
INSERT INTO "communes" VALUES('16','Saint-Romain','04',541,512,22.69,'-2432','50307',54,168);
INSERT INTO "communes" VALUES('16','Hiesse','14',244,277,24.75,'-1939','51174',157,231);
INSERT INTO "communes" VALUES('16','Bréville','13',519,512,15.39,'-2887','50885',15,31);
INSERT INTO "communes" VALUES('16','Saint-Sornin','19',846,715,11.27,'-2112','50771',89,242);
INSERT INTO "communes" VALUES('16','Bioussac','24',228,227,15.64,'-2291','51146',82,164);
INSERT INTO "communes" VALUES('16','Bayers','18',134,129,3.59,'-2341','51024',67,123);
INSERT INTO "communes" VALUES('16','Couture','24',168,158,10.61,'-2279','51033',79,135);
INSERT INTO "communes" VALUES('16','<NAME>','22',556,442,10.99,'-2247','50890',66,115);
INSERT INTO "communes" VALUES('16','Longré','29',216,219,14.73,'-2610','51113',73,131);
INSERT INTO "communes" VALUES('16','Ambernac','14',411,422,30.05,'-1994','51089',147,232);
INSERT INTO "communes" VALUES('16','Péreuil','07',396,393,17.18,'-2621','50535',47,153);
INSERT INTO "communes" VALUES('16','Mouthiers-sur-Boëme','07',2473,2261,34.71,'-2459','50617',59,153);
INSERT INTO "communes" VALUES('16','Saint-Coutant','11',217,223,19.4,'-2086','51106',133,197);
INSERT INTO "communes" VALUES('16','Saint-Fort-sur-le-Né','27',414,386,6.8,'-2935','50641',16,65);
INSERT INTO "communes" VALUES('16','Lagarde-sur-le-Né','06',187,174,4.12,'-2823','50568',30,68);
INSERT INTO "communes" VALUES('16','Courgeac','21',212,175,18.42,'-2502','50438',72,177);
INSERT INTO "communes" VALUES('16','Ruelle-sur-Touvre','31',7370,7230,10.66,'-2351','50753',32,170);
INSERT INTO "communes" VALUES('16','Angeac-Champagne','27',507,479,14.27,'-2927','50675',17,83);
INSERT INTO "communes" VALUES('16','Écuras','19',624,557,24.22,'-1966','50760',111,280);
INSERT INTO "communes" VALUES('16','Saint-Médard','06',297,271,8.24,'-2749','50568',36,83);
INSERT INTO "communes" VALUES('16','Marthon','19',603,552,12.82,'-2102','50680',91,195);
INSERT INTO "communes" VALUES('16','Édon','28',260,224,16.49,'-2203','50543',85,227);
INSERT INTO "communes" VALUES('16','Alloue','11',535,528,46.54,'-2024','51140',136,231);
INSERT INTO "communes" VALUES('16','Angeac-Charente','12',369,399,10.81,'-2679','50701',15,100);
INSERT INTO "communes" VALUES('16','Lignières-Sonneville','27',617,614,16.36,'-2799','50621',40,143);
INSERT INTO "communes" VALUES('16','Sers','28',783,672,14.17,'-2238','50664',82,220);
INSERT INTO "communes" VALUES('16','Chenommet','18',154,128,4.43,'-2324','51041',69,117);
INSERT INTO "communes" VALUES('16','Saint-Saturnin','16',1319,1159,13.38,'-2546','50734',32,114);
INSERT INTO "communes" VALUES('16','Saint-Simeux','12',566,452,9.4,'-2625','50697',16,99);
INSERT INTO "communes" VALUES('16','Échallat','16',491,421,15.14,'-2641','50804',50,149);
INSERT INTO "communes" VALUES('16','Brossac','08',530,525,21.84,'-2646','50368',75,184);
INSERT INTO "communes" VALUES('16','Saint-Preuil','27',302,289,12.39,'-2787','50663',40,146);
INSERT INTO "communes" VALUES('16','Ronsenac','28',576,548,26.73,'-2318','50529',80,204);
INSERT INTO "communes" VALUES('16','Saint-Projet-Saint-Constant','22',1147,920,16.94,'-2195','50821',75,153);
INSERT INTO "communes" VALUES('16','Poullignac','21',80,77,8.94,'-2619','50444',80,167);
INSERT INTO "communes" VALUES('16','Gondeville','27',523,518,5.46,'-2763','50746',11,40);
INSERT INTO "communes" VALUES('16','Lonnes','18',163,168,7.51,'-2412','51044',94,131);
INSERT INTO "communes" VALUES('16','Saint-Martin-du-Clocher','29',132,139,6.66,'-2424','51180',102,153);
INSERT INTO "communes" VALUES('16','Touvre','31',1114,1024,9.06,'-2308','50735',42,161);
INSERT INTO "communes" VALUES('16','Barbezieux-Saint-Hilaire','06',4768,4819,26.55,'-2769','50525',32,131);
INSERT INTO "communes" VALUES('16','Vilhonneur','22',355,276,9.36,'-2129','50757',87,137);
INSERT INTO "communes" VALUES('16','Souffrignac','19',145,157,9.37,'-2036','50658',106,178);
INSERT INTO "communes" VALUES('16','Theil-Rabier','29',161,167,7.43,'-2555','51166',109,162);
INSERT INTO "communes" VALUES('16','Gours','01',125,145,11.42,'-2671','51069',77,119);
INSERT INTO "communes" VALUES('16','Bignac','23',233,198,7.77,'-2531','50872',42,143);
INSERT INTO "communes" VALUES('16','Lichères','18',87,94,4.94,'-2348','50996',60,117);
INSERT INTO "communes" VALUES('16','Aussac-Vadalle','25',449,386,17.61,'-2351','50907',84,162);
INSERT INTO "communes" VALUES('16','Saint-Mary','26',373,365,21.86,'-2164','50925',75,183);
INSERT INTO "communes" VALUES('16','Gimeux','33',745,713,7.4,'-3007','50706',6,61);
INSERT INTO "communes" VALUES('16','<NAME>','29',617,572,13.44,'-2433','51134',104,149);
INSERT INTO "communes" VALUES('16','Courcôme','29',432,421,19.44,'-2450','51095',77,151);
INSERT INTO "communes" VALUES('16','Saint-Quentin-de-Chalais','10',283,250,12.38,'-2521','50287',27,146);
INSERT INTO "communes" VALUES('16','Chaise','06',299,290,9.43,'-2862','50588',27,68);
INSERT INTO "communes" VALUES('16','Bellon','04',166,152,9.13,'-2463','50337',53,124);
INSERT INTO "communes" VALUES('16','Cognac','97',18557,19525,15.5,'-2962','50773',5,53);
INSERT INTO "communes" VALUES('16','Lupsault','01',123,132,11.47,'-2679','51047',75,139);
INSERT INTO "communes" VALUES('16','Villebois-Lavalette','28',733,730,7.2,'-2285','50537',103,198);
INSERT INTO "communes" VALUES('16','Pillac','04',256,270,19.64,'-2383','50360',53,165);
INSERT INTO "communes" VALUES('16','Bors (<NAME>-Sainte-Radegonde)','05',133,148,12.28,'-2812','50364',68,144);
INSERT INTO "communes" VALUES('16','Paizay-Naudouin-Embourie','29',415,423,25.42,'-2600','51145',78,155);
INSERT INTO "communes" VALUES('16','Chassiecq','11',166,168,13.06,'-2175','51060',100,175);
INSERT INTO "communes" VALUES('16','Villegats','24',231,264,7.71,'-2382','51102',91,161);
INSERT INTO "communes" VALUES('16','Chazelles','22',1500,1390,25.8,'-2188','50720',84,146);
INSERT INTO "communes" VALUES('16','Étagnac','09',975,982,29.23,'-1731','50994',150,284);
INSERT INTO "communes" VALUES('16','Plassac-Rouffiac','07',370,321,11.97,'-2524','50585',98,190);
INSERT INTO "communes" VALUES('16','Montjean','29',256,262,8.01,'-2463','51208',113,149);
INSERT INTO "communes" VALUES('16','Passirac','08',246,227,14.67,'-2667','50384',74,174);
INSERT INTO "communes" VALUES('16','Balzac','35',1303,1237,9.64,'-2444','50789',30,102);
INSERT INTO "communes" VALUES('16','Gourville','23',639,589,12.92,'-2613','50923',55,155);
INSERT INTO "communes" VALUES('16','Londigny','29',256,219,9.67,'-2444','51203',108,160);
INSERT INTO "communes" VALUES('16','Saint-Brice','13',1030,970,9.3,'-2904','50765',5,55);
INSERT INTO "communes" VALUES('16','Bécheresse','07',281,207,8.38,'-2503','50555',95,183);
INSERT INTO "communes" VALUES('16','Rouzède','19',243,267,14.33,'-1980','50787',148,351);
INSERT INTO "communes" VALUES('16','Genté','27',897,830,11.59,'-2945','50697',18,98);
INSERT INTO "communes" VALUES('16','Nanclars','25',201,200,5.73,'-2352','50938',65,119);
INSERT INTO "communes" VALUES('16','Salles-Lavalette','21',365,360,20.15,'-2336','50426',65,191);
INSERT INTO "communes" VALUES('16','Salles-de-Barbezieux','06',454,408,9.85,'-2741','50501',48,99);
INSERT INTO "communes" VALUES('16','Ébréon','01',156,174,10.05,'-2562','51042',69,118);
INSERT INTO "communes" VALUES('16','Mareuil','23',406,351,11.51,'-2753','50859',53,125);
INSERT INTO "communes" VALUES('16','Montchaude','06',522,515,14.18,'-2819','50497',61,147);
INSERT INTO "communes" VALUES('16','Roullet-Saint-Estèphe','30',3939,3480,41.5,'-2544','50648',22,139);
INSERT INTO "communes" VALUES('16','Chirac','09',739,733,34.33,'-1868','51015',133,263);
INSERT INTO "communes" VALUES('16','Bouteville','12',334,346,12.07,'-2748','50666',34,152);
INSERT INTO "communes" VALUES('16','Épenède','14',216,208,15.62,'-1999','51182',144,194);
INSERT INTO "communes" VALUES('16','Triac-Lautrait','17',455,398,6.4,'-2736','50766',12,49);
INSERT INTO "communes" VALUES('16','Asnières-sur-Nouère','16',1167,1013,21.17,'-2543','50790',36,135);
INSERT INTO "communes" VALUES('16','Berneuil','06',329,315,16.55,'-2677','50437',74,166);
INSERT INTO "communes" VALUES('16','<NAME>','29',139,155,4.61,'-2442','51163',109,134);
INSERT INTO "communes" VALUES('16','Rouffiac','04',115,114,9.89,'-2505','50298',45,170);
INSERT INTO "communes" VALUES('16','Vindelle','16',996,868,10.93,'-2461','50800',31,125);
INSERT INTO "communes" VALUES('16','Montrollet','15',301,269,22.22,'-1600','51092',225,366);
INSERT INTO "communes" VALUES('16','Mons','23',262,232,20.11,'-2612','50965',54,141);
INSERT INTO "communes" VALUES('16','Bunzac','22',474,309,13.32,'-2205','50779',77,131);
INSERT INTO "communes" VALUES('16','Vouharte','25',328,330,10.64,'-2513','50906',42,137);
INSERT INTO "communes" VALUES('16','Lessac','14',594,531,34.14,'-1845','51187',122,232);
INSERT INTO "communes" VALUES('16','Angoulême','98',41613,43137,21.85,'-2419','50722',25,130);
INSERT INTO "communes" VALUES('16','Baignes-Sainte-Radegonde','05',1326,1239,31.22,'-2859','50427',51,148);
INSERT INTO "communes" VALUES('16','Viville','12',130,143,2.93,'-2730','50579',37,95);
INSERT INTO "communes" VALUES('16','<NAME>','05',359,314,6.13,'-2825','50439',73,143);
INSERT INTO "communes" VALUES('16','Montbron','19',2158,2242,43.34,'-2040','50741',95,284);
INSERT INTO "communes" VALUES('16','Gensac-la-Pallue','27',1599,1611,19.23,'-2877','50723',7,50);
INSERT INTO "communes" VALUES('16','Chassors','17',1153,1062,13.21,'-2822','50790',13,62);
INSERT INTO "communes" VALUES('16','Rioux-Martin','10',234,218,14.6,'-2594','50274',32,131);
INSERT INTO "communes" VALUES('16','Vervant','25',141,142,9.56,'-2459','50925',65,119);
INSERT INTO "communes" VALUES('16','Gardes-le-Pontaroux','28',261,248,13.3,'-2258','50577',101,220);
INSERT INTO "communes" VALUES('16','Confolens','99',2711,2856,18.96,'-1849','51126',127,222);
INSERT INTO "communes" VALUES('16','Aignes-et-Puypéroux','21',261,270,12.99,'-2436','50501',84,201);
INSERT INTO "communes" VALUES('16','Beaulieu-sur-Sonnette','26',276,269,10.29,'-2170','51027',86,163);
INSERT INTO "communes" VALUES('16','Ranville-Breuillaud','01',182,177,12.84,'-2727','51003',84,144);
INSERT INTO "communes" VALUES('16','Lésignac-Durand','20',177,185,19.74,'-1888','50902',193,296);
INSERT INTO "communes" VALUES('16','Saint-Gourson','24',142,137,10.09,'-2238','51057',89,161);
INSERT INTO "communes" VALUES('16','Éraville','12',209,177,5.47,'-2698','50641',33,108);
INSERT INTO "communes" VALUES('16','Champniers','35',5168,4605,45.29,'-2368','50794',31,163);
INSERT INTO "communes" VALUES('16','Pleuville','14',395,364,33.63,'-2045','51212',130,187);
INSERT INTO "communes" VALUES('16','L''Isle-d''Espagnac','31',5284,4920,5.95,'-2374','50735',38,120);
INSERT INTO "communes" VALUES('16','Bazac','10',158,153,4.92,'-2541','50257',25,121);
INSERT INTO "communes" VALUES('16','Bonneville','23',156,156,10.08,'-2650','50943',59,133);
INSERT INTO "communes" VALUES('16','Mazerolles','20',371,312,17.45,'-2003','50831',207,353);
INSERT INTO "communes" VALUES('16','Mornac','31',2227,1863,23.48,'-2294','50756',61,178);
INSERT INTO "communes" VALUES('16','Mazières','26',100,93,5.87,'-1962','50929',145,236);
INSERT INTO "communes" VALUES('16','Brettes','29',196,187,12.21,'-2550','51117',75,126);
INSERT INTO "communes" VALUES('16','Saint-Quentin-sur-Charente','09',214,232,14.39,'-1851','50931',169,263);
INSERT INTO "communes" VALUES('16','Fouqueure','01',440,428,16.43,'-2515','50982',50,123);
INSERT INTO "communes" VALUES('16','Suris','09',287,272,11.08,'-1888','50944',182,265);
INSERT INTO "communes" VALUES('16','Chabanais','09',1877,1941,15.01,'-1796','50971',148,250);
INSERT INTO "communes" VALUES('16','Chantillac','05',289,277,18.05,'-2880','50358',65,151);
INSERT INTO "communes" VALUES('16','Turgon','11',90,85,7.26,'-2152','51055',134,183);
INSERT INTO "communes" VALUES('16','Bors (Canton de Montmoreau-Saint-Cybard)','21',245,270,16.14,'-2410','50383',56,165);
INSERT INTO "communes" VALUES('16','Ligné','01',173,158,7.97,'-2476','51025',52,119);
INSERT INTO "communes" VALUES('16','Dignac','28',1312,1281,27.66,'-2285','50618',105,224);
INSERT INTO "communes" VALUES('16','Saint-Germain-de-Montbron','19',489,434,14.91,'-2130','50692',93,182);
INSERT INTO "communes" VALUES('16','Nonaville','12',200,149,6.9,'-2700','50585',40,146);
INSERT INTO "communes" VALUES('16','Sainte-Colombe','18',178,186,6.5,'-2242','50926',75,129);
INSERT INTO "communes" VALUES('16','Nersac','30',2398,2382,9.24,'-2540','50696',21,74);
INSERT INTO "communes" VALUES('16','Aunac','18',370,298,4.77,'-2328','51020',64,104);
INSERT INTO "communes" VALUES('16','Fouquebrune','28',660,634,28.85,'-2362','50587',87,207);
INSERT INTO "communes" VALUES('16','Jurignac','07',526,501,16,'-2638','50593',50,141);
INSERT INTO "communes" VALUES('16','Nonac','21',306,316,20.84,'-2533','50467',73,178);
INSERT INTO "communes" VALUES('16','Condac','24',468,470,9.59,'-2343','51138',77,141);
INSERT INTO "communes" VALUES('16','Saint-Aulais-la-Chapelle','06',226,233,14.84,'-2651','50498',60,128);
INSERT INTO "communes" VALUES('17','Saint-Pierre-d''Oléron','31',6687,5952,40.55,'-4047','51049',0,15);
INSERT INTO "communes" VALUES('17','Saint-Sever-de-Saintonge','20',625,588,8.13,'-3161','50771',2,51);
INSERT INTO "communes" VALUES('17','Romazières','04',72,80,8.7,'-2790','51103',104,144);
INSERT INTO "communes" VALUES('17','Nancras','36',678,418,3.06,'-3575','50828',22,39);
INSERT INTO "communes" VALUES('17','Trizay','32',1342,1118,14.13,'-3592','50981',0,25);
INSERT INTO "communes" VALUES('17','Saint-Ouen','15',131,145,7.01,'-2777','50968',72,138);
INSERT INTO "communes" VALUES('17','Breuillet','43',2634,2182,19.99,'-3765','50770',0,34);
INSERT INTO "communes" VALUES('17','Gourvillette','15',106,104,8.01,'-2843','50989',65,119);
INSERT INTO "communes" VALUES('17','Saint-Germain-de-Vibrac','02',203,196,7.17,'-2956','50473',47,99);
INSERT INTO "communes" VALUES('17','<NAME>','12',284,272,8.41,'-3139','51143',34,89);
INSERT INTO "communes" VALUES('17','Chermignac','35',1261,1014,13.43,'-3342','50759',25,68);
INSERT INTO "communes" VALUES('17','Préguillac','35',436,324,6.6,'-3281','50745',7,69);
INSERT INTO "communes" VALUES('17','Courcoury','51',713,567,12.66,'-3240','50791',2,30);
INSERT INTO "communes" VALUES('17','<NAME>','07',1078,742,20.79,'-3493','51444',1,12);
INSERT INTO "communes" VALUES('17','Saint-Bris-des-Bois','05',406,392,9.06,'-3140','50852',31,95);
INSERT INTO "communes" VALUES('17','Saint-Sauvant','05',512,512,7.05,'-3156','50821',8,79);
INSERT INTO "communes" VALUES('17','Saint-Mandé-sur-Brédoire','04',307,340,23.21,'-2933','51138',65,166);
INSERT INTO "communes" VALUES('17','Clam','27',379,283,6.83,'-3095','50549',23,71);
INSERT INTO "communes" VALUES('17','Soubise','26',2909,1243,10.93,'-3717','51028',0,22);
INSERT INTO "communes" VALUES('17','Clavette','10',1184,711,6.29,'-3738','51266',14,44);
INSERT INTO "communes" VALUES('17','Cercoux','18',1191,1063,41.88,'-2825','50143',18,111);
INSERT INTO "communes" VALUES('17','Surgères','37',6508,6051,28.71,'-3431','51231',14,76);
INSERT INTO "communes" VALUES('17','Tugéras-Saint-Maurice','17',360,291,13.77,'-3049','50400',47,108);
INSERT INTO "communes" VALUES('17','Périgny','49',7284,6002,10.78,'-3814','51281',2,36);
INSERT INTO "communes" VALUES('17','Médis','36',2739,2161,23.46,'-3669','50714',0,39);
INSERT INTO "communes" VALUES('17','Guitinières','11',419,371,9.18,'-3163','50490',27,66);
INSERT INTO "communes" VALUES('17','Bouhet','01',871,410,15.2,'-3550','51295',6,36);
INSERT INTO "communes" VALUES('17','Saint-Médard','11',81,69,3.81,'-2991','50443',38,91);
INSERT INTO "communes" VALUES('17','Ciré-d''Aunis','01',1176,804,25.76,'-3631','51172',0,40);
INSERT INTO "communes" VALUES('17','Puyrolland','38',195,193,12.98,'-3295','51155',2,55);
INSERT INTO "communes" VALUES('17','Ardillières','01',792,555,15.7,'-3588','51176',0,31);
INSERT INTO "communes" VALUES('17','Néré','04',753,742,29.97,'-2858','51083',69,166);
INSERT INTO "communes" VALUES('17','Éduts','04',66,64,8.05,'-2837','51102',105,156);
INSERT INTO "communes" VALUES('17','Ars-en-Ré','03',1330,1287,10.95,'-4280','51342',0,15);
INSERT INTO "communes" VALUES('17','Arthenac','02',328,312,12.66,'-2945','50572',43,111);
INSERT INTO "communes" VALUES('17','Saint-Martial','12',124,120,4.07,'-3094','51169',27,61);
INSERT INTO "communes" VALUES('17','Étaules','40',2358,1595,11.55,'-3816','50814',0,28);
INSERT INTO "communes" VALUES('17','Authon-Ébéon','28',390,407,11.65,'-3050','50929',16,36);
INSERT INTO "communes" VALUES('17','Chatenet','19',233,188,9.64,'-2920','50331',61,123);
INSERT INTO "communes" VALUES('17','Forges','01',1197,903,13.58,'-3591','51228',12,33);
INSERT INTO "communes" VALUES('17','Saintes','99',26011,25628,45.55,'-3301','50828',2,81);
INSERT INTO "communes" VALUES('17','Clion','27',803,723,15.84,'-3153','50533',20,43);
INSERT INTO "communes" VALUES('17','Varaize','29',579,563,20.48,'-3065','51025',18,83);
INSERT INTO "communes" VALUES('17','Ballans','15',207,217,6.94,'-2842','50904',24,82);
INSERT INTO "communes" VALUES('17','Saint-Xandre','44',4488,4120,13.29,'-3821','51339',1,37);
INSERT INTO "communes" VALUES('17','Vérines','10',1987,1375,13.35,'-3670','51327',4,39);
INSERT INTO "communes" VALUES('17','Sablonceaux','36',1251,1025,22.09,'-3581','50798',3,40);
INSERT INTO "communes" VALUES('17','Portes-en-Ré','03',651,661,8.51,'-4261','51389',0,15);
INSERT INTO "communes" VALUES('17','Pons','20',4333,4433,27.63,'-3205','50645',8,63);
INSERT INTO "communes" VALUES('17','Saint-Aigulin','18',1919,1989,28.36,'-2607','50174',15,116);
INSERT INTO "communes" VALUES('17','Saint-Vivien','10',1101,849,8.27,'-3767','51199',1,21);
INSERT INTO "communes" VALUES('17','Sainte-Radegonde','32',541,382,11.14,'-3568','50941',2,35);
INSERT INTO "communes" VALUES('17','Luchat','36',434,236,4.67,'-3444','50798',22,43);
INSERT INTO "communes" VALUES('17','Barzan','08',455,428,8.07,'-3547','50584',0,47);
INSERT INTO "communes" VALUES('17','Saint-Froult','26',361,235,6.39,'-3774','51020',0,10);
INSERT INTO "communes" VALUES('17','Rioux','09',924,771,18.98,'-3385','50707',24,56);
INSERT INTO "communes" VALUES('17','Saint-Julien-de-l''Escap','29',859,767,8.68,'-3140','51037',12,66);
INSERT INTO "communes" VALUES('17','Marans','13',4623,4378,82.49,'-3699','51454',0,13);
INSERT INTO "communes" VALUES('17','Essards','32',615,485,9.66,'-3439','50880',23,62);
INSERT INTO "communes" VALUES('17','Floirac','08',322,292,12.86,'-3428','50529',1,68);
INSERT INTO "communes" VALUES('17','L''Houmeau','50',2267,2278,4.22,'-3915','51326',0,29);
INSERT INTO "communes" VALUES('17','Cramchaban','07',611,514,16.06,'-3398','51355',1,33);
INSERT INTO "communes" VALUES('17','Geay','32',680,570,15.9,'-3446','50968',1,30);
INSERT INTO "communes" VALUES('17','Saint-Mard','37',1066,868,21.21,'-3385','51207',24,75);
INSERT INTO "communes" VALUES('17','Bignay','29',424,321,8.73,'-3264','51018',14,86);
INSERT INTO "communes" VALUES('17','Saint-Pierre-de-l''Isle','12',275,262,6.43,'-3090','51145',23,52);
INSERT INTO "communes" VALUES('17','Fontaine-Chalendray','04',230,284,18.86,'-2799','51053',69,154);
INSERT INTO "communes" VALUES('17','Gonds','51',1511,1241,12.96,'-3281','50795',2,20);
INSERT INTO "communes" VALUES('17','Soubran','16',391,365,13.25,'-3167','50393',38,108);
INSERT INTO "communes" VALUES('17','Saint-Sulpice-de-Royan','43',2798,2292,20.81,'-3720','50746',1,37);
INSERT INTO "communes" VALUES('17','Allas-Bocage','16',199,150,10.87,'-3142','50426',39,108);
INSERT INTO "communes" VALUES('17','Angoulins','46',3739,3501,7.86,'-3829','51227',0,17);
INSERT INTO "communes" VALUES('17','Varzay','35',793,674,14.04,'-3412','50784',23,48);
INSERT INTO "communes" VALUES('17','Vaux-sur-Mer','43',3876,3442,5.97,'-3774','50717',0,27);
INSERT INTO "communes" VALUES('17','Bougneau','20',571,430,14.54,'-3168','50663',7,102);
INSERT INTO "communes" VALUES('17','Chenac-Saint-Seurin-d''Uzet','08',612,575,20.23,'-3514','50575',0,62);
INSERT INTO "communes" VALUES('17','Blanzac-lès-Matha','15',334,296,9.42,'-2987','50970',23,76);
INSERT INTO "communes" VALUES('17','Péré','37',371,328,8.44,'-3504','51212',11,42);
INSERT INTO "communes" VALUES('17','Loire-les-Marais','21',339,326,12.46,'-3630','51104',0,27);
INSERT INTO "communes" VALUES('17','Saint-Romain-sur-Gironde','08',48,51,3.16,'-3438','50500',1,30);
INSERT INTO "communes" VALUES('17','Thénac','35',1630,1086,19.17,'-3323','50742',7,67);
INSERT INTO "communes" VALUES('17','<NAME>','18',438,362,21.25,'-2640','50137',11,96);
INSERT INTO "communes" VALUES('17','Massac','15',168,187,9.15,'-2842','50963',56,109);
INSERT INTO "communes" VALUES('17','Sainte-Même','28',250,164,6.15,'-3107','50974',27,52);
INSERT INTO "communes" VALUES('17','Aujac','28',325,325,8.73,'-3035','50938',16,33);
INSERT INTO "communes" VALUES('17','Anais','10',326,210,9.44,'-3605','51319',3,29);
INSERT INTO "communes" VALUES('17','Courcerac','15',294,253,6.2,'-3002','50935',16,37);
INSERT INTO "communes" VALUES('17','Chaillevette','40',1458,1081,10.03,'-3784','50813',0,28);
INSERT INTO "communes" VALUES('17','Saint-Sorlin-de-Conac','16',210,202,15.37,'-3350','50409',0,71);
INSERT INTO "communes" VALUES('17','Sonnac','15',526,541,17.12,'-2898','50933',18,63);
INSERT INTO "communes" VALUES('17','Saint-Palais-de-Négrignac','19',400,329,18.51,'-2846','50297',53,141);
INSERT INTO "communes" VALUES('17','Saint-Ciers-Champagne','02',415,365,18.08,'-2928','50492',38,118);
INSERT INTO "communes" VALUES('17','Saint-Denis-d''Oléron','31',1358,1222,11.75,'-4128','51148',0,15);
INSERT INTO "communes" VALUES('17','Coux','17',478,403,13.21,'-3046','50348',44,111);
INSERT INTO "communes" VALUES('17','Louzignac','15',161,149,6.13,'-2860','50929',49,80);
INSERT INTO "communes" VALUES('17','Nieul-sur-Mer','50',5640,5644,10.96,'-3889','51341',0,34);
INSERT INTO "communes" VALUES('17','<NAME>','36',728,564,12.01,'-3593','50713',2,21);
INSERT INTO "communes" VALUES('17','Consac','16',238,240,9.13,'-3257','50464',30,102);
INSERT INTO "communes" VALUES('17','<NAME>','18',740,624,29.55,'-2736','50212',32,126);
INSERT INTO "communes" VALUES('17','Dampierre-sur-Boutonne','04',285,297,14.04,'-3056','51186',31,83);
INSERT INTO "communes" VALUES('17','Plassay','32',692,486,16.87,'-3402','50909',9,64);
INSERT INTO "communes" VALUES('17','Ferrières','07',776,362,7.59,'-3552','51364',15,41);
INSERT INTO "communes" VALUES('17','Chevanceaux','19',1022,998,21.77,'-2856','50337',63,154);
INSERT INTO "communes" VALUES('17','Migré','12',348,320,14.3,'-3216','51194',26,88);
INSERT INTO "communes" VALUES('17','Bran','17',123,129,4.14,'-2889','50388',62,101);
INSERT INTO "communes" VALUES('17','Bourgneuf','10',1062,1040,2.68,'-3734','51297',22,47);
INSERT INTO "communes" VALUES('17','Arvert','40',3117,2886,26.22,'-3849','50823',0,25);
INSERT INTO "communes" VALUES('17','Lonzac','02',250,249,6.24,'-3033','50662',19,80);
INSERT INTO "communes" VALUES('17','Saint-Cyr-du-Doret','07',595,365,17.08,'-3495','51421',1,36);
INSERT INTO "communes" VALUES('17','Saint-Martial-de-Mirambeau','16',220,221,9.08,'-3255','50424',8,94);
INSERT INTO "communes" VALUES('17','Lussac','11',51,43,1.72,'-3127','50522',22,45);
INSERT INTO "communes" VALUES('17','Saint-Léger','20',602,464,15.88,'-3244','50690',7,67);
INSERT INTO "communes" VALUES('17','Bernay-Saint-Martin','12',763,647,24.9,'-3285','51183',13,74);
INSERT INTO "communes" VALUES('17','Berneuil','09',1091,832,25.45,'-3263','50714',5,72);
INSERT INTO "communes" VALUES('17','Mathes','40',1740,1457,34.38,'-3872','50797',0,40);
INSERT INTO "communes" VALUES('17','Vinax','04',65,62,9.19,'-2826','51153',123,166);
INSERT INTO "communes" VALUES('17','Vanzac','17',170,174,6.39,'-2935','50397',53,101);
INSERT INTO "communes" VALUES('17','Saint-Martin-de-Ré','30',2526,2637,4.7,'-4115','51337',0,17);
INSERT INTO "communes" VALUES('17','Le Bois-Plage-en-Ré','30',2358,2245,12.18,'-4144','51318',1,17);
INSERT INTO "communes" VALUES('17','Jussas','17',116,104,9.11,'-2978','50315',64,125);
INSERT INTO "communes" VALUES('17','Mazerolles','20',261,217,5.23,'-3251','50618',24,47);
INSERT INTO "communes" VALUES('17','<NAME>','51',327,275,8.48,'-3247','50727',6,48);
INSERT INTO "communes" VALUES('17','Saint-Seurin-de-Palenne','20',150,149,4.03,'-3167','50695',8,52);
INSERT INTO "communes" VALUES('17','Chaniers','51',3453,3232,26.53,'-3215','50798',2,74);
INSERT INTO "communes" VALUES('17','Pont-l''Abbé-d''Arnoult','32',1727,1743,12.41,'-3569','50920',6,41);
INSERT INTO "communes" VALUES('17','Moragne','39',472,402,12.03,'-3489','51080',1,63);
INSERT INTO "communes" VALUES('17','Saujon','36',6796,5395,18.07,'-3627','50746',0,20);
INSERT INTO "communes" VALUES('17','Pessines','35',772,648,9.05,'-3394','50810',24,71);
INSERT INTO "communes" VALUES('17','Fléac-sur-Seugne','20',371,319,8.28,'-3195','50594',11,56);
INSERT INTO "communes" VALUES('17','Chepniers','19',658,643,28.21,'-2940','50286',66,126);
INSERT INTO "communes" VALUES('17','Ozillac','11',665,559,15.93,'-3033','50438',32,101);
INSERT INTO "communes" VALUES('17','Andilly','13',1980,1478,28.63,'-3737','51392',0,24);
INSERT INTO "communes" VALUES('17','Chambon','01',910,739,18.33,'-3541','51253',13,41);
INSERT INTO "communes" VALUES('17','Taillebourg','33',730,600,14.25,'-3311','50930',2,63);
INSERT INTO "communes" VALUES('17','Breuil-Magné','21',1655,1225,22.25,'-3661','51094',0,24);
INSERT INTO "communes" VALUES('17','<NAME>','18',686,490,17.84,'-2761','50131',12,73);
INSERT INTO "communes" VALUES('17','Saint-Séverin-sur-Boutonne','12',118,136,7.78,'-3065','51203',32,98);
INSERT INTO "communes" VALUES('17','Pérignac','20',976,967,27.56,'-3112','50693',3,91);
INSERT INTO "communes" VALUES('17','Saint-Dizant-du-Bois','16',116,80,4.16,'-3232','50442',44,94);
INSERT INTO "communes" VALUES('17','Saint-Christophe','10',1230,917,13.64,'-3648','51273',4,43);
INSERT INTO "communes" VALUES('17','Saint-Pardoult','29',224,192,5.6,'-3096','51110',21,53);
INSERT INTO "communes" VALUES('17','Thors','15',426,411,5.55,'-2943','50924',18,36);
INSERT INTO "communes" VALUES('17','Colombiers','51',334,254,7.14,'-3208','50715',6,57);
INSERT INTO "communes" VALUES('17','Semillac','16',69,52,2.47,'-3257','50440',48,98);
INSERT INTO "communes" VALUES('17','La Rochelle','98',75170,76711,28.43,'-3875','51288',0,28);
INSERT INTO "communes" VALUES('17','Saint-Germain-de-Lusignan','11',1251,1146,18.05,'-3108','50500',26,87);
INSERT INTO "communes" VALUES('17','Saint-Laurent-de-la-Prée','21',1858,1347,27.51,'-3753','51090',0,23);
INSERT INTO "communes" VALUES('17','Villars-en-Pons','09',564,451,13.32,'-3286','50670',23,57);
INSERT INTO "communes" VALUES('17','<NAME>','33',273,264,7.52,'-3388','50972',1,12);
INSERT INTO "communes" VALUES('17','Sainte-Gemme','32',1246,899,40.91,'-3583','50857',7,44);
INSERT INTO "communes" VALUES('17','Semussac','08',2041,1421,24.85,'-3610','50667',0,42);
INSERT INTO "communes" VALUES('17','Saint-Laurent-de-la-Barrière','38',97,73,8.28,'-3376','51150',9,45);
INSERT INTO "communes" VALUES('17','Benon','07',1010,514,46.62,'-3502','51339',7,56);
INSERT INTO "communes" VALUES('17','Archiac','02',811,864,4.48,'-2931','50580',48,116);
INSERT INTO "communes" VALUES('17','<NAME>','10',2744,2651,9.45,'-3718','51254',11,43);
INSERT INTO "communes" VALUES('17','Saint-Césaire','05',924,891,10.41,'-3158','50837',22,89);
INSERT INTO "communes" VALUES('17','Saint-Ciers-du-Taillon','16',532,522,22.1,'-3307','50470',14,101);
INSERT INTO "communes" VALUES('17','<NAME>','30',2889,2738,12.32,'-4069','51319',0,17);
INSERT INTO "communes" VALUES('17','Saint-Georges-d''Oléron','31',3489,3300,46.55,'-4077','51088',0,30);
INSERT INTO "communes" VALUES('17','<NAME>','01',1643,1170,19,'-3615','51204',15,48);
INSERT INTO "communes" VALUES('17','Saint-Georges-de-Longuepierre','04',233,218,10.69,'-3039','51158',25,82);
INSERT INTO "communes" VALUES('17','L''Éguille','43',897,758,5.49,'-3682','50786',0,11);
INSERT INTO "communes" VALUES('17','Dompierre-sur-Charente','05',495,415,8.29,'-3143','50780',2,70);
INSERT INTO "communes" VALUES('17','Neuillac','02',303,258,10.57,'-3039','50575',28,66);
INSERT INTO "communes" VALUES('17','Dœuil-sur-le-Mignon','12',336,320,19.33,'-3201','51257',28,84);
INSERT INTO "communes" VALUES('17','Aytré','46',8914,7751,12.22,'-3834','51260',1,21);
INSERT INTO "communes" VALUES('17','Saint-Martial-sur-Né','02',411,351,11.6,'-3001','50647',12,68);
INSERT INTO "communes" VALUES('17','Angliers','07',802,363,10.74,'-3651','51347',1,19);
INSERT INTO "communes" VALUES('17','Bords','33',1287,1124,15.47,'-3479','50997',0,57);
INSERT INTO "communes" VALUES('17','Bussac-Forêt','19',989,878,34.78,'-3007','50236',39,85);
INSERT INTO "communes" VALUES('17','Landes','29',584,524,16.05,'-3260','51103',6,76);
INSERT INTO "communes" VALUES('17','<NAME>apelle-des-Pots','51',974,875,10.27,'-3197','50844',19,88);
INSERT INTO "communes" VALUES('17','Agudelle','11',106,125,5.36,'-3120','50427',47,77);
INSERT INTO "communes" VALUES('17','Virson','01',729,435,9.92,'-3598','51269',6,36);
INSERT INTO "communes" VALUES('17','Saint-Germain-de-Marencennes','37',1189,1038,16.47,'-3473','51198',1,38);
INSERT INTO "communes" VALUES('17','Arces','08',661,560,21.74,'-3551','50615',0,55);
INSERT INTO "communes" VALUES('17','Sainte-Colombe','19',115,114,4.38,'-2908','50315',75,143);
INSERT INTO "communes" VALUES('17','Saint-Grégoire-d''Ardennes','27',134,118,3.5,'-3146','50562',17,60);
INSERT INTO "communes" VALUES('17','Tesson','09',1039,811,12.13,'-3322','50702',34,58);
INSERT INTO "communes" VALUES('17','Chaunac','11',86,56,2.26,'-2996','50400',42,56);
INSERT INTO "communes" VALUES('17','Contré','04',121,144,12.32,'-2911','51125',68,173);
INSERT INTO "communes" VALUES('17','Breuil-la-Réorte','37',416,310,16.07,'-3363','51169',21,63);
INSERT INTO "communes" VALUES('17','Villars-les-Bois','05',261,256,8.6,'-3082','50888',17,101);
INSERT INTO "communes" VALUES('17','Royan','96',17946,17210,19.3,'-3735','50698',0,35);
INSERT INTO "communes" VALUES('17','Échebrune','20',497,450,17.08,'-3113','50660',29,107);
INSERT INTO "communes" VALUES('17','Cravans','09',730,521,14.72,'-3386','50662',17,53);
INSERT INTO "communes" VALUES('17','<NAME>','05',237,212,5.68,'-3004','50878',11,26);
INSERT INTO "communes" VALUES('17','Saint-Simon-de-Pellouaille','09',532,370,8.95,'-3370','50681',34,49);
INSERT INTO "communes" VALUES('17','Marignac','20',398,347,13.5,'-3125','50580',20,90);
INSERT INTO "communes" VALUES('17','Sainte-Lheurine','02',497,454,17.78,'-3002','50590',36,109);
INSERT INTO "communes" VALUES('17','Chérac','05',1090,1012,29.88,'-3082','50782',2,95);
INSERT INTO "communes" VALUES('17','<NAME>','03',1251,1179,8.8,'-4180','51328',0,17);
INSERT INTO "communes" VALUES('17','Dolus-d''Oléron','06',3173,2721,29.02,'-3997','51012',0,20);
INSERT INTO "communes" VALUES('17','Bussac-sur-Charente','34',1300,1123,9.98,'-3301','50873',2,60);
INSERT INTO "communes" VALUES('17','Saint-Sulpice-d''Arnoult','32',677,496,16.12,'-3539','50894',11,41);
INSERT INTO "communes" VALUES('17','Saint-Pierre-de-Juillers','04',353,369,17.59,'-3030','51044',32,108);
INSERT INTO "communes" VALUES('17','Saint-Augustin','40',1250,872,18.83,'-3818','50753',0,45);
INSERT INTO "communes" VALUES('17','Saleignes','04',64,77,7.89,'-2803','51120',111,149);
INSERT INTO "communes" VALUES('17','Germignac','02',627,531,14.42,'-2971','50636',17,84);
INSERT INTO "communes" VALUES('17','Nieul-le-Virouil','16',584,568,22.64,'-3186','50454',28,80);
INSERT INTO "communes" VALUES('17','<NAME>','12',204,172,2.62,'-3147','51197',41,60);
INSERT INTO "communes" VALUES('17','Tonnay-Boutonne','38',1158,1126,22.73,'-3381','51075',2,46);
INSERT INTO "communes" VALUES('17','Longèves','13',800,515,12.63,'-3695','51366',0,19);
INSERT INTO "communes" VALUES('17','Saint-Hilaire-de-Villefranche','28',1187,1042,22.19,'-3184','50946',22,95);
INSERT INTO "communes" VALUES('17','Bagnizeau','15',187,187,9.63,'-2944','50987',40,88);
INSERT INTO "communes" VALUES('17','Salignac-de-Mirambeau','16',158,155,7.56,'-3132','50384',37,111);
INSERT INTO "communes" VALUES('17','Beaugeay','26',718,470,14.51,'-3708','50971',1,17);
INSERT INTO "communes" VALUES('17','Saint-Martin-de-Juillers','04',170,148,8.38,'-2997','51048',44,88);
INSERT INTO "communes" VALUES('17','Marsais','37',920,788,23.98,'-3262','51251',23,82);
INSERT INTO "communes" VALUES('17','Cressé','15',231,251,10.96,'-2839','51017',62,105);
INSERT INTO "communes" VALUES('17','Avy','20',472,480,14.64,'-3161','50614',15,78);
INSERT INTO "communes" VALUES('17','Burie','05',1278,1265,9.19,'-3065','50858',19,103);
INSERT INTO "communes" VALUES('17','<NAME>','04',123,101,5.97,'-2867','51035',58,98);
INSERT INTO "communes" VALUES('17','Boscamnant','18',408,345,13.98,'-2672','50219',27,117);
INSERT INTO "communes" VALUES('17','Vouhé','37',649,395,15.61,'-3486','51275',13,41);
INSERT INTO "communes" VALUES('17','Saint-Genis-de-Saintonge','27',1262,947,11.02,'-3227','50537',20,51);
INSERT INTO "communes" VALUES('17','Cozes','08',2005,1830,16.56,'-3520','50648',10,59);
INSERT INTO "communes" VALUES('17','Vibrac','11',154,168,5.02,'-2975','50395',43,107);
INSERT INTO "communes" VALUES('17','Polignac','19',146,108,4.64,'-2940','50316',69,123);
INSERT INTO "communes" VALUES('17','Taugon','07',813,610,15.7,'-3523','51454',1,8);
INSERT INTO "communes" VALUES('17','Annepont','33',340,267,8.81,'-3279','50937',3,62);
INSERT INTO "communes" VALUES('17','Champagnolles','27',554,500,17.03,'-3305','50571',26,59);
INSERT INTO "communes" VALUES('17','Meux','11',295,307,8.23,'-2984','50492',38,102);
INSERT INTO "communes" VALUES('17','Croix-Chapeau','10',1154,890,4.83,'-3715','51232',17,51);
INSERT INTO "communes" VALUES('17','Mirambeau','16',1504,1457,26.94,'-3230','50415',9,108);
INSERT INTO "communes" VALUES('17','La Brée-les-Bains','31',756,758,7.27,'-4095','51128',0,11);
INSERT INTO "communes" VALUES('17','Bedenac','19',633,508,40.23,'-2931','50184',44,109);
INSERT INTO "communes" VALUES('17','Expiremont','17',125,105,5.66,'-3009','50360',51,116);
INSERT INTO "communes" VALUES('17','Champagnac','11',530,463,12.89,'-3021','50472',31,92);
INSERT INTO "communes" VALUES('17','Thézac','36',316,304,12.42,'-3474','50747',22,49);
INSERT INTO "communes" VALUES('17','Chantemerle-sur-la-Soie','38',140,108,5.72,'-3310','51089',2,64);
INSERT INTO "communes" VALUES('17','Ternant','29',332,237,5.61,'-3234','51055',5,35);
INSERT INTO "communes" VALUES('17','Virollet','09',271,237,10.01,'-3394','50611',17,46);
INSERT INTO "communes" VALUES('17','Nouillers','33',636,611,24.15,'-3333','51035',2,64);
INSERT INTO "communes" VALUES('17','Dompierre-sur-Mer','49',5329,4306,18.35,'-3779','51320',4,35);
INSERT INTO "communes" VALUES('17','Saint-Sauveur-d''Aunis','07',1591,1068,19.66,'-3581','51351',2,35);
INSERT INTO "communes" VALUES('17','Villiers-Couture','04',149,168,8.37,'-2765','51093',96,138);
INSERT INTO "communes" VALUES('17','Cherbonnières','04',337,350,16.58,'-2973','51070',44,94);
INSERT INTO "communes" VALUES('17','Saint-Jean-d''Angély','29',7669,7678,18.78,'-3175','51049',8,76);
INSERT INTO "communes" VALUES('17','Beauvais-sur-Matha','15',681,619,12.48,'-2805','50980',75,132);
INSERT INTO "communes" VALUES('17','Balanzac','36',510,344,12.75,'-3525','50824',17,39);
INSERT INTO "communes" VALUES('17','Bourcefranc-le-Chapus','14',3381,2951,12.4,'-3871','50942',0,18);
INSERT INTO "communes" VALUES('17','Saint-Jean-de-Liversay','07',2422,1695,41.42,'-3568','51410',0,39);
INSERT INTO "communes" VALUES('17','Villexavier','11',281,247,9.97,'-3082','50413',48,90);
INSERT INTO "communes" VALUES('17','Saint-Hilaire-du-Bois','16',302,285,7.48,'-3147','50463',29,71);
INSERT INTO "communes" VALUES('17','Aumagne','28',697,610,20.5,'-3045','50972',22,60);
INSERT INTO "communes" VALUES('17','Saint-Georges-du-Bois','37',1743,1465,27.9,'-3413','51269',22,70);
INSERT INTO "communes" VALUES('17','La Gripperie-Saint-Symphorien','26',539,473,18.16,'-3653','50890',2,39);
INSERT INTO "communes" VALUES('17','Bois','27',543,430,21.12,'-3261','50542',29,59);
INSERT INTO "communes" VALUES('17','Boresse-et-Martron','18',198,221,11.19,'-2723','50302',48,146);
INSERT INTO "communes" VALUES('17','Belluire','20',218,195,4.5,'-3218','50595',14,42);
INSERT INTO "communes" VALUES('17','Thaims','09',368,239,8.74,'-3468','50692',13,31);
INSERT INTO "communes" VALUES('17','Montendre','17',3151,3118,25.06,'-3049','50316',44,120);
INSERT INTO "communes" VALUES('17','Villeneuve-la-Comtesse','12',734,717,15.9,'-3156','51220',43,92);
INSERT INTO "communes" VALUES('17','<NAME>','14',2053,1860,36.09,'-3644','50807',0,32);
INSERT INTO "communes" VALUES('17','Port-d''Envaux','32',1102,991,22.55,'-3352','50930',2,59);
INSERT INTO "communes" VALUES('17','Mornac-sur-Seudre','43',839,652,9.5,'-3739','50789',0,13);
INSERT INTO "communes" VALUES('17','Gibourne','15',116,118,11,'-2942','51037',53,107);
INSERT INTO "communes" VALUES('17','Salignac-sur-Charente','20',622,545,10.22,'-3066','50747',2,22);
INSERT INTO "communes" VALUES('17','Saint-Martial-de-Vitaterne','11',601,358,2.78,'-3077','50512',39,87);
INSERT INTO "communes" VALUES('17','Écurat','35',472,361,10.55,'-3346','50871',14,69);
INSERT INTO "communes" VALUES('17','Marennes','14',5607,4687,20.09,'-3824','50914',0,21);
INSERT INTO "communes" VALUES('17','Saint-Romain-de-Benet','36',1620,1374,32.78,'-3538','50769',3,47);
INSERT INTO "communes" VALUES('17','Courçon','07',1664,1097,19.11,'-3498','51382',1,43);
INSERT INTO "communes" VALUES('17','Saint-Denis-du-Pin','29',729,702,19.16,'-3175','51096',26,109);
INSERT INTO "communes" VALUES('17','Genouillé','39',789,644,34.41,'-3468','51136',0,63);
INSERT INTO "communes" VALUES('17','Chadenac','20',393,425,14.11,'-3087','50601',32,112);
INSERT INTO "communes" VALUES('17','Matha','15',2166,2091,19.08,'-2952','50964',23,68);
INSERT INTO "communes" VALUES('17','Cierzac','02',249,199,5.2,'-2943','50632',18,49);
INSERT INTO "communes" VALUES('17','Fontcouverte','34',2218,1892,11.58,'-3253','50857',2,81);
INSERT INTO "communes" VALUES('17','Charron','13',2337,1655,37.54,'-3825','51438',0,11);
INSERT INTO "communes" VALUES('17','Givrezac','27',78,63,2.7,'-3295','50603',37,44);
INSERT INTO "communes" VALUES('17','<NAME>','36',589,391,5.18,'-3444','50814',22,49);
INSERT INTO "communes" VALUES('17','Mosnac','27',480,445,12.44,'-3177','50562',17,39);
INSERT INTO "communes" VALUES('17','Crazannes','32',438,408,4.81,'-3379','50943',2,28);
INSERT INTO "communes" VALUES('17','Saint-Germain-du-Seudre','27',359,340,16.09,'-3338','50569',22,54);
INSERT INTO "communes" VALUES('17','Saint-Rogatien','10',1920,1805,5.19,'-3787','51279',9,33);
INSERT INTO "communes" VALUES('17','Messac','17',113,107,7.24,'-2945','50385',45,106);
INSERT INTO "communes" VALUES('17','Nieul-lès-Saintes','35',1048,975,20.41,'-3409','50844',19,68);
INSERT INTO "communes" VALUES('17','Chives','04',370,378,20.66,'-2737','51065',82,142);
INSERT INTO "communes" VALUES('17','Annezay','38',160,175,7.43,'-3389','51121',5,65);
INSERT INTO "communes" VALUES('17','Saint-Savinien','33',2432,2362,47,'-3352','50975',0,68);
INSERT INTO "communes" VALUES('17','Taillant','33',164,131,4.96,'-3286','51001',19,70);
INSERT INTO "communes" VALUES('17','Saint-Jean-d''Angle','26',595,509,21.61,'-3648','50910',2,32);
INSERT INTO "communes" VALUES('17','Mortiers','11',181,191,6.53,'-2955','50447',42,102);
INSERT INTO "communes" VALUES('17','Rétaud','09',1027,873,19.92,'-3404','50753',26,49);
INSERT INTO "communes" VALUES('17','Saint-Loup','38',295,273,16.42,'-3291','51110',2,48);
INSERT INTO "communes" VALUES('17','Tanzac','09',303,251,11.23,'-3294','50627',27,51);
INSERT INTO "communes" VALUES('17','<NAME>','18',212,258,37.03,'-2627','50244',27,131);
INSERT INTO "communes" VALUES('17','Saint-Dizant-du-Gua','27',522,548,18.44,'-3378','50480',2,62);
INSERT INTO "communes" VALUES('17','Bresdon','15',259,279,16.67,'-2759','50960',78,146);
INSERT INTO "communes" VALUES('17','Port-des-Barques','26',1885,1533,5.66,'-3795','51053',0,18);
INSERT INTO "communes" VALUES('17','Vervant','29',212,194,5.62,'-3101','51082',18,71);
INSERT INTO "communes" VALUES('17','Asnières-la-Giraud','29',922,875,18.64,'-3175','50988',22,82);
INSERT INTO "communes" VALUES('17','Semoussac','16',284,220,9.62,'-3290','50429',8,103);
INSERT INTO "communes" VALUES('17','Plassac','27',630,388,15.48,'-3228','50518',27,65);
INSERT INTO "communes" VALUES('17','Champdolent','33',399,372,12.02,'-3486','51021',1,35);
INSERT INTO "communes" VALUES('17','Chamouillac','17',336,324,8.19,'-3114','50348',23,87);
INSERT INTO "communes" VALUES('17','Tonnay-Charente','39',7758,6629,34.39,'-3606','51053',1,32);
INSERT INTO "communes" VALUES('17','Aigrefeuille-d''Aunis','01',3707,3151,16.76,'-3633','51240',12,38);
INSERT INTO "communes" VALUES('17','Saint-Georges-des-Agoûts','16',259,245,6.31,'-3314','50417',0,90);
INSERT INTO "communes" VALUES('17','Blanzay-sur-Boutonne','04',94,87,5.75,'-3073','51167',26,57);
INSERT INTO "communes" VALUES('17','Jarnac-Champagne','02',726,728,21.95,'-3040','50621',37,81);
INSERT INTO "communes" VALUES('17','Villemorin','04',99,142,10.67,'-2925','51114',48,101);
INSERT INTO "communes" VALUES('17','Saint-Sigismond-de-Clermont','27',163,138,5.28,'-3191','50502',24,52);
INSERT INTO "communes" VALUES('17','Écoyeux','05',1232,937,20.34,'-3159','50913',43,94);
INSERT INTO "communes" VALUES('17','Le Grand-Village-Plage','06',1013,898,6.05,'-3970','50956',2,22);
INSERT INTO "communes" VALUES('17','<NAME>','34',707,635,18.35,'-3229','50911',12,81);
INSERT INTO "communes" VALUES('17','Meschers-sur-Gironde','08',2814,2237,15.98,'-3656','50619',0,39);
INSERT INTO "communes" VALUES('17','Brie-sous-Mortagne','08',252,246,7.22,'-3422','50550',5,61);
INSERT INTO "communes" VALUES('17','Saint-Nazaire-sur-Charente','26',1146,850,20.31,'-3766','51040',0,21);
INSERT INTO "communes" VALUES('17','Saint-Palais-de-Phiolin','27',227,217,11.01,'-3262','50574',19,49);
INSERT INTO "communes" VALUES('17','Échillais','26',3314,2774,14.72,'-3653','50998',0,18);
INSERT INTO "communes" VALUES('17','Puyravault','37',617,467,13.68,'-3495','51259',12,41);
INSERT INTO "communes" VALUES('17','Biron','20',234,234,8.71,'-3128','50633',15,81);
INSERT INTO "communes" VALUES('17','Nachamps','38',206,211,4.18,'-3289','51130',7,66);
INSERT INTO "communes" VALUES('17','<NAME>','07',484,362,11.48,'-3444','51390',1,31);
INSERT INTO "communes" VALUES('17','Saint-Crépin','38',287,219,13.94,'-3410','51113',1,65);
INSERT INTO "communes" VALUES('17','Rivedoux-Plage','30',2302,1762,4.52,'-4013','51288',0,16);
INSERT INTO "communes" VALUES('17','Saint-Agnant','26',2499,2077,22.49,'-3664','50969',2,24);
INSERT INTO "communes" VALUES('17','Souméras','17',348,279,6.26,'-3069','50333',29,81);
INSERT INTO "communes" VALUES('17','Migron','05',683,636,15.06,'-3037','50892',11,31);
INSERT INTO "communes" VALUES('17','Saint-Vaize','34',562,462,4.61,'-3297','50902',2,57);
INSERT INTO "communes" VALUES('17','Vandré','37',773,725,14.57,'-3446','51173',6,42);
INSERT INTO "communes" VALUES('17','Saint-Palais-sur-Mer','43',3958,3342,15.69,'-3805','50715',0,50);
INSERT INTO "communes" VALUES('17','Torxé','38',244,232,11.43,'-3292','51059',2,63);
INSERT INTO "communes" VALUES('17','Boisredon','16',684,599,21.6,'-3195','50349',19,108);
INSERT INTO "communes" VALUES('17','Fontenet','29',381,371,10.27,'-3100','51014',19,76);
INSERT INTO "communes" VALUES('17','Esnandes','44',2063,1836,7.45,'-3833','51389',0,19);
INSERT INTO "communes" VALUES('17','Romegoux','32',622,513,13.25,'-3492','50969',0,28);
INSERT INTO "communes" VALUES('17','Sainte-Marie-de-Ré','30',3186,2655,9.84,'-4053','51277',0,17);
INSERT INTO "communes" VALUES('17','Vergné','12',135,168,8,'-3164','51194',31,61);
INSERT INTO "communes" VALUES('17','Rochefort','97',25140,25775,21.95,'-3670','51047',0,29);
INSERT INTO "communes" VALUES('17','Juicq','28',218,165,9.25,'-3219','50937',16,76);
INSERT INTO "communes" VALUES('17','Mortagne-sur-Gironde','08',1023,967,18.87,'-3468','50536',0,64);
INSERT INTO "communes" VALUES('17','Ballon','01',740,526,12.18,'-3654','51175',0,47);
INSERT INTO "communes" VALUES('17','Montroy','10',645,538,3.99,'-3717','51283',25,47);
INSERT INTO "communes" VALUES('17','Loulay','12',786,759,7.3,'-3165','51163',41,92);
INSERT INTO "communes" VALUES('17','<NAME>','29',418,402,11.07,'-3231','51125',38,109);
INSERT INTO "communes" VALUES('17','Île-d''Aix','21',232,186,1.19,'-3900','51124',0,15);
INSERT INTO "communes" VALUES('17','Saint-Eugène','02',293,291,16.56,'-2914','50564',43,121);
INSERT INTO "communes" VALUES('17','Courcelles','29',438,436,6.77,'-3122','51059',15,68);
INSERT INTO "communes" VALUES('17','Lagord','50',7230,6450,8.04,'-3878','51322',4,30);
INSERT INTO "communes" VALUES('17','Saint-Hippolyte','39',1329,1119,23.28,'-3593','51024',1,27);
INSERT INTO "communes" VALUES('17','Sousmoulins','17',215,189,7.7,'-2963','50343',54,125);
INSERT INTO "communes" VALUES('17','Saint-Just-Luzac','14',1871,1541,47.74,'-3749','50891',0,18);
INSERT INTO "communes" VALUES('17','Allas-Champagne','02',254,183,7.65,'-2968','50522',35,77);
INSERT INTO "communes" VALUES('17','Meursac','09',1400,1015,26.17,'-3495','50722',7,41);
INSERT INTO "communes" VALUES('17','Courant','12',371,278,15.46,'-3233','51158',12,99);
INSERT INTO "communes" VALUES('17','Coulonges','20',231,178,9.16,'-3067','50677',13,65);
INSERT INTO "communes" VALUES('17','Sainte-Ramée','16',140,126,4.67,'-3331','50471',8,80);
INSERT INTO "communes" VALUES('17','Rouffiac','20',486,327,5.85,'-3141','50762',2,27);
INSERT INTO "communes" VALUES('17','Saint-André-de-Lidon','09',962,849,23.83,'-3428','50666',15,51);
INSERT INTO "communes" VALUES('17','Boutenac-Touvent','08',207,218,3.11,'-3436','50560',6,64);
INSERT INTO "communes" VALUES('17','Poursay-Garnaud','29',302,238,5.22,'-3105','51063',16,69);
INSERT INTO "communes" VALUES('17','Fontaines-d''Ozillac','11',508,394,13.87,'-3018','50429',38,93);
INSERT INTO "communes" VALUES('17','Églises-d''Argenteuil','29',539,507,14.29,'-3077','51082',20,82);
INSERT INTO "communes" VALUES('17','Courpignac','16',416,360,14.97,'-3137','50364',18,96);
INSERT INTO "communes" VALUES('17','Brives-sur-Charente','20',230,197,5.94,'-3108','50746',2,37);
INSERT INTO "communes" VALUES('17','Saint-Quantin-de-Rançanne','09',280,272,9.11,'-3256','50592',19,47);
INSERT INTO "communes" VALUES('17','Neulles','02',147,139,5.9,'-3060','50559',24,59);
INSERT INTO "communes" VALUES('17','Chartuzac','17',166,137,2.38,'-3060','50377',57,100);
INSERT INTO "communes" VALUES('17','Salles-sur-Mer','10',2029,1610,14.03,'-3768','51227',2,30);
INSERT INTO "communes" VALUES('17','Montlieu-la-Garde','19',1341,1281,31.6,'-2880','50272',52,147);
INSERT INTO "communes" VALUES('17','Saint-Trojan-les-Bains','06',1473,1618,17.53,'-3939','50935',0,35);
INSERT INTO "communes" VALUES('17','Nuaillé-d''Aunis','07',1076,631,16.47,'-3630','51361',0,29);
INSERT INTO "communes" VALUES('17','Nieulle-sur-Seudre','14',1127,643,20.75,'-3707','50833',0,9);
INSERT INTO "communes" VALUES('17','Saint-Saturnin-du-Bois','37',880,744,25.21,'-3342','51267',14,79);
INSERT INTO "communes" VALUES('17','Aulnay','04',1464,1504,30.97,'-2981','51134',32,107);
INSERT INTO "communes" VALUES('17','Saint-Georges-de-Didonne','25',5071,5034,10.58,'-3706','50673',0,45);
INSERT INTO "communes" VALUES('17','Moings','11',170,176,7.57,'-2997','50532',32,68);
INSERT INTO "communes" VALUES('17','Gémozac','09',2723,2356,31.93,'-3346','50633',17,48);
INSERT INTO "communes" VALUES('17','Macqueville','15',296,294,11.21,'-2834','50888',22,97);
INSERT INTO "communes" VALUES('17','Léoville','11',322,299,9.89,'-2972','50421',39,97);
INSERT INTO "communes" VALUES('17','Le Château-d''Oléron','06',3920,3552,15.67,'-3923','50984',0,10);
INSERT INTO "communes" VALUES('17','Saint-Porchaire','32',1644,1335,17.4,'-3469','50913',7,54);
INSERT INTO "communes" VALUES('17','Grézac','08',823,593,20.06,'-3530','50671',11,54);
INSERT INTO "communes" VALUES('17','Neuvicq','18',426,306,22.72,'-2802','50271',43,150);
INSERT INTO "communes" VALUES('17','Yves','21',1438,1050,25.75,'-3757','51156',0,18);
INSERT INTO "communes" VALUES('17','Brie-sous-Matha','15',204,175,6.3,'-2874','50910',21,73);
INSERT INTO "communes" VALUES('17','Seigné','04',98,107,6.43,'-2831','51057',68,134);
INSERT INTO "communes" VALUES('17','Soulignonne','32',728,544,14.31,'-3470','50863',15,60);
INSERT INTO "communes" VALUES('17','<NAME>','04',221,264,22.27,'-2953','51179',53,128);
INSERT INTO "communes" VALUES('17','Saint-Thomas-de-Conac','16',559,545,28.04,'-3360','50432',0,101);
INSERT INTO "communes" VALUES('17','Sainte-Soulle','10',3577,2652,21.82,'-3720','51318',3,42);
INSERT INTO "communes" VALUES('17','Épargnes','08',819,736,23.4,'-3488','50602',1,59);
INSERT INTO "communes" VALUES('17','<NAME>','07',662,514,7.55,'-3553','51319',3,21);
INSERT INTO "communes" VALUES('17','Saint-Georges-des-Coteaux','35',2560,2031,19.23,'-3386','50848',13,81);
INSERT INTO "communes" VALUES('17','Saint-Maurice-de-Tavernole','11',132,109,3.92,'-3044','50533',29,75);
INSERT INTO "communes" VALUES('17','Loiré-sur-Nie','04',300,290,14.4,'-2912','51058',60,110);
INSERT INTO "communes" VALUES('17','<NAME>','10',2418,2054,8.42,'-3789','51253',2,27);
INSERT INTO "communes" VALUES('17','Coivert','12',236,220,14.78,'-3106','51189',27,81);
INSERT INTO "communes" VALUES('17','Brizambourg','28',874,763,21.26,'-3130','50914',26,94);
INSERT INTO "communes" VALUES('17','Haimps','15',488,421,18.47,'-2884','50964',41,100);
INSERT INTO "communes" VALUES('17','Muron','39',1235,997,39.06,'-3518','51150',0,28);
INSERT INTO "communes" VALUES('17','Lorignac','27',472,441,17.53,'-3362','50507',7,61);
INSERT INTO "communes" VALUES('17','Nuaillé-sur-Boutonne','04',201,178,10.48,'-3079','51126',21,62);
INSERT INTO "communes" VALUES('17','<NAME>','19',70,73,2.46,'-2925','50352',60,108);
INSERT INTO "communes" VALUES('17','Jazennes','09',482,367,10.84,'-3281','50647',22,52);
INSERT INTO "communes" VALUES('17','Montpellier-de-Médillan','09',639,506,14.85,'-3423','50705',16,42);
INSERT INTO "communes" VALUES('17','Voissay','29',170,106,5.06,'-3269','51058',3,45);
INSERT INTO "communes" VALUES('17','Siecq','15',212,200,11.66,'-2811','50922',66,116);
INSERT INTO "communes" VALUES('17','Fouras','21',4095,3838,9.51,'-3810','51098',0,21);
INSERT INTO "communes" VALUES('17','Corme-Écluse','36',1050,756,17.49,'-3546','50701',5,33);
INSERT INTO "communes" VALUES('17','Thairé','01',1493,1053,18.74,'-3711','51193',1,47);
INSERT INTO "communes" VALUES('17','<NAME>','40',4584,4664,69.13,'-3865','50855',0,56);
INSERT INTO "communes" VALUES('17','Jonzac','11',3480,3814,13.09,'-3078','50496',26,87);
INSERT INTO "communes" VALUES('17','Châtelaillon-Plage','46',6029,5624,6.59,'-3805','51192',0,21);
INSERT INTO "communes" VALUES('17','Pommiers-Moulons','17',196,174,9.6,'-2988','50360',49,114);
INSERT INTO "communes" VALUES('17','Champagne','26',656,529,19.53,'-3605','50923',1,40);
INSERT INTO "communes" VALUES('17','Antezant-la-Chapelle','29',358,339,18.63,'-3103','51092',18,89);
INSERT INTO "communes" VALUES('17','<NAME>','07',373,275,4.26,'-3438','51349',3,29);
INSERT INTO "communes" VALUES('17','Archingeay','33',651,519,16.61,'-3380','51034',2,47);
INSERT INTO "communes" VALUES('17','Saint-Bonnet-sur-Gironde','16',869,838,30.6,'-3329','50394',0,87);
INSERT INTO "communes" VALUES('17','Puilboreau','44',5361,4619,7.88,'-3837','51318',7,35);
INSERT INTO "communes" VALUES('17','Pisany','36',521,415,6.59,'-3464','50780',23,44);
INSERT INTO "communes" VALUES('17','Saint-Simon-de-Bordes','11',682,626,14.08,'-3100','50440',35,82);
INSERT INTO "communes" VALUES('17','Moëze','26',553,463,21.17,'-3747','51005',0,15);
INSERT INTO "communes" VALUES('17','Touches-de-Périgny','15',545,494,21.56,'-2894','51009',46,107);
INSERT INTO "communes" VALUES('17','Talmont-sur-Gironde','08',88,83,4.44,'-3605','50595',0,24);
INSERT INTO "communes" VALUES('17','Fenioux','33',146,124,9.36,'-3259','50989',20,102);
INSERT INTO "communes" VALUES('17','<NAME>','15',509,477,18.84,'-3000','50988',34,78);
INSERT INTO "communes" VALUES('17','Mazeray','29',862,779,19.38,'-3222','51009',15,101);
INSERT INTO "communes" VALUES('17','Chervettes','38',127,124,3.98,'-3382','51168',13,32);
INSERT INTO "communes" VALUES('17','Mérignac','19',222,206,4.41,'-2925','50359',55,101);
INSERT INTO "communes" VALUES('17','Réaux','11',447,475,8.96,'-3012','50530',33,96);
INSERT INTO "communes" VALUES('17','Brie-sous-Archiac','02',257,245,7.49,'-2932','50526',49,113);
INSERT INTO "communes" VALUES('17','Lozay','12',155,184,11.85,'-3204','51157',31,106);
INSERT INTO "communes" VALUES('17','<NAME>','28',78,53,2.89,'-3229','50957',13,66);
INSERT INTO "communes" VALUES('17','Saint-Pierre-du-Palais','18',364,262,12.93,'-2771','50184',19,106);
INSERT INTO "communes" VALUES('17','Loix','03',713,621,6.7,'-4197','51359',0,10);
INSERT INTO "communes" VALUES('17','Villedoux','13',1425,935,15.84,'-3782','51379',0,20);
INSERT INTO "communes" VALUES('17','Prignac','15',276,256,6.77,'-2992','50922',16,38);
INSERT INTO "communes" VALUES('17','Rouffignac','17',443,361,14.62,'-3096','50372',34,111);
INSERT INTO "communes" VALUES('17','Corme-Royal','36',1628,1342,27.18,'-3499','50829',15,44);
INSERT INTO "communes" VALUES('17','Neuvicq-le-Château','15',363,380,15.14,'-2779','50892',47,156);
INSERT INTO "communes" VALUES('17','Vergeroux','21',1019,756,5.53,'-3692','51068',0,18);
INSERT INTO "communes" VALUES('17','Grandjean','33',264,232,6.1,'-3271','50975',7,91);
INSERT INTO "communes" VALUES('17','Beurlay','32',1003,755,9.71,'-3526','50956',5,40);
INSERT INTO "communes" VALUES('17','Saint-Médard-d''Aunis','10',1820,1254,22.53,'-3674','51287',4,44);
INSERT INTO "communes" VALUES('17','Hiers-Brouage','14',655,474,31.35,'-3791','50944',0,26);
INSERT INTO "communes" VALUES('17','Corignac','17',341,261,11.57,'-3031','50276',43,98);
INSERT INTO "communes" VALUES('17','Saint-Coutant-le-Grand','39',378,279,12.8,'-3450','51060',1,45);
INSERT INTO "communes" VALUES('17','Montils','20',766,652,23.64,'-3155','50720',2,56);
INSERT INTO "communes" VALUES('17','Paillé','04',336,366,12.44,'-3033','51099',28,89);
INSERT INTO "communes" VALUES('17','Saint-Fort-sur-Gironde','27',854,903,24.22,'-3397','50512',2,70);
INSERT INTO "communes" VALUES('17','Pouillac','19',246,231,4.59,'-2875','50299',80,144);
INSERT INTO "communes" VALUES('17','Bazauges','15',136,130,8.28,'-2789','51023',75,131);
INSERT INTO "communes" VALUES('17','Saint-Martin-d''Ary','18',493,476,8.61,'-2834','50251',39,102);
INSERT INTO "communes" VALUES('17','Lussant','39',922,830,8.79,'-3509','51068',1,28);
INSERT INTO "communes" VALUES('17','Montguyon','18',1460,1461,18.18,'-2804','50240',30,121);
INSERT INTO "communes" VALUES('17','Saint-Maigrin','02',564,526,21.49,'-2909','50465',51,118);
INSERT INTO "communes" VALUES('17','Clérac','18',932,942,43.08,'-2849','50201',27,116);
INSERT INTO "communes" VALUES('17','Saint-Georges-Antignac','27',400,374,10.1,'-3156','50548',17,69);
INSERT INTO "communes" VALUES('17','Mons','15',468,448,15.63,'-2980','50912',14,31);
INSERT INTO "communes" VALUES('17','Saint-Félix','12',310,282,15.23,'-3262','51210',37,90);
INSERT INTO "communes" VALUES('17','Vénérand','34',697,598,9.65,'-3219','50882',49,94);
INSERT INTO "communes" VALUES('17','Saint-Pierre-d''Amilly','37',455,386,19.81,'-3360','51297',11,69);
INSERT INTO "communes" VALUES('17','Saint-Sornin','14',296,327,13.49,'-3684','50854',0,31);
INSERT INTO "communes" VALUES('17','Saint-Ouen-d''Aunis','13',1201,690,8.82,'-3746','51362',0,25);
INSERT INTO "communes" VALUES('17','Saint-Martin-de-Coux','18',418,347,15.71,'-2717','50161',30,111);
INSERT INTO "communes" VALUES('17','Puy-du-Lac','38',419,280,14.6,'-3433','51057',1,28);
INSERT INTO "communes" VALUES('17','Marsilly','44',2619,2197,11.91,'-3860','51367',0,31);
INSERT INTO "communes" VALUES('17','Orignolles','19',641,619,13.66,'-2857','50256',39,131);
INSERT INTO "communes" VALUES('17','Bercloux','28',430,325,9.35,'-3120','50928',25,61);
INSERT INTO "communes" VALUES('17','Celles','02',315,251,6,'-3009','50672',8,44);
INSERT INTO "communes" VALUES('17','Saint-Clément-des-Baleines','03',720,731,6.8,'-4306','51364',0,18);
INSERT INTO "communes" VALUES('17','Nantillé','28',348,278,10.78,'-3116','50949',31,74);
INSERT INTO "communes" VALUES('17','<NAME>','29',628,569,13.97,'-3223','51069',5,74);
INSERT INTO "communes" VALUES('17','Landrais','01',699,526,15.4,'-3554','51189',1,33);
INSERT INTO "communes" VALUES('17','<NAME>','32',694,644,16.37,'-3531','50991',0,34);
INSERT INTO "communes" VALUES('17','Cabariot','39',1307,1080,15.12,'-3548','51029',1,27);
INSERT INTO "communes" VALUES('18','Parnay','12',50,48,17.28,'260','52054',159,181);
INSERT INTO "communes" VALUES('18','Saint-Pierre-les-Bois','11',322,305,20.38,'-64','51849',170,233);
INSERT INTO "communes" VALUES('18','Concressault','28',224,214,7.45,'266','52766',175,272);
INSERT INTO "communes" VALUES('18','Morogues','01',436,425,30.53,'290','52490',200,427);
INSERT INTO "communes" VALUES('18','Ardenais','11',204,152,17.55,'25','51830',188,262);
INSERT INTO "communes" VALUES('18','Saint-Doulchard','35',9197,9014,24.01,'22','52339',119,167);
INSERT INTO "communes" VALUES('18','Lugny-Bourbonnais','21',33,27,5.33,'409','52146',169,204);
INSERT INTO "communes" VALUES('18','<NAME>','15',184,181,28.5,'282','52614',258,383);
INSERT INTO "communes" VALUES('18','Saint-Amand-Montrond','22',10761,11449,20.17,'187','51914',148,312);
INSERT INTO "communes" VALUES('18','Uzay-le-Venon','10',415,395,34.6,'139','52014',148,183);
INSERT INTO "communes" VALUES('18','Lignières','18',1485,1591,21.88,'-178','51947',153,202);
INSERT INTO "communes" VALUES('18','Chambon','10',159,134,13.91,'-13','51986',147,187);
INSERT INTO "communes" VALUES('18','Faverdines','27',146,136,18.51,'155','51821',172,239);
INSERT INTO "communes" VALUES('18','Rians','01',1036,1017,32.41,'308','52428',155,256);
INSERT INTO "communes" VALUES('18','Vierzon','99',26946,29723,74.5,'-298','52469',94,182);
INSERT INTO "communes" VALUES('18','Culan','09',791,822,20.23,'14','51719',220,332);
INSERT INTO "communes" VALUES('18','Bué','25',364,340,6.3,'507','52566',197,370);
INSERT INTO "communes" VALUES('18','Neuvy-Deux-Clochers','15',316,284,16.5,'403','52531',242,414);
INSERT INTO "communes" VALUES('18','Méry-ès-Bois','06',604,617,91.59,'29','52571',171,293);
INSERT INTO "communes" VALUES('18','Preuilly','19',459,433,14.94,'-178','52328',107,142);
INSERT INTO "communes" VALUES('18','Corquoy','10',239,207,22.62,'-49','52108',128,174);
INSERT INTO "communes" VALUES('18','Moulins-sur-Yèvre','04',697,466,15.33,'201','52314',132,172);
INSERT INTO "communes" VALUES('18','Saint-Martin-d''Auxigny','23',2176,2019,24.08,'89','52449',152,301);
INSERT INTO "communes" VALUES('18','Saint-Maur','09',249,295,25.62,'-42','51756',224,321);
INSERT INTO "communes" VALUES('18','<NAME>','22',128,103,2.92,'193','51874',154,208);
INSERT INTO "communes" VALUES('18','Précy','24',329,313,14.45,'658','52333',168,197);
INSERT INTO "communes" VALUES('18','Étréchy','24',431,423,31.88,'432','52402',171,254);
INSERT INTO "communes" VALUES('18','Bannay','25',771,772,25.03,'604','52651',139,260);
INSERT INTO "communes" VALUES('18','<NAME>','24',496,491,17.14,'725','52413',150,188);
INSERT INTO "communes" VALUES('18','Vorly','17',251,249,18.84,'143','52161',154,184);
INSERT INTO "communes" VALUES('18','Menetou-Salon','23',1665,1661,37.66,'167','52480',174,312);
INSERT INTO "communes" VALUES('18','Drevant','22',574,610,4.84,'209','51882',153,250);
INSERT INTO "communes" VALUES('18','Soulangis','01',472,445,13.76,'201','52430',151,198);
INSERT INTO "communes" VALUES('18','Saint-Loup-des-Chaumes','10',299,277,18.55,'58','52027',133,177);
INSERT INTO "communes" VALUES('18','Charentonnay','24',322,314,21.85,'597','52384',173,227);
INSERT INTO "communes" VALUES('18','Jalognes','25',281,284,28.09,'499','52484',172,239);
INSERT INTO "communes" VALUES('18','Menetou-Couture','21',347,317,28.93,'642','52273',176,212);
INSERT INTO "communes" VALUES('18','Sury-près-Léré','16',558,509,17.78,'589','52759',132,238);
INSERT INTO "communes" VALUES('18','<NAME>','14',257,317,14.74,'700','52197',172,213);
INSERT INTO "communes" VALUES('18','Chaumont','26',50,49,2.11,'463','52050',214,268);
INSERT INTO "communes" VALUES('18','<NAME>','07',134,140,6.63,'348','52005',165,190);
INSERT INTO "communes" VALUES('18','Lissay-Lochy','17',218,190,22.06,'78','52191',143,179);
INSERT INTO "communes" VALUES('18','Bessais-le-Fromental','07',313,325,25.75,'473','51940',182,241);
INSERT INTO "communes" VALUES('18','Argenvières','24',480,437,14.72,'743','52375',156,192);
INSERT INTO "communes" VALUES('18','Saint-Éloy-de-Gy','23',1529,1382,31.2,'7','52396',133,235);
INSERT INTO "communes" VALUES('18','Croisy','21',155,130,12.96,'525','52154',194,270);
INSERT INTO "communes" VALUES('18','Arcomps','27',301,286,20.14,'107','51862',169,228);
INSERT INTO "communes" VALUES('18','Gron','04',475,426,26.22,'449','52357',167,263);
INSERT INTO "communes" VALUES('18','Givardon','26',310,291,21.9,'534','52045',184,268);
INSERT INTO "communes" VALUES('18','Saint-Germain-des-Bois','12',573,547,29,'119','52126',162,184);
INSERT INTO "communes" VALUES('18','Coust','07',455,475,21.89,'289','51880',153,247);
INSERT INTO "communes" VALUES('18','Levet','17',1366,1269,25.97,'80','52140',159,181);
INSERT INTO "communes" VALUES('18','Berry-Bouy','20',1216,934,30.87,'-52','52344',113,162);
INSERT INTO "communes" VALUES('18','Plaimpied-Givaudins','17',1744,1642,40.51,'131','52221',128,177);
INSERT INTO "communes" VALUES('18','Reigny','09',257,266,24.61,'18','51752',202,303);
INSERT INTO "communes" VALUES('18','<NAME>','35',3205,3194,7.83,'-13','52292',128,159);
INSERT INTO "communes" VALUES('18','Chavannes','10',183,164,24.06,'44','52059',155,179);
INSERT INTO "communes" VALUES('18','Méreau','19',2396,2071,18.65,'-317','52404',95,136);
INSERT INTO "communes" VALUES('18','Vouzeron','30',550,447,52.63,'-127','52512',118,190);
INSERT INTO "communes" VALUES('18','Quincy','19',876,775,18.19,'-200','52371',103,136);
INSERT INTO "communes" VALUES('18','Verdigny','25',284,270,4.99,'524','52608',181,342);
INSERT INTO "communes" VALUES('18','Saint-Hilaire-de-Court','30',670,735,11.75,'-349','52452',93,146);
INSERT INTO "communes" VALUES('18','Villequiers','04',526,446,29.49,'520','52299',174,216);
INSERT INTO "communes" VALUES('18','Morlac','11',335,334,32.38,'-31','51910',165,237);
INSERT INTO "communes" VALUES('18','Chassy','04',256,229,17.76,'555','52269',175,252);
INSERT INTO "communes" VALUES('18','Saint-Céols','01',18,32,3.34,'326','52469',194,278);
INSERT INTO "communes" VALUES('18','Chaumoux-Marcilly','24',101,101,16.72,'490','52361',175,269);
INSERT INTO "communes" VALUES('18','Chéry','19',221,238,13.54,'-322','52356',104,161);
INSERT INTO "communes" VALUES('18','Cogny','12',39,40,16.69,'355','52056',163,236);
INSERT INTO "communes" VALUES('18','Graçay','13',1500,1562,31.82,'-544','52381',97,164);
INSERT INTO "communes" VALUES('18','Saint-Jeanvrin','09',165,150,17.53,'-114','51773',204,267);
INSERT INTO "communes" VALUES('18','Villegenon','28',237,245,32.93,'299','52695',194,359);
INSERT INTO "communes" VALUES('18','Barlieu','28',412,365,27.87,'325','52765',181,296);
INSERT INTO "communes" VALUES('18','Ivoy-le-Pré','06',889,857,98.74,'167','52606',191,355);
INSERT INTO "communes" VALUES('18','Couy','24',380,334,18.36,'543','52352',171,219);
INSERT INTO "communes" VALUES('18','Veaugues','25',658,610,27.92,'468','52508',180,346);
INSERT INTO "communes" VALUES('18','Sainte-Gemme-en-Sancerrois','16',405,416,14.84,'533','52660',174,303);
INSERT INTO "communes" VALUES('18','Bengy-sur-Craon','04',671,608,35.24,'457','52223',173,230);
INSERT INTO "communes" VALUES('18','Allogny','23',1018,896,49.53,'-15','52474',138,288);
INSERT INTO "communes" VALUES('18','Sidiailles','09',309,331,31.96,'-20','51675',233,366);
INSERT INTO "communes" VALUES('18','Dampierre-en-Graçay','13',238,225,9.38,'-437','52422',107,171);
INSERT INTO "communes" VALUES('18','Serruelles','10',50,58,7.51,'38','52092',159,179);
INSERT INTO "communes" VALUES('18','Chezal-Benoît','18',872,983,46.46,'-247','52030',137,187);
INSERT INTO "communes" VALUES('18','Saint-Michel-de-Volangis','01',470,330,17.42,'169','52386',137,172);
INSERT INTO "communes" VALUES('18','La Celette','27',183,181,24.81,'205','51835',165,231);
INSERT INTO "communes" VALUES('18','Saint-Georges-sur-la-Prée','13',636,601,22.83,'-444','52473',91,151);
INSERT INTO "communes" VALUES('18','Farges-en-Septaine','04',987,737,24.48,'348','52304',144,181);
INSERT INTO "communes" VALUES('18','Sainte-Thorette','20',472,425,26.54,'-153','52313',107,146);
INSERT INTO "communes" VALUES('18','Gardefort','25',139,107,8.44,'547','52521',175,236);
INSERT INTO "communes" VALUES('18','Saint-Martin-des-Champs','24',336,333,18.96,'651','52397',159,188);
INSERT INTO "communes" VALUES('18','Sury-en-Vaux','25',729,721,15.82,'520','52631',183,326);
INSERT INTO "communes" VALUES('18','Genouilly','13',715,757,34.66,'-501','52435',99,176);
INSERT INTO "communes" VALUES('18','Vailly-sur-Sauldre','28',790,805,18.25,'349','52731',188,273);
INSERT INTO "communes" VALUES('18','Baugy','04',1425,1146,22.6,'434','52313',157,202);
INSERT INTO "communes" VALUES('18','Saint-Bouize','25',332,295,14.97,'609','52539',148,248);
INSERT INTO "communes" VALUES('18','Flavigny','21',200,184,13.06,'516','52186',174,245);
INSERT INTO "communes" VALUES('18','Saulzais-le-Potier','27',541,497,32.38,'177','51777',189,251);
INSERT INTO "communes" VALUES('18','Mehun-sur-Yèvre','20',6820,7213,24.45,'-134','52384',107,137);
INSERT INTO "communes" VALUES('18','Ainay-le-Vieil','27',227,198,13.77,'239','51852',153,212);
INSERT INTO "communes" VALUES('18','<NAME>','14',3339,3403,52.7,'679','52168',175,222);
INSERT INTO "communes" VALUES('18','Foëcy','20',2059,2004,16.21,'-194','52419',97,127);
INSERT INTO "communes" VALUES('18','Farges-Allichamps','22',225,214,8.3,'71','51954',142,222);
INSERT INTO "communes" VALUES('18','Poisieux','08',214,159,10.3,'-265','52255',113,152);
INSERT INTO "communes" VALUES('18','Trouy','17',3827,2976,23.19,'24','52234',133,174);
INSERT INTO "communes" VALUES('18','Sens-Beaujeu','25',430,377,21.54,'413','52585',223,392);
INSERT INTO "communes" VALUES('18','Blancafort','02',1140,994,64.35,'216','52814',162,261);
INSERT INTO "communes" VALUES('18','Senneçay','17',450,345,14.47,'112','52168',154,181);
INSERT INTO "communes" VALUES('18','Nozières','22',230,229,10.35,'109','51923',144,224);
INSERT INTO "communes" VALUES('18','Sagonne','26',235,221,18.85,'543','52056',189,251);
INSERT INTO "communes" VALUES('18','Vornay','04',562,446,26.35,'274','52192',150,183);
INSERT INTO "communes" VALUES('18','Sancoins','26',3309,3553,53.52,'647','52036',192,233);
INSERT INTO "communes" VALUES('18','Augy-sur-Aubois','26',302,296,30.46,'564','51983',197,256);
INSERT INTO "communes" VALUES('18','Saint-Pierre-les-Étieux','07',738,791,27.34,'286','51931',161,291);
INSERT INTO "communes" VALUES('18','Lunery','08',1446,1536,32.87,'-73','52150',121,173);
INSERT INTO "communes" VALUES('18','Ennordres','06',215,249,63.79,'52','52700',154,293);
INSERT INTO "communes" VALUES('18','Arçay','17',533,378,18.32,'4','52165',145,174);
INSERT INTO "communes" VALUES('18','Neuilly-en-Sancerre','15',237,212,26.05,'389','52559',238,422);
INSERT INTO "communes" VALUES('18','Neuilly-en-Dun','26',283,259,29.46,'496','51999',178,265);
INSERT INTO "communes" VALUES('18','Grossouvre','26',286,238,15.75,'668','52087',182,230);
INSERT INTO "communes" VALUES('18','Belleville-sur-Loire','16',1042,1088,11.01,'571','52785',133,231);
INSERT INTO "communes" VALUES('18','Limeux','19',150,144,13.17,'-253','52305',127,149);
INSERT INTO "communes" VALUES('18','Blet','21',649,616,30.08,'439','52106',170,256);
INSERT INTO "communes" VALUES('18','Orval','22',1911,2000,7.65,'161','51917',147,199);
INSERT INTO "communes" VALUES('18','Assigny','28',152,167,17.05,'465','52697',213,357);
INSERT INTO "communes" VALUES('18','Montigny','15',380,373,28.65,'383','52488',191,353);
INSERT INTO "communes" VALUES('18','Germigny-l''Exempt','14',327,335,28.26,'624','52131',180,227);
INSERT INTO "communes" VALUES('18','Colombiers','22',405,356,9.51,'226','51890',153,210);
INSERT INTO "communes" VALUES('18','Vignoux-sous-les-Aix','23',713,657,14.94,'142','52429',156,237);
INSERT INTO "communes" VALUES('18','Charly','21',218,257,25.66,'458','52110',169,256);
INSERT INTO "communes" VALUES('18','Sainte-Montaine','03',195,170,53.79,'-18','52767',133,183);
INSERT INTO "communes" VALUES('18','Marseilles-lès-Aubigny','24',675,691,9.88,'752','52297',157,198);
INSERT INTO "communes" VALUES('18','Ineuil','18',234,248,27.48,'-52','51974',158,188);
INSERT INTO "communes" VALUES('18','Saint-Caprais','17',670,491,14.42,'-48','52187',122,171);
INSERT INTO "communes" VALUES('18','Saint-Palais','23',619,609,26.12,'93','52481',164,310);
INSERT INTO "communes" VALUES('18','Humbligny','15',172,180,20.86,'361','52504',227,428);
INSERT INTO "communes" VALUES('18','Saint-Hilaire-de-Gondilly','21',183,190,18.42,'611','52277',184,251);
INSERT INTO "communes" VALUES('18','Rezay','11',225,218,21.26,'-176','51859',167,260);
INSERT INTO "communes" VALUES('18','Savigny-en-Sancerre','16',1082,1023,33.31,'525','52712',176,298);
INSERT INTO "communes" VALUES('18','Saint-Hilaire-en-Lignières','18',498,522,53.78,'-181','51918',159,268);
INSERT INTO "communes" VALUES('18','Mareuil-sur-Arnon','08',563,591,25.89,'-197','52090',132,172);
INSERT INTO "communes" VALUES('18','Osmery','12',280,254,21.27,'354','52150',161,199);
INSERT INTO "communes" VALUES('18','Cuffy','14',1123,996,34.57,'796','52179',166,210);
INSERT INTO "communes" VALUES('18','Vignoux-sur-Barangeon','30',2107,1878,24.87,'-183','52446',102,176);
INSERT INTO "communes" VALUES('18','Saint-Priest-la-Marche','09',235,245,20.33,'-178','51610',339,500);
INSERT INTO "communes" VALUES('18','Ignol','21',172,178,17.67,'566','52185',186,266);
INSERT INTO "communes" VALUES('18','Lury-sur-Arnon','19',676,670,13.84,'-311','52364',103,138);
INSERT INTO "communes" VALUES('18','Azy','01',484,443,27.62,'413','52426',179,241);
INSERT INTO "communes" VALUES('18','Aix-d''Angillon','01',1945,2006,14.68,'261','52443',163,211);
INSERT INTO "communes" VALUES('18','Savigny-en-Septaine','04',659,623,22.58,'249','52271',137,172);
INSERT INTO "communes" VALUES('18','Raymond','12',221,156,9.24,'388','52190',177,200);
INSERT INTO "communes" VALUES('18','Garigny','24',213,248,19.66,'612','52319',171,202);
INSERT INTO "communes" VALUES('18','<NAME>','18',198,179,30.94,'-169','51993',147,198);
INSERT INTO "communes" VALUES('18','Apremont-sur-Allier','14',73,89,30.69,'790','52118',168,226);
INSERT INTO "communes" VALUES('18','Saint-Saturnin','09',422,466,39.04,'-110','51675',282,442);
INSERT INTO "communes" VALUES('18','<NAME>','06',665,667,10.17,'107','52626',183,283);
INSERT INTO "communes" VALUES('18','Saligny-le-Vif','04',171,157,15.29,'477','52273',174,227);
INSERT INTO "communes" VALUES('18','Montlouis','18',114,120,18.98,'-107','52016',152,181);
INSERT INTO "communes" VALUES('18','Verneuil','12',40,37,11.04,'298','52019',161,188);
INSERT INTO "communes" VALUES('18','Torteron','14',804,739,13.53,'699','52247',167,208);
INSERT INTO "communes" VALUES('18','Soye-en-Septaine','17',572,563,18.57,'170','52252',132,177);
INSERT INTO "communes" VALUES('18','Nançay','30',882,738,106.33,'-158','52611',112,163);
INSERT INTO "communes" VALUES('18','Saint-Denis-de-Palin','12',336,339,30.51,'225','52155',142,184);
INSERT INTO "communes" VALUES('18','Contres','12',35,31,16.03,'170','52076',160,175);
INSERT INTO "communes" VALUES('18','Cours-les-Barres','14',1082,1082,21.16,'772','52250',162,209);
INSERT INTO "communes" VALUES('18','Ids-Saint-Roch','11',312,276,27.83,'-106','51897',165,246);
INSERT INTO "communes" VALUES('18','Thauvenay','25',346,302,9.86,'590','52561',142,295);
INSERT INTO "communes" VALUES('18','Henrichemont','15',1802,1829,25.27,'209','52559',217,390);
INSERT INTO "communes" VALUES('18','Châteaumeillant','09',2015,2057,42.48,'-151','51736',212,388);
INSERT INTO "communes" VALUES('18','Marçais','22',316,324,29.03,'38','51886',177,241);
INSERT INTO "communes" VALUES('18','Oizon','03',712,752,62.03,'199','52749',184,326);
INSERT INTO "communes" VALUES('18','Thénioux','30',663,602,18.33,'-450','52507',87,158);
INSERT INTO "communes" VALUES('18','Presly','06',253,228,74.63,'24','52653',137,238);
INSERT INTO "communes" VALUES('18','Nohant-en-Goût','04',561,429,24.79,'260','52333',134,179);
INSERT INTO "communes" VALUES('18','<NAME>','28',260,266,19.98,'383','52649',208,374);
INSERT INTO "communes" VALUES('18','Chârost','08',1035,1070,10.97,'-245','52214',119,162);
INSERT INTO "communes" VALUES('18','Feux','25',348,349,27.46,'579','52478',152,215);
INSERT INTO "communes" VALUES('18','Aubinges','01',359,333,10.97,'273','52469',184,262);
INSERT INTO "communes" VALUES('18','Crosses','04',329,304,26.49,'272','52234',142,179);
INSERT INTO "communes" VALUES('18','<NAME>','08',943,711,20.28,'-47','52234',137,169);
INSERT INTO "communes" VALUES('18','Saint-Ambroix','08',411,374,31.22,'-240','52146',125,166);
INSERT INTO "communes" VALUES('18','Cerbois','19',445,357,18.45,'-270','52348',118,142);
INSERT INTO "communes" VALUES('18','Épineuil-le-Fleuriel','27',463,414,41.6,'274','51732',163,260);
INSERT INTO "communes" VALUES('18','Osmoy','04',297,288,22.63,'207','52304',132,172);
INSERT INTO "communes" VALUES('18','Jussy-le-Chaudrier','24',634,527,25.73,'664','52364',165,209);
INSERT INTO "communes" VALUES('18','Fussy','23',1965,1950,11.08,'103','52383',133,168);
INSERT INTO "communes" VALUES('18','Saint-Germain-du-Puy','01',4830,5007,21.63,'161','52333',126,174);
INSERT INTO "communes" VALUES('18','Allouis','20',948,771,35.59,'-122','52407',105,161);
INSERT INTO "communes" VALUES('18','Menetou-Râtel','25',481,481,28.01,'466','52612',242,377);
INSERT INTO "communes" VALUES('18','Saint-Outrille','13',215,203,12.48,'-551','52382',97,151);
INSERT INTO "communes" VALUES('18','Jouet-sur-l''Aubois','14',1495,1341,17.33,'724','52273',160,207);
INSERT INTO "communes" VALUES('18','Méry-sur-Cher','30',700,625,20.91,'-387','52496',93,158);
INSERT INTO "communes" VALUES('18','Lapan','17',168,142,10.5,'-41','52137',126,174);
INSERT INTO "communes" VALUES('18','Pigny','23',797,716,8.08,'123','52411',144,213);
INSERT INTO "communes" VALUES('18','Venesmes','10',884,740,31.76,'-26','52044',131,188);
INSERT INTO "communes" VALUES('18','Marmagne','35',2041,1941,37.66,'-59','52335',113,149);
INSERT INTO "communes" VALUES('18','Brinay','19',521,466,29.48,'-232','52419',97,137);
INSERT INTO "communes" VALUES('18','Annoix','17',231,263,11.79,'220','52178',142,179);
INSERT INTO "communes" VALUES('18','Brinon-sur-Sauldre','02',1033,1088,116.3,'-91','52850',118,162);
INSERT INTO "communes" VALUES('18','Châteauneuf-sur-Cher','10',1500,1616,21.97,'-22','52064',132,174);
INSERT INTO "communes" VALUES('18','Léré','16',1189,1297,15.98,'596','52744',132,198);
INSERT INTO "communes" VALUES('18','Maisonnais','11',231,222,26.95,'-134','51822',182,247);
INSERT INTO "communes" VALUES('18','Morthomiers','08',731,589,14.54,'-67','52263',124,157);
INSERT INTO "communes" VALUES('18','<NAME>','14',387,376,16.16,'680','52119',180,225);
INSERT INTO "communes" VALUES('18','Saint-Léger-le-Petit','24',399,355,10.05,'742','52358',157,195);
INSERT INTO "communes" VALUES('18','Santranges','16',426,369,24.31,'484','52776',174,269);
INSERT INTO "communes" VALUES('18','Nérondes','21',1560,1624,34,'537','52220',176,252);
INSERT INTO "communes" VALUES('18','Thou','28',78,75,9.19,'360','52695',198,311);
INSERT INTO "communes" VALUES('18','Tendron','21',114,110,10.44,'526','52203',176,263);
INSERT INTO "communes" VALUES('18','Saint-Satur','25',1603,1731,7.86,'574','52601',144,273);
INSERT INTO "communes" VALUES('18','Loye-sur-Arnon','27',303,308,34.15,'55','51836',189,248);
INSERT INTO "communes" VALUES('18','Le Châtelet','11',1124,1103,32.8,'-59','51824',186,276);
INSERT INTO "communes" VALUES('18','Clémont','02',708,644,50.11,'-33','52854',134,168);
INSERT INTO "communes" VALUES('18','Jussy-Champagne','04',225,265,27.3,'342','52206',162,194);
INSERT INTO "communes" VALUES('18','Boulleret','16',1355,1421,32.71,'595','52694',135,203);
INSERT INTO "communes" VALUES('18','Saint-Christophe-le-Chaudry','09',98,133,17.52,'36','51757',202,317);
INSERT INTO "communes" VALUES('18','Mornay-sur-Allier','26',439,440,21.62,'769','52021',179,222);
INSERT INTO "communes" VALUES('18','Avord','04',2675,2334,27.98,'352','52259',147,196);
INSERT INTO "communes" VALUES('18','Sévry','24',73,73,9.04,'519','52369',184,231);
INSERT INTO "communes" VALUES('18','Saint-Georges-sur-Moulon','23',747,667,9.43,'96','52434',142,212);
INSERT INTO "communes" VALUES('18','Brécy','01',844,706,39.63,'314','52360',149,229);
INSERT INTO "communes" VALUES('18','Préveranges','09',583,665,38.16,'-91','51592',285,502);
INSERT INTO "communes" VALUES('18','Nohant-en-Graçay','13',313,306,23.78,'-492','52374',112,167);
INSERT INTO "communes" VALUES('18','Saint-Baudel','18',299,248,30.09,'-144','52043',137,181);
INSERT INTO "communes" VALUES('18','Saint-Florent-sur-Cher','08',6608,6888,22.41,'-94','52217',117,164);
INSERT INTO "communes" VALUES('18','Arpheuilles','07',340,323,48.01,'249','51981',163,308);
INSERT INTO "communes" VALUES('18','Plou','08',484,436,33.21,'-202','52238',122,161);
INSERT INTO "communes" VALUES('18','Ourouer-les-Bourdelins','21',645,652,24.64,'497','52145',173,256);
INSERT INTO "communes" VALUES('18','Dun-sur-Auron','12',4440,4012,50.09,'261','52094',151,188);
INSERT INTO "communes" VALUES('18','Saint-Georges-de-Poisieux','27',419,357,15.61,'158','51874',152,218);
INSERT INTO "communes" VALUES('18','Bannegon','07',261,254,21.08,'419','52001',173,256);
INSERT INTO "communes" VALUES('18','Vesdun','27',620,623,48.61,'103','51710',219,367);
INSERT INTO "communes" VALUES('18','Saint-Aignan-des-Noyers','26',100,79,10.95,'533','51962',202,257);
INSERT INTO "communes" VALUES('18','Lantan','12',106,107,13.36,'362','52119',167,200);
INSERT INTO "communes" VALUES('18','Thaumiers','07',418,379,27.33,'354','52024',165,236);
INSERT INTO "communes" VALUES('18','Vallenay','10',705,709,25.66,'38','52002',138,226);
INSERT INTO "communes" VALUES('18','Ménétréol-sur-Sauldre','03',250,271,50.08,'-32','52720',131,183);
INSERT INTO "communes" VALUES('18','Saint-Vitte','27',137,136,16.38,'220','51719',184,277);
INSERT INTO "communes" VALUES('18','Couargues','25',197,228,11.62,'658','52530',141,155);
INSERT INTO "communes" VALUES('18','Herry','24',1029,1017,49.87,'686','52463',147,188);
INSERT INTO "communes" VALUES('18','Neuvy-sur-Barangeon','30',1251,1158,67.34,'-92','52573',129,242);
INSERT INTO "communes" VALUES('18','Massay','30',1404,1336,47.94,'-382','52393',99,164);
INSERT INTO "communes" VALUES('18','Laverdines','04',54,42,9.89,'513','52256',177,221);
INSERT INTO "communes" VALUES('18','Parassy','01',416,429,26.02,'234','52481',173,348);
INSERT INTO "communes" VALUES('18','Vereaux','26',176,159,22.96,'603','52089',191,236);
INSERT INTO "communes" VALUES('18','Sancerre','25',1607,1800,16.27,'558','52590',146,366);
INSERT INTO "communes" VALUES('18','Subligny','28',348,304,17.26,'465','52671',217,336);
INSERT INTO "communes" VALUES('18','Lugny-Champagne','24',170,166,29.54,'539','52429',162,204);
INSERT INTO "communes" VALUES('18','Ménétréol-sous-Sancerre','25',396,354,5.67,'577','52575',142,252);
INSERT INTO "communes" VALUES('18','Bussy','12',365,366,26.69,'316','52115',160,201);
INSERT INTO "communes" VALUES('18','Vinon','25',265,280,18.01,'544','52539',158,326);
INSERT INTO "communes" VALUES('18','Beddes','09',96,94,12.92,'-137','51784',192,257);
INSERT INTO "communes" VALUES('18','Vasselay','23',1177,1095,20.21,'58','52398',135,218);
INSERT INTO "communes" VALUES('18','Saugy','08',79,69,9.63,'-244','52189',122,162);
INSERT INTO "communes" VALUES('18','Sainte-Lunaise','17',24,23,13.95,'13','52134',145,179);
INSERT INTO "communes" VALUES('18','Orcenais','22',267,288,18.93,'99','51909',162,241);
INSERT INTO "communes" VALUES('18','Chalivoy-Milon','12',463,460,19.61,'410','52066',165,249);
INSERT INTO "communes" VALUES('18','Bourges','98',66381,72434,68.74,'66','52315',120,169);
INSERT INTO "communes" VALUES('18','Aubigny-sur-Nère','03',5769,5907,61.53,'114','52765',161,233);
INSERT INTO "communes" VALUES('18','Quantilly','23',432,442,12.69,'120','52472',161,286);
INSERT INTO "communes" VALUES('18','Jars','28',481,505,37.34,'385','52662',204,364);
INSERT INTO "communes" VALUES('18','Villeneuve-sur-Cher','08',435,469,26.13,'-126','52254',113,159);
INSERT INTO "communes" VALUES('18','Crézancy-en-Sancerre','25',478,501,18.92,'453','52561',208,377);
INSERT INTO "communes" VALUES('18','Villabon','04',559,463,18.28,'376','52330',163,220);
INSERT INTO "communes" VALUES('18','Achères','15',371,353,12.75,'125','52532',211,317);
INSERT INTO "communes" VALUES('18','Vernais','07',216,234,25.84,'419','51962',170,222);
INSERT INTO "communes" VALUES('18','Lazenay','19',357,354,30.74,'-307','52301',107,153);
INSERT INTO "communes" VALUES('18','Neuvy-le-Barrois','26',159,153,41.98,'779','52072',173,223);
INSERT INTO "communes" VALUES('18','Saint-Just','17',598,558,15.12,'191','52215',141,179);
INSERT INTO "communes" VALUES('18','Mornay-Berry','21',210,163,9.15,'594','52276',176,237);
INSERT INTO "communes" VALUES('18','<NAME>','27',257,244,10.45,'264','51828',158,221);
INSERT INTO "communes" VALUES('18','Primelles','08',251,261,26.57,'-137','52143',133,173);
INSERT INTO "communes" VALUES('18','Sainte-Solange','01',1180,1284,31.85,'237','52374',142,179);
INSERT INTO "communes" VALUES('18','Civray','08',995,1004,40.87,'-180','52186',125,162);
INSERT INTO "communes" VALUES('18','Meillant','22',713,792,40.6,'187','51979',152,288);
INSERT INTO "communes" VALUES('18','Cornusse','21',276,288,19.61,'438','52172',172,228);
INSERT INTO "communes" VALUES('18','<NAME>','22',354,330,12.8,'122','51965',149,247);
INSERT INTO "communes" VALUES('18','Villecelin','18',112,105,9.39,'-172','52029',145,183);
INSERT INTO "communes" VALUES('18','Touchay','18',282,298,23.41,'-139','51903',161,246);
INSERT INTO "communes" VALUES('18','Bouzais','22',291,253,3.35,'153','51895',150,202);
INSERT INTO "communes" VALUES('18','Dampierre-en-Crot','28',215,239,22.05,'274','52734',186,321);
INSERT INTO "communes" VALUES('18','Saint-Symphorien','10',132,105,9.54,'-29','52014',141,178);
INSERT INTO "communes" VALUES('18','Saint-Laurent','30',436,354,38.72,'-150','52472',109,188);
INSERT INTO "communes" VALUES('18','Bruère-Allichamps','22',629,575,13.9,'107','51965',137,217);
INSERT INTO "communes" VALUES('18','Sancergues','24',703,719,15.53,'644','52395',158,222);
INSERT INTO "communes" VALUES('18','Sury-ès-Bois','28',279,315,31.9,'409','52739',200,336);
INSERT INTO "communes" VALUES('18','Groises','24',143,138,17.63,'526','52455',167,208);
INSERT INTO "communes" VALUES('18','Argent-sur-Sauldre','02',2209,2503,67.35,'118','52841',144,210);
INSERT INTO "communes" VALUES('18','Beffes','24',697,672,11.83,'746','52325',153,196);
INSERT INTO "communes" VALUES('18','Crézançay-sur-Cher','10',65,56,7.65,'23','52014',133,177);
INSERT INTO "communes" VALUES('18','Charenton-du-Cher','07',1110,1096,47.89,'340','51922',167,253);
INSERT INTO "communes" VALUES('19','Turenne','18',793,742,28.03,'-838','50060',140,408);
INSERT INTO "communes" VALUES('19','Bort-les-Orgues','05',2988,3535,15.07,'177','50444',403,788);
INSERT INTO "communes" VALUES('19','Beyssac','15',697,726,21.32,'-1036','50413',215,432);
INSERT INTO "communes" VALUES('19','Saint-Pantaléon-de-Lapleau','13',70,66,8.46,'-146','50359',332,609);
INSERT INTO "communes" VALUES('19','Chasteaux','14',580,512,18.75,'-965','50103',124,325);
INSERT INTO "communes" VALUES('19','Chanteix','22',580,515,19.47,'-777','50344',312,451);
INSERT INTO "communes" VALUES('19','Neuvic','19',1810,1852,72.88,'-73','50424',321,698);
INSERT INTO "communes" VALUES('19','Saint-Bonnet-Elvert','01',203,166,18.37,'-481','50180',227,560);
INSERT INTO "communes" VALUES('19','Vignols','12',589,563,15.41,'-1052','50356',137,394);
INSERT INTO "communes" VALUES('19','Lamongerie','28',108,83,12.15,'-846','50596',393,498);
INSERT INTO "communes" VALUES('19','Chabrignac','12',559,430,11.04,'-1107','50351',136,382);
INSERT INTO "communes" VALUES('19','Moustier-Ventadour','10',490,402,29.85,'-258','50439',390,689);
INSERT INTO "communes" VALUES('19','Gros-Chastang','20',171,176,13.37,'-370','50239',260,546);
INSERT INTO "communes" VALUES('19','Saint-Cernin-de-Larche','14',597,456,9.15,'-1024','50114',105,312);
INSERT INTO "communes" VALUES('19','Davignac','17',243,272,30.14,'-270','50539',566,944);
INSERT INTO "communes" VALUES('19','Saillac','18',184,157,4.25,'-773','50042',160,303);
INSERT INTO "communes" VALUES('19','Affieux','24',371,349,30.19,'-633','50575',333,772);
INSERT INTO "communes" VALUES('19','Saint-Sulpice-les-Bois','17',72,53,22.92,'-212','50684',723,956);
INSERT INTO "communes" VALUES('19','Saint-Bonnet-Avalouze','36',202,249,5.14,'-561','50285',232,467);
INSERT INTO "communes" VALUES('19','Veyrières','05',65,66,4.1,'63','50545',595,722);
INSERT INTO "communes" VALUES('19','Roche-le-Peyroux','19',87,84,7.15,'49','50469',400,657);
INSERT INTO "communes" VALUES('19','Lagraulière','22',1111,920,30.75,'-775','50392',316,504);
INSERT INTO "communes" VALUES('19','Chapelle-Spinasse','10',115,133,5.89,'-327','50398',564,645);
INSERT INTO "communes" VALUES('19','Perpezac-le-Blanc','02',467,405,19.42,'-1116','50247',119,363);
INSERT INTO "communes" VALUES('19','Sainte-Féréole','09',1816,1604,35.58,'-838','50255',141,423);
INSERT INTO "communes" VALUES('19','Saint-Cyprien','02',381,248,7.86,'-1094','50279',116,330);
INSERT INTO "communes" VALUES('19','Favars','35',973,834,11.88,'-732','50293',317,486);
INSERT INTO "communes" VALUES('19','Palazinges','04',111,103,5.25,'-713','50177',306,551);
INSERT INTO "communes" VALUES('19','Sérandon','19',357,332,34.48,'1','50401',321,685);
INSERT INTO "communes" VALUES('19','Darnets','17',346,341,25.42,'-250','50474',471,663);
INSERT INTO "communes" VALUES('19','Saint-Pardoux-l''Ortigier','09',476,408,12.98,'-842','50331',286,423);
INSERT INTO "communes" VALUES('19','Lagleygeolle','18',224,235,19.54,'-712','50087',192,468);
INSERT INTO "communes" VALUES('19','Saint-Aulaire','02',856,744,10.79,'-1057','50264',103,337);
INSERT INTO "communes" VALUES('19','Saint-Julien-le-Pèlerin','16',135,133,15.4,'-288','50020',316,624);
INSERT INTO "communes" VALUES('19','Collonges-la-Rouge','18',470,415,14.31,'-757','50068',144,493);
INSERT INTO "communes" VALUES('19','Naves','35',2319,2036,35.93,'-634','50348',222,505);
INSERT INTO "communes" VALUES('19','Espagnac','20',334,341,23.63,'-489','50256',302,564);
INSERT INTO "communes" VALUES('19','Monceaux-sur-Dordogne','01',673,665,36.93,'-476','50091',147,508);
INSERT INTO "communes" VALUES('19','Varetz','34',2239,1917,20.38,'-984','50216',90,262);
INSERT INTO "communes" VALUES('19','Saint-Bonnet-près-Bort','05',188,165,17.14,'89','50560',637,743);
INSERT INTO "communes" VALUES('19','Queyssac-les-Vignes','03',207,180,11.13,'-632','49962',134,343);
INSERT INTO "communes" VALUES('19','Toy-Viam','07',32,28,9.93,'-449','50720',609,857);
INSERT INTO "communes" VALUES('19','<NAME>','36',353,308,7.87,'-669','50192',436,553);
INSERT INTO "communes" VALUES('19','Mestes','27',355,262,11.45,'-29','50547',545,686);
INSERT INTO "communes" VALUES('19','Dampniat','34',685,581,15.38,'-783','50187',116,377);
INSERT INTO "communes" VALUES('19','Valiergues','27',143,121,13.13,'-49','50532',612,720);
INSERT INTO "communes" VALUES('19','Saint-Hilaire-Luc','19',76,87,10.84,'-147','50403',398,641);
INSERT INTO "communes" VALUES('19','Yssandon','02',684,599,20.17,'-1067','50232',109,356);
INSERT INTO "communes" VALUES('19','Saint-Paul','20',217,238,14.1,'-490','50243',269,574);
INSERT INTO "communes" VALUES('19','Saint-Privat','21',1118,1098,32.85,'-264','50154',491,623);
INSERT INTO "communes" VALUES('19','Vitrac-sur-Montane','08',258,214,27.24,'-445','50418',470,661);
INSERT INTO "communes" VALUES('19','Noailhac','18',359,310,13.51,'-798','50081',161,502);
INSERT INTO "communes" VALUES('19','Camps-Saint-Mathurin-Léobazel','16',245,242,34.08,'-385','49981',160,623);
INSERT INTO "communes" VALUES('19','Saint-Pardoux-le-Neuf','11',70,88,10.54,'-9','50682',650,845);
INSERT INTO "communes" VALUES('19','Tulle','99',14923,15496,24.44,'-627','50295',185,460);
INSERT INTO "communes" VALUES('19','Soursac','13',490,505,42.8,'-150','50306',251,571);
INSERT INTO "communes" VALUES('19','<NAME>','24',778,776,35.97,'-675','50515',321,565);
INSERT INTO "communes" VALUES('19','Clergoux','20',378,389,16.11,'-405','50310',511,603);
INSERT INTO "communes" VALUES('19','Chartrier-Ferrière','14',340,275,15.16,'-983','50079',231,324);
INSERT INTO "communes" VALUES('19','Péret-Bel-Air','17',107,87,15.49,'-329','50531',617,938);
INSERT INTO "communes" VALUES('19','Sioniac','03',246,206,10.6,'-582','49972',193,387);
INSERT INTO "communes" VALUES('19','Lafage-sur-Sombre','13',117,116,18.94,'-294','50329',493,686);
INSERT INTO "communes" VALUES('19','Saint-Mexant','35',1163,1030,18.64,'-754','50317',314,482);
INSERT INTO "communes" VALUES('19','Objat','02',3593,3368,9.57,'-1031','50292',109,244);
INSERT INTO "communes" VALUES('19','Millevaches','23',87,82,11.54,'-268','50713',800,956);
INSERT INTO "communes" VALUES('19','Darazac','21',157,140,14.55,'-280','50195',391,623);
INSERT INTO "communes" VALUES('19','Arnac-Pompadour','15',1227,1339,15.09,'-1062','50440',279,475);
INSERT INTO "communes" VALUES('19','Alleyrat','17',104,99,14.76,'-135','50641',654,844);
INSERT INTO "communes" VALUES('19','Lascaux','12',175,154,7.26,'-1080','50377',193,403);
INSERT INTO "communes" VALUES('19','Saint-Sornin-Lavolps','15',928,956,15.36,'-1060','50420',289,464);
INSERT INTO "communes" VALUES('19','Thalamy','05',109,85,11.84,'137','50570',632,768);
INSERT INTO "communes" VALUES('19','Angles-sur-Corrèze','36',103,108,4.73,'-600','50341',224,481);
INSERT INTO "communes" VALUES('19','Saint-Angel','37',687,591,47.54,'-117','50559',611,750);
INSERT INTO "communes" VALUES('19','Sainte-Fortunade','36',1775,1718,38.31,'-628','50230',187,585);
INSERT INTO "communes" VALUES('19','Lostanges','18',129,134,9.47,'-637','50069',146,523);
INSERT INTO "communes" VALUES('19','La Roche-Canillac','20',157,164,3.02,'-409','50217',280,523);
INSERT INTO "communes" VALUES('19','Saint-Germain-les-Vergnes','35',1008,845,19.15,'-779','50304',284,464);
INSERT INTO "communes" VALUES('19','Hautefage','21',312,280,24.06,'-373','50092',176,564);
INSERT INTO "communes" VALUES('19','Uzerche','28',3126,3058,23.85,'-859','50472',270,441);
INSERT INTO "communes" VALUES('19','Reygade','16',200,161,13.94,'-475','50017',160,526);
INSERT INTO "communes" VALUES('19','Argentat','01',3042,3121,22.41,'-443','50104',166,441);
INSERT INTO "communes" VALUES('19','Lestards','07',109,101,18.52,'-514','50573',518,894);
INSERT INTO "communes" VALUES('19','<NAME>-Saint-Géraud','16',232,226,17.59,'-425','50044',180,562);
INSERT INTO "communes" VALUES('19','Soudeilles','17',287,272,20.39,'-287','50495',533,851);
INSERT INTO "communes" VALUES('19','Nespouls','33',623,503,20.14,'-927','50055',203,366);
INSERT INTO "communes" VALUES('19','Curemonte','18',214,223,8.83,'-660','50001',127,360);
INSERT INTO "communes" VALUES('19','Saint-Julien-Maumont','18',172,155,6.21,'-701','50042',149,244);
INSERT INTO "communes" VALUES('19','Ménoire','01',90,75,6.43,'-604','50112',398,590);
INSERT INTO "communes" VALUES('19','Jugeals-Nazareth','33',853,687,10.95,'-863','50090',193,343);
INSERT INTO "communes" VALUES('19','Troche','29',540,486,19.79,'-995','50431',277,413);
INSERT INTO "communes" VALUES('19','Chaveroche','37',209,145,18.26,'-88','50638',612,814);
INSERT INTO "communes" VALUES('19','<NAME>','04',276,267,11.18,'-665','50078',173,567);
INSERT INTO "communes" VALUES('19','Saint-Salvadour','22',299,295,19.47,'-633','50439',305,528);
INSERT INTO "communes" VALUES('19','Astaillac','03',221,220,7.35,'-561','49946',128,306);
INSERT INTO "communes" VALUES('19','Eyburie','28',465,499,29.14,'-779','50511',296,452);
INSERT INTO "communes" VALUES('19','Égletons','10',4481,4093,16.85,'-324','50452',533,800);
INSERT INTO "communes" VALUES('19','Confolent-Port-Dieu','05',28,39,8.47,'178','50604',520,786);
INSERT INTO "communes" VALUES('19','Masseret','28',679,608,13.55,'-907','50606',385,520);
INSERT INTO "communes" VALUES('19','Orgnac-sur-Vézère','29',302,304,18.76,'-994','50369',171,406);
INSERT INTO "communes" VALUES('19','Soudaine-Lavinadière','24',178,193,21.86,'-663','50619',332,526);
INSERT INTO "communes" VALUES('19','La Chapelle-aux-Saints','03',226,166,4.72,'-679','49986',120,191);
INSERT INTO "communes" VALUES('19','Peyrissac','24',137,140,5.89,'-708','50558',331,442);
INSERT INTO "communes" VALUES('19','Saint-Clément','22',1275,1011,26.56,'-724','50379',353,547);
INSERT INTO "communes" VALUES('19','Sérilhac','04',281,314,12.53,'-679','50099',194,552);
INSERT INTO "communes" VALUES('19','Sadroc','09',801,636,19.26,'-875','50314',197,431);
INSERT INTO "communes" VALUES('19','Puy-d''Arnac','03',271,236,12.27,'-612','50031',136,366);
INSERT INTO "communes" VALUES('19','Aix','11',385,307,48.02,'51','50685',650,880);
INSERT INTO "communes" VALUES('19','Corrèze','08',1161,1148,34.16,'-513','50414',295,644);
INSERT INTO "communes" VALUES('19','Segonzac','02',233,239,20.21,'-1178','50307',150,348);
INSERT INTO "communes" VALUES('19','Chamboulive','22',1184,1149,46.8,'-702','50480',312,530);
INSERT INTO "communes" VALUES('19','Ayen','02',720,623,13.16,'-1121','50275',123,379);
INSERT INTO "communes" VALUES('19','Saint-Pardoux-la-Croisille','20',172,156,16.36,'-394','50273',424,564);
INSERT INTO "communes" VALUES('19','Ussac','34',3859,3260,24.63,'-919','50214',92,304);
INSERT INTO "communes" VALUES('19','Concèze','12',413,402,13.44,'-1102','50394',191,425);
INSERT INTO "communes" VALUES('19','Monestier-Merlines','11',314,342,9.48,'180','50733',614,774);
INSERT INTO "communes" VALUES('19','Gimel-les-Cascades','36',720,630,20.86,'-540','50333',220,606);
INSERT INTO "communes" VALUES('19','Saint-Germain-Lavolps','23',91,93,21.89,'-145','50682',639,856);
INSERT INTO "communes" VALUES('19','Saint-Hilaire-Peyroux','35',903,791,18.89,'-764','50238',120,447);
INSERT INTO "communes" VALUES('19','Sarran','08',255,289,26.09,'-443','50456',478,821);
INSERT INTO "communes" VALUES('19','Rilhac-Xaintrie','21',332,330,25.31,'-155','50186',264,653);
INSERT INTO "communes" VALUES('19','Louignac','02',222,186,21.91,'-1173','50253',145,314);
INSERT INTO "communes" VALUES('19','Cornil','36',1415,1362,19.66,'-716','50234',140,490);
INSERT INTO "communes" VALUES('19','Saint-Martin-la-Méanne','20',363,365,27.7,'-388','50189',195,548);
INSERT INTO "communes" VALUES('19','Venarsal','34',486,371,3.14,'-793','50217',192,389);
INSERT INTO "communes" VALUES('19','Saint-Ybard','28',664,590,30.05,'-906','50498',270,497);
INSERT INTO "communes" VALUES('19','Lagarde-Enval','36',760,748,21.55,'-588','50208',273,542);
INSERT INTO "communes" VALUES('19','Condat-sur-Ganaveix','28',643,631,37.52,'-825','50519',296,470);
INSERT INTO "communes" VALUES('19','Bellechassagne','23',74,78,13.34,'-123','50717',665,804);
INSERT INTO "communes" VALUES('19','Veix','24',71,72,22.14,'-556','50565',535,923);
INSERT INTO "communes" VALUES('19','Sexcles','16',227,239,25.91,'-365','50052',200,623);
INSERT INTO "communes" VALUES('19','Meilhards','28',515,519,44.99,'-764','50622',377,580);
INSERT INTO "communes" VALUES('19','Chauffour-sur-Vell','18',402,320,7.19,'-746','50021',127,190);
INSERT INTO "communes" VALUES('19','Chanac-les-Mines','36',494,482,13.26,'-574','50294',218,466);
INSERT INTO "communes" VALUES('19','Courteix','11',63,55,10.09,'6','50721',700,846);
INSERT INTO "communes" VALUES('19','Juillac','12',1153,1088,33.14,'-1127','50353',154,410);
INSERT INTO "communes" VALUES('19','Pérols-sur-Vézère','07',188,182,46.98,'-396','50651',708,943);
INSERT INTO "communes" VALUES('19','Saint-Fréjoux','27',289,248,24.93,'40','50607',637,829);
INSERT INTO "communes" VALUES('19','Merlines','11',803,898,14.07,'138','50719',590,773);
INSERT INTO "communes" VALUES('19','Saint-Éloy-les-Tuileries','15',120,124,9.13,'-1160','50497',263,367);
INSERT INTO "communes" VALUES('19','Saint-Chamant','01',504,511,14.05,'-490','50140',180,487);
INSERT INTO "communes" VALUES('19','Liginiac','19',641,629,28.53,'-4','50462',351,692);
INSERT INTO "communes" VALUES('19','Celle','24',135,139,20.58,'-568','50712',553,800);
INSERT INTO "communes" VALUES('19','Beaumont','22',111,128,10.9,'-593','50469',350,570);
INSERT INTO "communes" VALUES('19','Auriac','21',228,216,34.89,'-210','50227',249,687);
INSERT INTO "communes" VALUES('19','Saint-Cirgues-la-Loutre','21',190,188,18.41,'-264','50087',301,575);
INSERT INTO "communes" VALUES('19','Saint-Rémy','23',231,227,30.96,'-72','50729',670,828);
INSERT INTO "communes" VALUES('19','Beyssenac','15',369,347,18.3,'-1167','50449',253,436);
INSERT INTO "communes" VALUES('19','Gourdon-Murat','07',116,108,15.81,'-491','50601',675,859);
INSERT INTO "communes" VALUES('19','Ségur-le-Château','15',239,247,9.48,'-1146','50477',270,397);
INSERT INTO "communes" VALUES('19','Saint-Bonnet-les-Tours-de-Merle','16',43,45,5.94,'-305','50067',247,564);
INSERT INTO "communes" VALUES('19','Seilhac','22',1714,1636,25.75,'-692','50408',317,547);
INSERT INTO "communes" VALUES('19','Brivezac','03',182,199,8.24,'-551','50029',139,432);
INSERT INTO "communes" VALUES('19','Feyt','11',117,121,19.56,'154','50766',637,804);
INSERT INTO "communes" VALUES('19','Bar','08',323,316,20.82,'-580','50384',238,562);
INSERT INTO "communes" VALUES('19','Brignac-la-Plaine','02',864,807,18.72,'-1108','50210',99,336);
INSERT INTO "communes" VALUES('19','<NAME>','10',83,75,12.23,'-337','50357',504,682);
INSERT INTO "communes" VALUES('19','L''Église-aux-Bois','24',48,41,16.2,'-594','50721',518,753);
INSERT INTO "communes" VALUES('19','Chamberet','24',1325,1304,69.85,'-685','50648',376,727);
INSERT INTO "communes" VALUES('19','Champagnac-la-Noaille','10',230,189,25.47,'-354','50342',492,630);
INSERT INTO "communes" VALUES('19','Lanteuil','04',519,478,22.47,'-753','50144',154,447);
INSERT INTO "communes" VALUES('19','Pradines','07',104,95,19.59,'-475','50563',599,907);
INSERT INTO "communes" VALUES('19','Rosiers-de-Juillac','12',188,194,9.85,'-1149','50327',135,273);
INSERT INTO "communes" VALUES('19','Montgibaud','15',235,241,13.99,'-1015','50576',324,474);
INSERT INTO "communes" VALUES('19','Voutezac','12',1270,1142,22.38,'-999','50325',105,402);
INSERT INTO "communes" VALUES('19','Perpezac-le-Noir','29',1092,875,24.79,'-871','50363',278,452);
INSERT INTO "communes" VALUES('19','Marcillac-la-Croze','18',182,213,6.08,'-659','50039',148,255);
INSERT INTO "communes" VALUES('19','Peyrelevade','23',815,829,66.43,'-313','50782',674,951);
INSERT INTO "communes" VALUES('19','Aubazines','04',874,737,14.1,'-741','50193',126,522);
INSERT INTO "communes" VALUES('19','Espartignac','28',410,385,14.03,'-823','50461',292,472);
INSERT INTO "communes" VALUES('19','Saint-Sylvain','01',146,139,7.49,'-512','50195',236,546);
INSERT INTO "communes" VALUES('19','Saint-Merd-les-Oussines','07',127,112,42.46,'-330','50703',731,934);
INSERT INTO "communes" VALUES('19','Maussac','17',407,387,13.78,'-215','50525',555,685);
INSERT INTO "communes" VALUES('19','Pandrignes','36',172,155,8.45,'-536','50254',314,561);
INSERT INTO "communes" VALUES('19','Meymac','17',2526,2623,87.15,'-211','50595',593,973);
INSERT INTO "communes" VALUES('19','Albignac','04',244,258,9.74,'-732','50155',154,509);
INSERT INTO "communes" VALUES('19','Salon-la-Tour','28',708,722,43.01,'-887','50561',335,492);
INSERT INTO "communes" VALUES('19','Saint-Martin-Sepert','15',272,260,15.71,'-961','50483',335,483);
INSERT INTO "communes" VALUES('19','Estivals','33',129,119,8.88,'-972','50031',253,356);
INSERT INTO "communes" VALUES('19','Sarroux','05',432,379,23.76,'104','50460',534,853);
INSERT INTO "communes" VALUES('19','Eygurande','11',699,779,34.37,'128','50735',709,904);
INSERT INTO "communes" VALUES('19','Latronche','13',146,154,19.79,'-121','50328',321,606);
INSERT INTO "communes" VALUES('19','Saint-Julien-près-Bort','05',431,369,30.63,'73','50462',400,841);
INSERT INTO "communes" VALUES('19','Eyrein','08',525,484,26.39,'-436','50372',523,639);
INSERT INTO "communes" VALUES('19','Monestier-Port-Dieu','05',124,116,18,'183','50548',523,783);
INSERT INTO "communes" VALUES('19','Larche','14',1609,1419,5.74,'-1023','50134',83,340);
INSERT INTO "communes" VALUES('19','Saint-Bazile-de-la-Roche','20',147,151,7.16,'-426','50168',210,532);
INSERT INTO "communes" VALUES('19','Saint-Hilaire-Taurieux','01',95,87,8.61,'-561','50094',231,553);
INSERT INTO "communes" VALUES('19','Beaulieu-sur-Dordogne','03',1253,1278,8.65,'-554','49976',125,387);
INSERT INTO "communes" VALUES('19','Saint-Bonnet-la-Rivière','12',371,305,10.11,'-1075','50333',122,256);
INSERT INTO "communes" VALUES('19','Forges','01',310,319,10.43,'-518','50173',207,455);
INSERT INTO "communes" VALUES('19','Saint-Cyr-la-Roche','12',470,326,8.24,'-1051','50302',112,229);
INSERT INTO "communes" VALUES('19','Lignareix','37',157,144,9.38,'-44','50682',648,761);
INSERT INTO "communes" VALUES('19','Saint-Pantaléon-de-Larche','14',4624,3774,23.47,'-989','50157',82,228);
INSERT INTO "communes" VALUES('19','Saint-Setiers','23',235,245,46.78,'-230','50774',695,955);
INSERT INTO "communes" VALUES('19','Tudeils','03',249,224,9.55,'-603','50056',147,462);
INSERT INTO "communes" VALUES('19','Albussac','01',693,664,36.26,'-557','50154',240,637);
INSERT INTO "communes" VALUES('19','Allassac','09',3796,3367,39.01,'-957','50287',103,387);
INSERT INTO "communes" VALUES('19','Tarnac','07',322,356,67.46,'-433','50756',533,878);
INSERT INTO "communes" VALUES('19','Saint-Augustin','08',453,405,29.31,'-554','50471',355,897);
INSERT INTO "communes" VALUES('19','Meyrignac-l''Église','08',50,46,10.22,'-538','50445',430,813);
INSERT INTO "communes" VALUES('19','Beynat','04',1263,1152,34.84,'-681','50138',189,581);
INSERT INTO "communes" VALUES('19','Saint-Exupéry-les-Roches','27',551,529,37,'37','50574',545,760);
INSERT INTO "communes" VALUES('19','Sornac','23',830,851,59.48,'-159','50741',660,958);
INSERT INTO "communes" VALUES('19','Saint-Pardoux-Corbier','15',366,323,17.44,'-984','50480',335,454);
INSERT INTO "communes" VALUES('19','Branceilles','18',260,236,11.59,'-696','50013',122,244);
INSERT INTO "communes" VALUES('19','Ussel','97',10245,10749,50.37,'-30','50609',588,781);
INSERT INTO "communes" VALUES('19','Saint-Yrieix-le-Déjalat','10',391,392,40.33,'-406','50508',534,876);
INSERT INTO "communes" VALUES('19','Vigeois','29',1233,1192,43.25,'-910','50422',227,452);
INSERT INTO "communes" VALUES('19','Saint-Geniez-ô-Merle','21',105,116,15.83,'-303','50092',243,563);
INSERT INTO "communes" VALUES('19','Lamazière-Basse','19',297,286,44.04,'-184','50414',345,648);
INSERT INTO "communes" VALUES('19','Saint-Étienne-la-Geneste','19',93,61,5.01,'10','50496',545,637);
INSERT INTO "communes" VALUES('19','Saint-Julien-le-Vendômois','15',264,307,23.29,'-1120','50513',273,374);
INSERT INTO "communes" VALUES('19','Liourdres','03',224,181,5.91,'-584','49922',129,280);
INSERT INTO "communes" VALUES('19','Benayes','15',267,289,23.12,'-962','50578',333,479);
INSERT INTO "communes" VALUES('19','Combressol','17',346,304,25.43,'-196','50528',510,728);
INSERT INTO "communes" VALUES('19','Saint-Jal','22',651,597,26.55,'-770','50441',332,503);
INSERT INTO "communes" VALUES('19','Orliac-de-Bar','08',269,227,14.97,'-595','50401',268,528);
INSERT INTO "communes" VALUES('19','Couffy-sur-Sarsonne','11',73,70,14.05,'-9','50735',727,915);
INSERT INTO "communes" VALUES('19','Saint-Priest-de-Gimel','36',473,416,17.68,'-498','50352',480,618);
INSERT INTO "communes" VALUES('19','Ladignac-sur-Rondelles','36',440,409,10.18,'-554','50259',273,470);
INSERT INTO "communes" VALUES('19','Montaignac-Saint-Hippolyte','10',548,567,20.47,'-397','50393',518,643);
INSERT INTO "communes" VALUES('19','Lamazière-Haute','11',70,82,15.31,'66','50745',746,916);
INSERT INTO "communes" VALUES('19','Madranges','24',194,177,12.88,'-607','50528',494,800);
INSERT INTO "communes" VALUES('19','Saint-Merd-de-Lapleau','13',152,140,24.5,'-283','50285',251,610);
INSERT INTO "communes" VALUES('19','Altillac','16',854,800,25.23,'-545','49974',136,502);
INSERT INTO "communes" VALUES('19','Estivaux','29',373,322,16.58,'-947','50350',180,424);
INSERT INTO "communes" VALUES('19','Mansac','14',1362,1311,18.4,'-1059','50187',88,243);
INSERT INTO "communes" VALUES('19','Rosiers-d''Égletons','10',1078,1012,38.18,'-365','50419',565,826);
INSERT INTO "communes" VALUES('19','Treignac','24',1376,1418,36.73,'-602','50597',375,765);
INSERT INTO "communes" VALUES('19','Nonards','03',450,333,11.1,'-588','50024',152,451);
INSERT INTO "communes" VALUES('19','Chirac-Bellevue','19',269,204,20.65,'-35','50502',545,691);
INSERT INTO "communes" VALUES('19','Saint-Hilaire-Foissac','13',210,232,36.92,'-235','50368',359,673);
INSERT INTO "communes" VALUES('19','Saint-Bonnet-l''Enfantier','29',344,258,11.78,'-904','50333',283,435);
INSERT INTO "communes" VALUES('19','Laval-sur-Luzège','13',98,89,16.94,'-225','50297',260,560);
INSERT INTO "communes" VALUES('19','Palisse','19',235,226,32.89,'-145','50465',511,706);
INSERT INTO "communes" VALUES('19','La Chapelle-aux-Brocs','34',406,342,4.99,'-789','50162',137,349);
INSERT INTO "communes" VALUES('19','Laguenne','36',1465,1448,7.01,'-617','50269',198,428);
INSERT INTO "communes" VALUES('19','Saint-Martial-de-Gimel','36',472,456,24.04,'-515','50297',307,610);
INSERT INTO "communes" VALUES('19','Laroche-près-Feyt','11',75,80,17.24,'189','50784',650,775);
INSERT INTO "communes" VALUES('19','Ambrugeat','17',203,219,29.57,'-243','50585',614,972);
INSERT INTO "communes" VALUES('19','Marcillac-la-Croisille','20',852,779,38.69,'-341','50303',247,642);
INSERT INTO "communes" VALUES('19','Saint-Viance','09',1676,1411,16.23,'-982','50242',95,190);
INSERT INTO "communes" VALUES('19','Gumond','20',103,103,9.87,'-397','50245',350,546);
INSERT INTO "communes" VALUES('19','Sainte-Marie-Lapanouze','19',61,43,6.63,'4','50479',409,646);
INSERT INTO "communes" VALUES('19','Lapleau','13',381,525,17.76,'-189','50326',280,583);
INSERT INTO "communes" VALUES('19','Lubersac','15',2314,2169,57.46,'-1035','50494',285,441);
INSERT INTO "communes" VALUES('19','Saint-Bazile-de-Meyssac','18',151,151,4.47,'-678','50056',164,338);
INSERT INTO "communes" VALUES('19','Champagnac-la-Prune','20',171,160,13.27,'-429','50206',246,546);
INSERT INTO "communes" VALUES('19','Donzenac','09',2545,2143,24.24,'-903','50253',112,388);
INSERT INTO "communes" VALUES('19','Saint-Robert','02',342,334,6.08,'-1159','50284',158,354);
INSERT INTO "communes" VALUES('19','Chavanac','23',56,49,9.85,'-269','50694',831,952);
INSERT INTO "communes" VALUES('19','Chaumeil','08',161,192,31.7,'-505','50507',524,911);
INSERT INTO "communes" VALUES('19','Malemort-sur-Corrèze','34',7709,6533,16.51,'-858','50190',107,320);
INSERT INTO "communes" VALUES('19','Cosnac','30',2902,2313,19.98,'-835','50149',134,381);
INSERT INTO "communes" VALUES('19','Saint-Étienne-aux-Clos','27',231,211,34.78,'138','50632',555,793);
INSERT INTO "communes" VALUES('19','Brive-la-Gaillarde','98',48949,49127,48.59,'-893','50177',102,315);
INSERT INTO "communes" VALUES('19','Noailles','33',875,756,12.57,'-904','50114',151,315);
INSERT INTO "communes" VALUES('19','Rilhac-Treignac','24',119,121,9.42,'-723','50585',355,500);
INSERT INTO "communes" VALUES('19','Mercœur','16',244,267,29.94,'-432','50017',198,564);
INSERT INTO "communes" VALUES('19','Saint-Victour','05',186,171,14.79,'48','50516',513,737);
INSERT INTO "communes" VALUES('19','Saint-Pardoux-le-Vieux','37',281,239,15.8,'-67','50673',610,773);
INSERT INTO "communes" VALUES('19','Saint-Julien-aux-Bois','21',492,501,44.09,'-219','50144',354,664);
INSERT INTO "communes" VALUES('19','Servières-le-Château','21',670,719,24.24,'-346','50145',195,589);
INSERT INTO "communes" VALUES('19','Pierrefitte','22',75,79,10.01,'-765','50470',310,455);
INSERT INTO "communes" VALUES('19','Meyssac','18',1252,1100,11.56,'-736','50062',136,428);
INSERT INTO "communes" VALUES('19','Chameyrat','35',1581,1540,18.95,'-709','50260',160,471);
INSERT INTO "communes" VALUES('19','Bugeat','07',886,996,30.99,'-455','50665',667,844);
INSERT INTO "communes" VALUES('19','Saint-Hilaire-les-Courbes','24',160,171,36.36,'-559','50679',484,809);
INSERT INTO "communes" VALUES('19','Viam','07',113,132,29.99,'-503','50677',632,850);
INSERT INTO "communes" VALUES('19','Vars-sur-Roseix','02',323,255,4.26,'-1080','50288',109,235);
INSERT INTO "communes" VALUES('19','Saint-Martial-Entraygues','01',80,87,7.39,'-404','50134',186,508);
INSERT INTO "communes" VALUES('19','Végennes','03',166,182,10.11,'-663','49980',125,360);
INSERT INTO "communes" VALUES('19','Ligneyrac','18',302,279,8.36,'-798','50058',138,332);
INSERT INTO "communes" VALUES('19','Goulles','16',345,334,33.4,'-285','50047',278,624);
INSERT INTO "communes" VALUES('19','Grandsaigne','07',47,58,19.92,'-465','50545',532,872);
INSERT INTO "communes" VALUES('19','Neuville','01',196,187,14.29,'-562','50124',238,593);
INSERT INTO "communes" VALUES('19','Saint-Solve','12',409,328,5.84,'-1040','50344',126,366);
INSERT INTO "communes" VALUES('19','Bilhac','03',212,191,6.99,'-625','49937',125,285);
INSERT INTO "communes" VALUES('19','Bassignac-le-Haut','21',204,211,18.37,'-294','50235',253,628);
INSERT INTO "communes" VALUES('19','Lissac-sur-Couze','14',727,527,12.62,'-972','50116',110,353);
INSERT INTO "communes" VALUES('19','Margerides','05',264,225,11.8,'70','50504',475,737);
INSERT INTO "communes" VALUES('19','Bassignac-le-Bas','16',90,105,12.29,'-538','50021',145,517);
INSERT INTO "communes" VALUES('19','Bonnefond','07',115,127,45.06,'-392','50591',657,924);
INSERT INTO "communes" VALUES('19','Cublac','14',1751,1517,20.18,'-1147','50162',88,326);
INSERT INTO "communes" VALUES('19','Chenailler-Mascheix','03',179,170,15.82,'-552','50061',147,544);
INSERT INTO "communes" VALUES('19','Marc-la-Tour','36',168,152,6.59,'-546','50228',259,516);
INSERT INTO "communes" VALUES('21','Autricourt','22',122,133,26.77,'2537','53331',195,356);
INSERT INTO "communes" VALUES('21','Saint-Seine-sur-Vingeanne','13',402,286,18.69,'3437','52803',218,288);
INSERT INTO "communes" VALUES('21','Léry','30',220,234,14.62,'2782','52841',338,503);
INSERT INTO "communes" VALUES('21','Marcellois','37',37,24,3.66,'2530','52610',380,552);
INSERT INTO "communes" VALUES('21','Meuilley','24',458,411,6.1,'2821','52379',268,475);
INSERT INTO "communes" VALUES('21','Trugny','34',112,131,6.86,'3121','52203',173,193);
INSERT INTO "communes" VALUES('21','Saussy','30',97,104,9.3,'2917','52742',369,564);
INSERT INTO "communes" VALUES('21','Nesle-et-Massoult','18',82,101,23.38,'2327','53084',238,317);
INSERT INTO "communes" VALUES('21','Lantenay','39',500,425,17.13,'2811','52602',295,581);
INSERT INTO "communes" VALUES('21','Montmoyen','28',89,102,19.2,'2730','53037',297,437);
INSERT INTO "communes" VALUES('21','Blaisy-Bas','35',699,584,13.27,'2671','52636',381,585);
INSERT INTO "communes" VALUES('21','Venarey-les-Laumes','36',2947,3276,10.23,'2343','52824',228,423);
INSERT INTO "communes" VALUES('21','Trouhans','29',646,628,10.6,'3264','52388',182,204);
INSERT INTO "communes" VALUES('21','Darois','43',443,352,8.12,'2892','52657',340,542);
INSERT INTO "communes" VALUES('21','Lucenay-le-Duc','21',206,206,28.81,'2423','52902',339,432);
INSERT INTO "communes" VALUES('21','Varanges','14',778,662,9.37,'3174','52478',196,222);
INSERT INTO "communes" VALUES('21','Semezanges','15',104,112,8.14,'2802','52461',362,596);
INSERT INTO "communes" VALUES('21','Viserny','21',191,166,6.75,'2160','52844',213,437);
INSERT INTO "communes" VALUES('21','Spoy','17',298,244,12.04,'3170','52718',236,289);
INSERT INTO "communes" VALUES('21','Montigny-Saint-Barthélemy','27',87,71,6.2,'2148','52694',299,380);
INSERT INTO "communes" VALUES('21','Planay','18',81,77,8.72,'2269','53050',272,336);
INSERT INTO "communes" VALUES('21','Fleurey-sur-Ouche','39',1161,1213,29.76,'2803','52569',260,601);
INSERT INTO "communes" VALUES('21','Busseaut','01',66,55,10.62,'2567','53041',266,406);
INSERT INTO "communes" VALUES('21','Avosnes','37',75,73,11.54,'2562','52629',368,552);
INSERT INTO "communes" VALUES('21','Colombier','07',51,51,3.9,'2597','52409',325,544);
INSERT INTO "communes" VALUES('21','Charmes','20',124,108,6.53,'3344','52640',190,232);
INSERT INTO "communes" VALUES('21','Channay','18',63,76,13.33,'2217','53203',197,288);
INSERT INTO "communes" VALUES('21','Genay','33',335,339,13.82,'2180','52807',218,405);
INSERT INTO "communes" VALUES('21','Chazilly','26',133,114,8.79,'2495','52426',379,459);
INSERT INTO "communes" VALUES('21','Jailly-les-Moulins','36',92,103,9.29,'2513','52732',294,500);
INSERT INTO "communes" VALUES('21','Gilly-lès-Cîteaux','24',634,565,11.03,'2937','52414',206,254);
INSERT INTO "communes" VALUES('21','Villeberny','37',87,74,12.9,'2514','52708',308,507);
INSERT INTO "communes" VALUES('21','Chaudenay-le-Château','07',47,36,5.27,'2565','52420',355,521);
INSERT INTO "communes" VALUES('21','Bézouotte','20',201,214,1.1,'3329','52648',193,226);
INSERT INTO "communes" VALUES('21','Meloisey','05',328,305,12.27,'2665','52259',281,590);
INSERT INTO "communes" VALUES('21','Pouilly-sur-Vingeanne','13',117,93,10.56,'3439','52822',223,288);
INSERT INTO "communes" VALUES('21','Saulon-la-Chapelle','15',1049,928,9.99,'3058','52461',197,226);
INSERT INTO "communes" VALUES('21','Lusigny-sur-Ouche','07',107,74,10.07,'2597','52323',363,513);
INSERT INTO "communes" VALUES('21','Bellenod-sur-Seine','01',78,78,14.59,'2566','52998',272,414);
INSERT INTO "communes" VALUES('21','Chaume-et-Courchamp','13',155,140,8.1,'3349','52855',239,312);
INSERT INTO "communes" VALUES('21','Saint-Broing-les-Moines','28',188,180,20.09,'2783','52997',322,468);
INSERT INTO "communes" VALUES('21','Villaines-les-Prévôtes','21',141,121,10.78,'2189','52838',216,434);
INSERT INTO "communes" VALUES('21','Thorey-sur-Ouche','07',153,116,12.03,'2621','52385',323,551);
INSERT INTO "communes" VALUES('21','Norges-la-Ville','43',869,842,11,'3045','52675',257,351);
INSERT INTO "communes" VALUES('21','Puligny-Montrachet','23',411,464,7.28,'2686','52162',200,435);
INSERT INTO "communes" VALUES('21','Savigny-sous-Mâlain','35',195,202,6.35,'2692','52591',362,593);
INSERT INTO "communes" VALUES('21','Saulx-le-Duc','17',271,189,29.08,'2981','52822',292,480);
INSERT INTO "communes" VALUES('21','Charrey-sur-Seine','08',166,139,12.68,'2418','53272',191,356);
INSERT INTO "communes" VALUES('21','Chambolle-Musigny','15',313,313,7.57,'2907','52429',238,445);
INSERT INTO "communes" VALUES('21','Clémencey','15',120,92,10.72,'2829','52497',330,579);
INSERT INTO "communes" VALUES('21','Quincey','24',426,378,5.57,'2928','52345',208,228);
INSERT INTO "communes" VALUES('21','Chemin-d''Aisey','08',64,70,8.51,'2476','53046',290,389);
INSERT INTO "communes" VALUES('21','Corgoloin','24',921,898,12.58,'2864','52316',198,322);
INSERT INTO "communes" VALUES('21','Ménessaire','19',71,88,14.91,'2012','52372',393,721);
INSERT INTO "communes" VALUES('21','Villecomte','17',267,188,16.41,'2998','52789',287,524);
INSERT INTO "communes" VALUES('21','Ébaty','06',223,185,2.13,'2720','52144',198,212);
INSERT INTO "communes" VALUES('21','Samerey','29',130,142,7.02,'3360','52322',184,204);
INSERT INTO "communes" VALUES('21','Voulaines-les-Templiers','28',306,386,23.13,'2713','53133',251,398);
INSERT INTO "communes" VALUES('21','Quetigny','10',9752,9409,8.19,'3077','52572',211,251);
INSERT INTO "communes" VALUES('21','Vix','08',111,107,3.53,'2447','53229',196,306);
INSERT INTO "communes" VALUES('21','Saint-Euphrône','33',198,173,11.04,'2271','52753',280,351);
INSERT INTO "communes" VALUES('21','Riel-les-Eaux','22',84,96,25.77,'2598','53306',202,334);
INSERT INTO "communes" VALUES('21','Drambon','25',165,139,4.77,'3361','52597',186,207);
INSERT INTO "communes" VALUES('21','<NAME>','31',898,890,50.85,'2047','52645',273,573);
INSERT INTO "communes" VALUES('21','Marmagne','21',237,296,12.89,'2256','52913',211,359);
INSERT INTO "communes" VALUES('21','Bretenière','14',736,776,6.03,'3086','52490',206,215);
INSERT INTO "communes" VALUES('21','Poncey-sur-l''Ignon','30',86,81,16.35,'2694','52772',383,529);
INSERT INTO "communes" VALUES('21','Magny-Montarlot','03',234,185,5.94,'3345','52498',193,238);
INSERT INTO "communes" VALUES('21','Montagny-lès-Beaune','06',662,715,6.04,'2792','52212',194,218);
INSERT INTO "communes" VALUES('21','Mesmont','35',211,176,6.37,'2675','52570',325,560);
INSERT INTO "communes" VALUES('21','Moloy','17',220,219,19.23,'2884','52822',315,519);
INSERT INTO "communes" VALUES('21','Beire-le-Châtel','20',792,620,19.25,'3187','52680',215,305);
INSERT INTO "communes" VALUES('21','Curtil-Saint-Seine','30',101,104,12.01,'2879','52722',345,576);
INSERT INTO "communes" VALUES('21','Saint-Hélier','37',40,25,3.93,'2607','52650',380,549);
INSERT INTO "communes" VALUES('21','Couchey','15',1192,1187,12.7,'2939','52512',229,560);
INSERT INTO "communes" VALUES('21','<NAME>','31',168,164,21.32,'2218','52583',333,476);
INSERT INTO "communes" VALUES('21','Sainte-Marie-la-Blanche','06',817,672,6.79,'2838','52198',186,212);
INSERT INTO "communes" VALUES('21','Puits','18',139,136,20.79,'2360','53038',275,353);
INSERT INTO "communes" VALUES('21','Quincerot','21',104,53,4.42,'2144','52902',202,380);
INSERT INTO "communes" VALUES('21','Chambœuf','15',331,268,11.25,'2854','52478',360,551);
INSERT INTO "communes" VALUES('21','Chevigny-en-Valière','06',293,233,5.5,'2932','52186',177,194);
INSERT INTO "communes" VALUES('21','Montbard','21',5513,6302,46.37,'2223','52914',202,366);
INSERT INTO "communes" VALUES('21','Salives','16',285,232,47.85,'2869','52908',343,527);
INSERT INTO "communes" VALUES('21','Corgengoux','34',372,283,12.53,'2946','52212',177,205);
INSERT INTO "communes" VALUES('21','Maconge','26',149,97,6.27,'2490','52467',370,429);
INSERT INTO "communes" VALUES('21','Broindon','15',122,61,4.64,'3009','52442',206,226);
INSERT INTO "communes" VALUES('21','Montliot-et-Courcelles','08',285,278,8.65,'2470','53213',200,318);
INSERT INTO "communes" VALUES('21','Chaudenay-la-Ville','07',38,21,5.18,'2570','52404',365,551);
INSERT INTO "communes" VALUES('21','Nuits-Saint-Georges','24',5600,5574,20.5,'2904','52375',224,516);
INSERT INTO "communes" VALUES('21','Izier','14',771,642,7.48,'3172','52535',201,210);
INSERT INTO "communes" VALUES('21','Savigny-le-Sec','43',807,780,9.34,'3018','52700',277,483);
INSERT INTO "communes" VALUES('21','Ancey','35',379,345,8.47,'2767','52588',285,603);
INSERT INTO "communes" VALUES('21','Culètre','02',81,51,5.59,'2488','52386',384,476);
INSERT INTO "communes" VALUES('21','Villiers-le-Duc','08',103,135,84.34,'2634','53135',252,417);
INSERT INTO "communes" VALUES('21','Jours-en-Vaux','23',100,94,8.81,'2490','52263',357,476);
INSERT INTO "communes" VALUES('21','Massingy-lès-Vitteaux','37',88,101,9.27,'2495','52666',364,529);
INSERT INTO "communes" VALUES('21','Marigny-le-Cahouët','36',277,289,19.28,'2360','52738',283,476);
INSERT INTO "communes" VALUES('21','Verdonnet','18',88,84,18.04,'2215','53041',221,323);
INSERT INTO "communes" VALUES('21','Billey','03',226,205,3.83,'3439','52383',184,209);
INSERT INTO "communes" VALUES('21','Athée','03',780,599,9.43,'3372','52478',182,232);
INSERT INTO "communes" VALUES('21','Saint-Germain-de-Modéon','31',172,152,16.31,'1995','52644',330,554);
INSERT INTO "communes" VALUES('21','Vougeot','24',191,187,0.88,'2919','52418',233,275);
INSERT INTO "communes" VALUES('21','Tichey','34',211,172,6.88,'3275','52236',181,187);
INSERT INTO "communes" VALUES('21','Tailly','06',191,206,4.57,'2753','52188',196,217);
INSERT INTO "communes" VALUES('21','Thoste','27',117,108,10.84,'2099','52707',275,380);
INSERT INTO "communes" VALUES('21','Coulmier-le-Sec','08',271,254,32.29,'2396','53056',258,371);
INSERT INTO "communes" VALUES('21','Marcilly-et-Dracy','37',95,95,8.65,'2403','52669',313,498);
INSERT INTO "communes" VALUES('21','Barjon','16',41,37,4.57,'2914','52902',333,467);
INSERT INTO "communes" VALUES('21','Vieilmoulin','35',103,80,6.06,'2603','52569',428,587);
INSERT INTO "communes" VALUES('21','Cirey-lès-Pontailler','25',137,115,8.79,'3288','52565',188,241);
INSERT INTO "communes" VALUES('21','Thorey-sous-Charny','37',188,153,11.54,'2344','52582',331,561);
INSERT INTO "communes" VALUES('21','Beaumont-sur-Vingeanne','20',185,163,11.72,'3363','52739',206,268);
INSERT INTO "communes" VALUES('21','Commarin','26',124,142,6.39,'2569','52508',360,541);
INSERT INTO "communes" VALUES('21','Lamarche-sur-Saône','25',1253,1201,33.96,'3387','52522',182,238);
INSERT INTO "communes" VALUES('21','Menesble','28',11,14,5.51,'2845','53082',298,446);
INSERT INTO "communes" VALUES('21','Soissons-sur-Nacey','25',330,257,7.72,'3466','52510',181,208);
INSERT INTO "communes" VALUES('21','Villy-en-Auxois','37',239,209,16.17,'2554','52689',318,511);
INSERT INTO "communes" VALUES('21','Binges','25',628,581,17.66,'3256','52588',193,240);
INSERT INTO "communes" VALUES('21','Maisey-le-Duc','08',104,91,12.67,'2602','53162',237,367);
INSERT INTO "communes" VALUES('21','Fixin','15',757,784,10.12,'2929','52495',230,565);
INSERT INTO "communes" VALUES('21','Molesme','18',242,225,28.42,'2245','53261',181,353);
INSERT INTO "communes" VALUES('21','Agey','35',270,258,8.42,'2695','52538',289,548);
INSERT INTO "communes" VALUES('21','Vic-sous-Thil','27',202,203,21.34,'2192','52633',318,493);
INSERT INTO "communes" VALUES('21','Drée','35',54,31,5.14,'2616','52610',445,573);
INSERT INTO "communes" VALUES('21','Pluvet','14',419,324,6.51,'3253','52450',188,195);
INSERT INTO "communes" VALUES('21','Velars-sur-Ouche','39',1704,1665,12.13,'2853','52578',254,586);
INSERT INTO "communes" VALUES('21','Gissey-le-Vieil','37',105,105,8.38,'2384','52581',337,505);
INSERT INTO "communes" VALUES('21','Heuilley-sur-Saône','25',301,296,9.78,'3465','52589',183,193);
INSERT INTO "communes" VALUES('21','Cussy-le-Châtel','02',121,100,7.23,'2499','52406',400,459);
INSERT INTO "communes" VALUES('21','Marandeuil','25',117,51,4.55,'3345','52608',188,202);
INSERT INTO "communes" VALUES('21','Charrey-sur-Saône','29',338,239,5.75,'3141','52321',178,214);
INSERT INTO "communes" VALUES('21','Échannay','35',121,104,7.18,'2599','52535',395,579);
INSERT INTO "communes" VALUES('21','Montigny-sur-Aube','22',311,343,19.5,'2712','53282',225,348);
INSERT INTO "communes" VALUES('21','Chenôve','97',14045,16250,7.42,'2967','52546',238,392);
INSERT INTO "communes" VALUES('21','Pernand-Vergelesses','05',279,309,5.59,'2794','52311',238,435);
INSERT INTO "communes" VALUES('21','Vic-des-Prés','07',105,77,8.95,'2561','52338',354,530);
INSERT INTO "communes" VALUES('21','Bessey-en-Chaume','07',110,98,10.46,'2673','52312',365,601);
INSERT INTO "communes" VALUES('21','Foissy','02',153,135,15.12,'2473','52358',365,487);
INSERT INTO "communes" VALUES('21','Villars-Fontaine','24',125,110,2.89,'2839','52388',265,489);
INSERT INTO "communes" VALUES('21','Villiers-en-Morvan','19',42,48,6.7,'2132','52384',377,527);
INSERT INTO "communes" VALUES('21','Savigny-lès-Beaune','05',1367,1421,35.98,'2758','52293',229,577);
INSERT INTO "communes" VALUES('21','Bouze-lès-Beaune','05',333,262,6.91,'2705','52280',317,540);
INSERT INTO "communes" VALUES('21','Tellecey','25',132,134,5.07,'3272','52549',193,238);
INSERT INTO "communes" VALUES('21','Montagny-lès-Seurre','29',109,112,7.16,'3241','52248',181,193);
INSERT INTO "communes" VALUES('21','Pothières','08',194,204,17.86,'2426','53247',193,341);
INSERT INTO "communes" VALUES('21','Villotte-sur-Ource','08',112,114,9.49,'2603','53182',235,358);
INSERT INTO "communes" VALUES('21','Martrois','26',62,73,7.59,'2445','52568',352,547);
INSERT INTO "communes" VALUES('21','Gerland','24',411,355,20.68,'2966','52327',199,227);
INSERT INTO "communes" VALUES('21','Chassagne-Montrachet','23',353,471,6.5,'2658','52152',209,410);
INSERT INTO "communes" VALUES('21','Magny-lès-Aubigny','29',196,195,6.99,'3155','52346',182,209);
INSERT INTO "communes" VALUES('21','Combertault','06',528,276,3.92,'2847','52214',188,211);
INSERT INTO "communes" VALUES('21','Saint-Jean-de-Bœuf','35',113,65,12.26,'2677','52464',397,619);
INSERT INTO "communes" VALUES('21','Gevrolles','22',167,170,27.05,'2713','53320',216,353);
INSERT INTO "communes" VALUES('21','Reulle-Vergy','15',120,99,6.13,'2842','52429',320,526);
INSERT INTO "communes" VALUES('21','Vianges','19',61,61,8.81,'2209','52401',351,492);
INSERT INTO "communes" VALUES('21','Glanon','34',227,180,3.65,'3078','52267',176,208);
INSERT INTO "communes" VALUES('21','Faverolles-lès-Lucey','28',35,22,10.08,'2807','53151',306,411);
INSERT INTO "communes" VALUES('21','Bouhey','26',40,49,7.64,'2591','52445',337,522);
INSERT INTO "communes" VALUES('21','Corpeau','23',1029,1002,4.67,'2684','52143',201,237);
INSERT INTO "communes" VALUES('21','Souhey','33',95,74,2.77,'2313','52761',298,429);
INSERT INTO "communes" VALUES('21','Avot','16',160,141,21.67,'2973','52909',307,501);
INSERT INTO "communes" VALUES('21','Boussey','37',30,45,5.57,'2463','52636',324,508);
INSERT INTO "communes" VALUES('21','Montceau-et-Écharnant','07',157,121,18.58,'2580','52290',379,551);
INSERT INTO "communes" VALUES('21','Bellefond','43',774,724,2.47,'3037','52644',269,324);
INSERT INTO "communes" VALUES('21','Fain-lès-Moutiers','21',155,147,9.75,'2084','52871',220,356);
INSERT INTO "communes" VALUES('21','Gevrey-Chambertin','15',3061,3259,24.77,'2923','52474',212,510);
INSERT INTO "communes" VALUES('21','Bousselange','34',49,66,7.2,'3248','52210',181,195);
INSERT INTO "communes" VALUES('21','Brazey-en-Morvan','19',161,156,17.22,'2170','52414',415,537);
INSERT INTO "communes" VALUES('21','Crécey-sur-Tille','17',144,164,10.77,'3102','52843',272,424);
INSERT INTO "communes" VALUES('21','Longchamp','14',1186,949,16.23,'3278','52512',197,241);
INSERT INTO "communes" VALUES('21','Aignay-le-Duc','01',323,403,24.86,'2665','52962',310,443);
INSERT INTO "communes" VALUES('21','Clomot','02',113,123,8.49,'2388','52434',353,411);
INSERT INTO "communes" VALUES('21','Bourberain','13',343,278,30.71,'3288','52778',223,305);
INSERT INTO "communes" VALUES('21','Vauchignon','23',39,50,4.24,'2564','52196',367,567);
INSERT INTO "communes" VALUES('21','Levernois','06',284,259,3.73,'2818','52217',194,211);
INSERT INTO "communes" VALUES('21','Crépand','21',339,338,5.79,'2193','52902',207,381);
INSERT INTO "communes" VALUES('21','Vanvey','08',235,314,16.8,'2636','53149',242,376);
INSERT INTO "communes" VALUES('21','Thenissey','36',119,116,10.25,'2541','52773',283,468);
INSERT INTO "communes" VALUES('21','Roilly','27',38,36,4.51,'2226','52688',327,362);
INSERT INTO "communes" VALUES('21','Villedieu','18',76,98,14.14,'2251','53241',192,292);
INSERT INTO "communes" VALUES('21','Magny-la-Ville','33',82,65,3.69,'2325','52758',300,431);
INSERT INTO "communes" VALUES('21','Pagny-le-Château','34',498,491,24.23,'3178','52275',177,193);
INSERT INTO "communes" VALUES('21','Chaume-lès-Baigneux','04',97,89,12.66,'2497','52920',344,424);
INSERT INTO "communes" VALUES('21','Quemigny-Poisot','15',197,187,11.32,'2809','52477',360,549);
INSERT INTO "communes" VALUES('21','Champagny','30',37,27,7.12,'2697','52730',424,545);
INSERT INTO "communes" VALUES('21','Forléans','33',96,79,7.1,'2076','52760',287,348);
INSERT INTO "communes" VALUES('21','Brémur-et-Vaurois','08',63,78,9.31,'2520','53037',255,388);
INSERT INTO "communes" VALUES('21','Précy-sous-Thil','27',766,709,8.63,'2195','52652',312,372);
INSERT INTO "communes" VALUES('21','Brianny','27',108,100,7.53,'2263','52679',299,342);
INSERT INTO "communes" VALUES('21','Savolles','20',156,128,3.12,'3265','52640',204,253);
INSERT INTO "communes" VALUES('21','Rougemont','21',178,170,9.52,'2120','52965',192,332);
INSERT INTO "communes" VALUES('21','Pontailler-sur-Saône','25',1251,1342,13.17,'3417','52563',182,226);
INSERT INTO "communes" VALUES('21','Val-Suzon','30',220,180,18.51,'2841','52675',322,560);
INSERT INTO "communes" VALUES('21','Marcheseuil','19',173,156,17.44,'2236','52383',323,550);
INSERT INTO "communes" VALUES('21','Nantoux','05',180,180,6.58,'2693','52259',266,467);
INSERT INTO "communes" VALUES('21','Orgeux','09',472,337,4.75,'3130','52625',217,237);
INSERT INTO "communes" VALUES('21','Grignon','36',225,246,11.68,'2303','52845',222,388);
INSERT INTO "communes" VALUES('21','Jancigny','20',130,100,6.95,'3413','52648',192,230);
INSERT INTO "communes" VALUES('21','Montigny-Montfort','21',290,290,17.13,'2231','52864',227,400);
INSERT INTO "communes" VALUES('21','Mâlain','35',721,750,11.24,'2731','52584',280,535);
INSERT INTO "communes" VALUES('21','Arcenant','24',502,457,10.12,'2788','52377',305,591);
INSERT INTO "communes" VALUES('21','Villeneuve-sous-Charigny','33',94,83,3.24,'2287','52709',314,350);
INSERT INTO "communes" VALUES('21','Crimolois','10',642,523,3.59,'3094','52527',208,229);
INSERT INTO "communes" VALUES('21','Bessey-lès-Cîteaux','14',666,476,10.3,'3136','52395',186,206);
INSERT INTO "communes" VALUES('21','Pichanges','17',256,223,10.03,'3126','52736',249,314);
INSERT INTO "communes" VALUES('21','Vonges','25',347,313,4.56,'3403','52547',182,207);
INSERT INTO "communes" VALUES('21','Corsaint','33',141,128,20.37,'2070','52821',219,386);
INSERT INTO "communes" VALUES('21','Bouix','18',159,187,15.64,'2386','53208',211,344);
INSERT INTO "communes" VALUES('21','Épernay-sous-Gevrey','15',183,162,5.47,'2996','52423',205,230);
INSERT INTO "communes" VALUES('21','Brochon','15',644,689,7.46,'2927','52488',228,546);
INSERT INTO "communes" VALUES('21','Lacour-d''Arcenay','27',128,107,20.24,'2129','52625',355,503);
INSERT INTO "communes" VALUES('21','Laperrière-sur-Saône','29',420,301,11.17,'3339','52346',180,201);
INSERT INTO "communes" VALUES('21','Sainte-Sabine','26',190,172,8.41,'2542','52435',343,500);
INSERT INTO "communes" VALUES('21','Villy-le-Moutier','24',356,216,20.13,'2951','52264',183,211);
INSERT INTO "communes" VALUES('21','Noiron-sous-Gevrey','15',1056,705,6.56,'3048','52437',195,227);
INSERT INTO "communes" VALUES('21','Remilly-en-Montagne','35',129,106,8.47,'2667','52547',330,565);
INSERT INTO "communes" VALUES('21','Losne','29',1597,1342,22.61,'3252','52332',178,189);
INSERT INTO "communes" VALUES('21','Savouges','15',386,183,3.09,'3027','52426',202,232);
INSERT INTO "communes" VALUES('21','Tart-le-Bas','14',227,195,4.66,'3208','52450',190,229);
INSERT INTO "communes" VALUES('21','Soussey-sur-Brionne','37',136,103,14.61,'2438','52584',348,525);
INSERT INTO "communes" VALUES('21','Longecourt-en-Plaine','14',1241,1191,10.01,'3125','52443',193,203);
INSERT INTO "communes" VALUES('21','Izeure','14',778,572,16.71,'3112','52411',189,207);
INSERT INTO "communes" VALUES('21','Jours-lès-Baigneux','04',87,88,11.2,'2515','52922',351,412);
INSERT INTO "communes" VALUES('21','Beire-le-Fort','14',296,251,5.27,'3242','52479',194,207);
INSERT INTO "communes" VALUES('21','Verrey-sous-Drée','35',62,52,3.44,'2614','52629',397,548);
INSERT INTO "communes" VALUES('21','Fontaines-en-Duesmois','04',128,126,17.9,'2453','52944',334,419);
INSERT INTO "communes" VALUES('21','Courtivron','17',196,163,15.63,'2921','52823',307,475);
INSERT INTO "communes" VALUES('21','Orain','13',96,109,13.67,'3435','52898',242,327);
INSERT INTO "communes" VALUES('21','Saint-Andeux','31',128,128,11.84,'1958','52667',308,498);
INSERT INTO "communes" VALUES('21','Seurre','34',2432,2668,8.99,'3122','52221',176,192);
INSERT INTO "communes" VALUES('21','Flée','33',163,136,11.74,'2214','52706',285,386);
INSERT INTO "communes" VALUES('21','Chaux','24',448,348,7.04,'2855','52367',265,432);
INSERT INTO "communes" VALUES('21','Marcigny-sous-Thil','27',61,48,4.97,'2275','52656',306,356);
INSERT INTO "communes" VALUES('21','Manlay','19',211,223,19.03,'2228','52366',340,550);
INSERT INTO "communes" VALUES('21','Beaulieu','01',31,33,6.6,'2657','53030',310,425);
INSERT INTO "communes" VALUES('21','Saint-Julien','09',1453,1216,16.43,'3119','52668',225,273);
INSERT INTO "communes" VALUES('21','Boux-sous-Salmaise','36',142,149,14.64,'2558','52748',296,498);
INSERT INTO "communes" VALUES('21','Villers-Rotin','03',136,121,3.11,'3410','52397',182,206);
INSERT INTO "communes" VALUES('21','Brain','37',28,23,4.13,'2411','52737',269,469);
INSERT INTO "communes" VALUES('21','Flagey-lès-Auxonne','03',191,163,7.91,'3392','52385',180,209);
INSERT INTO "communes" VALUES('21','Volnay','05',274,324,7.55,'2716','52224',209,393);
INSERT INTO "communes" VALUES('21','Aloxe-Corton','05',158,172,2.63,'2803','52295',218,360);
INSERT INTO "communes" VALUES('21','Blaisy-Haut','35',120,104,8.31,'2694','52624',419,591);
INSERT INTO "communes" VALUES('21','Poncey-lès-Athée','03',570,396,6.53,'3391','52490',182,208);
INSERT INTO "communes" VALUES('21','Détain-et-Bruant','15',150,108,15.48,'2728','52414',515,642);
INSERT INTO "communes" VALUES('21','Étaules','43',236,261,16.71,'2897','52675',302,543);
INSERT INTO "communes" VALUES('21','Cheuge','20',113,115,8.88,'3396','52656',193,242);
INSERT INTO "communes" VALUES('21','Beaune','98',22394,21917,31.3,'2780','52249',193,407);
INSERT INTO "communes" VALUES('21','Crugey','07',169,214,6.3,'2597','52427',322,490);
INSERT INTO "communes" VALUES('21','Hauteville-lès-Dijon','43',1098,1022,9.01,'2954','52629',305,474);
INSERT INTO "communes" VALUES('21','Til-Châtel','17',1001,825,26.37,'3153','52797',256,349);
INSERT INTO "communes" VALUES('21','Flammerans','03',422,335,16.55,'3457','52478',181,213);
INSERT INTO "communes" VALUES('21','Aubigny-lès-Sombernon','35',140,120,7.93,'2563','52561',395,551);
INSERT INTO "communes" VALUES('21','Saint-Marc-sur-Seine','04',123,147,8.4,'2520','53001',265,411);
INSERT INTO "communes" VALUES('21','Corcelles-lès-Cîteaux','15',823,721,6.75,'3050','52413',199,227);
INSERT INTO "communes" VALUES('21','Renève','20',430,413,14.4,'3410','52671',196,241);
INSERT INTO "communes" VALUES('21','Chambeire','14',313,234,6.21,'3253','52536',196,237);
INSERT INTO "communes" VALUES('21','Villotte-Saint-Seine','30',60,74,7.59,'2633','52699',338,551);
INSERT INTO "communes" VALUES('21','Fontaines-les-Sèches','18',37,50,13.52,'2241','53088',232,292);
INSERT INTO "communes" VALUES('21','Bussy-la-Pesle','35',65,49,11.47,'2632','52630',394,593);
INSERT INTO "communes" VALUES('21','Vernois-lès-Vesvres','32',194,189,11.51,'3121','52937',322,472);
INSERT INTO "communes" VALUES('21','Bissey-la-Côte','22',91,120,19.93,'2637','53237',229,344);
INSERT INTO "communes" VALUES('21','Segrois','15',48,54,2.29,'2840','52399',282,496);
INSERT INTO "communes" VALUES('21','Perrigny-sur-l''Ognon','25',663,497,18.92,'3457','52568',183,206);
INSERT INTO "communes" VALUES('21','Clamerey','27',179,191,12.08,'2322','52652',314,491);
INSERT INTO "communes" VALUES('21','Louesme','22',113,110,18.92,'2691','53219',250,377);
INSERT INTO "communes" VALUES('21','Brognon','09',263,213,6.24,'3143','52671',228,264);
INSERT INTO "communes" VALUES('21','Oisilly','20',141,108,5.97,'3366','52690',197,238);
INSERT INTO "communes" VALUES('21','Montmançon','25',227,159,8.99,'3380','52614',188,221);
INSERT INTO "communes" VALUES('21','Baulme-la-Roche','35',113,118,6.69,'2736','52607',360,596);
INSERT INTO "communes" VALUES('21','Cussey-les-Forges','16',137,115,23.32,'3047','52936',299,472);
INSERT INTO "communes" VALUES('21','Sainte-Marie-sur-Ouche','35',665,590,8.25,'2734','52541',275,541);
INSERT INTO "communes" VALUES('21','Tréclun','03',388,222,5.68,'3283','52434',187,204);
INSERT INTO "communes" VALUES('21','Véronnes','32',397,343,19.2,'3216','52816',258,312);
INSERT INTO "communes" VALUES('21','Oigny','04',35,29,14.84,'2644','52862',343,467);
INSERT INTO "communes" VALUES('21','Tart-le-Haut','14',1389,811,10.3,'3188','52449',193,238);
INSERT INTO "communes" VALUES('21','Labruyère','34',214,167,7.28,'3126','52271',176,183);
INSERT INTO "communes" VALUES('21','Mimeure','02',292,218,13.83,'2400','52390',335,437);
INSERT INTO "communes" VALUES('21','Tillenay','03',732,505,6.07,'3351','52423',181,204);
INSERT INTO "communes" VALUES('21','Vosne-Romanée','24',415,460,3.69,'2908','52400',217,400);
INSERT INTO "communes" VALUES('21','Comblanchien','24',699,633,3.61,'2872','52335',213,351);
INSERT INTO "communes" VALUES('21','Lucey','28',59,61,18.68,'2806','53170',293,417);
INSERT INTO "communes" VALUES('21','Merceuil','06',839,548,13.8,'2783','52166',185,209);
INSERT INTO "communes" VALUES('21','Courcelles-lès-Montbard','21',87,102,6.12,'2290','52882',214,375);
INSERT INTO "communes" VALUES('21','Painblanc','07',159,142,9.15,'2545','52386',384,557);
INSERT INTO "communes" VALUES('21','Noiron-sur-Bèze','20',210,166,11.8,'3293','52709',197,253);
INSERT INTO "communes" VALUES('21','Lignerolles','22',49,53,13.54,'2835','53224',253,373);
INSERT INTO "communes" VALUES('21','Bouilland','05',189,168,16.65,'2711','52369',345,620);
INSERT INTO "communes" VALUES('21','Flacey','17',158,144,6.79,'3124','52700',244,307);
INSERT INTO "communes" VALUES('21','Sainte-Colombe','37',60,59,6.29,'2357','52697',333,498);
INSERT INTO "communes" VALUES('21','Verrey-sous-Salmaise','36',318,310,8.21,'2590','52710',324,537);
INSERT INTO "communes" VALUES('21','Dijon','99',151212,150138,40.41,'3006','52581',220,410);
INSERT INTO "communes" VALUES('21','Échenon','29',712,650,10.62,'3274','52349',179,187);
INSERT INTO "communes" VALUES('21','Maligny','02',215,216,16.72,'2414','52317',331,447);
INSERT INTO "communes" VALUES('21','Époisses','33',783,721,21.72,'2041','52786',233,321);
INSERT INTO "communes" VALUES('21','Antigny-la-Ville','02',115,105,8.4,'2469','52335',406,457);
INSERT INTO "communes" VALUES('21','Auxey-Duresses','05',333,367,11.09,'2680','52208',245,482);
INSERT INTO "communes" VALUES('21','Échevronne','05',282,268,8.69,'2794','52340',304,600);
INSERT INTO "communes" VALUES('21','Meursanges','06',485,363,14.26,'2898','52212',178,204);
INSERT INTO "communes" VALUES('21','Normier','27',49,47,5.1,'2331','52630',322,367);
INSERT INTO "communes" VALUES('21','Salmaise','36',140,136,13.12,'2585','52729',309,533);
INSERT INTO "communes" VALUES('21','Balot','18',89,93,15.54,'2325','53126',223,290);
INSERT INTO "communes" VALUES('21','Grenant-lès-Sombernon','35',199,138,7.19,'2639','52524',370,580);
INSERT INTO "communes" VALUES('21','Châtillon-sur-Seine','08',5564,6269,33.15,'2486','53176',211,298);
INSERT INTO "communes" VALUES('21','Blanot','19',131,148,18.26,'2110','52414',380,581);
INSERT INTO "communes" VALUES('21','Saint-Mesmin','37',138,99,17.62,'2574','52603',369,561);
INSERT INTO "communes" VALUES('21','Saint-Bernard','24',455,291,3.69,'2978','52397',202,227);
INSERT INTO "communes" VALUES('21','Jouey','02',202,205,24.26,'2345','52393',324,436);
INSERT INTO "communes" VALUES('21','Longecourt-lès-Culêtre','02',47,54,4.43,'2462','52399',390,458);
INSERT INTO "communes" VALUES('21','Premeaux-Prissey','24',468,373,9.05,'2887','52347',203,374);
INSERT INTO "communes" VALUES('21','Meursault','05',1529,1595,16.22,'2704','52198',199,458);
INSERT INTO "communes" VALUES('21','Foncegrive','32',150,171,10.13,'3134','52901',302,472);
INSERT INTO "communes" VALUES('21','Étais','18',92,87,14.04,'2334','53009',303,362);
INSERT INTO "communes" VALUES('21','Agencourt','24',397,419,4.2,'2938','52364',209,237);
INSERT INTO "communes" VALUES('21','Quincy-le-Vicomte','21',194,192,19.03,'2132','52898',202,354);
INSERT INTO "communes" VALUES('21','Charigny','33',42,35,3.07,'2320','52701',334,477);
INSERT INTO "communes" VALUES('21','Missery','27',107,89,9.66,'2263','52564',349,560);
INSERT INTO "communes" VALUES('21','Aubaine','07',95,58,16.21,'2645','52375',380,611);
INSERT INTO "communes" VALUES('21','Saint-Thibault','37',159,137,12.35,'2373','52637',328,450);
INSERT INTO "communes" VALUES('21','Échalot','01',110,94,27.65,'2779','52902',368,527);
INSERT INTO "communes" VALUES('21','Gergueil','35',139,100,9.93,'2757','52489',340,569);
INSERT INTO "communes" VALUES('21','Veuxhaulles-sur-Aube','22',231,259,19.24,'2739','53272',230,348);
INSERT INTO "communes" VALUES('21','Villers-les-Pots','03',1034,871,10.43,'3353','52457',182,205);
INSERT INTO "communes" VALUES('21','Ivry-en-Montagne','23',182,184,11.09,'2555','52255',390,553);
INSERT INTO "communes" VALUES('21','Darcey','36',347,301,18.91,'2481','52835',253,446);
INSERT INTO "communes" VALUES('21','Massingy','08',160,150,9.49,'2512','53231',209,333);
INSERT INTO "communes" VALUES('21','Nolay','23',1496,1542,14.3,'2552','52169',297,542);
INSERT INTO "communes" VALUES('21','Bessey-la-Cour','07',72,79,4.59,'2530','52331',380,429);
INSERT INTO "communes" VALUES('21','Saint-Martin-de-la-Mer','19',293,286,23.22,'2108','52485',440,596);
INSERT INTO "communes" VALUES('21','Fussey','24',112,98,7.73,'2777','52354',390,607);
INSERT INTO "communes" VALUES('21','Millery','33',377,347,20.86,'2224','52809',227,430);
INSERT INTO "communes" VALUES('21','Nicey','18',130,145,23.86,'2198','53180',201,336);
INSERT INTO "communes" VALUES('21','<NAME>','16',45,51,10.61,'2894','52890',340,519);
INSERT INTO "communes" VALUES('21','Voudenay','02',190,222,21.45,'2270','52326',307,436);
INSERT INTO "communes" VALUES('21','Perrigny-lès-Dijon','38',1478,1647,6.71,'2967','52518',224,264);
INSERT INTO "communes" VALUES('21','Origny','01',36,36,5.16,'2558','53001',309,394);
INSERT INTO "communes" VALUES('21','Sennecey-lès-Dijon','10',2189,2170,3.42,'3076','52545',212,245);
INSERT INTO "communes" VALUES('21','Saint-Prix-lès-Arnay','02',247,242,11.29,'2400','52351',348,433);
INSERT INTO "communes" VALUES('21','Allerey','02',167,181,18.99,'2335','52433',350,528);
INSERT INTO "communes" VALUES('21','Boussenois','32',105,111,12.49,'3193','52922',304,469);
INSERT INTO "communes" VALUES('21','Vic-de-Chassenay','33',230,254,26.47,'2144','52748',279,372);
INSERT INTO "communes" VALUES('21','Duesme','01',54,57,13.33,'2608','52937',303,424);
INSERT INTO "communes" VALUES('21','Magny-sur-Tille','14',833,644,10.56,'3151','52529',200,221);
INSERT INTO "communes" VALUES('21','Cussy-la-Colonne','07',54,41,6.09,'2561','52268',428,563);
INSERT INTO "communes" VALUES('21','Étrochey','08',229,221,3.21,'2432','53213',203,236);
INSERT INTO "communes" VALUES('21','Thorey-en-Plaine','14',1022,829,5.82,'3107','52462',198,208);
INSERT INTO "communes" VALUES('21','Villargoix','31',169,173,17.45,'2173','52548',351,486);
INSERT INTO "communes" VALUES('21','Mont-Saint-Jean','26',248,261,27.66,'2295','52547',355,577);
INSERT INTO "communes" VALUES('21','Bussy-le-Grand','36',317,267,29.69,'2423','52860',250,431);
INSERT INTO "communes" VALUES('21','Thoires','22',74,85,10.22,'2599','53261',212,318);
INSERT INTO "communes" VALUES('21','Brazey-en-Plaine','29',2505,2455,25.55,'3201','52372',179,202);
INSERT INTO "communes" VALUES('21','Bligny-le-Sec','30',161,127,16.61,'2672','52716',458,579);
INSERT INTO "communes" VALUES('21','La Bussière-sur-Ouche','07',147,190,20.65,'2650','52463',306,569);
INSERT INTO "communes" VALUES('21','Rochefort-sur-Brévon','01',45,60,11.98,'2629','53048',287,411);
INSERT INTO "communes" VALUES('21','Flavignerot','39',165,153,6.29,'2867','52532',320,598);
INSERT INTO "communes" VALUES('21','Viévy','02',339,347,32.88,'2351','52286',316,435);
INSERT INTO "communes" VALUES('21','Santenay','23',838,903,10.36,'2623','52125',211,522);
INSERT INTO "communes" VALUES('21','Santosse','23',49,38,7.93,'2548','52228',392,567);
INSERT INTO "communes" VALUES('21','Fontaine-lès-Dijon','43',9114,8872,4.49,'2981','52604',250,337);
INSERT INTO "communes" VALUES('21','Benoisey','21',77,72,5.8,'2290','52863',219,378);
INSERT INTO "communes" VALUES('21','Rouvres-en-Plaine','14',1013,865,14.65,'3116','52487',200,216);
INSERT INTO "communes" VALUES('21','Bligny-lès-Beaune','06',1224,1171,7.3,'2765','52208',199,225);
INSERT INTO "communes" VALUES('21','<NAME>','02',49,45,3.11,'2414','52426',354,402);
INSERT INTO "communes" VALUES('21','Bierre-lès-Semur','27',88,86,8.28,'2182','52688',307,386);
INSERT INTO "communes" VALUES('21','Sincey-lès-Rouvray','31',117,125,8.73,'1994','52701',260,396);
INSERT INTO "communes" VALUES('21','Ladoix-Serrigny','06',1805,1620,24.96,'2833','52296',197,360);
INSERT INTO "communes" VALUES('21','<NAME>','22',116,136,33.1,'2781','53199',257,376);
INSERT INTO "communes" VALUES('21','Meulson','01',38,37,7.85,'2624','52987',345,427);
INSERT INTO "communes" VALUES('21','Belleneuve','20',1556,1398,14.47,'3255','52619',192,256);
INSERT INTO "communes" VALUES('21','Saint-Aubin','23',257,248,9.42,'2637','52167',240,485);
INSERT INTO "communes" VALUES('21','Marcilly-sur-Tille','17',1596,1433,7.27,'3106','52799',267,333);
INSERT INTO "communes" VALUES('21','Corrombles','33',239,201,11.46,'2067','52797',239,331);
INSERT INTO "communes" VALUES('21','Gurgy-la-Ville','28',39,46,12.77,'2894','53166',282,419);
INSERT INTO "communes" VALUES('21','Baigneux-les-Juifs','04',258,271,12.47,'2570','52889',325,441);
INSERT INTO "communes" VALUES('21','Beaunotte','01',20,26,8.5,'2633','52977',292,423);
INSERT INTO "communes" VALUES('21','Noidan','27',87,79,7.87,'2302','52606',345,530);
INSERT INTO "communes" VALUES('21','Sacquenay','32',262,265,22.13,'3317','52881',244,331);
INSERT INTO "communes" VALUES('21','Arc-sur-Tille','10',2479,2336,22.71,'3172','52604',209,241);
INSERT INTO "communes" VALUES('21','Chaignay','17',524,430,25.05,'3038','52752',282,536);
INSERT INTO "communes" VALUES('21','Brion-sur-Ource','22',229,223,14.01,'2585','53240',217,333);
INSERT INTO "communes" VALUES('21','Grosbois-en-Montagne','35',115,105,14.16,'2511','52578',353,557);
INSERT INTO "communes" VALUES('21','Moitron','01',62,47,15.38,'2761','52974',335,469);
INSERT INTO "communes" VALUES('21','Fauverney','14',684,645,8.68,'3120','52506',203,231);
INSERT INTO "communes" VALUES('21','Échevannes','17',225,147,11.45,'3147','52808',261,356);
INSERT INTO "communes" VALUES('21','Labergement-lès-Seurre','34',974,795,28.83,'3062','52220',174,211);
INSERT INTO "communes" VALUES('21','Diénay','17',296,235,15.39,'3033','52801',282,428);
INSERT INTO "communes" VALUES('21','<NAME>','23',280,259,13.91,'2602','52176',324,561);
INSERT INTO "communes" VALUES('21','Busserotte-et-Montenaille','16',33,30,6.56,'2933','52959',359,487);
INSERT INTO "communes" VALUES('21','Saint-Maurice-sur-Vingeanne','13',214,162,17.38,'3413','52865',232,297);
INSERT INTO "communes" VALUES('21','Morey-Saint-Denis','15',697,671,7.83,'2919','52440',222,472);
INSERT INTO "communes" VALUES('21','Braux','27',175,167,12.84,'2320','52677',308,488);
INSERT INTO "communes" VALUES('21','Aiserey','14',1352,1138,10.5,'3140','52414',187,199);
INSERT INTO "communes" VALUES('21','Nan-sous-Thil','27',191,175,10.99,'2247','52638',323,465);
INSERT INTO "communes" VALUES('21','Aisy-sous-Thil','27',221,220,8.3,'2168','52659',313,387);
INSERT INTO "communes" VALUES('21','Terrefondrée','28',66,61,13.89,'2809','53034',307,452);
INSERT INTO "communes" VALUES('21','Éringes','21',64,71,6.01,'2364','52880',275,417);
INSERT INTO "communes" VALUES('21','Chazeuil','32',221,199,18.55,'3260','52844',253,322);
INSERT INTO "communes" VALUES('21','Fontenelle','13',139,104,10.14,'3376','52780',217,273);
INSERT INTO "communes" VALUES('21','Prâlon','35',76,89,3.09,'2710','52567',295,445);
INSERT INTO "communes" VALUES('21','Saint-Seine-en-Bâche','29',287,232,8.38,'3371','52356',180,207);
INSERT INTO "communes" VALUES('21','Mussy-la-Fosse','36',76,87,4.45,'2335','52801',237,427);
INSERT INTO "communes" VALUES('21','Athie','21',90,92,5.92,'2130','52851',210,403);
INSERT INTO "communes" VALUES('21','Juilly','33',39,56,4.46,'2293','52767',293,428);
INSERT INTO "communes" VALUES('21','Tarsul','17',172,126,9.57,'2943','52813',297,447);
INSERT INTO "communes" VALUES('21','Courcelles-Frémoy','33',127,100,11.47,'2040','52723',262,340);
INSERT INTO "communes" VALUES('21','Bure-les-Templiers','28',133,150,35.03,'2843','53043',302,483);
INSERT INTO "communes" VALUES('21','Fénay','15',1465,1340,10.46,'3025','52492',210,243);
INSERT INTO "communes" VALUES('21','Thury','23',293,295,13.27,'2431','52260',337,455);
INSERT INTO "communes" VALUES('21','L''Étang-Vergy','15',201,183,2.65,'2823','52419',302,500);
INSERT INTO "communes" VALUES('21','Semond','04',34,45,5.97,'2506','53020',285,404);
INSERT INTO "communes" VALUES('21','Villers-la-Faye','24',407,406,5.84,'2824','52340',265,431);
INSERT INTO "communes" VALUES('21','Saint-Martin-du-Mont','30',451,354,37.84,'2722','52703',385,591);
INSERT INTO "communes" VALUES('21','Ternant','15',105,72,16.35,'2798','52446',335,636);
INSERT INTO "communes" VALUES('21','Griselles','18',90,83,12.37,'2240','53188',197,284);
INSERT INTO "communes" VALUES('21','Châteauneuf','26',84,83,10.06,'2561','52466',342,542);
INSERT INTO "communes" VALUES('21','Aubigny-la-Ronce','23',164,138,11.79,'2526','52208',355,546);
INSERT INTO "communes" VALUES('21','Messanges','15',240,194,3.05,'2818','52402',282,487);
INSERT INTO "communes" VALUES('21','Pouillenay','36',568,538,15.04,'2368','52786',239,447);
INSERT INTO "communes" VALUES('21','Veuvey-sur-Ouche','07',206,155,10.04,'2643','52428',312,570);
INSERT INTO "communes" VALUES('21','Mirebeau-sur-Bèze','20',1977,1573,22.19,'3313','52665',193,250);
INSERT INTO "communes" VALUES('21','Grancey-sur-Ource','22',207,214,23.94,'2501','53342',190,347);
INSERT INTO "communes" VALUES('21','Arceau','20',708,569,21.6,'3170','52649',217,251);
INSERT INTO "communes" VALUES('21','Prusly-sur-Ource','08',177,193,15.74,'2583','53190',225,320);
INSERT INTO "communes" VALUES('21','Chassey','33',86,91,6.65,'2343','52751',273,449);
INSERT INTO "communes" VALUES('21','Torcy-et-Pouligny','33',162,175,10.31,'2095','52770',240,338);
INSERT INTO "communes" VALUES('21','Talant','43',11475,12172,4.9,'2965','52596',243,405);
INSERT INTO "communes" VALUES('21','Magny-Saint-Médard','20',256,223,10.87,'3240','52645',202,266);
INSERT INTO "communes" VALUES('21','Pasques','39',295,266,20.41,'2806','52629',372,602);
INSERT INTO "communes" VALUES('21','Remilly-sur-Tille','10',744,732,9.8,'3190','52575',203,237);
INSERT INTO "communes" VALUES('21','Saint-Rémy','21',826,813,13.82,'2179','52930',201,346);
INSERT INTO "communes" VALUES('21','Daix','43',1362,1479,11.8,'2958','52613',290,476);
INSERT INTO "communes" VALUES('21','Saint-Anthot','35',57,44,4.11,'2565','52573',423,574);
INSERT INTO "communes" VALUES('21','Neuilly-lès-Dijon','38',1869,2143,4.62,'3079','52533',212,232);
INSERT INTO "communes" VALUES('21','Villars-et-Villenotte','33',156,161,7.52,'2268','52791',282,418);
INSERT INTO "communes" VALUES('21','Cessey-sur-Tille','14',594,452,11.54,'3205','52534',201,229);
INSERT INTO "communes" VALUES('21','Champrenault','37',29,41,4.18,'2604','52666',364,535);
INSERT INTO "communes" VALUES('21','Collonges-lès-Premières','14',769,663,9.42,'3257','52472',192,227);
INSERT INTO "communes" VALUES('21','Asnières-lès-Dijon','43',1208,799,4.55,'3009','52650',274,352);
INSERT INTO "communes" VALUES('21','Villebichot','24',377,272,10.36,'3008','52378',196,227);
INSERT INTO "communes" VALUES('21','Fain-lès-Montbard','21',301,299,7.48,'2292','52897',213,362);
INSERT INTO "communes" VALUES('21','Boncourt-le-Bois','24',278,214,7.58,'2952','52375',200,247);
INSERT INTO "communes" VALUES('21','Jeux-lès-Bard','33',51,39,3.25,'2127','52813',219,259);
INSERT INTO "communes" VALUES('21','Poinçon-lès-Larrey','18',206,196,10.42,'2353','53203',216,328);
INSERT INTO "communes" VALUES('21','Marsannay-le-Bois','17',774,673,11.94,'3065','52711',257,337);
INSERT INTO "communes" VALUES('21','Chaumont-le-Bois','08',85,98,7.54,'2490','53251',216,356);
INSERT INTO "communes" VALUES('21','Meilly-sur-Rouvres','26',184,172,14.91,'2473','52452',375,454);
INSERT INTO "communes" VALUES('21','Sainte-Colombe-sur-Seine','08',947,1041,16.16,'2450','53191',206,283);
INSERT INTO "communes" VALUES('21','Frôlois','36',181,190,34.77,'2550','52811',299,482);
INSERT INTO "communes" VALUES('21','Poiseul-lès-Saulx','17',63,48,15.13,'2951','52860',324,485);
INSERT INTO "communes" VALUES('21','Cuiserey','20',154,85,6.33,'3317','52636',192,223);
INSERT INTO "communes" VALUES('21','Épagny','17',302,218,12.39,'3025','52720',294,492);
INSERT INTO "communes" VALUES('21','Nod-sur-Seine','08',248,257,24.86,'2484','53074',244,384);
INSERT INTO "communes" VALUES('21','Chevannay','37',52,46,7.16,'2575','52663',345,533);
INSERT INTO "communes" VALUES('21','Dompierre-en-Morvan','27',226,201,15.01,'2108','52661',323,438);
INSERT INTO "communes" VALUES('21','Marsannay-la-Côte','38',5108,5213,12.85,'2947','52523',238,477);
INSERT INTO "communes" VALUES('21','Saint-Pierre-en-Vaux','02',133,141,10.86,'2433','52285',331,438);
INSERT INTO "communes" VALUES('21','Sussey','19',251,239,21.11,'2252','52470',365,526);
INSERT INTO "communes" VALUES('21','Urcy','15',159,117,7.93,'2795','52512',305,569);
INSERT INTO "communes" VALUES('21','Marey-lès-Fussey','24',64,81,3.97,'2801','52355',291,456);
INSERT INTO "communes" VALUES('21','Larrey','18',98,67,18.51,'2332','53205',208,317);
INSERT INTO "communes" VALUES('21','Saint-Victor-sur-Ouche','35',247,229,12.77,'2678','52482',300,559);
INSERT INTO "communes" VALUES('21','Montberthault','33',261,238,12.12,'2025','52743',242,347);
INSERT INTO "communes" VALUES('21','Quemigny-sur-Seine','01',115,131,21.34,'2589','52958',285,422);
INSERT INTO "communes" VALUES('21','Flagey-Echézeaux','24',499,493,8.06,'2938','52407',203,400);
INSERT INTO "communes" VALUES('21','Arnay-le-Duc','02',1630,1831,11.95,'2388','52368',328,412);
INSERT INTO "communes" VALUES('21','Saint-Romain','23',234,227,19.65,'2638','52222',274,564);
INSERT INTO "communes" VALUES('21','Orret','04',24,26,11.37,'2620','52887',319,446);
INSERT INTO "communes" VALUES('21','Belan-sur-Ource','22',266,293,20.44,'2574','53272',202,338);
INSERT INTO "communes" VALUES('21','Plombières-lès-Dijon','43',2812,2488,16.21,'2929','52599',241,450);
INSERT INTO "communes" VALUES('21','Pouilly-en-Auxois','26',1555,1496,10.12,'2466','52514',369,560);
INSERT INTO "communes" VALUES('21','Barbirey-sur-Ouche','35',266,224,10.76,'2687','52503',298,589);
INSERT INTO "communes" VALUES('21','Ruffey-lès-Echirey','09',1193,1082,11.12,'3049','52629',219,305);
INSERT INTO "communes" VALUES('21','Saulon-la-Rue','15',650,526,4.53,'3030','52469',211,233);
INSERT INTO "communes" VALUES('21','Poiseul-la-Ville-et-Laperrière','04',165,181,21.64,'2592','52847',338,462);
INSERT INTO "communes" VALUES('21','Curtil-Vergy','15',116,85,2.7,'2836','52411',294,516);
INSERT INTO "communes" VALUES('21','Hauteroche','36',73,83,13.28,'2494','52778',270,472);
INSERT INTO "communes" VALUES('21','Lacanche','02',594,626,7.16,'2470','52306',350,447);
INSERT INTO "communes" VALUES('21','Chailly-sur-Armançon','26',264,201,18.65,'2387','52525',351,522);
INSERT INTO "communes" VALUES('21','Vannaire','08',62,37,3.5,'2481','53238',199,316);
INSERT INTO "communes" VALUES('21','Dampierre-et-Flée','13',122,102,9.45,'3369','52749',210,270);
INSERT INTO "communes" VALUES('21','Marey-sur-Tille','17',327,303,30.15,'3049','52887',281,469);
INSERT INTO "communes" VALUES('21','Molphey','31',148,140,7.58,'2082','52605',395,529);
INSERT INTO "communes" VALUES('21','Touillon','21',442,460,36.98,'2322','52947',239,397);
INSERT INTO "communes" VALUES('21','Ouges','38',1166,1043,12.1,'3043','52513',211,239);
INSERT INTO "communes" VALUES('21','Licey-sur-Vingeanne','13',110,85,3.39,'3383','52757',212,266);
INSERT INTO "communes" VALUES('21','Champagne-sur-Vingeanne','20',292,247,13.25,'3394','52718',201,248);
INSERT INTO "communes" VALUES('21','Flavigny-sur-Ozerain','36',305,341,27.79,'2438','52791',239,482);
INSERT INTO "communes" VALUES('21','Viévigne','20',213,202,13.43,'3215','52706',209,289);
INSERT INTO "communes" VALUES('21','Massingy-lès-Semur','33',193,168,8.43,'2294','52790',265,432);
INSERT INTO "communes" VALUES('21','Montigny-Mornay-Villeneuve-sur-Vingeanne','13',373,358,30.83,'3446','52850',228,316);
INSERT INTO "communes" VALUES('21','Couternon','10',1662,1514,6.81,'3126','52593',211,229);
INSERT INTO "communes" VALUES('21','Corpoyer-la-Chapelle','36',20,26,4.16,'2526','52826',289,445);
INSERT INTO "communes" VALUES('21','Civry-en-Montagne','26',99,73,7.7,'2528','52546',395,573);
INSERT INTO "communes" VALUES('21','Ampilly-les-Bordes','04',74,90,14.48,'2547','52925',350,421);
INSERT INTO "communes" VALUES('21','Genlis','14',5613,5259,12.08,'3207','52490',193,205);
INSERT INTO "communes" VALUES('21','Châtellenot','26',144,158,11.52,'2392','52485',382,527);
INSERT INTO "communes" VALUES('21','Antheuil','07',65,65,10.28,'2677','52414',345,613);
INSERT INTO "communes" VALUES('21','Soirans','03',469,361,4.42,'3280','52452',189,204);
INSERT INTO "communes" VALUES('21','Cérilly','18',269,242,13.9,'2399','53184',214,273);
INSERT INTO "communes" VALUES('21','Vandenesse-en-Auxois','26',284,216,11.25,'2532','52466',342,480);
INSERT INTO "communes" VALUES('21','Broin','34',433,317,14.18,'3080','52310',177,227);
INSERT INTO "communes" VALUES('21','Courban','22',167,147,17.62,'2666','53242',244,348);
INSERT INTO "communes" VALUES('21','Thomirey','07',59,54,7.07,'2504','52313',405,435);
INSERT INTO "communes" VALUES('21','<NAME>','36',150,142,13.19,'2433','52748',264,494);
INSERT INTO "communes" VALUES('21','Baubigny','23',222,252,10.31,'2613','52196',313,566);
INSERT INTO "communes" VALUES('21','Lantilly','33',104,94,9.26,'2268','52827',240,395);
INSERT INTO "communes" VALUES('21','Jallanges','34',335,260,7.48,'3126','52209',175,193);
INSERT INTO "communes" VALUES('21','Labergement-lès-Auxonne','03',352,330,5.93,'3382','52398',180,186);
INSERT INTO "communes" VALUES('21','Buxerolles','28',23,37,11.97,'2884','53119',324,444);
INSERT INTO "communes" VALUES('21','Éguilly','26',61,40,5.69,'2404','52560',344,506);
INSERT INTO "communes" VALUES('21','Lux','17',519,502,23.1,'3195','52768',244,305);
INSERT INTO "communes" VALUES('21','Musigny','02',89,115,6.11,'2425','52403',360,442);
INSERT INTO "communes" VALUES('21','Chanceaux','30',202,208,21.27,'2646','52799',390,519);
INSERT INTO "communes" VALUES('21','Thoisy-la-Berchère','31',311,261,34.74,'2233','52513',355,512);
INSERT INTO "communes" VALUES('21','Rouvray','31',605,580,9.48,'1964','52694',308,401);
INSERT INTO "communes" VALUES('21','Saussey','07',84,85,8.97,'2526','52300',409,471);
INSERT INTO "communes" VALUES('21','Vieux-Château','33',97,104,6.47,'1997','52744',230,351);
INSERT INTO "communes" VALUES('21','Orville','32',188,214,2.24,'3195','52848',277,330);
INSERT INTO "communes" VALUES('21','Prenois','39',416,314,19.16,'2846','52640',300,541);
INSERT INTO "communes" VALUES('21','Frénois','30',90,65,21.96,'2839','52811',322,527);
INSERT INTO "communes" VALUES('21','Auxonne','03',7741,7162,40.65,'3390','52438',181,211);
INSERT INTO "communes" VALUES('21','Écutigny','07',103,78,5.69,'2539','52316',382,475);
INSERT INTO "communes" VALUES('21','Diancey','19',83,87,9.96,'2251','52424',340,428);
INSERT INTO "communes" VALUES('21','Aubigny-en-Plaine','29',366,319,6.34,'3156','52369',183,207);
INSERT INTO "communes" VALUES('21','Savilly','19',76,68,8.31,'2160','52362',400,551);
INSERT INTO "communes" VALUES('21','Saint-Jean-de-Losne','29',1168,1256,0.58,'3253','52337',179,182);
INSERT INTO "communes" VALUES('21','Chorey-les-Beaune','06',565,516,5.59,'2812','52276',199,245);
INSERT INTO "communes" VALUES('21','Cormot-le-Grand','23',146,146,5.88,'2563','52181',337,545);
INSERT INTO "communes" VALUES('21','Monthelie','05',164,200,3.14,'2700','52214',251,386);
INSERT INTO "communes" VALUES('21','Grosbois-lès-Tichey','34',75,42,4.85,'3226','52230',182,193);
INSERT INTO "communes" VALUES('21','Beneuvre','28',95,101,15.4,'2896','52991',375,511);
INSERT INTO "communes" VALUES('21','Créancey','26',524,363,16.71,'2499','52497',370,550);
INSERT INTO "communes" VALUES('21','Minot','01',221,229,36.18,'2822','52966',363,504);
INSERT INTO "communes" VALUES('21','Bévy','15',95,91,5.26,'2798','52421',329,626);
INSERT INTO "communes" VALUES('21','Boudreville','22',60,76,7.94,'2768','53261',238,312);
INSERT INTO "communes" VALUES('21','Semarey','26',116,111,7.32,'2553','52520',374,548);
INSERT INTO "communes" VALUES('21','Laignes','18',777,881,40.02,'2252','53159',202,288);
INSERT INTO "communes" VALUES('21','Barges','15',461,336,3.85,'3027','52458',203,227);
INSERT INTO "communes" VALUES('21','Chambain','28',28,39,9.75,'2871','53109',354,449);
INSERT INTO "communes" VALUES('21','Tart-l''Abbaye','14',231,222,3.38,'3228','52428',187,225);
INSERT INTO "communes" VALUES('21','Courlon','16',72,50,9.86,'2965','52947',317,492);
INSERT INTO "communes" VALUES('21','Gomméville','08',151,132,9.83,'2398','53290',189,355);
INSERT INTO "communes" VALUES('21','Fraignot-et-Vesvrotte','16',68,78,11.73,'2890','52948',383,498);
INSERT INTO "communes" VALUES('21','Premières','14',120,125,3.14,'3275','52482',193,211);
INSERT INTO "communes" VALUES('21','Avelanges','17',42,46,6.08,'2987','52873',348,467);
INSERT INTO "communes" VALUES('21','Thoisy-le-Désert','26',208,163,13.06,'2431','52497',359,456);
INSERT INTO "communes" VALUES('21','Saint-Germain-lès-Senailly','21',93,107,4.98,'2152','52887',208,387);
INSERT INTO "communes" VALUES('21','Vertault','18',54,51,19.27,'2238','53239',187,303);
INSERT INTO "communes" VALUES('21','Blagny-sur-Vingeanne','20',138,109,7.56,'3369','52709',200,254);
INSERT INTO "communes" VALUES('21','Villers-Patras','08',97,123,6.3,'2449','53256',194,339);
INSERT INTO "communes" VALUES('21','Montigny-sur-Armançon','33',141,100,8.12,'2264','52704',290,356);
INSERT INTO "communes" VALUES('21','Panges','30',80,74,6.06,'2736','52634',448,586);
INSERT INTO "communes" VALUES('21','Courcelles-lès-Semur','33',238,188,12.03,'2182','52729',297,387);
INSERT INTO "communes" VALUES('21','Montot','29',196,203,7.51,'3232','52379',183,204);
INSERT INTO "communes" VALUES('21','Moutiers-Saint-Jean','21',256,250,4.96,'2093','52846',216,338);
INSERT INTO "communes" VALUES('21','Nogent-lès-Montbard','21',144,171,6.45,'2272','52898',211,361);
INSERT INTO "communes" VALUES('21','Talmay','25',535,463,22.04,'3447','52616',184,246);
INSERT INTO "communes" VALUES('21','Corberon','34',421,353,11.72,'2953','52231',180,207);
INSERT INTO "communes" VALUES('21','Posanges','37',68,45,5.8,'2432','52687',290,496);
INSERT INTO "communes" VALUES('21','Cléry','25',122,136,3.37,'3509','52543',187,208);
INSERT INTO "communes" VALUES('21','Pluvault','14',517,509,3.46,'3242','52458',189,197);
INSERT INTO "communes" VALUES('21','Vernot','17',71,90,12.91,'2931','52768',317,555);
INSERT INTO "communes" VALUES('21','Liernais','19',591,593,28.53,'2162','52452',424,543);
INSERT INTO "communes" VALUES('21','Magnien','02',334,302,24.43,'2335','52335',317,437);
INSERT INTO "communes" VALUES('21','Magny-lès-Villers','24',258,246,3.83,'2821','52330',253,423);
INSERT INTO "communes" VALUES('21','Saint-Usage','29',1199,994,9.36,'3250','52344',178,186);
INSERT INTO "communes" VALUES('21','Veilly','07',61,64,5.39,'2514','52363',384,452);
INSERT INTO "communes" VALUES('21','Villaines-en-Duesmois','04',289,251,33.95,'2433','52980',306,402);
INSERT INTO "communes" VALUES('21','Fontaine-Française','13',933,919,30.66,'3370','52806',215,287);
INSERT INTO "communes" VALUES('21','Velogny','37',39,32,4.03,'2361','52671',345,498);
INSERT INTO "communes" VALUES('21','Saint-Seine-l''Abbaye','30',360,355,3.84,'2725','52712',429,570);
INSERT INTO "communes" VALUES('21','Chamesson','08',280,326,15.76,'2452','53100',237,348);
INSERT INTO "communes" VALUES('21','Clénay','09',845,574,5.61,'3094','52671',244,316);
INSERT INTO "communes" VALUES('21','Is-sur-Tille','17',4183,3925,22.53,'3088','52801',262,408);
INSERT INTO "communes" VALUES('21','Trouhaut','30',99,125,9.4,'2689','52657',380,597);
INSERT INTO "communes" VALUES('21','Saint-Apollinaire','09',6276,5024,10.24,'3053','52591',215,278);
INSERT INTO "communes" VALUES('21','Juillenay','31',54,50,5.53,'2155','52622',344,459);
INSERT INTO "communes" VALUES('21','Recey-sur-Ource','28',383,430,26.69,'2804','53089',280,442);
INSERT INTO "communes" VALUES('21','Montlay-en-Auxois','31',156,151,17.36,'2160','52611',336,527);
INSERT INTO "communes" VALUES('21','Étalante','01',127,145,39.15,'2696','52935',329,477);
INSERT INTO "communes" VALUES('21','Labergement-Foigney','14',407,417,7.63,'3237','52508',196,230);
INSERT INTO "communes" VALUES('21','Bressey-sur-Tille','10',679,549,7.26,'3163','52565',207,215);
INSERT INTO "communes" VALUES('21','Corcelles-les-Monts','39',652,707,14.33,'2891','52549',260,601);
INSERT INTO "communes" VALUES('21','Seigny','21',164,152,7.99,'2330','52859',221,395);
INSERT INTO "communes" VALUES('21','Blancey','26',70,60,6.73,'2365','52560',361,519);
INSERT INTO "communes" VALUES('21','Arnay-sous-Vitteaux','37',109,146,12.14,'2401','52718',277,482);
INSERT INTO "communes" VALUES('21','Échigey','14',292,214,5.45,'3177','52426',189,204);
INSERT INTO "communes" VALUES('21','Essey','26',247,142,12.61,'2433','52450',373,435);
INSERT INTO "communes" VALUES('21','Marcilly-Ogny','26',198,189,17.87,'2299','52503',370,521);
INSERT INTO "communes" VALUES('21','Mavilly-Mandelot','05',163,153,9.8,'2668','52276',345,588);
INSERT INTO "communes" VALUES('21','Saint-Symphorien-sur-Saône','29',352,306,7.9,'3297','52336',180,191);
INSERT INTO "communes" VALUES('21','Noiron-sur-Seine','08',81,91,11.38,'2388','53275',192,347);
INSERT INTO "communes" VALUES('21','Franxault','29',409,389,12.32,'3267','52282',178,194);
INSERT INTO "communes" VALUES('21','Ahuy','43',1265,1356,6.4,'2984','52632',259,395);
INSERT INTO "communes" VALUES('21','Lanthes','34',253,180,9.79,'3186','52215',184,194);
INSERT INTO "communes" VALUES('21','Source-Seine','36',53,27,16.42,'2610','52766',354,523);
INSERT INTO "communes" VALUES('21','Chaugey','28',22,13,6.89,'2904','53058',325,468);
INSERT INTO "communes" VALUES('21','Marigny-lès-Reullée','06',191,171,10.02,'2919','52220',179,201);
INSERT INTO "communes" VALUES('21','Chivres','34',255,207,8.23,'3066','52196',173,204);
INSERT INTO "communes" VALUES('21','Chevannes','15',133,113,6.29,'2791','52398',325,636);
INSERT INTO "communes" VALUES('21','Leuglay','28',337,379,24.56,'2728','53127',260,417);
INSERT INTO "communes" VALUES('21','Saffres','37',122,105,12.43,'2491','52631',328,542);
INSERT INTO "communes" VALUES('21','Messigny-et-Vantoux','43',1574,1254,33.92,'2979','52673',274,553);
INSERT INTO "communes" VALUES('21','Pagny-la-Ville','34',421,383,6.73,'3153','52292',177,184);
INSERT INTO "communes" VALUES('21','Charny','37',33,34,7.8,'2325','52596',342,567);
INSERT INTO "communes" VALUES('21','Fontangy','27',149,147,17.61,'2244','52607',345,561);
INSERT INTO "communes" VALUES('21','Magny-Lambert','04',97,105,12.78,'2491','52982',307,415);
INSERT INTO "communes" VALUES('21','Vaux-Saules','30',191,133,27.89,'2742','52741',375,581);
INSERT INTO "communes" VALUES('21','Auvillars-sur-Saône','34',308,212,6.74,'3073','52292',176,226);
INSERT INTO "communes" VALUES('21','Saint-Didier','31',214,194,21.14,'2051','52589',420,617);
INSERT INTO "communes" VALUES('21','Tanay','20',237,232,12.65,'3266','52677',198,266);
INSERT INTO "communes" VALUES('21','Sombernon','35',978,781,13.22,'2634','52564',399,592);
INSERT INTO "communes" VALUES('21','Gurgy-le-Château','28',50,61,17.65,'2878','53141',307,440);
INSERT INTO "communes" VALUES('21','Vesvres','37',23,25,4.15,'2439','52648',329,511);
INSERT INTO "communes" VALUES('21','Saint-Nicolas-lès-Cîteaux','24',434,475,28.93,'3020','52350',190,227);
INSERT INTO "communes" VALUES('21','Savoisy','18',214,246,24.77,'2308','53034',259,341);
INSERT INTO "communes" VALUES('21','Molinot','23',152,157,12.68,'2502','52238',339,495);
INSERT INTO "communes" VALUES('21','Bagnot','34',129,124,12.57,'3043','52288',189,216);
INSERT INTO "communes" VALUES('21','Dampierre-en-Montagne','37',77,68,10.36,'2469','52703',379,502);
INSERT INTO "communes" VALUES('21','Bèze','20',724,632,23.4,'3260','52742',201,305);
INSERT INTO "communes" VALUES('21','Vielverge','25',496,460,14.78,'3461','52521',180,207);
INSERT INTO "communes" VALUES('21','Pouilly-sur-Saône','34',667,591,5.15,'3089','52243',176,205);
INSERT INTO "communes" VALUES('21','Censerey','19',178,167,11.99,'2242','52447',367,490);
INSERT INTO "communes" VALUES('21','<NAME>-les-Convers','04',40,35,8.88,'2488','52858',363,423);
INSERT INTO "communes" VALUES('21','Montoillot','35',72,64,7.71,'2578','52522',374,552);
INSERT INTO "communes" VALUES('21','Francheville','30',245,199,31.65,'2829','52728',344,563);
INSERT INTO "communes" VALUES('21','Curley','15',144,118,5.75,'2854','52447',360,528);
INSERT INTO "communes" VALUES('21','Alise-Sainte-Reine','36',617,674,3.83,'2393','52819',237,407);
INSERT INTO "communes" VALUES('21','Champdôtre','03',565,548,10.44,'3297','52424',185,204);
INSERT INTO "communes" VALUES('21','Toutry','33',465,452,6.42,'1984','52779',215,278);
INSERT INTO "communes" VALUES('21','Argilly','24',465,423,34.12,'2973','52298',188,227);
INSERT INTO "communes" VALUES('21','Arconcey','26',216,188,15.06,'2354','52465',375,534);
INSERT INTO "communes" VALUES('21','Grancey-le-Château-Neuvelle','16',272,291,27.55,'2988','52967',309,493);
INSERT INTO "communes" VALUES('21','Uncey-le-Franc','37',46,54,9.52,'2484','52606',344,539);
INSERT INTO "communes" VALUES('21','Bonnencontre','34',431,343,10.83,'3123','52315',177,226);
INSERT INTO "communes" VALUES('21','Buncey','08',386,386,27.02,'2473','53137',222,334);
INSERT INTO "communes" VALUES('21','Bellenot-sous-Pouilly','26',228,199,14.63,'2455','52537',352,570);
INSERT INTO "communes" VALUES('21','Chevigny-Saint-Sauveur','10',9969,10140,12.11,'3110','52557',207,233);
INSERT INTO "communes" VALUES('21','Corcelles-les-Arts','06',463,409,5.47,'2731','52169',195,221);
INSERT INTO "communes" VALUES('21','Étevaux','25',294,259,8.67,'3312','52580',186,228);
INSERT INTO "communes" VALUES('21','Saint-Léger-Triey','25',210,145,10.46,'3365','52572',185,217);
INSERT INTO "communes" VALUES('21','Pont-et-Massène','33',201,173,6.11,'2245','52745',262,344);
INSERT INTO "communes" VALUES('21','Fresnes','21',174,180,13.07,'2336','52898',220,393);
INSERT INTO "communes" VALUES('21','Villey-sur-Tille','17',296,278,12.78,'3089','52848',273,443);
INSERT INTO "communes" VALUES('21','Beurizot','37',117,110,14.5,'2398','52614',332,513);
INSERT INTO "communes" VALUES('21','Maillys','03',830,766,29.79,'3337','52374',180,197);
INSERT INTO "communes" VALUES('21','Buffon','21',160,189,8.88,'2154','52945',197,347);
INSERT INTO "communes" VALUES('21','Grésigny-Sainte-Reine','36',136,153,7.06,'2406','52841',238,400);
INSERT INTO "communes" VALUES('21','Vignoles','06',851,728,6.72,'2835','52256',191,216);
INSERT INTO "communes" VALUES('21','Billy-lès-Chanceaux','04',80,74,22.29,'2635','52831',358,499);
INSERT INTO "communes" VALUES('21','Ménétreux-le-Pitois','36',445,426,6.62,'2372','52843',228,397);
INSERT INTO "communes" VALUES('21','Gissey-sous-Flavigny','36',100,100,10.29,'2504','52792',264,458);
INSERT INTO "communes" VALUES('21','Semur-en-Auxois','33',4195,4451,19.14,'2218','52768',237,423);
INSERT INTO "communes" VALUES('21','Lamargelle','30',158,144,25.75,'2782','52815',337,527);
INSERT INTO "communes" VALUES('21','Trochères','20',180,136,5.1,'3299','52605',188,206);
INSERT INTO "communes" VALUES('21','Pont','03',93,87,3.49,'3310','52418',183,202);
INSERT INTO "communes" VALUES('21','Bard-lès-Époisses','33',54,67,3.54,'2088','52813',228,365);
INSERT INTO "communes" VALUES('21','Beurey-Bauguay','26',140,91,7.3,'2319','52481',392,536);
INSERT INTO "communes" VALUES('21','Obtrée','08',74,89,5.17,'2466','53246',197,347);
INSERT INTO "communes" VALUES('21','Charencey','36',29,32,4.84,'2595','52691',334,517);
INSERT INTO "communes" VALUES('21','Marcenay','18',113,116,9.49,'2297','53181',206,273);
INSERT INTO "communes" VALUES('21','Senailly','21',141,151,9.28,'2144','52872',209,424);
INSERT INTO "communes" VALUES('21','Esbarres','29',758,621,15.86,'3198','52327',177,197);
INSERT INTO "communes" VALUES('21','Gissey-sur-Ouche','35',364,303,14.48,'2701','52515',287,578);
INSERT INTO "communes" VALUES('21','Turcey','30',175,171,12.45,'2645','52674',350,579);
INSERT INTO "communes" VALUES('21','Arcey','35',48,45,3.47,'2768','52528',290,542);
INSERT INTO "communes" VALUES('21','Aisey-sur-Seine','08',225,196,12.72,'2493','53056',251,379);
INSERT INTO "communes" VALUES('21','Ruffey-lès-Beaune','06',678,658,15.44,'2864','52243',184,218);
INSERT INTO "communes" VALUES('21','Saint-Sauveur','25',238,206,9.38,'3420','52620',188,211);
INSERT INTO "communes" VALUES('21','Champeau-en-Morvan','31',247,237,33.95,'2009','52529',494,683);
INSERT INTO "communes" VALUES('21','Marliens','14',449,391,4.35,'3162','52457',196,202);
INSERT INTO "communes" VALUES('21','Vitteaux','37',1102,1114,20.7,'2450','52664',304,513);
INSERT INTO "communes" VALUES('21','Bissey-la-Pierre','18',76,86,8.44,'2321','53166',214,261);
INSERT INTO "communes" VALUES('21','Auxant','07',71,39,5.56,'2542','52360',365,470);
INSERT INTO "communes" VALUES('21','Maxilly-sur-Saône','25',340,302,7.87,'3434','52593',183,236);
INSERT INTO "communes" VALUES('21','Saulieu','31',2564,2835,32.03,'2102','52533',394,596);
INSERT INTO "communes" VALUES('21','Arrans','21',66,82,10.52,'2202','52996',249,332);
INSERT INTO "communes" VALUES('21','Bretigny','09',924,716,6.84,'3073','52665',232,288);
INSERT INTO "communes" VALUES('21','Longvic','38',9290,9015,10.56,'3030','52542',219,247);
INSERT INTO "communes" VALUES('21','Mosson','08',93,87,7.41,'2547','53243',228,337);
INSERT INTO "communes" VALUES('21','Essarois','28',87,93,18.25,'2720','53059',277,428);
INSERT INTO "communes" VALUES('21','Chamblanc','34',516,404,10.21,'3127','52244',176,192);
INSERT INTO "communes" VALUES('21','Saint-Philibert','15',446,410,4.72,'2972','52451',213,235);
INSERT INTO "communes" VALUES('21','Varois-et-Chaignot','09',2004,1961,10.1,'3104','52612',214,240);
INSERT INTO "communes" VALUES('21','Bard-le-Régulier','19',70,75,9.1,'2200','52384',394,550);
INSERT INTO "communes" VALUES('21','Rouvres-sous-Meilly','26',97,104,4.43,'2484','52457',358,424);
INSERT INTO "communes" VALUES('21','Villeferry','37',31,36,3.3,'2420','52728',308,497);
INSERT INTO "communes" VALUES('21','Longeault','14',587,682,1.24,'3241','52469',193,198);
INSERT INTO "communes" VALUES('21','Montmain','34',117,63,9.07,'3031','52254',188,214);
INSERT INTO "communes" VALUES('21','Selongey','32',2410,2233,46.42,'3165','52875',278,464);
INSERT INTO "communes" VALUES('21','Champ-d''Oiseau','21',76,86,4.83,'2233','52838',283,395);
INSERT INTO "communes" VALUES('21','Asnières-en-Montagne','21',186,187,28.47,'2154','53020',203,322);
INSERT INTO "communes" VALUES('21','Pommard','05',525,594,10.05,'2732','52233',215,411);
INSERT INTO "communes" VALUES('21','Collonges-lès-Bévy','15',94,78,5.39,'2795','52410',310,626);
INSERT INTO "communes" VALUES('21','Saint-Germain-le-Rocheux','01',89,101,7.66,'2592','53056',277,393);
INSERT INTO "communes" VALUES('21','Châtelet','34',206,178,3.64,'3120','52290',176,183);
INSERT INTO "communes" VALUES('21','Goulles','22',16,12,8.93,'2854','53202',270,372);
INSERT INTO "communes" VALUES('21','Bligny-sur-Ouche','07',850,751,27.99,'2592','52340',337,549);
INSERT INTO "communes" VALUES('21','Étormay','04',79,47,12.6,'2487','52886',355,422);
INSERT INTO "communes" VALUES('21','Mauvilly','01',73,91,15.31,'2623','53009',325,424);
INSERT INTO "communes" VALUES('21','Poiseul-la-Grange','30',69,70,22.89,'2742','52863',370,506);
INSERT INTO "communes" VALUES('21','Bussières','16',41,47,6.31,'2921','52960',370,500);
INSERT INTO "communes" VALUES('21','Ampilly-le-Sec','08',363,377,24.4,'2438','53122',231,314);
INSERT INTO "communes" VALUES('21','Gemeaux','17',864,760,19.34,'3111','52753',251,333);
INSERT INTO "communes" VALUES('21','Pellerey','30',86,103,12.44,'2717','52784',357,510);
INSERT INTO "communes" VALUES('21','Champignolles','02',70,78,6.34,'2477','52284',352,457);
INSERT INTO "communes" VALUES('22','Hengoat','42',203,165,6.19,'-6150','54159',9,82);
INSERT INTO "communes" VALUES('22','Saint-Fiacre','35',226,197,9.7,'-5997','53846',114,228);
INSERT INTO "communes" VALUES('22','Gouarec','15',937,953,6.41,'-6130','53585',127,210);
INSERT INTO "communes" VALUES('22','Plouëc-du-Trieux','40',1102,1084,18.27,'-6142','54082',7,104);
INSERT INTO "communes" VALUES('22','Kermaria-Sulard','29',979,744,9.02,'-6341','54191',55,110);
INSERT INTO "communes" VALUES('22','Caulnes','06',2385,2015,31.36,'-4990','53655',46,133);
INSERT INTO "communes" VALUES('22','Trébédan','31',393,384,10.97,'-5008','53778',84,115);
INSERT INTO "communes" VALUES('22','Gommenec''h','20',531,475,11.83,'-5984','54044',32,91);
INSERT INTO "communes" VALUES('22','Ploufragan','51',11111,10576,27.06,'-5702','53877',30,181);
INSERT INTO "communes" VALUES('22','Laniscat','15',813,832,24.21,'-6066','53602',122,255);
INSERT INTO "communes" VALUES('22','Trézény','47',320,272,3.25,'-6336','54175',29,105);
INSERT INTO "communes" VALUES('22','Lanloup','39',269,214,2.45,'-5891','54125',35,97);
INSERT INTO "communes" VALUES('22','Trédarzec','21',1135,999,11.68,'-6152','54208',0,84);
INSERT INTO "communes" VALUES('22','Perret','15',175,190,12.22,'-6107','53530',122,286);
INSERT INTO "communes" VALUES('22','Quemperven','42',390,357,7.69,'-6287','54139',28,93);
INSERT INTO "communes" VALUES('22','Fréhel','24',1637,2047,18.91,'-5225','54031',0,82);
INSERT INTO "communes" VALUES('22','Quévert','12',3626,3118,12.48,'-4915','53849',49,130);
INSERT INTO "communes" VALUES('22','Noyal','18',836,770,6.8,'-5359','53831',52,95);
INSERT INTO "communes" VALUES('22','Plouguiel','47',1840,1858,19.07,'-6197','54219',0,76);
INSERT INTO "communes" VALUES('22','Merdrignac','25',2918,2826,57.12,'-5279','53547',77,196);
INSERT INTO "communes" VALUES('22','Quemper-Guézennec','40',1091,1016,23.08,'-6046','54113',2,98);
INSERT INTO "communes" VALUES('22','Mégrit','04',747,645,20.63,'-5094','53750',29,130);
INSERT INTO "communes" VALUES('22','Pléboulle','24',726,662,14.1,'-5194','54010',0,67);
INSERT INTO "communes" VALUES('22','Perros-Guirec','29',7511,7609,14.16,'-6422','54237',0,96);
INSERT INTO "communes" VALUES('22','Langrolay-sur-Rance','37',832,679,5.28,'-4821','53949',4,87);
INSERT INTO "communes" VALUES('22','<NAME>','23',672,583,14.85,'-6487','53628',98,192);
INSERT INTO "communes" VALUES('22','Loc-Envel','02',73,73,3.36,'-6384','53907',102,240);
INSERT INTO "communes" VALUES('22','Mellionnec','15',403,441,24.22,'-6259','53527',143,281);
INSERT INTO "communes" VALUES('22','Plorec-sur-Arguenon','31',399,398,13.65,'-5149','53867',7,88);
INSERT INTO "communes" VALUES('22','Belle-Isle-en-Terre','02',1072,1099,14.11,'-6367','53939',77,266);
INSERT INTO "communes" VALUES('22','<NAME>','51',1301,1126,6.78,'-5750','53887',39,155);
INSERT INTO "communes" VALUES('22','Lanrodec','35',1180,842,31.92,'-5964','53907',132,280);
INSERT INTO "communes" VALUES('22','Callac','05',2365,2460,33.03,'-6405','53783',116,291);
INSERT INTO "communes" VALUES('22','Coëtlogon','08',236,249,16.35,'-5423','53491',77,182);
INSERT INTO "communes" VALUES('22','Glomel','43',1389,1462,79.93,'-6370','53581',134,307);
INSERT INTO "communes" VALUES('22','Plerneuf','07',1009,887,8.3,'-5802','53905',118,208);
INSERT INTO "communes" VALUES('22','Plémet','08',3047,2936,41,'-5479','53530',82,241);
INSERT INTO "communes" VALUES('22','Plougras','36',441,494,26.48,'-6553','53901',164,314);
INSERT INTO "communes" VALUES('22','Kermoroc''h','01',417,324,6.16,'-6159','54024',79,147);
INSERT INTO "communes" VALUES('22','Pléven','30',565,565,9.73,'-5174','53878',7,107);
INSERT INTO "communes" VALUES('22','Saint-Michel-en-Grève','33',474,405,4.69,'-6556','54093',0,107);
INSERT INTO "communes" VALUES('22','<NAME>','42',1010,1013,1.84,'-6218','54163',2,60);
INSERT INTO "communes" VALUES('22','Trégastel','29',2440,2233,7,'-6500','54241',0,71);
INSERT INTO "communes" VALUES('22','Lanvollon','20',1767,1389,5.01,'-5913','54033',37,98);
INSERT INTO "communes" VALUES('22','Étables-sur-Mer','13',3062,2514,9.38,'-5746','54029',0,82);
INSERT INTO "communes" VALUES('22','Languenan','30',1100,804,15.95,'-4959','53901',55,131);
INSERT INTO "communes" VALUES('22','Saint-Alban','32',1963,1577,30.43,'-5412','53952',8,126);
INSERT INTO "communes" VALUES('22','Moustéru','16',689,594,14.28,'-6195','53908',110,295);
INSERT INTO "communes" VALUES('22','Landéhen','18',1346,987,11.8,'-5419','53809',58,113);
INSERT INTO "communes" VALUES('22','Landébia','30',492,427,3.55,'-5192','53905',48,83);
INSERT INTO "communes" VALUES('22','Binic','13',3693,3111,5.96,'-5735','54002',0,86);
INSERT INTO "communes" VALUES('22','Bringolo','35',399,303,9.38,'-5932','53974',57,132);
INSERT INTO "communes" VALUES('22','Bourseul','30',1072,922,22.23,'-5107','53875',5,121);
INSERT INTO "communes" VALUES('22','Quintenic','18',315,266,7.5,'-5294','53906',44,106);
INSERT INTO "communes" VALUES('22','Saint-Gildas','41',303,257,15.54,'-5933','53802',195,286);
INSERT INTO "communes" VALUES('22','Ruca','24',562,504,12.13,'-5195','53964',22,79);
INSERT INTO "communes" VALUES('22','<NAME>','12',832,680,3.37,'-4905','53770',33,112);
INSERT INTO "communes" VALUES('22','Pleudihen-sur-Rance','11',2825,2518,24.55,'-4765','53901',0,63);
INSERT INTO "communes" VALUES('22','Plounévez-Quintin','43',1074,1179,42.89,'-6187','53656',135,290);
INSERT INTO "communes" VALUES('22','Paimpol','28',7634,7933,23.61,'-5981','54198',0,86);
INSERT INTO "communes" VALUES('22','Pluduno','30',2091,1699,28.32,'-5116','53923',5,77);
INSERT INTO "communes" VALUES('22','Lantic','13',1541,1116,15.81,'-5816','53999',12,109);
INSERT INTO "communes" VALUES('22','Runan','40',255,225,5.12,'-6164','54104',25,102);
INSERT INTO "communes" VALUES('22','<NAME>','08',475,526,18.02,'-5497','53399',50,137);
INSERT INTO "communes" VALUES('22','Meslin','18',987,700,13.92,'-5449','53827',42,97);
INSERT INTO "communes" VALUES('22','Andel','18',1098,905,12.2,'-5449','53878',32,122);
INSERT INTO "communes" VALUES('22','Kerien','03',277,219,21.88,'-6165','53767',223,307);
INSERT INTO "communes" VALUES('22','Saint-Connan','46',305,317,13.54,'-6000','53798',154,282);
INSERT INTO "communes" VALUES('22','Maël-Carhaix','23',1619,1536,36.57,'-6401','53648',114,243);
INSERT INTO "communes" VALUES('22','Saint-Jouan-de-l''Isle','06',454,345,8.09,'-4995','53631',52,131);
INSERT INTO "communes" VALUES('22','Loudéac','22',9857,9389,80.24,'-5655','53531',73,245);
INSERT INTO "communes" VALUES('22','Carnoët','05',770,729,42.06,'-6509','53742',87,235);
INSERT INTO "communes" VALUES('22','Lanleff','39',109,110,2.16,'-5979','54103',17,86);
INSERT INTO "communes" VALUES('22','Saint-Brieuc','99',46209,46089,21.88,'-5663','53904',0,134);
INSERT INTO "communes" VALUES('22','Plouzélambre','33',220,217,7.84,'-6531','54047',35,126);
INSERT INTO "communes" VALUES('22','Yvignac-la-Tour','04',1199,1094,35.39,'-5014','53720',52,131);
INSERT INTO "communes" VALUES('22','Ploumagoar','16',5142,4399,32.07,'-6077','53939',67,202);
INSERT INTO "communes" VALUES('22','Gomené','25',588,540,25.37,'-5359','53527',104,221);
INSERT INTO "communes" VALUES('22','Pleslin-Trigavou','37',3425,2947,21.8,'-4879','53928',32,95);
INSERT INTO "communes" VALUES('22','Saint-Étienne-du-Gué-de-l''Isle','08',388,378,14.91,'-5538','53449',52,147);
INSERT INTO "communes" VALUES('22','Plessala','38',1881,1823,51.45,'-5506','53640',95,337);
INSERT INTO "communes" VALUES('22','Guingamp','16',7280,8013,3.41,'-6097','53958',62,126);
INSERT INTO "communes" VALUES('22','Trémorel','25',1106,916,33.76,'-5139','53555',78,144);
INSERT INTO "communes" VALUES('22','Lancieux','37',1494,1221,6.69,'-4985','54009',0,47);
INSERT INTO "communes" VALUES('22','Plurien','32',1417,1236,21.65,'-5267','54029',3,96);
INSERT INTO "communes" VALUES('22','Pordic','50',5956,5175,28.94,'-5727','53967',0,143);
INSERT INTO "communes" VALUES('22','Plouagat','35',2522,2218,31.98,'-5928','53930',68,262);
INSERT INTO "communes" VALUES('22','Goudelin','35',1657,1354,22.98,'-5948','54003',37,113);
INSERT INTO "communes" VALUES('22','Saint-Rieul','18',458,328,6.37,'-5284','53825',64,106);
INSERT INTO "communes" VALUES('22','Tréguidel','20',600,538,6.56,'-5867','54002',82,117);
INSERT INTO "communes" VALUES('22','Trédias','04',515,441,11.01,'-5081','53731',37,111);
INSERT INTO "communes" VALUES('22','Pleumeur-Gautier','21',1180,1145,18.99,'-6104','54225',10,86);
INSERT INTO "communes" VALUES('22','Laurenan','25',716,734,30.9,'-5413','53555',120,295);
INSERT INTO "communes" VALUES('22','Trégon','37',234,260,6.12,'-5022','53966',3,52);
INSERT INTO "communes" VALUES('22','Coadout','16',543,497,9.73,'-6138','53908',74,245);
INSERT INTO "communes" VALUES('22','Plussulien','10',492,515,22.49,'-6008','53647',152,305);
INSERT INTO "communes" VALUES('22','Plœuc-sur-Lié','34',3247,2936,44.45,'-5660','53718',147,270);
INSERT INTO "communes" VALUES('22','Plouasne','14',1554,1357,33.61,'-4826','53668',17,181);
INSERT INTO "communes" VALUES('22','Plévin','23',795,775,27.36,'-6490','53585',90,302);
INSERT INTO "communes" VALUES('22','Saint-Carné','12',891,812,8.36,'-4891','53796',7,118);
INSERT INTO "communes" VALUES('22','Erquy','32',3852,3760,26.46,'-5334','54035',0,116);
INSERT INTO "communes" VALUES('22','Saint-Gilles-Pligeaux','46',272,299,19.45,'-6034','53756',183,302);
INSERT INTO "communes" VALUES('22','Saint-Julien','51',2053,1753,5.69,'-5725','53836',88,197);
INSERT INTO "communes" VALUES('22','Ploëzal','40',1225,1190,26.24,'-6155','54129',2,94);
INSERT INTO "communes" VALUES('22','Saint-Maudez','31',295,226,5.09,'-5021','53837',39,104);
INSERT INTO "communes" VALUES('22','Camlez','47',853,711,11.66,'-6268','54198',17,106);
INSERT INTO "communes" VALUES('22','Pleudaniel','21',980,996,18.42,'-6090','54185',0,76);
INSERT INTO "communes" VALUES('22','Saint-Quay-Portrieux','13',3093,3115,3.87,'-5742','54058',0,74);
INSERT INTO "communes" VALUES('22','Plouaret','36',2189,2112,29.98,'-6454','54013',84,190);
INSERT INTO "communes" VALUES('22','Saint-Barnabé','08',1262,1341,22.75,'-5599','53486',72,173);
INSERT INTO "communes" VALUES('22','Illifaut','25',685,631,26.71,'-5205','53496',67,123);
INSERT INTO "communes" VALUES('22','Bréhand','26',1438,1272,24.95,'-5456','53781',58,150);
INSERT INTO "communes" VALUES('22','Lanrivain','46',549,524,36.74,'-6167','53719',160,281);
INSERT INTO "communes" VALUES('22','Quintin','41',2834,2613,3.12,'-5829','53782',154,220);
INSERT INTO "communes" VALUES('22','Lannion','19',20079,18368,43.91,'-6435','54147',0,107);
INSERT INTO "communes" VALUES('22','Plusquellec','05',570,521,26.31,'-6468','53762',104,273);
INSERT INTO "communes" VALUES('22','Pluzunet','36',1019,986,22.87,'-6340','54046',28,160);
INSERT INTO "communes" VALUES('22','Vildé-Guingalan','31',1199,878,7.35,'-4994','53820',53,117);
INSERT INTO "communes" VALUES('22','Lanmérin','47',495,333,4.15,'-6318','54157',27,75);
INSERT INTO "communes" VALUES('22','<NAME>','48',545,553,16.16,'-5800','53601',100,297);
INSERT INTO "communes" VALUES('22','Peumerit-Quintin','46',167,148,14.8,'-6232','53734',212,290);
INSERT INTO "communes" VALUES('22','Plouisy','16',1926,1753,23.63,'-6134','53976',55,195);
INSERT INTO "communes" VALUES('22','Bourbriac','03',2351,2299,71.86,'-6139','53859',111,308);
INSERT INTO "communes" VALUES('22','Brélidy','40',302,335,8.14,'-6172','54066',35,111);
INSERT INTO "communes" VALUES('22','Trévérec','20',202,173,4.33,'-5995','54061',23,93);
INSERT INTO "communes" VALUES('22','Saint-Connec','27',266,276,10.93,'-5842','53531',89,170);
INSERT INTO "communes" VALUES('22','Tréduder','33',200,163,4.8,'-6554','54056',0,108);
INSERT INTO "communes" VALUES('22','Magoar','03',89,96,7.79,'-6137','53774',223,296);
INSERT INTO "communes" VALUES('22','Pontrieux','40',1024,1121,1.02,'-6106','54109',7,77);
INSERT INTO "communes" VALUES('22','Pléguien','20',1201,1011,15.48,'-5863','54039',52,109);
INSERT INTO "communes" VALUES('22','Yffiniac','49',4778,3842,17.44,'-5571','53872',5,147);
INSERT INTO "communes" VALUES('22','Moncontour','26',940,868,0.48,'-5522','53733',98,182);
INSERT INTO "communes" VALUES('22','Mûr-de-Bretagne','27',2108,2091,29.8,'-5914','53556',69,290);
INSERT INTO "communes" VALUES('22','Trébeurden','29',3710,3455,13.4,'-6560','54188',0,104);
INSERT INTO "communes" VALUES('22','Prat','42',1144,1017,21.87,'-6260','54085',19,112);
INSERT INTO "communes" VALUES('22','Gurunhuel','02',398,382,19.58,'-6263','53907',159,302);
INSERT INTO "communes" VALUES('22','Île-de-Bréhat','28',414,422,3.09,'-5929','54274',0,34);
INSERT INTO "communes" VALUES('22','Saint-Brandan','41',2369,2240,25.16,'-5785','53766',122,261);
INSERT INTO "communes" VALUES('22','Calorguen','12',671,523,8.48,'-4850','53789',7,87);
INSERT INTO "communes" VALUES('22','<NAME>','24',847,664,10.91,'-5302','53971',43,111);
INSERT INTO "communes" VALUES('22','Trévron','12',704,664,9.6,'-4888','53768',25,112);
INSERT INTO "communes" VALUES('22','Trégrom','36',401,451,16.64,'-6380','54001',43,182);
INSERT INTO "communes" VALUES('22','Trélivan','12',2501,2179,11.1,'-4949','53815',66,132);
INSERT INTO "communes" VALUES('22','Tréveneuc','13',779,593,6.65,'-5785','54071',0,87);
INSERT INTO "communes" VALUES('22','Corlay','10',1011,978,13.8,'-5993','53686',157,257);
INSERT INTO "communes" VALUES('22','Pédernec','01',1905,1653,27.05,'-6229','53997',102,302);
INSERT INTO "communes" VALUES('22','Saint-Hervé','48',403,397,9.83,'-5738','53641',138,262);
INSERT INTO "communes" VALUES('22','Trégonneau','01',511,401,6.32,'-6111','54013',43,135);
INSERT INTO "communes" VALUES('22','Tramain','17',649,527,9.25,'-5265','53779',37,131);
INSERT INTO "communes" VALUES('22','Plancoët','30',3082,2604,11.49,'-5078','53915',5,87);
INSERT INTO "communes" VALUES('22','Saint-Jacut-de-la-Mer','37',853,872,2.92,'-5030','53997',0,43);
INSERT INTO "communes" VALUES('22','Plésidy','03',640,638,25.79,'-6064','53831',95,268);
INSERT INTO "communes" VALUES('22','Duault','05',356,356,21.59,'-6413','53735',97,256);
INSERT INTO "communes" VALUES('22','Allineuc','48',561,497,24.09,'-5788','53679',124,271);
INSERT INTO "communes" VALUES('22','Sévignac','04',1114,1042,43.25,'-5195','53703',30,152);
INSERT INTO "communes" VALUES('22','Pleumeur-Bodou','29',4050,3833,26.71,'-6504','54192',0,106);
INSERT INTO "communes" VALUES('22','Tréogan','23',99,119,7.1,'-6507','53544',135,293);
INSERT INTO "communes" VALUES('22','Hénansal','24',1123,936,29,'-5301','53935',32,123);
INSERT INTO "communes" VALUES('22','Plélan-le-Petit','31',1765,1504,21.23,'-5063','53816',64,125);
INSERT INTO "communes" VALUES('22','Tréfumel','14',265,246,5.81,'-4847','53709',15,50);
INSERT INTO "communes" VALUES('22','Plélauff','15',693,689,25.51,'-6162','53563',123,273);
INSERT INTO "communes" VALUES('22','Brusvily','12',1065,794,11.83,'-4959','53768',40,120);
INSERT INTO "communes" VALUES('22','Lescouët-Gouarec','15',206,189,18.73,'-6201','53511',169,270);
INSERT INTO "communes" VALUES('22','Bobital','12',1036,865,4.99,'-4933','53793',54,111);
INSERT INTO "communes" VALUES('22','Pludual','39',718,461,9.27,'-5912','54072',35,96);
INSERT INTO "communes" VALUES('22','Maël-Pestivien','05',406,449,31.29,'-6259','53772',223,302);
INSERT INTO "communes" VALUES('22','Lanvellec','33',551,538,18.92,'-6525','54021',40,219);
INSERT INTO "communes" VALUES('22','<NAME>','20',906,798,12.63,'-6005','53973',69,137);
INSERT INTO "communes" VALUES('22','Kerpert','46',297,318,21,'-6078','53752',177,301);
INSERT INTO "communes" VALUES('22','Merléac','48',498,508,30.03,'-5817','53641',114,311);
INSERT INTO "communes" VALUES('22','Plénée-Jugon','17',2434,2260,61.36,'-5263','53738',35,211);
INSERT INTO "communes" VALUES('22','Saint-Judoce','14',549,443,10.19,'-4767','53737',11,67);
INSERT INTO "communes" VALUES('22','Lanfains','34',1016,869,21.87,'-5834','53726',147,322);
INSERT INTO "communes" VALUES('22','Kerbors','21',312,329,6.88,'-6133','54253',0,70);
INSERT INTO "communes" VALUES('22','Châtelaudren','07',1020,924,0.46,'-5897','53936',95,133);
INSERT INTO "communes" VALUES('22','Saint-Gilles-Vieux-Marché','27',326,302,21.95,'-5901','53604',110,311);
INSERT INTO "communes" VALUES('22','Saint-Martin-des-Prés','10',338,366,20.3,'-5879','53675',166,322);
INSERT INTO "communes" VALUES('22','Collinée','09',921,939,7.06,'-5396','53668',163,305);
INSERT INTO "communes" VALUES('22','Lanvallay','11',3735,3069,14.61,'-4850','53839',7,87);
INSERT INTO "communes" VALUES('22','Matignon','24',1683,1537,14.53,'-5142','53995',0,76);
INSERT INTO "communes" VALUES('22','Plumaudan','06',1151,842,17.83,'-4957','53731',37,130);
INSERT INTO "communes" VALUES('22','Trévé','22',1547,1315,26.63,'-5702','53570',87,256);
INSERT INTO "communes" VALUES('22','Saint-Vran','25',745,689,28.12,'-5309','53597',127,302);
INSERT INTO "communes" VALUES('22','Jugon-les-Lacs','17',1731,1351,26.15,'-5176','53788',17,116);
INSERT INTO "communes" VALUES('22','Saint-Lormel','30',876,776,9.77,'-5073','53940',0,61);
INSERT INTO "communes" VALUES('22','Saint-Guen','27',460,461,17.95,'-5859','53575',119,232);
INSERT INTO "communes" VALUES('22','Gausson','38',620,581,16.71,'-5657','53666',133,254);
INSERT INTO "communes" VALUES('22','<NAME>','31',715,461,7.59,'-5018','53817',62,125);
INSERT INTO "communes" VALUES('22','Planguenoual','32',2001,1552,32.89,'-5460','53925',0,127);
INSERT INTO "communes" VALUES('22','Canihuel','46',376,409,32.14,'-6046','53709',149,296);
INSERT INTO "communes" VALUES('22','Plestin-les-Grèves','33',3616,3413,34.52,'-6630','54063',0,127);
INSERT INTO "communes" VALUES('22','Saint-Jean-Kerdaniel','35',578,461,11.12,'-5953','53961',102,174);
INSERT INTO "communes" VALUES('22','Saint-Nicolas-du-Pélem','46',1723,1845,41.04,'-6112','53681',139,291);
INSERT INTO "communes" VALUES('22','Plouguernével','43',1759,2218,41.6,'-6214','53600',132,235);
INSERT INTO "communes" VALUES('22','Éréac','04',644,599,21.21,'-5204','53638',91,179);
INSERT INTO "communes" VALUES('22','Plumaugat','06',1095,1004,40.43,'-5084','53617',63,144);
INSERT INTO "communes" VALUES('22','Trémel','33',415,395,11.93,'-6609','54003',25,155);
INSERT INTO "communes" VALUES('22','Caouënnec-Lanvézéac','19',879,628,7.07,'-6347','54115',34,105);
INSERT INTO "communes" VALUES('22','Dolo','17',606,426,11.88,'-5184','53760',27,94);
INSERT INTO "communes" VALUES('22','Plouër-sur-Rance','12',3361,2733,19.89,'-4822','53920',0,99);
INSERT INTO "communes" VALUES('22','Trédrez-Locquémeau','33',1460,1250,10.65,'-6558','54109',0,120);
INSERT INTO "communes" VALUES('22','<NAME>','08',455,449,15.64,'-5492','53491',70,188);
INSERT INTO "communes" VALUES('22','<NAME>','08',848,857,16.97,'-5523','53537',76,203);
INSERT INTO "communes" VALUES('22','Plestan','17',1546,1391,32.81,'-5315','53804',55,142);
INSERT INTO "communes" VALUES('22','Broons','04',2924,2388,35.21,'-5108','53686',45,143);
INSERT INTO "communes" VALUES('22','Langast','38',631,646,20.45,'-5556','53645',104,240);
INSERT INTO "communes" VALUES('22','Saint-Quay-Perros','29',1461,1393,4.72,'-6427','54214',4,96);
INSERT INTO "communes" VALUES('22','<NAME>','18',479,347,5.02,'-5367','53775',77,141);
INSERT INTO "communes" VALUES('22','Langueux','49',7178,6242,9.1,'-5615','53883',2,107);
INSERT INTO "communes" VALUES('22','Plévenon','24',731,0,13.73,'-5186','54060',0,81);
INSERT INTO "communes" VALUES('22','Landebaëron','01',193,185,6.44,'-6162','54038',51,113);
INSERT INTO "communes" VALUES('22','<NAME>','14',339,305,5.06,'-4825','53724',13,77);
INSERT INTO "communes" VALUES('22','Rospez','19',1727,1527,13.24,'-6356','54144',31,112);
INSERT INTO "communes" VALUES('22','Treffrin','23',558,571,7.47,'-6503','53665',85,174);
INSERT INTO "communes" VALUES('22','Saint-Donan','51',1463,1346,22.92,'-5802','53855',87,227);
INSERT INTO "communes" VALUES('22','<NAME>','09',1219,935,30.5,'-5361','53697',79,305);
INSERT INTO "communes" VALUES('22','Trélévern','29',1381,1309,6.94,'-6342','54232',0,92);
INSERT INTO "communes" VALUES('22','Pleubian','21',2533,2697,20.1,'-6085','54269',0,59);
INSERT INTO "communes" VALUES('22','Minihy-Tréguier','47',1103,1066,12.07,'-6183','54195',0,67);
INSERT INTO "communes" VALUES('22','Squiffiec','01',769,587,10.8,'-6101','54030',25,123);
INSERT INTO "communes" VALUES('22','Languédias','31',461,403,8.61,'-5055','53765',73,115);
INSERT INTO "communes" VALUES('22','Langoat','47',1124,1056,18.5,'-6241','54167',2,89);
INSERT INTO "communes" VALUES('22','Loscouët-sur-Meu','25',648,601,22.26,'-5087','53531',66,131);
INSERT INTO "communes" VALUES('22','Hénon','26',2204,1735,40.87,'-5578','53761',64,251);
INSERT INTO "communes" VALUES('22','Saint-Clet','40',871,787,14.46,'-6076','54070',7,99);
INSERT INTO "communes" VALUES('22','Plourivo','28',2213,1980,28.35,'-6010','54160',1,100);
INSERT INTO "communes" VALUES('22','Saint-Cast-le-Guildo','24',3491,3190,22.63,'-5105','54033',0,76);
INSERT INTO "communes" VALUES('22','Saint-Jacut-du-Mené','09',725,716,19.81,'-5353','53648',150,296);
INSERT INTO "communes" VALUES('22','Trémeur','04',684,632,14.56,'-5111','53720',30,87);
INSERT INTO "communes" VALUES('22','<NAME>','10',688,714,25.64,'-5993','53690',163,306);
INSERT INTO "communes" VALUES('22','Hémonstoir','22',671,639,14.03,'-5741','53510',77,166);
INSERT INTO "communes" VALUES('22','<NAME>','08',592,569,2.53,'-5547','53479',67,141);
INSERT INTO "communes" VALUES('22','Trédaniel','26',994,856,15.92,'-5506','53731',86,331);
INSERT INTO "communes" VALUES('22','Morieux','18',936,761,7.55,'-5495','53913',0,105);
INSERT INTO "communes" VALUES('22','Trébrivan','23',698,664,22.96,'-6457','53677',87,192);
INSERT INTO "communes" VALUES('22','Kerfot','28',651,590,5.71,'-5963','54152',28,101);
INSERT INTO "communes" VALUES('22','Locarn','23',535,457,32.36,'-6398','53689',92,282);
INSERT INTO "communes" VALUES('22','Berhet','42',225,211,3.23,'-6267','54107',50,101);
INSERT INTO "communes" VALUES('22','Plouvara','07',1105,910,22.19,'-5835','53897',114,213);
INSERT INTO "communes" VALUES('22','Plounérin','36',749,696,25.89,'-6531','53963',105,247);
INSERT INTO "communes" VALUES('22','Saint-Gelven','15',316,296,17.48,'-6037','53585',120,281);
INSERT INTO "communes" VALUES('22','Pouldouran','42',165,160,1.02,'-6150','54183',0,50);
INSERT INTO "communes" VALUES('22','Lézardrieux','21',1601,1630,11.91,'-6048','54206',0,82);
INSERT INTO "communes" VALUES('22','Caurel','27',378,386,11.65,'-5972','53574',120,308);
INSERT INTO "communes" VALUES('22','Saint-Juvat','14',642,648,17.41,'-4867','53726',13,71);
INSERT INTO "communes" VALUES('22','<NAME>','06',200,165,7.92,'-4979','53629',52,123);
INSERT INTO "communes" VALUES('22','Quessoy','26',3492,3185,29.23,'-5550','53801',37,161);
INSERT INTO "communes" VALUES('22','Plaine-Haute','41',1416,1212,15.29,'-5767','53828',87,199);
INSERT INTO "communes" VALUES('22','Plouézec','28',3382,3180,27.87,'-5913','54165',0,106);
INSERT INTO "communes" VALUES('22','Plouguenast','38',1846,1720,35.12,'-5601','53646',112,253);
INSERT INTO "communes" VALUES('22','Pommerit-Jaudy','42',1266,989,20.37,'-6198','54147',2,94);
INSERT INTO "communes" VALUES('22','Tressignaux','20',612,534,7.29,'-5911','54018',48,106);
INSERT INTO "communes" VALUES('22','Coatascorn','42',251,226,8.05,'-6207','54082',28,101);
INSERT INTO "communes" VALUES('22','Louannec','29',3017,2383,13.91,'-6386','54215',0,108);
INSERT INTO "communes" VALUES('22','<NAME>','41',1473,1123,20.54,'-5835','53810',129,256);
INSERT INTO "communes" VALUES('22','Plouha','39',4597,4401,39.97,'-5851','54084',0,109);
INSERT INTO "communes" VALUES('22','Trégueux','49',7926,6585,14.57,'-5638','53879',20,170);
INSERT INTO "communes" VALUES('22','Sainte-Tréphine','46',219,214,12.52,'-6101','53633',129,187);
INSERT INTO "communes" VALUES('22','Grâces','16',2435,2424,14.07,'-6135','53951',67,188);
INSERT INTO "communes" VALUES('22','Dinan','98',10819,10967,4.11,'-4874','53840',7,92);
INSERT INTO "communes" VALUES('22','<NAME>','34',431,382,17.67,'-5886','53706',175,317);
INSERT INTO "communes" VALUES('22','Saint-André-des-Eaux','14',248,237,5.24,'-4829','53746',11,36);
INSERT INTO "communes" VALUES('22','Troguéry','42',297,233,3.61,'-6180','54171',0,55);
INSERT INTO "communes" VALUES('22','Plourac''h','05',348,369,32.15,'-6537','53796',125,284);
INSERT INTO "communes" VALUES('22','Plourhan','13',1954,1546,17.24,'-5787','54034',21,111);
INSERT INTO "communes" VALUES('22','Ploubalay','37',2769,2381,35.45,'-4974','53978',2,77);
INSERT INTO "communes" VALUES('22','Boqueho','07',1067,849,27.12,'-5886','53870',119,281);
INSERT INTO "communes" VALUES('22','Coatréven','47',437,382,9.13,'-6310','54187',17,101);
INSERT INTO "communes" VALUES('22','Cavan','42',1419,1132,16.4,'-6312','54080',53,111);
INSERT INTO "communes" VALUES('22','Langourla','09',555,609,21.41,'-5280','53650',127,218);
INSERT INTO "communes" VALUES('22','Saint-Samson-sur-Rance','12',1520,1150,6.27,'-4852','53880',4,78);
INSERT INTO "communes" VALUES('22','Bulat-Pestivien','05',465,432,31.23,'-6297','53810',189,307);
INSERT INTO "communes" VALUES('22','Rostrenen','43',3307,3598,32.17,'-6281','53596',152,262);
INSERT INTO "communes" VALUES('22','<NAME>','41',765,607,25.13,'-5930','53765',188,306);
INSERT INTO "communes" VALUES('22','Ploubezre','19',3376,2626,31.14,'-6428','54116',3,114);
INSERT INTO "communes" VALUES('22','Taden','12',2297,1743,20.13,'-4838','53862',7,90);
INSERT INTO "communes" VALUES('22','Rouillac','04',364,366,15.77,'-5225','53677',81,187);
INSERT INTO "communes" VALUES('22','Aucaleuc','12',893,629,6.38,'-4962','53840',68,120);
INSERT INTO "communes" VALUES('22','Tréméloir','07',743,442,4.69,'-5772','53951',59,139);
INSERT INTO "communes" VALUES('22','Saint-Péver','35',358,329,13.13,'-6043','53868',89,203);
INSERT INTO "communes" VALUES('22','Saint-Mayeux','10',515,486,30.63,'-5936','53618',189,316);
INSERT INTO "communes" VALUES('22','Saint-Gouéno','09',660,640,20.08,'-5450','53631',149,313);
INSERT INTO "communes" VALUES('22','L''Hermitage-Lorge','34',743,652,37.82,'-5739','53702',169,295);
INSERT INTO "communes" VALUES('22','Saint-Maden','06',201,206,6.56,'-4904','53701',17,70);
INSERT INTO "communes" VALUES('22','<NAME>té-sur-Rance','11',950,770,4.57,'-4798','53876',5,73);
INSERT INTO "communes" VALUES('22','Paule','23',699,652,37.56,'-6424','53596',108,298);
INSERT INTO "communes" VALUES('22','Hénanbihen','24',1365,1295,31.65,'-5237','53956',7,102);
INSERT INTO "communes" VALUES('22','Guitté','06',623,526,14.53,'-4923','53663',45,137);
INSERT INTO "communes" VALUES('22','Pléhédel','39',1311,1122,12.36,'-5938','54105',22,107);
INSERT INTO "communes" VALUES('22','Saint-Caradec','22',1196,1138,21.94,'-5762','53545',84,191);
INSERT INTO "communes" VALUES('22','Saint-Glen','26',596,555,11.51,'-5400','53733',104,311);
INSERT INTO "communes" VALUES('22','Créhen','30',1697,1480,18.21,'-5055','53940',0,87);
INSERT INTO "communes" VALUES('22','Trémuson','50',1916,1681,6.31,'-5762','53915',30,163);
INSERT INTO "communes" VALUES('22','Trégomeur','07',919,732,10.37,'-5798','53962',20,123);
INSERT INTO "communes" VALUES('22','Saint-Denoual','24',416,353,8.61,'-5263','53919',44,108);
INSERT INTO "communes" VALUES('22','Saint-Nicodème','05',169,168,16.94,'-6306','53714',215,293);
INSERT INTO "communes" VALUES('22','Tréglamus','02',1007,837,18.79,'-6234','53952',128,295);
INSERT INTO "communes" VALUES('22','Calanhel','05',254,264,14.32,'-6463','53819',168,295);
INSERT INTO "communes" VALUES('22','Penvénan','47',2620,2434,19.84,'-6257','54235',0,92);
INSERT INTO "communes" VALUES('22','Trévou-Tréguignec','29',1434,1149,6.52,'-6328','54239',0,92);
INSERT INTO "communes" VALUES('22','Pommerit-le-Vicomte','20',1812,1727,33.03,'-6027','54021',34,119);
INSERT INTO "communes" VALUES('22','Saint-Bihy','41',200,201,8.22,'-5897','53754',185,315);
INSERT INTO "communes" VALUES('22','Lamballe','18',12098,10564,76.29,'-5393','53854',37,131);
INSERT INTO "communes" VALUES('22','Plougrescant','47',1349,1399,15.54,'-6183','54267',0,72);
INSERT INTO "communes" VALUES('22','Saint-Thélo','48',420,444,14.56,'-5767','53587',97,227);
INSERT INTO "communes" VALUES('22','Mérillac','25',240,241,13.86,'-5256','53618',108,188);
INSERT INTO "communes" VALUES('22','Plédéliac','17',1284,1242,51.75,'-5249','53833',17,111);
INSERT INTO "communes" VALUES('22','Évran','14',1664,1473,23.56,'-4797','53758',9,75);
INSERT INTO "communes" VALUES('22','Tonquédec','36',1073,1068,18.01,'-6368','54077',10,106);
INSERT INTO "communes" VALUES('22','Tréguier','47',2723,2679,1.52,'-6187','54206',0,66);
INSERT INTO "communes" VALUES('22','Grâce-Uzel','48',414,402,7.95,'-5708','53601',146,261);
INSERT INTO "communes" VALUES('22','Plougonver','02',715,768,35.72,'-6350','53872',142,320);
INSERT INTO "communes" VALUES('22','Ploulec''h','19',1678,1467,10.15,'-6490','54131',0,102);
INSERT INTO "communes" VALUES('22','Plaintel','34',3985,3473,26.76,'-5727','53787',100,246);
INSERT INTO "communes" VALUES('22','Saint-Méloir-des-Bois','31',257,234,6.13,'-5097','53842',50,122);
INSERT INTO "communes" VALUES('22','Uzel','48',1075,900,6.79,'-5753','53644',116,238);
INSERT INTO "communes" VALUES('22','Saint-Igeaux','15',140,151,12.91,'-6046','53636',137,221);
INSERT INTO "communes" VALUES('22','Plédran','51',6039,5749,34.71,'-5647','53829',41,198);
INSERT INTO "communes" VALUES('22','Saint-Michel-de-Plélan','31',308,249,7.24,'-5057','53851',32,107);
INSERT INTO "communes" VALUES('22','<NAME>','20',317,274,7.55,'-6011','54092',17,96);
INSERT INTO "communes" VALUES('22','<NAME>','41',138,113,5.01,'-5891','53811',189,254);
INSERT INTO "communes" VALUES('22','Saint-Gilles-les-Bois','40',409,401,9.45,'-6044','54055',39,100);
INSERT INTO "communes" VALUES('22','Saint-Agathon','16',2110,1783,14.56,'-6046','53955',80,146);
INSERT INTO "communes" VALUES('22','La Motte','22',2056,1780,43.03,'-5632','53595',96,278);
INSERT INTO "communes" VALUES('22','Penguily','26',613,422,10.49,'-5368','53747',80,159);
INSERT INTO "communes" VALUES('22','Saint-Carreuc','26',1501,1225,12.69,'-5631','53776',125,237);
INSERT INTO "communes" VALUES('22','Hillion','49',4076,3787,24.76,'-5561','53904',0,86);
INSERT INTO "communes" VALUES('22','Lanmodez','21',461,431,4.15,'-6047','54268',0,53);
INSERT INTO "communes" VALUES('22','Guenroc','06',216,195,7.39,'-4902','53686',23,102);
INSERT INTO "communes" VALUES('22','Lanrelas','04',862,868,29.4,'-5145','53613',80,145);
INSERT INTO "communes" VALUES('22','Le Bodéo','34',179,189,9.97,'-5855','53691',165,297);
INSERT INTO "communes" VALUES('22','Pommeret','18',1916,1712,13.35,'-5514','53847',35,80);
INSERT INTO "communes" VALUES('22','Cohiniac','07',383,351,12.26,'-5872','53846',139,246);
INSERT INTO "communes" VALUES('22','Plessix-Balisson','37',92,83,0.08,'-4976','53931',35,57);
INSERT INTO "communes" VALUES('22','Tréméreuc','37',627,567,4.15,'-4891','53954',20,82);
INSERT INTO "communes" VALUES('22','Ploumilliau','33',2550,2175,34.69,'-6511','54089',0,133);
INSERT INTO "communes" VALUES('22','Plérin','50',13788,12517,27.72,'-5675','53927',0,143);
INSERT INTO "communes" VALUES('22','Saint-Gilles-du-Mené','09',481,474,12.92,'-5427','53609',150,297);
INSERT INTO "communes" VALUES('22','Pléneuf-Val-André','32',4054,3683,17.07,'-5427','53990',0,117);
INSERT INTO "communes" VALUES('22','Saint-Trimoël','26',444,319,8.35,'-5428','53763',68,154);
INSERT INTO "communes" VALUES('22','Saint-Servais','05',408,390,28.04,'-6360','53763',130,292);
INSERT INTO "communes" VALUES('22','Saint-Launeuc','25',197,194,11.58,'-5235','53593',104,159);
INSERT INTO "communes" VALUES('22','Trébry','26',762,720,25.12,'-5432','53728',105,340);
INSERT INTO "communes" VALUES('22','Léhon','11',3064,3103,4.6,'-4862','53824',7,132);
INSERT INTO "communes" VALUES('22','Plélo','07',3275,2632,43.38,'-5870','53952',44,175);
INSERT INTO "communes" VALUES('22','Saint-Pôtan','24',808,735,19.89,'-5142','53953',12,77);
INSERT INTO "communes" VALUES('22','Saint-Laurent','01',476,417,8.96,'-6188','54021',55,155);
INSERT INTO "communes" VALUES('22','Lannebert','20',418,354,6.99,'-5939','54065',32,92);
INSERT INTO "communes" VALUES('22','Yvias','28',732,661,11.61,'-5988','54126',8,107);
INSERT INTO "communes" VALUES('22','Saint-Maudan','22',372,411,6.67,'-5678','53460',65,146);
INSERT INTO "communes" VALUES('22','Saint-Adrien','03',337,302,9.93,'-6074','53877',84,211);
INSERT INTO "communes" VALUES('22','Ploubazlanec','28',3263,3319,15.04,'-5967','54223',0,72);
INSERT INTO "communes" VALUES('22','Plumieux','08',1075,1073,38.92,'-5467','53448',66,174);
INSERT INTO "communes" VALUES('22','Trémargat','43',164,171,13.9,'-6226','53702',174,287);
INSERT INTO "communes" VALUES('22','Coëtmieux','18',1599,1260,8.02,'-5485','53880',32,83);
INSERT INTO "communes" VALUES('22','Plufur','33',558,518,17.5,'-6567','54009',28,178);
INSERT INTO "communes" VALUES('22','Kergrist-Moëlou','43',659,692,47.16,'-6282','53677',153,302);
INSERT INTO "communes" VALUES('22','Corseul','30',2029,1978,41.74,'-5007','53869',13,126);
INSERT INTO "communes" VALUES('22','Bégard','01',4707,4476,36.41,'-6264','54031',45,176);
INSERT INTO "communes" VALUES('22','Pabu','16',2799,2662,7.83,'-6080','53986',50,137);
INSERT INTO "communes" VALUES('22','Tréméven','20',362,277,5.12,'-5961','54081',20,87);
INSERT INTO "communes" VALUES('22','Mantallot','42',213,172,2.76,'-6261','54119',18,87);
INSERT INTO "communes" VALUES('22','Plémy','38',1682,1524,40.04,'-5577','53707',124,256);
INSERT INTO "communes" VALUES('22','Pont-Melvez','03',673,633,22.98,'-6269','53845',182,287);
INSERT INTO "communes" VALUES('22','Plounévez-Moëdec','36',1442,1347,40.36,'-6423','53952',58,222);
INSERT INTO "communes" VALUES('22','Senven-Léhart','03',233,250,12.5,'-6006','53805',120,266);
INSERT INTO "communes" VALUES('22','La Chapelle-Neuve','02',425,399,23.78,'-6397','53847',184,304);
INSERT INTO "communes" VALUES('22','Saint-Hélen','11',1234,1028,17.02,'-4773','53857',7,87);
INSERT INTO "communes" VALUES('22','Loguivy-Plougras','36',950,1001,47.68,'-6471','53913',102,321);
INSERT INTO "communes" VALUES('22','<NAME>-Marché','36',1274,1109,23.13,'-6427','54008',27,192);
INSERT INTO "communes" VALUES('22','Louargat','02',2301,2131,57.23,'-6306','53962',100,301);
INSERT INTO "communes" VALUES('22','Champs-Géraux','14',1036,959,19.09,'-4785','53796',7,97);
INSERT INTO "communes" VALUES('22','Lohuec','05',272,261,17.18,'-6509','53845',184,314);
INSERT INTO "communes" VALUES('23','Viersat','09',311,348,29.09,'105','51412',369,494);
INSERT INTO "communes" VALUES('23','Moutier-Rozeille','16',433,436,19.66,'-155','51018',437,671);
INSERT INTO "communes" VALUES('23','Lussat','09',455,428,46.86,'6','51314',351,453);
INSERT INTO "communes" VALUES('23','Augères','05',129,146,12.43,'-674','51209',417,522);
INSERT INTO "communes" VALUES('23','Sermur','03',119,129,19.5,'105','51084',607,725);
INSERT INTO "communes" VALUES('23','Soumans','08',582,544,36.68,'-33','51446',375,497);
INSERT INTO "communes" VALUES('23','Mérinchal','13',745,821,45.45,'169','51019',656,784);
INSERT INTO "communes" VALUES('23','Fresselines','14',603,672,30.78,'-727','51537',200,366);
INSERT INTO "communes" VALUES('23','Janaillat','21',360,366,28.29,'-657','51174',410,631);
INSERT INTO "communes" VALUES('23','Saint-Avit-de-Tardes','02',188,171,14.42,'-57','51020',504,699);
INSERT INTO "communes" VALUES('23','Arfeuille-Châtain','15',208,170,20.5,'111','51184',493,690);
INSERT INTO "communes" VALUES('23','Trois-Fonds','20',116,95,9.53,'-120','51389',385,482);
INSERT INTO "communes" VALUES('23','Saint-Julien-la-Genête','15',241,213,11.91,'152','51280',415,522);
INSERT INTO "communes" VALUES('23','Saint-Pierre-Chérignat','07',184,186,23.72,'-803','51081',292,497);
INSERT INTO "communes" VALUES('23','Colondannes','14',271,305,10.7,'-806','51433',283,431);
INSERT INTO "communes" VALUES('23','Malval','06',46,57,4.03,'-501','51500',248,376);
INSERT INTO "communes" VALUES('23','Dontreix','03',396,419,47.45,'248','51097',510,753);
INSERT INTO "communes" VALUES('23','Noth','25',519,460,22.89,'-834','51372',339,453);
INSERT INTO "communes" VALUES('23','Saint-Alpinien','02',300,320,15.21,'-109','51086',536,674);
INSERT INTO "communes" VALUES('23','<NAME>','27',379,353,14.11,'-552','51223',462,690);
INSERT INTO "communes" VALUES('23','Pontcharraud','13',79,97,9.56,'-73','50960',571,700);
INSERT INTO "communes" VALUES('23','<NAME>','24',427,354,7.08,'-611','51298',428,544);
INSERT INTO "communes" VALUES('23','Vallière','16',766,775,48.42,'-336','51007',494,708);
INSERT INTO "communes" VALUES('23','Brousse','03',25,36,3.63,'132','51080',595,739);
INSERT INTO "communes" VALUES('23','Tardes','09',145,127,21.4,'10','51266',358,514);
INSERT INTO "communes" VALUES('23','Châtelus-Malvaleix','10',569,569,14.97,'-348','51449',325,541);
INSERT INTO "communes" VALUES('23','Bosroger','04',108,76,7.56,'-96','51105',515,663);
INSERT INTO "communes" VALUES('23','Lupersat','04',331,354,32.64,'21','51095',461,706);
INSERT INTO "communes" VALUES('23','La Chapelle-Saint-Martial','21',86,92,10.12,'-457','51140',494,606);
INSERT INTO "communes" VALUES('23','Vareilles','25',308,266,17.68,'-955','51445',267,403);
INSERT INTO "communes" VALUES('23','Chard','03',202,173,14.12,'156','51049',577,776);
INSERT INTO "communes" VALUES('23','Saint-Junien-la-Bregère','22',147,160,25.66,'-646','50982',464,691);
INSERT INTO "communes" VALUES('23','Genouillac','10',801,780,35.76,'-383','51503',266,406);
INSERT INTO "communes" VALUES('23','Boussac-Bourg','08',783,788,38.69,'-114','51512',310,499);
INSERT INTO "communes" VALUES('23','Saint-Vaury','24',1806,1827,46.5,'-645','51338',387,634);
INSERT INTO "communes" VALUES('23','Saint-Frion','16',211,177,18.76,'-120','50960',523,727);
INSERT INTO "communes" VALUES('23','Mansat-la-Courrière','07',87,94,9.42,'-589','51069',391,618);
INSERT INTO "communes" VALUES('23','Domeyrot','20',223,214,24.59,'-201','51389',333,520);
INSERT INTO "communes" VALUES('23','Saint-Pierre-de-Fursac','18',794,787,27.33,'-916','51276',315,431);
INSERT INTO "communes" VALUES('23','Nouziers','10',241,232,14.33,'-421','51580',342,466);
INSERT INTO "communes" VALUES('23','Saint-Marc-à-Loubaud','17',137,122,18.42,'-378','50943',634,774);
INSERT INTO "communes" VALUES('23','Gentioux-Pigerolles','17',388,390,79.29,'-381','50872',653,929);
INSERT INTO "communes" VALUES('23','Maison-Feyne','14',300,290,13.27,'-741','51489',208,368);
INSERT INTO "communes" VALUES('23','Cressat','01',570,524,33.41,'-254','51266',340,546);
INSERT INTO "communes" VALUES('23','Faux-Mazuras','07',170,160,19.96,'-615','51026',454,642);
INSERT INTO "communes" VALUES('23','Bazelat','25',297,286,13.43,'-887','51502',280,400);
INSERT INTO "communes" VALUES('23','Saint-Merd-la-Breuille','12',204,238,40.19,'104','50826',717,846);
INSERT INTO "communes" VALUES('23','Chéniers','06',557,583,34.9,'-566','51501',230,384);
INSERT INTO "communes" VALUES('23','Saint-Dizier-les-Domaines','10',187,199,15.89,'-335','51465',279,422);
INSERT INTO "communes" VALUES('23','Auge','09',104,109,9.97,'-14','51380',372,453);
INSERT INTO "communes" VALUES('23','La Cellette','10',273,285,21.48,'-358','51560',294,432);
INSERT INTO "communes" VALUES('23','Saint-Victor-en-Marche','27',361,369,16.62,'-581','51243',389,580);
INSERT INTO "communes" VALUES('23','Royère-de-Vassivière','22',561,636,74.14,'-472','50935',540,829);
INSERT INTO "communes" VALUES('23','Aulon','05',165,176,10.86,'-718','51202',407,535);
INSERT INTO "communes" VALUES('23','Saint-Domet','04',166,176,15.33,'-41','51159',422,544);
INSERT INTO "communes" VALUES('23','Saint-Silvain-Montaigut','24',184,208,9.55,'-649','51269',380,492);
INSERT INTO "communes" VALUES('23','Saint-Priest','15',164,192,22.34,'8','51209',420,585);
INSERT INTO "communes" VALUES('23','Rougnat','03',531,541,41.01,'183','51171',430,669);
INSERT INTO "communes" VALUES('23','Saint-Pardoux-d''Arnet','13',163,150,16.44,'-7','50975',596,743);
INSERT INTO "communes" VALUES('23','Saint-Martial-le-Vieux','12',129,109,22.22,'-28','50765',723,935);
INSERT INTO "communes" VALUES('23','Auzances','03',1336,1371,7.08,'183','51141',486,624);
INSERT INTO "communes" VALUES('23','Mautes','04',229,220,22.67,'53','51049',568,727);
INSERT INTO "communes" VALUES('23','Chamberaud','23',101,121,7.44,'-323','51166',392,586);
INSERT INTO "communes" VALUES('23','<NAME>êt-du-Temple','06',145,151,7.72,'-482','51579',360,462);
INSERT INTO "communes" VALUES('23','Budelière','09',788,755,25.07,'146','51356',293,449);
INSERT INTO "communes" VALUES('23','Saint-Agnant-de-Versillat','25',1139,1101,50.46,'-917','51421',279,449);
INSERT INTO "communes" VALUES('23','Villard','14',346,329,16.37,'-706','51480',211,375);
INSERT INTO "communes" VALUES('23','<NAME>','23',176,191,13.54,'-389','51142',508,620);
INSERT INTO "communes" VALUES('23','Vidaillat','21',169,162,23.59,'-477','51064',444,760);
INSERT INTO "communes" VALUES('23','Pionnat','01',763,744,41.77,'-346','51301',320,573);
INSERT INTO "communes" VALUES('23','Banize','23',159,134,15.24,'-377','51034',471,653);
INSERT INTO "communes" VALUES('23','Tercillat','10',166,200,13.64,'-314','51564',329,435);
INSERT INTO "communes" VALUES('23','Saint-Amand-Jartoudeix','07',171,189,18.74,'-753','51016',399,605);
INSERT INTO "communes" VALUES('23','Bussière-Nouvelle','03',114,105,8.52,'100','51132',571,687);
INSERT INTO "communes" VALUES('23','<NAME>azière-aux-Bons-Hommes','13',67,73,10.24,'116','50982',692,802);
INSERT INTO "communes" VALUES('23','Saint-Hilaire-la-Plaine','01',209,235,11.06,'-400','51250',395,506);
INSERT INTO "communes" VALUES('23','Bonnat','06',1305,1348,45.79,'-480','51475',248,515);
INSERT INTO "communes" VALUES('23','Toulx-Sainte-Croix','08',297,304,35.05,'-137','51428',375,656);
INSERT INTO "communes" VALUES('23','Leyrat','08',155,175,18.32,'-49','51513',372,456);
INSERT INTO "communes" VALUES('23','Sainte-Feyre-la-Montagne','16',129,122,6.84,'-116','50999',540,688);
INSERT INTO "communes" VALUES('23','Lépaud','09',389,342,24.12,'56','51377',350,457);
INSERT INTO "communes" VALUES('23','Croze','16',190,211,22.16,'-195','50910',518,841);
INSERT INTO "communes" VALUES('23','Saint-Sébastien','14',694,705,24.98,'-894','51546',244,361);
INSERT INTO "communes" VALUES('23','Pontarion','21',358,379,5.25,'-541','51108',435,561);
INSERT INTO "communes" VALUES('23','Saint-Pierre-le-Bost','08',148,156,17.24,'-85','51556',400,501);
INSERT INTO "communes" VALUES('23','Saint-Étienne-de-Fursac','18',847,815,31.7,'-914','51271',316,470);
INSERT INTO "communes" VALUES('23','Saint-Oradoux-près-Crocq','13',116,124,13.36,'57','50976',614,772);
INSERT INTO "communes" VALUES('23','Bellegarde-en-Marche','04',409,425,3.14,'-47','51091',530,648);
INSERT INTO "communes" VALUES('23','Néoux','02',299,300,23.81,'-84','51017',509,688);
INSERT INTO "communes" VALUES('23','La Villetelle','13',164,171,16.14,'5','51021',540,727);
INSERT INTO "communes" VALUES('23','Évaux-les-Bains','15',1457,1544,45.55,'166','51306',292,560);
INSERT INTO "communes" VALUES('23','<NAME>','11',123,110,14.41,'-18','51174',420,613);
INSERT INTO "communes" VALUES('23','Saint-Maurice-la-Souterraine','25',1206,1047,39.72,'-1006','51349',300,422);
INSERT INTO "communes" VALUES('23','<NAME>','14',608,598,29.11,'-630','51455',216,392);
INSERT INTO "communes" VALUES('23','Saint-Pardoux-Morterolles','22',218,242,36.5,'-573','50997',467,798);
INSERT INTO "communes" VALUES('23','Saint-Sulpice-le-Guérétois','24',2008,1843,36.18,'-564','51334',347,609);
INSERT INTO "communes" VALUES('23','Mortroux','06',304,318,13.28,'-468','51553',300,424);
INSERT INTO "communes" VALUES('23','Marsac','05',679,726,19.67,'-830','51220',348,470);
INSERT INTO "communes" VALUES('23','Puy-Malsignat','11',161,194,12.61,'-131','51154',496,616);
INSERT INTO "communes" VALUES('23','Clairavaux','12',153,153,27.55,'-188','50870',595,876);
INSERT INTO "communes" VALUES('23','Champagnat','04',440,423,28.82,'-59','51132',436,663);
INSERT INTO "communes" VALUES('23','Lavaveix-les-Mines','11',761,836,4.71,'-275','51190',366,500);
INSERT INTO "communes" VALUES('23','Saint-Germain-Beaupré','25',436,381,17.06,'-879','51453',279,381);
INSERT INTO "communes" VALUES('23','Masbaraud-Mérignat','07',374,327,20.39,'-657','51084',370,580);
INSERT INTO "communes" VALUES('23','Saint-Priest-Palus','07',44,40,10.64,'-754','50998',412,628);
INSERT INTO "communes" VALUES('23','Gioux','17',174,199,37.42,'-239','50900',608,886);
INSERT INTO "communes" VALUES('23','Mars','03',202,219,12.9,'158','51091',513,657);
INSERT INTO "communes" VALUES('23','Saint-Maixant','02',225,260,13.86,'-144','51104',420,628);
INSERT INTO "communes" VALUES('23','Malleret-Boussac','08',244,229,25.43,'-215','51492',298,443);
INSERT INTO "communes" VALUES('23','Issoudun-Létrieix','11',299,278,26.43,'-215','51178',384,598);
INSERT INTO "communes" VALUES('23','Thauron','21',184,189,22.34,'-576','51111',390,632);
INSERT INTO "communes" VALUES('23','Chénérailles','11',750,758,7.77,'-179','51236',487,553);
INSERT INTO "communes" VALUES('23','Saint-Dizier-la-Tour','11',219,228,16.99,'-204','51274',444,554);
INSERT INTO "communes" VALUES('23','Saint-Dizier-Leyrenne','07',887,882,46.63,'-694','51144',370,619);
INSERT INTO "communes" VALUES('23','Alleyrat','02',142,164,9.54,'-203','51098',396,589);
INSERT INTO "communes" VALUES('23','Blaudeix','20',116,98,6.9,'-280','51368',359,479);
INSERT INTO "communes" VALUES('23','Méasnes','06',584,615,27.63,'-621','51574',280,426);
INSERT INTO "communes" VALUES('23','Saint-Éloi','21',206,167,15.6,'-560','51193',468,668);
INSERT INTO "communes" VALUES('23','Moutier-d''Ahun','01',157,194,9.91,'-313','51213',340,456);
INSERT INTO "communes" VALUES('23','Saint-Amand','02',513,526,8.05,'-143','51091',477,641);
INSERT INTO "communes" VALUES('23','Chambonchard','15',87,84,12.86,'221','51295',310,518);
INSERT INTO "communes" VALUES('23','Linard','06',166,204,12.6,'-515','51509',242,378);
INSERT INTO "communes" VALUES('23','Azat-Châtenet','05',134,133,9.51,'-641','51196',436,565);
INSERT INTO "communes" VALUES('23','Anzême','24',559,536,29.5,'-525','51406',254,441);
INSERT INTO "communes" VALUES('23','Peyrat-la-Nonière','11',474,498,41.4,'-89','51208',409,556);
INSERT INTO "communes" VALUES('23','Magnat-l''Étrange','12',227,212,25.87,'-65','50882',636,868);
INSERT INTO "communes" VALUES('23','Clugnat','10',709,687,42.42,'-243','51454',287,537);
INSERT INTO "communes" VALUES('23','Châtelard','03',33,39,2.42,'146','51071',597,726);
INSERT INTO "communes" VALUES('23','Saint-Priest-la-Feuille','25',758,619,27.44,'-890','51335',328,456);
INSERT INTO "communes" VALUES('23','Pierrefitte','20',75,95,6.4,'-115','51274',380,422);
INSERT INTO "communes" VALUES('23','Saint-Goussaud','05',199,213,24.3,'-843','51156',377,693);
INSERT INTO "communes" VALUES('23','Soubrebost','07',129,139,20.76,'-548','51064',445,721);
INSERT INTO "communes" VALUES('23','Lioux-les-Monges','03',50,42,7.32,'132','51057',633,764);
INSERT INTO "communes" VALUES('23','Saint-Oradoux-de-Chirouze','12',89,74,28.58,'-4','50815',753,936);
INSERT INTO "communes" VALUES('23','Le Compas','03',207,198,16.54,'139','51107',546,688);
INSERT INTO "communes" VALUES('23','<NAME>','04',117,104,7.19,'-113','51099',543,663);
INSERT INTO "communes" VALUES('23','La Pouge','21',82,78,7.58,'-435','51090',454,618);
INSERT INTO "communes" VALUES('23','Flayat','13',332,380,43.53,'51','50863',735,827);
INSERT INTO "communes" VALUES('23','Poussanges','16',143,171,23.35,'-135','50918',564,861);
INSERT INTO "communes" VALUES('23','<NAME>','17',43,43,5.63,'-500','50815',532,717);
INSERT INTO "communes" VALUES('23','Mazeirat','01',137,137,7.8,'-395','51269',330,459);
INSERT INTO "communes" VALUES('23','Saint-Léger-le-Guérétois','24',430,425,13.98,'-581','51279',427,683);
INSERT INTO "communes" VALUES('23','Sagnat','14',198,187,11.81,'-787','51449',278,362);
INSERT INTO "communes" VALUES('23','Lizières','18',283,284,14.67,'-847','51346',345,465);
INSERT INTO "communes" VALUES('23','Ladapeyre','19',346,326,30.63,'-320','51387',352,528);
INSERT INTO "communes" VALUES('23','Arrènes','05',228,245,22.56,'-852','51191',329,640);
INSERT INTO "communes" VALUES('23','Fleurat','18',281,273,12.3,'-731','51378',349,539);
INSERT INTO "communes" VALUES('23','Beissat','12',34,31,14.49,'-67','50859',690,886);
INSERT INTO "communes" VALUES('23','Peyrabout','01',139,160,8.91,'-472','51230',446,685);
INSERT INTO "communes" VALUES('23','Guéret','98',13573,14114,26.21,'-520','51301',350,685);
INSERT INTO "communes" VALUES('23','Bosmoreau-les-Mines','07',249,273,9.01,'-646','51112',390,515);
INSERT INTO "communes" VALUES('23','Saint-Avit-le-Pauvre','23',73,80,4.99,'-325','51107',529,618);
INSERT INTO "communes" VALUES('23','Crocq','13',442,546,14.16,'34','50965',640,829);
INSERT INTO "communes" VALUES('23','Lourdoueix-Saint-Pierre','06',804,923,44.73,'-572','51566',217,433);
INSERT INTO "communes" VALUES('23','Le Mas-d''Artige','12',103,110,16.21,'-149','50816',686,921);
INSERT INTO "communes" VALUES('23','Saint-Yrieix-la-Montagne','16',218,233,24.04,'-350','50982',556,736);
INSERT INTO "communes" VALUES('23','Saint-Médard-la-Rochette','11',570,608,38.92,'-212','51160',379,613);
INSERT INTO "communes" VALUES('23','Saint-Martin-Château','22',159,134,31.25,'-597','50953',410,741);
INSERT INTO "communes" VALUES('23','Saint-Martial-le-Mont','23',239,275,10.25,'-270','51166',350,508);
INSERT INTO "communes" VALUES('23','Lavaufranche','08',245,246,16.34,'-72','51467',375,485);
INSERT INTO "communes" VALUES('23','Saint-Maurice-près-Crocq','13',117,115,14.1,'-11','50971',592,725);
INSERT INTO "communes" VALUES('23','<NAME>','20',139,138,14.07,'-140','51350',375,438);
INSERT INTO "communes" VALUES('23','Rimondeix','20',83,73,8.03,'-260','51366',353,444);
INSERT INTO "communes" VALUES('23','Chambon-Sainte-Croix','06',88,86,6.66,'-624','51506',218,341);
INSERT INTO "communes" VALUES('23','Saint-Marc-à-Frongier','02',367,348,25.45,'-240','51033',493,715);
INSERT INTO "communes" VALUES('23','Saint-Marien','08',184,186,12.78,'-124','51578',412,502);
INSERT INTO "communes" VALUES('23','Roches','10',380,389,25.55,'-374','51426',365,566);
INSERT INTO "communes" VALUES('23','Charron','03',229,226,30.11,'251','51178',390,705);
INSERT INTO "communes" VALUES('23','Verneiges','09',101,86,7.59,'1','51409',397,453);
INSERT INTO "communes" VALUES('23','Reterre','15',308,319,17.54,'152','51226',450,617);
INSERT INTO "communes" VALUES('23','Le Bourg-d''Hem','06',227,235,15.39,'-565','51441',235,445);
INSERT INTO "communes" VALUES('23','Nouzerolles','06',104,100,8.17,'-661','51535',210,342);
INSERT INTO "communes" VALUES('23','La Souterraine','25',5522,5327,37.07,'-945','51376',284,456);
INSERT INTO "communes" VALUES('23','Saint-Silvain-sous-Toulx','20',153,163,14.57,'-176','51402',396,625);
INSERT INTO "communes" VALUES('23','Chamborand','18',232,237,11.18,'-849','51284',340,479);
INSERT INTO "communes" VALUES('23','Savennes','27',216,212,6.93,'-498','51229',497,664);
INSERT INTO "communes" VALUES('23','La Saunière','26',645,543,7.5,'-444','51256',376,560);
INSERT INTO "communes" VALUES('23','Champsanglard','06',228,207,13.64,'-506','51416',274,498);
INSERT INTO "communes" VALUES('23','Saint-Yrieix-les-Bois','01',300,312,15.7,'-442','51222',417,645);
INSERT INTO "communes" VALUES('23','Saint-Chabrais','11',320,335,24.94,'-147','51258',389,542);
INSERT INTO "communes" VALUES('23','Saint-Silvain-Bas-le-Roc','08',498,504,15.32,'-121','51479',310,534);
INSERT INTO "communes" VALUES('23','Vigeville','01',150,136,7.27,'-291','51290',419,541);
INSERT INTO "communes" VALUES('23','Jalesches','10',81,77,8.45,'-267','51446',348,537);
INSERT INTO "communes" VALUES('23','Bord-Saint-Georges','08',360,336,32.5,'-42','51400',364,475);
INSERT INTO "communes" VALUES('23','Jarnages','20',519,409,9.17,'-280','51313',412,545);
INSERT INTO "communes" VALUES('23','Naillat','14',670,642,36.23,'-777','51405',316,530);
INSERT INTO "communes" VALUES('23','Bénévent-l''Abbaye','05',843,824,11.56,'-786','51242',402,545);
INSERT INTO "communes" VALUES('23','Moutier-Malcard','06',545,514,25.81,'-435','51549',262,433);
INSERT INTO "communes" VALUES('23','Sardent','21',785,802,41.11,'-534','51167',455,680);
INSERT INTO "communes" VALUES('23','Saint-Julien-le-Châtel','09',168,172,15.3,'-75','51242',397,482);
INSERT INTO "communes" VALUES('23','Fransèches','23',246,267,18.29,'-319','51132',372,617);
INSERT INTO "communes" VALUES('23','Saint-Laurent','26',646,539,12.93,'-416','51296',310,470);
INSERT INTO "communes" VALUES('23','<NAME>','14',130,143,8.68,'-844','51511',261,381);
INSERT INTO "communes" VALUES('23','Ahun','01',1590,1501,33.74,'-324','51207',331,564);
INSERT INTO "communes" VALUES('23','Nouzerines','08',251,261,19.09,'-253','51543',345,447);
INSERT INTO "communes" VALUES('23','Fontanières','15',263,259,15.91,'182','51232',390,575);
INSERT INTO "communes" VALUES('23','Sannat','15',389,370,34,'79','51244',356,584);
INSERT INTO "communes" VALUES('23','Crozant','14',533,581,30.52,'-795','51546',197,367);
INSERT INTO "communes" VALUES('23','Saint-Loup','09',174,175,18.82,'-74','51263',383,462);
INSERT INTO "communes" VALUES('23','Mourioux-Vieilleville','05',535,569,25.2,'-768','51197',379,516);
INSERT INTO "communes" VALUES('23','Saint-Hilaire-le-Château','21',259,277,19.59,'-488','51092',443,590);
INSERT INTO "communes" VALUES('23','Saint-Pardoux-le-Neuf','02',178,165,7.51,'-115','51033',498,645);
INSERT INTO "communes" VALUES('23','Saint-Pierre-Bellevue','22',229,241,32.78,'-498','51018',512,808);
INSERT INTO "communes" VALUES('23','Gouzon','20',1511,1380,50.03,'-109','51324',366,476);
INSERT INTO "communes" VALUES('23','Saint-Silvain-Bellegarde','04',210,216,20.85,'-37','51081',475,648);
INSERT INTO "communes" VALUES('23','Chambon-sur-Voueize','09',1010,1012,33.58,'98','51321',320,510);
INSERT INTO "communes" VALUES('23','Saint-Sulpice-le-Dunois','14',648,636,30.85,'-673','51443',218,546);
INSERT INTO "communes" VALUES('23','Boussac','08',1353,1604,1.48,'-135','51499',335,395);
INSERT INTO "communes" VALUES('23','Parsac','20',591,592,38.99,'-205','51336',367,503);
INSERT INTO "communes" VALUES('23','Sous-Parsat','23',141,138,9.14,'-396','51173',486,647);
INSERT INTO "communes" VALUES('23','Maisonnisses','01',205,213,11.12,'-486','51181',517,685);
INSERT INTO "communes" VALUES('23','Saint-Quentin-la-Chabanne','16',359,372,29.59,'-201','50961',460,811);
INSERT INTO "communes" VALUES('23','Jouillat','19',470,402,22.44,'-445','51397',283,546);
INSERT INTO "communes" VALUES('23','Bétête','10',346,424,28.24,'-288','51511',272,430);
INSERT INTO "communes" VALUES('23','Saint-Bard','13',106,101,9.36,'71','51016',631,787);
INSERT INTO "communes" VALUES('23','Glénic','19',610,593,27.6,'-460','51359',293,521);
INSERT INTO "communes" VALUES('23','Aubusson','02',3844,4660,19.21,'-188','51062',416,608);
INSERT INTO "communes" VALUES('23','Saint-Christophe','27',130,132,7.79,'-527','51225',480,621);
INSERT INTO "communes" VALUES('23','Saint-Priest-la-Plaine','18',246,288,21.9,'-787','51324',353,454);
INSERT INTO "communes" VALUES('23','<NAME>','11',108,104,10.62,'-3','51231',390,515);
INSERT INTO "communes" VALUES('23','Saint-Fiel','19',948,769,16.72,'-490','51348',297,396);
INSERT INTO "communes" VALUES('23','Mainsat','04',610,682,34.81,'56','51169',478,670);
INSERT INTO "communes" VALUES('23','Blessac','02',523,488,17.75,'-233','51065',406,665);
INSERT INTO "communes" VALUES('23','Ceyroux','05',127,107,12.13,'-745','51190',397,516);
INSERT INTO "communes" VALUES('23','Féniers','17',91,93,14.33,'-233','50834',772,922);
INSERT INTO "communes" VALUES('23','Nouhant','09',315,323,25.75,'60','51427',417,555);
INSERT INTO "communes" VALUES('23','Montboucher','07',360,344,27.68,'-728','51059',379,627);
INSERT INTO "communes" VALUES('23','Lépinas','01',171,191,14.8,'-454','51196',515,681);
INSERT INTO "communes" VALUES('23','Saint-Georges-Nigremont','13',168,168,18.59,'-81','50930',589,801);
INSERT INTO "communes" VALUES('23','Malleret','12',38,46,11.8,'-20','50851',716,869);
INSERT INTO "communes" VALUES('23','La Courtine','12',818,971,41.42,'-81','50779',714,895);
INSERT INTO "communes" VALUES('23','Le Monteil-au-Vicomte','22',215,266,14.4,'-444','51034',505,683);
INSERT INTO "communes" VALUES('23','Montaigut-le-Blanc','24',387,396,17.23,'-668','51246',390,510);
INSERT INTO "communes" VALUES('23','Saint-Martin-Sainte-Catherine','07',331,370,27.27,'-857','51054',271,483);
INSERT INTO "communes" VALUES('23','Basville','13',174,196,22.57,'67','50968',675,826);
INSERT INTO "communes" VALUES('23','Saint-Agnant-près-Crocq','13',208,199,25.51,'15','50893',650,824);
INSERT INTO "communes" VALUES('23','Bussière-Saint-Georges','08',223,184,22.45,'-214','51556',358,498);
INSERT INTO "communes" VALUES('23','Le Grand-Bourg','18',1211,1244,78.91,'-769','51289',344,497);
INSERT INTO "communes" VALUES('23','Saint-Moreil','22',238,292,23.94,'-720','50949',363,586);
INSERT INTO "communes" VALUES('23','Saint-Léger-Bridereix','25',198,174,8.1,'-832','51429',283,405);
INSERT INTO "communes" VALUES('23','Chavanat','23',129,127,12.73,'-414','51059',471,647);
INSERT INTO "communes" VALUES('23','Saint-Sulpice-les-Champs','23',386,366,21.7,'-350','51106',515,651);
INSERT INTO "communes" VALUES('23','Châtelus-le-Marcheix','05',368,356,43.2,'-810','51110',294,650);
INSERT INTO "communes" VALUES('23','Faux-la-Montagne','17',362,394,47.89,'-446','50834',525,826);
INSERT INTO "communes" VALUES('23','Dun-le-Palestel','14',1192,1106,9.81,'-745','51450',294,507);
INSERT INTO "communes" VALUES('23','Ars','23',260,246,21.69,'-287','51116',427,625);
INSERT INTO "communes" VALUES('23','Lafat','14',383,384,21.28,'-803','51483',261,368);
INSERT INTO "communes" VALUES('23','Bussière-Dunoise','24',1073,1099,41.13,'-638','51399',324,615);
INSERT INTO "communes" VALUES('23','La Nouaille','17',251,249,48.12,'-302','50941',576,846);
INSERT INTO "communes" VALUES('23','Auriat','07',125,113,21.66,'-769','50970',376,628);
INSERT INTO "communes" VALUES('23','Saint-Georges-la-Pouge','21',349,311,24.09,'-407','51104',470,636);
INSERT INTO "communes" VALUES('23','La Villeneuve','13',83,90,4.45,'81','50999',648,790);
INSERT INTO "communes" VALUES('23','Saint-Michel-de-Veisse','23',168,177,15.57,'-314','51058',539,681);
INSERT INTO "communes" VALUES('23','Azerables','25',924,957,39.44,'-955','51505',273,394);
INSERT INTO "communes" VALUES('23','Saint-Pardoux-les-Cards','11',296,299,24.76,'-240','51203',372,566);
INSERT INTO "communes" VALUES('23','Sainte-Feyre','26',2302,2251,29.99,'-468','51265',310,662);
INSERT INTO "communes" VALUES('23','Gartempe','24',125,132,9.49,'-665','51278',375,475);
INSERT INTO "communes" VALUES('23','Bourganeuf','07',2910,3163,22.54,'-645','51060',380,602);
INSERT INTO "communes" VALUES('23','Felletin','16',1867,1892,13.74,'-182','50982',459,685);
INSERT INTO "communes" VALUES('23','Ajain','19',1098,1034,33.14,'-375','51342',310,562);
INSERT INTO "communes" VALUES('24','Saint-Barthélemy-de-Bellegarde','23',522,464,33.12,'-2362','50086',42,126);
INSERT INTO "communes" VALUES('24','Saint-Capraise-de-Lalinde','17',525,532,3.83,'-1870','49825',18,132);
INSERT INTO "communes" VALUES('24','Bayac','01',357,325,10.23,'-1789','49782',42,173);
INSERT INTO "communes" VALUES('24','La Tour-Blanche','44',445,460,8.11,'-2100','50407',130,190);
INSERT INTO "communes" VALUES('24','Monfaucon','16',279,232,24.74,'-2332','49902',31,125);
INSERT INTO "communes" VALUES('24','Vitrac','36',886,768,14.38,'-1233','49812',60,243);
INSERT INTO "communes" VALUES('24','Beynac-et-Cazenac','36',532,506,12.74,'-1325','49822',53,288);
INSERT INTO "communes" VALUES('24','Sencenac-Puy-de-Fourches','04',230,193,10.79,'-1863','50341',128,234);
INSERT INTO "communes" VALUES('24','Saint-Jory-las-Bloux','11',257,237,16.94,'-1523','50402',123,242);
INSERT INTO "communes" VALUES('24','Azerat','40',422,410,20.05,'-1348','50167',128,317);
INSERT INTO "communes" VALUES('24','Saint-Nexans','48',875,804,12.38,'-1988','49783',36,125);
INSERT INTO "communes" VALUES('24','Pomport','38',804,706,19.55,'-2132','49755',38,171);
INSERT INTO "communes" VALUES('24','Le Change','37',599,539,16.22,'-1603','50215',92,228);
INSERT INTO "communes" VALUES('24','Prats-de-Carlux','08',507,421,13,'-1134','49896',97,248);
INSERT INTO "communes" VALUES('24','Saint-Barthélemy-de-Bussière','06',233,244,15.01,'-1757','50712',218,366);
INSERT INTO "communes" VALUES('24','Saint-Julien-d''Eymet','12',113,97,5.81,'-2108','49693',78,166);
INSERT INTO "communes" VALUES('24','Saint-Amand-de-Vergt','43',216,197,12.66,'-1821','49986',110,215);
INSERT INTO "communes" VALUES('24','Lolme','20',132,111,6.92,'-1658','49680',112,225);
INSERT INTO "communes" VALUES('24','Saint-André-de-Double','25',161,147,27.61,'-2243','50162',73,144);
INSERT INTO "communes" VALUES('24','Savignac-de-Miremont','05',160,95,7.62,'-1547','49969',75,229);
INSERT INTO "communes" VALUES('24','Eyliac','34',739,640,22.74,'-1646','50179',92,251);
INSERT INTO "communes" VALUES('24','Sainte-Trie','11',122,148,10.91,'-1266','50333',167,276);
INSERT INTO "communes" VALUES('24','Bouniagues','14',517,476,8.62,'-2011','49732',74,181);
INSERT INTO "communes" VALUES('24','Saint-Médard-de-Mussidan','24',1697,1514,24.45,'-2211','50049',37,150);
INSERT INTO "communes" VALUES('24','Chapdeuil','21',142,111,7.71,'-2068','50380',115,186);
INSERT INTO "communes" VALUES('24','Saint-Pantaly-d''Excideuil','11',156,158,8.46,'-1469','50351',120,285);
INSERT INTO "communes" VALUES('24','Bourrou','43',142,153,9.13,'-1932','50050',110,233);
INSERT INTO "communes" VALUES('24','Paussac-et-Saint-Vivien','21',445,392,22.17,'-1997','50386',82,202);
INSERT INTO "communes" VALUES('24','Saint-Priest-les-Fougères','15',395,412,20.86,'-1473','50603',257,411);
INSERT INTO "communes" VALUES('24','Saint-Germain-des-Prés','11',519,467,19.01,'-1495','50380',127,297);
INSERT INTO "communes" VALUES('24','Grand-Brassac','21',527,489,31.74,'-2064','50327',73,211);
INSERT INTO "communes" VALUES('24','Laveyssière','45',121,115,6.7,'-2105','49935',58,146);
INSERT INTO "communes" VALUES('24','Daglan','10',555,536,19.96,'-1271','49713',83,282);
INSERT INTO "communes" VALUES('24','Tourtoirac','13',651,611,25.43,'-1421','50300',125,286);
INSERT INTO "communes" VALUES('24','Veyrines-de-Domme','10',222,196,11.44,'-1369','49771',79,280);
INSERT INTO "communes" VALUES('24','Razac-sur-l''Isle','30',2447,2274,14.24,'-1930','50182',69,203);
INSERT INTO "communes" VALUES('24','Saint-Victor','21',197,157,5.12,'-2109','50293',63,167);
INSERT INTO "communes" VALUES('24','Peyrignac','39',530,396,6.3,'-1272','50173',107,308);
INSERT INTO "communes" VALUES('24','Badefols-sur-Dordogne','07',216,187,6.06,'-1717','49826',35,180);
INSERT INTO "communes" VALUES('24','Mouleydier','48',1095,1061,8.49,'-1934','49840',17,132);
INSERT INTO "communes" VALUES('24','Ligueux','37',268,204,6.66,'-1686','50343',133,212);
INSERT INTO "communes" VALUES('24','Saint-Romain-de-Monpazier','20',83,91,7.48,'-1629','49686',116,227);
INSERT INTO "communes" VALUES('24','Saint-Cernin-de-l''Herm','47',235,230,16.25,'-1447','49600',146,306);
INSERT INTO "communes" VALUES('24','Chalais','15',435,435,18.81,'-1566','50565',220,313);
INSERT INTO "communes" VALUES('24','Saint-Sulpice-de-Roumagnac','28',215,226,10.7,'-2158','50228',85,209);
INSERT INTO "communes" VALUES('24','Gageac-et-Rouillac','38',442,436,13.99,'-2213','49777',29,146);
INSERT INTO "communes" VALUES('24','Salignac-Eyvigues','35',1139,1007,43.48,'-1126','49972',120,314);
INSERT INTO "communes" VALUES('24','Teillots','13',117,137,10.02,'-1240','50286',164,302);
INSERT INTO "communes" VALUES('24','Fanlac','22',138,142,14.37,'-1378','50073',99,267);
INSERT INTO "communes" VALUES('24','Coursac','30',1914,1344,24.65,'-1886','50143',89,225);
INSERT INTO "communes" VALUES('24','Cubjac','37',709,642,20.62,'-1553','50247',107,253);
INSERT INTO "communes" VALUES('24','Saint-Vincent-Jalmoutiers','31',251,213,16.21,'-2382','50225',42,133);
INSERT INTO "communes" VALUES('24','Berbiguières','32',173,177,5.35,'-1438','49816',55,250);
INSERT INTO "communes" VALUES('24','Sainte-Marie-de-Chignac','34',591,457,11.8,'-1675','50146',110,257);
INSERT INTO "communes" VALUES('24','Saint-Just','21',127,139,11.2,'-2032','50373',94,178);
INSERT INTO "communes" VALUES('24','Champcevinel','49',2630,2342,17.72,'-1789','50239',86,237);
INSERT INTO "communes" VALUES('24','Coux-et-Bigaroque','32',987,818,19.33,'-1515','49815',45,245);
INSERT INTO "communes" VALUES('24','Auriac-du-Périgord','22',419,396,18.63,'-1333','50118',93,293);
INSERT INTO "communes" VALUES('24','Saint-Vincent-de-Cosse','32',365,351,7.19,'-1353','49825',59,265);
INSERT INTO "communes" VALUES('24','Sainte-Nathalène','36',574,477,13.57,'-1167','49895',108,251);
INSERT INTO "communes" VALUES('24','Boulazac','34',6606,6051,14.58,'-1738','50190',83,222);
INSERT INTO "communes" VALUES('24','Plazac','22',714,578,33.77,'-1441','50039',82,289);
INSERT INTO "communes" VALUES('24','Saint-Michel-de-Montaigne','42',363,297,9.1,'-2563','49860',9,108);
INSERT INTO "communes" VALUES('24','Soulaures','20',76,77,10.28,'-1570','49611',168,274);
INSERT INTO "communes" VALUES('24','Ribérac','28',4090,3997,22.79,'-2219','50274',54,155);
INSERT INTO "communes" VALUES('24','Atur','34',1787,1490,19.13,'-1765','50156',115,271);
INSERT INTO "communes" VALUES('24','Sarlande','18',418,420,34.74,'-1354','50501',233,388);
INSERT INTO "communes" VALUES('24','Bars','40',232,214,22.58,'-1415','50110',137,276);
INSERT INTO "communes" VALUES('24','Augignac','26',836,791,22.64,'-1816','50657',189,306);
INSERT INTO "communes" VALUES('24','Eyzerac','41',577,510,11.03,'-1573','50432',149,260);
INSERT INTO "communes" VALUES('24','Vanxains','28',727,665,35.89,'-2277','50240',52,161);
INSERT INTO "communes" VALUES('24','Sceau-Saint-Angel','26',128,116,17.49,'-1824','50537',157,262);
INSERT INTO "communes" VALUES('24','Saint-Michel-de-Double','24',266,272,29.48,'-2275','50088',47,126);
INSERT INTO "communes" VALUES('24','Saint-Avit-de-Vialard','05',150,118,8.45,'-1631','49937',113,251);
INSERT INTO "communes" VALUES('24','Saint-Louis-en-l''Isle','24',261,224,2.82,'-2161','50067',43,127);
INSERT INTO "communes" VALUES('24','Limeuil','29',325,315,10.57,'-1608','49873',45,200);
INSERT INTO "communes" VALUES('24','Saint-Pierre-de-Chignac','34',814,777,15.7,'-1644','50138',126,252);
INSERT INTO "communes" VALUES('24','Saint-Georges-de-Montclard','45',275,269,13.68,'-1906','49925',62,189);
INSERT INTO "communes" VALUES('24','Celles','21',555,552,27.83,'-2138','50330',61,213);
INSERT INTO "communes" VALUES('24','Sarrazac','18',377,404,29.89,'-1452','50485',155,349);
INSERT INTO "communes" VALUES('24','Cantillac','09',194,167,8.12,'-1883','50441',124,233);
INSERT INTO "communes" VALUES('24','Simeyrols','08',242,188,9.26,'-1108','49897',134,286);
INSERT INTO "communes" VALUES('24','Saint-Hilaire-d''Estissac','45',111,114,6.14,'-2032','50015',77,186);
INSERT INTO "communes" VALUES('24','Gout-Rossignol','44',401,429,24.91,'-2169','50459',104,185);
INSERT INTO "communes" VALUES('24','Église-Neuve-de-Vergt','43',435,326,7.43,'-1782','50092',148,247);
INSERT INTO "communes" VALUES('24','Cazoulès','08',446,436,3.52,'-1003','49870',84,294);
INSERT INTO "communes" VALUES('24','Creyssensac-et-Pissot','43',232,201,8.62,'-1861','50088',108,236);
INSERT INTO "communes" VALUES('24','Puyrenier','19',58,55,7.42,'-2069','50533',105,203);
INSERT INTO "communes" VALUES('24','Saint-Cirq','05',113,106,5.96,'-1519','49918',54,215);
INSERT INTO "communes" VALUES('24','Douzillac','25',802,710,17.17,'-2131','50094',48,167);
INSERT INTO "communes" VALUES('24','Lembras','48',1229,1192,10.59,'-2014','49872',39,155);
INSERT INTO "communes" VALUES('24','Comberanche-et-Épeluche','28',178,121,3.93,'-2283','50304',50,120);
INSERT INTO "communes" VALUES('24','Saint-Cybranet','10',385,351,10.33,'-1296','49765',70,270);
INSERT INTO "communes" VALUES('24','Monpazier','20',516,516,0.53,'-1603','49645',144,222);
INSERT INTO "communes" VALUES('24','Manzac-sur-Vern','30',566,505,19.96,'-1945','50097',81,214);
INSERT INTO "communes" VALUES('24','Capdrot','20',508,507,43.72,'-1571','49646',143,288);
INSERT INTO "communes" VALUES('24','Saint-Martial-d''Albarède','11',485,403,10.28,'-1451','50361',132,286);
INSERT INTO "communes" VALUES('24','Saint-Seurin-de-Prats','42',487,488,5.56,'-2513','49809',3,15);
INSERT INTO "communes" VALUES('24','Saint-Léon-d''Issigeac','14',115,121,5.68,'-1828','49689',88,162);
INSERT INTO "communes" VALUES('24','Saint-Laurent-sur-Manoire','34',913,765,10.44,'-1713','50164',100,261);
INSERT INTO "communes" VALUES('24','Meyrals','32',575,468,18.16,'-1414','49888',90,267);
INSERT INTO "communes" VALUES('24','Condat-sur-Trincou','09',491,410,16.54,'-1809','50425',104,208);
INSERT INTO "communes" VALUES('24','Savignac-les-Églises','37',951,901,21.9,'-1578','50305',105,234);
INSERT INTO "communes" VALUES('24','Quinsac','09',385,425,17.37,'-1812','50477',115,230);
INSERT INTO "communes" VALUES('24','Razac-d''Eymet','12',303,282,12.28,'-2087','49658',48,170);
INSERT INTO "communes" VALUES('24','Sainte-Eulalie-d''Ans','13',291,268,11.83,'-1465','50274',122,262);
INSERT INTO "communes" VALUES('24','Carlux','08',652,624,13.31,'-1092','49871',78,254);
INSERT INTO "communes" VALUES('24','Saint-Martin-l''Astier','24',135,137,9.4,'-2230','50062',39,147);
INSERT INTO "communes" VALUES('24','Siorac-en-Périgord','02',1026,890,11.77,'-1500','49802',46,193);
INSERT INTO "communes" VALUES('24','Saint-Martin-de-Fressengeas','41',385,375,20.84,'-1657','50493',148,302);
INSERT INTO "communes" VALUES('24','Urval','07',151,163,13.38,'-1543','49791',55,245);
INSERT INTO "communes" VALUES('24','Antonne-et-Trigonant','37',1211,1080,20.23,'-1673','50236',89,217);
INSERT INTO "communes" VALUES('24','Lisle','04',928,907,17.97,'-1987','50309',76,217);
INSERT INTO "communes" VALUES('24','Boisse','14',244,196,16.58,'-1869','49684',84,206);
INSERT INTO "communes" VALUES('24','Saint-Aulaye','31',1360,1397,34.71,'-2447','50225',32,132);
INSERT INTO "communes" VALUES('24','Brantôme','04',2152,2044,34.65,'-1875','50405',94,208);
INSERT INTO "communes" VALUES('24','Saint-Perdoux','14',137,136,7.43,'-1997','49711',108,197);
INSERT INTO "communes" VALUES('24','Mensignac','30',1465,1138,26.08,'-1973','50250',92,231);
INSERT INTO "communes" VALUES('24','Nouaille','18',990,967,23.78,'-1332','50436',198,342);
INSERT INTO "communes" VALUES('24','Grun-Bordas','43',213,156,12.28,'-1871','50052',97,231);
INSERT INTO "communes" VALUES('24','Chancelade','50',4227,3865,16.23,'-1857','50228',73,198);
INSERT INTO "communes" VALUES('24','Coly','39',224,231,8.01,'-1187','50096',105,246);
INSERT INTO "communes" VALUES('24','Singleyrac','12',310,234,7.09,'-2080','49707',72,177);
INSERT INTO "communes" VALUES('24','Prats-du-Périgord','47',155,183,10.99,'-1410','49658',178,305);
INSERT INTO "communes" VALUES('24','Archignac','35',340,297,22.9,'-1138','50012',157,323);
INSERT INTO "communes" VALUES('24','<NAME>','39',1907,1854,10.85,'-1233','50144',79,246);
INSERT INTO "communes" VALUES('24','Étouars','06',144,175,7.83,'-1898','50668',170,277);
INSERT INTO "communes" VALUES('24','Saint-Léon-sur-l''Isle','30',2020,1877,14.78,'-2036','50128',56,192);
INSERT INTO "communes" VALUES('24','Larzac','02',137,115,6.78,'-1476','49719',103,245);
INSERT INTO "communes" VALUES('24','Saint-Félix-de-Villadeix','17',305,286,16.88,'-1837','49917',80,210);
INSERT INTO "communes" VALUES('24','Saint-Pardoux-et-Vielvic','02',191,142,14.23,'-1501','49743',91,246);
INSERT INTO "communes" VALUES('24','Sigoulès','38',838,697,10.86,'-2140','49732',51,157);
INSERT INTO "communes" VALUES('24','Beaumont-du-Périgord','01',1115,1154,24.18,'-1744','49744',50,176);
INSERT INTO "communes" VALUES('24','Ginestet','16',794,738,13.06,'-2119','49902',45,140);
INSERT INTO "communes" VALUES('24','Mouzens','32',241,227,8.14,'-1472','49830',45,229);
INSERT INTO "communes" VALUES('24','Bassillac','34',1795,1755,18.73,'-1692','50212',87,233);
INSERT INTO "communes" VALUES('24','Rudeau-Ladosse','19',178,158,13.74,'-1985','50534',115,203);
INSERT INTO "communes" VALUES('24','Sainte-Alvère','29',886,782,32.42,'-1697','49941',105,251);
INSERT INTO "communes" VALUES('24','Beauronne','25',331,310,19.24,'-2172','50106',51,150);
INSERT INTO "communes" VALUES('24','Bonneville-et-Saint-Avit-de-Fumadières','42',308,216,7.04,'-2507','49869',18,108);
INSERT INTO "communes" VALUES('24','Saint-Pardoux-de-Drône','28',211,214,8.69,'-2128','50251',79,207);
INSERT INTO "communes" VALUES('24','Montpeyroux','46',440,360,23.37,'-2533','49911',17,100);
INSERT INTO "communes" VALUES('24','La Chapelle-Saint-Jean','13',87,62,3.7,'-1304','50216',204,356);
INSERT INTO "communes" VALUES('24','Farges','22',323,262,8.14,'-1277','50128',71,267);
INSERT INTO "communes" VALUES('24','Coulounieix-Chamiers','50',8356,8114,21.7,'-1828','50207',78,222);
INSERT INTO "communes" VALUES('24','Allemans','28',578,540,18.75,'-2252','50320',47,167);
INSERT INTO "communes" VALUES('24','Escoire','37',459,429,3.94,'-1652','50234',92,213);
INSERT INTO "communes" VALUES('24','Saint-Paul-de-Serre','43',260,236,10.44,'-1892','50098',91,214);
INSERT INTO "communes" VALUES('24','Saint-Paul-Lizonne','44',316,332,9.28,'-2283','50355',50,152);
INSERT INTO "communes" VALUES('24','Cendrieux','43',566,552,30.23,'-1682','49996',150,263);
INSERT INTO "communes" VALUES('24','Faurilles','14',46,63,4.3,'-1824','49670',79,141);
INSERT INTO "communes" VALUES('24','Vézac','36',621,594,12.97,'-1302','49816',49,243);
INSERT INTO "communes" VALUES('24','Saint-Médard-d''Excideuil','11',567,625,18.35,'-1406','50380',145,332);
INSERT INTO "communes" VALUES('24','Sainte-Orse','40',386,358,23.54,'-1401','50226',163,292);
INSERT INTO "communes" VALUES('24','Villac','39',243,225,20.61,'-1202','50208',126,330);
INSERT INTO "communes" VALUES('24','Saint-Martin-le-Pin','26',296,305,15.54,'-1917','50617',127,302);
INSERT INTO "communes" VALUES('24','Bardou','14',42,33,4.76,'-1836','49708',124,181);
INSERT INTO "communes" VALUES('24','Saint-André-d''Allas','36',798,592,28.77,'-1300','49873',106,287);
INSERT INTO "communes" VALUES('24','Veyrines-de-Vergt','43',248,176,11.91,'-1739','50003',139,254);
INSERT INTO "communes" VALUES('24','Fonroque','12',267,240,9,'-2132','49669',55,163);
INSERT INTO "communes" VALUES('24','Paunat','29',314,271,18.28,'-1642','49895',44,216);
INSERT INTO "communes" VALUES('24','Saint-Michel-de-Villadeix','43',303,288,14.17,'-1795','49985',115,221);
INSERT INTO "communes" VALUES('24','Castelnaud-la-Chapelle','10',475,426,20.88,'-1320','49795',51,283);
INSERT INTO "communes" VALUES('24','Fleurac','05',240,221,22.18,'-1483','50009',72,281);
INSERT INTO "communes" VALUES('24','Saint-Jean-d''Ataux','25',115,150,12.11,'-2141','50159',71,157);
INSERT INTO "communes" VALUES('24','<NAME>','07',2119,2075,50.37,'-1585','49828',43,248);
INSERT INTO "communes" VALUES('24','Minzac','46',446,347,15.91,'-2555','49969',26,96);
INSERT INTO "communes" VALUES('24','Bourniquel','01',68,61,8.96,'-1735','49788',55,171);
INSERT INTO "communes" VALUES('24','Saint-Laurent-des-Bâtons','29',220,201,19.47,'-1776','49954',95,221);
INSERT INTO "communes" VALUES('24','Saint-Jory-de-Chalais','15',595,595,31.73,'-1597','50554',178,304);
INSERT INTO "communes" VALUES('24','Saint-Géry','16',212,193,18.71,'-2236','49982',60,148);
INSERT INTO "communes" VALUES('24','Saint-Sulpice-de-Mareuil','19',126,114,11.35,'-2033','50519',115,225);
INSERT INTO "communes" VALUES('24','Faux','14',583,536,16.07,'-1882','49766',67,171);
INSERT INTO "communes" VALUES('24','Milhac-de-Nontron','33',592,611,34.75,'-1729','50520',151,331);
INSERT INTO "communes" VALUES('24','<NAME>','23',1261,1095,17.02,'-2527','50028',19,102);
INSERT INTO "communes" VALUES('24','Saint-Marcel-du-Périgord','17',152,141,11.46,'-1805','49906',81,195);
INSERT INTO "communes" VALUES('24','Lalinde','17',2959,2989,27.7,'-1776','49819',25,194);
INSERT INTO "communes" VALUES('24','Beleymas','45',249,224,16.07,'-2034','49993',79,194);
INSERT INTO "communes" VALUES('24','Saint-Crépin-et-Carlucet','35',497,406,18.51,'-1180','49960',141,303);
INSERT INTO "communes" VALUES('24','Nantheuil','41',1057,895,16.82,'-1547','50460',138,312);
INSERT INTO "communes" VALUES('24','Beaussac','19',185,187,18.05,'-2042','50549',105,224);
INSERT INTO "communes" VALUES('24','Marquay','36',572,476,24.27,'-1336','49937',80,288);
INSERT INTO "communes" VALUES('24','Saint-Sauveur','48',775,607,9.31,'-1945','49854',50,141);
INSERT INTO "communes" VALUES('24','Saint-Pancrace','09',153,120,6.69,'-1858','50476',136,233);
INSERT INTO "communes" VALUES('24','Saint-Pompont','10',440,404,27.4,'-1322','49696',110,334);
INSERT INTO "communes" VALUES('24','Vélines','42',1117,1093,10.47,'-2476','49843',10,113);
INSERT INTO "communes" VALUES('24','Cunèges','38',304,255,5.98,'-2182','49756',36,128);
INSERT INTO "communes" VALUES('24','Saint-Pardoux-la-Rivière','33',1185,1088,23.84,'-1767','50548',132,332);
INSERT INTO "communes" VALUES('24','Saint-Amand-de-Belvès','02',101,100,7.06,'-1443','49735',103,257);
INSERT INTO "communes" VALUES('24','Église-Neuve-d''Issac','45',128,119,16.67,'-2122','49980',75,184);
INSERT INTO "communes" VALUES('24','Campsegret','45',398,351,13.83,'-1975','49927',68,201);
INSERT INTO "communes" VALUES('24','Bourg-du-Bost','28',240,200,7.16,'-2310','50301',47,116);
INSERT INTO "communes" VALUES('24','Port-Sainte-Foy-et-Ponchapt','42',2497,2345,18.32,'-2362','49826',7,167);
INSERT INTO "communes" VALUES('24','Audrix','32',290,239,6.22,'-1544','49868',60,242);
INSERT INTO "communes" VALUES('24','Groléjac','10',645,580,12.28,'-1157','49797',61,282);
INSERT INTO "communes" VALUES('24','<NAME>','09',394,400,18.4,'-1761','50412',114,213);
INSERT INTO "communes" VALUES('24','Saint-Georges-Blancaneix','16',242,165,13.62,'-2208','49912',35,138);
INSERT INTO "communes" VALUES('24','Saint-Julien-de-Lampon','08',619,574,13.24,'-1082','49846',62,252);
INSERT INTO "communes" VALUES('24','Veyrignac','08',319,233,9.54,'-1141','49814',60,217);
INSERT INTO "communes" VALUES('24','Montcaret','42',1423,1211,17.07,'-2525','49843',8,108);
INSERT INTO "communes" VALUES('24','Saint-Amand-de-Coly','22',394,353,26.4,'-1210','50071',114,284);
INSERT INTO "communes" VALUES('24','Saint-Aquilin','25',513,449,22.35,'-2047','50207',97,232);
INSERT INTO "communes" VALUES('24','Segonzac','21',208,216,3.88,'-2098','50228',120,211);
INSERT INTO "communes" VALUES('24','Anlhiac','11',290,300,11.86,'-1345','50358',141,333);
INSERT INTO "communes" VALUES('24','Saint-Avit-Sénieur','01',451,404,23.4,'-1689','49750',61,195);
INSERT INTO "communes" VALUES('24','Lamothe-Montravel','42',1238,1146,11.63,'-2568','49835',2,89);
INSERT INTO "communes" VALUES('24','Saint-Aubin-de-Nabirat','10',126,118,6.49,'-1164','49701',125,230);
INSERT INTO "communes" VALUES('24','Saint-Raphaël','11',110,94,7.13,'-1402','50338',161,296);
INSERT INTO "communes" VALUES('24','Bourg-des-Maisons','44',64,78,8.99,'-2112','50375',129,216);
INSERT INTO "communes" VALUES('24','Chourgnac','13',72,56,6.96,'-1419','50263',149,260);
INSERT INTO "communes" VALUES('24','Coutures','44',190,174,8.53,'-2160','50369',99,213);
INSERT INTO "communes" VALUES('24','Flaugeac','38',320,250,7.35,'-2105','49719',57,186);
INSERT INTO "communes" VALUES('24','Varennes','17',448,384,4.05,'-1841','49813',27,103);
INSERT INTO "communes" VALUES('24','Mazeyrolles','47',350,340,29.65,'-1469','49633',169,308);
INSERT INTO "communes" VALUES('24','Saint-Vincent-le-Paluel','36',269,207,6.86,'-1167','49880',80,247);
INSERT INTO "communes" VALUES('24','Saint-Aubin-de-Cadelech','12',325,316,13.66,'-2061','49659',53,171);
INSERT INTO "communes" VALUES('24','Ribagnac','38',320,291,11.81,'-2042','49740',78,183);
INSERT INTO "communes" VALUES('24','Journiac','05',414,365,18.88,'-1615','49962',85,254);
INSERT INTO "communes" VALUES('24','Saint-Romain-et-Saint-Clément','41',316,358,13.8,'-1637','50471',147,268);
INSERT INTO "communes" VALUES('24','Gaugeac','20',112,118,10.17,'-1618','49622',120,231);
INSERT INTO "communes" VALUES('24','Bézenac','32',132,129,4.16,'-1385','49826',57,267);
INSERT INTO "communes" VALUES('24','Lèches','16',321,298,21.58,'-2170','49989',64,167);
INSERT INTO "communes" VALUES('24','Sainte-Eulalie-d''Eymet','12',75,77,6.72,'-2190','49668',62,150);
INSERT INTO "communes" VALUES('24','Mauzac-et-Grand-Castang','17',862,868,15.85,'-1710','49849',35,207);
INSERT INTO "communes" VALUES('24','Saint-Aubin-de-Lanquais','14',295,256,9.27,'-1932','49771',64,147);
INSERT INTO "communes" VALUES('24','Temple-Laguyon','13',46,43,2.94,'-1374','50260',180,275);
INSERT INTO "communes" VALUES('24','<NAME>','36',418,449,7.17,'-1282','49807',60,218);
INSERT INTO "communes" VALUES('24','Léguillac-de-Cercles','19',301,274,21.47,'-2025','50436',115,211);
INSERT INTO "communes" VALUES('24','Saint-Cassien','20',28,37,4.72,'-1657','49651',120,225);
INSERT INTO "communes" VALUES('24','Belvès','02',1450,1428,23.66,'-1477','49751',82,288);
INSERT INTO "communes" VALUES('24','Vieux-Mareuil','19',334,342,27,'-2041','50479',109,226);
INSERT INTO "communes" VALUES('24','Petit-Bersac','28',171,195,10.83,'-2338','50320',43,118);
INSERT INTO "communes" VALUES('24','Nanteuil-Auriac-de-Bourzac','44',255,252,20.92,'-2273','50427',61,180);
INSERT INTO "communes" VALUES('24','Orliaguet','08',91,88,9.23,'-1079','49903',100,314);
INSERT INTO "communes" VALUES('24','Bertric-Burée','44',421,393,16.73,'-2199','50339',68,181);
INSERT INTO "communes" VALUES('24','Calès','07',374,304,8.02,'-1693','49841',36,163);
INSERT INTO "communes" VALUES('24','Puymangou','31',94,101,11.29,'-2511','50213',41,134);
INSERT INTO "communes" VALUES('24','Granges-d''Ans','13',164,208,11.81,'-1353','50235',198,338);
INSERT INTO "communes" VALUES('24','Clermont-d''Excideuil','11',258,253,9.99,'-1428','50406',156,333);
INSERT INTO "communes" VALUES('24','Lanquais','17',542,513,14.48,'-1852','49804',40,173);
INSERT INTO "communes" VALUES('24','Liorac-sur-Louyre','17',224,247,20.27,'-1880','49886',63,177);
INSERT INTO "communes" VALUES('24','Périgueux','97',29573,30152,9.82,'-1798','50205',75,189);
INSERT INTO "communes" VALUES('24','Sainte-Sabine-Born','01',381,343,23.97,'-1761','49659',83,203);
INSERT INTO "communes" VALUES('24','Limeyrat','40',453,435,19.72,'-1506','50178',143,266);
INSERT INTO "communes" VALUES('24','Siorac-de-Ribérac','28',254,264,20.86,'-2198','50219',73,195);
INSERT INTO "communes" VALUES('24','Saint-Jean-d''Eyraud','45',190,185,10.05,'-2092','49950',74,168);
INSERT INTO "communes" VALUES('24','Saint-Martial-de-Nabirat','10',670,513,15.57,'-1198','49716',105,238);
INSERT INTO "communes" VALUES('24','<NAME>','05',2762,2781,28.96,'-1566','49911',48,245);
INSERT INTO "communes" VALUES('24','Cherval','44',284,308,18.71,'-2180','50439',93,183);
INSERT INTO "communes" VALUES('24','Champs-Romain','33',312,328,20.33,'-1735','50590',155,344);
INSERT INTO "communes" VALUES('24','Saint-Méard-de-Gurçon','46',783,795,28.38,'-2392','49899',28,116);
INSERT INTO "communes" VALUES('24','Ménesplet','23',1679,1289,18.91,'-2476','50019',22,86);
INSERT INTO "communes" VALUES('24','Montazeau','42',312,275,13.78,'-2452','49881',27,113);
INSERT INTO "communes" VALUES('24','Peyzac-le-Moustier','22',171,147,10.1,'-1397','49990',60,263);
INSERT INTO "communes" VALUES('24','Pazayac','39',879,574,6.84,'-1063','50134',88,306);
INSERT INTO "communes" VALUES('24','Sainte-Mondane','08',253,199,9.63,'-1111','49829',60,235);
INSERT INTO "communes" VALUES('24','Proissans','36',918,761,17.56,'-1204','49927',118,314);
INSERT INTO "communes" VALUES('24','Saint-Rémy','46',423,353,22.26,'-2391','49939',33,111);
INSERT INTO "communes" VALUES('24','Sarlat-la-Canéda','36',9739,9751,47.13,'-1244','49878',102,319);
INSERT INTO "communes" VALUES('24','Saint-Martin-de-Ribérac','28',697,654,16.38,'-2198','50255',74,197);
INSERT INTO "communes" VALUES('24','Salles-de-Belvès','02',80,54,8.76,'-1486','49678',132,297);
INSERT INTO "communes" VALUES('24','Saint-Geyrac','34',241,199,17.1,'-1580','50098',153,257);
INSERT INTO "communes" VALUES('24','Saint-Julien-de-Bourdeilles','04',79,105,5.95,'-1942','50400',100,202);
INSERT INTO "communes" VALUES('24','Couze-et-Saint-Front','17',765,759,8.19,'-1811','49808',25,143);
INSERT INTO "communes" VALUES('24','Grives','02',113,135,8.12,'-1400','49739',132,287);
INSERT INTO "communes" VALUES('24','Cornille','37',668,565,13.04,'-1725','50279',134,230);
INSERT INTO "communes" VALUES('24','La Rochebeaucourt-et-Argentine','19',395,397,17.31,'-2174','50537',85,183);
INSERT INTO "communes" VALUES('24','Saint-Géraud-de-Corps','46',188,167,14.95,'-2345','49947',40,127);
INSERT INTO "communes" VALUES('24','Carsac-de-Gurson','46',196,189,6.91,'-2496','49941',27,116);
INSERT INTO "communes" VALUES('24','Issac','45',383,385,23.32,'-2095','50017',57,202);
INSERT INTO "communes" VALUES('24','Saint-Avit-Rivière','20',78,73,14,'-1615','49724',101,251);
INSERT INTO "communes" VALUES('24','<NAME>','09',241,228,11.79,'-1942','50431',100,202);
INSERT INTO "communes" VALUES('24','Graulges','19',68,61,4.13,'-2105','50550',98,185);
INSERT INTO "communes" VALUES('24','Connezac','26',79,80,5.78,'-2008','50569',118,209);
INSERT INTO "communes" VALUES('24','Monmarvès','14',58,57,5.62,'-1915','49677',82,172);
INSERT INTO "communes" VALUES('24','Salon','43',238,234,16.97,'-1738','50022',131,246);
INSERT INTO "communes" VALUES('24','Angoisse','18',616,573,23.13,'-1332','50475',239,364);
INSERT INTO "communes" VALUES('24','Génis','11',482,495,25.92,'-1303','50362',140,373);
INSERT INTO "communes" VALUES('24','Corgnac-sur-l''Isle','41',799,840,20.61,'-1543','50418',128,255);
INSERT INTO "communes" VALUES('24','Saint-Cyprien','32',1571,1522,21.5,'-1437','49855',55,240);
INSERT INTO "communes" VALUES('24','Lempzours','41',160,111,10.87,'-1687','50402',137,232);
INSERT INTO "communes" VALUES('24','Saint-Front-de-Pradoux','24',1117,930,9.01,'-2191','50061',41,157);
INSERT INTO "communes" VALUES('24','Nabirat','10',377,326,16.25,'-1154','49726',93,225);
INSERT INTO "communes" VALUES('24','Thenon','40',1277,1204,25.92,'-1406','50153',136,285);
INSERT INTO "communes" VALUES('24','Villars','09',458,526,27.67,'-1757','50467',125,240);
INSERT INTO "communes" VALUES('24','Nadaillac','35',340,341,26.9,'-1043','50043',197,347);
INSERT INTO "communes" VALUES('24','Nailhac','13',297,281,19.35,'-1315','50252',161,357);
INSERT INTO "communes" VALUES('24','Carves','02',110,112,10.13,'-1412','49762',87,262);
INSERT INTO "communes" VALUES('24','Sainte-Radegonde','14',56,64,4.81,'-1843','49656',72,113);
INSERT INTO "communes" VALUES('24','Sainte-Innocence','12',99,105,7.2,'-2142','49695',90,162);
INSERT INTO "communes" VALUES('24','Saint-Capraise-d''Eymet','12',139,149,11.18,'-2035','49676',74,191);
INSERT INTO "communes" VALUES('24','Borrèze','35',341,303,27.37,'-1054','49950',120,348);
INSERT INTO "communes" VALUES('24','Douchapt','21',302,251,8.68,'-2104','50270',66,204);
INSERT INTO "communes" VALUES('24','Château-l''Évêque','49',2086,1760,35.68,'-1834','50273',92,233);
INSERT INTO "communes" VALUES('24','Vaunac','41',260,230,13.78,'-1636','50405',156,242);
INSERT INTO "communes" VALUES('24','Bergerac','96',27648,26071,56.1,'-2061','49835',12,146);
INSERT INTO "communes" VALUES('24','Moulin-Neuf','46',882,703,8.62,'-2540','50012',18,67);
INSERT INTO "communes" VALUES('24','Jumilhac-le-Grand','15',1214,1215,66.67,'-1414','50549',186,442);
INSERT INTO "communes" VALUES('24','Saint-Geniès','35',960,814,33.59,'-1205','49994',155,302);
INSERT INTO "communes" VALUES('24','Trélissac','49',7097,6432,22.88,'-1727','50218',82,239);
INSERT INTO "communes" VALUES('24','Verteillac','44',642,675,18.44,'-2189','50386',79,187);
INSERT INTO "communes" VALUES('24','Villefranche-du-Périgord','47',759,806,24.5,'-1401','49590',155,301);
INSERT INTO "communes" VALUES('24','Villamblard','45',885,823,20.43,'-1996','50024',100,222);
INSERT INTO "communes" VALUES('24','Campagnac-lès-Quercy','47',310,293,19.67,'-1292','49661',135,345);
INSERT INTO "communes" VALUES('24','Saint-Méard-de-Drône','28',474,433,8.95,'-2127','50277',60,145);
INSERT INTO "communes" VALUES('24','Cause-de-Clérans','17',326,310,14.35,'-1855','49847',47,156);
INSERT INTO "communes" VALUES('24','Marsaneix','34',1028,786,23.85,'-1725','50110',144,257);
INSERT INTO "communes" VALUES('24','Conne-de-Labarde','14',227,203,10.05,'-1980','49756',47,134);
INSERT INTO "communes" VALUES('24','Biras','04',586,362,19.43,'-1886','50320',119,237);
INSERT INTO "communes" VALUES('24','Verdon','17',47,47,4.95,'-1895','49790',58,172);
INSERT INTO "communes" VALUES('24','Pezuls','29',122,137,10.38,'-1699','49904',75,213);
INSERT INTO "communes" VALUES('24','Cercles','44',194,173,15.07,'-2083','50405',114,211);
INSERT INTO "communes" VALUES('24','Besse','47',154,163,16.2,'-1367','49632',170,345);
INSERT INTO "communes" VALUES('24','Tamniès','36',351,317,19.09,'-1319','49962',104,288);
INSERT INTO "communes" VALUES('24','Marcillac-Saint-Quentin','36',801,665,16.46,'-1248','49945',121,327);
INSERT INTO "communes" VALUES('24','Valeuil','04',396,356,18.5,'-1910','50370',92,237);
INSERT INTO "communes" VALUES('24','Fouleix','43',221,204,10.94,'-1840','49983',90,216);
INSERT INTO "communes" VALUES('24','Nastringues','42',114,115,6.22,'-2425','49861',35,114);
INSERT INTO "communes" VALUES('24','Teyjat','26',275,320,16.99,'-1957','50651',115,244);
INSERT INTO "communes" VALUES('24','Cours-de-Pile','48',1470,1299,10.81,'-1989','49824',17,101);
INSERT INTO "communes" VALUES('24','Alles-sur-Dordogne','07',350,322,9.41,'-1632','49843',41,198);
INSERT INTO "communes" VALUES('24','Prigonrieux','16',4057,3957,26.12,'-2148','49838',12,118);
INSERT INTO "communes" VALUES('24','<NAME>','39',903,664,17.34,'-1314','50162',94,281);
INSERT INTO "communes" VALUES('24','Nanthiat','18',282,291,11.12,'-1501','50454',136,313);
INSERT INTO "communes" VALUES('24','Saint-Saud-Lacoussière','33',868,868,58.04,'-1686','50604',189,370);
INSERT INTO "communes" VALUES('24','Chassaignes','28',81,90,5.79,'-2315','50281',58,116);
INSERT INTO "communes" VALUES('24','Saint-Antoine-de-Breuilh','42',2081,1843,17.82,'-2424','49827',7,113);
INSERT INTO "communes" VALUES('24','Champeaux-et-la-Chapelle-Pommier','19',157,173,23.48,'-1953','50526',135,251);
INSERT INTO "communes" VALUES('24','Saint-Vincent-de-Connezac','25',561,438,14.81,'-2154','50182',90,210);
INSERT INTO "communes" VALUES('24','Saint-Agne','17',416,357,5.87,'-1892','49818',18,132);
INSERT INTO "communes" VALUES('24','Monmadalès','14',74,73,5.04,'-1905','49740',74,138);
INSERT INTO "communes" VALUES('24','Sainte-Croix-de-Mareuil','19',136,140,11.93,'-2123','50513',95,192);
INSERT INTO "communes" VALUES('24','Saint-Jean-de-Côle','41',356,326,12.7,'-1665','50468',135,252);
INSERT INTO "communes" VALUES('24','Firbeix','33',303,322,22.66,'-1513','50666',290,451);
INSERT INTO "communes" VALUES('24','Saint-Cyr-les-Champagnes','18',279,295,15.81,'-1165','50421',274,415);
INSERT INTO "communes" VALUES('24','Monestier','38',386,332,17.75,'-2232','49748',41,155);
INSERT INTO "communes" VALUES('24','Dussac','18',399,418,20.26,'-1394','50440',198,347);
INSERT INTO "communes" VALUES('24','Montrem','30',1244,1049,20.15,'-1958','50167',65,217);
INSERT INTO "communes" VALUES('24','Saint-Félix-de-Bourdeilles','19',70,58,6.06,'-1965','50462',116,227);
INSERT INTO "communes" VALUES('24','Lacropte','43',639,609,26.23,'-1673','50041',168,266);
INSERT INTO "communes" VALUES('24','<NAME>-Montmoreau','09',74,91,8.09,'-1882','50498',150,226);
INSERT INTO "communes" VALUES('24','Saint-Laurent-des-Hommes','24',1050,882,31.94,'-2314','50042',31,113);
INSERT INTO "communes" VALUES('24','Saint-Maime-de-Péreyrol','43',274,265,10.75,'-1877','50016',109,220);
INSERT INTO "communes" VALUES('24','Grèzes','39',191,159,5.88,'-1078','50115',112,357);
INSERT INTO "communes" VALUES('24','Excideuil','11',1226,1320,5.02,'-1430','50374',140,253);
INSERT INTO "communes" VALUES('24','Échourgnac','23',416,402,34.88,'-2340','50140',57,131);
INSERT INTO "communes" VALUES('24','Gabillou','40',92,89,7.91,'-1446','50229',145,238);
INSERT INTO "communes" VALUES('24','<NAME>','31',108,104,29.12,'-2310','50189',52,131);
INSERT INTO "communes" VALUES('24','Lamonzie-Saint-Martin','38',2333,2065,20.64,'-2170','49825',12,59);
INSERT INTO "communes" VALUES('24','Beaupouyet','24',471,462,22.63,'-2293','49996',38,139);
INSERT INTO "communes" VALUES('24','Lavaur','47',79,88,9,'-1459','49570',135,282);
INSERT INTO "communes" VALUES('24','La Cassagne','39',157,123,14.85,'-1132','50051',106,303);
INSERT INTO "communes" VALUES('24','La Coquille','15',1355,1487,22.37,'-1511','50603',259,432);
INSERT INTO "communes" VALUES('24','Champagne-et-Fontaine','44',395,431,25.04,'-2244','50468',77,169);
INSERT INTO "communes" VALUES('24','Saint-Germain-et-Mons','48',757,607,14.13,'-1936','49827',17,133);
INSERT INTO "communes" VALUES('24','Rouffignac-Saint-Cernin-de-Reilhac','22',1557,1484,59.9,'-1510','50053',116,304);
INSERT INTO "communes" VALUES('24','Saint-Antoine-Cumond','31',390,364,12.14,'-2376','50285',40,124);
INSERT INTO "communes" VALUES('24','Saint-Vincent-sur-l''Isle','37',264,191,9.98,'-1601','50272',102,218);
INSERT INTO "communes" VALUES('24','Sadillac','12',107,91,5.63,'-2059','49704',104,193);
INSERT INTO "communes" VALUES('24','Allas-les-Mines','32',204,224,7.04,'-1405','49815',56,250);
INSERT INTO "communes" VALUES('24','Busserolles','06',561,507,32.46,'-1882','50752',135,303);
INSERT INTO "communes" VALUES('24','Mescoules','38',164,141,4.85,'-2117','49716',83,166);
INSERT INTO "communes" VALUES('24','Chenaud','31',319,321,12.58,'-2481','50242',26,113);
INSERT INTO "communes" VALUES('24','Valojoulx','22',267,208,11.79,'-1326','50021',72,266);
INSERT INTO "communes" VALUES('24','Ponteyraud','31',53,31,4.19,'-2327','50215',49,113);
INSERT INTO "communes" VALUES('24','Servanches','31',80,103,20.56,'-2422','50160',55,130);
INSERT INTO "communes" VALUES('24','Savignac-Lédrier','18',734,744,26.9,'-1240','50404',214,374);
INSERT INTO "communes" VALUES('24','Loubejac','47',262,234,18.55,'-1388','49548',135,287);
INSERT INTO "communes" VALUES('24','Domme','10',998,986,24.91,'-1247','49780',60,303);
INSERT INTO "communes" VALUES('24','Queyssac','48',467,459,12.35,'-1985','49895',50,173);
INSERT INTO "communes" VALUES('24','Fossemagne','40',605,528,21.88,'-1501','50141',173,282);
INSERT INTO "communes" VALUES('24','Naussannes','01',218,182,14.82,'-1790','49728',96,165);
INSERT INTO "communes" VALUES('24','Brouchaud','40',209,178,11.94,'-1488','50230',127,232);
INSERT INTO "communes" VALUES('24','Sainte-Foy-de-Belvès','02',131,124,7.41,'-1446','49704',111,304);
INSERT INTO "communes" VALUES('24','Cherveix-Cubas','13',625,601,14.96,'-1356','50322',132,294);
INSERT INTO "communes" VALUES('24','Saussignac','38',418,411,8.97,'-2234','49778',30,151);
INSERT INTO "communes" VALUES('24','Villetoureix','28',874,762,16.4,'-2193','50292',56,161);
INSERT INTO "communes" VALUES('24','Mussidan','24',2864,2845,3.85,'-2190','50039',42,106);
INSERT INTO "communes" VALUES('24','Saint-Crépin-d''Auberoche','34',294,227,9.56,'-1607','50137',140,241);
INSERT INTO "communes" VALUES('24','Champniers-et-Reilhac','06',501,533,20.4,'-1784','50747',185,360);
INSERT INTO "communes" VALUES('24','Labouquerie','01',223,204,10.76,'-1712','49714',66,215);
INSERT INTO "communes" VALUES('24','Paulin','35',271,268,11.43,'-1099','50002',191,329);
INSERT INTO "communes" VALUES('24','Montignac','22',2783,3030,37.15,'-1306','50074',73,273);
INSERT INTO "communes" VALUES('24','Abjat-sur-Bandiat','26',650,622,27.62,'-1754','50650',196,355);
INSERT INTO "communes" VALUES('24','Jaure','30',145,140,7.54,'-1981','50063',93,221);
INSERT INTO "communes" VALUES('24','Mialet','33',662,718,37.3,'-1591','50611',250,391);
INSERT INTO "communes" VALUES('24','Saint-Laurent-la-Vallée','10',253,270,15.07,'-1363','49721',128,310);
INSERT INTO "communes" VALUES('24','Mayac','37',301,306,11.28,'-1547','50311',110,230);
INSERT INTO "communes" VALUES('24','Ajat','40',328,281,21.95,'-1467','50174',148,284);
INSERT INTO "communes" VALUES('24','Montaut','14',113,114,16.16,'-1900','49720',109,173);
INSERT INTO "communes" VALUES('24','Festalemps','31',254,243,12.27,'-2329','50252',47,137);
INSERT INTO "communes" VALUES('24','Mauzens-et-Miremont','05',322,339,20.57,'-1576','49992',86,252);
INSERT INTO "communes" VALUES('24','Campagne','05',388,310,14.4,'-1522','49897',52,245);
INSERT INTO "communes" VALUES('24','<NAME>','39',410,302,15.86,'-1085','50091',136,324);
INSERT INTO "communes" VALUES('24','Sainte-Foy-de-Longas','29',237,249,16.18,'-1762','49917',110,219);
INSERT INTO "communes" VALUES('24','Saint-Félix-de-Reillac-et-Mortemart','05',198,214,20.31,'-1579','50022',130,267);
INSERT INTO "communes" VALUES('24','Biron','20',185,140,12.98,'-1627','49590',128,240);
INSERT INTO "communes" VALUES('24','Bourgnac','24',307,295,9.06,'-2149','50019',49,158);
INSERT INTO "communes" VALUES('24','Monsac','01',189,191,10.74,'-1822','49755',63,172);
INSERT INTO "communes" VALUES('24','Hautefaye','26',114,116,12.47,'-2048','50597',139,206);
INSERT INTO "communes" VALUES('24','Saint-Jean-d''Estissac','45',154,125,12.86,'-2027','50033',88,207);
INSERT INTO "communes" VALUES('24','Rouffignac-de-Sigoulès','38',345,284,6.52,'-2098','49759',62,163);
INSERT INTO "communes" VALUES('24','Castels','32',644,447,19.6,'-1428','49851',57,264);
INSERT INTO "communes" VALUES('24','Montagnac-d''Auberoche','40',144,105,10.02,'-1534','50207',128,255);
INSERT INTO "communes" VALUES('24','Sagelat','02',361,323,7.57,'-1472','49764',65,219);
INSERT INTO "communes" VALUES('24','Monsec','19',197,153,12.45,'-2003','50468',131,237);
INSERT INTO "communes" VALUES('24','Pontours','07',210,168,6.69,'-1749','49818',36,175);
INSERT INTO "communes" VALUES('24','<NAME>','34',1069,910,23.05,'-1637','50068',132,267);
INSERT INTO "communes" VALUES('24','Monsaguel','14',164,134,11.57,'-1951','49708',62,173);
INSERT INTO "communes" VALUES('24','Montpon-Ménestérol','23',5465,5389,46.34,'-2419','50010',22,130);
INSERT INTO "communes" VALUES('24','Saint-Cernin-de-Labarde','14',194,243,11.39,'-1960','49738',52,133);
INSERT INTO "communes" VALUES('24','Razac-de-Saussignac','38',352,332,11.58,'-2280','49782',26,141);
INSERT INTO "communes" VALUES('24','Salagnac','11',876,785,9.08,'-1265','50346',176,354);
INSERT INTO "communes" VALUES('24','Carsac-Aillac','08',1502,1233,17.31,'-1178','49822',60,269);
INSERT INTO "communes" VALUES('24','Plaisance','14',453,410,24.75,'-1970','49672',57,157);
INSERT INTO "communes" VALUES('24','Preyssac-d''Excideuil','11',155,114,3.38,'-1371','50375',200,326);
INSERT INTO "communes" VALUES('24','Chalagnac','43',392,338,14.15,'-1844','50103',124,238);
INSERT INTO "communes" VALUES('24','Saint-Rabier','39',555,501,15.87,'-1317','50189',117,341);
INSERT INTO "communes" VALUES('24','Neuvic','25',3635,3314,25.82,'-2075','50112',51,187);
INSERT INTO "communes" VALUES('24','Piégut-Pluviers','06',1227,1315,18.11,'-1830','50692',216,310);
INSERT INTO "communes" VALUES('24','Manaurie','05',155,144,9.97,'-1495','49956',60,210);
INSERT INTO "communes" VALUES('24','<NAME>','30',1076,863,19.07,'-1915','50257',95,233);
INSERT INTO "communes" VALUES('24','Fraisse','16',141,157,21.5,'-2254','49922',39,135);
INSERT INTO "communes" VALUES('24','Cénac-et-Saint-Julien','10',1206,1069,19.87,'-1258','49778',60,252);
INSERT INTO "communes" VALUES('24','Bouillac','07',125,119,12.34,'-1575','49733',121,243);
INSERT INTO "communes" VALUES('24','Saint-Estèphe','26',590,618,21.37,'-1860','50658',177,300);
INSERT INTO "communes" VALUES('24','Orliac','47',58,51,10.54,'-1409','49685',139,305);
INSERT INTO "communes" VALUES('24','Thiviers','41',3095,3259,27.77,'-1572','50464',147,303);
INSERT INTO "communes" VALUES('24','Lussas-et-Nontronneau','26',314,371,22.35,'-1948','50562',125,232);
INSERT INTO "communes" VALUES('24','Nontron','26',3351,3498,24.67,'-1861','50588',152,308);
INSERT INTO "communes" VALUES('24','Clermont-de-Beauregard','45',122,123,6.24,'-1886','49946',75,164);
INSERT INTO "communes" VALUES('24','Maurens','45',1048,898,22.58,'-2059','49928',48,185);
INSERT INTO "communes" VALUES('24','Coulaures','37',733,682,28.87,'-1508','50341',117,275);
INSERT INTO "communes" VALUES('24','Thonac','22',258,240,11.62,'-1355','50025',67,232);
INSERT INTO "communes" VALUES('24','Saint-Martial-de-Valette','26',831,795,15.71,'-1874','50574',135,266);
INSERT INTO "communes" VALUES('24','Bourdeilles','04',769,777,21.85,'-1944','50358',82,192);
INSERT INTO "communes" VALUES('24','Mareuil','19',1125,1113,25.13,'-2094','50501',105,207);
INSERT INTO "communes" VALUES('24','Parcoul','31',375,411,14.17,'-2556','50228',22,109);
INSERT INTO "communes" VALUES('24','Bussac','04',370,321,16.84,'-1922','50303',101,218);
INSERT INTO "communes" VALUES('24','Saint-Julien-de-Crempse','45',214,168,11.18,'-2013','49947',87,188);
INSERT INTO "communes" VALUES('24','Jayac','35',186,176,17.77,'-1103','50034',173,338);
INSERT INTO "communes" VALUES('24','<NAME>-Grésignac','44',118,112,6.95,'-2221','50437',78,174);
INSERT INTO "communes" VALUES('24','Tursac','32',321,340,17.71,'-1436','49966',56,237);
INSERT INTO "communes" VALUES('24','Champagnac-de-Belair','09',696,683,18.46,'-1819','50437',105,222);
INSERT INTO "communes" VALUES('24','Trémolat','29',576,570,14.03,'-1673','49862',41,186);
INSERT INTO "communes" VALUES('24','Saint-Front-la-Rivière','33',526,543,17.89,'-1789','50525',125,233);
INSERT INTO "communes" VALUES('24','Molières','07',317,292,21.22,'-1681','49790',65,205);
INSERT INTO "communes" VALUES('24','La Chapelle-Aubareil','22',483,371,19.85,'-1282','50014',109,288);
INSERT INTO "communes" VALUES('24','Saint-Pierre-de-Frugie','15',403,373,21.74,'-1486','50637',305,491);
INSERT INTO "communes" VALUES('24','Saint-Privat-des-Prés','31',579,617,19.63,'-2357','50251',35,132);
INSERT INTO "communes" VALUES('24','Le Bourdeix','26',252,229,11.69,'-1894','50654',141,275);
INSERT INTO "communes" VALUES('24','Blis-et-Born','34',417,332,20.2,'-1588','50201',93,257);
INSERT INTO "communes" VALUES('24','Châtres','39',184,161,12.2,'-1266','50206',157,334);
INSERT INTO "communes" VALUES('24','Montagrier','21',503,442,14.04,'-2066','50301',68,207);
INSERT INTO "communes" VALUES('24','Chantérac','25',544,456,18.94,'-2100','50192',81,217);
INSERT INTO "communes" VALUES('24','Agonac','04',1643,1451,37.22,'-1763','50325',110,224);
INSERT INTO "communes" VALUES('24','La Feuillade','39',739,710,3.97,'-1037','50127',89,322);
INSERT INTO "communes" VALUES('24','Saint-Front-d''Alemps','04',258,266,19.02,'-1728','50361',128,221);
INSERT INTO "communes" VALUES('24','Lamonzie-Montastruc','48',665,531,20.66,'-1936','49884',48,162);
INSERT INTO "communes" VALUES('24','Tocane-Saint-Apre','21',1680,1486,32.35,'-2044','50283',68,232);
INSERT INTO "communes" VALUES('24','La Force','16',2520,2334,15.6,'-2179','49854',12,116);
INSERT INTO "communes" VALUES('24','Saint-Astier','30',5469,5091,34.25,'-2009','50162',58,222);
INSERT INTO "communes" VALUES('24','Marsalès','20',233,204,9.43,'-1613','49654',135,232);
INSERT INTO "communes" VALUES('24','Eyzies-de-Tayac-Sireuil','32',832,909,37.44,'-1466','49929',55,245);
INSERT INTO "communes" VALUES('24','Saint-Sulpice-d''Excideuil','18',317,354,19.72,'-1477','50433',159,327);
INSERT INTO "communes" VALUES('24','Saint-Antoine-d''Auberoche','34',147,146,7.87,'-1548','50158',162,255);
INSERT INTO "communes" VALUES('24','Badefols-d''Ans','13',471,457,18.34,'-1266','50255',165,348);
INSERT INTO "communes" VALUES('24','Eyvirat','04',277,252,17.95,'-1759','50358',134,230);
INSERT INTO "communes" VALUES('24','La Boissière-d''Ans','40',230,219,8.33,'-1502','50252',112,256);
INSERT INTO "communes" VALUES('24','Vergt','43',1674,1514,32.52,'-1798','50030',112,246);
INSERT INTO "communes" VALUES('24','Beauregard-de-Terrasson','39',708,654,7.97,'-1227','50165',112,291);
INSERT INTO "communes" VALUES('24','Serres-et-Montguyard','12',204,153,6.85,'-2093','49638',47,129);
INSERT INTO "communes" VALUES('24','Vallereuil','25',278,273,9.27,'-2039','50081',62,206);
INSERT INTO "communes" VALUES('24','Saint-Séverin-d''Estissac','25',81,51,5.31,'-2066','50057',111,202);
INSERT INTO "communes" VALUES('24','Milhac-d''Auberoche','34',554,440,17.5,'-1579','50123',155,253);
INSERT INTO "communes" VALUES('24','Beauregard-et-Bassac','45',282,197,12.02,'-1883','49986',125,229);
INSERT INTO "communes" VALUES('24','Lunas','16',363,290,16.87,'-2148','49908',37,128);
INSERT INTO "communes" VALUES('24','Négrondes','37',838,659,20.15,'-1636','50383',155,232);
INSERT INTO "communes" VALUES('24','Saint-Paul-la-Roche','15',517,551,39.22,'-1486','50531',165,342);
INSERT INTO "communes" VALUES('24','Soudat','06',84,72,8.82,'-1968','50694',134,266);
INSERT INTO "communes" VALUES('24','Saint-Crépin-de-Richemont','19',213,202,25.58,'-1928','50465',120,246);
INSERT INTO "communes" VALUES('24','Varaignes','06',425,418,16.6,'-2006','50664',115,241);
INSERT INTO "communes" VALUES('24','Saint-Mesmin','11',266,284,29.58,'-1257','50392',182,415);
INSERT INTO "communes" VALUES('24','Eygurande-et-Gardedeuil','23',377,296,35.62,'-2461','50074',28,115);
INSERT INTO "communes" VALUES('24','Chavagnac','39',348,316,13.59,'-1072','50099',136,354);
INSERT INTO "communes" VALUES('24','Marnac','32',186,192,7.92,'-1456','49819',45,260);
INSERT INTO "communes" VALUES('24','Saint-Sauveur-Lalande','23',139,116,9.3,'-2315','49984',53,118);
INSERT INTO "communes" VALUES('24','Saint-Marcory','20',53,58,4.76,'-1560','49692',154,252);
INSERT INTO "communes" VALUES('24','Sergeac','22',212,172,10.71,'-1367','50003',66,271);
INSERT INTO "communes" VALUES('24','Boisseuilh','13',119,114,11.9,'-1287','50320',153,266);
INSERT INTO "communes" VALUES('24','Calviac-en-Périgord','08',501,467,14.52,'-1114','49839',60,245);
INSERT INTO "communes" VALUES('24','Issigeac','14',708,617,9.16,'-1921','49700',94,166);
INSERT INTO "communes" VALUES('24','Gardonne','38',1469,1404,8.26,'-2227','49818',10,35);
INSERT INTO "communes" VALUES('24','<NAME>','16',1433,1342,18.05,'-2317','49861',6,157);
INSERT INTO "communes" VALUES('24','Nojals-et-Clotte','01',206,193,13.8,'-1753','49694',110,235);
INSERT INTO "communes" VALUES('24','<NAME>','31',2873,2804,89.4,'-2586','50169',12,126);
INSERT INTO "communes" VALUES('24','Eymet','12',2570,2551,31.25,'-2154','49631',41,133);
INSERT INTO "communes" VALUES('24','Lusignac','44',189,185,7.88,'-2249','50364',62,184);
INSERT INTO "communes" VALUES('24','Marsac-sur-l''Isle','50',2956,2199,10.05,'-1861','50206',71,187);
INSERT INTO "communes" VALUES('24','Baneuil','17',345,302,8.89,'-1830','49837',27,141);
INSERT INTO "communes" VALUES('24','Annesse-et-Beaulieu','30',1486,1250,12.12,'-1939','50193',65,169);
INSERT INTO "communes" VALUES('24','Bouzic','10',140,132,11.76,'-1241','49696',106,310);
INSERT INTO "communes" VALUES('24','Saint-Germain-du-Salembre','25',887,763,19.55,'-2096','50154',55,184);
INSERT INTO "communes" VALUES('24','Fougueyrolles','42',472,429,11.45,'-2388','49851',33,152);
INSERT INTO "communes" VALUES('24','Condat-sur-Vézère','39',879,824,16.64,'-1229','50130',70,258);
INSERT INTO "communes" VALUES('24','Douville','45',447,401,19.91,'-1936','49986',110,233);
INSERT INTO "communes" VALUES('24','Saint-Léon-sur-Vézère','22',421,419,13.76,'-1386','50012',62,260);
INSERT INTO "communes" VALUES('24','Saint-Pierre-d''Eyraud','16',1683,1482,26.16,'-2242','49832',6,111);
INSERT INTO "communes" VALUES('24','Peyrillac-et-Millac','08',217,214,6.94,'-1032','49875',80,323);
INSERT INTO "communes" VALUES('24','Pressignac-Vicq','17',468,448,17.06,'-1794','49884',100,206);
INSERT INTO "communes" VALUES('24','Saint-Front-sur-Nizonne','26',144,133,13.05,'-1889','50535',153,263);
INSERT INTO "communes" VALUES('24','Bosset','16',199,206,14.52,'-2204','49946',69,146);
INSERT INTO "communes" VALUES('24','Doissat','02',126,117,15.3,'-1408','49701',131,323);
INSERT INTO "communes" VALUES('24','Cladech','02',93,84,5.49,'-1405','49795',94,268);
INSERT INTO "communes" VALUES('24','Savignac-de-Nontron','26',195,187,9.69,'-1793','50602',185,303);
INSERT INTO "communes" VALUES('24','Saint-Laurent-des-Vignes','48',816,732,8.08,'-2091','49796',12,59);
INSERT INTO "communes" VALUES('24','Hautefort','13',1073,1184,25.68,'-1321','50289',145,271);
INSERT INTO "communes" VALUES('24','Monplaisant','02',276,251,5.56,'-1488','49766',65,193);
INSERT INTO "communes" VALUES('24','Coubjours','13',154,153,9.55,'-1199','50275',171,337);
INSERT INTO "communes" VALUES('24','Colombier','14',242,226,7.03,'-2020','49758',54,172);
INSERT INTO "communes" VALUES('24','Sarliac-sur-l''Isle','37',1029,885,9.57,'-1624','50266',97,206);
INSERT INTO "communes" VALUES('24','Saint-Pierre-de-Côle','41',460,444,19.85,'-1716','50413',119,237);
INSERT INTO "communes" VALUES('24','Léguillac-de-l''Auche','30',916,638,14.31,'-1978','50205',70,227);
INSERT INTO "communes" VALUES('24','Saint-Chamassy','32',526,450,15.6,'-1566','49859',45,220);
INSERT INTO "communes" VALUES('24','Sourzac','24',1105,1032,23.37,'-2156','50054',43,186);
INSERT INTO "communes" VALUES('24','Creysse','48',1854,2267,11.02,'-1967','49840',17,126);
INSERT INTO "communes" VALUES('24','Aubas','22',616,488,17.53,'-1273','50091',68,255);
INSERT INTO "communes" VALUES('24','Saint-Martial-Viveyrol','44',206,235,12.63,'-2220','50397',79,193);
INSERT INTO "communes" VALUES('24','Breuilh','43',238,199,10.26,'-1758','50063',144,246);
INSERT INTO "communes" VALUES('24','Rampieux','01',136,162,11.82,'-1711','49683',114,232);
INSERT INTO "communes" VALUES('24','Saint-Vivien','42',287,241,8.53,'-2480','49881',23,101);
INSERT INTO "communes" VALUES('24','Saint-Martin-des-Combes','45',192,180,13.99,'-1913','49952',80,205);
INSERT INTO "communes" VALUES('24','Montferrand-du-Périgord','01',177,180,13.1,'-1634','49723',85,234);
INSERT INTO "communes" VALUES('24','Lavalade','20',106,80,3.95,'-1637','49662',147,220);
INSERT INTO "communes" VALUES('24','Bussière-Badil','06',466,523,19.86,'-1924','50724',125,292);
INSERT INTO "communes" VALUES('24','Thénac','38',374,341,20.34,'-2217','49723',75,191);
INSERT INTO "communes" VALUES('24','Vendoire','44',152,149,11.65,'-2260','50462',70,163);
INSERT INTO "communes" VALUES('24','Florimont-Gaumier','10',143,132,9.05,'-1219','49666',116,288);
INSERT INTO "communes" VALUES('24','Bouteilles-Saint-Sébastien','44',192,191,13.96,'-2258','50383',58,183);
INSERT INTO "communes" VALUES('24','<NAME>-Montabourlet','44',67,80,5.77,'-2081','50437',148,197);
INSERT INTO "communes" VALUES('24','Saint-Pantaly-d''Ans','37',154,156,10.61,'-1490','50269',114,258);
INSERT INTO "communes" VALUES('24','Monbazillac','38',922,899,19.58,'-2050','49771',46,188);
INSERT INTO "communes" VALUES('24','Vergt-de-Biron','20',183,182,16.17,'-1661','49592',111,209);
INSERT INTO "communes" VALUES('24','Saint-Germain-de-Belvès','02',154,138,7.19,'-1430','49783',70,266);
INSERT INTO "communes" VALUES('24','Javerlhac-et-la-Chapelle-Saint-Robert','26',907,918,29.25,'-1973','50633',115,211);
INSERT INTO "communes" VALUES('24','Sainte-Croix','01',90,95,12.87,'-1673','49711',80,209);
INSERT INTO "communes" VALUES('24','Payzac','18',1069,1041,47.72,'-1243','50446',236,374);
INSERT INTO "communes" VALUES('24','Creyssac','21',93,99,4.56,'-1983','50342',82,153);
INSERT INTO "communes" VALUES('24','Sorges','37',1332,1123,47.38,'-1626','50342',120,216);
INSERT INTO "communes" VALUES('24','Terrasson-Lavilledieu','39',6225,6182,39.34,'-1150','50144',82,299);
INSERT INTO "communes" VALUES('24','Grignols','30',584,543,20.41,'-1996','50092',68,207);
INSERT INTO "communes" VALUES('24','Notre-Dame-de-Sanilhac','34',3059,2616,25.79,'-1789','50196',85,240);
INSERT INTO "communes" VALUES('24','Saint-Étienne-de-Puycorbier','24',106,113,13.54,'-2230','50103',50,157);
INSERT INTO "communes" VALUES('24','Saint-Martial-d''Artenset','23',973,848,32.14,'-2369','50018',29,107);
INSERT INTO "communes" VALUES('24','Montagnac-la-Crempse','45',378,381,25.49,'-1989','49979',92,199);
INSERT INTO "communes" VALUES('24','Saint-Martin-de-Gurson','46',606,555,24.58,'-2477','49947',31,106);
INSERT INTO "communes" VALUES('24','Villefranche-de-Lonchat','46',963,787,14.98,'-2532','49943',27,105);
INSERT INTO "communes" VALUES('25','Montfaucon','06',1520,1372,7.25,'4159','52483',240,614);
INSERT INTO "communes" VALUES('25','Exincourt','34',3164,3307,3.45,'4996','52775',317,382);
INSERT INTO "communes" VALUES('25','Lanans','04',130,108,10.05,'4569','52552',399,680);
INSERT INTO "communes" VALUES('25','Amondans','01',93,97,5.68,'4115','52299',296,530);
INSERT INTO "communes" VALUES('25','Chamesey','25',119,101,6.42,'4792','52485',688,865);
INSERT INTO "communes" VALUES('25','Échay','22',115,67,5.49,'4013','52272',301,454);
INSERT INTO "communes" VALUES('25','<NAME>','25',241,192,11.26,'4867','52356',880,1087);
INSERT INTO "communes" VALUES('25','Liesle','22',521,555,16.54,'3865','52291',235,462);
INSERT INTO "communes" VALUES('25','Séchin','24',132,108,1.09,'4386','52597',332,398);
INSERT INTO "communes" VALUES('25','Chapelle-d''Huin','11',441,351,23.71,'4256','52147',710,893);
INSERT INTO "communes" VALUES('25','Labergement-Sainte-Marie','17',1088,921,22.12,'4382','51972',846,1054);
INSERT INTO "communes" VALUES('25','Gellin','17',210,154,4.87,'4335','51925',915,1293);
INSERT INTO "communes" VALUES('25','Indevillers','26',241,196,22.81,'5134','52570',473,922);
INSERT INTO "communes" VALUES('25','Rondefontaine','17',30,23,2.72,'4273','51926',985,1186);
INSERT INTO "communes" VALUES('25','Longevelle-lès-Russey','25',49,46,2.56,'4794','52473',510,742);
INSERT INTO "communes" VALUES('25','Abbans-Dessous','07',235,174,3.2,'3931','52371',220,315);
INSERT INTO "communes" VALUES('25','Fourbanne','04',175,96,1.97,'4407','52590',255,386);
INSERT INTO "communes" VALUES('25','Longeville','18',144,134,9.46,'4323','52257',540,930);
INSERT INTO "communes" VALUES('25','Chemaudin','02',1430,1221,7.3,'3950','52471',233,310);
INSERT INTO "communes" VALUES('25','Arc-sous-Cicon','15',650,531,28.49,'4494','52281',776,1140);
INSERT INTO "communes" VALUES('25','Montancy','26',161,152,8.86,'5234','52607',410,920);
INSERT INTO "communes" VALUES('25','Fins','16',2908,2590,25.39,'4769','52312',750,1154);
INSERT INTO "communes" VALUES('25','Brey-et-Maison-du-Bois','17',101,100,6.18,'4350','51938',868,1055);
INSERT INTO "communes" VALUES('25','Ougney-Douvot','24',197,150,6.56,'4357','52568',255,589);
INSERT INTO "communes" VALUES('25','Plaimbois-du-Miroir','25',215,149,11.71,'4787','52435',445,972);
INSERT INTO "communes" VALUES('25','Orve','08',68,54,5.51,'4686','52584',459,651);
INSERT INTO "communes" VALUES('25','Passavant','04',236,188,14.98,'4497','52527',489,697);
INSERT INTO "communes" VALUES('25','Rémondans-Vaivre','21',227,180,9.19,'4863','52639',377,772);
INSERT INTO "communes" VALUES('25','Montperreux','20',771,605,11.61,'4450','52029',848,1112);
INSERT INTO "communes" VALUES('25','Autechaux','04',392,265,6.59,'4498','52642',409,505);
INSERT INTO "communes" VALUES('25','Thoraise','07',288,244,3.99,'3963','52416',222,411);
INSERT INTO "communes" VALUES('25','L''Hôpital-Saint-Lieffroy','08',92,72,3.43,'4579','52666',315,445);
INSERT INTO "communes" VALUES('25','Présentevillers','30',467,489,3.83,'4882','52779',330,448);
INSERT INTO "communes" VALUES('25','Mésandans','23',190,121,5.66,'4480','52701',305,467);
INSERT INTO "communes" VALUES('25','Urtière','12',8,6,2.15,'5099','52509',816,988);
INSERT INTO "communes" VALUES('25','Crosey-le-Petit','08',116,104,9.6,'4610','52613',389,578);
INSERT INTO "communes" VALUES('25','Plaimbois-Vennes','19',76,66,10.8,'4671','52427',470,1003);
INSERT INTO "communes" VALUES('25','Dambenois','34',768,629,3.28,'5035','52827',324,427);
INSERT INTO "communes" VALUES('25','Paroy','22',114,96,4.37,'3939','52270',276,572);
INSERT INTO "communes" VALUES('25','Saint-Georges-Armont','08',118,99,4.74,'4689','52665',278,550);
INSERT INTO "communes" VALUES('25','<NAME>','25',200,146,5.21,'4803','52409',790,1050);
INSERT INTO "communes" VALUES('25','Avilley','23',181,135,5.62,'4368','52695',236,295);
INSERT INTO "communes" VALUES('25','<NAME>','10',177,137,2.71,'4748','52716',290,431);
INSERT INTO "communes" VALUES('25','Ouvans','19',75,70,5.2,'4608','52529',604,785);
INSERT INTO "communes" VALUES('25','<NAME>','30',167,133,3.3,'4821','52844',373,500);
INSERT INTO "communes" VALUES('25','Vernierfontaine','27',424,321,13.28,'4402','52343',603,769);
INSERT INTO "communes" VALUES('25','Morteau','16',6700,6381,14.11,'4744','52287',750,1114);
INSERT INTO "communes" VALUES('25','Déservillers','01',322,264,13.88,'4150','52226',560,870);
INSERT INTO "communes" VALUES('25','Villers-sous-Montrond','18',180,163,6.33,'4169','52383',444,624);
INSERT INTO "communes" VALUES('25','Naisey-les-Granges','24',738,595,25.13,'4334','52458',429,734);
INSERT INTO "communes" VALUES('25','Longechaux','27',58,53,5.13,'4548','52405',699,820);
INSERT INTO "communes" VALUES('25','Pierrefontaine-les-Varans','19',1365,1349,28.9,'4669','52461',464,943);
INSERT INTO "communes" VALUES('25','Étupes','34',3564,3540,9.87,'5027','52785',319,406);
INSERT INTO "communes" VALUES('25','Grand''Combe-des-Bois','25',133,87,11.87,'4949','52375',615,1087);
INSERT INTO "communes" VALUES('25','Arc-sous-Montenot','11',229,218,10.72,'4073','52124',613,727);
INSERT INTO "communes" VALUES('25','Saint-Julien-lès-Montbéliard','30',176,172,3.81,'4860','52802',344,447);
INSERT INTO "communes" VALUES('25','Ferrières-les-Bois','02',322,258,4.17,'3851','52449',224,302);
INSERT INTO "communes" VALUES('25','Fontenelle-Montby','23',102,90,6.65,'4531','52722',394,470);
INSERT INTO "communes" VALUES('25','Montlebon','16',1953,1711,27.27,'4745','52269',750,1287);
INSERT INTO "communes" VALUES('25','Rigney','13',430,389,9.58,'4266','52653',227,436);
INSERT INTO "communes" VALUES('25','Fourcatier-et-Maison-Neuve','17',81,75,2.75,'4423','51958',889,1025);
INSERT INTO "communes" VALUES('25','Champoux','13',88,80,2.98,'4222','52594',305,517);
INSERT INTO "communes" VALUES('25','Dommartin','20',620,492,6.39,'4411','52139',807,944);
INSERT INTO "communes" VALUES('25','Thurey-le-Mont','13',106,106,4.83,'4207','52637',218,283);
INSERT INTO "communes" VALUES('25','Adam-lès-Vercel','27',108,67,3.19,'4505','52409',634,821);
INSERT INTO "communes" VALUES('25','Chevroz','13',105,81,1.98,'4067','52593',210,251);
INSERT INTO "communes" VALUES('25','Rennes-sur-Loue','22',92,89,5.5,'3907','52236',245,495);
INSERT INTO "communes" VALUES('25','Osse','24',327,298,8.21,'4307','52519',392,565);
INSERT INTO "communes" VALUES('25','Montflovin','15',102,75,3.35,'4565','52207',783,1060);
INSERT INTO "communes" VALUES('25','<NAME>','06',432,437,5.27,'4145','52457',386,470);
INSERT INTO "communes" VALUES('25','Écot','21',500,388,11.02,'4884','52696',376,574);
INSERT INTO "communes" VALUES('25','Montbenoît','15',391,218,5.03,'4584','52214',762,1125);
INSERT INTO "communes" VALUES('25','Goux-sous-Landet','22',51,42,5.42,'3997','52312',377,581);
INSERT INTO "communes" VALUES('25','Nans-sous-Sainte-Anne','01',155,127,8.86,'4069','52196',357,770);
INSERT INTO "communes" VALUES('25','Péseux','21',95,95,6.63,'4826','52574',440,800);
INSERT INTO "communes" VALUES('25','Labergement-du-Navois','01',110,84,6.74,'4160','52196',697,832);
INSERT INTO "communes" VALUES('25','Mondon','23',81,75,4.5,'4417','52712',260,417);
INSERT INTO "communes" VALUES('25','Autechaux-Roide','09',563,545,6.56,'4976','52658',363,575);
INSERT INTO "communes" VALUES('25','Bethoncourt','14',5971,6847,6.54,'4964','52816',315,410);
INSERT INTO "communes" VALUES('25','<NAME>','24',89,46,3.42,'4324','52606',297,375);
INSERT INTO "communes" VALUES('25','Étrappe','10',191,161,2.92,'4714','52749',296,463);
INSERT INTO "communes" VALUES('25','Venise','13',483,334,6.18,'4190','52607',219,516);
INSERT INTO "communes" VALUES('25','Puessans','23',45,42,3.59,'4429','52700',272,424);
INSERT INTO "communes" VALUES('25','Tallenay','13',396,394,2.34,'4097','52561',358,543);
INSERT INTO "communes" VALUES('25','Montivernage','04',26,40,3.34,'4545','52575',390,541);
INSERT INTO "communes" VALUES('25','Bulle','11',387,331,14.03,'4318','52104',810,876);
INSERT INTO "communes" VALUES('25','Dannemarie','09',108,101,2.25,'5067','52656',430,671);
INSERT INTO "communes" VALUES('25','Nommay','31',1637,1483,3.19,'5012','52820',320,397);
INSERT INTO "communes" VALUES('25','Goux-lès-Dambelin','21',274,232,8.9,'4816','52663',400,591);
INSERT INTO "communes" VALUES('25','Brognard','34',467,418,2.9,'5031','52811',319,383);
INSERT INTO "communes" VALUES('25','Saint-Antoine','17',309,276,4.51,'4446','51974',920,1101);
INSERT INTO "communes" VALUES('25','Raynans','30',274,233,4.03,'4869','52815',337,425);
INSERT INTO "communes" VALUES('25','Gevresin','01',114,107,6.91,'4117','52186',650,783);
INSERT INTO "communes" VALUES('25','Rouhe','22',80,72,4.19,'4030','52315',285,472);
INSERT INTO "communes" VALUES('25','Dambelin','21',487,386,12.43,'4821','52639',397,815);
INSERT INTO "communes" VALUES('25','Liebvillers','26',168,187,3.03,'4941','52595',356,650);
INSERT INTO "communes" VALUES('25','Frasne','11',1811,1622,32.87,'4248','52062',810,882);
INSERT INTO "communes" VALUES('25','Chaucenne','02',542,470,4.88,'3957','52539',212,262);
INSERT INTO "communes" VALUES('25','Rognon','23',46,44,4.09,'4417','52694',259,445);
INSERT INTO "communes" VALUES('25','Champagney','02',264,245,3.01,'3966','52507',219,301);
INSERT INTO "communes" VALUES('25','Hôpitaux-Vieux','20',355,257,14.21,'4478','51988',959,1300);
INSERT INTO "communes" VALUES('25','Chalèze','28',356,367,5.68,'4169','52519',240,552);
INSERT INTO "communes" VALUES('25','Aibre','30',454,455,4.5,'4845','52835',348,473);
INSERT INTO "communes" VALUES('25','Noël-Cerneux','25',371,295,6.36,'4808','52335',888,1082);
INSERT INTO "communes" VALUES('25','Laissey','24',454,416,2.86,'4327','52553',251,592);
INSERT INTO "communes" VALUES('25','Passonfontaine','27',281,227,19.49,'4536','52342',715,960);
INSERT INTO "communes" VALUES('25','Étrabonne','02',196,111,5.52,'3784','52482',234,340);
INSERT INTO "communes" VALUES('25','Montfort','22',90,91,2.8,'3960','52287',269,531);
INSERT INTO "communes" VALUES('25','Alliés','15',115,103,5.28,'4568','52164',943,1171);
INSERT INTO "communes" VALUES('25','Remoray-Boujeons','17',362,284,15.15,'4336','51964',849,1166);
INSERT INTO "communes" VALUES('25','Valdahon','27',5088,4028,25.51,'4453','52389',551,736);
INSERT INTO "communes" VALUES('25','Narbief','25',73,70,3.47,'4838','52366',879,935);
INSERT INTO "communes" VALUES('25','Rancenay','07',306,250,3.66,'4015','52430',226,372);
INSERT INTO "communes" VALUES('25','Laire','30',386,314,3.17,'4884','52834',356,462);
INSERT INTO "communes" VALUES('25','Chaux-lès-Passavant','27',148,144,8.44,'4469','52484',420,639);
INSERT INTO "communes" VALUES('25','Uzelle','23',154,156,11.75,'4555','52740',322,467);
INSERT INTO "communes" VALUES('25','Noironte','02',336,321,6.73,'3931','52524',206,278);
INSERT INTO "communes" VALUES('25','Anteuil','08',610,481,24.29,'4693','52653',360,836);
INSERT INTO "communes" VALUES('25','Saint-Julien-lès-Russey','25',149,112,10.01,'4875','52464',590,973);
INSERT INTO "communes" VALUES('25','Épenouse','27',132,88,5.75,'4517','52461',546,672);
INSERT INTO "communes" VALUES('25','Velesmes-Essarts','07',325,302,2.92,'3931','52435',230,295);
INSERT INTO "communes" VALUES('25','Reugney','01',308,230,8.19,'4239','52236',649,910);
INSERT INTO "communes" VALUES('25','Lavans-Vuillafans','18',218,182,10.16,'4342','52318',570,767);
INSERT INTO "communes" VALUES('25','Bonnevaux','17',342,260,16.53,'4276','52009',826,1097);
INSERT INTO "communes" VALUES('25','Épenoy','27',579,458,13.25,'4482','52368',679,822);
INSERT INTO "communes" VALUES('25','Montenois','10',1549,1099,8.03,'4810','52770',333,469);
INSERT INTO "communes" VALUES('25','Lomont-sur-Crête','04',162,156,9.79,'4550','52598',380,562);
INSERT INTO "communes" VALUES('25','Pierrefontaine-lès-Blamont','09',400,304,8.96,'5003','52640',490,835);
INSERT INTO "communes" VALUES('25','Mamirolle','06',1699,1457,11.49,'4250','52441',425,666);
INSERT INTO "communes" VALUES('25','Vyt-lès-Belvoir','08',180,172,7.54,'4761','52609',516,845);
INSERT INTO "communes" VALUES('25','Ronchaux','22',89,74,5.24,'3958','52280',283,593);
INSERT INTO "communes" VALUES('25','Vieilley','13',702,589,9.43,'4158','52597',215,593);
INSERT INTO "communes" VALUES('25','Courtefontaine','26',230,215,7.7,'5079','52578',668,920);
INSERT INTO "communes" VALUES('25','Thiébouhans','12',229,185,5.81,'5011','52534',780,970);
INSERT INTO "communes" VALUES('25','Guillon-les-Bains','04',112,118,4.72,'4508','52577',286,561);
INSERT INTO "communes" VALUES('25','Corcondray','02',125,130,5.38,'3877','52479',214,298);
INSERT INTO "communes" VALUES('25','Sombacour','11',596,524,19.3,'4356','52170',715,907);
INSERT INTO "communes" VALUES('25','Charbonnières-les-Sapins','18',192,159,9.1,'4309','52386',400,583);
INSERT INTO "communes" VALUES('25','Geney','10',148,130,4.33,'4700','52762',300,464);
INSERT INTO "communes" VALUES('25','Vanclans','27',207,171,9.6,'4472','52334',690,978);
INSERT INTO "communes" VALUES('25','Domprel','19',150,127,9.4,'4592','52445',680,789);
INSERT INTO "communes" VALUES('25','Pessans','22',78,60,4.35,'3940','52300',255,555);
INSERT INTO "communes" VALUES('25','Saraz','01',12,21,6.02,'4051','52219',345,622);
INSERT INTO "communes" VALUES('25','Hauterive-la-Fresse','15',212,145,7.46,'4569','52188',778,1210);
INSERT INTO "communes" VALUES('25','Miserey-Salines','02',2137,2151,6.22,'4041','52540',268,385);
INSERT INTO "communes" VALUES('25','Sancey-le-Grand','08',947,1021,23.55,'4717','52549',461,800);
INSERT INTO "communes" VALUES('25','Braillans','13',151,100,1.95,'4171','52566',329,450);
INSERT INTO "communes" VALUES('25','Jougne','17',1443,1199,29.03,'4501','51959',809,1463);
INSERT INTO "communes" VALUES('25','Nancray','24',1256,1017,16.48,'4272','52495',395,561);
INSERT INTO "communes" VALUES('25','Arcey','10',1414,1174,12.57,'4805','52803',347,490);
INSERT INTO "communes" VALUES('25','Bartherans','22',46,52,5.81,'3991','52269',408,570);
INSERT INTO "communes" VALUES('25','Grand-Charmont','31',5194,5187,4.56,'4985','52808',324,425);
INSERT INTO "communes" VALUES('25','By','22',77,80,7.34,'3947','52237',458,638);
INSERT INTO "communes" VALUES('25','Voujeaucourt','35',3411,3195,9.45,'4931','52751',305,416);
INSERT INTO "communes" VALUES('25','Ferrières-le-Lac','12',184,86,2.47,'5061','52519',789,910);
INSERT INTO "communes" VALUES('25','Villars-sous-Dampjoux','21',395,403,3.06,'4911','52610',348,723);
INSERT INTO "communes" VALUES('25','Pouilley-les-Vignes','02',1898,1801,9.34,'3999','52508',217,354);
INSERT INTO "communes" VALUES('25','Aïssey','04',162,166,10.67,'4439','52520',370,599);
INSERT INTO "communes" VALUES('25','Glamondans','24',190,153,9.76,'4379','52517',389,482);
INSERT INTO "communes" VALUES('25','Serre-les-Sapins','02',1537,1357,5.24,'3992','52491',238,314);
INSERT INTO "communes" VALUES('25','Chantrans','18',418,319,14.31,'4237','52270',430,693);
INSERT INTO "communes" VALUES('25','Lavernay','02',594,431,7.74,'3868','52496',210,287);
INSERT INTO "communes" VALUES('25','Bouclans','24',971,853,21.4,'4333','52497',397,514);
INSERT INTO "communes" VALUES('25','<NAME>','06',166,102,2.97,'4224','52426',438,610);
INSERT INTO "communes" VALUES('25','<NAME>','19',199,129,7.37,'4638','52436',525,732);
INSERT INTO "communes" VALUES('25','Durnes','18',156,154,8.51,'4327','52342',388,618);
INSERT INTO "communes" VALUES('25','Terres-de-Chaux','26',132,116,14.49,'4890','52576',420,860);
INSERT INTO "communes" VALUES('25','Battenans-les-Mines','13',58,57,2.78,'4369','52678',256,404);
INSERT INTO "communes" VALUES('25','Chalezeule','28',1234,951,3.94,'4154','52510',240,400);
INSERT INTO "communes" VALUES('25','Allenjoie','34',754,582,6.56,'5067','52817',320,417);
INSERT INTO "communes" VALUES('25','Bief','26',114,122,3.81,'4924','52585',357,660);
INSERT INTO "communes" VALUES('25','Rougemont','23',1236,1233,18.33,'4465','52757',245,405);
INSERT INTO "communes" VALUES('25','Rosières-sur-Barbèche','21',97,117,5.31,'4803','52573',470,790);
INSERT INTO "communes" VALUES('25','Châtillon-Guyotte','24',131,110,4.44,'4258','52590',257,460);
INSERT INTO "communes" VALUES('25','Hyémondans','10',204,139,6.87,'4792','52653',399,821);
INSERT INTO "communes" VALUES('25','Roulans','24',1107,1005,8.31,'4330','52574',255,554);
INSERT INTO "communes" VALUES('25','Soulce-Cernay','26',109,94,8.55,'5024','52584',377,850);
INSERT INTO "communes" VALUES('25','Valentigney','35',11388,12473,9.74,'4995','52736',317,440);
INSERT INTO "communes" VALUES('25','Arguel','06',238,218,4.98,'4072','52442',300,507);
INSERT INTO "communes" VALUES('25','Amagney','13',731,682,13.13,'4239','52561',253,504);
INSERT INTO "communes" VALUES('25','Trépot','18',503,356,14.5,'4237','52407',509,661);
INSERT INTO "communes" VALUES('25','Vellerot-lès-Vercel','19',48,55,4.57,'4567','52493',559,703);
INSERT INTO "communes" VALUES('25','Geneuille','13',1339,943,6.45,'4038','52582',210,278);
INSERT INTO "communes" VALUES('25','Eysson','27',91,75,6.01,'4548','52444',552,740);
INSERT INTO "communes" VALUES('25','Roche-lez-Beaupré','13',2042,2060,5.63,'4197','52529',242,339);
INSERT INTO "communes" VALUES('25','Recologne','02',573,509,6.78,'3881','52526',201,268);
INSERT INTO "communes" VALUES('25','<NAME>','25',77,66,5.13,'4793','52376',889,1052);
INSERT INTO "communes" VALUES('25','Franey','02',277,239,3.38,'3868','52513',205,287);
INSERT INTO "communes" VALUES('25','Reculfoz','17',53,40,2.54,'4238','51898',1000,1212);
INSERT INTO "communes" VALUES('25','Guyans-Vennes','19',730,574,19.67,'4705','52396',540,984);
INSERT INTO "communes" VALUES('25','Glère','26',220,208,15.93,'5175','52604',404,903);
INSERT INTO "communes" VALUES('25','Noirefontaine','21',346,383,3.35,'4917','52610',350,630);
INSERT INTO "communes" VALUES('25','Mesmay','22',72,71,3.11,'3906','52290',253,436);
INSERT INTO "communes" VALUES('25','Vuillecin','20',588,524,14.24,'4428','52155',801,944);
INSERT INTO "communes" VALUES('25','Busy','07',558,487,5.2,'4012','52409',227,431);
INSERT INTO "communes" VALUES('25','<NAME>','25',2111,1919,24.17,'4881','52403',859,1034);
INSERT INTO "communes" VALUES('25','Vaire-le-Petit','13',200,197,1.26,'4233','52541',249,378);
INSERT INTO "communes" VALUES('25','Germéfontaine','19',121,100,11.16,'4590','52472',649,821);
INSERT INTO "communes" VALUES('25','Rosureux','25',81,81,6.14,'4834','52465',428,972);
INSERT INTO "communes" VALUES('25','Orgeans-Blanchefontaine','12',47,53,4.83,'4897','52515',390,713);
INSERT INTO "communes" VALUES('25','Bretigney','30',85,68,1.83,'4778','52762',355,455);
INSERT INTO "communes" VALUES('25','Gouhelans','23',113,116,6.17,'4463','52729',265,438);
INSERT INTO "communes" VALUES('25','Gilley','15',1468,1256,17.27,'4609','52275',820,1083);
INSERT INTO "communes" VALUES('25','L''Isle-sur-le-Doubs','10',3170,3303,10.67,'4722','52720',285,500);
INSERT INTO "communes" VALUES('25','Fourg','22',321,254,12.1,'3860','52331',250,445);
INSERT INTO "communes" VALUES('25','Chenecey-Buillon','22',556,488,16.58,'4025','52378',266,491);
INSERT INTO "communes" VALUES('25','Cour-Saint-Maurice','12',170,157,4.47,'4849','52507',406,696);
INSERT INTO "communes" VALUES('25','Abbévillers','09',1076,876,11.18,'5091','52702',427,612);
INSERT INTO "communes" VALUES('25','Mont-de-Vougney','12',169,136,7.03,'4883','52495',600,942);
INSERT INTO "communes" VALUES('25','Écurcey','09',279,287,7.43,'4973','52673',353,598);
INSERT INTO "communes" VALUES('25','Hérimoncourt','09',3750,3938,7.29,'5052','52712',350,578);
INSERT INTO "communes" VALUES('25','Malbrans','18',131,101,8.74,'4161','52356',380,624);
INSERT INTO "communes" VALUES('25','Renédale','15',37,30,2.88,'4379','52242',670,768);
INSERT INTO "communes" VALUES('25','Bouverans','20',338,270,18.17,'4301','52059',822,1101);
INSERT INTO "communes" VALUES('25','Médière','10',319,314,5.73,'4735','52730',288,434);
INSERT INTO "communes" VALUES('25','Huanne-Montmartin','23',82,72,3.43,'4453','52701',283,415);
INSERT INTO "communes" VALUES('25','Grand''Combe-Châteleu','16',1365,1264,21.46,'4704','52251',750,1300);
INSERT INTO "communes" VALUES('25','Courtetain-et-Salans','27',86,79,6.85,'4534','52508',530,722);
INSERT INTO "communes" VALUES('25','Montmahoux','01',95,67,6.52,'4108','52204',550,823);
INSERT INTO "communes" VALUES('25','Courvières','11',265,266,10.94,'4192','52077',802,870);
INSERT INTO "communes" VALUES('25','Bourguignon','21',955,903,5.56,'4937','52682',337,564);
INSERT INTO "communes" VALUES('25','Hôpitaux-Neufs','20',748,509,6.56,'4485','51974',970,1290);
INSERT INTO "communes" VALUES('25','Émagny','02',616,564,5.15,'3925','52568',202,248);
INSERT INTO "communes" VALUES('25','Sainte-Suzanne','30',1513,1351,1.59,'4929','52785',310,405);
INSERT INTO "communes" VALUES('25','Mont-de-Laval','25',192,137,8.44,'4768','52411',570,1050);
INSERT INTO "communes" VALUES('25','Grosbois','04',228,191,2.96,'4411','52604',323,436);
INSERT INTO "communes" VALUES('25','Abbenans','23',355,369,11.17,'4571','52778',270,447);
INSERT INTO "communes" VALUES('25','Saint-Vit','07',4707,4379,16.44,'3860','52424',210,302);
INSERT INTO "communes" VALUES('25','Thulay','09',220,172,2.23,'5028','52694',394,541);
INSERT INTO "communes" VALUES('25','Châtelblanc','17',115,102,20.79,'4199','51859',901,1271);
INSERT INTO "communes" VALUES('25','Malans','01',158,145,10.49,'4105','52275',370,595);
INSERT INTO "communes" VALUES('25','Châtillon-le-Duc','13',1905,1837,6.26,'4078','52560',212,482);
INSERT INTO "communes" VALUES('25','Champlive','24',260,238,8.2,'4344','52543',255,592);
INSERT INTO "communes" VALUES('25','Routelle','07',481,473,3.06,'3903','52409',212,358);
INSERT INTO "communes" VALUES('25','Dung','30',654,579,3.22,'4906','52783',320,435);
INSERT INTO "communes" VALUES('25','Vennes','19',145,108,7.31,'4678','52392',758,1000);
INSERT INTO "communes" VALUES('25','Beure','06',1356,1378,3.99,'4075','52453',234,480);
INSERT INTO "communes" VALUES('25','Fontaine-lès-Clerval','08',253,242,11.5,'4594','52695',320,462);
INSERT INTO "communes" VALUES('25','Consolation-Maisonnettes','19',29,46,4.31,'4743','52397',495,880);
INSERT INTO "communes" VALUES('25','Blussans','10',187,176,8.04,'4745','52697',290,482);
INSERT INTO "communes" VALUES('25','<NAME>','13',236,222,8.82,'4322','52652',253,495);
INSERT INTO "communes" VALUES('25','Jallerange','02',191,170,5.41,'3756','52505',198,320);
INSERT INTO "communes" VALUES('25','Verrières-de-Joux','20',429,355,10.15,'4569','52107',890,1204);
INSERT INTO "communes" VALUES('25','Dampjoux','26',148,152,2.31,'4912','52603',356,680);
INSERT INTO "communes" VALUES('25','Lods','18',236,271,6.25,'4346','52272',355,770);
INSERT INTO "communes" VALUES('25','Bart','30',1898,2077,3.84,'4928','52769',309,480);
INSERT INTO "communes" VALUES('25','Arçon','15',771,695,21.34,'4491','52164',787,1086);
INSERT INTO "communes" VALUES('25','Flagey-Rigney','13',75,71,3.03,'4319','52688',232,282);
INSERT INTO "communes" VALUES('25','Pontarlier','20',18456,18357,41.35,'4465','52118',811,1320);
INSERT INTO "communes" VALUES('25','Étouvans','21',760,722,6.56,'4870','52738',301,476);
INSERT INTO "communes" VALUES('25','Seloncourt','09',5922,5749,7.92,'5024','52734',330,483);
INSERT INTO "communes" VALUES('25','Branne','08',173,167,6.45,'4595','52641',272,556);
INSERT INTO "communes" VALUES('25','Houtaud','20',961,802,7.89,'4417','52128',807,901);
INSERT INTO "communes" VALUES('25','Semondans','30',313,241,2.77,'4840','52825',344,450);
INSERT INTO "communes" VALUES('25','Boujailles','11',416,371,28.22,'4160','52098',780,901);
INSERT INTO "communes" VALUES('25','Mandeure','35',4933,5162,15.13,'4965','52724',324,581);
INSERT INTO "communes" VALUES('25','Gondenans-Montby','23',169,175,11.78,'4573','52703',318,494);
INSERT INTO "communes" VALUES('25','Touillon-et-Loutelet','20',227,149,4.72,'4461','51992',958,1114);
INSERT INTO "communes" VALUES('25','Villeneuve-d''Amont','11',273,261,14.27,'4106','52155',647,727);
INSERT INTO "communes" VALUES('25','Flangebouche','19',686,546,23.27,'4595','52378',685,1056);
INSERT INTO "communes" VALUES('25','Magny-Châtelard','27',43,19,4.2,'4428','52475',450,610);
INSERT INTO "communes" VALUES('25','Fournet-Blancheroche','12',348,256,13.08,'4988','52409',574,1031);
INSERT INTO "communes" VALUES('25','Nans','23',88,87,3.2,'4528','52752',284,452);
INSERT INTO "communes" VALUES('25','Dompierre-les-Tilleuls','11',248,210,12.94,'4275','52080',804,887);
INSERT INTO "communes" VALUES('25','<NAME>','20',828,645,19.16,'4310','52075',810,1112);
INSERT INTO "communes" VALUES('25','Abbans-Dessus','07',307,272,4.43,'3939','52356',268,470);
INSERT INTO "communes" VALUES('25','Dampierre-sur-le-Doubs','21',498,494,3.16,'4884','52750',301,458);
INSERT INTO "communes" VALUES('25','Chaudefontaine','13',218,207,6.33,'4248','52600',255,448);
INSERT INTO "communes" VALUES('25','Roches-lès-Blamont','09',627,574,5.44,'5016','52677',417,573);
INSERT INTO "communes" VALUES('25','Voillans','04',208,199,10.12,'4529','52652',382,548);
INSERT INTO "communes" VALUES('25','Rang','10',418,450,10.32,'4696','52696',280,524);
INSERT INTO "communes" VALUES('25','Chapelle-des-Bois','17',264,244,39.69,'4198','51776',1006,1374);
INSERT INTO "communes" VALUES('25','Cusance','04',84,75,4.04,'4557','52582',300,490);
INSERT INTO "communes" VALUES('25','Chaffois','20',887,712,16.25,'4370','52128',808,906);
INSERT INTO "communes" VALUES('25','Avoudrey','27',835,705,12.86,'4554','52374',692,805);
INSERT INTO "communes" VALUES('25','Meslières','09',350,353,2.99,'5057','52686',374,577);
INSERT INTO "communes" VALUES('25','Montussaint','23',71,55,3.04,'4395','52704',249,399);
INSERT INTO "communes" VALUES('25','Mancenans','10',330,284,11.94,'4674','52727',283,501);
INSERT INTO "communes" VALUES('25','Côtebrune','04',72,54,3.22,'4417','52505',415,584);
INSERT INTO "communes" VALUES('25','Soye','10',354,253,13.89,'4624','52716',287,507);
INSERT INTO "communes" VALUES('25','Palise','13',131,101,2.09,'4171','52635',215,266);
INSERT INTO "communes" VALUES('25','Verne','04',134,120,7.82,'4463','52665',369,479);
INSERT INTO "communes" VALUES('25','Solemont','21',139,185,8.09,'4853','52604',394,831);
INSERT INTO "communes" VALUES('25','Baume-les-Dames','04',5315,5407,24.79,'4470','52613',261,538);
INSERT INTO "communes" VALUES('25','Bians-les-Usiers','11',572,528,14.01,'4367','52180',700,922);
INSERT INTO "communes" VALUES('25','Pouligney-Lusans','24',787,695,11.6,'4297','52587',257,453);
INSERT INTO "communes" VALUES('25','Amathay-Vésigneux','18',146,129,12.13,'4293','52248',642,921);
INSERT INTO "communes" VALUES('25','Esnans','04',40,43,3.72,'4431','52599',259,588);
INSERT INTO "communes" VALUES('25','Avanne-Aveney','07',2340,1904,8.62,'4031','52447',228,493);
INSERT INTO "communes" VALUES('25','Étalans','27',1165,928,23.95,'4369','52390',520,638);
INSERT INTO "communes" VALUES('25','Sainte-Colombe','20',330,231,10.49,'4368','52087',809,1024);
INSERT INTO "communes" VALUES('25','Vennans','24',187,90,1.36,'4333','52588',299,400);
INSERT INTO "communes" VALUES('25','Bonnevaux-le-Prieuré','18',108,93,3.08,'4258','52371',356,548);
INSERT INTO "communes" VALUES('25','Cléron','01',312,294,14.56,'4138','52319',295,563);
INSERT INTO "communes" VALUES('25','Vaux-les-Prés','02',360,345,5.14,'3941','52485',223,304);
INSERT INTO "communes" VALUES('25','Palantine','22',49,36,4.31,'4007','52321',359,441);
INSERT INTO "communes" VALUES('25','Arbouans','03',992,1098,1.32,'4971','52767',312,352);
INSERT INTO "communes" VALUES('25','Lombard','22',215,153,5.92,'3908','52308',252,493);
INSERT INTO "communes" VALUES('25','Neuchâtel-Urtière','21',163,149,6.21,'4882','52639',373,828);
INSERT INTO "communes" VALUES('25','Ornans','18',4188,4035,32.64,'4229','52339',323,635);
INSERT INTO "communes" VALUES('25','Colombier-Fontaine','21',1376,1481,7.66,'4837','52725',298,474);
INSERT INTO "communes" VALUES('25','Mérey-sous-Montrond','18',445,421,10.79,'4147','52391',380,522);
INSERT INTO "communes" VALUES('25','Rillans','23',86,61,3.42,'4475','52681',384,473);
INSERT INTO "communes" VALUES('25','Cussey-sur-l''Ognon','13',946,620,7.55,'4001','52599',206,256);
INSERT INTO "communes" VALUES('25','Belvoir','08',98,102,9.31,'4741','52575',506,671);
INSERT INTO "communes" VALUES('25','Saint-Hippolyte','26',911,1044,11.01,'4973','52576',360,760);
INSERT INTO "communes" VALUES('25','Montbéliard','95',25875,27566,15.01,'4957','52788',311,454);
INSERT INTO "communes" VALUES('25','Montgesoye','18',493,432,11.06,'4283','52312',331,624);
INSERT INTO "communes" VALUES('25','<NAME>','20',1197,1122,22.5,'4491','52080',837,1199);
INSERT INTO "communes" VALUES('25','<NAME>','15',670,489,15.66,'4579','52231',756,991);
INSERT INTO "communes" VALUES('25','Châteauvieux-les-Fossés','18',12,11,4.46,'4295','52293',347,715);
INSERT INTO "communes" VALUES('25','Auxon-Dessus','02',1158,740,3.88,'4040','52557',223,350);
INSERT INTO "communes" VALUES('25','Vaudrivillers','04',81,75,3.65,'4544','52535',480,660);
INSERT INTO "communes" VALUES('25','Cuse-et-Adrisans','23',271,209,5.42,'4505','52755',259,425);
INSERT INTO "communes" VALUES('25','Vandoncourt','09',829,626,8.57,'5072','52741',370,611);
INSERT INTO "communes" VALUES('25','Silley-Amancey','01',124,111,5.16,'4226','52258',470,690);
INSERT INTO "communes" VALUES('25','Lavans-Quingey','22',188,112,5.9,'3934','52321',258,521);
INSERT INTO "communes" VALUES('25','Vauclusotte','12',97,107,7.62,'4887','52532',395,700);
INSERT INTO "communes" VALUES('25','Bretigney-Notre-Dame','04',111,102,5.62,'4407','52570',359,589);
INSERT INTO "communes" VALUES('25','École-Valentin','02',2309,2154,3.22,'4053','52525',283,383);
INSERT INTO "communes" VALUES('25','Champvans-les-Moulins','02',347,232,2.52,'3977','52506',226,307);
INSERT INTO "communes" VALUES('25','Petite-Chaux','17',140,130,9.81,'4257','51882',955,1286);
INSERT INTO "communes" VALUES('25','Badevel','34',850,733,3.73,'5114','52778',345,452);
INSERT INTO "communes" VALUES('25','Fessevillers','12',174,139,6.16,'5086','52534',485,975);
INSERT INTO "communes" VALUES('25','Flagey','01',142,102,7.79,'4207','52264',440,631);
INSERT INTO "communes" VALUES('25','Maîche','12',4355,3976,17.42,'4963','52501',729,981);
INSERT INTO "communes" VALUES('25','<NAME>','17',68,40,3.77,'4223','51893',1018,1212);
INSERT INTO "communes" VALUES('25','Audincourt','03',14825,15537,8.76,'5003','52759',314,417);
INSERT INTO "communes" VALUES('25','Chevigney-sur-l''Ognon','02',245,240,4.58,'3891','52553',202,241);
INSERT INTO "communes" VALUES('25','Désandans','30',714,584,5.47,'4823','52815',359,514);
INSERT INTO "communes" VALUES('25','Cubrial','23',137,135,5.92,'4523','52773',264,356);
INSERT INTO "communes" VALUES('25','<NAME>','06',98,76,7.68,'4255','52467',413,455);
INSERT INTO "communes" VALUES('25','Mathay','21',2151,1987,14.85,'4941','52708',330,551);
INSERT INTO "communes" VALUES('25','Devecey','13',1350,1424,3.78,'4087','52583',211,482);
INSERT INTO "communes" VALUES('25','Bonnétage','25',782,674,17.71,'4874','52427',615,1045);
INSERT INTO "communes" VALUES('25','Fontenelles','25',534,435,8.38,'4897','52444',860,960);
INSERT INTO "communes" VALUES('25','Laviron','19',354,331,19.92,'4684','52507',658,853);
INSERT INTO "communes" VALUES('25','Sarrageois','17',155,106,13.22,'4311','51917',920,1314);
INSERT INTO "communes" VALUES('25','Crouzet-Migette','01',130,94,5.67,'4083','52174',490,742);
INSERT INTO "communes" VALUES('25','Saint-Maurice-Colombier','10',907,721,13.29,'4787','52713',292,491);
INSERT INTO "communes" VALUES('25','Placey','02',146,166,2.57,'3900','52511',215,281);
INSERT INTO "communes" VALUES('25','Luxiol','04',166,158,6.44,'4458','52646',360,525);
INSERT INTO "communes" VALUES('25','Cademène','22',90,82,3.39,'4101','52334',295,515);
INSERT INTO "communes" VALUES('25','<NAME>','13',63,61,4.16,'4375','52646',309,445);
INSERT INTO "communes" VALUES('25','Marvelise','10',155,139,4.21,'4728','52802',329,513);
INSERT INTO "communes" VALUES('25','Adam-lès-Passavant','04',99,77,9.59,'4472','52552',310,561);
INSERT INTO "communes" VALUES('25','Vauchamps','24',126,121,2.94,'4337','52525',395,457);
INSERT INTO "communes" VALUES('25','Charmauvillers','12',270,207,10.47,'5091','52488',500,1007);
INSERT INTO "communes" VALUES('25','Vellerot-lès-Belvoir','08',115,121,6.04,'4738','52611',559,843);
INSERT INTO "communes" VALUES('25','Malpas','20',223,148,5.78,'4392','52029',878,985);
INSERT INTO "communes" VALUES('25','Faimbe','10',112,115,1.97,'4752','52765',327,430);
INSERT INTO "communes" VALUES('25','Villers-Saint-Martin','04',217,190,8.9,'4525','52603',317,520);
INSERT INTO "communes" VALUES('25','Glay','09',356,315,6.49,'5060','52673',385,566);
INSERT INTO "communes" VALUES('25','Val-de-Roulans','24',146,84,2.99,'4364','52624',364,423);
INSERT INTO "communes" VALUES('25','Saint-Hilaire','24',161,59,2.64,'4339','52595',302,386);
INSERT INTO "communes" VALUES('25','Goumois','12',179,194,5.83,'5125','52512',485,953);
INSERT INTO "communes" VALUES('25','Lanthenans','10',62,65,3.36,'4767','52661',389,592);
INSERT INTO "communes" VALUES('25','Auxon-Dessous','02',1246,1096,6.28,'4015','52554',215,330);
INSERT INTO "communes" VALUES('25','Villars-sous-Écot','21',379,359,11.48,'4847','52691',333,531);
INSERT INTO "communes" VALUES('25','Orsans','27',161,125,8.29,'4503','52497',500,630);
INSERT INTO "communes" VALUES('25','Clerval','08',1045,1066,11.83,'4623','52658',274,550);
INSERT INTO "communes" VALUES('25','Gonsans','24',516,431,17.29,'4404','52480',447,644);
INSERT INTO "communes" VALUES('25','Taillecourt','03',1028,742,1.86,'5013','52774',322,391);
INSERT INTO "communes" VALUES('25','Crosey-le-Grand','08',179,178,10.28,'4654','52617',439,687);
INSERT INTO "communes" VALUES('25','Longemaison','27',135,121,9.63,'4581','52313',730,1091);
INSERT INTO "communes" VALUES('25','Lantenne-Vertière','02',538,458,9.88,'3824','52481',221,311);
INSERT INTO "communes" VALUES('25','Chasnans','27',240,186,7.87,'4419','52318',648,910);
INSERT INTO "communes" VALUES('25','Beutal','30',275,199,5.78,'4780','52746',310,469);
INSERT INTO "communes" VALUES('25','Rahon','08',121,108,5.69,'4727','52581',489,664);
INSERT INTO "communes" VALUES('25','Saint-Point-Lac','20',276,190,4.52,'4406','52015',847,981);
INSERT INTO "communes" VALUES('25','Sainte-Marie','30',731,696,7.17,'4843','52786',327,449);
INSERT INTO "communes" VALUES('25','Pompierre-sur-Doubs','08',313,271,8.16,'4653','52687',275,393);
INSERT INTO "communes" VALUES('25','Valonne','21',233,179,8.33,'4802','52604',449,810);
INSERT INTO "communes" VALUES('25','Montagney-Servigney','23',119,114,6.55,'4411','52757',241,297);
INSERT INTO "communes" VALUES('25','Vernois-lès-Belvoir','21',63,56,4.68,'4782','52587',470,652);
INSERT INTO "communes" VALUES('25','Vaux-et-Chantegrue','17',567,505,13.98,'4348','52012',858,1074);
INSERT INTO "communes" VALUES('25','Montrond-le-Château','22',558,470,10.9,'4122','52382',407,525);
INSERT INTO "communes" VALUES('25','Échenans','30',132,115,1.7,'4843','52807',342,387);
INSERT INTO "communes" VALUES('25','Hyèvre-Magny','04',74,51,3.41,'4556','52629',267,499);
INSERT INTO "communes" VALUES('25','Bonnal','23',20,24,1.8,'4465','52785',251,292);
INSERT INTO "communes" VALUES('25','Métabief','17',1085,658,5.76,'4461','51970',923,1419);
INSERT INTO "communes" VALUES('25','Guyans-Durnes','18',250,156,9.03,'4341','52359',520,615);
INSERT INTO "communes" VALUES('25','Levier','11',1963,1700,37.6,'4202','52171',679,901);
INSERT INTO "communes" VALUES('25','Chevigney-lès-Vercel','27',124,109,5.38,'4483','52404',603,700);
INSERT INTO "communes" VALUES('25','<NAME>','25',40,30,3.16,'4828','52396',940,1051);
INSERT INTO "communes" VALUES('25','Blarians','13',53,42,0.89,'4270','52680',227,267);
INSERT INTO "communes" VALUES('25','Rochejean','17',622,434,24.32,'4396','51940',870,1381);
INSERT INTO "communes" VALUES('25','Tallans','23',43,26,4.05,'4390','52689',245,431);
INSERT INTO "communes" VALUES('25','Frambouhans','12',772,613,10.1,'4923','52466',820,960);
INSERT INTO "communes" VALUES('25','Osselle','07',397,349,7.68,'3911','52381',214,384);
INSERT INTO "communes" VALUES('25','Berche','21',460,428,3.11,'4895','52747',305,448);
INSERT INTO "communes" VALUES('25','Franois','02',1860,1779,7.29,'3988','52481',248,312);
INSERT INTO "communes" VALUES('25','Vieux-Charmont','31',2526,2505,2.51,'5003','52805',318,367);
INSERT INTO "communes" VALUES('25','Villers-Chief','19',114,119,7.83,'4559','52474',547,773);
INSERT INTO "communes" VALUES('25','Vaire-Arcier','13',528,525,12.78,'4240','52537',243,561);
INSERT INTO "communes" VALUES('25','Belmont','27',60,60,4.72,'4478','52468',535,633);
INSERT INTO "communes" VALUES('25','Rurey','22',324,282,14.77,'4081','52329',285,520);
INSERT INTO "communes" VALUES('25','Surmont','08',131,131,7.38,'4749','52532',600,793);
INSERT INTO "communes" VALUES('25','<NAME>','25',404,285,4.88,'4831','52343',888,1092);
INSERT INTO "communes" VALUES('25','Pont-les-Moulins','04',177,170,4.95,'4474','52582',269,426);
INSERT INTO "communes" VALUES('25','Villers-Buzon','02',262,236,3.19,'3905','52475',227,295);
INSERT INTO "communes" VALUES('25','Hyèvre-Paroisse','04',193,188,8.79,'4548','52635',267,554);
INSERT INTO "communes" VALUES('25','Scey-Maisières','18',313,253,12.53,'4154','52334',305,558);
INSERT INTO "communes" VALUES('25','Vaufrey','26',146,162,9.37,'5097','52609',395,900);
INSERT INTO "communes" VALUES('25','Burgille','02',522,323,9.28,'3821','52520',199,315);
INSERT INTO "communes" VALUES('25','Accolans','10',98,79,5.18,'4661','52772',360,532);
INSERT INTO "communes" VALUES('25','Malbuisson','20',704,400,6.6,'4407','51998',846,1091);
INSERT INTO "communes" VALUES('25','Charquemont','12',2467,2212,21.44,'4983','52460',535,1043);
INSERT INTO "communes" VALUES('25','Montjoie-le-Château','26',31,22,5.39,'5072','52611',395,773);
INSERT INTO "communes" VALUES('25','Athose','27',168,120,7.63,'4414','52308',540,882);
INSERT INTO "communes" VALUES('25','Mercey-le-Grand','02',480,407,6.56,'3780','52463',229,302);
INSERT INTO "communes" VALUES('25','Trévillers','12',476,438,10.74,'5036','52536',700,920);
INSERT INTO "communes" VALUES('25','Laval-le-Prieuré','25',34,35,5.29,'4761','52424',460,820);
INSERT INTO "communes" VALUES('25','Orchamps-Vennes','19',1875,1601,24.79,'4654','52371',725,1020);
INSERT INTO "communes" VALUES('25','Verrières-du-Grosbois','27',19,19,7.86,'4378','52445',555,635);
INSERT INTO "communes" VALUES('25','Doubs','20',2597,2261,8.94,'4459','52141',795,1052);
INSERT INTO "communes" VALUES('25','Courcelles-lès-Montbéliard','03',1127,1014,2.4,'4944','52778',308,347);
INSERT INTO "communes" VALUES('25','Voires','18',55,57,4.88,'4345','52330',604,709);
INSERT INTO "communes" VALUES('25','Pouilley-Français','02',778,591,6.08,'3898','52453',227,300);
INSERT INTO "communes" VALUES('25','<NAME>','02',120,78,1.3,'3773','52492',239,324);
INSERT INTO "communes" VALUES('25','Valleroy','13',142,72,3.05,'4201','52652',220,278);
INSERT INTO "communes" VALUES('25','Fallerans','27',249,222,10.78,'4393','52369',565,676);
INSERT INTO "communes" VALUES('25','Gémonval','10',80,75,3.39,'4724','52814',305,513);
INSERT INTO "communes" VALUES('25','<NAME>','25',320,272,10.72,'4776','52355',870,1040);
INSERT INTO "communes" VALUES('25','Cendrey','13',182,188,5.52,'4342','52671',232,481);
INSERT INTO "communes" VALUES('25','Septfontaines','11',310,254,18.37,'4274','52202',700,810);
INSERT INTO "communes" VALUES('25','Fontain','06',954,792,16.27,'4099','52443',340,511);
INSERT INTO "communes" VALUES('25','Villers-le-Lac','16',4435,4194,30.17,'4815','52290',650,1260);
INSERT INTO "communes" VALUES('25','<NAME>','25',267,198,7.85,'4817','52373',887,1063);
INSERT INTO "communes" VALUES('25','Valoreille','26',107,90,7.58,'4896','52556',387,860);
INSERT INTO "communes" VALUES('25','L''Écouvotte','24',112,73,2.16,'4349','52601',325,383);
INSERT INTO "communes" VALUES('25','Onans','10',375,342,14.21,'4748','52780',335,481);
INSERT INTO "communes" VALUES('25','Battenans-Varin','12',67,56,6.38,'4861','52499',408,740);
INSERT INTO "communes" VALUES('25','Sainte-Anne','01',30,29,6.64,'4054','52172',490,741);
INSERT INTO "communes" VALUES('25','Villars-Saint-Georges','07',246,181,5.15,'3878','52362',220,310);
INSERT INTO "communes" VALUES('25','Landresse','19',215,148,14.43,'4592','52508',556,853);
INSERT INTO "communes" VALUES('25','Bréseux','12',419,404,7.37,'4971','52525',570,910);
INSERT INTO "communes" VALUES('25','Étray','27',200,132,6,'4451','52359',623,759);
INSERT INTO "communes" VALUES('25','Bournois','10',183,209,10.48,'4623','52776',330,521);
INSERT INTO "communes" VALUES('25','Allondans','30',227,191,5.14,'4901','52799',325,435);
INSERT INTO "communes" VALUES('25','Épeugney','22',530,457,13.95,'4098','52353',387,525);
INSERT INTO "communes" VALUES('25','Roche-lès-Clerval','08',100,93,5.34,'4605','52631',272,558);
INSERT INTO "communes" VALUES('25','Cernay-l''Église','12',272,258,5.95,'4994','52508',787,982);
INSERT INTO "communes" VALUES('25','Issans','30',257,276,2.72,'4879','52808',330,432);
INSERT INTO "communes" VALUES('25','Larnod','07',650,647,4.05,'4039','52429',296,470);
INSERT INTO "communes" VALUES('25','Torpes','07',922,713,5.55,'3949','52410',220,350);
INSERT INTO "communes" VALUES('25','Saône','06',3260,2728,20.55,'4201','52472',370,495);
INSERT INTO "communes" VALUES('25','Fournets-Luisans','19',631,501,27.71,'4695','52346',706,1042);
INSERT INTO "communes" VALUES('25','Aubonne','15',229,256,15.17,'4435','52262',598,1091);
INSERT INTO "communes" VALUES('25','Bugny','15',158,115,4.77,'4463','52216',845,970);
INSERT INTO "communes" VALUES('25','Longevelle-sur-Doubs','10',627,604,8.31,'4794','52725',295,432);
INSERT INTO "communes" VALUES('25','Belleherbe','12',587,577,16.13,'4802','52513',590,854);
INSERT INTO "communes" VALUES('25','Feule','21',178,163,3.76,'4885','52605',376,813);
INSERT INTO "communes" VALUES('25','Vaucluse','12',115,69,5.01,'4834','52509',416,704);
INSERT INTO "communes" VALUES('25','Bannans','20',320,316,11.56,'4337','52096',808,873);
INSERT INTO "communes" VALUES('25','Sancey-le-Long','08',360,367,7.02,'4740','52562',480,675);
INSERT INTO "communes" VALUES('25','Ouhans','15',370,333,15.85,'4397','52220',500,1040);
INSERT INTO "communes" VALUES('25','Mérey-Vieilley','13',103,100,3.42,'4140','52592',216,600);
INSERT INTO "communes" VALUES('25','Vergranne','04',110,98,5.18,'4504','52677',413,462);
INSERT INTO "communes" VALUES('25','Santoche','08',76,68,2.15,'4634','52671',275,385);
INSERT INTO "communes" VALUES('25','Pointvillers','22',134,90,3.81,'3961','52292',280,564);
INSERT INTO "communes" VALUES('25','Silley-Bléfond','04',76,59,4.34,'4433','52581',290,569);
INSERT INTO "communes" VALUES('25','Buffard','22',163,135,8.1,'3876','52263',236,450);
INSERT INTO "communes" VALUES('25','Pontets','17',115,84,6.36,'4261','51910',970,1237);
INSERT INTO "communes" VALUES('25','Villers-la-Combe','19',49,48,5.88,'4577','52484',617,823);
INSERT INTO "communes" VALUES('25','Provenchère','12',122,120,6.97,'4786','52544',560,841);
INSERT INTO "communes" VALUES('25','Damprichard','12',1769,1769,21.9,'5050','52494',780,1023);
INSERT INTO "communes" VALUES('25','Sochaux','31',4060,4495,2.17,'4994','52794',317,398);
INSERT INTO "communes" VALUES('25','Morre','06',1326,1154,5.27,'4143','52473',245,490);
INSERT INTO "communes" VALUES('25','Loray','19',495,404,14.39,'4621','52392',550,971);
INSERT INTO "communes" VALUES('25','Vercel-Villedieu-le-Camp','27',1479,1214,29.96,'4514','52427',549,828);
INSERT INTO "communes" VALUES('25','Villers-Grélot','24',154,117,7.02,'4322','52618',335,509);
INSERT INTO "communes" VALUES('25','Fleurey','26',97,69,8.04,'4936','52560',385,750);
INSERT INTO "communes" VALUES('25','Berthelange','02',267,210,4.07,'3825','52442',234,294);
INSERT INTO "communes" VALUES('25','Plains-et-Grands-Essarts','26',211,179,10.35,'5064','52560',626,933);
INSERT INTO "communes" VALUES('25','Mazerolles-le-Salin','02',201,171,4.2,'3925','52490',222,292);
INSERT INTO "communes" VALUES('25','Belfays','12',102,81,3.2,'5066','52510',795,980);
INSERT INTO "communes" VALUES('25','Dannemarie-sur-Crète','02',1326,938,4.06,'3921','52451',239,303);
INSERT INTO "communes" VALUES('25','Randevillers','08',106,113,4.36,'4650','52567',460,662);
INSERT INTO "communes" VALUES('25','Myon','22',184,201,16.06,'4005','52250',309,600);
INSERT INTO "communes" VALUES('25','Dampierre-les-Bois','34',1642,1543,4.72,'5084','52786',335,420);
INSERT INTO "communes" VALUES('25','Samson','22',83,68,1.95,'3936','52282',269,361);
INSERT INTO "communes" VALUES('25','Moncey','13',483,379,5,'4203','52625',219,446);
INSERT INTO "communes" VALUES('25','Trouvans','23',86,62,2.69,'4457','52692',297,470);
INSERT INTO "communes" VALUES('25','Tarcenay','18',939,628,13.09,'4195','52396',409,565);
INSERT INTO "communes" VALUES('25','Fuans','19',475,335,11.1,'4705','52367',688,1023);
INSERT INTO "communes" VALUES('25','Gennes','06',599,569,7.18,'4205','52494',383,563);
INSERT INTO "communes" VALUES('25','Vellevans','08',187,218,13.54,'4624','52567',392,733);
INSERT INTO "communes" VALUES('25','Thise','13',3191,3036,8.93,'4154','52536',244,422);
INSERT INTO "communes" VALUES('25','Nods','27',562,410,11.78,'4446','52330',677,950);
INSERT INTO "communes" VALUES('25','Écorces','12',641,502,9.51,'4958','52464',809,920);
INSERT INTO "communes" VALUES('25','Pelousey','02',1440,1215,6.18,'3983','52528',215,313);
INSERT INTO "communes" VALUES('25','Lougres','30',773,680,5.97,'4833','52746',297,440);
INSERT INTO "communes" VALUES('25','Corcelles-Ferrières','02',189,173,2.25,'3859','52475',217,270);
INSERT INTO "communes" VALUES('25','Courcelles','22',75,63,3.61,'4023','52327',280,416);
INSERT INTO "communes" VALUES('25','Chamesol','26',398,328,10.21,'4995','52608',400,835);
INSERT INTO "communes" VALUES('25','Montbéliardot','25',103,73,3.8,'4797','52417',760,941);
INSERT INTO "communes" VALUES('25','Bavans','30',3573,3913,8.83,'4882','52757',300,487);
INSERT INTO "communes" VALUES('25','Cubry','23',80,70,5.4,'4540','52770',266,453);
INSERT INTO "communes" VALUES('25','Bondeval','09',473,440,4.68,'5013','52716',378,560);
INSERT INTO "communes" VALUES('25','Brères','22',36,35,2.15,'3915','52288',254,298);
INSERT INTO "communes" VALUES('25','Cessey','22',348,289,7.53,'3975','52343',263,534);
INSERT INTO "communes" VALUES('25','Cussey-sur-Lison','22',61,60,5.66,'4021','52289',295,478);
INSERT INTO "communes" VALUES('25','Blussangeaux','10',76,76,2.12,'4753','52700',292,336);
INSERT INTO "communes" VALUES('25','Viéthorey','23',121,105,7.92,'4548','52695',384,494);
INSERT INTO "communes" VALUES('25','Breconchaux','24',91,68,3.26,'4367','52600',330,400);
INSERT INTO "communes" VALUES('25','Mouthier-Haute-Pierre','18',308,342,12.13,'4377','52265',370,867);
INSERT INTO "communes" VALUES('25','Échevannes','18',84,64,5.23,'4327','52305',550,747);
INSERT INTO "communes" VALUES('25','Ruffey-le-Château','02',327,275,7.25,'3846','52542',200,239);
INSERT INTO "communes" VALUES('25','Blamont','09',1113,1044,10.06,'5013','52651',403,603);
INSERT INTO "communes" VALUES('25','Chouzelot','22',289,261,6.41,'3952','52341',262,499);
INSERT INTO "communes" VALUES('25','Montferrand-le-Château','07',2195,1902,7.48,'3968','52426',223,371);
INSERT INTO "communes" VALUES('25','Germondans','13',65,63,3.52,'4282','52677',227,282);
INSERT INTO "communes" VALUES('25','Arc-et-Senans','22',1481,1366,14.98,'3824','52258',226,292);
INSERT INTO "communes" VALUES('25','Éternoz','01',341,294,29.26,'4103','52230',315,670);
INSERT INTO "communes" VALUES('25','Corcelle-Mieslot','13',108,83,6.42,'4278','52622',232,444);
INSERT INTO "communes" VALUES('25','Charmoille','12',303,297,10.14,'4816','52496',460,852);
INSERT INTO "communes" VALUES('25','Fesches-le-Châtel','34',2282,2163,3.46,'5078','52805',322,403);
INSERT INTO "communes" VALUES('25','Byans-sur-Doubs','07',566,560,9.91,'3910','52350',223,522);
INSERT INTO "communes" VALUES('25','Sourans','10',133,128,4.2,'4773','52676',341,558);
INSERT INTO "communes" VALUES('25','Quingey','22',1331,1046,8.55,'3940','52337',259,522);
INSERT INTO "communes" VALUES('25','Montécheroux','26',566,546,13.13,'4966','52611',420,830);
INSERT INTO "communes" VALUES('25','Audeux','02',437,331,1.75,'3926','52513',219,285);
INSERT INTO "communes" VALUES('25','Granges-Narboz','20',952,627,16.22,'4415','52088',808,1025);
INSERT INTO "communes" VALUES('25','Froidevaux','26',60,69,3.98,'4839','52556',666,820);
INSERT INTO "communes" VALUES('25','Chassagne-Saint-Denis','18',115,111,9.23,'4197','52315',420,583);
INSERT INTO "communes" VALUES('25','Charnay','22',452,430,5.66,'4021','52364',273,484);
INSERT INTO "communes" VALUES('25','Montandon','26',379,322,12.71,'5003','52560',520,880);
INSERT INTO "communes" VALUES('25','Amancey','01',655,616,13.78,'4150','52264',393,636);
INSERT INTO "communes" VALUES('25','Romain','23',101,99,4.85,'4486','52714',294,458);
INSERT INTO "communes" VALUES('25','Vuillafans','18',697,668,6.14,'4311','52295',339,721);
INSERT INTO "communes" VALUES('25','Marchaux','13',1117,938,10.06,'4218','52581',279,530);
INSERT INTO "communes" VALUES('25','Besançon','99',116914,117691,65.05,'4094','52491',235,610);
INSERT INTO "communes" VALUES('25','Fontenotte','04',57,45,5.65,'4429','52640',337,478);
INSERT INTO "communes" VALUES('25','Bretonvillers','25',217,240,13.66,'4778','52465',445,922);
INSERT INTO "communes" VALUES('25','Villars-lès-Blamont','09',445,392,6.95,'5040','52637',540,820);
INSERT INTO "communes" VALUES('25','Villers-sous-Chalamont','11',271,256,22.18,'4116','52117',658,901);
INSERT INTO "communes" VALUES('25','La Planée','20',241,200,13,'4384','52045',886,1112);
INSERT INTO "communes" VALUES('25','Fertans','01',255,217,8.19,'4141','52279',350,583);
INSERT INTO "communes" VALUES('25','Saint-Gorgon-Main','15',270,195,7.93,'4430','52248',650,1050);
INSERT INTO "communes" VALUES('25','Oye-et-Pallet','20',693,576,10.45,'4442','52059',841,1046);
INSERT INTO "communes" VALUES('25','Dammartin-les-Templiers','24',198,191,9.91,'4367','52545',369,570);
INSERT INTO "communes" VALUES('25','<NAME>','12',90,75,6.16,'4809','52534',670,843);
INSERT INTO "communes" VALUES('25','Bonnay','13',838,676,7.66,'4126','52593',216,600);
INSERT INTO "communes" VALUES('25','Hautepierre-le-Châtelet','27',89,80,9.61,'4391','52276',710,903);
INSERT INTO "communes" VALUES('25','Vorges-les-Pins','07',542,435,4.76,'3991','52397',240,480);
INSERT INTO "communes" VALUES('25','Gondenans-les-Moulins','23',74,58,3.93,'4494','52744',259,438);
INSERT INTO "communes" VALUES('25','Foucherans','18',444,330,10.95,'4222','52397',350,570);
INSERT INTO "communes" VALUES('25','Novillars','13',1544,1484,2.02,'4214','52540',244,335);
INSERT INTO "communes" VALUES('25','Grandfontaine','07',1415,1118,5.68,'3960','52442',224,295);
INSERT INTO "communes" VALUES('25','Rougemontot','13',86,72,4.25,'4362','52664',244,474);
INSERT INTO "communes" VALUES('25','Tressandans','23',34,30,2.34,'4442','52776',248,295);
INSERT INTO "communes" VALUES('25','Appenans','10',428,411,4.07,'4698','52714',284,400);
INSERT INTO "communes" VALUES('25','Fourgs','20',1211,1058,27.99,'4521','52038',899,1242);
INSERT INTO "communes" VALUES('25','Roset-Fluans','07',457,374,8.28,'3877','52404',214,357);
INSERT INTO "communes" VALUES('25','Rignosot','13',120,114,3.85,'4286','52654',235,327);
INSERT INTO "communes" VALUES('25','Pont-de-Roide','21',4468,4783,13.58,'4926','52650',344,817);
INSERT INTO "communes" VALUES('25','Deluz','24',633,692,8.03,'4294','52549',247,581);
INSERT INTO "communes" VALUES('25','Servin','04',188,163,10.03,'4585','52564',378,710);
INSERT INTO "communes" VALUES('25','Grangettes','20',264,182,5.38,'4416','52031',847,998);
INSERT INTO "communes" VALUES('25','Ollans','13',41,54,2.31,'4342','52686',234,297);
INSERT INTO "communes" VALUES('25','Goux-les-Usiers','11',699,542,17.63,'4379','52191',650,921);
INSERT INTO "communes" VALUES('25','Mancenans-Lizerne','12',185,152,6.09,'4935','52512',470,930);
INSERT INTO "communes" VALUES('25','Grandfontaine-sur-Creuse','19',84,74,5.9,'4575','52437',684,744);
INSERT INTO "communes" VALUES('25','<NAME>','15',424,376,16.94,'4551','52248',864,1113);
INSERT INTO "communes" VALUES('25','Burnevillers','26',45,42,6.74,'5190','52588',570,892);
INSERT INTO "communes" VALUES('25','Bolandoz','01',349,299,12.21,'4194','52243',590,910);
INSERT INTO "communes" VALUES('25','Courchapon','02',169,140,5.31,'3790','52515',198,332);
INSERT INTO "communes" VALUES('25','Villedieu','17',172,131,15.07,'4345','51920',907,1290);
INSERT INTO "communes" VALUES('25','Maisons-du-Bois-Lièvremont','15',599,494,15.79,'4537','52186',780,1073);
INSERT INTO "communes" VALUES('25','Boussières','07',1094,920,5.58,'3961','52397',220,452);
INSERT INTO "communes" VALUES('25','Longevilles-Mont-d''Or','17',429,369,13.25,'4422','51949',890,1463);
INSERT INTO "communes" VALUES('25','Sauvagney','02',159,165,3.95,'3964','52582',204,251);
INSERT INTO "communes" VALUES('25','Pirey','02',1958,1442,6.67,'4029','52513',260,370);
INSERT INTO "communes" VALUES('25','Rantechaux','27',184,186,5.71,'4487','52347',718,863);
INSERT INTO "communes" VALUES('25','Bremondans','27',79,80,7.22,'4512','52479',522,664);
INSERT INTO "communes" VALUES('25','Chazot','08',128,124,5.35,'4674','52585',428,641);
INSERT INTO "communes" VALUES('25','Châtillon-sur-Lison','22',12,16,2.89,'4051','52293',285,463);
INSERT INTO "communes" VALUES('25','Tournans','23',120,119,9.14,'4434','52682',305,457);
INSERT INTO "communes" VALUES('25','Moncley','02',330,282,7.92,'3950','52565',204,255);
INSERT INTO "communes" VALUES('25','L''Hôpital-du-Grosbois','18',554,376,7.84,'4311','52413',509,681);
INSERT INTO "communes" VALUES('25','Pugey','07',778,665,7.32,'4060','52427',335,485);
INSERT INTO "communes" VALUES('25','Ville-du-Pont','15',301,264,15.02,'4601','52226',758,1199);
INSERT INTO "communes" VALUES('25','Dasle','03',1419,1338,5.67,'5064','52753',360,461);
INSERT INTO "communes" VALUES('25','Lizine','01',92,87,7.33,'4064','52285',290,508);
INSERT INTO "communes" VALUES('25','Chay','22',193,141,6.54,'3916','52261',245,502);
INSERT INTO "communes" VALUES('25','Saules','18',228,189,7.64,'4291','52359',369,607);
INSERT INTO "communes" VALUES('25','Gras','16',745,654,14.99,'4675','52216',782,1290);
INSERT INTO "communes" VALUES('25','Saint-Juan','04',182,160,12.09,'4466','52543',348,607);
INSERT INTO "communes" VALUES('25','Chaux-lès-Clerval','08',195,188,8.57,'4635','52648',272,650);
INSERT INTO "communes" VALUES('25','Combes','16',725,598,17.58,'4675','52288',754,1029);
INSERT INTO "communes" VALUES('25','Chaux-Neuve','17',261,222,28.31,'4221','51865',980,1384);
INSERT INTO "communes" VALUES('25','Mouthe','17',968,892,38.73,'4286','51901',926,1414);
INSERT INTO "communes" VALUES('25','Évillers','11',317,283,13.02,'4321','52222',690,933);
INSERT INTO "communes" VALUES('26','Mérindol-les-Oliviers','03',205,201,9.23,'3146','49193',266,782);
INSERT INTO "communes" VALUES('26','Saint-Bonnet-de-Valclérieux','35',216,202,8.29,'3118','50217',357,532);
INSERT INTO "communes" VALUES('26','Saint-Nazaire-le-Désert','17',141,183,46.62,'3266','49522',527,1447);
INSERT INTO "communes" VALUES('26','Granges-Gontardes','19',542,563,7.26,'2696','49351',60,175);
INSERT INTO "communes" VALUES('26','<NAME>','11',834,734,24.74,'3074','50300',329,519);
INSERT INTO "communes" VALUES('26','Montjoyer','12',267,222,18.02,'2795','49418',200,472);
INSERT INTO "communes" VALUES('26','<NAME>','22',21,16,12.17,'3200','49591',589,1560);
INSERT INTO "communes" VALUES('26','Montbrison-sur-Lez','12',309,308,12.83,'2981','49374',249,744);
INSERT INTO "communes" VALUES('26','Orcinas','10',30,28,5.27,'3110','49502',456,802);
INSERT INTO "communes" VALUES('26','Poyols','14',76,65,13.35,'3426','49555',549,1440);
INSERT INTO "communes" VALUES('26','Barret-de-Lioure','27',75,47,34.64,'3508','49096',708,1440);
INSERT INTO "communes" VALUES('26','Rochefourchat','17',1,1,12.74,'3234','49554',600,1513);
INSERT INTO "communes" VALUES('26','<NAME>','17',395,394,22.83,'3381','49428',517,1424);
INSERT INTO "communes" VALUES('26','Saint-Gervais-sur-Roubion','15',825,715,14.57,'2838','49537',144,233);
INSERT INTO "communes" VALUES('26','Bouvières','01',150,159,25.05,'3199','49462',540,1577);
INSERT INTO "communes" VALUES('26','Peyrus','04',632,488,10.48,'3080','49903',338,1101);
INSERT INTO "communes" VALUES('26','Montferrand-la-Fare','20',43,46,11.24,'3459','49289',546,1392);
INSERT INTO "communes" VALUES('26','Montségur-sur-Lauzon','25',1181,1030,18.24,'2803','49289',112,297);
INSERT INTO "communes" VALUES('26','Roussieux','20',23,22,9.42,'3485','49259',580,1357);
INSERT INTO "communes" VALUES('26','Bellecombe-Tarendol','03',96,75,13.48,'3352','49280',474,1312);
INSERT INTO "communes" VALUES('26','Saint-Paul-lès-Romans','35',1760,1502,15.77,'3107','50075',140,200);
INSERT INTO "communes" VALUES('26','Propiac','03',107,78,11.15,'3180','49198',297,782);
INSERT INTO "communes" VALUES('26','Cornillac','20',85,81,19.44,'3388','49381',471,1455);
INSERT INTO "communes" VALUES('26','Glandage','06',97,84,52.11,'3624','49653',717,2045);
INSERT INTO "communes" VALUES('26','<NAME>-de-Transit','25',838,744,12.05,'2810','49265',97,169);
INSERT INTO "communes" VALUES('26','Laveyron','26',977,882,5.32,'2759','50234',128,364);
INSERT INTO "communes" VALUES('26','Buis-les-Baronnies','03',2271,2222,33.74,'3264','49195',319,1080);
INSERT INTO "communes" VALUES('26','Fay-le-Clos','26',153,169,4.56,'2855','50237',231,373);
INSERT INTO "communes" VALUES('26','Montaulieu','18',74,65,13.05,'3208','49286',310,978);
INSERT INTO "communes" VALUES('26','Pennes-le-Sec','14',23,20,9.31,'3313','49598',421,1339);
INSERT INTO "communes" VALUES('26','Montauban-sur-l''Ouvèze','27',104,85,32.29,'3517','49194',665,1532);
INSERT INTO "communes" VALUES('26','Saint-Vincent-la-Commanderie','02',413,391,13.34,'3091','49932',326,1108);
INSERT INTO "communes" VALUES('26','Montfroc','27',80,57,14.76,'3669','49083',732,1533);
INSERT INTO "communes" VALUES('26','Chatuzange-le-Goubet','02',4733,3976,28.24,'3060','50008',150,327);
INSERT INTO "communes" VALUES('26','Saint-Bardoux','21',582,541,10.63,'2929','50095',159,310);
INSERT INTO "communes" VALUES('26','Veaunes','28',287,220,4.19,'2870','50093',169,278);
INSERT INTO "communes" VALUES('26','Chantemerle-les-Blés','28',1114,880,15.39,'2845','50123',171,339);
INSERT INTO "communes" VALUES('26','Bren','23',536,471,11.03,'2902','50150',217,403);
INSERT INTO "communes" VALUES('26','Roynac','15',458,415,17.06,'2892','49603',159,497);
INSERT INTO "communes" VALUES('26','Nyons','18',6950,6731,23.45,'3115','49290',234,940);
INSERT INTO "communes" VALUES('26','Romans-sur-Isère','97',33536,32697,33.08,'3016','50051',122,291);
INSERT INTO "communes" VALUES('26','<NAME>','24',165,139,4.78,'3256','50056',161,448);
INSERT INTO "communes" VALUES('26','Chabrillan','08',666,605,17.75,'2894','49693',149,352);
INSERT INTO "communes" VALUES('26','Aurel','22',238,205,26.26,'3291','49662',289,1247);
INSERT INTO "communes" VALUES('26','Ponsas','26',477,454,2.71,'2778','50177',132,340);
INSERT INTO "communes" VALUES('26','Sainte-Eulalie-en-Royans','24',549,507,6.14,'3339','50053',178,1053);
INSERT INTO "communes" VALUES('26','Montrigaud','11',490,446,28.73,'3105','50243',359,582);
INSERT INTO "communes" VALUES('26','Montéléger','34',1836,1526,9.45,'2885','49837',129,222);
INSERT INTO "communes" VALUES('26','<NAME>','04',49,38,11.58,'3162','49874',674,1360);
INSERT INTO "communes" VALUES('26','<NAME>','28',3167,2739,12.79,'2790','50013',103,147);
INSERT INTO "communes" VALUES('26','Saint-Vallier','26',4008,4155,5.42,'2754','50198',131,364);
INSERT INTO "communes" VALUES('26','<NAME>','10',1519,1206,23.62,'2888','49494',158,481);
INSERT INTO "communes" VALUES('26','Montréal-les-Sources','20',32,22,10.26,'3293','49335',427,1301);
INSERT INTO "communes" VALUES('26','Montjoux','10',322,296,18.35,'3087','49441',421,1316);
INSERT INTO "communes" VALUES('26','Salles-sous-Bois','12',193,190,9.5,'2887','49391',215,507);
INSERT INTO "communes" VALUES('26','Valaurie','12',528,509,12.3,'2752','49358',80,290);
INSERT INTO "communes" VALUES('26','La Coucourde','15',978,749,11.15,'2719','49612',71,395);
INSERT INTO "communes" VALUES('26','Chavannes','23',528,431,4.67,'2878','50117',176,238);
INSERT INTO "communes" VALUES('26','Saulce-sur-Rhône','13',1768,1609,18.43,'2736','49671',76,161);
INSERT INTO "communes" VALUES('26','<NAME>','12',395,372,11.12,'3015','49366',348,1323);
INSERT INTO "communes" VALUES('26','Valence','98',63405,64222,36.69,'2838','49925',106,191);
INSERT INTO "communes" VALUES('26','Crest','99',7915,7740,23.38,'2984','49698',166,463);
INSERT INTO "communes" VALUES('26','Eygaliers','03',107,103,8,'3270','49155',354,1160);
INSERT INTO "communes" VALUES('26','Aubenasson','22',68,30,6.69,'3114','49650',224,1127);
INSERT INTO "communes" VALUES('26','Saint-Maurice-sur-Eygues','18',661,543,8.82,'2971','49220',163,387);
INSERT INTO "communes" VALUES('26','Eygluy-Escoulin','22',64,59,26.53,'3176','49766',350,1342);
INSERT INTO "communes" VALUES('26','Ferrassières','27',118,113,29.27,'3491','49039',830,1389);
INSERT INTO "communes" VALUES('26','Châteauneuf-sur-Isère','02',3807,3285,45.57,'2887','50015',111,237);
INSERT INTO "communes" VALUES('26','Saint-Julien-en-Quint','09',137,143,47.35,'3284','49820',498,1692);
INSERT INTO "communes" VALUES('26','Cornillon-sur-l''Oule','20',74,65,14.55,'3368','49398',470,1223);
INSERT INTO "communes" VALUES('26','Ambonil','13',119,100,1.23,'2857','49772',134,159);
INSERT INTO "communes" VALUES('26','Pelonne','20',18,23,2.77,'3395','49314',478,1217);
INSERT INTO "communes" VALUES('26','Saint-Agnan-en-Vercors','05',378,401,84.21,'3438','49928',727,1734);
INSERT INTO "communes" VALUES('26','Châtillon-en-Diois','06',563,523,28.02,'3497','49661',514,2038);
INSERT INTO "communes" VALUES('26','Espeluche','33',1050,752,11.33,'2763','49462',106,425);
INSERT INTO "communes" VALUES('26','Die','09',4357,4452,57.28,'3371','49726',367,1841);
INSERT INTO "communes" VALUES('26','Establet','17',28,21,12.58,'3446','49451',632,1400);
INSERT INTO "communes" VALUES('26','Livron-sur-Drôme','13',8972,7761,39.52,'2785','49748',88,255);
INSERT INTO "communes" VALUES('26','Grane','08',1746,1571,44.84,'2872','49701',113,505);
INSERT INTO "communes" VALUES('26','Villebois-les-Pins','27',19,20,10.81,'3637','49241',792,1415);
INSERT INTO "communes" VALUES('26','Eyroles','18',27,17,8.75,'3211','49352',380,805);
INSERT INTO "communes" VALUES('26','Saou','08',515,415,41.6,'3028','49607',288,1567);
INSERT INTO "communes" VALUES('26','Anneyron','26',3859,3316,36.23,'2835','50301',165,372);
INSERT INTO "communes" VALUES('26','Sainte-Jalle','18',277,269,18.16,'3275','49272',376,1025);
INSERT INTO "communes" VALUES('26','Mirabel-aux-Baronnies','18',1537,1328,22.56,'3069','49234',206,791);
INSERT INTO "communes" VALUES('26','Roussas','12',345,345,16.07,'2739','49367',83,390);
INSERT INTO "communes" VALUES('26','Bénivay-Ollon','03',67,57,9.03,'3171','49220',374,854);
INSERT INTO "communes" VALUES('26','Montboucher-sur-Jabron','33',2083,1423,9.8,'2747','49505',96,170);
INSERT INTO "communes" VALUES('26','<NAME>','08',237,232,15.03,'2944','49622',239,534);
INSERT INTO "communes" VALUES('26','<NAME>','14',8,10,12.12,'3669','49460',872,1640);
INSERT INTO "communes" VALUES('26','Prés','14',22,27,16.6,'3603','49475',701,1525);
INSERT INTO "communes" VALUES('26','Montélimar','96',35314,31349,46.81,'2682','49510',56,213);
INSERT INTO "communes" VALUES('26','Chauvac-Laux-Montaux','20',43,37,24.24,'3543','49246',632,1446);
INSERT INTO "communes" VALUES('26','Volvent','17',42,26,16.73,'3342','49511',720,1600);
INSERT INTO "communes" VALUES('26','Dieulefit','10',3004,3092,27.42,'3032','49470',323,969);
INSERT INTO "communes" VALUES('26','Épinouze','11',1450,1097,11.21,'2879','50344',191,248);
INSERT INTO "communes" VALUES('26','Taulignan','12',1580,1571,34.65,'2938','49382',203,760);
INSERT INTO "communes" VALUES('26','Valouse','18',42,36,6.33,'3173','49403',512,1320);
INSERT INTO "communes" VALUES('26','Pommerol','20',17,21,9.83,'3462','49385',717,1563);
INSERT INTO "communes" VALUES('26','Eymeux','02',1003,573,9.88,'3157','50087',140,214);
INSERT INTO "communes" VALUES('26','<NAME>-Galaure','26',772,543,7.73,'2854','50219',184,363);
INSERT INTO "communes" VALUES('26','<NAME>','20',30,48,9.43,'3460','49412',584,1327);
INSERT INTO "communes" VALUES('26','Beaurières','14',85,65,24.58,'3581','49524',641,1440);
INSERT INTO "communes" VALUES('26','Francillon-sur-Roubion','08',178,140,10.8,'3055','49582',287,651);
INSERT INTO "communes" VALUES('26','Chalancon','17',63,56,36,'3345','49455',591,1522);
INSERT INTO "communes" VALUES('26','Lens-Lestang','11',825,667,16.41,'3006','50324',237,448);
INSERT INTO "communes" VALUES('26','Tain-l''Hermitage','28',5853,5502,4.85,'2784','50079',115,280);
INSERT INTO "communes" VALUES('26','Charpey','02',1276,908,15.48,'3062','49932',209,408);
INSERT INTO "communes" VALUES('26','Saint-Marcel-lès-Sauzet','15',1147,1107,3.98,'2743','49551',104,290);
INSERT INTO "communes" VALUES('26','Sainte-Croix','09',82,90,10.78,'3274','49742',333,1014);
INSERT INTO "communes" VALUES('26','Félines-sur-Rimandoule','01',70,71,8.46,'3018','49538',346,969);
INSERT INTO "communes" VALUES('26','Barnave','14',166,155,13.06,'3370','49622',474,1339);
INSERT INTO "communes" VALUES('26','Aubres','18',424,350,20.27,'3146','49308',270,1217);
INSERT INTO "communes" VALUES('26','Bouchet','25',1204,694,11.89,'2818','49221',85,135);
INSERT INTO "communes" VALUES('26','Margès','23',925,729,9.79,'2999','50163',216,344);
INSERT INTO "communes" VALUES('26','Saint-Sauveur-en-Diois','22',63,52,6.95,'3133','49645',237,1240);
INSERT INTO "communes" VALUES('26','Saint-Restitut','25',1390,1243,14.48,'2726','49257',72,304);
INSERT INTO "communes" VALUES('26','Eygalayes','27',69,76,17.97,'3635','49155',722,1484);
INSERT INTO "communes" VALUES('26','Bésayes','02',1103,911,9.53,'3047','49961',208,408);
INSERT INTO "communes" VALUES('26','<NAME>-Laval','10',944,813,31.22,'2969','49478',255,973);
INSERT INTO "communes" VALUES('26','Chamaloc','09',120,101,21.89,'3386','49776',471,1654);
INSERT INTO "communes" VALUES('26','Montvendre','04',1054,856,17.24,'2984','49857',157,646);
INSERT INTO "communes" VALUES('26','Vinsobres','18',1116,1089,35.42,'3027','49260',184,520);
INSERT INTO "communes" VALUES('26','Miribel','35',263,200,6.55,'3082','50221',326,511);
INSERT INTO "communes" VALUES('26','Saint-Rambert-d''Albon','26',5961,4297,13.41,'2756','50326',135,186);
INSERT INTO "communes" VALUES('26','Teyssières','10',81,64,28.09,'3121','49402',498,1325);
INSERT INTO "communes" VALUES('26','Laval-d''Aix','09',121,91,20.05,'3439','49682',433,2038);
INSERT INTO "communes" VALUES('26','Tulette','25',1931,1707,23.53,'2883','49207',109,222);
INSERT INTO "communes" VALUES('26','Mévouillon','27',214,204,29.09,'3475','49157',780,1440);
INSERT INTO "communes" VALUES('26','Saint-Auban-sur-l''Ouvèze','03',220,188,16.55,'3422','49209',564,1352);
INSERT INTO "communes" VALUES('26','Cobonne','07',165,130,11.2,'3042','49733',231,750);
INSERT INTO "communes" VALUES('26','Villefranche-le-Château','27',22,21,7.42,'3540','49135',783,1364);
INSERT INTO "communes" VALUES('26','Montguers','27',57,55,11.06,'3469','49208',639,1217);
INSERT INTO "communes" VALUES('26','Luc-en-Diois','14',499,497,23.49,'3462','49572',501,1245);
INSERT INTO "communes" VALUES('26','Menglon','06',411,354,36.47,'3473','49627',487,1501);
INSERT INTO "communes" VALUES('26','Crupies','01',91,89,13.16,'3151','49504',429,1088);
INSERT INTO "communes" VALUES('26','Bésignan','03',65,69,8.94,'3321','49245',437,963);
INSERT INTO "communes" VALUES('26','Val-Maravel','14',40,43,21.6,'3592','49546',776,1690);
INSERT INTO "communes" VALUES('26','Aucelon','14',23,39,26.34,'3342','49582',435,1485);
INSERT INTO "communes" VALUES('26','Portes-en-Valdaine','33',382,335,15.04,'2861','49477',157,470);
INSERT INTO "communes" VALUES('26','<NAME>','15',691,583,9.68,'2788','49567',116,510);
INSERT INTO "communes" VALUES('26','Mornans','01',70,53,11.72,'3098','49578',339,1307);
INSERT INTO "communes" VALUES('26','Venterol','18',662,628,31.69,'3070','49321',298,1165);
INSERT INTO "communes" VALUES('26','Aleyrac','10',51,48,6.65,'2891','49443',318,571);
INSERT INTO "communes" VALUES('26','Combovin','04',409,361,35.86,'3046','49860',336,1148);
INSERT INTO "communes" VALUES('26','Vesc','10',284,276,40.48,'3127','49469',477,1448);
INSERT INTO "communes" VALUES('26','Gumiane','17',24,33,8.92,'3266','49456',632,1600);
INSERT INTO "communes" VALUES('26','Larnage','28',993,770,9.08,'2808','50108',135,360);
INSERT INTO "communes" VALUES('26','Charols','15',781,501,7.31,'2905','49548',184,290);
INSERT INTO "communes" VALUES('26','Villeperdrix','20',105,110,26.15,'3279','49380',365,1480);
INSERT INTO "communes" VALUES('26','Sauzet','15',1836,1668,19.19,'2758','49558',92,430);
INSERT INTO "communes" VALUES('26','Salettes','10',125,93,6.98,'2922','49519',207,664);
INSERT INTO "communes" VALUES('26','Saint-Marcel-lès-Valence','32',5293,4111,15.05,'2911','49968',137,201);
INSERT INTO "communes" VALUES('26','Saint-Martin-en-Vercors','05',396,294,27.13,'3452','50025',600,1575);
INSERT INTO "communes" VALUES('26','Bourdeaux','01',621,562,23.11,'3109','49540',377,1410);
INSERT INTO "communes" VALUES('26','<NAME>-sur-le-Buis','03',336,287,27.72,'3306','49197',394,1369);
INSERT INTO "communes" VALUES('26','Beauregard-Baret','02',792,543,23.44,'3127','50017',141,1292);
INSERT INTO "communes" VALUES('26','Reilhanette','27',145,120,14.78,'3426','49077',512,1313);
INSERT INTO "communes" VALUES('26','Montmeyran','04',2859,2680,24.1,'2931','49814',148,309);
INSERT INTO "communes" VALUES('26','Brette','17',33,32,15.5,'3305','49542',514,1605);
INSERT INTO "communes" VALUES('26','Soyans','08',338,299,25.64,'2988','49597',255,878);
INSERT INTO "communes" VALUES('26','Beauvallon','34',1595,1686,3.12,'2855','49841',120,200);
INSERT INTO "communes" VALUES('26','Vers-sur-Méouge','27',41,52,13.81,'3593','49146',749,1395);
INSERT INTO "communes" VALUES('26','Miscon','14',58,47,12.66,'3542','49587',688,1440);
INSERT INTO "communes" VALUES('26','Barsac','09',159,140,15.58,'3283','49701',305,1207);
INSERT INTO "communes" VALUES('26','Pilles','18',254,226,5.84,'3171','49310',288,920);
INSERT INTO "communes" VALUES('26','Ourches','07',233,215,9.23,'3005','49783',240,1000);
INSERT INTO "communes" VALUES('26','Condillac','15',147,133,9.57,'2751','49597',150,576);
INSERT INTO "communes" VALUES('26','Romeyer','09',213,154,41.46,'3414','49755',478,2000);
INSERT INTO "communes" VALUES('26','Réauville','12',377,334,18.22,'2786','49383',117,372);
INSERT INTO "communes" VALUES('26','Rimon-et-Savel','22',32,29,12.31,'3301','49626',360,1339);
INSERT INTO "communes" VALUES('26','Saint-May','20',43,40,10.23,'3313','49363',382,1173);
INSERT INTO "communes" VALUES('26','Serves-sur-Rhône','28',749,597,6.49,'2757','50154',117,374);
INSERT INTO "communes" VALUES('26','Saint-Julien-en-Vercors','05',226,194,18.47,'3459','50056',412,1605);
INSERT INTO "communes" VALUES('26','Albon','26',1727,1581,25.62,'2791','50273',134,365);
INSERT INTO "communes" VALUES('26','Pradelle','17',20,26,12.92,'3284','49565',409,1209);
INSERT INTO "communes" VALUES('26','Vachères-en-Quint','09',28,34,5.14,'3248','49766',422,926);
INSERT INTO "communes" VALUES('26','Curnier','18',197,186,8,'3220','49317',313,742);
INSERT INTO "communes" VALUES('26','Cliousclat','13',636,642,9.65,'2777','49684',125,473);
INSERT INTO "communes" VALUES('26','Molières-Glandaz','09',118,113,2.87,'3403','49696',420,1040);
INSERT INTO "communes" VALUES('26','Lus-la-Croix-Haute','06',517,439,87.2,'3743','49628',971,2454);
INSERT INTO "communes" VALUES('26','Plan-de-Baix','07',131,134,19.39,'3143','49792',349,1093);
INSERT INTO "communes" VALUES('26','Rochefort-en-Valdaine','33',344,304,12.8,'2804','49462',165,446);
INSERT INTO "communes" VALUES('26','Clansayes','25',544,441,14.47,'2745','49301',87,348);
INSERT INTO "communes" VALUES('26','Ancône','16',1114,947,1.59,'2657','49535',58,76);
INSERT INTO "communes" VALUES('26','Upie','04',1466,1095,19.53,'2936','49783',158,415);
INSERT INTO "communes" VALUES('26','Chamaret','12',548,493,7.79,'2829','49329',135,264);
INSERT INTO "communes" VALUES('26','Châtillon-Saint-Jean','35',1178,888,8.82,'3105','50098',192,343);
INSERT INTO "communes" VALUES('26','Saint-Dizier-en-Diois','17',34,25,13.94,'3490','49460',878,1480);
INSERT INTO "communes" VALUES('26','Claveyson','26',894,701,16.13,'2881','50201',197,438);
INSERT INTO "communes" VALUES('26','Étoile-sur-Rhône','34',4731,4052,42.79,'2841','49819',93,241);
INSERT INTO "communes" VALUES('26','Parnans','35',672,477,11.24,'3122','50123',211,406);
INSERT INTO "communes" VALUES('26','Saint-Christophe-et-le-Laris','11',402,289,11.35,'3039','50233',320,502);
INSERT INTO "communes" VALUES('26','Ponet-et-Saint-Auban','09',129,89,13.21,'3311','49764',353,1041);
INSERT INTO "communes" VALUES('26','Omblèze','07',68,67,44.92,'3203','49848',388,1581);
INSERT INTO "communes" VALUES('26','Tonils','01',15,20,13,'3180','49535',497,1513);
INSERT INTO "communes" VALUES('26','Saint-Barthélemy-de-Vals','26',1891,1623,20.27,'2817','50188',138,355);
INSERT INTO "communes" VALUES('26','Bonlieu-sur-Roubion','15',372,377,6.05,'2828','49549',130,212);
INSERT INTO "communes" VALUES('26','Savasse','15',1306,1093,22.01,'2710','49557',69,420);
INSERT INTO "communes" VALUES('26','Bellegarde-en-Diois','17',75,63,26.04,'3434','49487',797,1406);
INSERT INTO "communes" VALUES('26','Saint-Donat-sur-l''Herbasse','23',3854,3122,19.52,'2940','50137',176,411);
INSERT INTO "communes" VALUES('26','Rochebaudin','10',124,111,7.56,'2996','49534',250,972);
INSERT INTO "communes" VALUES('26','Tourrettes','15',964,761,7.34,'2725','49624',73,380);
INSERT INTO "communes" VALUES('26','Bézaudun-sur-Bîne','01',87,55,17.97,'3143','49551',439,1532);
INSERT INTO "communes" VALUES('26','Montmaur-en-Diois','09',79,79,12.8,'3381','49640',459,1274);
INSERT INTO "communes" VALUES('26','Colonzelle','12',478,430,6.06,'2849','49325',132,204);
INSERT INTO "communes" VALUES('26','Vercheny','22',434,387,11.19,'3237','49679',280,1109);
INSERT INTO "communes" VALUES('26','Mureils','26',376,307,5.45,'2882','50232',214,378);
INSERT INTO "communes" VALUES('26','Puygiron','33',447,347,6.68,'2791','49491',114,292);
INSERT INTO "communes" VALUES('26','Gervans','28',556,432,3.28,'2772','50120',109,350);
INSERT INTO "communes" VALUES('26','Chastel-Arnaud','22',47,36,12.65,'3196','49625',352,1539);
INSERT INTO "communes" VALUES('26','Tersanne','11',327,190,9.49,'2978','50251',271,494);
INSERT INTO "communes" VALUES('26','Saint-Laurent-en-Royans','24',1324,1218,27.39,'3322','50031',171,1400);
INSERT INTO "communes" VALUES('26','Hauterives','11',1680,1332,30.51,'2989','50284',269,506);
INSERT INTO "communes" VALUES('26','Treschenu-Creyers','06',134,108,82.04,'3575','49708',584,1968);
INSERT INTO "communes" VALUES('26','Pont-de-l''Isère','28',2871,2684,10.09,'2811','50005',110,146);
INSERT INTO "communes" VALUES('26','Rioms','03',26,22,9.39,'3470','49193',630,1304);
INSERT INTO "communes" VALUES('26','Bourg-lès-Valence','32',18623,18335,20.3,'2843','49942',99,200);
INSERT INTO "communes" VALUES('26','Beaufort-sur-Gervanne','07',417,312,9.48,'3118','49753',280,836);
INSERT INTO "communes" VALUES('26','Allex','07',2495,2008,20.17,'2867','49738',124,220);
INSERT INTO "communes" VALUES('26','Chantemerle-lès-Grignan','12',223,177,9.82,'2777','49337',99,351);
INSERT INTO "communes" VALUES('26','Barcelonne','04',359,371,8.28,'3015','49854',233,617);
INSERT INTO "communes" VALUES('26','Montclar-sur-Gervanne','07',184,158,29.63,'3119','49719',239,836);
INSERT INTO "communes" VALUES('26','Lemps','20',44,44,16.04,'3425','49279',536,1392);
INSERT INTO "communes" VALUES('26','Chanos-Curson','28',1095,942,8.18,'2863','50069',142,273);
INSERT INTO "communes" VALUES('26','Saint-Benoit-en-Diois','22',27,31,11.17,'3262','49625',306,1198);
INSERT INTO "communes" VALUES('26','Peyrins','21',2424,2308,25.16,'3012','50103',175,434);
INSERT INTO "communes" VALUES('26','Rochebrune','03',52,45,16.15,'3232','49263',440,1189);
INSERT INTO "communes" VALUES('26','Moras-en-Valloire','11',612,601,8.58,'2952','50322',217,420);
INSERT INTO "communes" VALUES('26','Autichamp','08',139,120,6.25,'2921','49646',245,485);
INSERT INTO "communes" VALUES('26','Triors','35',563,479,5.65,'3088','50108',191,323);
INSERT INTO "communes" VALUES('26','<NAME>','03',19,17,6.07,'3395','49172',791,1340);
INSERT INTO "communes" VALUES('26','Châteaudouble','04',556,476,17.37,'3065','49888',270,1102);
INSERT INTO "communes" VALUES('26','Montélier','04',3528,3118,24.76,'2994','49931',164,293);
INSERT INTO "communes" VALUES('26','Loriol-sur-Drôme','13',5821,5690,28.66,'2762','49724',81,365);
INSERT INTO "communes" VALUES('26','Saint-Paul-Trois-Châteaux','25',8691,7271,22.04,'2702','49277',49,290);
INSERT INTO "communes" VALUES('26','Charens','14',25,33,13.47,'3526','49487',644,1551);
INSERT INTO "communes" VALUES('26','Sahune','20',326,292,16.55,'3256','49350',331,1000);
INSERT INTO "communes" VALUES('26','Portes-lès-Valence','34',9462,8087,14.43,'2822','49859',106,183);
INSERT INTO "communes" VALUES('26','Verclause','20',71,84,26.14,'3435','49312',474,1360);
INSERT INTO "communes" VALUES('26','Manas','15',183,134,1.91,'2942','49555',204,370);
INSERT INTO "communes" VALUES('26','<NAME>','19',1118,1075,27.73,'2686','49325',54,232);
INSERT INTO "communes" VALUES('26','Geyssans','21',620,469,10.9,'3063','50135',242,475);
INSERT INTO "communes" VALUES('26','Suze-la-Rousse','25',1905,1561,30.6,'2784','49209',65,141);
INSERT INTO "communes" VALUES('26','Arnayon','17',32,35,19.45,'3312','49432',588,1540);
INSERT INTO "communes" VALUES('26','Léoncel','24',57,55,43.01,'3173','49901',438,1447);
INSERT INTO "communes" VALUES('26','Marsaz','23',716,504,8.95,'2896','50130',184,293);
INSERT INTO "communes" VALUES('26','<NAME>','01',127,145,8.34,'3074','49558',351,744);
INSERT INTO "communes" VALUES('26','Alixan','02',2408,2079,28.28,'2990','49972',163,224);
INSERT INTO "communes" VALUES('26','Grignan','12',1607,1378,43.43,'2857','49355',130,471);
INSERT INTO "communes" VALUES('26','Beaumont-Monteux','28',1103,936,13.37,'2871','50022',108,160);
INSERT INTO "communes" VALUES('26','Vercoiran','03',121,115,19.95,'3344','49223',465,1302);
INSERT INTO "communes" VALUES('26','Saint-Laurent-d''Onay','35',138,107,6.28,'3072','50203',317,507);
INSERT INTO "communes" VALUES('26','Hostun','02',956,757,18.24,'3179','50044',196,1133);
INSERT INTO "communes" VALUES('26','Montoison','07',1734,1469,16.11,'2893','49775',129,261);
INSERT INTO "communes" VALUES('26','Beaumont-lès-Valence','34',3796,3676,17.61,'2896','49847',135,221);
INSERT INTO "communes" VALUES('26','Roche-Saint-Secret-Béconne','10',363,372,33.23,'2991','49419',282,1232);
INSERT INTO "communes" VALUES('26','Aix-en-Diois','09',357,255,16.49,'3405','49678',433,1259);
INSERT INTO "communes" VALUES('26','Oriol-en-Royans','24',533,377,16.01,'3264','49998',238,1222);
INSERT INTO "communes" VALUES('26','Piégros-la-Clastre','08',845,754,24.76,'3068','49666',198,962);
INSERT INTO "communes" VALUES('26','Rochechinard','24',100,113,9.78,'3241','50038',235,1246);
INSERT INTO "communes" VALUES('26','Saint-Uze','26',1949,1592,10.1,'2805','50205',148,357);
INSERT INTO "communes" VALUES('26','Saint-Ferréol-Trente-Pas','18',223,214,21.48,'3201','49363',380,1131);
INSERT INTO "communes" VALUES('26','Mirmande','13',497,502,26.45,'2776','49665',87,584);
INSERT INTO "communes" VALUES('26','Marignac-en-Diois','09',175,136,18.26,'3330','49780',531,1641);
INSERT INTO "communes" VALUES('26','Chaudebonne','18',57,55,20.77,'3202','49419',542,1600);
INSERT INTO "communes" VALUES('26','Ratières','26',273,255,9.01,'2924','50202',232,449);
INSERT INTO "communes" VALUES('26','Rémuzat','20',329,284,16.78,'3355','49349',425,1201);
INSERT INTO "communes" VALUES('26','Saint-Martin-d''Août','26',401,296,7.67,'2942','50242',250,423);
INSERT INTO "communes" VALUES('26','Lapeyrouse-Mornay','11',1127,805,11.45,'2954','50359',220,272);
INSERT INTO "communes" VALUES('26','Divajeu','08',608,544,13.25,'2965','49672',163,467);
INSERT INTO "communes" VALUES('26','Saint-Jean-en-Royans','24',2979,2894,27.86,'3284','50021',196,1292);
INSERT INTO "communes" VALUES('26','Bouvante','24',243,222,83.88,'3260','49961',311,1701);
INSERT INTO "communes" VALUES('26','Jaillans','02',871,597,9.04,'3153','50031',159,395);
INSERT INTO "communes" VALUES('26','Châteauneuf-de-Galaure','26',1572,1275,18.08,'2911','50258',222,393);
INSERT INTO "communes" VALUES('26','Gigors-et-Lozeron','07',168,157,35.27,'3079','49771',352,1148);
INSERT INTO "communes" VALUES('26','Malissard','04',3224,2903,10.17,'2911','49890',145,176);
INSERT INTO "communes" VALUES('26','Aouste-sur-Sye','07',2347,1989,17.98,'3023','49684',186,841);
INSERT INTO "communes" VALUES('26','Crozes-Hermitage','28',557,418,5.48,'2788','50100',116,367);
INSERT INTO "communes" VALUES('26','Sainte-Euphémie-sur-Ouvèze','03',86,71,11.28,'3381','49223',528,1218);
INSERT INTO "communes" VALUES('26','Crépol','35',521,470,11.42,'3038','50194',260,491);
INSERT INTO "communes" VALUES('26','Solérieux','25',327,211,8.55,'2773','49276',95,275);
INSERT INTO "communes" VALUES('26','Génissieux','35',1992,1828,8.93,'3053','50093',177,303);
INSERT INTO "communes" VALUES('26','Clérieux','21',2040,1832,13.53,'2914','50087',141,245);
INSERT INTO "communes" VALUES('26','Donzère','19',5343,4378,32.06,'2637','49382',54,200);
INSERT INTO "communes" VALUES('26','Boulc','06',128,101,57.35,'3589','49609',623,1854);
INSERT INTO "communes" VALUES('26','Séderon','27',290,286,20.3,'3556','49116',751,1484);
INSERT INTO "communes" VALUES('26','Beaumont-en-Diois','14',79,74,17.65,'3488','49523',637,1408);
INSERT INTO "communes" VALUES('26','Condorcet','18',484,446,22.44,'3182','49342',301,1217);
INSERT INTO "communes" VALUES('26','Châteauneuf-du-Rhône','33',2380,2220,27.27,'2644','49429',55,335);
INSERT INTO "communes" VALUES('26','Saint-Roman','06',163,136,7.1,'3440','49657',458,1167);
INSERT INTO "communes" VALUES('26','Saint-Avit','26',312,242,8.94,'2926','50218',227,443);
INSERT INTO "communes" VALUES('26','Beausemblant','26',1301,984,11.67,'2771','50241',134,367);
INSERT INTO "communes" VALUES('26','Arpavon','18',80,61,13.45,'3257','49300',341,1205);
INSERT INTO "communes" VALUES('26','Lesches-en-Diois','14',58,33,20.08,'3547','49553',642,1549);
INSERT INTO "communes" VALUES('26','Arthémonay','23',539,369,5.7,'3020','50159',274,437);
INSERT INTO "communes" VALUES('26','Recoubeau-Jansac','14',244,207,12.96,'3418','49616',474,1297);
INSERT INTO "communes" VALUES('26','Marches','02',751,655,11.09,'3079','49973',249,412);
INSERT INTO "communes" VALUES('26','Vassieux-en-Vercors','05',344,290,48.25,'3371','49884',1028,1654);
INSERT INTO "communes" VALUES('26','Izon-la-Bruisse','27',8,14,14.65,'3619','49173',773,1532);
INSERT INTO "communes" VALUES('26','<NAME>','02',545,364,8.46,'3212','50061',148,760);
INSERT INTO "communes" VALUES('26','<NAME>','04',454,396,14.42,'3004','49804',230,1009);
INSERT INTO "communes" VALUES('26','Puy-Saint-Martin','08',842,649,11.65,'2930','49587',177,520);
INSERT INTO "communes" VALUES('26','Eurre','07',1122,1018,18.06,'2947','49733',149,415);
INSERT INTO "communes" VALUES('26','Jonchères','14',39,36,16.68,'3409','49524',719,1560);
INSERT INTO "communes" VALUES('26','Rochegude','25',1470,1236,18.3,'2769','49165',83,284);
INSERT INTO "communes" VALUES('26','Pierrelatte','19',13026,11980,49.56,'2622','49308',46,61);
INSERT INTO "communes" VALUES('26','Pont-de-Barret','10',586,465,16.6,'2972','49558',206,623);
INSERT INTO "communes" VALUES('26','<NAME>','20',118,97,15.36,'3311','49299',433,1301);
INSERT INTO "communes" VALUES('26','<NAME>','15',921,815,8.33,'2809','49504',130,210);
INSERT INTO "communes" VALUES('26','Bourg-de-Péage','02',10128,9770,13.71,'3015','50042',155,200);
INSERT INTO "communes" VALUES('26','Valdrôme','14',142,118,41.51,'3596','49449',766,1760);
INSERT INTO "communes" VALUES('26','Châteauneuf-de-Bordette','18',99,77,15.33,'3157','49262',346,940);
INSERT INTO "communes" VALUES('26','Rousset-les-Vignes','12',287,258,15.45,'3027','49354',280,1305);
INSERT INTO "communes" VALUES('26','Pontaix','09',166,136,19.68,'3253','49722',315,1000);
INSERT INTO "communes" VALUES('26','Beauvoisin','03',181,93,8.9,'3194','49224',409,1034);
INSERT INTO "communes" VALUES('26','Manthes','11',633,570,6.83,'2967','50336',222,320);
INSERT INTO "communes" VALUES('26','Granges-les-Beaumont','28',936,949,7.51,'2940','50057',127,168);
INSERT INTO "communes" VALUES('26','Rottier','17',30,33,8.54,'3418','49416',562,1174);
INSERT INTO "communes" VALUES('26','Échevis','24',52,52,11.11,'3386','50030',277,1240);
INSERT INTO "communes" VALUES('26','Laborel','27',105,112,23.91,'3621','49214',742,1520);
INSERT INTO "communes" VALUES('26','<NAME>','35',210,157,8.38,'3058','50173',277,485);
INSERT INTO "communes" VALUES('26','Saint-Andéol','09',60,34,13.37,'3257','49790',432,1122);
INSERT INTO "communes" VALUES('26','Charmes-sur-l''Herbasse','23',908,711,12.84,'2977','50165',224,426);
INSERT INTO "communes" VALUES('26','Saint-Nazaire-en-Royans','24',749,498,3.54,'3236','50066',157,701);
INSERT INTO "communes" VALUES('26','Suze','07',234,226,14.43,'3085','49733',239,730);
INSERT INTO "communes" VALUES('26','Comps','10',167,118,11.88,'3084','49503',465,959);
INSERT INTO "communes" VALUES('26','Saint-Pantaléon-les-Vignes','12',419,305,8.31,'3006','49331',260,526);
INSERT INTO "communes" VALUES('26','Mercurol','28',2168,1669,20.82,'2838','50084',110,287);
INSERT INTO "communes" VALUES('26','Saint-Martin-le-Colonel','24',163,163,3.18,'3262','49985',259,1000);
INSERT INTO "communes" VALUES('26','Mirabel-et-Blacons','07',893,816,17.48,'3061','49678',197,705);
INSERT INTO "communes" VALUES('26','La Touche','33',212,161,8.29,'2834','49461',153,458);
INSERT INTO "communes" VALUES('26','Eyzahut','10',133,111,6.66,'2972','49517',285,872);
INSERT INTO "communes" VALUES('26','Mollans-sur-Ouvèze','03',1061,839,19.96,'3171','49151',252,1007);
INSERT INTO "communes" VALUES('26','Véronne','22',39,37,21.31,'3191','49706',314,1109);
INSERT INTO "communes" VALUES('26','Allan','33',1600,1385,28.81,'2723','49444',119,420);
INSERT INTO "communes" VALUES('26','Espenel','22',116,119,15.06,'3220','49649',265,1190);
INSERT INTO "communes" VALUES('26','Cléon-d''Andran','15',883,800,10.25,'2888','49568',165,222);
INSERT INTO "communes" VALUES('26','Barbières','02',834,647,14.4,'3116','49952',389,1322);
INSERT INTO "communes" VALUES('26','Lachau','27',215,225,25.78,'3668','49147',676,1538);
INSERT INTO "communes" VALUES('26','La Roche-sur-Grane','08',164,121,12.23,'2893','49647',198,497);
INSERT INTO "communes" VALUES('26','Montchenu','23',572,456,16.15,'2995','50217',263,489);
INSERT INTO "communes" VALUES('26','Montlaur-en-Diois','14',156,116,9.72,'3436','49593',502,1320);
INSERT INTO "communes" VALUES('26','Plaisians','03',175,175,29.64,'3312','49144',391,1364);
INSERT INTO "communes" VALUES('26','Ballons','27',81,66,17.23,'3675','49173',674,1390);
INSERT INTO "communes" VALUES('26','Saint-Michel-sur-Savasse','35',546,406,11.11,'3096','50162',254,502);
INSERT INTO "communes" VALUES('26','Bathernay','23',251,205,5.71,'2953','50200',267,466);
INSERT INTO "communes" VALUES('26','Marsanne','15',1181,1001,34.29,'2818','49604',140,586);
INSERT INTO "communes" VALUES('26','Piégon','18',258,275,10.21,'3100','49224',259,805);
INSERT INTO "communes" VALUES('26','Saint-Sorlin-en-Valloire','11',2139,1559,26.5,'2905','50321',199,413);
INSERT INTO "communes" VALUES('26','Saint-Sauveur-Gouvernet','03',197,203,19.32,'3349','49264',449,1392);
INSERT INTO "communes" VALUES('26','Chabeuil','04',6690,5861,41.07,'2981','49889',153,381);
INSERT INTO "communes" VALUES('26','<NAME>ne-sur-l''Ouvèze','03',95,88,7.32,'3209','49178',296,1041);
INSERT INTO "communes" VALUES('26','Truinas','01',130,111,8.64,'3057','49532',392,937);
INSERT INTO "communes" VALUES('26','Souspierre','10',98,96,5.25,'2915','49491',228,635);
INSERT INTO "communes" VALUES('26','Vaunaveys-la-Rochette','07',587,549,21.93,'2996','49742',193,808);
INSERT INTO "communes" VALUES('26','Malataverne','33',1821,1421,16.68,'2683','49431',78,390);
INSERT INTO "communes" VALUES('26','Montmiral','35',620,441,26.69,'3126','50172',240,548);
INSERT INTO "communes" VALUES('26','Saillans','22',1159,905,14.84,'3179','49663',232,918);
INSERT INTO "communes" VALUES('26','Rochefort-Samson','02',948,759,24.59,'3128','49970',227,1330);
INSERT INTO "communes" VALUES('26','Érôme','28',845,687,7.33,'2761','50133',115,377);
INSERT INTO "communes" VALUES('26','Aulan','27',5,5,10.55,'3435','49136',720,1122);
INSERT INTO "communes" VALUES('26','La Rochette-du-Buis','03',65,65,10.36,'3426','49188',640,1302);
INSERT INTO "communes" VALUES('26','Andancette','26',1265,1156,5.98,'2745','50269',129,168);
INSERT INTO "communes" VALUES('26','Mours-Saint-Eusèbe','21',2535,2185,5.27,'3016','50079',173,318);
INSERT INTO "communes" VALUES('26','Saint-Thomas-en-Royans','24',520,477,5.15,'3286','50055',164,390);
INSERT INTO "communes" VALUES('26','La Chapelle-en-Vercors','05',675,665,45.27,'3422','49964',600,1524);
INSERT INTO "communes" VALUES('26','Pierrelongue','03',209,127,5.13,'3201','49162',293,960);
INSERT INTO "communes" VALUES('26','Montbrun-les-Bains','27',470,428,33.26,'3451','49084',568,1362);
INSERT INTO "communes" VALUES('27','Vascœuil','22',337,339,7.39,'-1066','54939',52,171);
INSERT INTO "communes" VALUES('27','Saint-Étienne-sous-Bailleul','42',397,327,4.34,'-1034','54582',30,139);
INSERT INTO "communes" VALUES('27','Tournedos-Bois-Hubert','16',407,301,7.99,'-1506','54530',136,152);
INSERT INTO "communes" VALUES('27','Combon','04',771,571,16.3,'-1608','54552',134,159);
INSERT INTO "communes" VALUES('27','Trouville-la-Haule','29',765,646,12.25,'-1957','54910',0,137);
INSERT INTO "communes" VALUES('27','Boisset-les-Prévanches','26',442,394,7.46,'-1120','54409',66,147);
INSERT INTO "communes" VALUES('27','Brestot','23',482,404,8.73,'-1835','54835',50,139);
INSERT INTO "communes" VALUES('27','Le Fidelaire','11',992,764,33.55,'-1691','54389',150,190);
INSERT INTO "communes" VALUES('27','Harcourt','09',960,909,15.2,'-1722','54630',81,147);
INSERT INTO "communes" VALUES('27','Saint-Pierre-de-Cernières','10',237,198,11.62,'-2023','54384',161,216);
INSERT INTO "communes" VALUES('27','Dangu','20',587,590,7.97,'-711','54725',40,101);
INSERT INTO "communes" VALUES('27','Saint-Pierre-de-Salerne','09',257,204,6.92,'-1858','54669',50,162);
INSERT INTO "communes" VALUES('27','Écauville','24',116,73,3.35,'-1494','54583',119,149);
INSERT INTO "communes" VALUES('27','Louye','25',232,176,5.2,'-1129','54221',87,137);
INSERT INTO "communes" VALUES('27','<NAME>','33',148,132,6.41,'-2020','54731',114,183);
INSERT INTO "communes" VALUES('27','Suzay','02',272,208,4.11,'-912','54747',65,148);
INSERT INTO "communes" VALUES('27','<NAME>','17',779,677,8.28,'-1348','54393',130,162);
INSERT INTO "communes" VALUES('27','Neaufles-Saint-Martin','20',1184,1035,9.07,'-682','54753',41,101);
INSERT INTO "communes" VALUES('27','Saint-Étienne-du-Vauvray','21',749,690,8.84,'-1240','54714',7,73);
INSERT INTO "communes" VALUES('27','<NAME>','13',403,297,8.79,'-1434','54288',132,171);
INSERT INTO "communes" VALUES('27','Claville','38',1083,1031,17.66,'-1463','54498',133,152);
INSERT INTO "communes" VALUES('27','Amécourt','20',177,145,6.01,'-669','54866',67,166);
INSERT INTO "communes" VALUES('27','Caillouet-Orgeville','26',412,368,7.89,'-1144','54454',75,136);
INSERT INTO "communes" VALUES('27','<NAME>','31',602,567,2.85,'-1765','54343',150,181);
INSERT INTO "communes" VALUES('27','Saint-Pierre-de-Bailleul','42',1005,935,6.34,'-1052','54581',15,136);
INSERT INTO "communes" VALUES('27','Vesly','20',685,620,11.96,'-760','54714',83,145);
INSERT INTO "communes" VALUES('27','Bourg-Beaudouin','18',768,675,5.33,'-1144','54874',89,155);
INSERT INTO "communes" VALUES('27','Gisors','20',11554,10884,16.67,'-622','54756',47,142);
INSERT INTO "communes" VALUES('27','Barils','35',191,170,9.53,'-1686','54147',178,216);
INSERT INTO "communes" VALUES('27','Grossœuvre','32',1047,987,16.36,'-1264','54375',134,156);
INSERT INTO "communes" VALUES('27','Mandres','35',349,343,11.79,'-1632','54170',177,213);
INSERT INTO "communes" VALUES('27','Romilly-la-Puthenaye','04',307,262,11.85,'-1654','54447',109,162);
INSERT INTO "communes" VALUES('27','Bosnormand','07',333,275,3.34,'-1587','54755',124,161);
INSERT INTO "communes" VALUES('27','Surtauville','39',441,355,4.42,'-1424','54674',146,163);
INSERT INTO "communes" VALUES('27','Grosley-sur-Risle','04',549,493,13.18,'-1693','54500',90,162);
INSERT INTO "communes" VALUES('27','Sylvains-les-Moulins','13',1166,919,21.52,'-1385','54355',114,159);
INSERT INTO "communes" VALUES('27','Mandeville','01',312,234,3.05,'-1471','54691',127,162);
INSERT INTO "communes" VALUES('27','Thomer-la-Sôgne','13',315,302,9.1,'-1296','54344',139,154);
INSERT INTO "communes" VALUES('27','Saint-Cyr-de-Salerne','09',211,211,6.38,'-1865','54648',83,163);
INSERT INTO "communes" VALUES('27','Lignerolles','32',286,254,6.22,'-1179','54275',132,146);
INSERT INTO "communes" VALUES('27','Écouis','18',794,718,13.07,'-1006','54790',76,156);
INSERT INTO "communes" VALUES('27','Saint-Christophe-sur-Avre','35',147,151,10.76,'-1689','54112',173,214);
INSERT INTO "communes" VALUES('27','Barquet','04',394,360,13.68,'-1642','54496',101,161);
INSERT INTO "communes" VALUES('27','Vieux-Villez','42',212,160,2.56,'-1165','54635',73,146);
INSERT INTO "communes" VALUES('27','Heudicourt','15',639,532,10.73,'-752','54819',87,123);
INSERT INTO "communes" VALUES('27','Perriers-la-Campagne','04',369,357,4.47,'-1768','54613',130,147);
INSERT INTO "communes" VALUES('27','Porte-Joie','43',118,145,5.91,'-1202','54717',7,11);
INSERT INTO "communes" VALUES('27','Louviers','98',17734,18328,27.06,'-1301','54684',11,149);
INSERT INTO "communes" VALUES('27','Saint-Aubin-de-Scellon','34',345,316,13.9,'-2068','54636',114,180);
INSERT INTO "communes" VALUES('27','Cahaignes','14',359,299,9.54,'-818','54676',87,141);
INSERT INTO "communes" VALUES('27','Bois-Arnault','31',743,628,12.9,'-1777','54236',180,218);
INSERT INTO "communes" VALUES('27','Thilliers-en-Vexin','15',467,497,1.57,'-808','54707',115,132);
INSERT INTO "communes" VALUES('27','Vandrimare','18',1055,864,6.48,'-1104','54867',45,141);
INSERT INTO "communes" VALUES('27','Neaufles-Auvergny','31',437,395,17.35,'-1780','54295',155,203);
INSERT INTO "communes" VALUES('27','Saint-Christophe-sur-Condé','33',412,297,9,'-1930','54764',70,144);
INSERT INTO "communes" VALUES('27','Bézu-Saint-Éloi','20',1386,1172,11.42,'-706','54772',48,117);
INSERT INTO "communes" VALUES('27','Bourth','35',1270,1125,18.63,'-1699','54189',179,217);
INSERT INTO "communes" VALUES('27','Marbeuf','24',374,298,8.48,'-1522','54614',136,154);
INSERT INTO "communes" VALUES('27','Herqueville','43',148,155,3.76,'-1193','54716',6,65);
INSERT INTO "communes" VALUES('27','Aigleville','26',344,248,3.24,'-1018','54453',75,137);
INSERT INTO "communes" VALUES('27','<NAME>','06',303,208,7.96,'-2191','54777',38,152);
INSERT INTO "communes" VALUES('27','Brosville','16',656,599,7.2,'-1358','54565',32,144);
INSERT INTO "communes" VALUES('27','Venables','42',789,710,14.86,'-1157','54666',8,138);
INSERT INTO "communes" VALUES('27','Goupillières','04',780,654,10.12,'-1754','54585',71,154);
INSERT INTO "communes" VALUES('27','Aizier','29',128,127,2.36,'-1900','54923',0,117);
INSERT INTO "communes" VALUES('27','Sainte-Colombe-la-Commanderie','16',709,593,10.86,'-1556','54560',132,146);
INSERT INTO "communes" VALUES('27','Letteguives','18',210,184,4.1,'-1120','54916',72,149);
INSERT INTO "communes" VALUES('27','La Chapelle-Réanville','36',1150,1019,8.07,'-1066','54550',59,137);
INSERT INTO "communes" VALUES('27','Bérengeville-la-Campagne','24',288,257,9.19,'-1411','54572',60,147);
INSERT INTO "communes" VALUES('27','Aviron','16',1109,1185,7.32,'-1355','54501',95,145);
INSERT INTO "communes" VALUES('27','Houetteville','24',219,197,6.85,'-1363','54585',30,144);
INSERT INTO "communes" VALUES('27','Saint-Marcel','36',4909,4984,9.93,'-990','54551',12,141);
INSERT INTO "communes" VALUES('27','Bâlines','35',456,409,3.73,'-1511','54159',149,175);
INSERT INTO "communes" VALUES('27','Jouy-sur-Eure','37',566,543,9.8,'-1149','54499',31,127);
INSERT INTO "communes" VALUES('27','Amfreville-sous-les-Monts','18',543,471,7.52,'-1197','54784',7,157);
INSERT INTO "communes" VALUES('27','Pacy-sur-Eure','26',4637,4751,13.53,'-1061','54462',38,141);
INSERT INTO "communes" VALUES('27','Quatremare','39',389,363,5.99,'-1395','54650',125,159);
INSERT INTO "communes" VALUES('27','Manneville-sur-Risle','27',1468,1031,9.32,'-1997','54842',9,131);
INSERT INTO "communes" VALUES('27','Quillebeuf-sur-Seine','29',1024,1011,10.11,'-2012','54969',0,23);
INSERT INTO "communes" VALUES('27','Martainville','06',348,216,9.09,'-2144','54785',73,147);
INSERT INTO "communes" VALUES('27','Bernay','96',10449,11022,24.03,'-1931','54543',87,173);
INSERT INTO "communes" VALUES('27','Bézu-la-Forêt','22',245,188,8.98,'-785','54891',107,160);
INSERT INTO "communes" VALUES('27','Bouchevilliers','20',74,52,4.31,'-691','54892',73,195);
INSERT INTO "communes" VALUES('27','Theillement','07',384,307,7.14,'-1708','54765',85,149);
INSERT INTO "communes" VALUES('27','Pîtres','28',2315,2289,10.97,'-1234','54799',7,138);
INSERT INTO "communes" VALUES('27','Bosguérard-de-Marcouville','07',597,480,12,'-1651','54754',98,173);
INSERT INTO "communes" VALUES('27','<NAME>','11',295,313,9.13,'-1512','54390',95,166);
INSERT INTO "communes" VALUES('27','<NAME>','15',421,308,4.24,'-867','54790',94,122);
INSERT INTO "communes" VALUES('27','Saint-Jean-du-Thenney','10',217,186,8.31,'-2079','54460',157,198);
INSERT INTO "communes" VALUES('27','Colletot','27',171,110,4.32,'-1908','54834',60,134);
INSERT INTO "communes" VALUES('27','Arnières-sur-Iton','38',1614,1503,12.19,'-1369','54440',66,150);
INSERT INTO "communes" VALUES('27','Bourneville','29',882,735,11.01,'-1906','54879',63,137);
INSERT INTO "communes" VALUES('27','Forêt-la-Folie','14',467,363,11.02,'-898','54693',72,146);
INSERT INTO "communes" VALUES('27','Quessigny','32',122,89,4.35,'-1185','54368',139,152);
INSERT INTO "communes" VALUES('27','Saint-Didier-des-Bois','01',835,794,5.58,'-1455','54707',43,152);
INSERT INTO "communes" VALUES('27','Iville','24',467,408,8.81,'-1569','54641',140,158);
INSERT INTO "communes" VALUES('27','La Boissière','32',270,225,3.45,'-1076','54384',98,146);
INSERT INTO "communes" VALUES('27','Saint-Antonin-de-Sommaire','31',166,170,7.16,'-1854','54258',190,245);
INSERT INTO "communes" VALUES('27','Essarts','13',386,282,15.18,'-1501','54313',152,182);
INSERT INTO "communes" VALUES('27','Grandvilliers','13',366,336,17.66,'-1418','54238',150,179);
INSERT INTO "communes" VALUES('27','Cintray','08',438,365,16.27,'-1606','54217',165,184);
INSERT INTO "communes" VALUES('27','Port-Mort','02',970,825,12.17,'-1024','54627',8,138);
INSERT INTO "communes" VALUES('27','Aclou','09',266,222,3.7,'-1813','54634',57,155);
INSERT INTO "communes" VALUES('27','<NAME>','10',400,381,16.43,'-2082','54429',144,207);
INSERT INTO "communes" VALUES('27','Launay','04',212,216,2.26,'-1771','54558',70,110);
INSERT INTO "communes" VALUES('27','Bosgouet','30',599,547,9.55,'-1652','54843',69,138);
INSERT INTO "communes" VALUES('27','Bosquentin','22',106,67,6.9,'-833','54904',132,172);
INSERT INTO "communes" VALUES('27','Saint-Léger-du-Gennetey','07',159,105,3.27,'-1764','54761',76,145);
INSERT INTO "communes" VALUES('27','Tosny','42',676,569,15.02,'-1071','54687',7,78);
INSERT INTO "communes" VALUES('27','Bazincourt-sur-Epte','20',681,578,11,'-633','54791',52,139);
INSERT INTO "communes" VALUES('27','Saint-Aubin-sur-Quillebeuf','29',628,433,12.39,'-2011','54958',0,76);
INSERT INTO "communes" VALUES('27','<NAME>','03',981,794,17.34,'-1857','54385',158,206);
INSERT INTO "communes" VALUES('27','<NAME>','12',234,158,3.2,'-2163','54754',90,156);
INSERT INTO "communes" VALUES('27','Armentières-sur-Avre','35',186,163,6.11,'-1697','54094',174,208);
INSERT INTO "communes" VALUES('27','Campigny','27',1018,802,10.74,'-1981','54789',15,128);
INSERT INTO "communes" VALUES('27','Tournedos-sur-Seine','43',99,135,6.65,'-1195','54749',8,14);
INSERT INTO "communes" VALUES('27','Croth','32',1259,1290,10.51,'-1066','54272',61,137);
INSERT INTO "communes" VALUES('27','Bosc-Renoult-en-Ouche','03',166,139,7.85,'-1809','54389',132,189);
INSERT INTO "communes" VALUES('27','Chambray','36',455,373,8.42,'-1145','54528',30,135);
INSERT INTO "communes" VALUES('27','Bois-Jérôme-Saint-Ouen','14',746,683,10.51,'-892','54562',90,154);
INSERT INTO "communes" VALUES('27','Plasnes','05',673,620,16.06,'-1903','54596',113,178);
INSERT INTO "communes" VALUES('27','Saint-Clair-d''Arcey','41',329,326,11.61,'-1859','54516',95,169);
INSERT INTO "communes" VALUES('27','Château-sur-Epte','14',578,660,4.6,'-743','54676',31,134);
INSERT INTO "communes" VALUES('27','Ormes','11',468,383,14.1,'-1526','54502',136,156);
INSERT INTO "communes" VALUES('27','Saint-Aubin-sur-Gaillon','42',1710,1402,19.46,'-1119','54608',16,143);
INSERT INTO "communes" VALUES('27','Pont-Audemer','27',8838,8979,9.35,'-2025','54838',2,115);
INSERT INTO "communes" VALUES('27','Plainville','05',192,205,6.41,'-2041','54539',150,185);
INSERT INTO "communes" VALUES('27','Normanville','16',1090,1238,9.14,'-1307','54533',42,142);
INSERT INTO "communes" VALUES('27','Saint-Vincent-du-Boulay','34',318,267,6.56,'-2052','54559',164,195);
INSERT INTO "communes" VALUES('27','Mercey','40',52,45,3.5,'-1048','54533',109,146);
INSERT INTO "communes" VALUES('27','Saint-Martin-du-Tilleul','05',243,268,5.15,'-2006','54566',145,181);
INSERT INTO "communes" VALUES('27','Vernon','97',25147,24063,34.92,'-946','54547',10,148);
INSERT INTO "communes" VALUES('27','Orvaux','11',515,384,6.2,'-1448','54377',103,160);
INSERT INTO "communes" VALUES('27','Villiers-en-Désœuvre','26',880,806,14.65,'-943','54386',82,167);
INSERT INTO "communes" VALUES('27','Saint-Nicolas-d''Attez','08',151,124,5.16,'-1553','54230',155,189);
INSERT INTO "communes" VALUES('27','Guichainville','17',2522,2484,15.32,'-1277','54421',127,149);
INSERT INTO "communes" VALUES('27','Nogent-le-Sec','11',411,340,10.11,'-1482','54357',139,182);
INSERT INTO "communes" VALUES('27','Bacqueville','18',552,404,11.01,'-1074','54793',69,159);
INSERT INTO "communes" VALUES('27','Saint-Ouen-de-Thouberville','30',2303,1724,6.32,'-1610','54841',73,137);
INSERT INTO "communes" VALUES('27','Routot','30',1384,1115,6.61,'-1780','54865',91,142);
INSERT INTO "communes" VALUES('27','Ménilles','26',1529,1381,5.81,'-1079','54482',35,138);
INSERT INTO "communes" VALUES('27','<NAME>','39',1502,1451,9.93,'-1410','54695',40,161);
INSERT INTO "communes" VALUES('27','Saint-Aubin-du-Thenney','10',357,321,13.96,'-2052','54468',169,198);
INSERT INTO "communes" VALUES('27','Neuville-sur-Authou','09',191,128,5.54,'-1888','54679',85,167);
INSERT INTO "communes" VALUES('27','<NAME>','02',135,101,3.02,'-1086','54731',7,143);
INSERT INTO "communes" VALUES('27','Perriers-sur-Andelle','18',1834,1787,11.21,'-1072','54905',35,147);
INSERT INTO "communes" VALUES('27','Bémécourt','08',469,456,17.11,'-1624','54272',163,196);
INSERT INTO "communes" VALUES('27','<NAME>','30',445,406,7.5,'-1826','54876',65,138);
INSERT INTO "communes" VALUES('27','Martot','28',559,435,8.48,'-1413','54772',4,126);
INSERT INTO "communes" VALUES('27','Saint-Thurien','29',221,198,5.27,'-1978','54897',2,131);
INSERT INTO "communes" VALUES('27','Igoville','28',1555,1474,5.61,'-1319','54800',6,97);
INSERT INTO "communes" VALUES('27','Saint-Samson-de-la-Roque','29',388,283,15.69,'-2117','54920',0,114);
INSERT INTO "communes" VALUES('27','Houville-en-Vexin','18',203,168,8.09,'-1090','54774',96,161);
INSERT INTO "communes" VALUES('27','Saint-Sulpice-de-Grimbouville','06',185,143,4.32,'-2100','54863',1,121);
INSERT INTO "communes" VALUES('27','Boisemont','02',777,680,13.22,'-929','54762',90,156);
INSERT INTO "communes" VALUES('27','Berville-sur-Mer','06',601,427,5.08,'-2195','54924',0,97);
INSERT INTO "communes" VALUES('27','Saint-Nicolas-du-Bosc','01',270,251,9.24,'-1631','54679',102,155);
INSERT INTO "communes" VALUES('27','Montaure','28',1003,1073,10.16,'-1388','54706',65,159);
INSERT INTO "communes" VALUES('27','Manneville-la-Raoult','06',523,417,7.37,'-2247','54860',17,128);
INSERT INTO "communes" VALUES('27','Muzy','25',802,693,9.18,'-1101','54195',76,137);
INSERT INTO "communes" VALUES('27','<NAME>-le-Comte','39',127,115,3.32,'-1320','54664',34,143);
INSERT INTO "communes" VALUES('27','Andelys','02',8205,9044,40.62,'-1028','54717',7,161);
INSERT INTO "communes" VALUES('27','Villers-sur-le-Roule','42',714,608,4.32,'-1123','54661',7,127);
INSERT INTO "communes" VALUES('27','Tostes','28',424,351,12.28,'-1361','54733',79,137);
INSERT INTO "communes" VALUES('27','Saint-Germain-sur-Avre','25',1229,1123,5.39,'-1194','54183',88,140);
INSERT INTO "communes" VALUES('27','<NAME>','39',557,485,7.63,'-1325','54585',26,144);
INSERT INTO "communes" VALUES('27','Authieux','32',264,229,4.87,'-1219','54333',140,150);
INSERT INTO "communes" VALUES('27','Caumont','30',1002,994,6,'-1601','54852',1,140);
INSERT INTO "communes" VALUES('27','Caorches-Saint-Nicolas','05',582,568,11.78,'-1983','54537',113,176);
INSERT INTO "communes" VALUES('27','Glos-sur-Risle','23',438,417,7.33,'-1840','54744',31,135);
INSERT INTO "communes" VALUES('27','Saint-Pierre-de-Cormeilles','12',619,577,17.29,'-2169','54708',55,168);
INSERT INTO "communes" VALUES('27','Richeville','15',278,264,3.92,'-891','54742',78,150);
INSERT INTO "communes" VALUES('27','Saint-Symphorien','27',413,322,3.78,'-2077','54794',83,136);
INSERT INTO "communes" VALUES('27','<NAME>','34',229,186,4.11,'-1998','54616',167,181);
INSERT INTO "communes" VALUES('27','Coudray','15',246,193,7.78,'-924','54819',82,175);
INSERT INTO "communes" VALUES('27','Malleville-sur-le-Bec','09',227,163,6.98,'-1767','54707',90,152);
INSERT INTO "communes" VALUES('27','Saint-Denis-d''Augerons','10',86,97,4.27,'-2069','54362',173,226);
INSERT INTO "communes" VALUES('27','Épreville-en-Lieuvin','33',188,169,6.72,'-2000','54669',150,173);
INSERT INTO "communes" VALUES('27','La Chapelle-Bayvel','12',329,216,4.84,'-2148','54747',69,163);
INSERT INTO "communes" VALUES('27','Champigny-la-Futelaye','32',248,231,15.98,'-1154','54293',94,146);
INSERT INTO "communes" VALUES('27','Foucrainville','32',83,68,5.26,'-1126','54368',139,149);
INSERT INTO "communes" VALUES('27','Dardez','16',165,168,2.82,'-1253','54536',55,141);
INSERT INTO "communes" VALUES('27','<NAME>','42',1087,934,14.87,'-1215','54566',22,157);
INSERT INTO "communes" VALUES('27','Nassandres','04',1375,1390,4.92,'-1780','54585',63,149);
INSERT INTO "communes" VALUES('27','Louversey','11',585,492,10.73,'-1579','54431',120,161);
INSERT INTO "communes" VALUES('27','Canappeville','24',660,563,10.37,'-1375','54618',60,157);
INSERT INTO "communes" VALUES('27','Appeville-Annebault','23',884,782,13.35,'-1882','54811',19,132);
INSERT INTO "communes" VALUES('27','Fresne-l''Archevêque','02',528,451,10.58,'-1034','54766',65,154);
INSERT INTO "communes" VALUES('27','Champignolles','31',40,28,2.62,'-1750','54395',127,183);
INSERT INTO "communes" VALUES('27','Voiscreville','07',124,109,1.69,'-1740','54757',83,136);
INSERT INTO "communes" VALUES('27','Croisy-sur-Eure','26',232,235,3.95,'-1100','54477',36,126);
INSERT INTO "communes" VALUES('27','Bosc-Bénard-Crescy','07',363,330,4.39,'-1698','54802',119,147);
INSERT INTO "communes" VALUES('27','Thibouville','04',284,243,8.83,'-1716','54609',118,161);
INSERT INTO "communes" VALUES('27','Hacqueville','15',463,421,9.81,'-868','54758',95,151);
INSERT INTO "communes" VALUES('27','Saint-Denis-du-Béhélan','08',180,145,9.55,'-1561','54306',172,186);
INSERT INTO "communes" VALUES('27','Pont-de-l''Arche','28',4117,3507,9.35,'-1314','54781',2,131);
INSERT INTO "communes" VALUES('27','Villegats','26',339,295,3.58,'-971','54444',86,157);
INSERT INTO "communes" VALUES('27','Flipou','18',348,311,6.97,'-1175','54794',25,157);
INSERT INTO "communes" VALUES('27','L''Habit','32',541,404,5.08,'-1082','54304',75,135);
INSERT INTO "communes" VALUES('27','<NAME>','08',781,621,11.32,'-1610','54239',169,189);
INSERT INTO "communes" VALUES('27','Saint-Vigor','37',321,271,6.58,'-1191','54529',27,144);
INSERT INTO "communes" VALUES('27','Dame-Marie','08',94,89,11.37,'-1490','54228',163,179);
INSERT INTO "communes" VALUES('27','Fontaine-la-Soret','04',409,363,9.62,'-1801','54609',57,154);
INSERT INTO "communes" VALUES('27','Vitot','24',493,448,4.69,'-1595','54626',125,154);
INSERT INTO "communes" VALUES('27','Corneville-la-Fouquetière','41',102,83,3.99,'-1813','54518',114,163);
INSERT INTO "communes" VALUES('27','Parville','16',278,320,4.54,'-1380','54482',80,141);
INSERT INTO "communes" VALUES('27','<NAME>','16',682,556,5.55,'-1286','54539',84,147);
INSERT INTO "communes" VALUES('27','Villez-sur-le-Neubourg','24',277,240,4.82,'-1641','54614',110,147);
INSERT INTO "communes" VALUES('27','Jumelles','32',310,257,7.29,'-1254','54350',143,154);
INSERT INTO "communes" VALUES('27','Bernières-sur-Seine','42',328,248,6.65,'-1106','54704',7,37);
INSERT INTO "communes" VALUES('27','Le Gros-Theil','01',934,829,10.87,'-1661','54696',134,159);
INSERT INTO "communes" VALUES('27','Incarville','21',1336,1377,8.35,'-1287','54708',12,124);
INSERT INTO "communes" VALUES('27','Rouge-Perriers','04',303,230,4.12,'-1670','54608',125,149);
INSERT INTO "communes" VALUES('27','Saint-Germain-de-Pasquier','01',138,139,1.99,'-1485','54717',64,145);
INSERT INTO "communes" VALUES('27','Vraiville','01',596,481,6.82,'-1439','54690',115,164);
INSERT INTO "communes" VALUES('27','Bailleul-la-Vallée','12',118,121,4.67,'-2121','54667',92,162);
INSERT INTO "communes" VALUES('27','Saint-Laurent-des-Bois','32',238,171,3.33,'-1132','54273',120,140);
INSERT INTO "communes" VALUES('27','Hecmanville','09',137,104,2.99,'-1863','54638',135,161);
INSERT INTO "communes" VALUES('27','Saint-Siméon','12',318,278,7.49,'-2018','54761',70,164);
INSERT INTO "communes" VALUES('27','Hectomare','24',227,187,2.05,'-1543','54655',144,156);
INSERT INTO "communes" VALUES('27','Heubécourt-Haricourt','14',456,402,11.92,'-861','54596',77,156);
INSERT INTO "communes" VALUES('27','La Neuville-du-Bosc','09',558,373,14.45,'-1693','54659',69,152);
INSERT INTO "communes" VALUES('27','Cormeilles','12',1174,1195,3.05,'-2176','54720',59,151);
INSERT INTO "communes" VALUES('27','Bray','04',335,246,5.85,'-1660','54564',143,161);
INSERT INTO "communes" VALUES('27','<NAME>','03',218,197,10.23,'-1952','54402',169,204);
INSERT INTO "communes" VALUES('27','<NAME>','16',185,203,3.58,'-1375','54522',89,144);
INSERT INTO "communes" VALUES('27','Fort-Moville','06',404,310,9.32,'-2131','54815',38,142);
INSERT INTO "communes" VALUES('27','Courbépine','05',699,618,11.91,'-1973','54586',149,178);
INSERT INTO "communes" VALUES('27','Barneville-sur-Seine','30',467,412,8.77,'-1656','54867',1,142);
INSERT INTO "communes" VALUES('27','Barc','04',1063,772,11.35,'-1683','54522',105,158);
INSERT INTO "communes" VALUES('27','Chaignes','26',275,256,6.41,'-996','54463',97,151);
INSERT INTO "communes" VALUES('27','Drucourt','34',608,607,11.97,'-2079','54573',169,198);
INSERT INTO "communes" VALUES('27','Serquigny','41',2051,2052,11.4,'-1805','54567',66,155);
INSERT INTO "communes" VALUES('27','Chanteloup','13',89,60,4.2,'-1453','54313',149,173);
INSERT INTO "communes" VALUES('27','Épégard','24',503,408,4.41,'-1620','54645',131,148);
INSERT INTO "communes" VALUES('27','Gauciel','37',811,421,7.72,'-1216','54482',64,141);
INSERT INTO "communes" VALUES('27','Longchamps','15',610,466,15.43,'-790','54846',94,143);
INSERT INTO "communes" VALUES('27','Saint-Aubin-d''Écrosville','24',663,562,14.6,'-1489','54603',98,156);
INSERT INTO "communes" VALUES('27','L''Hosmes','13',80,80,6.74,'-1447','54208',159,179);
INSERT INTO "communes" VALUES('27','Fresne-Cauverville','12',206,161,6.15,'-2080','54668',123,173);
INSERT INTO "communes" VALUES('27','Touffréville','22',329,276,10.68,'-995','54834',49,162);
INSERT INTO "communes" VALUES('27','<NAME>','01',218,221,1.4,'-1504','54707',84,154);
INSERT INTO "communes" VALUES('27','Sainte-Marie-de-Vatimesnil','15',252,240,7.35,'-835','54753',83,144);
INSERT INTO "communes" VALUES('27','Gravigny','16',4083,3596,9.98,'-1303','54497',51,138);
INSERT INTO "communes" VALUES('27','Glisolles','11',833,873,10.92,'-1462','54426',83,158);
INSERT INTO "communes" VALUES('27','Crasville','39',126,123,2.45,'-1403','54675',148,162);
INSERT INTO "communes" VALUES('27','Charleval','18',1845,1873,14.14,'-1059','54857',28,140);
INSERT INTO "communes" VALUES('27','Saint-Pierre-la-Garenne','42',922,874,7.64,'-1043','54607',11,134);
INSERT INTO "communes" VALUES('27','<NAME>','31',627,607,17.01,'-1763','54353',137,187);
INSERT INTO "communes" VALUES('27','Valailles','05',382,321,5.37,'-1928','54579',119,164);
INSERT INTO "communes" VALUES('27','Ézy-sur-Eure','32',3270,3095,8.92,'-1019','54294',57,132);
INSERT INTO "communes" VALUES('27','<NAME>','30',178,151,3.15,'-1709','54891',1,144);
INSERT INTO "communes" VALUES('27','Honguemare-Guenouville','30',595,606,9.3,'-1688','54858',83,148);
INSERT INTO "communes" VALUES('27','Daubeuf-près-Vatteville','02',486,429,11.35,'-1149','54742',23,141);
INSERT INTO "communes" VALUES('27','<NAME>','25',1211,1163,22.61,'-1260','54192',102,152);
INSERT INTO "communes" VALUES('27','Fains','26',415,326,3.77,'-1055','54440',40,126);
INSERT INTO "communes" VALUES('27','Saint-Sylvestre-de-Cormeilles','12',205,173,9.5,'-2120','54716',69,164);
INSERT INTO "communes" VALUES('27','Harquency','02',270,238,13.95,'-946','54727',40,132);
INSERT INTO "communes" VALUES('27','Saint-Luc','17',244,232,5.08,'-1222','54416',125,144);
INSERT INTO "communes" VALUES('27','<NAME>','09',419,406,9.55,'-1795','54702',46,141);
INSERT INTO "communes" VALUES('27','Vézillon','02',240,214,2.04,'-1040','54696',9,145);
INSERT INTO "communes" VALUES('27','Chamblac','10',375,376,20.9,'-1991','54432',133,204);
INSERT INTO "communes" VALUES('27','Cantiers','14',199,203,2.28,'-835','54705',95,132);
INSERT INTO "communes" VALUES('27','Ferrières-Saint-Hilaire','10',397,356,9.84,'-1965','54481',117,181);
INSERT INTO "communes" VALUES('27','Hécourt','26',356,293,7.73,'-1017','54421',42,135);
INSERT INTO "communes" VALUES('27','<NAME>','26',412,345,11.73,'-1094','54432',55,133);
INSERT INTO "communes" VALUES('27','Fatouville-Grestain','06',738,536,10.26,'-2231','54897',0,112);
INSERT INTO "communes" VALUES('27','Houlbec-près-le-Gros-Theil','01',119,82,2.56,'-1673','54728',138,167);
INSERT INTO "communes" VALUES('27','Saint-Pierre-du-Val','06',549,455,12.23,'-2195','54887',18,118);
INSERT INTO "communes" VALUES('27','Vieux-Port','29',58,58,0.57,'-1921','54918',0,70);
INSERT INTO "communes" VALUES('27','Conteville','06',921,727,10.68,'-2157','54910',0,103);
INSERT INTO "communes" VALUES('27','Bazoques','34',169,136,6.9,'-1986','54634',169,182);
INSERT INTO "communes" VALUES('27','Radepont','18',746,710,15.81,'-1120','54835',18,156);
INSERT INTO "communes" VALUES('27','Brionne','09',4297,4449,16.77,'-1796','54661',47,145);
INSERT INTO "communes" VALUES('27','Guiseniers','02',422,387,10.71,'-958','54684',84,158);
INSERT INTO "communes" VALUES('27','Angerville-la-Campagne','17',1113,1217,3.62,'-1304','54430',125,147);
INSERT INTO "communes" VALUES('27','Grainville','18',556,472,3.98,'-1077','54830',105,146);
INSERT INTO "communes" VALUES('27','Beauficel-en-Lyons','22',175,185,7.2,'-904','54897',113,163);
INSERT INTO "communes" VALUES('27','Tilly','14',563,457,12.19,'-898','54606',50,156);
INSERT INTO "communes" VALUES('27','Fresney','32',309,210,6.34,'-1146','54389',132,149);
INSERT INTO "communes" VALUES('27','Flancourt-Catelon','07',479,368,7.97,'-1737','54815',90,139);
INSERT INTO "communes" VALUES('27','Collandres-Quincarnon','11',204,192,7.98,'-1649','54440',142,167);
INSERT INTO "communes" VALUES('27','Nojeon-en-Vexin','15',313,240,13.02,'-858','54811',88,144);
INSERT INTO "communes" VALUES('27','Étrépagny','15',3782,3542,20.38,'-806','54784',74,134);
INSERT INTO "communes" VALUES('27','Livet-sur-Authou','09',149,156,3.9,'-1854','54698',51,133);
INSERT INTO "communes" VALUES('27','Bois-le-Roi','32',1021,813,5.42,'-1102','54292',79,139);
INSERT INTO "communes" VALUES('27','Saint-Grégoire-du-Vièvre','33',342,323,8.97,'-1890','54715',67,167);
INSERT INTO "communes" VALUES('27','Burey','11',371,247,5.4,'-1539','54427',137,162);
INSERT INTO "communes" VALUES('27','Nagel-Séez-Mesnil','11',327,304,11.72,'-1556','54360',156,179);
INSERT INTO "communes" VALUES('27','Étréville','30',616,508,11.23,'-1873','54858',65,136);
INSERT INTO "communes" VALUES('27','Gasny','14',3004,2943,12.89,'-814','54547',19,136);
INSERT INTO "communes" VALUES('27','Damville','13',1982,2018,11.74,'-1402','54300',130,164);
INSERT INTO "communes" VALUES('27','Grand-Camp','10',455,453,14.11,'-2011','54495',135,187);
INSERT INTO "communes" VALUES('27','Bois-Anzeray','31',171,156,11.61,'-1834','54362',150,203);
INSERT INTO "communes" VALUES('27','Beaumont-le-Roger','04',2994,2817,36.42,'-1733','54533',84,163);
INSERT INTO "communes" VALUES('27','Acquigny','39',1574,1448,17.83,'-1287','54636',14,143);
INSERT INTO "communes" VALUES('27','Malouy','05',134,98,3.14,'-2017','54588',166,175);
INSERT INTO "communes" VALUES('27','Heudebouville','21',807,709,9.28,'-1219','54660',8,151);
INSERT INTO "communes" VALUES('27','Boissey-le-Châtel','07',879,685,4.38,'-1725','54745',87,156);
INSERT INTO "communes" VALUES('27','<NAME>','37',761,748,6.79,'-1208','54432',98,148);
INSERT INTO "communes" VALUES('27','Val-de-Reuil','43',13380,13250,25.6,'-1251','54749',4,120);
INSERT INTO "communes" VALUES('27','Berthenonville','14',232,211,5.92,'-750','54648',27,144);
INSERT INTO "communes" VALUES('27','Fontaine-la-Louvet','34',301,284,11.11,'-2098','54628',117,176);
INSERT INTO "communes" VALUES('27','<NAME>-Saint-Sylvestre','31',253,231,18.64,'-1921','54343',178,224);
INSERT INTO "communes" VALUES('27','Thuit-Hébert','07',314,309,3.68,'-1669','54802',94,141);
INSERT INTO "communes" VALUES('27','Saint-Élier','11',438,502,2.32,'-1525','54429',95,151);
INSERT INTO "communes" VALUES('27','Piseux','35',653,537,19.63,'-1512','54193',163,182);
INSERT INTO "communes" VALUES('27','Crestot','24',422,296,6.31,'-1517','54672',145,160);
INSERT INTO "communes" VALUES('27','<NAME>','06',334,265,6.59,'-2181','54814',45,143);
INSERT INTO "communes" VALUES('27','Duranville','34',162,173,4.73,'-2030','54610',162,178);
INSERT INTO "communes" VALUES('27','Acon','25',473,407,9.16,'-1384','54192',115,179);
INSERT INTO "communes" VALUES('27','Prey','32',907,741,8.09,'-1247','54404',135,147);
INSERT INTO "communes" VALUES('27','Aulnay-sur-Iton','38',738,588,1.53,'-1416','54441',76,130);
INSERT INTO "communes" VALUES('27','Champenard','42',219,143,2.32,'-1114','54563',110,136);
INSERT INTO "communes" VALUES('27','Chavigny-Bailleul','32',537,462,18.42,'-1260','54307',142,154);
INSERT INTO "communes" VALUES('27','Romilly-sur-Andelle','18',2861,2658,8.53,'-1197','54813',5,155);
INSERT INTO "communes" VALUES('27','Gaudreville-la-Rivière','11',245,219,6.73,'-1452','54408',87,153);
INSERT INTO "communes" VALUES('27','Pinterville','39',775,759,5.93,'-1289','54657',12,129);
INSERT INTO "communes" VALUES('27','La Forêt-du-Parc','32',506,460,7.67,'-1209','54359',139,152);
INSERT INTO "communes" VALUES('27','Bosc-Renoult-en-Roumois','07',427,388,2.56,'-1734','54772',85,149);
INSERT INTO "communes" VALUES('27','Mouettes','32',716,566,8.39,'-1084','54329',72,136);
INSERT INTO "communes" VALUES('27','Feuguerolles','24',182,152,8.2,'-1437','54589',63,146);
INSERT INTO "communes" VALUES('27','Carsix','41',245,233,6.57,'-1852','54598',120,162);
INSERT INTO "communes" VALUES('27','Émalleville','16',531,494,4.19,'-1308','54550',120,142);
INSERT INTO "communes" VALUES('27','Caugé','38',831,747,11.61,'-1447','54472',105,146);
INSERT INTO "communes" VALUES('27','Marcilly-sur-Eure','32',1556,1238,15.48,'-1100','54252',65,141);
INSERT INTO "communes" VALUES('27','Saint-Sébastien-de-Morsent','38',4882,3814,10.02,'-1386','54454',75,137);
INSERT INTO "communes" VALUES('27','Rosay-sur-Lieure','22',561,464,8.21,'-1007','54859',44,155);
INSERT INTO "communes" VALUES('27','Manthelon','13',308,271,14.55,'-1433','54346',115,177);
INSERT INTO "communes" VALUES('27','Bois-Normand-près-Lyre','31',365,307,16.88,'-1823','54330',165,215);
INSERT INTO "communes" VALUES('27','Saint-Martin-la-Campagne','16',103,89,3.52,'-1405','54518',136,146);
INSERT INTO "communes" VALUES('27','Épreville-près-le-Neubourg','24',498,360,7.73,'-1618','54595',129,153);
INSERT INTO "communes" VALUES('27','Sassey','37',171,178,4.28,'-1236','54502',110,142);
INSERT INTO "communes" VALUES('27','Landepéreuse','03',349,247,8.92,'-1887','54450',139,192);
INSERT INTO "communes" VALUES('27','Gamaches-en-Vexin','15',321,329,8.68,'-800','54744',72,115);
INSERT INTO "communes" VALUES('27','Breux-sur-Avre','25',360,295,7.08,'-1393','54179',119,179);
INSERT INTO "communes" VALUES('27','Saint-Germain-des-Angles','16',208,243,1.81,'-1329','54546',42,139);
INSERT INTO "communes" VALUES('27','Saint-Julien-de-la-Liègue','42',461,242,4.67,'-1158','54598',94,156);
INSERT INTO "communes" VALUES('27','Saint-Maclou','06',563,463,5.56,'-2140','54850',32,127);
INSERT INTO "communes" VALUES('27','Fouqueville','01',456,426,8.18,'-1540','54689',108,166);
INSERT INTO "communes" VALUES('27','Toutainville','27',1250,1012,11.85,'-2082','54849',2,126);
INSERT INTO "communes" VALUES('27','<NAME>','04',218,183,4.25,'-1707','54437',110,167);
INSERT INTO "communes" VALUES('27','Hébécourt','20',596,500,11.24,'-678','54837',66,155);
INSERT INTO "communes" VALUES('27','Garennes-sur-Eure','32',1821,1573,10.52,'-997','54345',51,137);
INSERT INTO "communes" VALUES('27','Saint-Amand-des-Hautes-Terres','01',282,308,2.98,'-1559','54704',110,166);
INSERT INTO "communes" VALUES('27','Fauville','37',313,317,3.32,'-1267','54480',114,139);
INSERT INTO "communes" VALUES('27','Sainte-Geneviève-lès-Gasny','14',652,699,4.17,'-835','54537',14,132);
INSERT INTO "communes" VALUES('27','<NAME>','08',554,411,17.61,'-1541','54324',166,194);
INSERT INTO "communes" VALUES('27','Thevray','03',292,179,14.9,'-1784','54419',133,188);
INSERT INTO "communes" VALUES('27','Mesnil-Rousset','10',110,92,7.22,'-1982','54322',208,238);
INSERT INTO "communes" VALUES('27','Illeville-sur-Montfort','23',881,664,14.95,'-1789','54807',42,144);
INSERT INTO "communes" VALUES('27','Bueil','26',1473,1403,4.91,'-995','54367',47,136);
INSERT INTO "communes" VALUES('27','Saint-André-de-l''Eure','32',3481,3258,19.83,'-1178','54341',120,149);
INSERT INTO "communes" VALUES('27','Mainneville','20',444,395,8.14,'-726','54859',81,163);
INSERT INTO "communes" VALUES('27','Écaquelon','23',518,428,13.04,'-1790','54768',47,144);
INSERT INTO "communes" VALUES('27','Tourville-la-Campagne','01',947,753,8.27,'-1591','54697',146,177);
INSERT INTO "communes" VALUES('27','Chennebrun','35',140,116,2.92,'-1727','54089',187,219);
INSERT INTO "communes" VALUES('27','Boissy-Lamberville','34',289,276,8.08,'-1955','54630',162,177);
INSERT INTO "communes" VALUES('27','Vaux-sur-Eure','26',262,241,2.9,'-1108','54491',36,121);
INSERT INTO "communes" VALUES('27','Avrilly','13',442,327,7.19,'-1325','54367',137,159);
INSERT INTO "communes" VALUES('27','Panilleuse','14',458,470,8.87,'-927','54612',85,159);
INSERT INTO "communes" VALUES('27','Amfreville-la-Campagne','01',896,874,6.64,'-1564','54682',149,166);
INSERT INTO "communes" VALUES('27','Vatteville','02',195,159,4.27,'-1157','54751',7,151);
INSERT INTO "communes" VALUES('27','La Chapelle-du-Bois-des-Faulx','16',517,461,4.37,'-1300','54569',85,147);
INSERT INTO "communes" VALUES('27','Lorleau','22',142,137,12.31,'-927','54906',86,171);
INSERT INTO "communes" VALUES('27','Sacquenville','16',1077,768,9.97,'-1404','54537',63,149);
INSERT INTO "communes" VALUES('27','Fleury-la-Forêt','22',281,257,7.85,'-868','54911',119,181);
INSERT INTO "communes" VALUES('27','Giverny','14',500,529,6.46,'-897','54529',10,139);
INSERT INTO "communes" VALUES('27','Saint-Étienne-l''Allier','33',513,388,11.32,'-1982','54740',85,166);
INSERT INTO "communes" VALUES('27','Ménesqueville','18',432,343,4.17,'-1029','54848',41,131);
INSERT INTO "communes" VALUES('27','Moisville','25',175,167,6.99,'-1302','54266',146,159);
INSERT INTO "communes" VALUES('27','La Saussaye','01',1909,1953,3.53,'-1506','54731',73,149);
INSERT INTO "communes" VALUES('27','Saint-Victor-d''Épine','09',318,281,7.89,'-1922','54677',110,169);
INSERT INTO "communes" VALUES('27','La Croisille','11',431,325,5.4,'-1510','54425',92,151);
INSERT INTO "communes" VALUES('27','Guitry','14',278,239,8.13,'-876','54685',75,143);
INSERT INTO "communes" VALUES('27','Saint-Benoît-des-Ombres','33',122,105,3.63,'-1905','54701',85,145);
INSERT INTO "communes" VALUES('27','Morainville-Jouveaux','12',380,363,15.39,'-2101','54691',90,171);
INSERT INTO "communes" VALUES('27','Tourneville','16',346,258,7.31,'-1359','54552',37,143);
INSERT INTO "communes" VALUES('27','Dampsmesnil','14',200,201,5.61,'-775','54630',27,142);
INSERT INTO "communes" VALUES('27','Saint-Pierre-d''Autils','36',993,1036,7.09,'-999','54575',12,139);
INSERT INTO "communes" VALUES('27','<NAME>','32',2232,1957,10.9,'-1035','54330',95,137);
INSERT INTO "communes" VALUES('27','Saint-Aquilin-de-Pacy','26',561,529,8.5,'-1085','54457',38,136);
INSERT INTO "communes" VALUES('27','Miserey','37',537,470,8.11,'-1185','54468',122,139);
INSERT INTO "communes" VALUES('27','La Trinité-de-Réville','10',259,188,11.15,'-2025','54411',145,206);
INSERT INTO "communes" VALUES('27','Juignettes','31',239,136,12.96,'-1868','54272',192,251);
INSERT INTO "communes" VALUES('27','Berville-la-Campagne','04',160,114,8.68,'-1595','54474',141,159);
INSERT INTO "communes" VALUES('27','Saint-Pierre-du-Mesnil','03',110,84,7.92,'-1955','54372',195,212);
INSERT INTO "communes" VALUES('27','Saint-Cyr-la-Campagne','01',414,372,2.91,'-1464','54726',34,132);
INSERT INTO "communes" VALUES('27','Breuilpont','26',1193,1113,12.21,'-1011','54404',46,137);
INSERT INTO "communes" VALUES('27','Sainte-Opportune-la-Mare','29',442,387,10.89,'-1993','54907',1,128);
INSERT INTO "communes" VALUES('27','Beaumesnil','03',572,562,12.63,'-1812','54458',128,186);
INSERT INTO "communes" VALUES('27','Touville','23',144,125,3.49,'-1752','54782',80,147);
INSERT INTO "communes" VALUES('27','Marais-Vernier','29',494,455,24.98,'-2092','54915',0,113);
INSERT INTO "communes" VALUES('27','<NAME>','13',316,240,4.48,'-1407','54323',122,157);
INSERT INTO "communes" VALUES('27','Calleville','09',664,543,8.57,'-1754','54658',65,144);
INSERT INTO "communes" VALUES('27','Saint-Mards-de-Blacarville','27',780,758,8.78,'-2025','54865',2,130);
INSERT INTO "communes" VALUES('27','<NAME>','03',196,200,10.9,'-1738','54450',110,183);
INSERT INTO "communes" VALUES('27','Mouflaines','15',155,113,3.75,'-868','54718',74,137);
INSERT INTO "communes" VALUES('27','Gouttières','03',197,177,5.14,'-1768','54471',109,171);
INSERT INTO "communes" VALUES('27','Saint-Éloi-de-Fourques','09',463,420,7.23,'-1712','54702',115,159);
INSERT INTO "communes" VALUES('27','Jonquerets-de-Livet','03',287,264,10.28,'-1920','54468',163,181);
INSERT INTO "communes" VALUES('27','Saint-Ouen-du-Tilleul','07',1563,1413,3.99,'-1543','54771',60,138);
INSERT INTO "communes" VALUES('27','Épinay','03',325,272,13.54,'-1883','54424',148,194);
INSERT INTO "communes" VALUES('27','Saint-Pierre-des-Ifs','33',274,198,6.17,'-1920','54744',130,162);
INSERT INTO "communes" VALUES('27','Tocqueville','29',130,131,2.48,'-1919','54898',65,134);
INSERT INTO "communes" VALUES('27','Bretagnolles','32',184,185,3.78,'-1093','54391',119,146);
INSERT INTO "communes" VALUES('27','Saint-Ouen-des-Champs','29',293,299,6.11,'-1996','54879',2,134);
INSERT INTO "communes" VALUES('27','Gaillardbois-Cressenville','18',415,285,6.99,'-1035','54825',50,152);
INSERT INTO "communes" VALUES('27','Lilly','22',71,74,6.03,'-855','54896',135,162);
INSERT INTO "communes" VALUES('27','Damps','28',1264,952,4.74,'-1294','54780',2,129);
INSERT INTO "communes" VALUES('27','Notre-Dame-d''Épine','09',74,83,1.7,'-1929','54664',152,170);
INSERT INTO "communes" VALUES('27','Gaillon','19',7271,6860,10.19,'-1112','54623',8,144);
INSERT INTO "communes" VALUES('27','Mousseaux-Neuville','32',669,564,14.2,'-1099','54342',93,147);
INSERT INTO "communes" VALUES('27','Saint-Just','36',1344,1292,4.44,'-995','54565',13,139);
INSERT INTO "communes" VALUES('27','Corny','02',347,262,5.26,'-976','54758',62,156);
INSERT INTO "communes" VALUES('27','Connelles','43',204,188,4.17,'-1181','54729',8,121);
INSERT INTO "communes" VALUES('27','Chambord','31',167,194,14.62,'-1919','54322',179,238);
INSERT INTO "communes" VALUES('27','Préaux','27',428,417,5.96,'-2066','54805',42,127);
INSERT INTO "communes" VALUES('27','Bouquetot','30',1041,840,13.07,'-1727','54848',99,146);
INSERT INTO "communes" VALUES('27','Authou','23',355,321,2.96,'-1826','54701',43,120);
INSERT INTO "communes" VALUES('27','Condé-sur-Risle','23',553,454,9.87,'-1911','54793',17,127);
INSERT INTO "communes" VALUES('27','Capelle-les-Grands','10',408,361,13.39,'-2069','54496',176,197);
INSERT INTO "communes" VALUES('27','Saint-Jean-de-la-Léqueraye','33',52,46,4.67,'-1971','54693',120,165);
INSERT INTO "communes" VALUES('27','Saint-Vincent-des-Bois','40',318,262,5.29,'-1042','54524',113,146);
INSERT INTO "communes" VALUES('27','<NAME>','01',159,115,1.69,'-1603','54666',139,157);
INSERT INTO "communes" VALUES('27','<NAME>','22',490,393,19.06,'-953','54918',85,179);
INSERT INTO "communes" VALUES('27','Folleville','34',197,172,6.16,'-2034','54615',168,181);
INSERT INTO "communes" VALUES('27','Merey','26',332,260,8.66,'-1032','54407',45,133);
INSERT INTO "communes" VALUES('27','Graveron-Sémerville','16',291,266,8.03,'-1513','54549',133,149);
INSERT INTO "communes" VALUES('27','Berville-en-Roumois','07',760,661,9.25,'-1682','54773',98,149);
INSERT INTO "communes" VALUES('27','Bottereaux','31',328,250,22.13,'-1854','54303',171,229);
INSERT INTO "communes" VALUES('27','Ecquetot','24',350,306,5.74,'-1473','54632',133,153);
INSERT INTO "communes" VALUES('27','Roman','13',280,248,15.2,'-1435','54273',137,172);
INSERT INTO "communes" VALUES('27','Francheville','08',1254,1154,24.03,'-1652','54209',173,197);
INSERT INTO "communes" VALUES('27','Saint-Germain-Village','27',1554,1531,5.31,'-2036','54832',4,126);
INSERT INTO "communes" VALUES('27','Baux-Sainte-Croix','17',912,1014,17.03,'-1379','54411',110,164);
INSERT INTO "communes" VALUES('27','Bourgtheroulde-Infreville','07',2852,2825,11.62,'-1626','54776',96,158);
INSERT INTO "communes" VALUES('27','Neuilly','26',145,119,4.71,'-1019','54369',47,137);
INSERT INTO "communes" VALUES('27','Villers-en-Vexin','15',279,286,6.29,'-831','54723',104,134);
INSERT INTO "communes" VALUES('27','Saint-Georges-du-Vièvre','33',737,640,10.19,'-1945','54716',94,188);
INSERT INTO "communes" VALUES('27','Cierrey','26',657,799,4.03,'-1180','54451',100,136);
INSERT INTO "communes" VALUES('27','Fontaine-Bellenger','42',1048,814,4.96,'-1195','54651',88,151);
INSERT INTO "communes" VALUES('27','Sainte-Marguerite-en-Ouche','03',133,118,5.35,'-1865','54472',135,175);
INSERT INTO "communes" VALUES('27','Fontaine-l''Abbé','41',598,547,13.23,'-1826','54546',76,159);
INSERT INTO "communes" VALUES('27','<NAME>','11',2301,2182,4,'-1445','54437',76,138);
INSERT INTO "communes" VALUES('27','Fontenay','14',325,266,6.76,'-852','54677',94,146);
INSERT INTO "communes" VALUES('27','Verneusses','10',206,224,16.15,'-2096','54336',182,246);
INSERT INTO "communes" VALUES('27','Aubevoye','19',4794,3817,7.63,'-1113','54638',8,129);
INSERT INTO "communes" VALUES('27','Marcilly-la-Campagne','25',1023,705,19.5,'-1262','54260',128,158);
INSERT INTO "communes" VALUES('27','Morsan','09',122,92,4.83,'-1936','54647',155,175);
INSERT INTO "communes" VALUES('27','Nonancourt','25',2247,2302,7.21,'-1270','54196',97,152);
INSERT INTO "communes" VALUES('27','Sainte-Opportune-du-Bosc','04',657,334,8.07,'-1666','54623',97,150);
INSERT INTO "communes" VALUES('27','Hogues','22',652,569,11.81,'-1045','54918',50,179);
INSERT INTO "communes" VALUES('27','La Trinité-de-Thouberville','30',456,385,3.33,'-1620','54845',47,138);
INSERT INTO "communes" VALUES('27','Puchay','15',562,407,13.93,'-893','54825',93,177);
INSERT INTO "communes" VALUES('27','Triqueville','27',321,281,9.48,'-2106','54818',23,133);
INSERT INTO "communes" VALUES('27','Rougemontiers','30',920,752,11.96,'-1795','54843',70,144);
INSERT INTO "communes" VALUES('27','La Haye-de-Calleville','09',305,222,2.95,'-1723','54652',68,143);
INSERT INTO "communes" VALUES('27','Perruel','18',466,402,5.37,'-1068','54920',46,143);
INSERT INTO "communes" VALUES('27','Hondouville','39',771,719,6.88,'-1353','54599',25,147);
INSERT INTO "communes" VALUES('27','Cauverville-en-Roumois','30',213,171,3.24,'-1878','54834',100,137);
INSERT INTO "communes" VALUES('27','<NAME>','34',170,145,4.03,'-2005','54648',167,176);
INSERT INTO "communes" VALUES('27','Bosc-Bénard-Commin','07',313,252,4.21,'-1653','54798',90,141);
INSERT INTO "communes" VALUES('27','Bournainville-Faverolles','34',405,426,6.96,'-2054','54586',169,185);
INSERT INTO "communes" VALUES('27','Saint-Philbert-sur-Boissey','07',168,130,3.03,'-1725','54728',128,159);
INSERT INTO "communes" VALUES('27','Saint-Georges-Motel','25',955,937,4.97,'-1078','54214',67,132);
INSERT INTO "communes" VALUES('27','Civières','14',219,226,7.77,'-831','54634',82,150);
INSERT INTO "communes" VALUES('27','La Harengère','01',531,419,3.59,'-1488','54702',85,162);
INSERT INTO "communes" VALUES('27','Barville','34',76,61,2.71,'-2065','54619',148,179);
INSERT INTO "communes" VALUES('27','Écardenville-sur-Eure','42',531,535,6.67,'-1192','54557',26,145);
INSERT INTO "communes" VALUES('27','<NAME>','30',271,256,2.51,'-1788','54894',70,132);
INSERT INTO "communes" VALUES('27','Écardenville-la-Campagne','04',421,309,7.4,'-1655','54576',139,159);
INSERT INTO "communes" VALUES('27','Bus-Saint-Rémy','14',331,277,7.77,'-794','54607',24,149);
INSERT INTO "communes" VALUES('27','Douains','40',456,468,11.27,'-1008','54489',97,148);
INSERT INTO "communes" VALUES('27','La Heunière','40',252,241,3.07,'-1025','54513',122,143);
INSERT INTO "communes" VALUES('27','<NAME>-sur-Risle','11',269,247,0.24,'-1723','54420',124,155);
INSERT INTO "communes" VALUES('27','Sainte-Marthe','11',449,426,17.5,'-1617','54408',125,182);
INSERT INTO "communes" VALUES('27','Amfreville-sur-Iton','39',772,715,5.48,'-1314','54610',20,152);
INSERT INTO "communes" VALUES('27','Fiquefleur-Équainville','06',645,562,9.8,'-2251','54879',0,113);
INSERT INTO "communes" VALUES('27','Hennezis','02',763,753,15.63,'-969','54659',44,160);
INSERT INTO "communes" VALUES('27','Gadencourt','26',390,344,3.89,'-1038','54425',42,120);
INSERT INTO "communes" VALUES('27','Bacquepuis','16',324,295,5.09,'-1432','54547',129,149);
INSERT INTO "communes" VALUES('27','<NAME>','26',391,338,10.48,'-1143','54418',72,145);
INSERT INTO "communes" VALUES('27','Reuilly','16',580,501,9.73,'-1237','54532',49,144);
INSERT INTO "communes" VALUES('27','Chauvincourt-Provemont','15',340,288,10.83,'-775','54753',64,102);
INSERT INTO "communes" VALUES('27','Bouquelon','29',406,296,11.71,'-2050','54885',1,121);
INSERT INTO "communes" VALUES('27','Montfort-sur-Risle','23',812,879,3.94,'-1858','54773',27,102);
INSERT INTO "communes" VALUES('27','Saint-Agnan-de-Cernières','10',137,122,7.42,'-2022','54393',150,211);
INSERT INTO "communes" VALUES('27','Mesnil-sous-Vienne','20',129,92,5.72,'-744','54873',91,176);
INSERT INTO "communes" VALUES('27','Autheuil-Authouillet','42',865,765,11.66,'-1174','54552',27,137);
INSERT INTO "communes" VALUES('27','Bourg-Achard','30',3011,2512,12.32,'-1688','54839',94,144);
INSERT INTO "communes" VALUES('27','Irreville','16',438,339,5.6,'-1258','54551',45,146);
INSERT INTO "communes" VALUES('27','Morgny','15',567,409,17.37,'-829','54870',110,161);
INSERT INTO "communes" VALUES('27','Ivry-la-Bataille','32',2556,2641,7.76,'-973','54315',55,137);
INSERT INTO "communes" VALUES('27','Alizay','28',1410,1264,8.62,'-1290','54801',4,135);
INSERT INTO "communes" VALUES('27','Faverolles-la-Campagne','11',142,159,4.71,'-1567','54456',136,159);
INSERT INTO "communes" VALUES('27','<NAME>','02',227,189,5.9,'-1102','54724',7,144);
INSERT INTO "communes" VALUES('27','<NAME>','16',209,147,5.83,'-1551','54541',133,154);
INSERT INTO "communes" VALUES('27','<NAME>','24',4159,3834,9.91,'-1593','54609',110,151);
INSERT INTO "communes" VALUES('27','Épaignes','12',1371,1151,26.1,'-2107','54755',84,181);
INSERT INTO "communes" VALUES('27','Lieurey','33',1399,1207,18.21,'-2041','54700',138,184);
INSERT INTO "communes" VALUES('27','Tilleul-Dame-Agnès','04',217,174,5.12,'-1608','54449',147,159);
INSERT INTO "communes" VALUES('27','Rouvray','40',278,167,2.51,'-1110','54517',77,127);
INSERT INTO "communes" VALUES('27','Épreville-en-Roumois','07',384,318,6.65,'-1738','54801',114,148);
INSERT INTO "communes" VALUES('27','Gournay-le-Guérin','35',145,139,12.27,'-1735','54119',188,227);
INSERT INTO "communes" VALUES('27','Saint-Germain-la-Campagne','34',860,748,22.23,'-2145','54498',110,191);
INSERT INTO "communes" VALUES('27','Surville','39',927,734,5.72,'-1368','54663',119,159);
INSERT INTO "communes" VALUES('27','Cailly-sur-Eure','42',228,235,3.33,'-1249','54574',21,134);
INSERT INTO "communes" VALUES('27','Pullay','35',386,355,12.03,'-1623','54146',167,198);
INSERT INTO "communes" VALUES('27','Berthouville','09',290,259,7.53,'-1891','54644',145,178);
INSERT INTO "communes" VALUES('27','Cesseville','24',441,331,6.57,'-1510','54645',146,156);
INSERT INTO "communes" VALUES('27','Pressagny-l''Orgueilleux','14',712,757,10.27,'-990','54591',12,136);
INSERT INTO "communes" VALUES('27','<NAME>','04',381,288,4.68,'-1718','54572',143,161);
INSERT INTO "communes" VALUES('27','Saint-Quentin-des-Isles','10',238,236,4,'-1953','54500',111,172);
INSERT INTO "communes" VALUES('27','Valletot','30',341,254,5.79,'-1904','54849',45,136);
INSERT INTO "communes" VALUES('27','Gisay-la-Coudre','03',234,233,16.27,'-1900','54389',162,208);
INSERT INTO "communes" VALUES('27','Ventes','17',1037,1006,20.65,'-1387','54388',84,156);
INSERT INTO "communes" VALUES('27','Giverville','34',321,270,6.14,'-1964','54662',157,176);
INSERT INTO "communes" VALUES('27','Sainte-Croix-sur-Aizier','29',261,193,4.82,'-1897','54908',35,132);
INSERT INTO "communes" VALUES('27','Piencourt','34',175,147,8.7,'-2153','54630',125,171);
INSERT INTO "communes" VALUES('27','Guernanville','08',90,85,3.23,'-1660','54321',153,191);
INSERT INTO "communes" VALUES('27','Fontaine-Heudebourg','42',714,646,4.05,'-1249','54588',22,138);
INSERT INTO "communes" VALUES('27','Notre-Dame-du-Hamel','10',237,194,13.58,'-2034','54317',177,239);
INSERT INTO "communes" VALUES('27','Saint-Victor-de-Chrétienville','05',454,376,5.81,'-2022','54526',160,187);
INSERT INTO "communes" VALUES('27','<NAME>','15',325,194,5.09,'-869','54848',128,156);
INSERT INTO "communes" VALUES('27','<NAME>','10',173,150,14.38,'-2111','54389',155,222);
INSERT INTO "communes" VALUES('27','Pont-Saint-Pierre','18',1137,940,6.9,'-1180','54817',10,157);
INSERT INTO "communes" VALUES('27','Beaumontel','04',713,715,11.63,'-1745','54543',79,160);
INSERT INTO "communes" VALUES('27','Condé-sur-Iton','08',891,752,19.58,'-1527','54259',147,185);
INSERT INTO "communes" VALUES('27','Corneville-sur-Risle','27',1248,1169,13.23,'-1936','54819',12,131);
INSERT INTO "communes" VALUES('27','Beuzeville','06',4178,3096,23.25,'-2216','54828',48,146);
INSERT INTO "communes" VALUES('27','Foulbec','06',554,468,11.86,'-2124','54889',1,116);
INSERT INTO "communes" VALUES('27','Mesnil-Verclives','18',274,219,9.96,'-966','54801',92,173);
INSERT INTO "communes" VALUES('27','Saint-Ouen-d''Attez','08',272,224,9.51,'-1536','54225',155,181);
INSERT INTO "communes" VALUES('27','Saint-Denis-des-Monts','07',219,180,3.88,'-1700','54738',108,161);
INSERT INTO "communes" VALUES('27','Rugles','31',2367,2539,14.1,'-1807','54247',171,236);
INSERT INTO "communes" VALUES('27','Criquebeuf-la-Campagne','24',249,192,7.75,'-1483','54669',143,162);
INSERT INTO "communes" VALUES('27','La Noë-Poulain','33',211,153,4.7,'-2021','54741',95,166);
INSERT INTO "communes" VALUES('27','Boncourt','26',172,122,4.15,'-1144','54472',65,132);
INSERT INTO "communes" VALUES('27','Léry','43',2082,2135,14.51,'-1255','54761',5,128);
INSERT INTO "communes" VALUES('27','Évreux','99',50537,51159,26.46,'-1315','54471',57,147);
INSERT INTO "communes" VALUES('27','Saint-Philbert-sur-Risle','23',790,796,13.15,'-1874','54772',26,149);
INSERT INTO "communes" VALUES('27','<NAME>','37',727,758,11.57,'-1241','54452',107,139);
INSERT INTO "communes" VALUES('27','Vironvay','21',307,280,3.9,'-1241','54674',8,138);
INSERT INTO "communes" VALUES('27','Saint-Denis-le-Ferment','20',505,456,18.01,'-686','54810',54,137);
INSERT INTO "communes" VALUES('27','Boisney','09',281,302,5.76,'-1868','54616',149,170);
INSERT INTO "communes" VALUES('27','Hauville','30',1281,1107,14.69,'-1739','54886',80,148);
INSERT INTO "communes" VALUES('27','Saint-Ouen-de-Pontcheuil','01',97,100,1.17,'-1537','54706',100,162);
INSERT INTO "communes" VALUES('27','Sancourt','20',163,108,6.63,'-723','54838',77,128);
INSERT INTO "communes" VALUES('27','Freneuse-sur-Risle','23',343,340,8.13,'-1848','54726',35,155);
INSERT INTO "communes" VALUES('27','Éturqueraye','30',282,244,6.72,'-1825','54856',103,139);
INSERT INTO "communes" VALUES('27','<NAME>','39',229,252,10.41,'-1362','54641',14,153);
INSERT INTO "communes" VALUES('27','Amfreville-les-Champs','18',446,341,6.56,'-1130','54789',70,154);
INSERT INTO "communes" VALUES('27','Fourmetot','27',632,552,10.02,'-1961','54868',48,134);
INSERT INTO "communes" VALUES('27','Quittebeuf','16',598,524,13.45,'-1474','54564',131,149);
INSERT INTO "communes" VALUES('27','Serez','32',148,129,6.33,'-1081','54371',119,144);
INSERT INTO "communes" VALUES('27','Bernienville','16',274,246,7.81,'-1464','54537',136,151);
INSERT INTO "communes" VALUES('27','Saint-Aubin-le-Guichard','03',293,231,11.13,'-1818','54488',115,164);
INSERT INTO "communes" VALUES('27','Noyers','20',300,224,5.37,'-730','54717',53,141);
INSERT INTO "communes" VALUES('27','Mesnil-sur-l''Estrée','25',976,1039,5.76,'-1150','54191',83,139);
INSERT INTO "communes" VALUES('27','Sainte-Marguerite-de-l''Autel','08',530,381,23.27,'-1647','54334',149,193);
INSERT INTO "communes" VALUES('27','Fontaine-sous-Jouy','37',775,758,7.33,'-1161','54519',29,134);
INSERT INTO "communes" VALUES('27','Baux-de-Breteuil','08',664,579,34.22,'-1694','54311',160,199);
INSERT INTO "communes" VALUES('27','Martagny','20',140,120,4.38,'-752','54883',95,177);
INSERT INTO "communes" VALUES('27','Courdemanche','25',573,479,8.99,'-1192','54225',110,142);
INSERT INTO "communes" VALUES('27','Saint-Victor-sur-Avre','35',65,69,6.9,'-1645','54114',167,206);
INSERT INTO "communes" VALUES('27','Breteuil','08',3347,3468,27.46,'-1581','54263',157,197);
INSERT INTO "communes" VALUES('27','Houlbec-Cocherel','40',1354,1192,11.64,'-1081','54527',35,143);
INSERT INTO "communes" VALUES('27','Courteilles','35',144,165,6.24,'-1497','54151',140,177);
INSERT INTO "communes" VALUES('27','Ajou','03',257,218,9.83,'-1727','54422',115,179);
INSERT INTO "communes" VALUES('27','<NAME>','43',3673,3437,14.22,'-1256','54729',8,127);
INSERT INTO "communes" VALUES('27','Doudeauville-en-Vexin','15',313,233,5.85,'-830','54808',82,135);
INSERT INTO "communes" VALUES('27','Tourny','14',897,900,11.95,'-879','54649',106,159);
INSERT INTO "communes" VALUES('27','Chéronvilliers','31',535,391,21.51,'-1773','54210',180,219);
INSERT INTO "communes" VALUES('27','<NAME>','34',150,122,4.04,'-2118','54552',178,201);
INSERT INTO "communes" VALUES('27','Corneuil','13',481,385,11.31,'-1329','54313',141,159);
INSERT INTO "communes" VALUES('27','<NAME>','01',417,347,2.74,'-1581','54738',122,142);
INSERT INTO "communes" VALUES('27','Saint-Léger-de-Rôtes','41',409,426,6.46,'-1876','54566',104,154);
INSERT INTO "communes" VALUES('27','Pont-Authou','23',714,675,3.52,'-1817','54715',37,136);
INSERT INTO "communes" VALUES('27','Montreuil-l''Argillé','10',800,740,13.72,'-2062','54376',161,225);
INSERT INTO "communes" VALUES('27','Fours-en-Vexin','14',188,143,5.92,'-815','54654',89,143);
INSERT INTO "communes" VALUES('27','Mélicourt','10',99,71,6.4,'-2035','54349',174,223);
INSERT INTO "communes" VALUES('27','Sainte-Colombe-près-Vernon','36',308,197,2.69,'-1109','54552',85,135);
INSERT INTO "communes" VALUES('27','Villalet','13',89,74,2.36,'-1424','54367',104,150);
INSERT INTO "communes" VALUES('27','Heudreville-sur-Eure','42',1026,987,14.15,'-1275','54601',17,143);
INSERT INTO "communes" VALUES('27','<NAME>','37',104,97,2.99,'-1224','54431',108,141);
INSERT INTO "communes" VALUES('27','Saint-Mards-de-Fresne','34',348,317,13.49,'-2081','54526',162,194);
INSERT INTO "communes" VALUES('27','Broglie','10',1099,1102,7.96,'-2008','54454',132,197);
INSERT INTO "communes" VALUES('27','Saint-Germain-de-Fresney','32',208,154,5.35,'-1161','54399',129,151);
INSERT INTO "communes" VALUES('27','Ferrières-Haut-Clocher','11',1122,760,11.38,'-1506','54468',120,149);
INSERT INTO "communes" VALUES('27','Renneville','18',220,201,6.3,'-1129','54892',78,153);
INSERT INTO "communes" VALUES('27','Bonneville-Aptot','23',225,169,7.47,'-1749','54731',100,154);
INSERT INTO "communes" VALUES('27','Lisors','22',353,334,10.75,'-963','54836',62,178);
INSERT INTO "communes" VALUES('27','Buis-sur-Damville','13',977,768,24.56,'-1350','54257',148,164);
INSERT INTO "communes" VALUES('27','<NAME>','28',1195,1001,2.39,'-1259','54792',4,120);
INSERT INTO "communes" VALUES('27','Saint-Martin-Saint-Firmin','33',268,195,6.37,'-1973','54765',53,137);
INSERT INTO "communes" VALUES('27','Venon','24',320,276,5.07,'-1431','54636',113,158);
INSERT INTO "communes" VALUES('27','Thierville','23',308,218,3.6,'-1796','54741',60,144);
INSERT INTO "communes" VALUES('27','Huest','37',675,606,6.57,'-1256','54488',85,142);
INSERT INTO "communes" VALUES('27','Criquebeuf-sur-Seine','28',1189,1043,14.74,'-1377','54784',3,124);
INSERT INTO "communes" VALUES('27','Hardencourt-Cocherel','26',283,235,4.93,'-1130','54492',33,129);
INSERT INTO "communes" VALUES('27','Cuverville','02',221,160,6.17,'-1072','54762',64,158);
INSERT INTO "communes" VALUES('27','Le Plessis-Sainte-Opportune','04',275,251,11.37,'-1639','54525',140,159);
INSERT INTO "communes" VALUES('27','Farceaux','15',292,277,7.56,'-908','54766',107,150);
INSERT INTO "communes" VALUES('27','Émanville','11',569,462,10.76,'-1583','54512',140,161);
INSERT INTO "communes" VALUES('27','Heudreville-en-Lieuvin','34',105,106,4.15,'-2036','54662',150,173);
INSERT INTO "communes" VALUES('27','Gouville','13',523,287,8.47,'-1495','54278',140,180);
INSERT INTO "communes" VALUES('27','Guerny','20',172,185,6.03,'-731','54691',34,135);
INSERT INTO "communes" VALUES('27','<NAME>','07',3178,2998,9.9,'-1569','54766',107,162);
INSERT INTO "communes" VALUES('27','<NAME>','01',638,584,3.03,'-1521','54747',113,148);
INSERT INTO "communes" VALUES('27','Bernouville','20',315,349,6.12,'-715','54768',61,101);
INSERT INTO "communes" VALUES('27','Coudres','32',519,454,15.37,'-1214','54291',134,150);
INSERT INTO "communes" VALUES('27','Heuqueville','02',406,350,7.77,'-1108','54764',73,154);
INSERT INTO "communes" VALUES('27','<NAME>','01',267,250,7.02,'-1624','54705',139,179);
INSERT INTO "communes" VALUES('27','Vannecrocq','06',134,110,4.93,'-2123','54785',75,153);
INSERT INTO "communes" VALUES('27','Saint-Georges-du-Mesnil','33',112,90,3.18,'-1978','54681',150,171);
INSERT INTO "communes" VALUES('27','Muids','02',861,828,15.22,'-1162','54692',7,76);
INSERT INTO "communes" VALUES('27','Lyons-la-Forêt','22',752,802,26.99,'-956','54888',67,178);
INSERT INTO "communes" VALUES('27','Bretigny','09',168,159,5.4,'-1844','54682',70,147);
INSERT INTO "communes" VALUES('27','<NAME>','24',155,124,4.59,'-1582','54659',133,159);
INSERT INTO "communes" VALUES('27','Noards','33',59,65,4.21,'-2032','54682',153,173);
INSERT INTO "communes" VALUES('27','Saint-Pierre-du-Bosguérard','01',1047,844,10.1,'-1619','54738',110,179);
INSERT INTO "communes" VALUES('27','Portes','11',265,195,9.44,'-1537','54477',119,158);
INSERT INTO "communes" VALUES('27','Saint-Pierre-des-Fleurs','01',1306,1252,2.79,'-1523','54723',87,163);
INSERT INTO "communes" VALUES('27','Saint-Aubin-des-Hayes','03',145,112,5.95,'-1842','54455',133,186);
INSERT INTO "communes" VALUES('27','Beaubray','11',292,268,15.43,'-1582','54347',127,192);
INSERT INTO "communes" VALUES('27','Notre-Dame-de-l''Isle','02',677,645,11.81,'-1005','54606',14,143);
INSERT INTO "communes" VALUES('27','Boulleville','06',1005,788,7.17,'-2160','54853',39,129);
INSERT INTO "communes" VALUES('27','Garencières','32',554,496,6.87,'-1190','54397',134,150);
INSERT INTO "communes" VALUES('27','Fleury-sur-Andelle','18',1876,1900,3.79,'-1090','54847',25,125);
INSERT INTO "communes" VALUES('27','<NAME>','11',53,44,4.84,'-1496','54373',151,175);
INSERT INTO "communes" VALUES('27','Saint-Paul-de-Fourques','09',287,172,4.03,'-1712','54690',72,155);
INSERT INTO "communes" VALUES('27','Conches-en-Ouche','11',4993,4283,16.72,'-1549','54401',100,173);
INSERT INTO "communes" VALUES('27','Gauville-la-Campagne','16',502,539,6.15,'-1389','54498',107,146);
INSERT INTO "communes" VALUES('27','Saint-Laurent-du-Tencement','10',51,49,2.76,'-2090','54316',185,230);
INSERT INTO "communes" VALUES('27','Douville-sur-Andelle','18',417,306,4.51,'-1152','54821',15,146);
INSERT INTO "communes" VALUES('27','Saussay-la-Campagne','15',456,424,5,'-915','54796',108,134);
INSERT INTO "communes" VALUES('27','Thiberville','34',1790,1537,7.98,'-2090','54598',160,188);
INSERT INTO "communes" VALUES('27','Tillières-sur-Avre','35',1151,1179,16.76,'-1422','54176',128,179);
INSERT INTO "communes" VALUES('27','Illiers-l''Évêque','25',991,892,20.63,'-1189','54245',114,147);
INSERT INTO "communes" VALUES('27','Droisy','25',407,335,17.49,'-1327','54229',137,179);
INSERT INTO "communes" VALUES('27','Sébécourt','11',440,315,14.8,'-1665','54413',130,178);
INSERT INTO "communes" VALUES('27','Ambenay','31',546,465,16.8,'-1786','54262',165,213);
INSERT INTO "communes" VALUES('27','Bosrobert','09',580,372,9.21,'-1758','54695',56,150);
INSERT INTO "communes" VALUES('27','Verneuil-sur-Avre','35',6205,6617,31.97,'-1565','54154',147,193);
INSERT INTO "communes" VALUES('27','Villettes','24',177,125,6.87,'-1435','54610',70,152);
INSERT INTO "communes" VALUES('27','<NAME>','34',85,79,4.07,'-2135','54571',143,197);
INSERT INTO "communes" VALUES('27','Crosville-la-Vieille','24',569,495,7.74,'-1563','54617',137,157);
INSERT INTO "communes" VALUES('27','Granchain','03',204,225,8.12,'-1864','54489',144,174);
INSERT INTO "communes" VALUES('27','Selles','27',433,394,10.09,'-2034','54780',58,146);
INSERT INTO "communes" VALUES('27','Champ-Dolent','11',54,40,2.28,'-1470','54400',135,159);
INSERT INTO "communes" VALUES('27','Poses','43',1156,1112,7.2,'-1213','54782',8,12);
INSERT INTO "communes" VALUES('27','Villez-sous-Bailleul','36',308,275,4.36,'-1068','54568',58,136);
INSERT INTO "communes" VALUES('27','Chaise-Dieu-du-Theil','31',227,248,5.93,'-1750','54187',187,219);
INSERT INTO "communes" VALUES('27','Saint-Aubin-le-Vertueux','41',879,818,15.12,'-1923','54501',105,175);
INSERT INTO "communes" VALUES('27','Authevernes','20',359,361,8.15,'-775','54687',68,148);
INSERT INTO "communes" VALUES('27','Saint-Pierre-du-Vauvray','21',1334,1346,5.22,'-1239','54702',7,128);
INSERT INTO "communes" VALUES('27','Saint-Meslin-du-Bosc','01',238,156,1.57,'-1619','54683',144,161);
INSERT INTO "communes" VALUES('27','Fourges','14',808,775,7.72,'-773','54579',20,142);
INSERT INTO "communes" VALUES('27','Sainte-Barbe-sur-Gaillon','42',251,233,4.18,'-1130','54629',45,146);
INSERT INTO "communes" VALUES('27','Courcelles-sur-Seine','02',1731,1502,5.47,'-1087','54648',8,127);
INSERT INTO "communes" VALUES('27','Mézières-en-Vexin','14',642,606,12.7,'-925','54636',60,162);
INSERT INTO "communes" VALUES('27','Asnières','12',299,215,8.14,'-2154','54662',76,162);
INSERT INTO "communes" VALUES('27','Franqueville','09',301,256,3.03,'-1829','54639',129,157);
INSERT INTO "communes" VALUES('27','Places','34',75,55,1.93,'-2136','54614',140,173);
INSERT INTO "communes" VALUES('27','<NAME>-Signol','01',2209,1764,9.81,'-1552','54739',103,179);
INSERT INTO "communes" VALUES('27','Menneval','41',1472,1321,6.63,'-1903','54553',90,164);
INSERT INTO "communes" VALUES('27','Épieds','32',372,320,4.87,'-1042','54372',91,140);
INSERT INTO "communes" VALUES('27','Andé','21',1094,1002,5.31,'-1217','54702',7,48);
INSERT INTO "communes" VALUES('27','Tourville-sur-Pont-Audemer','27',733,553,10.8,'-2031','54813',11,127);
INSERT INTO "communes" VALUES('27','Bouafles','02',671,622,12.61,'-1058','54679',7,146);
INSERT INTO "communes" VALUES('27','Ailly','42',1095,781,15.55,'-1211','54623',70,157);
INSERT INTO "communes" VALUES('27','Écos','14',982,888,15.23,'-813','54621',40,153);
INSERT INTO "communes" VALUES('27','Daubeuf-la-Campagne','24',223,199,6.34,'-1452','54659',134,163);
INSERT INTO "communes" VALUES('27','Le Tremblay-Omonville','24',312,270,5.41,'-1581','54578',129,145);
INSERT INTO "communes" VALUES('28','Saint-Lucien','19',243,244,8.71,'-792','54053',117,166);
INSERT INTO "communes" VALUES('28','Mondonville-Saint-Jean','02',91,58,5.44,'-568','53738',147,154);
INSERT INTO "communes" VALUES('28','Épeautrolles','15',187,147,9.31,'-1124','53679',150,167);
INSERT INTO "communes" VALUES('28','Fresnay-le-Comte','26',347,317,8.25,'-955','53669',139,156);
INSERT INTO "communes" VALUES('28','Berchères-sur-Vesgre','01',840,712,11.99,'-884','54268',77,167);
INSERT INTO "communes" VALUES('28','Morancez','26',1602,1615,7.13,'-937','53775',125,149);
INSERT INTO "communes" VALUES('28','Prasville','24',402,294,16.26,'-695','53640',123,148);
INSERT INTO "communes" VALUES('28','Ressuintes','14',144,127,7.46,'-1554','53995',224,281);
INSERT INTO "communes" VALUES('28','Neuvy-en-Beauce','16',190,179,15.68,'-510','53631',127,142);
INSERT INTO "communes" VALUES('28','Moinville-la-Jeulin','02',123,98,6.05,'-707','53755',137,154);
INSERT INTO "communes" VALUES('28','Moriers','04',211,210,9.03,'-998','53572',131,143);
INSERT INTO "communes" VALUES('28','Ermenonville-la-Grande','15',321,300,12.07,'-1060','53707',151,168);
INSERT INTO "communes" VALUES('28','Barmainville','16',124,106,6.38,'-432','53615',134,144);
INSERT INTO "communes" VALUES('28','<NAME>','25',4099,2883,5.52,'-933','53801',125,153);
INSERT INTO "communes" VALUES('28','Mévoisins','18',636,634,4.28,'-828','53945',100,150);
INSERT INTO "communes" VALUES('28','Chaudon','19',1624,1410,11.34,'-933','54069',86,140);
INSERT INTO "communes" VALUES('28','Mérouville','16',218,181,9.62,'-489','53662',133,149);
INSERT INTO "communes" VALUES('28','Saint-Germain-le-Gaillard','12',313,239,8.13,'-1198','53802',162,188);
INSERT INTO "communes" VALUES('28','Serazereux','10',517,436,15.58,'-1002','53998',140,193);
INSERT INTO "communes" VALUES('28','Guillonville','21',445,417,27.15,'-749','53434',113,140);
INSERT INTO "communes" VALUES('28','Péronville','21',317,235,24.9,'-837','53403',112,140);
INSERT INTO "communes" VALUES('28','Voves','24',2946,2928,32.98,'-789','53636',139,156);
INSERT INTO "communes" VALUES('28','Le Gué-de-Longroi','02',822,718,6.9,'-685','53890',115,161);
INSERT INTO "communes" VALUES('28','Souancé-au-Perche','20',547,514,18.94,'-1646','53630',123,270);
INSERT INTO "communes" VALUES('28','Janville','16',1792,1697,12.19,'-505','53556',127,140);
INSERT INTO "communes" VALUES('28','Bullou','06',226,205,9.14,'-1206','53603',144,169);
INSERT INTO "communes" VALUES('28','Vaupillon','17',472,394,12.47,'-1490','53845',174,219);
INSERT INTO "communes" VALUES('28','Billancelles','12',299,213,11.95,'-1246','53875',181,222);
INSERT INTO "communes" VALUES('28','Amilly','29',1871,1958,20.01,'-1049','53825',149,169);
INSERT INTO "communes" VALUES('28','Ymeray','18',606,503,6.85,'-707','53899',111,164);
INSERT INTO "communes" VALUES('28','Montireau','17',135,107,10.1,'-1456','53787',217,282);
INSERT INTO "communes" VALUES('28','Mottereau','06',157,141,8.79,'-1288','53617',157,202);
INSERT INTO "communes" VALUES('28','Orrouer','12',272,238,13.25,'-1165','53792',152,193);
INSERT INTO "communes" VALUES('28','Loigny-la-Bataille','21',227,174,18.05,'-670','53470',123,139);
INSERT INTO "communes" VALUES('28','Brou','06',3471,3709,19.83,'-1299','53567',147,201);
INSERT INTO "communes" VALUES('28','Challet','07',432,385,10.17,'-1004','53950',171,201);
INSERT INTO "communes" VALUES('28','Saint-Bomer','03',208,178,13.32,'-1676','53550',163,271);
INSERT INTO "communes" VALUES('28','Mézières-au-Perche','06',128,136,6.11,'-1180','53611',136,165);
INSERT INTO "communes" VALUES('28','Faverolles','19',893,767,9.94,'-842','54097',124,168);
INSERT INTO "communes" VALUES('28','Saumeray','04',431,354,19.46,'-1129','53613',130,157);
INSERT INTO "communes" VALUES('28','Fontenay-sur-Conie','21',147,110,13.25,'-743','53516',117,141);
INSERT INTO "communes" VALUES('28','Civry','09',359,282,17.89,'-939','53434',112,138);
INSERT INTO "communes" VALUES('28','Boncé','24',243,193,8.76,'-923','53676',144,162);
INSERT INTO "communes" VALUES('28','Saint-Georges-sur-Eure','12',2468,2452,15.43,'-1087','53797',141,165);
INSERT INTO "communes" VALUES('28','<NAME>','17',409,329,11.71,'-1337','53786',191,257);
INSERT INTO "communes" VALUES('28','Fessanvilliers-Mattanvilliers','05',174,137,11.63,'-1433','54125',159,188);
INSERT INTO "communes" VALUES('28','Pézy','24',252,187,6.19,'-846','53688',153,166);
INSERT INTO "communes" VALUES('28','Baudreville','16',282,249,13.03,'-479','53702',133,151);
INSERT INTO "communes" VALUES('28','Autels-Villevillon','03',165,120,10.08,'-1487','53526',174,217);
INSERT INTO "communes" VALUES('28','Montigny-sur-Avre','05',257,275,7.26,'-1460','54144',135,183);
INSERT INTO "communes" VALUES('28','Moulhard','03',158,142,11.17,'-1435','53565',169,237);
INSERT INTO "communes" VALUES('28','Puiseux','10',118,114,5.22,'-1068','54041',142,183);
INSERT INTO "communes" VALUES('28','Bouglainval','18',731,801,14.2,'-920','53960',122,171);
INSERT INTO "communes" VALUES('28','Gas','18',760,634,11.97,'-743','53962',107,161);
INSERT INTO "communes" VALUES('28','Yèvres','06',1708,1708,41.75,'-1274','53567',137,182);
INSERT INTO "communes" VALUES('28','Abondant','01',2160,1743,34.8,'-997','54205',69,141);
INSERT INTO "communes" VALUES('28','Poinville','16',136,110,8.08,'-482','53532',124,137);
INSERT INTO "communes" VALUES('28','Meaucé','17',509,559,11.33,'-1483','53873',189,219);
INSERT INTO "communes" VALUES('28','Moléans','09',475,476,11.09,'-1052','53464',107,142);
INSERT INTO "communes" VALUES('28','Saint-Symphorien-le-Château','18',1338,834,9.39,'-640','53908',122,162);
INSERT INTO "communes" VALUES('28','Allaines-Mervilliers','16',336,274,22.22,'-569','53561',124,142);
INSERT INTO "communes" VALUES('28','Dangers','12',417,382,7.39,'-1096','53899',182,223);
INSERT INTO "communes" VALUES('28','Saint-Christophe','09',147,143,6.13,'-1078','53475',107,152);
INSERT INTO "communes" VALUES('28','Chapelle-Royale','03',350,339,9.89,'-1429','53494',158,192);
INSERT INTO "communes" VALUES('28','Ouarville','24',579,549,20.13,'-625','53727',146,154);
INSERT INTO "communes" VALUES('28','Rouvray-Saint-Florentin','24',197,179,9.36,'-855','53620',137,156);
INSERT INTO "communes" VALUES('28','Garancières-en-Drouais','27',298,254,6.46,'-1168','54113',130,160);
INSERT INTO "communes" VALUES('28','Fontaine-Simon','17',901,839,16.88,'-1464','53893',189,254);
INSERT INTO "communes" VALUES('28','Voise','02',285,249,10.39,'-699','53778',128,154);
INSERT INTO "communes" VALUES('28','Boissy-lès-Perche','14',511,534,33.66,'-1609','54095',165,233);
INSERT INTO "communes" VALUES('28','Orlu','02',47,31,5.22,'-464','53745',133,151);
INSERT INTO "communes" VALUES('28','Saulnières','27',623,538,10.65,'-1183','54067',116,169);
INSERT INTO "communes" VALUES('28','Prunay-le-Gillon','25',992,892,25.36,'-779','53739',143,156);
INSERT INTO "communes" VALUES('28','Montigny-le-Gannelon','11',498,425,8.95,'-1225','53349',92,152);
INSERT INTO "communes" VALUES('28','Happonvilliers','23',319,267,18.96,'-1361','53694',183,256);
INSERT INTO "communes" VALUES('28','Montlandon','17',265,209,2.87,'-1459','53770',225,283);
INSERT INTO "communes" VALUES('28','Fontaine-les-Ribouts','10',236,209,7.12,'-1201','54060',120,174);
INSERT INTO "communes" VALUES('28','Villeneuve-Saint-Nicolas','24',143,102,5.16,'-856','53653',151,166);
INSERT INTO "communes" VALUES('28','Authon-du-Perche','03',1301,1287,16.69,'-1605','53551',169,267);
INSERT INTO "communes" VALUES('28','Margon','20',1203,1225,12.13,'-1670','53706',103,185);
INSERT INTO "communes" VALUES('28','Nogent-sur-Eure','15',504,441,9.22,'-1082','53766',137,174);
INSERT INTO "communes" VALUES('28','Châtelets','05',98,92,9.92,'-1472','54057',163,202);
INSERT INTO "communes" VALUES('28','Dampierre-sur-Avre','05',701,610,18.27,'-1319','54181',106,177);
INSERT INTO "communes" VALUES('28','Saint-Maixme-Hauterive','10',453,350,31.95,'-1283','53987',151,224);
INSERT INTO "communes" VALUES('28','Beauvilliers','24',303,258,23.05,'-758','53664',136,151);
INSERT INTO "communes" VALUES('28','Oinville-sous-Auneau','02',340,279,10.38,'-676','53851',120,160);
INSERT INTO "communes" VALUES('28','Chartainvilliers','18',738,630,9.07,'-872','53938',109,167);
INSERT INTO "communes" VALUES('28','Louvilliers-lès-Perche','22',160,137,14.5,'-1398','54026',161,212);
INSERT INTO "communes" VALUES('28','Montreuil','27',510,490,6.21,'-1075','54196',68,135);
INSERT INTO "communes" VALUES('28','Boutigny-Prouais','19',1809,1532,32.5,'-834','54161',109,173);
INSERT INTO "communes" VALUES('28','La Chapelle-d''Aunainville','02',297,263,7.5,'-580','53805',138,156);
INSERT INTO "communes" VALUES('28','Tillay-le-Péneux','21',355,293,22.19,'-624','53511',118,141);
INSERT INTO "communes" VALUES('28','Néron','19',598,659,19.04,'-913','54003',102,161);
INSERT INTO "communes" VALUES('28','Charbonnières','03',262,259,20.91,'-1556','53547',192,245);
INSERT INTO "communes" VALUES('28','Louville-la-Chenard','24',282,239,19.51,'-610','53694',142,155);
INSERT INTO "communes" VALUES('28','Manou','17',570,511,13.38,'-1504','53910',194,277);
INSERT INTO "communes" VALUES('28','<NAME>','23',203,163,12.5,'-1431','53639',189,260);
INSERT INTO "communes" VALUES('28','Villampuy','09',320,228,16.71,'-919','53372',124,135);
INSERT INTO "communes" VALUES('28','Senonches','22',3148,3141,62.48,'-1451','53957',183,278);
INSERT INTO "communes" VALUES('28','Landelles','12',569,532,10.35,'-1264','53854',166,212);
INSERT INTO "communes" VALUES('28','Maintenon','18',4473,4439,11.44,'-842','53987',97,166);
INSERT INTO "communes" VALUES('28','Rouvres','01',875,771,16.24,'-946','54266',64,132);
INSERT INTO "communes" VALUES('28','Bréchamps','19',327,303,5.43,'-906','54080',89,135);
INSERT INTO "communes" VALUES('28','Chapelle-Guillaume','03',210,188,19.86,'-1591','53459',184,251);
INSERT INTO "communes" VALUES('28','Étilleux','03',249,188,8.35,'-1682','53593',162,265);
INSERT INTO "communes" VALUES('28','Villiers-Saint-Orien','04',168,156,15.11,'-941','53482',112,144);
INSERT INTO "communes" VALUES('28','Gohory','06',329,222,9.47,'-1230','53518',161,180);
INSERT INTO "communes" VALUES('28','Courbehaye','21',124,129,19.7,'-808','53509',113,141);
INSERT INTO "communes" VALUES('28','Crécy-Couvé','27',272,281,6.65,'-1172','54077',107,166);
INSERT INTO "communes" VALUES('28','Ardelles','10',224,162,10.4,'-1293','53940',193,247);
INSERT INTO "communes" VALUES('28','Trancrainville','16',177,169,11.61,'-529','53599',124,142);
INSERT INTO "communes" VALUES('28','Saint-Rémy-sur-Avre','05',3701,3553,13.05,'-1216','54179',90,164);
INSERT INTO "communes" VALUES('28','Épernon','18',5367,5499,6.45,'-736','54012',110,165);
INSERT INTO "communes" VALUES('28','Chassant','23',323,298,4.46,'-1416','53661',191,237);
INSERT INTO "communes" VALUES('28','Saint-Éman','15',113,143,4.6,'-1243','53691',153,199);
INSERT INTO "communes" VALUES('28','Sours','25',1827,1666,33.15,'-822','53789',136,158);
INSERT INTO "communes" VALUES('28','Havelu','01',116,102,3.7,'-892','54209',124,137);
INSERT INTO "communes" VALUES('28','Béville-le-Comte','02',1458,1335,20.12,'-692','53818',122,158);
INSERT INTO "communes" VALUES('28','Champrond-en-Perchet','20',401,397,9.02,'-1631','53679',145,236);
INSERT INTO "communes" VALUES('28','Levainville','02',406,292,5.55,'-660','53876',117,156);
INSERT INTO "communes" VALUES('28','Lumeau','21',187,177,15.28,'-612','53462',120,134);
INSERT INTO "communes" VALUES('28','Luplanté','15',395,318,16.65,'-1042','53667',133,162);
INSERT INTO "communes" VALUES('28','Baigneaux','21',221,196,11.78,'-578','53476',119,136);
INSERT INTO "communes" VALUES('28','Saint-Hilaire-sur-Yerre','11',500,560,16.84,'-1202','53364',95,155);
INSERT INTO "communes" VALUES('28','Dancy','04',229,179,9.9,'-971','53500',128,151);
INSERT INTO "communes" VALUES('28','Villemeux-sur-Eure','19',1620,1386,18.59,'-972','54082',80,141);
INSERT INTO "communes" VALUES('28','Marboué','09',1137,1117,26.56,'-1119','53459',106,158);
INSERT INTO "communes" VALUES('28','Roinville','02',387,349,6.83,'-653','53828',123,156);
INSERT INTO "communes" VALUES('28','Châtillon-en-Dunois','11',760,716,37.19,'-1278','53462',144,182);
INSERT INTO "communes" VALUES('28','Thiville','09',368,354,27.8,'-1068','53361',108,140);
INSERT INTO "communes" VALUES('28','Soize','03',309,252,18.13,'-1610','53520',162,253);
INSERT INTO "communes" VALUES('28','Corvées-les-Yys','17',314,214,13.51,'-1329','53736',196,257);
INSERT INTO "communes" VALUES('28','Germainville','13',322,297,8.67,'-949','54157',127,139);
INSERT INTO "communes" VALUES('28','Oysonville','02',498,471,9.63,'-425','53771',143,154);
INSERT INTO "communes" VALUES('28','Saint-Denis-les-Ponts','09',1802,1544,13.8,'-1159','53408',100,152);
INSERT INTO "communes" VALUES('28','Allonnes','24',337,264,10.25,'-755','53700',141,154);
INSERT INTO "communes" VALUES('28','Lèves','30',5669,4308,7.51,'-950','53854',120,169);
INSERT INTO "communes" VALUES('28','Bullainville','04',116,83,6.66,'-918','53523',131,141);
INSERT INTO "communes" VALUES('28','Pontgouin','12',1049,879,25.16,'-1306','53867',173,273);
INSERT INTO "communes" VALUES('28','Ormoy','19',248,180,9.04,'-959','54025',111,155);
INSERT INTO "communes" VALUES('28','Saint-Prest','07',2040,2259,16.71,'-895','53880',112,165);
INSERT INTO "communes" VALUES('28','Pré-Saint-Évroult','04',298,277,21.51,'-965','53538',127,141);
INSERT INTO "communes" VALUES('28','Beaumont-les-Autels','03',459,450,20.98,'-1530','53619',184,278);
INSERT INTO "communes" VALUES('28','Béthonvilliers','03',144,133,12.33,'-1585','53579',156,261);
INSERT INTO "communes" VALUES('28','Lucé','29',15926,17723,6.06,'-968','53820',142,162);
INSERT INTO "communes" VALUES('28','Saint-Victor-de-Buthon','17',522,461,27.72,'-1520','53788',153,274);
INSERT INTO "communes" VALUES('28','Chartres','99',38931,40402,16.85,'-943','53830',121,161);
INSERT INTO "communes" VALUES('28','Francourville','02',777,797,18.46,'-750','53783',137,157);
INSERT INTO "communes" VALUES('28','Umpeau','02',429,381,11.49,'-739','53863',143,161);
INSERT INTO "communes" VALUES('28','Montboissier','04',329,280,13.94,'-1049','53579',121,144);
INSERT INTO "communes" VALUES('28','Oinville-Saint-Liphard','16',267,269,21.77,'-466','53593',132,142);
INSERT INTO "communes" VALUES('28','Pierres','18',2790,2691,10.41,'-855','53990',95,159);
INSERT INTO "communes" VALUES('28','Maisons','02',318,254,9.5,'-546','53787',142,161);
INSERT INTO "communes" VALUES('28','Champrond-en-Gâtine','17',541,416,33.68,'-1401','53780',207,277);
INSERT INTO "communes" VALUES('28','Saint-Luperce','12',875,850,14.35,'-1134','53818',148,176);
INSERT INTO "communes" VALUES('28','Saint-Pellerin','11',362,319,13.68,'-1328','53413',126,162);
INSERT INTO "communes" VALUES('28','Le Boullay-les-Deux-Églises','10',248,213,13.82,'-1119','54030',127,188);
INSERT INTO "communes" VALUES('28','<NAME>','14',729,817,39.81,'-1595','54013',214,286);
INSERT INTO "communes" VALUES('28','Coulombs','19',1433,1263,12.48,'-880','54059',91,148);
INSERT INTO "communes" VALUES('28','Saint-Léger-des-Aubées','02',254,237,13.18,'-663','53791',127,154);
INSERT INTO "communes" VALUES('28','Maillebois','10',984,917,41,'-1320','54033',137,191);
INSERT INTO "communes" VALUES('28','Conie-Molitard','09',379,338,15.17,'-996','53460',110,149);
INSERT INTO "communes" VALUES('28','Luray','13',1590,1309,4.46,'-1044','54135',81,137);
INSERT INTO "communes" VALUES('28','Jouy','07',1913,1810,12.89,'-874','53902',106,161);
INSERT INTO "communes" VALUES('28','Yermenonville','18',571,512,5.04,'-796','53951',102,154);
INSERT INTO "communes" VALUES('28','Santeuil','02',274,242,9.24,'-670','53764',139,152);
INSERT INTO "communes" VALUES('28','Cormainville','21',231,192,17.83,'-811','53486',113,138);
INSERT INTO "communes" VALUES('28','Douy','11',548,451,6.84,'-1185','53374',97,146);
INSERT INTO "communes" VALUES('28','Briconville','07',124,113,6.26,'-1054','53919',162,195);
INSERT INTO "communes" VALUES('28','Gommerville','16',596,473,27.23,'-435','53717',123,151);
INSERT INTO "communes" VALUES('28','Villars','24',155,112,8.34,'-872','53590',137,148);
INSERT INTO "communes" VALUES('28','Varize','21',211,167,13.85,'-914','53439',112,137);
INSERT INTO "communes" VALUES('28','Bazoches-en-Dunois','21',261,237,18.68,'-857','53448',112,139);
INSERT INTO "communes" VALUES('28','Santilly','16',356,305,17.66,'-516','53496',123,139);
INSERT INTO "communes" VALUES('28','Vitray-en-Beauce','04',353,289,10.92,'-1018','53641',133,157);
INSERT INTO "communes" VALUES('28','Saint-Éliph','17',870,756,23.46,'-1456','53834',189,252);
INSERT INTO "communes" VALUES('28','La Saucelle','22',167,164,14.26,'-1452','54034',175,215);
INSERT INTO "communes" VALUES('28','Combres','23',517,368,14.9,'-1414','53694',203,266);
INSERT INTO "communes" VALUES('28','Unverre','06',1229,978,62.33,'-1381','53555',153,235);
INSERT INTO "communes" VALUES('28','Mittainvilliers','12',469,390,11.72,'-1141','53887',203,239);
INSERT INTO "communes" VALUES('28','Aunay-sous-Crécy','28',568,647,8.45,'-1146','54078',106,172);
INSERT INTO "communes" VALUES('28','Belhomert-Guéhouville','17',824,808,10.95,'-1421','53895',182,271);
INSERT INTO "communes" VALUES('28','<NAME>','03',1319,1252,37.44,'-1507','53488',164,229);
INSERT INTO "communes" VALUES('28','<NAME>','19',436,342,10.92,'-1035','54053',115,162);
INSERT INTO "communes" VALUES('28','Cherisy','13',1865,1768,12.38,'-1016','54163',74,139);
INSERT INTO "communes" VALUES('28','Champagne','01',240,179,2.21,'-853','54181',121,136);
INSERT INTO "communes" VALUES('28','Thivars','26',951,959,9.22,'-984','53754',131,161);
INSERT INTO "communes" VALUES('28','Méréglise','15',97,70,4.41,'-1279','53656',155,183);
INSERT INTO "communes" VALUES('28','Bû','01',1849,1691,22.6,'-935','54218',89,141);
INSERT INTO "communes" VALUES('28','Gellainville','25',519,409,12.01,'-897','53787',137,156);
INSERT INTO "communes" VALUES('28','Saint-Lubin-des-Joncherets','05',4193,4354,14.46,'-1271','54185',97,171);
INSERT INTO "communes" VALUES('28','Fresnay-le-Gilmert','07',201,221,6.03,'-1021','53905',150,175);
INSERT INTO "communes" VALUES('28','Lutz-en-Dunois','09',431,392,27.48,'-1025','53399',122,138);
INSERT INTO "communes" VALUES('28','Lamblore','14',404,375,10.8,'-1576','54028',214,252);
INSERT INTO "communes" VALUES('28','Saint-Avit-les-Guespières','06',341,307,12.64,'-1184','53634',137,167);
INSERT INTO "communes" VALUES('28','Cloyes-sur-le-Loir','11',2715,2639,19.85,'-1224','53330',92,152);
INSERT INTO "communes" VALUES('28','<NAME>','09',1032,1056,13.31,'-1137','53397',102,146);
INSERT INTO "communes" VALUES('28','Escorpain','05',264,225,9.42,'-1253','54135',129,167);
INSERT INTO "communes" VALUES('28','Coudreceau','23',432,403,13.31,'-1571','53717',128,281);
INSERT INTO "communes" VALUES('28','<NAME>','05',191,142,5.9,'-1491','54053',179,212);
INSERT INTO "communes" VALUES('28','Garancières-en-Beauce','02',233,230,11.26,'-462','53818',147,157);
INSERT INTO "communes" VALUES('28','Vert-en-Drouais','27',1121,1043,9.7,'-1157','54178',80,140);
INSERT INTO "communes" VALUES('28','Bailleau-Armenonville','18',1390,1180,17.46,'-762','53925',107,158);
INSERT INTO "communes" VALUES('28','Charonville','15',291,237,9.66,'-1147','53645',137,162);
INSERT INTO "communes" VALUES('28','Garnay','28',911,970,14.13,'-1110','54117',94,144);
INSERT INTO "communes" VALUES('28','Villeau','24',172,113,13.79,'-819','53601',139,148);
INSERT INTO "communes" VALUES('28','Favières','10',497,414,12.69,'-1232','53922',206,256);
INSERT INTO "communes" VALUES('28','Clévilliers','07',748,654,15.78,'-1057','53937',171,215);
INSERT INTO "communes" VALUES('28','Terminiers','21',990,917,31.72,'-663','53425',121,136);
INSERT INTO "communes" VALUES('28','Frétigny','23',492,429,22.99,'-1518','53747',158,281);
INSERT INTO "communes" VALUES('28','Gouillons','16',339,317,12.04,'-552','53715',139,152);
INSERT INTO "communes" VALUES('28','Neuvy-en-Dunois','04',336,310,25.87,'-886','53564',132,146);
INSERT INTO "communes" VALUES('28','Nottonville','21',313,252,24.74,'-923','53458',112,143);
INSERT INTO "communes" VALUES('28','Vichères','20',319,254,12.27,'-1582','53632',152,286);
INSERT INTO "communes" VALUES('28','Flacey','04',223,193,13.99,'-1096','53497',118,167);
INSERT INTO "communes" VALUES('28','Poupry','21',103,110,14.48,'-553','53444',118,129);
INSERT INTO "communes" VALUES('28','<NAME>','01',1004,924,8.39,'-952','54314',52,168);
INSERT INTO "communes" VALUES('28','Magny','15',663,518,13.03,'-1193','53722',159,192);
INSERT INTO "communes" VALUES('28','Morvilliers','14',142,129,9.92,'-1555','54049',180,229);
INSERT INTO "communes" VALUES('28','Thimert-Gâtelles','10',1124,929,42.67,'-1206','53966',174,254);
INSERT INTO "communes" VALUES('28','Pinthières','19',182,132,4.01,'-853','54113',131,153);
INSERT INTO "communes" VALUES('28','<NAME>','17',3483,3735,7.27,'-1468','53857',192,243);
INSERT INTO "communes" VALUES('28','Charpont','13',564,491,7.12,'-997','54112',81,135);
INSERT INTO "communes" VALUES('28','Houx','18',801,653,6.24,'-797','53962',102,142);
INSERT INTO "communes" VALUES('28','Anet','01',2641,2650,7.85,'-997','54284',57,132);
INSERT INTO "communes" VALUES('28','Saint-Cloud-en-Dunois','09',230,164,8.78,'-963','53378',127,136);
INSERT INTO "communes" VALUES('28','Croisilles','19',465,383,5.72,'-925','54099',104,135);
INSERT INTO "communes" VALUES('28','Autheuil','11',234,217,16.07,'-1163','53342',98,141);
INSERT INTO "communes" VALUES('28','Dreux','97',31031,31822,24.27,'-1079','54152',75,139);
INSERT INTO "communes" VALUES('28','Boisville-la-Saint-Père','24',710,702,24.92,'-716','53697',140,154);
INSERT INTO "communes" VALUES('28','<NAME>','14',185,159,14.41,'-1635','54049',199,240);
INSERT INTO "communes" VALUES('28','Gallardon','18',3485,3510,11.27,'-718','53916',107,158);
INSERT INTO "communes" VALUES('28','Ollé','15',600,550,13.12,'-1155','53764',152,193);
INSERT INTO "communes" VALUES('28','Logron','09',565,502,22.64,'-1194','53497',146,174);
INSERT INTO "communes" VALUES('28','Vieuvicq','06',465,399,15.62,'-1248','53627',152,177);
INSERT INTO "communes" VALUES('28','Viabon','24',320,248,36.43,'-705','53574',117,145);
INSERT INTO "communes" VALUES('28','Brezolles','05',1783,1707,14.23,'-1405','54101',144,185);
INSERT INTO "communes" VALUES('28','Montharville','04',113,77,6.34,'-1117','53538',144,182);
INSERT INTO "communes" VALUES('28','Saint-Ouen-Marchefroy','01',336,294,9.21,'-893','54286',72,161);
INSERT INTO "communes" VALUES('28','Marolles-les-Buis','23',249,212,13.08,'-1565','53735',137,267);
INSERT INTO "communes" VALUES('28','Courtalain','11',616,558,2.47,'-1332','53422',130,160);
INSERT INTO "communes" VALUES('28','Saint-Lubin-de-la-Haye','01',903,786,14.32,'-850','54244',79,136);
INSERT INTO "communes" VALUES('28','Houville-la-Branche','02',483,450,13.88,'-772','53826',139,159);
INSERT INTO "communes" VALUES('28','Beauche','05',292,310,16.6,'-1523','54094',168,208);
INSERT INTO "communes" VALUES('28','Bailleau-le-Pin','15',1511,1457,16.54,'-1118','53741',154,185);
INSERT INTO "communes" VALUES('28','Baignolet','24',130,115,10.07,'-794','53525',118,141);
INSERT INTO "communes" VALUES('28','Rouvray-Saint-Denis','16',465,359,19.35,'-435','53643',129,147);
INSERT INTO "communes" VALUES('28','Villiers-le-Morhier','19',1345,1226,10.39,'-860','54024',92,150);
INSERT INTO "communes" VALUES('28','Ymonville','24',496,436,20.69,'-651','53624',120,148);
INSERT INTO "communes" VALUES('28','Allainville','27',142,120,5.28,'-1151','54136',118,147);
INSERT INTO "communes" VALUES('28','Marville-Moutiers-Brûlé','28',906,827,20.24,'-1053','54083',110,175);
INSERT INTO "communes" VALUES('28','Villebon','12',72,72,2.16,'-1255','53769',182,212);
INSERT INTO "communes" VALUES('28','Nogent-le-Roi','19',4158,4145,13.01,'-898','54054',91,138);
INSERT INTO "communes" VALUES('28','Moutiers','24',250,217,21.2,'-622','53664',138,154);
INSERT INTO "communes" VALUES('28','<NAME>','01',517,414,9.17,'-888','54329',108,167);
INSERT INTO "communes" VALUES('28','<NAME>avril','12',327,280,23.8,'-1342','53849',178,247);
INSERT INTO "communes" VALUES('28','Saussay','01',1047,981,4.59,'-1031','54285',60,122);
INSERT INTO "communes" VALUES('28','Blandainville','15',231,196,13.68,'-1161','53676',152,173);
INSERT INTO "communes" VALUES('28','Vernouillet','28',11751,11490,12.11,'-1084','54134',89,137);
INSERT INTO "communes" VALUES('28','Revercourt','05',30,44,5.53,'-1391','54135',132,180);
INSERT INTO "communes" VALUES('28','Laons','05',728,660,15.78,'-1289','54116',149,180);
INSERT INTO "communes" VALUES('28','Meslay-le-Grenet','15',292,336,8.94,'-1060','53742',140,174);
INSERT INTO "communes" VALUES('28','Châtelliers-Notre-Dame','15',122,117,10.87,'-1258','53721',159,213);
INSERT INTO "communes" VALUES('28','Réclainville','24',181,143,9.8,'-655','53710',144,154);
INSERT INTO "communes" VALUES('28','Argenvilliers','20',368,335,18.35,'-1533','53623',173,283);
INSERT INTO "communes" VALUES('28','Saint-Arnoult-des-Bois','12',889,667,20.67,'-1193','53881',163,247);
INSERT INTO "communes" VALUES('28','Lanneray','09',569,498,26.63,'-1218','53430',110,162);
INSERT INTO "communes" VALUES('28','Alluyes','04',737,619,19.58,'-1084','53588',121,154);
INSERT INTO "communes" VALUES('28','Saint-Aubin-des-Bois','30',968,987,18.09,'-1082','53853',154,242);
INSERT INTO "communes" VALUES('28','Orgères-en-Beauce','21',1120,1024,15.24,'-724','53496',117,139);
INSERT INTO "communes" VALUES('28','Bérou-la-Mulotière','05',331,298,13.2,'-1432','54161',122,182);
INSERT INTO "communes" VALUES('28','Louvilliers-en-Drouais','27',205,172,4.14,'-1165','54146',124,143);
INSERT INTO "communes" VALUES('28','Mézières-en-Drouais','13',1061,1060,8.4,'-1013','54138',81,134);
INSERT INTO "communes" VALUES('28','Châteauneuf-en-Thymerais','10',2607,2423,4.07,'-1217','53978',183,223);
INSERT INTO "communes" VALUES('28','Crucey-Villages','05',475,460,43.97,'-1399','54075',154,195);
INSERT INTO "communes" VALUES('28','Ver-lès-Chartres','26',809,723,9.46,'-954','53761',128,161);
INSERT INTO "communes" VALUES('28','Hanches','18',2619,2313,16.04,'-766','54003',107,165);
INSERT INTO "communes" VALUES('28','Fruncé','12',370,298,16.97,'-1236','53784',174,229);
INSERT INTO "communes" VALUES('28','Sandarville','15',391,342,9.51,'-1094','53720',159,176);
INSERT INTO "communes" VALUES('28','Léthuin','02',213,159,7.18,'-520','53742',146,156);
INSERT INTO "communes" VALUES('28','Vierville','02',115,84,6.81,'-469','53761',144,156);
INSERT INTO "communes" VALUES('28','Trizay-lès-Bonneval','04',296,253,9.77,'-1112','53556',123,182);
INSERT INTO "communes" VALUES('28','Fresnay-l''Évêque','16',697,560,29.04,'-571','53628',121,146);
INSERT INTO "communes" VALUES('28','Donnemain-Saint-Mamès','09',692,612,12.78,'-1072','53454',106,143);
INSERT INTO "communes" VALUES('28','Rueil-la-Gadelière','05',499,476,18.44,'-1511','54128',147,192);
INSERT INTO "communes" VALUES('28','Pré-Saint-Martin','04',164,139,7.25,'-956','53579',133,143);
INSERT INTO "communes" VALUES('28','Meslay-le-Vidame','04',503,403,14.67,'-973','53644',138,158);
INSERT INTO "communes" VALUES('28','Guilleville','16',180,173,13.41,'-581','53583',122,142);
INSERT INTO "communes" VALUES('28','Bouville','04',538,419,15.65,'-1065','53622',127,152);
INSERT INTO "communes" VALUES('28','Sancheville','04',798,704,21.77,'-844','53547',124,145);
INSERT INTO "communes" VALUES('28','Tréon','28',1367,1255,10.93,'-1124','54084',102,172);
INSERT INTO "communes" VALUES('28','Chuisnes','12',1033,815,22.98,'-1254','53830',162,227);
INSERT INTO "communes" VALUES('28','Bleury','18',488,422,7.85,'-654','53911',113,156);
INSERT INTO "communes" VALUES('28','Arrou','11',1653,1770,64.98,'-1348','53445',138,220);
INSERT INTO "communes" VALUES('28','Romilly-sur-Aigre','11',500,465,12.14,'-1171','53312',91,131);
INSERT INTO "communes" VALUES('28','Châteaudun','09',13640,14556,28.48,'-1110','53412',102,152);
INSERT INTO "communes" VALUES('28','Gasville-Oisème','07',1246,1136,9.09,'-889','53854',117,151);
INSERT INTO "communes" VALUES('28','Germignonville','24',240,185,20.92,'-667','53547',117,141);
INSERT INTO "communes" VALUES('28','Droue-sur-Drouette','18',1281,1121,5.26,'-706','54001',112,162);
INSERT INTO "communes" VALUES('28','<NAME>','16',402,371,7.91,'-524','53565',132,150);
INSERT INTO "communes" VALUES('28','<NAME>','22',340,289,16.34,'-1379','54000',168,224);
INSERT INTO "communes" VALUES('28','<NAME>-Saint-Loup','15',566,483,20.16,'-1010','53686',148,166);
INSERT INTO "communes" VALUES('28','Toury','16',2613,2666,18.72,'-445','53549',125,137);
INSERT INTO "communes" VALUES('28','Châtaincourt','05',240,262,14.82,'-1232','54105',139,176);
INSERT INTO "communes" VALUES('28','Montigny-le-Chartif','23',590,455,25.96,'-1313','53651',163,229);
INSERT INTO "communes" VALUES('28','Luigny','03',425,376,15.88,'-1459','53601',173,257);
INSERT INTO "communes" VALUES('28','Guainville','01',670,614,14.12,'-938','54350',52,145);
INSERT INTO "communes" VALUES('28','Miermaigne','03',218,202,10.89,'-1493','53607',187,271);
INSERT INTO "communes" VALUES('28','Dambron','21',89,104,11.99,'-517','53460',119,130);
INSERT INTO "communes" VALUES('28','Jallans','09',795,751,8.99,'-1073','53417',118,134);
INSERT INTO "communes" VALUES('28','Fains-la-Folie','24',322,264,21.65,'-774','53583',132,146);
INSERT INTO "communes" VALUES('28','Nogent-le-Phaye','25',1317,1196,15.01,'-844','53830',127,151);
INSERT INTO "communes" VALUES('28','Marchezais','01',305,209,2.19,'-920','54191',132,139);
INSERT INTO "communes" VALUES('28','Boncourt','01',276,239,3.71,'-973','54274',62,125);
INSERT INTO "communes" VALUES('28','Champseru','02',291,302,14.99,'-755','53880',134,157);
INSERT INTO "communes" VALUES('28','Goussainville','01',927,734,10.83,'-869','54196',87,137);
INSERT INTO "communes" VALUES('28','Theuville','24',424,421,23.67,'-818','53706',141,166);
INSERT INTO "communes" VALUES('28','Cintray','29',435,389,4,'-1079','53832',148,166);
INSERT INTO "communes" VALUES('28','Soulaires','18',450,423,5.87,'-832','53907',106,157);
INSERT INTO "communes" VALUES('28','Bonneval','04',4637,4288,28.82,'-1054','53535',112,175);
INSERT INTO "communes" VALUES('28','Digny','22',1033,841,39.99,'-1315','53929',184,276);
INSERT INTO "communes" VALUES('28','Broué','01',907,762,12.03,'-905','54165',131,152);
INSERT INTO "communes" VALUES('28','<NAME>','20',177,154,9.19,'-1563','53669',190,286);
INSERT INTO "communes" VALUES('28','Boisgasson','11',110,114,7.5,'-1315','53386',148,161);
INSERT INTO "communes" VALUES('28','Saint-Maur-sur-le-Loir','04',376,389,16.54,'-1020','53503',112,153);
INSERT INTO "communes" VALUES('28','Bazoches-les-Hautes','21',340,288,16.98,'-587','53509',120,141);
INSERT INTO "communes" VALUES('28','Charray','11',104,121,10.98,'-1122','53302',97,132);
INSERT INTO "communes" VALUES('28','Saint-Denis-des-Puits','12',133,116,13.53,'-1288','53769',189,248);
INSERT INTO "communes" VALUES('28','Mainvilliers','30',10324,10009,11.92,'-972','53837',133,165);
INSERT INTO "communes" VALUES('28','Jaudrais','22',357,261,15.3,'-1344','53975',165,224);
INSERT INTO "communes" VALUES('28','Tremblay-les-Villages','10',2248,1819,63.31,'-1061','54001',130,227);
INSERT INTO "communes" VALUES('28','Cernay','15',79,71,7.89,'-1216','53761',171,201);
INSERT INTO "communes" VALUES('28','Écrosnes','18',785,742,23.27,'-676','53939',127,166);
INSERT INTO "communes" VALUES('28','Ouerre','13',674,588,12.73,'-967','54112',86,136);
INSERT INTO "communes" VALUES('28','<NAME>','04',708,538,23.35,'-946','53604',132,151);
INSERT INTO "communes" VALUES('28','Lormaye','19',645,576,1.43,'-886','54052',91,129);
INSERT INTO "communes" VALUES('28','Poisvilliers','07',410,259,10.57,'-964','53898',145,171);
INSERT INTO "communes" VALUES('28','Langey','11',355,315,19.48,'-1278','53382',110,159);
INSERT INTO "communes" VALUES('28','Gilles','01',564,544,7.26,'-913','54349',82,166);
INSERT INTO "communes" VALUES('28','Saint-Piat','18',1145,1091,11.29,'-836','53942',101,162);
INSERT INTO "communes" VALUES('28','Courville-sur-Eure','12',2794,2736,11.13,'-1218','53833',155,194);
INSERT INTO "communes" VALUES('28','Champhol','07',3470,2901,5.37,'-927','53854',117,156);
INSERT INTO "communes" VALUES('28','Auneau','02',4133,3883,17.05,'-626','53847',120,157);
INSERT INTO "communes" VALUES('28','Berchères-les-Pierres','25',985,916,19.83,'-870','53761',136,156);
INSERT INTO "communes" VALUES('28','Nonvilliers-Grandhoux','23',413,316,21.61,'-1294','53714',165,256);
INSERT INTO "communes" VALUES('28','Prudemanche','05',252,196,15.43,'-1333','54129',122,184);
INSERT INTO "communes" VALUES('28','Nogent-le-Rotrou','20',10884,11531,23.49,'-1683','53691',97,213);
INSERT INTO "communes" VALUES('28','Frazé','23',513,493,27.55,'-1375','53624',167,233);
INSERT INTO "communes" VALUES('28','Coudray-au-Perche','03',384,328,14.64,'-1644','53591',134,270);
INSERT INTO "communes" VALUES('28','Morainville','02',21,28,3.82,'-565','53755',146,152);
INSERT INTO "communes" VALUES('28','Luisant','26',6834,6590,4.43,'-956','53813',125,158);
INSERT INTO "communes" VALUES('28','Châtenay','02',240,171,10.27,'-503','53731',140,154);
INSERT INTO "communes" VALUES('28','<NAME>','13',175,169,5.38,'-928','54143',118,136);
INSERT INTO "communes" VALUES('28','Fontaine-la-Guyon','12',1545,1020,14.59,'-1138','53858',158,237);
INSERT INTO "communes" VALUES('28','Fontenay-sur-Eure','26',839,708,13.8,'-1033','53774',135,161);
INSERT INTO "communes" VALUES('28','Senantes','19',622,524,7.57,'-839','54058',112,149);
INSERT INTO "communes" VALUES('28','Sainte-Gemme-Moronval','13',1007,691,5.46,'-1024','54153',75,135);
INSERT INTO "communes" VALUES('28','Rohaire','14',152,147,10.01,'-1652','54078',185,218);
INSERT INTO "communes" VALUES('28','Boissy-en-Drouais','27',240,238,6.03,'-1195','54143',115,151);
INSERT INTO "communes" VALUES('28','Saint-Lubin-de-Cravant','05',62,60,6.93,'-1387','54124',140,183);
INSERT INTO "communes" VALUES('28','<NAME>','11',270,209,19.11,'-1023','53317',106,134);
INSERT INTO "communes" VALUES('28','Saint-Denis-d''Authou','23',501,438,22.23,'-1500','53716',174,286);
INSERT INTO "communes" VALUES('28','Coltainville','07',927,761,18.02,'-833','53874',127,158);
INSERT INTO "communes" VALUES('28','Dangeau','06',952,775,39.63,'-1169','53565',130,184);
INSERT INTO "communes" VALUES('28','Friaize','17',231,204,10.53,'-1336','53813',199,247);
INSERT INTO "communes" VALUES('28','Sorel-Moussel','01',1767,1478,12.8,'-1061','54268',64,137);
INSERT INTO "communes" VALUES('28','Saint-Maurice-Saint-Germain','17',404,355,12.19,'-1399','53886',181,275);
INSERT INTO "communes" VALUES('28','Berchères-Saint-Germain','07',769,682,27.67,'-953','53929',137,195);
INSERT INTO "communes" VALUES('28','Corancez','26',395,458,6.8,'-912','53741',133,152);
INSERT INTO "communes" VALUES('28','Saint-Ange-et-Torçay','10',278,277,16.61,'-1235','54042',125,180);
INSERT INTO "communes" VALUES('28','Denonville','02',763,672,12.82,'-584','53769',142,155);
INSERT INTO "communes" VALUES('28','Ardelu','02',73,78,4.07,'-472','53726',142,151);
INSERT INTO "communes" VALUES('28','Dammarie','26',1566,1372,32.37,'-936','53714',136,164);
INSERT INTO "communes" VALUES('28','<NAME>','22',320,297,5.23,'-1470','53993',194,228);
INSERT INTO "communes" VALUES('28','<NAME>','19',573,483,12.87,'-1007','54042',110,176);
INSERT INTO "communes" VALUES('28','Barjouville','26',1619,1392,4.1,'-955','53787',126,157);
INSERT INTO "communes" VALUES('28','Saint-Laurent-la-Gâtine','19',445,401,6.95,'-902','54103',115,137);
INSERT INTO "communes" VALUES('28','Aunay-sous-Auneau','02',1406,1328,19.41,'-587','53824',127,161);
INSERT INTO "communes" VALUES('28','Marchéville','15',491,426,12.38,'-1205','53742',163,207);
INSERT INTO "communes" VALUES('28','Oulins','01',1158,797,10.08,'-962','54295',58,160);
INSERT INTO "communes" VALUES('28','Intréville','16',131,148,8.91,'-445','53663',136,148);
INSERT INTO "communes" VALUES('28','Mignières','26',815,683,13.04,'-1009','53733',136,168);
INSERT INTO "communes" VALUES('28','Saint-Sauveur-Marville','10',928,756,18.84,'-1175','53995',134,202);
INSERT INTO "communes" VALUES('28','Saint-Martin-de-Nigelles','18',1610,1148,12.31,'-808','54014',100,159);
INSERT INTO "communes" VALUES('28','Ozoir-le-Breuil','09',442,399,22.3,'-952','53348',120,136);
INSERT INTO "communes" VALUES('28','Brunelles','20',560,489,19.99,'-1603','53694',121,281);
INSERT INTO "communes" VALUES('28','Saint-Jean-Pierre-Fixte','20',280,291,6.91,'-1667','53659',109,199);
INSERT INTO "communes" VALUES('28','Illiers-Combray','15',3352,3225,33.6,'-1210','53667',144,204);
INSERT INTO "communes" VALUES('28','Montainville','24',318,334,15.35,'-880','53634',136,162);
INSERT INTO "communes" VALUES('28','Chauffours','15',281,264,7.5,'-1100','53773',146,168);
INSERT INTO "communes" VALUES('28','Saint-Jean-de-Rebervilliers','10',224,181,11.03,'-1206','54013',134,186);
INSERT INTO "communes" VALUES('28','La Puisaye','22',249,227,20.5,'-1534','54010',194,252);
INSERT INTO "communes" VALUES('28','Vérigny','12',299,215,13.04,'-1127','53912',177,236);
INSERT INTO "communes" VALUES('28','Levesville-la-Chenard','16',216,208,13.89,'-567','53669',136,149);
INSERT INTO "communes" VALUES('28','Bailleau-l''Évêque','30',1183,988,19.68,'-1044','53876',142,216);
INSERT INTO "communes" VALUES('28','Trizay-Coutretot-Saint-Serge','20',473,450,11.15,'-1633','53659',125,230);
INSERT INTO "communes" VALUES('28','Ermenonville-la-Petite','15',185,159,5.12,'-1094','53662',134,162);
INSERT INTO "communes" VALUES('28','Serville','01',361,294,5.62,'-946','54188',134,141);
INSERT INTO "communes" VALUES('28','Sainville','02',962,941,21.87,'-507','53795',137,161);
INSERT INTO "communes" VALUES('28','Thiron-Gardais','23',1100,1122,13.46,'-1491','53678',200,279);
INSERT INTO "communes" VALUES('28','Écluzelles','13',167,168,3.22,'-1014','54121',80,135);
INSERT INTO "communes" VALUES('28','<NAME>','11',402,410,8.41,'-1102','53314',97,132);
INSERT INTO "communes" VALUES('28','Dampierre-sous-Brou','06',498,446,14.56,'-1360','53571',152,227);
INSERT INTO "communes" VALUES('29','Loperhet','12',3602,3465,20.31,'-7380','53750',0,162);
INSERT INTO "communes" VALUES('29','Confort-Meilars','33',903,748,14.68,'-7514','53389',5,96);
INSERT INTO "communes" VALUES('29','Daoulas','12',1782,1792,5.42,'-7329','53734',0,97);
INSERT INTO "communes" VALUES('29','Lanrivoaré','39',1425,1293,14.89,'-7750','53860',22,104);
INSERT INTO "communes" VALUES('29','Plounévézel','07',1164,1015,24.42,'-6584','53666',75,181);
INSERT INTO "communes" VALUES('29','Plougasnou','19',3212,3397,33.94,'-6806','54106',0,94);
INSERT INTO "communes" VALUES('29','Plounévez-Lochrist','29',2404,2278,39.54,'-7276','54019',0,96);
INSERT INTO "communes" VALUES('29','Kerlouan','21',2284,2239,17.8,'-7448','54049',0,61);
INSERT INTO "communes" VALUES('29','Guiler-sur-Goyen','26',498,413,11.25,'-7440','53351',25,133);
INSERT INTO "communes" VALUES('29','Lothey','25',423,440,13.48,'-7071','53536',12,166);
INSERT INTO "communes" VALUES('29','Peumérit','26',781,663,19.59,'-7384','53265',6,127);
INSERT INTO "communes" VALUES('29','Plouescat','29',3609,3660,14.79,'-7234','54064',0,56);
INSERT INTO "communes" VALUES('29','Guipronvel','39',762,611,8.39,'-7679','53879',23,90);
INSERT INTO "communes" VALUES('29','Dinéault','08',1757,1390,45.96,'-7224','53577',0,326);
INSERT INTO "communes" VALUES('29','<NAME>','16',654,605,31.55,'-6878','53769',192,381);
INSERT INTO "communes" VALUES('29','Primelin','33',748,787,8.67,'-7720','53362',0,59);
INSERT INTO "communes" VALUES('29','<NAME>','28',583,408,22.79,'-7186','53771',35,171);
INSERT INTO "communes" VALUES('29','<NAME>','51',10762,10851,6.43,'-7481','53787',0,96);
INSERT INTO "communes" VALUES('29','Guiclan','43',2252,2028,42.64,'-6998','53945',3,131);
INSERT INTO "communes" VALUES('29','Tréogat','26',539,399,9.85,'-7399','53244',0,51);
INSERT INTO "communes" VALUES('29','Tréméven','36',2239,2017,15.42,'-6521','53221',3,97);
INSERT INTO "communes" VALUES('29','Saint-Yvi','37',2795,2391,27.05,'-6968','53297',26,161);
INSERT INTO "communes" VALUES('29','Plovan','26',674,612,15.75,'-7443','53240',0,85);
INSERT INTO "communes" VALUES('29','Kerlaz','08',810,803,11.45,'-7345','53436',2,137);
INSERT INTO "communes" VALUES('29','Guilers','44',7415,6948,18.98,'-7660','53805',0,96);
INSERT INTO "communes" VALUES('29','Hanvec','12',1959,1595,59.11,'-7219','53698',0,320);
INSERT INTO "communes" VALUES('29','<NAME>','24',1803,1529,9.5,'-7454','53927',22,85);
INSERT INTO "communes" VALUES('29','Saint-Vougay','31',923,800,15.1,'-7194','53994',54,102);
INSERT INTO "communes" VALUES('29','Locmaria-Berrien','16',229,283,17.2,'-6701','53727',74,210);
INSERT INTO "communes" VALUES('29','Locquénolé','43',808,716,0.85,'-6886','54027',0,81);
INSERT INTO "communes" VALUES('29','Lannilis','20',5293,4475,23.52,'-7618','53966',0,58);
INSERT INTO "communes" VALUES('29','Leuhan','09',791,754,32.75,'-6801','53444',97,246);
INSERT INTO "communes" VALUES('29','Saint-Hernin','07',748,755,29.29,'-6634','53576',59,308);
INSERT INTO "communes" VALUES('29','Sainte-Sève','22',871,788,9.98,'-6901','53953',29,121);
INSERT INTO "communes" VALUES('29','Milizac','39',3009,2889,33.23,'-7669','53853',32,101);
INSERT INTO "communes" VALUES('29','Beuzec-Cap-Sizun','33',1064,1038,34.54,'-7609','53417',0,99);
INSERT INTO "communes" VALUES('29','Plouédern','17',2793,2558,19.62,'-7313','53873',1,116);
INSERT INTO "communes" VALUES('29','Motreff','07',741,666,21.59,'-6546','53558',72,258);
INSERT INTO "communes" VALUES('29','Kergloff','07',939,748,24.94,'-6618','53638',67,172);
INSERT INTO "communes" VALUES('29','Plonévez-Porzay','08',1717,1582,29.23,'-7287','53473',0,126);
INSERT INTO "communes" VALUES('29','Loc-Eguiner-Saint-Thégonnec','40',320,336,8.02,'-7007','53848',83,181);
INSERT INTO "communes" VALUES('29','Saint-Frégant','21',692,547,8.41,'-7449','54002',7,76);
INSERT INTO "communes" VALUES('29','Saint-Thonan','17',1400,1164,11.29,'-7413','53866',34,116);
INSERT INTO "communes" VALUES('29','<NAME>-Maurice','28',1902,1704,12.04,'-7266','53858',5,163);
INSERT INTO "communes" VALUES('29','Guerlesquin','30',1369,1623,21.83,'-6583','53908',109,267);
INSERT INTO "communes" VALUES('29','Briec','06',5376,4602,67.87,'-7042','53446',44,225);
INSERT INTO "communes" VALUES('29','Saint-Ségal','08',996,825,16.2,'-7115','53601',2,140);
INSERT INTO "communes" VALUES('29','Tréflaouénan','31',534,434,8.16,'-7148','54031',19,96);
INSERT INTO "communes" VALUES('29','Plourin','27',1194,981,25.69,'-7804','53899',13,100);
INSERT INTO "communes" VALUES('29','Botsorhel','30',463,493,25.64,'-6642','53919',92,265);
INSERT INTO "communes" VALUES('29','Plomeur','34',3689,3203,29.69,'-7357','53156',0,37);
INSERT INTO "communes" VALUES('29','Guilligomarc''h','01',710,573,22.75,'-6391','53262',22,148);
INSERT INTO "communes" VALUES('29','Tréflévénez','28',281,221,9.65,'-7229','53795',35,163);
INSERT INTO "communes" VALUES('29','Riec-sur-Belon','32',4131,4010,54.64,'-6701','53160',0,94);
INSERT INTO "communes" VALUES('29','Taulé','43',2929,2781,29.47,'-6929','54004',0,101);
INSERT INTO "communes" VALUES('29','Plouyé','16',742,674,37.55,'-6747','53683',67,246);
INSERT INTO "communes" VALUES('29','Bodilis','18',1564,1302,20.08,'-7170','53923',24,119);
INSERT INTO "communes" VALUES('29','Irvillac','12',1348,1011,29.6,'-7277','53746',3,134);
INSERT INTO "communes" VALUES('29','Quimperlé','36',11776,10841,31.73,'-6540','53192',2,83);
INSERT INTO "communes" VALUES('29','Tréglonou','20',600,493,5.85,'-7640','53945',0,67);
INSERT INTO "communes" VALUES('29','Lennon','25',790,644,22.94,'-6926','53548',27,151);
INSERT INTO "communes" VALUES('29','Saint-Jean-Trolimon','34',998,845,14.68,'-7352','53185',0,56);
INSERT INTO "communes" VALUES('29','<NAME>','13',740,720,14.38,'-7323','53407',8,158);
INSERT INTO "communes" VALUES('29','Saint-Évarzec','15',3486,2897,24.65,'-7063','53263',8,102);
INSERT INTO "communes" VALUES('29','Saint-Eloy','12',212,174,12.42,'-7177','53736',65,298);
INSERT INTO "communes" VALUES('29','Goulien','33',430,429,12.77,'-7699','53396',0,97);
INSERT INTO "communes" VALUES('29','Sizun','42',2227,1860,58.14,'-7126','53784',61,382);
INSERT INTO "communes" VALUES('29','Trébabu','39',365,340,4.36,'-7857','53745',1,58);
INSERT INTO "communes" VALUES('29','Landudec','26',1337,1154,20.56,'-7414','53334',33,131);
INSERT INTO "communes" VALUES('29','Scrignac','16',802,885,70.94,'-6683','53815',86,281);
INSERT INTO "communes" VALUES('29','Lanhouarneau','29',1165,904,17.69,'-7275','53978',17,106);
INSERT INTO "communes" VALUES('29','Port-Launay','08',440,464,2,'-7121','53572',2,86);
INSERT INTO "communes" VALUES('29','Plougastel-Daoulas','12',13178,12243,46.83,'-7452','53747',0,145);
INSERT INTO "communes" VALUES('29','Trégarvan','08',140,146,9.68,'-7291','53613',0,223);
INSERT INTO "communes" VALUES('29','Saint-Pol-de-Léon','38',6904,7092,23.43,'-7025','54095',0,57);
INSERT INTO "communes" VALUES('29','Rédené','01',2849,2303,24.49,'-6442','53178',4,81);
INSERT INTO "communes" VALUES('29','Plougoulm','38',1798,1629,18.37,'-7090','54075',0,61);
INSERT INTO "communes" VALUES('29','Saint-Rivoal','25',170,165,18.69,'-7037','53721',110,381);
INSERT INTO "communes" VALUES('29','Guengat','13',1635,1476,22.72,'-7269','53380',7,162);
INSERT INTO "communes" VALUES('29','Kernouës','21',707,584,7.78,'-7428','53990',7,70);
INSERT INTO "communes" VALUES('29','Plouguerneau','20',6393,5631,43.33,'-7601','54007',0,79);
INSERT INTO "communes" VALUES('29','Berrien','16',960,944,56.42,'-6765','53782',92,355);
INSERT INTO "communes" VALUES('29','Fouesnant','15',9155,8063,32.76,'-7054','53215',0,74);
INSERT INTO "communes" VALUES('29','Pont-Aven','32',2844,2973,28.63,'-6759','53173',0,102);
INSERT INTO "communes" VALUES('29','Plouénan','38',2418,2379,30.64,'-7032','54032',0,88);
INSERT INTO "communes" VALUES('29','Treffiagat','49',2378,2171,8.1,'-7333','53115',-1,26);
INSERT INTO "communes" VALUES('29','Plonéis','26',1996,1416,21.99,'-7274','53352',27,168);
INSERT INTO "communes" VALUES('29','Scaër','41',5290,5275,117.58,'-6710','53364',65,242);
INSERT INTO "communes" VALUES('29','Clohars-Carnoët','36',4057,3869,34.83,'-6580','53107',0,66);
INSERT INTO "communes" VALUES('29','Rosnoën','14',1002,823,33.64,'-7257','53626',0,167);
INSERT INTO "communes" VALUES('29','Locquirec','19',1476,1310,5.96,'-6649','54101',0,78);
INSERT INTO "communes" VALUES('29','<NAME>','25',579,536,20.42,'-6919','53619',65,167);
INSERT INTO "communes" VALUES('29','<NAME>','15',3327,2807,18.53,'-7017','53233',0,98);
INSERT INTO "communes" VALUES('29','Plougonven','30',3293,3055,69.32,'-6721','53912',19,307);
INSERT INTO "communes" VALUES('29','Henvic','43',1298,1174,9.95,'-6960','54036',0,80);
INSERT INTO "communes" VALUES('29','Île-de-Batz','38',507,575,3.05,'-7052','54161',0,33);
INSERT INTO "communes" VALUES('29','Saint-Martin-des-Champs','22',4759,4709,15.7,'-6867','53973',0,113);
INSERT INTO "communes" VALUES('29','Châteaulin','08',5213,5169,20.81,'-7140','53552',2,206);
INSERT INTO "communes" VALUES('29','<NAME>','14',1738,1568,11.85,'-7237','53660',3,151);
INSERT INTO "communes" VALUES('29','Landeleau','09',1010,1043,30.41,'-6740','53586',51,183);
INSERT INTO "communes" VALUES('29','Bolazec','16',192,198,17.47,'-6578','53827',124,268);
INSERT INTO "communes" VALUES('29','Poullan-sur-Mer','13',1523,1517,30.35,'-7500','53423',0,101);
INSERT INTO "communes" VALUES('29','Plouvorn','31',2763,2573,35.44,'-7082','53977',29,126);
INSERT INTO "communes" VALUES('29','Landrévarzec','06',1653,1456,20.32,'-7108','53433',42,165);
INSERT INTO "communes" VALUES('29','Guimaëc','19',952,856,18.73,'-6716','54075',0,117);
INSERT INTO "communes" VALUES('29','Saint-Servais','18',720,554,10.29,'-7212','53901',23,116);
INSERT INTO "communes" VALUES('29','Pont-l''Abbé','34',8322,7846,18.21,'-7288','53186',0,37);
INSERT INTO "communes" VALUES('29','Lopérec','14',826,714,39.49,'-7094','53641',11,316);
INSERT INTO "communes" VALUES('29','Brignogan-Plage','21',813,852,3.6,'-7402','54072',0,25);
INSERT INTO "communes" VALUES('29','Pouldreuzic','26',1980,1814,16.75,'-7441','53283',2,91);
INSERT INTO "communes" VALUES('29','Carantec','43',3189,2722,9.02,'-6944','54075',0,74);
INSERT INTO "communes" VALUES('29','Arzano','01',1403,1325,34.04,'-6418','53224',6,97);
INSERT INTO "communes" VALUES('29','Edern','06',2112,1809,39.98,'-7015','53448',82,256);
INSERT INTO "communes" VALUES('29','Lanmeur','19',2171,2122,26.47,'-6724','54053',20,128);
INSERT INTO "communes" VALUES('29','Guipavas','51',13403,12588,44.13,'-7486','53815',0,131);
INSERT INTO "communes" VALUES('29','Saint-Renan','39',7515,6820,13.31,'-7731','53816',26,97);
INSERT INTO "communes" VALUES('29','Loc-Eguiner','28',346,290,11.9,'-7145','53859',27,178);
INSERT INTO "communes" VALUES('29','Concarneau','10',19048,19435,41.08,'-6950','53195',0,106);
INSERT INTO "communes" VALUES('29','Kernilis','24',1350,1062,10.13,'-7507','53968',6,77);
INSERT INTO "communes" VALUES('29','Roscoff','38',3626,3549,6.19,'-7024','54141',0,58);
INSERT INTO "communes" VALUES('29','Bohars','44',3363,3167,7.27,'-7611','53810',3,93);
INSERT INTO "communes" VALUES('29','Santec','38',2284,2134,8.06,'-7073','54115',0,41);
INSERT INTO "communes" VALUES('29','Tréméoc','34',1236,821,11.66,'-7276','53228',5,66);
INSERT INTO "communes" VALUES('29','<NAME>','17',1829,1597,9.21,'-7390','53809',0,111);
INSERT INTO "communes" VALUES('29','Plogonnec','13',3043,2815,54.14,'-7256','53420',12,286);
INSERT INTO "communes" VALUES('29','Gouesnou','46',6126,6041,12.08,'-7556','53837',58,103);
INSERT INTO "communes" VALUES('29','Tréouergat','27',302,252,6.1,'-7710','53885',24,92);
INSERT INTO "communes" VALUES('29','Pouldergat','13',1248,1278,24.39,'-7404','53381',8,133);
INSERT INTO "communes" VALUES('29','Tourch','37',988,836,19.7,'-6847','53361',118,216);
INSERT INTO "communes" VALUES('29','Pleyber-Christ','40',3070,2789,45.47,'-6902','53894',19,221);
INSERT INTO "communes" VALUES('29','Saint-Derrien','18',770,567,12.28,'-7243','53942',39,107);
INSERT INTO "communes" VALUES('29','Melgven','02',3304,2952,51.17,'-6858','53229',1,155);
INSERT INTO "communes" VALUES('29','Lesneven','21',7083,6347,10.27,'-7398','53969',14,79);
INSERT INTO "communes" VALUES('29','Landivisiau','18',9167,8759,18.99,'-7116','53899',32,126);
INSERT INTO "communes" VALUES('29','Goulven','21',455,450,6.38,'-7375','54031',1,66);
INSERT INTO "communes" VALUES('29','Landéda','20',3612,2963,10.98,'-7675','53985',0,57);
INSERT INTO "communes" VALUES('29','Plourin-lès-Morlaix','22',4448,4244,40.92,'-6807','53928',8,242);
INSERT INTO "communes" VALUES('29','Plounéventer','18',1923,1484,27.28,'-7276','53905',14,108);
INSERT INTO "communes" VALUES('29','Ploudiry','28',895,808,27.19,'-7199','53837',23,191);
INSERT INTO "communes" VALUES('29','Baye','36',1141,922,7.29,'-6601','53175',13,70);
INSERT INTO "communes" VALUES('29','Loctudy','49',4136,3661,12.73,'-7228','53149',0,17);
INSERT INTO "communes" VALUES('29','Collorec','09',664,648,28.39,'-6790','53652',72,221);
INSERT INTO "communes" VALUES('29','Île-Tudy','34',729,611,1.26,'-7227','53159',0,5);
INSERT INTO "communes" VALUES('29','Trégunc','10',6837,6357,50.61,'-6876','53173',0,89);
INSERT INTO "communes" VALUES('29','Garlan','19',990,817,13.34,'-6770','54001',18,119);
INSERT INTO "communes" VALUES('29','Crozon','11',7809,7537,80.37,'-7584','53606',0,102);
INSERT INTO "communes" VALUES('29','Tréflez','29',908,761,15.76,'-7331','54025',0,77);
INSERT INTO "communes" VALUES('29','Lampaul-Plouarzel','39',2054,1764,4.04,'-7887','53832',0,60);
INSERT INTO "communes" VALUES('29','Lanildut','27',953,828,5.82,'-7873','53859',0,71);
INSERT INTO "communes" VALUES('29','Guilvinec','49',2892,3040,2.46,'-7356','53106',0,17);
INSERT INTO "communes" VALUES('29','Trézilidé','31',277,224,4.6,'-7137','54010',29,93);
INSERT INTO "communes" VALUES('29','Plabennec','24',8084,6992,50.43,'-7514','53891',28,102);
INSERT INTO "communes" VALUES('29','Ouessant','23',871,926,15.58,'-8260','53839',0,61);
INSERT INTO "communes" VALUES('29','Morlaix','22',15421,16004,24.82,'-6849','53975',0,104);
INSERT INTO "communes" VALUES('29','Bourg-Blanc','24',3399,3079,28.31,'-7601','53888',25,98);
INSERT INTO "communes" VALUES('29','<NAME>','02',1500,1141,20.83,'-6642','53216',47,105);
INSERT INTO "communes" VALUES('29','Telgruc-sur-Mer','11',2092,1825,28.29,'-7436','53591',0,145);
INSERT INTO "communes" VALUES('29','Pencran','17',1770,1251,8.93,'-7302','53820',1,175);
INSERT INTO "communes" VALUES('29','Saint-Urbain','12',1492,1199,15.21,'-7292','53778',2,178);
INSERT INTO "communes" VALUES('29','Plouzané','03',11717,12054,33.14,'-7729','53758',0,102);
INSERT INTO "communes" VALUES('29','Saint-Nic','08',737,706,18.03,'-7353','53558',0,299);
INSERT INTO "communes" VALUES('29','Mahalon','33',881,801,21.39,'-7525','53372',2,101);
INSERT INTO "communes" VALUES('29','Locronan','08',793,799,8.08,'-7270','53443',38,280);
INSERT INTO "communes" VALUES('29','Commana','42',1132,987,39.9,'-6990','53793',104,372);
INSERT INTO "communes" VALUES('29','Landudal','06',819,701,16.69,'-7016','53403',62,165);
INSERT INTO "communes" VALUES('29','Trégourez','09',960,950,17.72,'-6888','53451',85,227);
INSERT INTO "communes" VALUES('29','Plouguin','27',2085,1954,31.02,'-7708','53916',0,82);
INSERT INTO "communes" VALUES('29','Plozévet','26',2998,2747,27.18,'-7513','53319',0,97);
INSERT INTO "communes" VALUES('29','Porspoder','27',1738,1563,11.29,'-7891','53899',0,61);
INSERT INTO "communes" VALUES('29','Gouézec','25',1112,984,30.94,'-7010','53522',19,270);
INSERT INTO "communes" VALUES('29','Saint-Pabu','27',1999,1485,9.94,'-7710','53962',0,56);
INSERT INTO "communes" VALUES('29','Huelgoat','16',1638,1693,14.87,'-6757','53738',92,267);
INSERT INTO "communes" VALUES('29','Cléder','31',3824,3641,37.44,'-7155','54070',0,79);
INSERT INTO "communes" VALUES('29','Plouider','21',1965,1749,23.63,'-7371','54009',2,86);
INSERT INTO "communes" VALUES('29','Loqueffret','25',402,435,27.4,'-6883','53688',87,297);
INSERT INTO "communes" VALUES('29','Brélès','27',828,750,14.06,'-7833','53865',0,101);
INSERT INTO "communes" VALUES('29','Camaret-sur-Mer','11',2609,2667,11.64,'-7704','53640',0,65);
INSERT INTO "communes" VALUES('29','Plouégat-Guérand','19',1080,934,17.29,'-6680','54023',2,151);
INSERT INTO "communes" VALUES('29','Plomodiern','08',2212,2083,46.74,'-7298','53535',0,249);
INSERT INTO "communes" VALUES('29','Plouigneau','30',4753,4138,63.48,'-6709','53964',17,201);
INSERT INTO "communes" VALUES('29','Locmaria-Plouzané','39',4826,4254,23.16,'-7755','53750',0,107);
INSERT INTO "communes" VALUES('29','Ploéven','08',508,435,13.11,'-7299','53508',0,96);
INSERT INTO "communes" VALUES('29','Rosporden','37',7227,6442,57.37,'-6857','53290',25,171);
INSERT INTO "communes" VALUES('29','Saint-Thégonnec','40',2648,2267,41.76,'-6981','53912',7,216);
INSERT INTO "communes" VALUES('29','Bannalec','02',5450,4806,77.51,'-6704','53258',22,172);
INSERT INTO "communes" VALUES('29','Mespaul','38',891,739,11.48,'-7068','54020',22,93);
INSERT INTO "communes" VALUES('29','Lampaul-Guimiliau','18',2024,1997,17.48,'-7086','53881',39,172);
INSERT INTO "communes" VALUES('29','Combrit','34',3521,3172,24.13,'-7218','53208',0,62);
INSERT INTO "communes" VALUES('29','Dirinon','17',2455,2341,33.02,'-7340','53775',1,179);
INSERT INTO "communes" VALUES('29','Plouvien','24',3693,3188,33.7,'-7544','53922',0,89);
INSERT INTO "communes" VALUES('29','Île-Molène','39',208,264,0.75,'-8104','53775',0,26);
INSERT INTO "communes" VALUES('29','Ploumoguer','39',1960,1646,38.93,'-7843','53782',0,141);
INSERT INTO "communes" VALUES('29','Saint-Thois','09',725,634,18.1,'-6912','53517',28,238);
INSERT INTO "communes" VALUES('29','Roscanvel','11',909,793,9.08,'-7648','53683',0,78);
INSERT INTO "communes" VALUES('29','Plogastel-Saint-Germain','26',1839,1693,31.39,'-7342','53315',35,160);
INSERT INTO "communes" VALUES('29','<NAME>','30',164,114,1.34,'-6638','53962',72,162);
INSERT INTO "communes" VALUES('29','Locunolé','01',1098,869,16.78,'-6461','53263',12,121);
INSERT INTO "communes" VALUES('29','Trémaouézan','17',516,431,8.3,'-7323','53895',77,102);
INSERT INTO "communes" VALUES('29','Botmeur','16',224,214,13.62,'-6946','53760',225,382);
INSERT INTO "communes" VALUES('29','Lannéanou','30',360,342,16.17,'-6676','53877',119,285);
INSERT INTO "communes" VALUES('29','Guissény','20',2012,1777,25.18,'-7497','54038',0,77);
INSERT INTO "communes" VALUES('29','Lanvéoc','11',2220,1877,19.21,'-7554','53651',0,87);
INSERT INTO "communes" VALUES('29','Ploudaniel','21',3683,3571,46.28,'-7388','53930',27,121);
INSERT INTO "communes" VALUES('29','Lampaul-Ploudalmézeau','27',761,607,6.35,'-7769','53957',0,63);
INSERT INTO "communes" VALUES('29','Coray','09',1846,1624,31.36,'-6851','53401',75,257);
INSERT INTO "communes" VALUES('29','Spézet','07',1816,1864,60.67,'-6725','53547',45,315);
INSERT INTO "communes" VALUES('29','Langolen','06',881,684,16.92,'-6943','53408',70,208);
INSERT INTO "communes" VALUES('29','Châteauneuf-du-Faou','09',3666,3602,42.58,'-6832','53540',31,153);
INSERT INTO "communes" VALUES('29','Plounéour-Trez','21',1242,1175,10.68,'-7394','54056',0,64);
INSERT INTO "communes" VALUES('29','Audierne','33',2208,2476,2.95,'-7642','53360',0,67);
INSERT INTO "communes" VALUES('29','Ergué-Gabéric','48',7864,6929,39.87,'-7065','53329',4,140);
INSERT INTO "communes" VALUES('29','Saint-Coulitz','08',421,389,11.22,'-7107','53545',6,212);
INSERT INTO "communes" VALUES('29','Plouégat-Moysan','30',648,545,14.97,'-6607','53969',58,256);
INSERT INTO "communes" VALUES('29','Hôpital-Camfrout','12',2135,1640,13.16,'-7309','53697',0,93);
INSERT INTO "communes" VALUES('29','Plougar','29',777,686,17.48,'-7198','53959',53,118);
INSERT INTO "communes" VALUES('29','Sibiril','38',1245,1148,11.47,'-7111','54072',0,66);
INSERT INTO "communes" VALUES('29','Brennilis','25',448,455,18.69,'-6875','53731',149,278);
INSERT INTO "communes" VALUES('29','Landévennec','11',346,371,13.83,'-7338','53658',0,116);
INSERT INTO "communes" VALUES('29','Locmélar','42',440,469,15.55,'-7113','53837',47,191);
INSERT INTO "communes" VALUES('29','Loc-Brévalaire','24',211,207,1.67,'-7491','53950',18,71);
INSERT INTO "communes" VALUES('29','Laz','09',696,694,34.44,'-6857','53486',31,295);
INSERT INTO "communes" VALUES('29','Querrien','41',1696,1599,54.01,'-6526','53289',13,172);
INSERT INTO "communes" VALUES('29','Quimper','98',63550,63274,84.45,'-7149','53329',-5,151);
INSERT INTO "communes" VALUES('29','Pont-Croix','33',1766,1667,8.09,'-7584','53380',2,73);
INSERT INTO "communes" VALUES('29','Pleuven','15',2643,2354,13.69,'-7089','53229',2,77);
INSERT INTO "communes" VALUES('29','Pleyben','25',3690,3396,76.04,'-7006','53585',14,176);
INSERT INTO "communes" VALUES('29','Penmarch','49',5796,5889,16.39,'-7416','53125',-1,23);
INSERT INTO "communes" VALUES('29','Gourlizon','26',881,834,9.91,'-7337','53355',67,159);
INSERT INTO "communes" VALUES('29','Saint-Thurien','41',959,840,21.41,'-6622','53288',22,166);
INSERT INTO "communes" VALUES('29','Plouzévédé','31',1684,1353,18.51,'-7165','53994',40,106);
INSERT INTO "communes" VALUES('29','Bénodet','15',3331,2763,10.53,'-7166','53196',0,59);
INSERT INTO "communes" VALUES('29','Lanarvily','24',419,266,5.92,'-7472','53947',18,71);
INSERT INTO "communes" VALUES('29','Tréguennec','34',340,342,9.61,'-7411','53213',0,53);
INSERT INTO "communes" VALUES('29','Esquibien','33',1605,1614,15.42,'-7666','53361',0,79);
INSERT INTO "communes" VALUES('29','Plogoff','33',1335,1564,11.73,'-7780','53374',0,80);
INSERT INTO "communes" VALUES('29','Douarnenez','13',14912,15840,24.94,'-7407','53436',0,86);
INSERT INTO "communes" VALUES('29','Cléden-Cap-Sizun','33',1014,1038,19.08,'-7760','53386',0,86);
INSERT INTO "communes" VALUES('29','Guimiliau','18',986,819,11.22,'-7039','53875',63,159);
INSERT INTO "communes" VALUES('29','Saint-Méen','21',795,533,11.74,'-7335','53957',12,93);
INSERT INTO "communes" VALUES('29','Landerneau','17',15272,14274,13.19,'-7317','53834',1,175);
INSERT INTO "communes" VALUES('29','Trégarantec','21',580,429,5.21,'-7367','53946',32,87);
INSERT INTO "communes" VALUES('29','Elliant','37',3271,2716,70.3,'-6918','53328',31,187);
INSERT INTO "communes" VALUES('29','Plouarzel','39',3618,2462,42.83,'-7854','53815',0,139);
INSERT INTO "communes" VALUES('29','Lanneuffret','28',126,113,2.24,'-7266','53886',46,106);
INSERT INTO "communes" VALUES('29','Névez','32',2739,2475,25.37,'-6810','53133',0,48);
INSERT INTO "communes" VALUES('29','Saint-Divy','17',1353,1407,8.52,'-7413','53838',30,129);
INSERT INTO "communes" VALUES('29','Clohars-Fouesnant','15',2243,1417,13.02,'-7116','53220',0,71);
INSERT INTO "communes" VALUES('29','Moëlan-sur-Mer','32',6968,6582,47.3,'-6627','53127',0,67);
INSERT INTO "communes" VALUES('29','Pluguffan','52',3540,3159,32.09,'-7239','53312',10,155);
INSERT INTO "communes" VALUES('29','Le Cloître-Saint-Thégonnec','40',635,571,28.48,'-6812','53867',100,300);
INSERT INTO "communes" VALUES('29','Plonéour-Lanvern','26',5825,4803,48.91,'-7356','53226',1,91);
INSERT INTO "communes" VALUES('29','Argol','11',888,746,31.73,'-7392','53607',0,191);
INSERT INTO "communes" VALUES('29','Landunvez','27',1417,1340,13.53,'-7848','53925',0,52);
INSERT INTO "communes" VALUES('29','Mellac','36',2623,2307,26.38,'-6571','53227',12,101);
INSERT INTO "communes" VALUES('29','Cléden-Poher','07',1094,1049,29.81,'-6672','53595',53,155);
INSERT INTO "communes" VALUES('29','Plounéour-Ménez','40',1265,1165,51.74,'-6919','53821',124,387);
INSERT INTO "communes" VALUES('29','Brasparts','25',1039,1014,46.69,'-6991','53667',39,330);
INSERT INTO "communes" VALUES('29','<NAME>','39',2666,2410,8.45,'-7897','53734',0,51);
INSERT INTO "communes" VALUES('29','Île-de-Sein','33',195,242,0.6,'-7986','53374',0,9);
INSERT INTO "communes" VALUES('29','Gouesnach','15',2556,2122,17.07,'-7168','53235',0,58);
INSERT INTO "communes" VALUES('29','Plougourvest','18',1317,1144,14.07,'-7135','53948',62,126);
INSERT INTO "communes" VALUES('29','Plougonvelin','39',3760,2863,18.69,'-7831','53714',0,88);
INSERT INTO "communes" VALUES('29','Plonévez-du-Faou','09',2138,2203,80.73,'-6846','53614',50,275);
INSERT INTO "communes" VALUES('29','Plobannalec-Lesconil','49',3332,3012,18.17,'-7296','53137',0,27);
INSERT INTO "communes" VALUES('29','Kersaint-Plabennec','24',1317,1106,11.95,'-7455','53858',48,121);
INSERT INTO "communes" VALUES('29','Quéménéven','08',1138,1133,28.21,'-7174','53462',52,280);
INSERT INTO "communes" VALUES('29','Saint-Goazec','09',699,725,33.76,'-6800','53514',33,295);
INSERT INTO "communes" VALUES('29','Plouhinec','33',4165,4115,28.05,'-7581','53350',0,104);
INSERT INTO "communes" VALUES('29','Saint-Sauveur','42',771,636,13.24,'-7044','53831',86,202);
INSERT INTO "communes" VALUES('29','Saint-Jean-du-Doigt','19',617,632,19.81,'-6788','54105',0,128);
INSERT INTO "communes" VALUES('29','Pont-de-Buis-lès-Quimerch','14',3867,3386,41.39,'-7140','53616',0,278);
INSERT INTO "communes" VALUES('29','Coat-Méal','24',1009,739,10.82,'-7645','53897',13,88);
INSERT INTO "communes" VALUES('29','Carhaix-Plouguer','07',7659,7655,25.81,'-6567','53640',69,169);
INSERT INTO "communes" VALUES('29','Brest','99',141303,149649,49.51,'-7581','53767',0,103);
INSERT INTO "communes" VALUES('29','Lannédern','25',311,272,12.43,'-6926','53667',80,201);
INSERT INTO "communes" VALUES('29','Plouezoc''h','19',1585,1570,15.83,'-6843','54045',0,106);
INSERT INTO "communes" VALUES('29','<NAME>','21',3055,3103,9.77,'-7412','53958',30,77);
INSERT INTO "communes" VALUES('29','Plomelin','52',4113,3945,26.08,'-7210','53262',0,88);
INSERT INTO "communes" VALUES('29','Logonna-Daoulas','12',2093,1582,12.14,'-7372','53690',0,77);
INSERT INTO "communes" VALUES('29','<NAME>','28',763,596,18.01,'-7217','53832',49,191);
INSERT INTO "communes" VALUES('29','Poullaouen','07',1400,1502,71.36,'-6643','53711',69,218);
INSERT INTO "communes" VALUES('29','Ploudalmézeau','27',6301,5009,23.18,'-7771','53934',0,86);
INSERT INTO "communes" VALUES('29','Cast','08',1587,1384,37.66,'-7195','53508',44,252);
INSERT INTO "communes" VALUES('30','<NAME>','01',8178,5874,54.73,'2000','48375',0,5);
INSERT INTO "communes" VALUES('30','Domazan','06',921,740,11.42,'2571','48811',35,162);
INSERT INTO "communes" VALUES('30','Mages','24',1855,1513,12.69,'2032','49142',138,485);
INSERT INTO "communes" VALUES('30','Jonquières-Saint-Vincent','09',3120,2743,21.32,'2474','48698',13,81);
INSERT INTO "communes" VALUES('30','<NAME>','26',1942,1632,11.1,'2142','48804',58,163);
INSERT INTO "communes" VALUES('30','Bez-et-Esparon','39',360,301,8.33,'1327','48858',279,861);
INSERT INTO "communes" VALUES('30','Villevieille','32',1681,1201,8.28,'1955','48654',23,106);
INSERT INTO "communes" VALUES('30','Arrigas','04',202,195,20.28,'1271','48877',339,1414);
INSERT INTO "communes" VALUES('30','Arpaillargues-et-Aureillac','35',1024,784,13.67,'2262','48889',69,200);
INSERT INTO "communes" VALUES('30','Moussac','26',1241,1020,7.4,'2103','48868',64,151);
INSERT INTO "communes" VALUES('30','Sénéchas','11',227,193,14.86,'1879','49250',241,644);
INSERT INTO "communes" VALUES('30','Saint-Laurent-le-Minier','33',365,361,13.26,'1464','48813',154,849);
INSERT INTO "communes" VALUES('30','Saint-Victor-des-Oules','35',281,220,4.77,'2386','48936',96,242);
INSERT INTO "communes" VALUES('30','Sardan','21',282,239,6.24,'1894','48748',48,210);
INSERT INTO "communes" VALUES('30','Roquemaure','23',5424,4847,26.22,'2713','48946',20,176);
INSERT INTO "communes" VALUES('30','Lussan','15',480,400,46.92,'2255','49059',110,345);
INSERT INTO "communes" VALUES('30','Aramon','06',3816,3772,31.16,'2605','48768',7,155);
INSERT INTO "communes" VALUES('30','Laval-Saint-Roman','20',231,201,10.5,'2409','49221',81,380);
INSERT INTO "communes" VALUES('30','Saint-Dionisy','32',898,633,3.42,'2102','48672',36,181);
INSERT INTO "communes" VALUES('30','Connaux','07',1563,1618,9.58,'2508','48990',56,231);
INSERT INTO "communes" VALUES('30','Corconne','21',555,474,12.98,'1781','48747',96,380);
INSERT INTO "communes" VALUES('30','Codognan','46',2441,1941,4.65,'2092','48591',10,21);
INSERT INTO "communes" VALUES('30','Lasalle','13',1076,1031,10.1,'1684','48940',210,621);
INSERT INTO "communes" VALUES('30','Baron','26',331,226,10.06,'2160','48944',128,364);
INSERT INTO "communes" VALUES('30','<NAME>','28',203,184,11.97,'1635','48842',190,862);
INSERT INTO "communes" VALUES('30','Cannes-et-Clairan','21',469,309,12.13,'1942','48778',48,219);
INSERT INTO "communes" VALUES('30','Sauve','31',1920,1691,31.56,'1791','48825',75,470);
INSERT INTO "communes" VALUES('30','Concoules','11',243,256,16.47,'1780','49314',355,1507);
INSERT INTO "communes" VALUES('30','Poulx','16',4032,3151,11.9,'2319','48790',34,213);
INSERT INTO "communes" VALUES('30','Quissac','21',2728,2271,23.32,'1848','48788',60,472);
INSERT INTO "communes" VALUES('30','Aubais','32',2412,2003,11.79,'2012','48617',12,95);
INSERT INTO "communes" VALUES('30','Rivières','08',334,234,9.96,'2154','49140',109,414);
INSERT INTO "communes" VALUES('30','Vénéjan','07',1206,1044,18.55,'2579','49108',35,283);
INSERT INTO "communes" VALUES('30','Redessan','16',3763,2878,15.57,'2400','48702',54,76);
INSERT INTO "communes" VALUES('30','Beaucaire','09',15946,13767,86.52,'2563','48675',1,156);
INSERT INTO "communes" VALUES('30','Aigues-Mortes','01',8341,6019,57.78,'2062','48407',0,3);
INSERT INTO "communes" VALUES('30','Ponteils-et-Brésis','11',336,280,27.8,'1822','49336',371,1484);
INSERT INTO "communes" VALUES('30','Saint-Hippolyte-du-Fort','28',3830,3399,29.38,'1688','48851',135,547);
INSERT INTO "communes" VALUES('30','Nages-et-Solorgues','32',1541,1296,6.18,'2104','48657',31,174);
INSERT INTO "communes" VALUES('30','Méjannes-le-Clap','08',586,306,38.24,'2234','49139',90,474);
INSERT INTO "communes" VALUES('30','Clarensac','30',3820,2645,14.49,'2090','48697',42,212);
INSERT INTO "communes" VALUES('30','Mialet','29',586,538,30.76,'1785','49012',140,691);
INSERT INTO "communes" VALUES('30','Bonnevaux','11',98,102,8.81,'1883','49297',360,976);
INSERT INTO "communes" VALUES('30','Mandagout','39',386,331,15.12,'1432','48912',239,1240);
INSERT INTO "communes" VALUES('30','Montaren-et-Saint-Médiers','35',1504,1231,19.42,'2270','48922',83,274);
INSERT INTO "communes" VALUES('30','Cros','28',253,216,16.94,'1654','48882',178,964);
INSERT INTO "communes" VALUES('30','<NAME>','46',2362,2312,30.01,'2111','48529',0,41);
INSERT INTO "communes" VALUES('30','Saint-Étienne-de-l''Olm','38',344,233,4.18,'2053','48954',96,178);
INSERT INTO "communes" VALUES('30','Lamelouze','12',99,85,8.83,'1808','49104',231,900);
INSERT INTO "communes" VALUES('30','Tavel','23',1790,1529,19.96,'2626','48902',50,265);
INSERT INTO "communes" VALUES('30','Boissières','32',527,475,3.33,'2107','48638',28,102);
INSERT INTO "communes" VALUES('30','Saint-Martin-de-Valgalgues','02',4153,4276,13.11,'1940','49070',130,365);
INSERT INTO "communes" VALUES('30','Liouc','21',244,120,9.64,'1847','48771',65,443);
INSERT INTO "communes" VALUES('30','Saint-Bénézet','14',289,222,6.3,'1999','48881',109,221);
INSERT INTO "communes" VALUES('30','Moulézan','30',551,395,11.39,'1988','48810',69,284);
INSERT INTO "communes" VALUES('30','Saint-Hippolyte-de-Montaigu','35',243,116,4.05,'2396','48925',104,260);
INSERT INTO "communes" VALUES('30','Montfrin','06',3117,2920,15.29,'2507','48751',7,78);
INSERT INTO "communes" VALUES('30','Saint-Christol-de-Rodières','20',166,126,8.07,'2419','49187',98,348);
INSERT INTO "communes" VALUES('30','Trèves','34',112,119,26.59,'1169','48975',514,1282);
INSERT INTO "communes" VALUES('30','Saint-Martial','33',198,156,17.16,'1555','48927',276,1125);
INSERT INTO "communes" VALUES('30','Saint-Félix-de-Pallières','13',220,203,18.87,'1773','48915',180,482);
INSERT INTO "communes" VALUES('30','Saint-Paulet-de-Caisson','20',1771,1603,16.88,'2512','49182',50,293);
INSERT INTO "communes" VALUES('30','Saint-Jean-de-Valériscle','24',727,716,8.15,'2006','49148',184,529);
INSERT INTO "communes" VALUES('30','Saint-Nazaire','07',1208,1119,6.68,'2542','49109',58,224);
INSERT INTO "communes" VALUES('30','Saint-Denis','24',250,194,3.65,'2128','49148',111,156);
INSERT INTO "communes" VALUES('30','Manduel','16',5690,5736,26.46,'2374','48687',50,77);
INSERT INTO "communes" VALUES('30','Salles-du-Gardon','12',2547,2566,21.09,'1887','49119',145,723);
INSERT INTO "communes" VALUES('30','Combas','30',569,433,16.04,'1974','48727',55,274);
INSERT INTO "communes" VALUES('30','Saint-Bresson','33',55,52,8.4,'1455','48837',229,722);
INSERT INTO "communes" VALUES('30','Cardet','14',859,643,8.29,'1937','48919',98,166);
INSERT INTO "communes" VALUES('30','Angles','40',8240,7576,17.64,'2700','48838',10,183);
INSERT INTO "communes" VALUES('30','Notre-Dame-de-la-Rouvière','36',437,357,16.49,'1516','48943',273,1165);
INSERT INTO "communes" VALUES('30','Navacelles','24',308,243,11.02,'2115','49070',129,337);
INSERT INTO "communes" VALUES('30','Plantiers','25',243,228,30.83,'1541','49018',331,1069);
INSERT INTO "communes" VALUES('30','Saint-Jean-du-Gard','29',2684,2574,41.64,'1722','49005',164,813);
INSERT INTO "communes" VALUES('30','Cruviers-Lascours','38',643,444,5.51,'2075','48893',74,171);
INSERT INTO "communes" VALUES('30','Causse-Bégon','34',12,23,7.67,'1137','48958',513,928);
INSERT INTO "communes" VALUES('30','Saint-Geniès-de-Malgoirès','26',2784,1852,11.54,'2089','48828',64,223);
INSERT INTO "communes" VALUES('30','Seynes','38',145,133,14.33,'2163','49018',200,623);
INSERT INTO "communes" VALUES('30','Cabrières','16',1397,1117,14.76,'2372','48783',75,218);
INSERT INTO "communes" VALUES('30','Générac','27',3982,3232,24.26,'2236','48587',29,144);
INSERT INTO "communes" VALUES('30','Potelières','24',324,255,6.47,'2113','49136',115,202);
INSERT INTO "communes" VALUES('30','Gailhan','21',209,128,5.53,'1884','48715',39,211);
INSERT INTO "communes" VALUES('30','Vallabrègues','09',1336,1196,14.33,'2545','48725',4,24);
INSERT INTO "communes" VALUES('30','Sernhac','06',1644,1223,8.93,'2462','48790',12,155);
INSERT INTO "communes" VALUES('30','Bragassargues','21',143,94,7.49,'1905','48797',69,243);
INSERT INTO "communes" VALUES('30','Pont-Saint-Esprit','20',10437,9263,18.49,'2569','49174',36,187);
INSERT INTO "communes" VALUES('30','Saint-André-de-Roquepertuis','20',534,398,12.18,'2355','49156',70,309);
INSERT INTO "communes" VALUES('30','Lanuéjols','34',346,331,62.43,'1164','49034',614,1187);
INSERT INTO "communes" VALUES('30','Aigaliers','35',489,399,28.06,'2204','48955',117,350);
INSERT INTO "communes" VALUES('30','Saint-Michel-d''Euzet','07',583,598,10.36,'2453','49113',40,360);
INSERT INTO "communes" VALUES('30','Carnas','21',430,319,15.49,'1835','48701',66,223);
INSERT INTO "communes" VALUES('30','Saint-Alexandre','20',1090,979,12.87,'2538','49142',34,270);
INSERT INTO "communes" VALUES('30','Castillon-du-Gard','22',1453,943,17.38,'2464','48855',17,194);
INSERT INTO "communes" VALUES('30','Gagnières','10',1104,914,11.22,'1992','49230',159,516);
INSERT INTO "communes" VALUES('30','Aubussargues','26',353,237,8.52,'2209','48897',84,213);
INSERT INTO "communes" VALUES('30','Anduze','05',3287,3030,14.6,'1832','48950',117,443);
INSERT INTO "communes" VALUES('30','Vers-Pont-du-Gard','22',1741,1321,19.14,'2431','48854',15,192);
INSERT INTO "communes" VALUES('30','Alzon','04',220,211,27.48,'1225','48852',502,1414);
INSERT INTO "communes" VALUES('30','Cornillon','20',914,689,15.58,'2389','49131',58,360);
INSERT INTO "communes" VALUES('30','Molières-sur-Cèze','24',1595,1425,8.71,'2026','49178',134,485);
INSERT INTO "communes" VALUES('30','Bernis','37',3178,2656,12.8,'2166','48628',16,101);
INSERT INTO "communes" VALUES('30','Robiac-Rochessadoule','10',866,795,10.31,'1944','49199',147,628);
INSERT INTO "communes" VALUES('30','Sanilhac-Sagriès','35',867,780,22.1,'2320','48839',30,202);
INSERT INTO "communes" VALUES('30','Massillargues-Attuech','05',688,525,6.27,'1875','48906',112,179);
INSERT INTO "communes" VALUES('30','Saint-Côme-et-Maruéjols','30',798,569,13.01,'2073','48698',42,206);
INSERT INTO "communes" VALUES('30','Peyremale','10',284,278,8.62,'1917','49223',162,619);
INSERT INTO "communes" VALUES('30','Salinelles','32',504,418,8.84,'1924','48678',24,115);
INSERT INTO "communes" VALUES('30','Belvézet','15',248,210,22.86,'2254','48983',150,329);
INSERT INTO "communes" VALUES('30','Dourbies','34',188,206,60.88,'1233','48960',621,1440);
INSERT INTO "communes" VALUES('30','Saint-Privat-des-Vieux','41',4585,4056,15.8,'1992','49049',129,285);
INSERT INTO "communes" VALUES('30','Saint-Laurent-d''Aigouze','01',3278,2741,89.81,'2065','48483',0,6);
INSERT INTO "communes" VALUES('30','Salazac','20',187,162,9.98,'2432','49178',105,352);
INSERT INTO "communes" VALUES('30','Sainte-Cécile-d''Andorge','12',569,490,19.09,'1822','49169',200,835);
INSERT INTO "communes" VALUES('30','Sauzet','26',710,537,6.7,'2082','48846',63,212);
INSERT INTO "communes" VALUES('30','Meyrannes','24',843,843,6.51,'2035','49190',130,503);
INSERT INTO "communes" VALUES('30','Saint-Chaptes','26',1651,1184,13.07,'2158','48857',58,101);
INSERT INTO "communes" VALUES('30','Saint-Marcel-de-Careiret','15',752,618,10.17,'2390','49048',140,289);
INSERT INTO "communes" VALUES('30','Sumène','33',1614,1492,36.59,'1532','48868',175,933);
INSERT INTO "communes" VALUES('30','Rousson','02',3747,3028,32.57,'2015','49087',136,535);
INSERT INTO "communes" VALUES('30','Fressac','31',132,87,5.89,'1766','48885',184,348);
INSERT INTO "communes" VALUES('30','Domessargues','14',707,420,7.32,'2036','48863',99,235);
INSERT INTO "communes" VALUES('30','Aujac','11',181,167,16.47,'1864','49277',256,940);
INSERT INTO "communes" VALUES('30','Saint-Jean-de-Serres','14',515,446,8.26,'1926','48882',94,169);
INSERT INTO "communes" VALUES('30','Chamborigaud','11',794,729,17.86,'1824','49224',259,887);
INSERT INTO "communes" VALUES('30','Lédignan','14',1417,995,6.93,'1967','48876',102,167);
INSERT INTO "communes" VALUES('30','Fournès','22',893,735,17.66,'2516','48810',7,172);
INSERT INTO "communes" VALUES('30','Fourques','09',2905,2544,38.24,'2526','48548',1,15);
INSERT INTO "communes" VALUES('30','Remoulins','22',2407,1996,8.24,'2475','48822',6,122);
INSERT INTO "communes" VALUES('30','Laval-Pradel','12',1191,1029,17.68,'1914','49146',158,692);
INSERT INTO "communes" VALUES('30','Ribaute-les-Tavernes','05',1797,1258,14.27,'1938','48931',90,199);
INSERT INTO "communes" VALUES('30','Rochefort-du-Gard','40',7272,5838,34.03,'2615','48861',48,267);
INSERT INTO "communes" VALUES('30','Corbès','29',148,127,3.28,'1797','48973',131,382);
INSERT INTO "communes" VALUES('30','Congénies','32',1564,1071,8.64,'2026','48643',49,145);
INSERT INTO "communes" VALUES('30','Montagnac','30',174,134,8.68,'2013','48819',85,282);
INSERT INTO "communes" VALUES('30','Beauvoisin','37',3741,3135,27.82,'2208','48576',1,128);
INSERT INTO "communes" VALUES('30','Campestre-et-Luc','04',118,117,38.1,'1203','48837',502,914);
INSERT INTO "communes" VALUES('30','Caveirac','30',3867,3101,15.2,'2139','48695',57,208);
INSERT INTO "communes" VALUES('30','Conqueyrac','28',109,114,27.18,'1747','48830',100,368);
INSERT INTO "communes" VALUES('30','Pujaut','40',4004,3233,23.5,'2709','48894',20,168);
INSERT INTO "communes" VALUES('30','Crespian','30',334,206,7.91,'1955','48758',48,279);
INSERT INTO "communes" VALUES('30','Méjannes-lès-Alès','41',1114,905,6.58,'2020','49001',119,230);
INSERT INTO "communes" VALUES('30','Montmirat','30',319,167,9.52,'1963','48779',58,270);
INSERT INTO "communes" VALUES('30','Aubord','37',2369,1910,9.42,'2195','48619',17,64);
INSERT INTO "communes" VALUES('30','Saint-Sauveur-Camprieu','34',269,188,31.74,'1267','49018',783,1402);
INSERT INTO "communes" VALUES('30','Saint-Hippolyte-de-Caton','38',208,159,6.15,'2074','48967',107,210);
INSERT INTO "communes" VALUES('30','Bourdic','26',377,259,7.34,'2216','48870',69,110);
INSERT INTO "communes" VALUES('30','La Bruguière','15',304,181,16.43,'2307','49012',228,320);
INSERT INTO "communes" VALUES('30','Avèze','39',1072,1013,4.14,'1404','48857',220,502);
INSERT INTO "communes" VALUES('30','Saint-Geniès-de-Comolas','23',1850,1567,8.26,'2650','48962',25,176);
INSERT INTO "communes" VALUES('30','Boucoiran-et-Nozières','14',722,621,14.52,'2054','48884',76,242);
INSERT INTO "communes" VALUES('30','La Capelle-et-Masmolène','35',401,372,24.45,'2440','48946',148,267);
INSERT INTO "communes" VALUES('30','Montpezat','30',1103,921,11.98,'2023','48724',78,193);
INSERT INTO "communes" VALUES('30','Saint-Bonnet-de-Salendrinque','13',98,75,3.59,'1702','48930',208,460);
INSERT INTO "communes" VALUES('30','Le Vigan','39',3942,4448,17.24,'1410','48880',184,640);
INSERT INTO "communes" VALUES('30','La Grand-Combe','12',5163,5811,12.01,'1881','49124',169,623);
INSERT INTO "communes" VALUES('30','Parignargues','30',581,565,11.01,'2079','48748',104,186);
INSERT INTO "communes" VALUES('30','Saint-Julien-de-Peyrolas','20',1259,1112,12.54,'2476','49209',54,211);
INSERT INTO "communes" VALUES('30','Fons-sur-Lussan','15',249,172,10.49,'2214','49095',268,474);
INSERT INTO "communes" VALUES('30','Saint-Roman-de-Codières','33',187,180,18.43,'1601','48891',280,981);
INSERT INTO "communes" VALUES('30','Uchaud','46',4162,3289,8.8,'2147','48619',15,102);
INSERT INTO "communes" VALUES('30','Tharaux','08',63,55,9.52,'2194','49157',96,346);
INSERT INTO "communes" VALUES('30','<NAME>-d''Engras','15',213,190,9.85,'2380','48994',154,260);
INSERT INTO "communes" VALUES('30','Aigremont','14',670,448,12.55,'1984','48851',78,160);
INSERT INTO "communes" VALUES('30','Saint-Gilles','27',13564,11628,153.73,'2327','48531',0,116);
INSERT INTO "communes" VALUES('30','Argilliers','22',387,193,6.67,'2398','48866',37,200);
INSERT INTO "communes" VALUES('30','<NAME>','07',331,294,5.96,'2449','48989',94,261);
INSERT INTO "communes" VALUES('30','Sauveterre','23',1779,1698,13.09,'2729','48917',12,140);
INSERT INTO "communes" VALUES('30','Aimargues','46',4313,3440,26.48,'2080','48539',3,13);
INSERT INTO "communes" VALUES('30','Monteils','38',617,401,6.98,'2050','48988',117,248);
INSERT INTO "communes" VALUES('30','<NAME>','11',347,389,5.59,'1858','49210',307,644);
INSERT INTO "communes" VALUES('30','Barjac','08',1560,1382,42.72,'2235','49231',112,364);
INSERT INTO "communes" VALUES('30','Meynes','06',2344,2080,16.66,'2472','48758',11,78);
INSERT INTO "communes" VALUES('30','Sabran','07',1764,1684,35.64,'2487','49074',39,285);
INSERT INTO "communes" VALUES('30','Nîmes','99',142205,133406,161.85,'2248','48708',21,215);
INSERT INTO "communes" VALUES('30','Gajan','30',703,632,10.91,'2087','48774',79,165);
INSERT INTO "communes" VALUES('30','Saint-Paul-la-Coste','03',288,220,18.95,'1814','49055',168,680);
INSERT INTO "communes" VALUES('30','Orsan','07',1106,1013,6.9,'2588','49035',29,230);
INSERT INTO "communes" VALUES('30','Saint-Maximin','35',684,632,9.9,'2349','48882',40,202);
INSERT INTO "communes" VALUES('30','Vergèze','46',4465,3642,10.16,'2093','48604',10,75);
INSERT INTO "communes" VALUES('30','Estézargues','06',471,384,11.59,'2556','48822',49,232);
INSERT INTO "communes" VALUES('30','Roquedur','33',214,192,10.85,'1488','48862',165,722);
INSERT INTO "communes" VALUES('30','Bagard','05',2448,1972,14.55,'1905','48970',119,440);
INSERT INTO "communes" VALUES('30','Malons-et-Elze','11',105,83,31.21,'1874','49353',219,997);
INSERT INTO "communes" VALUES('30','Saint-Bauzély','30',539,389,5,'2067','48800',92,215);
INSERT INTO "communes" VALUES('30','Comps','06',1661,1485,8.6,'2522','48725',6,150);
INSERT INTO "communes" VALUES('30','Codolet','07',703,555,5.17,'2628','49029',27,50);
INSERT INTO "communes" VALUES('30','Pouzilhac','22',618,430,16.04,'2493','48935',168,261);
INSERT INTO "communes" VALUES('30','Vallérargues','15',138,112,12.73,'2239','49035',232,330);
INSERT INTO "communes" VALUES('30','Montfaucon','23',1425,1329,4.24,'2686','48972',23,68);
INSERT INTO "communes" VALUES('30','Aspères','32',493,348,10.06,'1892','48676',32,243);
INSERT INTO "communes" VALUES('30','Saint-Florent-sur-Auzonnet','24',1174,1124,9.31,'1972','49158',213,542);
INSERT INTO "communes" VALUES('30','Souvignargues','32',769,587,11.09,'1984','48682',42,173);
INSERT INTO "communes" VALUES('30','Servas','41',194,152,10.76,'2066','49064',143,243);
INSERT INTO "communes" VALUES('30','L''Estréchure','25',176,144,19.34,'1607','49009',271,1166);
INSERT INTO "communes" VALUES('30','Saint-Césaire-de-Gauzignan','38',297,224,6.84,'2076','48922',86,202);
INSERT INTO "communes" VALUES('30','Garrigues-Sainte-Eulalie','26',745,515,10,'2198','48881',75,215);
INSERT INTO "communes" VALUES('30','Collias','22',1015,834,20.42,'2378','48838',20,212);
INSERT INTO "communes" VALUES('30','Saint-Laurent-la-Vernède','15',716,587,11.8,'2357','49006',177,302);
INSERT INTO "communes" VALUES('30','Caissargues','45',3735,3319,8.02,'2269','48662',22,93);
INSERT INTO "communes" VALUES('30','Chambon','11',287,240,14.65,'1868','49224',207,644);
INSERT INTO "communes" VALUES('30','Vic-le-Fesq','21',396,295,9.63,'1940','48744',35,163);
INSERT INTO "communes" VALUES('30','Génolhac','11',877,841,17.3,'1792','49277',293,1416);
INSERT INTO "communes" VALUES('30','Bagnols-sur-Cèze','07',18245,18099,31.37,'2537','49069',30,268);
INSERT INTO "communes" VALUES('30','Saint-Paul-les-Fonts','07',832,611,5.46,'2531','48980',55,260);
INSERT INTO "communes" VALUES('30','Bouquet','24',181,142,30.26,'2171','49066',159,600);
INSERT INTO "communes" VALUES('30','Monoblet','13',632,544,21.33,'1722','48889',173,600);
INSERT INTO "communes" VALUES('30','Rochegude','08',214,177,11.94,'2177','49154',101,365);
INSERT INTO "communes" VALUES('30','Saint-André-d''Olérargues','15',408,289,9.75,'2388','49069',86,263);
INSERT INTO "communes" VALUES('30','Valliguières','22',520,370,19.25,'2492','48897',92,271);
INSERT INTO "communes" VALUES('30','Vabres','13',97,102,4.75,'1723','48925',239,521);
INSERT INTO "communes" VALUES('30','Milhaud','45',5798,4871,18.25,'2190','48655',15,122);
INSERT INTO "communes" VALUES('30','Saint-Siffret','35',1052,795,11.28,'2366','48908',83,209);
INSERT INTO "communes" VALUES('30','Bréau-et-Salagosse','39',425,356,24.69,'1371','48878',264,1402);
INSERT INTO "communes" VALUES('30','Collorgues','26',551,358,9.27,'2172','48894',109,216);
INSERT INTO "communes" VALUES('30','Martignargues','38',411,242,4.93,'2046','48939',88,172);
INSERT INTO "communes" VALUES('30','Logrian-Florian','31',272,226,8.58,'1880','48840',74,186);
INSERT INTO "communes" VALUES('30','Fontarèches','15',237,190,13.42,'2335','49009',153,307);
INSERT INTO "communes" VALUES('30','Valleraugue','36',1059,1018,78.35,'1450','48979',294,1560);
INSERT INTO "communes" VALUES('30','Allègre-les-Fumades','24',793,614,24.59,'2121','49111',115,381);
INSERT INTO "communes" VALUES('30','Boisset-et-Gaujac','05',2398,1789,14.24,'1870','48944',105,420);
INSERT INTO "communes" VALUES('30','Saumane','25',255,227,12.14,'1583','49022',300,774);
INSERT INTO "communes" VALUES('30','Molières-Cavaillac','39',910,803,7.71,'1377','48862',235,753);
INSERT INTO "communes" VALUES('30','Saint-André-de-Valborgne','25',466,364,48.71,'1496','49062',339,1200);
INSERT INTO "communes" VALUES('30','Aulas','39',443,391,2.91,'1389','48889',264,642);
INSERT INTO "communes" VALUES('30','Gaujac','07',1000,648,10.28,'2491','48976',85,264);
INSERT INTO "communes" VALUES('30','Fons','30',1175,733,9.28,'2064','48786',95,224);
INSERT INTO "communes" VALUES('30','Bordezac','10',359,401,9.05,'1933','49239',166,488);
INSERT INTO "communes" VALUES('30','<NAME>','20',223,221,10.81,'2373','49229',49,404);
INSERT INTO "communes" VALUES('30','Bessèges','10',3106,3150,10.32,'1960','49213',146,492);
INSERT INTO "communes" VALUES('30','Saint-Pons-la-Calm','07',426,407,6.37,'2467','49003',82,282);
INSERT INTO "communes" VALUES('30','Saint-Victor-de-Malcap','24',726,539,10.87,'2094','49164',117,231);
INSERT INTO "communes" VALUES('30','Saint-Quentin-la-Poterie','35',2959,2740,24.06,'2338','48939',82,272);
INSERT INTO "communes" VALUES('30','Tresques','07',1772,1759,17.9,'2500','49007',63,285);
INSERT INTO "communes" VALUES('30','Massanes','14',192,134,1.64,'1974','48913',92,162);
INSERT INTO "communes" VALUES('30','Flaux','35',320,261,10.68,'2408','48912',112,212);
INSERT INTO "communes" VALUES('30','Théziers','06',1052,882,11.34,'2538','48777',10,129);
INSERT INTO "communes" VALUES('30','Saint-Hilaire-de-Brethmas','41',4182,3622,13.91,'1987','48979',107,202);
INSERT INTO "communes" VALUES('30','Saint-Brès','24',639,534,11.37,'2067','49197',132,431);
INSERT INTO "communes" VALUES('30','Saint-Jean-de-Crieulon','31',228,146,5.57,'1839','48858',80,175);
INSERT INTO "communes" VALUES('30','Issirac','20',220,182,20.28,'2382','49191',93,367);
INSERT INTO "communes" VALUES('30','Colognac','13',199,169,12.3,'1650','48921',318,997);
INSERT INTO "communes" VALUES('30','Euzet','38',409,271,6.81,'2108','48973',115,319);
INSERT INTO "communes" VALUES('30','Tornac','05',893,723,19.68,'1844','48914',117,421);
INSERT INTO "communes" VALUES('30','Goudargues','20',1042,945,30.27,'2366','49128',70,332);
INSERT INTO "communes" VALUES('30','Savignargues','31',227,142,2.77,'1941','48847',97,142);
INSERT INTO "communes" VALUES('30','Ners','38',694,605,4.96,'2025','48918',79,181);
INSERT INTO "communes" VALUES('30','Saint-Victor-la-Coste','23',1893,1525,26.64,'2562','48958',68,275);
INSERT INTO "communes" VALUES('30','Chusclan','07',983,907,13.23,'2607','49055',28,268);
INSERT INTO "communes" VALUES('30','Blauzac','35',1129,766,15.9,'2258','48848',47,162);
INSERT INTO "communes" VALUES('30','Revens','34',28,24,13.85,'1067','48986',428,913);
INSERT INTO "communes" VALUES('30','Sainte-Anastasie','26',1667,1274,43.64,'2206','48817',33,207);
INSERT INTO "communes" VALUES('30','Foissac','26',392,268,3.8,'2179','48937',115,191);
INSERT INTO "communes" VALUES('30','Orthoux-Sérignac-Quilhan','21',402,293,13.98,'1911','48769',44,206);
INSERT INTO "communes" VALUES('30','Lézan','14',1460,980,9.54,'1904','48903',104,180);
INSERT INTO "communes" VALUES('30','Lecques','32',448,216,5.2,'1918','48708',26,111);
INSERT INTO "communes" VALUES('30','Junas','32',1089,725,7.75,'1984','48633',14,96);
INSERT INTO "communes" VALUES('30','Arphy','39',171,174,20.92,'1400','48910',340,1405);
INSERT INTO "communes" VALUES('30','Montignargues','26',620,344,4.46,'2069','48812',79,202);
INSERT INTO "communes" VALUES('30','Montdardier','39',195,186,35.25,'1395','48808',259,889);
INSERT INTO "communes" VALUES('30','Mus','46',1305,1048,2.6,'2072','48600',17,68);
INSERT INTO "communes" VALUES('30','Saint-Dézéry','26',387,248,6.01,'2148','48890',81,196);
INSERT INTO "communes" VALUES('30','Saint-Gervasy','16',1751,1481,6.93,'2369','48753',52,138);
INSERT INTO "communes" VALUES('30','Fontanès','32',631,492,14.44,'1945','48700',24,163);
INSERT INTO "communes" VALUES('30','Saint-Julien-de-la-Nef','33',124,119,8.83,'1502','48850',149,529);
INSERT INTO "communes" VALUES('30','Arre','39',289,283,7.26,'1314','48851',308,880);
INSERT INTO "communes" VALUES('30','Vallabrix','35',379,341,7.94,'2380','48957',108,237);
INSERT INTO "communes" VALUES('30','Vissec','04',53,43,21.83,'1247','48778',340,793);
INSERT INTO "communes" VALUES('30','<NAME>-sur-Cèze','07',173,194,8.37,'2425','49104',50,247);
INSERT INTO "communes" VALUES('30','Mauressargues','14',168,95,5.85,'2025','48844',94,193);
INSERT INTO "communes" VALUES('30','Branoux-les-Taillades','12',1363,1279,15.02,'1837','49134',189,900);
INSERT INTO "communes" VALUES('30','Montclus','20',143,135,21.88,'2315','49178',76,329);
INSERT INTO "communes" VALUES('30','Brouzet-lès-Alès','38',608,431,13.03,'2122','49042',159,623);
INSERT INTO "communes" VALUES('30','Pougnadoresse','15',216,164,7.65,'2411','48991',120,241);
INSERT INTO "communes" VALUES('30','Saint-André-de-Majencoules','36',621,556,21.79,'1486','48920',180,900);
INSERT INTO "communes" VALUES('30','Saint-Hilaire-d''Ozilhan','22',766,640,16.66,'2506','48856',24,233);
INSERT INTO "communes" VALUES('30','Dions','26',584,523,11.32,'2178','48813',52,175);
INSERT INTO "communes" VALUES('30','Saint-Étienne-des-Sorts','07',521,484,9.85,'2633','49097',26,219);
INSERT INTO "communes" VALUES('30','Brouzet-lès-Quissac','21',239,200,15.94,'1837','48736',61,195);
INSERT INTO "communes" VALUES('30','Carsan','20',658,632,11.71,'2508','49153',98,307);
INSERT INTO "communes" VALUES('30','Vestric-et-Candiac','46',1348,1325,10.92,'2136','48600',12,83);
INSERT INTO "communes" VALUES('30','Peyrolles','25',40,37,8.29,'1662','49012',228,804);
INSERT INTO "communes" VALUES('30','Saint-Ambroix','24',3389,3343,11.74,'2068','49178',118,485);
INSERT INTO "communes" VALUES('30','Uzès','35',8552,7987,25.41,'2315','48903',49,274);
INSERT INTO "communes" VALUES('30','Salindres','41',3101,3054,11.53,'2023','49079',148,241);
INSERT INTO "communes" VALUES('30','Marguerittes','16',8634,8185,25.29,'2341','48733',41,197);
INSERT INTO "communes" VALUES('30','Soustelle','03',152,125,11.09,'1861','49083',160,600);
INSERT INTO "communes" VALUES('30','Sommières','32',4479,3678,10.36,'1948','48649',19,106);
INSERT INTO "communes" VALUES('30','Calvisson','32',4994,3598,28.97,'2062','48650',23,215);
INSERT INTO "communes" VALUES('30','Alès','98',41205,39282,23.16,'1938','49030',116,356);
INSERT INTO "communes" VALUES('30','Vauvert','37',11023,10258,109.86,'2155','48548',0,97);
INSERT INTO "communes" VALUES('30','Générargues','05',713,639,10.24,'1830','48980',128,420);
INSERT INTO "communes" VALUES('30','Saint-Julien-les-Rosiers','02',3085,2446,14.01,'1970','49082',158,545);
INSERT INTO "communes" VALUES('30','Villeneuve-lès-Avignon','40',12384,11794,18.27,'2732','48852',10,181);
INSERT INTO "communes" VALUES('30','Saint-Jean-de-Ceyrargues','38',163,156,6.65,'2100','48946',105,241);
INSERT INTO "communes" VALUES('30','Soudorgues','13',281,231,25.7,'1659','48962',289,1166);
INSERT INTO "communes" VALUES('30','Brignon','38',808,658,6.67,'2086','48876',72,141);
INSERT INTO "communes" VALUES('30','Lédenon','16',1380,1139,19.44,'2414','48795',65,214);
INSERT INTO "communes" VALUES('30','Saint-Théodorit','21',461,258,8.75,'1940','48824',80,227);
INSERT INTO "communes" VALUES('30','Saint-Bonnet-du-Gard','06',751,578,6.84,'2454','48808',26,170);
INSERT INTO "communes" VALUES('30','Blandas','04',129,104,37.46,'1307','48792',280,953);
INSERT INTO "communes" VALUES('30','Saint-Christol-lès-Alès','03',6691,5494,20.25,'1934','48983',103,391);
INSERT INTO "communes" VALUES('30','Portes','11',365,315,14.42,'1871','49189',279,735);
INSERT INTO "communes" VALUES('30','Bezouce','16',2126,1953,12.29,'2393','48757',56,139);
INSERT INTO "communes" VALUES('30','Serviers-et-Labaume','35',557,358,12.22,'2243','48931',94,271);
INSERT INTO "communes" VALUES('30','Cavillargues','07',806,647,11.27,'2428','49016',105,262);
INSERT INTO "communes" VALUES('30','Lirac','23',882,744,9.76,'2615','48929',88,266);
INSERT INTO "communes" VALUES('30','Saint-Jean-de-Maruéjols-et-Avéjan','08',935,815,17.3,'2174','49175',91,240);
INSERT INTO "communes" VALUES('30','Saint-Privat-de-Champclos','08',316,203,11.64,'2246','49205',90,279);
INSERT INTO "communes" VALUES('30','Saint-Mamert-du-Gard','30',1484,1090,14.35,'2058','48764',98,214);
INSERT INTO "communes" VALUES('30','<NAME>','24',810,767,10.35,'1943','49170',234,692);
INSERT INTO "communes" VALUES('30','Garons','45',4475,3697,12.28,'2324','48631',54,96);
INSERT INTO "communes" VALUES('30','Mons','41',1455,1342,15.94,'2042','49016',129,281);
INSERT INTO "communes" VALUES('30','Saint-Jean-du-Pin','03',1324,1218,13.96,'1904','49018',159,561);
INSERT INTO "communes" VALUES('30','Maruéjols-lès-Gardon','14',247,143,3.82,'1994','48895',84,220);
INSERT INTO "communes" VALUES('30','Rogues','39',108,128,30.22,'1373','48765',215,685);
INSERT INTO "communes" VALUES('30','Durfort-et-Saint-Martin-de-Sossenac','31',729,602,16.28,'1799','48878',120,324);
INSERT INTO "communes" VALUES('30','Aumessas','04',224,228,21.45,'1297','48879',332,1449);
INSERT INTO "communes" VALUES('30','Saint-Clément','32',315,140,5.04,'1878','48701',40,238);
INSERT INTO "communes" VALUES('30','Aigues-Vives','32',2990,2329,12,'2049','48599',10,87);
INSERT INTO "communes" VALUES('30','Gallargues-le-Montueux','46',3314,2293,10.89,'2040','48579',8,65);
INSERT INTO "communes" VALUES('30','Saint-Nazaire-des-Gardies','31',79,80,11.29,'1868','48866',83,194);
INSERT INTO "communes" VALUES('30','Saint-Maurice-de-Cazevieille','38',653,480,13.15,'2107','48924',99,212);
INSERT INTO "communes" VALUES('30','Vézénobres','38',1721,1380,17.07,'2000','48948',84,219);
INSERT INTO "communes" VALUES('30','Aujargues','32',847,674,6.85,'1985','48655',50,143);
INSERT INTO "communes" VALUES('30','Plans','41',229,140,6.15,'2082','49047',147,263);
INSERT INTO "communes" VALUES('30','Saint-Laurent-de-Carnols','20',472,403,10.15,'2438','49125',59,359);
INSERT INTO "communes" VALUES('30','Bellegarde','09',6282,4929,44.96,'2420','48615',1,102);
INSERT INTO "communes" VALUES('30','Courry','24',305,250,8.22,'2021','49221',198,516);
INSERT INTO "communes" VALUES('30','Saint-Gervais','07',664,664,11.87,'2486','49094',39,240);
INSERT INTO "communes" VALUES('30','Rodilhan','45',2576,2497,4.69,'2330','48696',32,54);
INSERT INTO "communes" VALUES('30','Verfeuil','15',562,454,25.97,'2344','49077',71,324);
INSERT INTO "communes" VALUES('30','Mars','39',174,162,3.8,'1356','48889',345,1168);
INSERT INTO "communes" VALUES('30','Canaules-et-Argentières','31',398,343,10.06,'1906','48867',88,168);
INSERT INTO "communes" VALUES('30','Castelnau-Valence','38',402,259,10.27,'2128','48899',89,196);
INSERT INTO "communes" VALUES('30','Pompignan','28',839,651,41.31,'1688','48771',153,522);
INSERT INTO "communes" VALUES('30','Saint-Just-et-Vacquières','38',299,262,23.52,'2097','49012',128,309);
INSERT INTO "communes" VALUES('30','Pommiers','39',63,60,6.51,'1412','48835',218,628);
INSERT INTO "communes" VALUES('30','Saint-Sébastien-d''Aigrefeuille','05',512,435,15.82,'1842','49008',167,669);
INSERT INTO "communes" VALUES('30','Saze','40',1840,1457,12.6,'2605','48824',54,195);
INSERT INTO "communes" VALUES('30','<NAME>','26',612,489,7.9,'2110','48812',69,155);
INSERT INTO "communes" VALUES('30','Aiguèze','20',230,204,20.03,'2466','49226',40,405);
INSERT INTO "communes" VALUES('30','Sainte-Croix-de-Caderle','13',121,106,7.63,'1698','48967',240,813);
INSERT INTO "communes" VALUES('30','Deaux','38',608,476,5.95,'2015','48964',103,198);
INSERT INTO "communes" VALUES('30','Langlade','32',2083,1839,9,'2126','48672',48,165);
INSERT INTO "communes" VALUES('30','Bouillargues','45',6134,5202,15.77,'2323','48667',27,84);
INSERT INTO "communes" VALUES('30','Laudun-l''Ardoise','23',5723,5125,34.19,'2579','49005',26,274);
INSERT INTO "communes" VALUES('30','Cendras','03',1914,1951,12.86,'1908','49061',138,560);
INSERT INTO "communes" VALUES('30','Thoiras','13',433,359,22.89,'1768','48961',139,503);
INSERT INTO "communes" VALUES('30','Saint-Julien-de-Cassagnas','24',625,518,4.46,'2068','49124',135,208);
INSERT INTO "communes" VALUES('30','Saint-Laurent-des-Arbres','23',2511,1743,16.35,'2626','48950',39,261);
INSERT INTO "communes" VALUES('30','Puechredon','31',37,36,8.08,'1904','48836',93,242);
INSERT INTO "communes" VALUES('30','Cassagnoles','14',425,243,5.19,'1993','48914',84,183);
INSERT INTO "communes" VALUES('31','Lunax','06',60,56,5.1,'-1833','48155',217,298);
INSERT INTO "communes" VALUES('31','Fontenilles','30',4505,2920,20.22,'-1273','48392',174,280);
INSERT INTO "communes" VALUES('31','Arbon','01',92,76,4.47,'-1766','47778',468,896);
INSERT INTO "communes" VALUES('31','Loudet','22',206,218,5.13,'-1960','47942',447,525);
INSERT INTO "communes" VALUES('31','Castillon-de-Larboust','04',65,83,20.67,'-2003','47562',877,3110);
INSERT INTO "communes" VALUES('31','Saint-Aventin','04',87,96,17.4,'-1989','47563',679,2676);
INSERT INTO "communes" VALUES('31','Gensac-sur-Garonne','27',346,264,10.14,'-1339','48019',215,380);
INSERT INTO "communes" VALUES('31','Pin-Balma','43',887,655,6.63,'-893','48475',144,231);
INSERT INTO "communes" VALUES('31','Ausseing','32',72,61,5.88,'-1465','47947',339,613);
INSERT INTO "communes" VALUES('31','Ségreville','08',213,144,4.97,'-660','48322',180,272);
INSERT INTO "communes" VALUES('31','Tarabel','17',355,373,7.42,'-733','48346',168,252);
INSERT INTO "communes" VALUES('31','Seilh','15',3065,2086,6.16,'-1092','48550',112,145);
INSERT INTO "communes" VALUES('31','Roques','52',3850,2988,9.3,'-1067','48345',148,164);
INSERT INTO "communes" VALUES('31','Bragayrac','30',272,250,8.25,'-1408','48313',204,326);
INSERT INTO "communes" VALUES('31','Boudrac','22',131,122,11.64,'-2011','47990',379,564);
INSERT INTO "communes" VALUES('31','Esténos','28',185,167,3.41,'-1884','47719',466,1467);
INSERT INTO "communes" VALUES('31','Mirepoix-sur-Tarn','39',701,537,5.46,'-850','48681',85,221);
INSERT INTO "communes" VALUES('31','Juzes','25',80,84,3.75,'-607','48277',195,251);
INSERT INTO "communes" VALUES('31','Salies-du-Salat','32',1998,1946,6.81,'-1531','47893',281,428);
INSERT INTO "communes" VALUES('31','Soueich','01',542,502,11.33,'-1729','47830',360,700);
INSERT INTO "communes" VALUES('31','Beauzelle','51',5179,5375,4.42,'-1065','48517',115,145);
INSERT INTO "communes" VALUES('31','Sauveterre-de-Comminges','05',720,720,30.52,'-1854','47815',407,1031);
INSERT INTO "communes" VALUES('31','Portet-de-Luchon','04',28,32,4.11,'-2056','47570',1229,1928);
INSERT INTO "communes" VALUES('31','Gragnague','37',1772,1437,13.04,'-837','48536',136,233);
INSERT INTO "communes" VALUES('31','Lacaugne','27',198,168,6.06,'-1184','48096',223,333);
INSERT INTO "communes" VALUES('31','Lestelle-de-Saint-Martory','31',445,378,9.4,'-1584','47912',284,410);
INSERT INTO "communes" VALUES('31','Saint-Gaudens','29',11248,10837,27.35,'-1792','47898',338,558);
INSERT INTO "communes" VALUES('31','Lacroix-Falgarde','10',2028,1485,6.09,'-1030','48332',146,254);
INSERT INTO "communes" VALUES('31','Lez','28',62,67,2.6,'-1817','47677',499,1180);
INSERT INTO "communes" VALUES('31','Vigoulet-Auzil','10',944,989,3.46,'-974','48341',169,262);
INSERT INTO "communes" VALUES('31','Cazères','11',4667,3258,19.55,'-1390','48007',215,362);
INSERT INTO "communes" VALUES('31','Empeaux','30',234,165,4.56,'-1388','48367',171,311);
INSERT INTO "communes" VALUES('31','<NAME>','22',424,351,13.05,'-1917','47939',412,517);
INSERT INTO "communes" VALUES('31','<NAME>','23',1776,1100,8.92,'-1158','48218',165,282);
INSERT INTO "communes" VALUES('31','Saint-Julia','25',369,333,11.46,'-488','48322',200,301);
INSERT INTO "communes" VALUES('31','Roquettes','52',3612,3291,3.36,'-1078','48332',148,163);
INSERT INTO "communes" VALUES('31','Lagrâce-Dieu','03',478,269,8.52,'-1018','48155',181,321);
INSERT INTO "communes" VALUES('31','Saint-Marcel-Paulel','37',449,401,7.1,'-813','48513',143,230);
INSERT INTO "communes" VALUES('31','Lilhac','16',132,90,7.3,'-1697','48094',280,381);
INSERT INTO "communes" VALUES('31','Léguevin','18',8475,6177,24.45,'-1226','48443',164,237);
INSERT INTO "communes" VALUES('31','Sengouagnet','01',222,219,18.6,'-1720','47763',467,1908);
INSERT INTO "communes" VALUES('31','Colomiers','48',35186,28538,20.83,'-1112','48459',145,191);
INSERT INTO "communes" VALUES('31','Castagnède','32',176,184,3.32,'-1509','47838',312,442);
INSERT INTO "communes" VALUES('31','Péchabou','10',2011,1303,3.57,'-920','48335',148,261);
INSERT INTO "communes" VALUES('31','Fos','28',252,273,18.17,'-1778','47637',520,2024);
INSERT INTO "communes" VALUES('31','Fabas','16',213,214,18.68,'-1602','48127',256,357);
INSERT INTO "communes" VALUES('31','Pouy-de-Touges','13',363,222,13.79,'-1444','48157',232,368);
INSERT INTO "communes" VALUES('31','Chaum','28',214,193,5.7,'-1868','47705',468,1680);
INSERT INTO "communes" VALUES('31','Francazal','32',20,16,5.46,'-1489','47799',371,1254);
INSERT INTO "communes" VALUES('31','Cardeilhac','06',256,230,18.41,'-1836','47998',335,488);
INSERT INTO "communes" VALUES('31','Mondavezan','11',787,643,21.09,'-1447','48044',252,374);
INSERT INTO "communes" VALUES('31','Monestrol','24',60,55,5.23,'-740','48148',209,302);
INSERT INTO "communes" VALUES('31','Barbazan','05',447,381,6.05,'-1904','47814',439,890);
INSERT INTO "communes" VALUES('31','Montjoire','19',1201,1021,20.29,'-892','48634',114,235);
INSERT INTO "communes" VALUES('31','Figarol','32',276,236,11.6,'-1599','47872',295,425);
INSERT INTO "communes" VALUES('31','Montauban-de-Luchon','04',465,459,6.02,'-1919','47547',617,1902);
INSERT INTO "communes" VALUES('31','Montgiscard','21',2068,1945,13.16,'-848','48287',153,274);
INSERT INTO "communes" VALUES('31','Muret','23',23864,20742,57.84,'-1123','48289',152,305);
INSERT INTO "communes" VALUES('31','Terrebasse','02',139,121,9.56,'-1525','48043',261,380);
INSERT INTO "communes" VALUES('31','Montesquieu-Lauragais','38',917,854,24.75,'-787','48240',158,274);
INSERT INTO "communes" VALUES('31','Daux','15',1920,1256,16.88,'-1186','48549',119,193);
INSERT INTO "communes" VALUES('31','<NAME>','39',1006,610,6.82,'-883','48680',85,122);
INSERT INTO "communes" VALUES('31','Cabanac-Cazaux','01',122,108,3.81,'-1775','47815',380,788);
INSERT INTO "communes" VALUES('31','Saint-Lys','30',8537,5472,21.3,'-1288','48349',175,220);
INSERT INTO "communes" VALUES('31','Aurin','17',330,245,7.49,'-726','48374',167,265);
INSERT INTO "communes" VALUES('31','Vieille-Toulouse','10',1120,890,5.53,'-989','48361',141,266);
INSERT INTO "communes" VALUES('31','Ramonville-Saint-Agne','44',11994,11647,6.46,'-957','48385',143,252);
INSERT INTO "communes" VALUES('31','Mauvezin','16',83,48,4.76,'-1569','48207',192,316);
INSERT INTO "communes" VALUES('31','<NAME>','26',184,151,12.04,'-1465','48224',207,352);
INSERT INTO "communes" VALUES('31','Ore','05',119,109,2.86,'-1873','47750',453,724);
INSERT INTO "communes" VALUES('31','Saint-Lary-Boujean','06',131,116,8.39,'-1778','48032',315,431);
INSERT INTO "communes" VALUES('31','Anan','16',222,230,13.43,'-1691','48173',199,327);
INSERT INTO "communes" VALUES('31','Miremont','03',2086,1446,22.4,'-1022','48189',167,291);
INSERT INTO "communes" VALUES('31','Caubous','04',6,12,3.78,'-2016','47612',1199,1918);
INSERT INTO "communes" VALUES('31','Francon','11',210,168,9.54,'-1515','48067',255,365);
INSERT INTO "communes" VALUES('31','Ausson','22',530,542,4.39,'-1934','47869',399,466);
INSERT INTO "communes" VALUES('31','Boussens','11',1088,834,4.33,'-1515','47973',257,403);
INSERT INTO "communes" VALUES('31','Sarrecave','06',78,61,2.49,'-1934','48017',339,470);
INSERT INTO "communes" VALUES('31','Gaillac-Toulza','12',1216,912,40.4,'-962','48061',206,360);
INSERT INTO "communes" VALUES('31','His','32',232,179,5.05,'-1523','47851',298,425);
INSERT INTO "communes" VALUES('31','<NAME>','39',431,261,10.85,'-880','48761',120,215);
INSERT INTO "communes" VALUES('31','Villariès','14',816,592,7.33,'-938','48615',127,203);
INSERT INTO "communes" VALUES('31','Menville','15',574,405,5.07,'-1269','48531',122,225);
INSERT INTO "communes" VALUES('31','Saint-Martory','31',876,877,8.3,'-1563','47936',269,485);
INSERT INTO "communes" VALUES('31','Mérenvielle','18',472,400,10.45,'-1311','48475',149,286);
INSERT INTO "communes" VALUES('31','Binos','28',35,18,1.96,'-1910','47668',669,1606);
INSERT INTO "communes" VALUES('31','Antichan-de-Frontignes','05',82,84,4.27,'-1856','47748',533,1655);
INSERT INTO "communes" VALUES('31','Gratentour','14',3545,3034,4.09,'-1006','48579',123,194);
INSERT INTO "communes" VALUES('31','Garin','04',133,102,5.62,'-2022','47566',1027,2003);
INSERT INTO "communes" VALUES('31','Couladère','11',443,350,2.18,'-1384','48002',225,306);
INSERT INTO "communes" VALUES('31','<NAME>','08',366,280,11.31,'-570','48409',170,275);
INSERT INTO "communes" VALUES('31','Cornebarrieu','51',5724,4693,18.7,'-1122','48499',130,188);
INSERT INTO "communes" VALUES('31','Tourreilles','22',376,358,12.33,'-1983','47903',413,553);
INSERT INTO "communes" VALUES('31','Mervilla','10',266,172,2.76,'-959','48342',185,275);
INSERT INTO "communes" VALUES('31','Savarthès','29',154,122,3.05,'-1700','47912',337,440);
INSERT INTO "communes" VALUES('31','Trébons-sur-la-Grasse','38',417,320,10.87,'-682','48278',175,272);
INSERT INTO "communes" VALUES('31','Roumens','25',249,201,3.57,'-453','48293',193,273);
INSERT INTO "communes" VALUES('31','Gauré','37',492,494,13.47,'-783','48460',164,243);
INSERT INTO "communes" VALUES('31','Cessales','38',127,130,3.34,'-661','48286',186,262);
INSERT INTO "communes" VALUES('31','<NAME>','07',340,223,8.13,'-1375','48581',169,284);
INSERT INTO "communes" VALUES('31','Francarville','08',175,154,7,'-651','48428',161,256);
INSERT INTO "communes" VALUES('31','Pradère-les-Bourguets','18',224,252,4.89,'-1300','48490',128,160);
INSERT INTO "communes" VALUES('31','Vernet','03',2080,1895,10.53,'-1005','48259',157,174);
INSERT INTO "communes" VALUES('31','Fenouillet','49',5166,4030,9.51,'-1047','48533',115,129);
INSERT INTO "communes" VALUES('31','Saiguède','30',742,524,11.86,'-1325','48366',208,312);
INSERT INTO "communes" VALUES('31','Mauvaisin','24',223,252,11.05,'-874','48172',196,301);
INSERT INTO "communes" VALUES('31','Ayguesvives','21',2373,1813,13.11,'-822','48264',156,271);
INSERT INTO "communes" VALUES('31','Castanet-Tolosan','10',11033,10394,8.22,'-932','48351',145,281);
INSERT INTO "communes" VALUES('31','Mauressac','03',437,240,4.52,'-1002','48138',191,312);
INSERT INTO "communes" VALUES('31','Nénigan','06',60,55,2.38,'-1815','48175',213,297);
INSERT INTO "communes" VALUES('31','Montastruc-Savès','26',64,76,5.75,'-1461','48179',237,346);
INSERT INTO "communes" VALUES('31','Tournefeuille','53',25340,22745,18.17,'-1103','48427',146,190);
INSERT INTO "communes" VALUES('31','Saint-Ferréol-de-Comminges','06',53,53,5.88,'-1774','48153',213,335);
INSERT INTO "communes" VALUES('31','Salles-sur-Garonne','27',516,300,5.68,'-1285','48081',205,229);
INSERT INTO "communes" VALUES('31','Saint-Élix-le-Château','13',728,543,10.52,'-1331','48088',222,244);
INSERT INTO "communes" VALUES('31','Labruyère-Dorsa','03',248,143,2.19,'-963','48230',184,252);
INSERT INTO "communes" VALUES('31','Cintegabelle','12',2625,2353,52.92,'-896','48125',185,302);
INSERT INTO "communes" VALUES('31','Rieumes','26',3384,2604,30.9,'-1354','48236',214,332);
INSERT INTO "communes" VALUES('31','Salerm','16',55,55,5.87,'-1689','48113',256,377);
INSERT INTO "communes" VALUES('31','Caraman','08',2357,1948,30.19,'-643','48367',175,294);
INSERT INTO "communes" VALUES('31','Labastide-Saint-Sernin','14',1799,1328,4.97,'-962','48599',126,184);
INSERT INTO "communes" VALUES('31','Garde','38',328,239,11.69,'-693','48162',185,292);
INSERT INTO "communes" VALUES('31','Tour','20',80,103,6.24,'-1173','48001',242,383);
INSERT INTO "communes" VALUES('31','Lourde','05',98,88,1.24,'-1862','47760',533,860);
INSERT INTO "communes" VALUES('31','Saint-Julien-sur-Garonne','27',516,341,8.15,'-1316','48047',205,241);
INSERT INTO "communes" VALUES('31','Aspret-Sarrat','29',153,97,3.82,'-1800','47852',388,568);
INSERT INTO "communes" VALUES('31','Aulon','02',360,347,14.9,'-1685','47990',312,483);
INSERT INTO "communes" VALUES('31','Montclar-de-Comminges','11',75,69,6.45,'-1461','47975',311,570);
INSERT INTO "communes" VALUES('31','Saint-Geniès-Bellevue','50',2164,1789,3.78,'-945','48537',142,214);
INSERT INTO "communes" VALUES('31','Montgaillard-de-Salies','32',97,105,6.04,'-1561','47846',307,424);
INSERT INTO "communes" VALUES('31','Bagiry','05',83,77,2.78,'-1901','47753',449,1002);
INSERT INTO "communes" VALUES('31','Loubens-Lauragais','08',417,323,6.47,'-612','48415',164,245);
INSERT INTO "communes" VALUES('31','Saint-Pierre','37',252,209,4.74,'-763','48479',150,232);
INSERT INTO "communes" VALUES('31','Folcarde','38',126,86,2.33,'-603','48227',205,271);
INSERT INTO "communes" VALUES('31','Portet-sur-Garonne','52',9435,8737,16.19,'-1034','48358',142,235);
INSERT INTO "communes" VALUES('31','Lherm','23',3417,2565,27.26,'-1238','48256',187,240);
INSERT INTO "communes" VALUES('31','Montlaur','21',1213,890,9.61,'-850','48320',149,227);
INSERT INTO "communes" VALUES('31','Riolas','16',52,42,2.86,'-1578','48166',239,352);
INSERT INTO "communes" VALUES('31','Pouze','21',97,89,3.82,'-900','48260',199,273);
INSERT INTO "communes" VALUES('31','Carbonne','09',5205,3708,26.59,'-1241','48108',183,332);
INSERT INTO "communes" VALUES('31','Frontignan-Savès','16',60,49,2.81,'-1573','48218',192,316);
INSERT INTO "communes" VALUES('31','Bourg-d''Oueil','04',8,10,9.52,'-2043','47621',1274,2150);
INSERT INTO "communes" VALUES('31','Saint-Christaud','20',260,228,10.87,'-1342','47988',225,394);
INSERT INTO "communes" VALUES('31','Castelginest','49',8745,7745,8.11,'-1004','48549',122,193);
INSERT INTO "communes" VALUES('31','Estadens','01',511,428,17.47,'-1656','47817',396,805);
INSERT INTO "communes" VALUES('31','Espanès','21',262,232,3.53,'-942','48281',199,281);
INSERT INTO "communes" VALUES('31','Rieux-Volvestre','27',2486,1900,32.38,'-1266','48064',195,343);
INSERT INTO "communes" VALUES('31','Moustajon','04',169,181,2.3,'-1932','47572',605,1708);
INSERT INTO "communes" VALUES('31','Ganties','01',301,247,12.03,'-1673','47850',355,501);
INSERT INTO "communes" VALUES('31','Goyrans','10',911,808,5.75,'-1005','48312',147,274);
INSERT INTO "communes" VALUES('31','Encausse-les-Thermes','01',659,590,8.15,'-1774','47831',356,690);
INSERT INTO "communes" VALUES('31','Lavelanet-de-Comminges','27',558,482,13.54,'-1354','48062',232,253);
INSERT INTO "communes" VALUES('31','Labroquère','05',315,269,4.37,'-1938','47820',422,690);
INSERT INTO "communes" VALUES('31','Longages','09',2650,1900,21.42,'-1218','48172',190,220);
INSERT INTO "communes" VALUES('31','Saint-Pé-d''Ardet','05',126,115,3.47,'-1851','47761',575,1001);
INSERT INTO "communes" VALUES('31','Saint-Sulpice-sur-Lèze','09',1845,1640,13.97,'-1127','48143',190,321);
INSERT INTO "communes" VALUES('31','Bretx','15',568,357,8.41,'-1264','48561',130,216);
INSERT INTO "communes" VALUES('31','Montastruc-de-Salies','32',272,292,16.12,'-1604','47811',327,811);
INSERT INTO "communes" VALUES('31','La Salvetat-Saint-Gilles','18',6911,5786,5.75,'-1183','48418',166,197);
INSERT INTO "communes" VALUES('31','Saint-Araille','13',138,125,6.54,'-1494','48176',238,340);
INSERT INTO "communes" VALUES('31','Albiac','08',202,156,4.71,'-618','48391',175,263);
INSERT INTO "communes" VALUES('31','Sarremezan','06',98,69,4.25,'-1855','48009',299,427);
INSERT INTO "communes" VALUES('31','Baziège','21',3189,2204,19.72,'-802','48283',156,253);
INSERT INTO "communes" VALUES('31','Laffite-Toupière','31',85,70,4.84,'-1590','47961',289,482);
INSERT INTO "communes" VALUES('31','Villefranche-de-Lauragais','38',4106,3348,10.35,'-687','48222',168,256);
INSERT INTO "communes" VALUES('31','Mondonville','51',4236,1897,11.89,'-1166','48523',145,193);
INSERT INTO "communes" VALUES('31','Mirambeau','16',53,51,3.96,'-1633','48225',183,300);
INSERT INTO "communes" VALUES('31','Azas','19',571,400,12.83,'-737','48583',133,233);
INSERT INTO "communes" VALUES('31','Ambax','16',70,72,5.95,'-1558','48187',203,348);
INSERT INTO "communes" VALUES('31','Bellegarde-Sainte-Marie','07',205,176,11.66,'-1359','48524',139,285);
INSERT INTO "communes" VALUES('31','Lafitte-Vigordane','13',1059,653,11.38,'-1304','48111',214,236);
INSERT INTO "communes" VALUES('31','Labastide-Beauvoir','21',1080,669,10.2,'-745','48313',179,264);
INSERT INTO "communes" VALUES('31','Labarthe-Inard','29',875,778,9.97,'-1665','47898',308,374);
INSERT INTO "communes" VALUES('31','Lescuns','11',57,42,3.01,'-1471','48046',256,376);
INSERT INTO "communes" VALUES('31','Villeneuve-de-Rivière','29',1607,1361,13.57,'-1856','47912',365,496);
INSERT INTO "communes" VALUES('31','Cuguron','22',195,176,7.07,'-1996','47889',454,568);
INSERT INTO "communes" VALUES('31','Montréjeau','22',2781,2577,8.21,'-1964','47872',409,543);
INSERT INTO "communes" VALUES('31','Noueilles','21',335,234,5.51,'-906','48240',185,266);
INSERT INTO "communes" VALUES('31','Chein-Dessus','01',194,184,12.69,'-1614','47799',378,1353);
INSERT INTO "communes" VALUES('31','Mailholas','27',40,39,2.94,'-1206','48053',230,342);
INSERT INTO "communes" VALUES('31','Izaut-de-l''Hôtel','01',293,306,9.68,'-1758','47796',397,800);
INSERT INTO "communes" VALUES('31','Mons','43',1455,1084,7.32,'-847','48456',151,233);
INSERT INTO "communes" VALUES('31','Villemur-sur-Tarn','39',5654,4934,46.57,'-924','48740',85,218);
INSERT INTO "communes" VALUES('31','Roquefort-sur-Garonne','32',783,715,13.56,'-1514','47961',257,561);
INSERT INTO "communes" VALUES('31','Cox','07',342,267,4.07,'-1438','48623',179,296);
INSERT INTO "communes" VALUES('31','Larcan','29',181,156,6.96,'-1795','47973',349,450);
INSERT INTO "communes" VALUES('31','Bouloc','14',4134,2930,18.55,'-1035','48645',127,226);
INSERT INTO "communes" VALUES('31','Marignac','28',530,507,12.95,'-1865','47683',475,2160);
INSERT INTO "communes" VALUES('31','Saint-Paul-sur-Save','15',1314,664,5.07,'-1234','48554',117,173);
INSERT INTO "communes" VALUES('31','Pibrac','18',8091,7440,25.86,'-1169','48463',145,237);
INSERT INTO "communes" VALUES('31','Belberaud','21',1273,1124,7.47,'-852','48342',148,243);
INSERT INTO "communes" VALUES('31','Blagnac','51',21710,20590,16.88,'-1052','48484',119,153);
INSERT INTO "communes" VALUES('31','Bélesta-en-Lauragais','25',112,84,5.59,'-571','48268',209,300);
INSERT INTO "communes" VALUES('31','Cadours','07',1068,694,10.58,'-1430','48587',147,242);
INSERT INTO "communes" VALUES('31','Belbèze-de-Lauragais','21',104,101,3.71,'-867','48268',190,275);
INSERT INTO "communes" VALUES('31','Fronsac','28',202,216,4.15,'-1875','47725',461,1680);
INSERT INTO "communes" VALUES('31','Bessières','19',3253,2224,16.68,'-812','48667',85,194);
INSERT INTO "communes" VALUES('31','Castillon-de-Saint-Martory','31',338,259,10.98,'-1641','47927',283,488);
INSERT INTO "communes" VALUES('31','Pins-Justaret','52',4454,3917,4.51,'-1059','48311',146,167);
INSERT INTO "communes" VALUES('31','Saint-Michel','11',330,231,15.53,'-1391','47964',267,543);
INSERT INTO "communes" VALUES('31','Laréole','07',140,122,8.88,'-1460','48598',135,272);
INSERT INTO "communes" VALUES('31','Saint-Félix-Lauragais','25',1336,1305,51.88,'-499','48276',178,341);
INSERT INTO "communes" VALUES('31','Mondilhan','06',91,80,10.02,'-1809','48104',244,390);
INSERT INTO "communes" VALUES('31','Lavernose-Lacasse','23',2699,1944,17.83,'-1196','48218',181,210);
INSERT INTO "communes" VALUES('31','Toulouse','99',441802,390301,118.3,'-994','48449',115,263);
INSERT INTO "communes" VALUES('31','Rieumajou','38',137,87,3.77,'-607','48239',205,282);
INSERT INTO "communes" VALUES('31','Frouzins','23',7902,5938,7.91,'-1124','48351',157,176);
INSERT INTO "communes" VALUES('31','Montgeard','24',441,322,9.32,'-781','48154',195,290);
INSERT INTO "communes" VALUES('31','Bouzin','02',81,70,4.27,'-1613','47991',312,446);
INSERT INTO "communes" VALUES('31','Montgaillard-Lauragais','38',633,546,11.12,'-709','48257',164,259);
INSERT INTO "communes" VALUES('31','Lieoux','29',118,0,5.83,'-1741','47950',359,449);
INSERT INTO "communes" VALUES('31','Cazac','16',84,81,6.23,'-1547','48163',246,356);
INSERT INTO "communes" VALUES('31','Salles-et-Pratviel','04',140,118,2.12,'-1923','47589',591,982);
INSERT INTO "communes" VALUES('31','L''Isle-en-Dodon','16',1984,1901,22.58,'-1668','48201',187,326);
INSERT INTO "communes" VALUES('31','Villaudric','14',1398,1112,12.16,'-1005','48700',112,156);
INSERT INTO "communes" VALUES('31','Sabonnères','26',294,218,12.3,'-1414','48296',196,331);
INSERT INTO "communes" VALUES('31','Bourg-Saint-Bernard','17',903,774,16.6,'-693','48447',156,253);
INSERT INTO "communes" VALUES('31','Vallègue','38',530,382,4.18,'-647','48249',197,261);
INSERT INTO "communes" VALUES('31','Deyme','21',855,835,7.05,'-900','48311',148,275);
INSERT INTO "communes" VALUES('31','Plagnole','26',266,268,7.24,'-1423','48237',228,347);
INSERT INTO "communes" VALUES('31','Villematier','39',1022,863,14.96,'-920','48699',85,156);
INSERT INTO "communes" VALUES('31','Savères','26',205,158,10.71,'-1369','48189',220,337);
INSERT INTO "communes" VALUES('31','Villeneuve-lès-Bouloc','14',1025,950,12.66,'-1011','48633',113,217);
INSERT INTO "communes" VALUES('31','Beaupuy','43',1275,1082,5.84,'-869','48497',152,221);
INSERT INTO "communes" VALUES('31','Caragoudes','08',233,212,8.31,'-706','48333',175,263);
INSERT INTO "communes" VALUES('31','Cépet','14',1606,1311,7.11,'-1006','48611',123,185);
INSERT INTO "communes" VALUES('31','Montesquieu-Guittaut','16',155,123,10.06,'-1736','48154',219,325);
INSERT INTO "communes" VALUES('31','Auzeville-Tolosane','10',3552,2199,6.66,'-950','48364',142,272);
INSERT INTO "communes" VALUES('31','Beauteville','38',185,104,4.49,'-665','48164',181,293);
INSERT INTO "communes" VALUES('31','Montaut','09',510,440,17.88,'-1162','48173',175,301);
INSERT INTO "communes" VALUES('31','Saint-Marcet','29',411,393,14.06,'-1775','47996',323,464);
INSERT INTO "communes" VALUES('31','Auterive','03',9107,6526,36.54,'-958','48167',165,292);
INSERT INTO "communes" VALUES('31','Marliac','12',122,108,7.2,'-957','48030',250,369);
INSERT INTO "communes" VALUES('31','Blajan','06',493,440,12.68,'-1881','48067',277,430);
INSERT INTO "communes" VALUES('31','Palaminy','11',801,630,11.13,'-1408','48003',235,460);
INSERT INTO "communes" VALUES('31','Alan','02',306,301,11.29,'-1552','48033',271,520);
INSERT INTO "communes" VALUES('31','Saint-Plancard','22',374,371,16.09,'-1958','47967',349,530);
INSERT INTO "communes" VALUES('31','Canens','20',57,69,4.84,'-1117','48017',240,361);
INSERT INTO "communes" VALUES('31','Cassagne','32',645,622,10.97,'-1498','47915',278,470);
INSERT INTO "communes" VALUES('31','Arguenos','01',53,57,11.09,'-1792','47746',517,1895);
INSERT INTO "communes" VALUES('31','Saint-Béat','28',393,364,7.37,'-1827','47683',476,1760);
INSERT INTO "communes" VALUES('31','Lasserre','18',932,644,9.51,'-1298','48488',145,253);
INSERT INTO "communes" VALUES('31','Burgalays','28',131,115,5.05,'-1897','47658',519,1731);
INSERT INTO "communes" VALUES('31','Lanta','17',1715,1174,30.12,'-757','48400',159,275);
INSERT INTO "communes" VALUES('31','Verfeil','37',3146,2505,41.23,'-751','48508',146,273);
INSERT INTO "communes" VALUES('31','Cazaril-Tambourès','22',73,99,6.93,'-1990','47983',378,525);
INSERT INTO "communes" VALUES('31','Vallesvilles','17',376,291,8.16,'-767','48435',174,254);
INSERT INTO "communes" VALUES('31','Razecueillé','01',34,37,6.5,'-1710','47742',516,1538);
INSERT INTO "communes" VALUES('31','Merville','15',4783,2799,30.68,'-1154','48579',105,179);
INSERT INTO "communes" VALUES('31','Urau','32',148,136,18.45,'-1533','47796',359,1260);
INSERT INTO "communes" VALUES('31','Montaigut-sur-Save','15',1569,1206,12.65,'-1229','48546',116,194);
INSERT INTO "communes" VALUES('31','Castelgaillard','16',58,66,6.82,'-1595','48172',206,351);
INSERT INTO "communes" VALUES('31','Saint-Pierre-de-Lages','17',770,378,7.2,'-791','48411',165,251);
INSERT INTO "communes" VALUES('31','Saint-Mamet','04',574,499,11.16,'-1926','47535',630,1975);
INSERT INTO "communes" VALUES('31','Corronsac','21',712,447,6.34,'-932','48304',186,281);
INSERT INTO "communes" VALUES('31','Mondouzil','43',239,218,4.09,'-867','48482',155,231);
INSERT INTO "communes" VALUES('31','Beaufort','26',353,247,8.51,'-1361','48287',236,323);
INSERT INTO "communes" VALUES('31','Escalquens','21',5932,5476,8.42,'-862','48353',146,232);
INSERT INTO "communes" VALUES('31','Valentine','29',916,894,8.03,'-1813','47884',356,546);
INSERT INTO "communes" VALUES('31','Lécussan','22',289,212,7.43,'-2040','47956',413,581);
INSERT INTO "communes" VALUES('31','Baren','28',5,8,3.06,'-1908','47632',680,1892);
INSERT INTO "communes" VALUES('31','Herran','01',68,80,15.37,'-1581','47747',520,1574);
INSERT INTO "communes" VALUES('31','Goudex','16',40,43,2.61,'-1535','48196',214,350);
INSERT INTO "communes" VALUES('31','Bezins-Garraux','28',51,39,7.71,'-1831','47703',568,1788);
INSERT INTO "communes" VALUES('31','Boussan','02',214,190,12.45,'-1609','48049',280,466);
INSERT INTO "communes" VALUES('31','<NAME>','07',787,596,16.71,'-1332','48525',125,284);
INSERT INTO "communes" VALUES('31','Auriac-sur-Vendinelle','08',996,957,30.71,'-567','48360',183,270);
INSERT INTO "communes" VALUES('31','Juzet-de-Luchon','04',389,365,6.8,'-1920','47565',608,2000);
INSERT INTO "communes" VALUES('31','Seysses','23',7839,5745,25.26,'-1138','48331',160,182);
INSERT INTO "communes" VALUES('31','Montgaillard-sur-Save','06',78,66,4.13,'-1786','48060',255,363);
INSERT INTO "communes" VALUES('31','Lauzerville','17',1291,873,3.46,'-857','48395',149,225);
INSERT INTO "communes" VALUES('31','Gibel','24',308,261,19.4,'-731','48104',215,343);
INSERT INTO "communes" VALUES('31','Samouillan','02',126,108,5.33,'-1546','48071',265,365);
INSERT INTO "communes" VALUES('31','Rebigue','10',524,445,5.16,'-950','48321',182,281);
INSERT INTO "communes" VALUES('31','Lodes','29',279,255,13.74,'-1847','47964',367,493);
INSERT INTO "communes" VALUES('31','Lagardelle-sur-Lèze','52',2441,2185,13.78,'-1053','48236',167,217);
INSERT INTO "communes" VALUES('31','Ciadoux','06',264,186,9.73,'-1777','48065',252,382);
INSERT INTO "communes" VALUES('31','Villenouvelle','38',1324,940,7.95,'-748','48262',158,241);
INSERT INTO "communes" VALUES('31','Castéra-Vignoles','06',63,54,4.19,'-1731','48082',254,376);
INSERT INTO "communes" VALUES('31','Saint-Élix-Séglan','02',41,47,2.86,'-1647','47995',313,401);
INSERT INTO "communes" VALUES('31','Saint-Rustice','14',436,425,2.36,'-1121','48673',107,217);
INSERT INTO "communes" VALUES('31','Vignaux','07',121,100,4.04,'-1410','48539',156,244);
INSERT INTO "communes" VALUES('31','Caujac','12',777,439,10.82,'-965','48110',197,334);
INSERT INTO "communes" VALUES('31','Puydaniel','03',408,318,7.38,'-1005','48151',187,322);
INSERT INTO "communes" VALUES('31','Prunet','08',144,134,4.66,'-673','48409',190,275);
INSERT INTO "communes" VALUES('31','Saint-Paul-d''Oueil','04',50,49,7.46,'-1984','47584',1031,1988);
INSERT INTO "communes" VALUES('31','Aussonne','15',6357,4223,13.76,'-1130','48538',119,171);
INSERT INTO "communes" VALUES('31','Saint-Germier','38',103,86,3.74,'-671','48301',188,271);
INSERT INTO "communes" VALUES('31','Huos','05',465,452,4.09,'-1934','47865',416,702);
INSERT INTO "communes" VALUES('31','Miramont-de-Comminges','29',793,785,8.09,'-1766','47882',338,564);
INSERT INTO "communes" VALUES('31','Goutevernisse','27',159,77,4.69,'-1295','48013',223,326);
INSERT INTO "communes" VALUES('31','Saint-Hilaire','23',1078,707,6.33,'-1176','48247',175,198);
INSERT INTO "communes" VALUES('31','Villeneuve-Tolosane','53',8637,8254,5.08,'-1106','48360',153,173);
INSERT INTO "communes" VALUES('31','Puysségur','07',129,70,5.44,'-1416','48609',170,292);
INSERT INTO "communes" VALUES('31','Brignemont','07',390,317,21.96,'-1497','48646',136,286);
INSERT INTO "communes" VALUES('31','Venerque','03',2612,2327,14.57,'-992','48260',157,272);
INSERT INTO "communes" VALUES('31','Bonrepos-Riquet','37',241,247,5.69,'-792','48529',142,253);
INSERT INTO "communes" VALUES('31','Ponlat-Taillebourg','22',557,458,8.6,'-1930','47902',395,528);
INSERT INTO "communes" VALUES('31','Saint-Jean','50',10259,8365,5.94,'-924','48517',145,211);
INSERT INTO "communes" VALUES('31','Saint-Pé-Delbosc','06',138,121,5.51,'-1822','48077',255,347);
INSERT INTO "communes" VALUES('31','Proupiary','31',69,55,4.95,'-1638','47956',340,483);
INSERT INTO "communes" VALUES('31','Luscan','05',69,54,3.33,'-1904','47791',443,941);
INSERT INTO "communes" VALUES('31','Saint-Loup-Cammas','50',1801,1735,3.65,'-954','48552',140,215);
INSERT INTO "communes" VALUES('31','Pointis-de-Rivière','05',847,790,6.58,'-1910','47875',379,422);
INSERT INTO "communes" VALUES('31','Drémil-Lafage','43',2473,2578,12.49,'-816','48441',162,244);
INSERT INTO "communes" VALUES('31','Couret','01',187,194,4.34,'-1686','47833',370,602);
INSERT INTO "communes" VALUES('31','Aucamville','49',8049,5532,3.96,'-1007','48521',125,135);
INSERT INTO "communes" VALUES('31','Sédeilhac','22',55,69,6.16,'-1978','47948',397,553);
INSERT INTO "communes" VALUES('31','Calmont','24',2177,1609,40.27,'-781','48096',206,324);
INSERT INTO "communes" VALUES('31','Gourdan-Polignan','05',1359,1193,5.26,'-1955','47864',411,635);
INSERT INTO "communes" VALUES('31','Signac','28',49,58,3.51,'-1898','47673',490,1644);
INSERT INTO "communes" VALUES('31','Péguilhan','06',251,220,18.48,'-1810','48128',218,345);
INSERT INTO "communes" VALUES('31','Gémil','19',273,196,2.81,'-829','48595',130,200);
INSERT INTO "communes" VALUES('31','Avignonet-Lauragais','38',1323,1070,40.66,'-608','48184',176,274);
INSERT INTO "communes" VALUES('31','Cabanac-Séguenville','07',172,128,10.18,'-1447','48659',177,284);
INSERT INTO "communes" VALUES('31','Peyssies','09',465,364,6.37,'-1288','48134',208,229);
INSERT INTO "communes" VALUES('31','Montberon','50',2768,2340,6.35,'-951','48573',128,193);
INSERT INTO "communes" VALUES('31','Labastidette','23',2146,1334,6.27,'-1212','48290',186,219);
INSERT INTO "communes" VALUES('31','Montclar-Lauragais','38',197,139,3.62,'-690','48179',177,267);
INSERT INTO "communes" VALUES('31','Saint-Sauveur','14',1746,1309,7.04,'-1040','48610',112,175);
INSERT INTO "communes" VALUES('31','L''Union','50',11868,12139,6.77,'-947','48507',132,196);
INSERT INTO "communes" VALUES('31','Odars','21',738,580,6.65,'-831','48359',158,243);
INSERT INTO "communes" VALUES('31','Montrabé','43',3585,3202,5.23,'-902','48492',143,211);
INSERT INTO "communes" VALUES('31','Portet-d''Aspet','01',71,67,13.93,'-1635','47712',680,1574);
INSERT INTO "communes" VALUES('31','Toutens','08',211,142,4.86,'-658','48308',206,283);
INSERT INTO "communes" VALUES('31','Drudas','07',181,171,11.17,'-1374','48616',157,274);
INSERT INTO "communes" VALUES('31','Saint-Jory','14',5082,4067,19.1,'-1074','48602',105,125);
INSERT INTO "communes" VALUES('31','Castelnau-d''Estrétefonds','14',5600,2810,28.32,'-1087','48647',105,224);
INSERT INTO "communes" VALUES('31','Lux','38',358,171,7.59,'-616','48263',195,272);
INSERT INTO "communes" VALUES('31','Sode','04',25,19,5.53,'-1912','47574',760,2019);
INSERT INTO "communes" VALUES('31','Saint-Orens-de-Gameville','10',10918,10997,13.06,'-892','48390',144,219);
INSERT INTO "communes" VALUES('31','Antignac','04',108,104,5.8,'-1930','47584',589,1846);
INSERT INTO "communes" VALUES('31','Trébons-de-Luchon','04',8,10,0.83,'-1967','47560',720,1447);
INSERT INTO "communes" VALUES('31','Varennes','21',256,198,4.61,'-721','48308',196,273);
INSERT INTO "communes" VALUES('31','Fonsorbes','30',11111,6909,19.03,'-1228','48373',169,213);
INSERT INTO "communes" VALUES('31','Mauran','11',178,119,5.09,'-1450','47987',236,520);
INSERT INTO "communes" VALUES('31','Labège','10',3861,3149,7.65,'-896','48366',141,202);
INSERT INTO "communes" VALUES('31','Lahitère','20',52,38,3.9,'-1271','47932',340,506);
INSERT INTO "communes" VALUES('31','Saint-Thomas','30',565,473,14.01,'-1394','48349',185,315);
INSERT INTO "communes" VALUES('31','Larroque','06',309,337,19.83,'-1919','47995',304,488);
INSERT INTO "communes" VALUES('31','Roquesérière','19',702,615,10.64,'-776','48594',128,232);
INSERT INTO "communes" VALUES('31','Gagnac-sur-Garonne','49',2952,1634,4.34,'-1068','48554',113,123);
INSERT INTO "communes" VALUES('31','Caignac','24',293,188,9.36,'-694','48134',203,310);
INSERT INTO "communes" VALUES('31','Pompertuzat','21',2023,1209,5.44,'-911','48323',147,272);
INSERT INTO "communes" VALUES('31','Martisserre','16',60,56,6.17,'-1620','48213',210,326);
INSERT INTO "communes" VALUES('31','Donneville','21',1033,777,2.67,'-875','48303',153,236);
INSERT INTO "communes" VALUES('31','Peyrissas','02',94,82,7.82,'-1586','48096',270,374);
INSERT INTO "communes" VALUES('31','Thil','15',1140,833,23.68,'-1307','48569',149,275);
INSERT INTO "communes" VALUES('31','Mane','32',988,1025,6.59,'-1539','47869',294,414);
INSERT INTO "communes" VALUES('31','Fourquevaux','21',752,717,10.03,'-800','48341',165,256);
INSERT INTO "communes" VALUES('31','Lespugue','06',74,83,4.91,'-1855','48036',281,446);
INSERT INTO "communes" VALUES('31','Bérat','26',2747,1408,24.46,'-1290','48197',202,265);
INSERT INTO "communes" VALUES('31','Poucharramet','26',837,680,22.53,'-1292','48241',196,260);
INSERT INTO "communes" VALUES('31','Maureville','08',301,265,9.9,'-706','48360',175,276);
INSERT INTO "communes" VALUES('31','Bax','27',83,81,5.99,'-1165','48029',243,371);
INSERT INTO "communes" VALUES('31','Arnaud-Guilhem','31',215,168,7.7,'-1599','47936',279,463);
INSERT INTO "communes" VALUES('31','Charlas','06',224,189,11.32,'-1826','48030',267,447);
INSERT INTO "communes" VALUES('31','Cugnaux','53',15807,12981,13.01,'-1103','48375',150,170);
INSERT INTO "communes" VALUES('31','Castelbiague','32',223,209,5.84,'-1569','47818',334,702);
INSERT INTO "communes" VALUES('31','Maurens','25',203,169,6.6,'-602','48295',209,271);
INSERT INTO "communes" VALUES('31','Lalouret-Laffiteau','29',140,108,5.39,'-1814','47983',356,464);
INSERT INTO "communes" VALUES('31','Mascarville','08',183,139,5.27,'-642','48393',175,281);
INSERT INTO "communes" VALUES('31','Rieucazé','29',46,37,2.03,'-1754','47863',347,561);
INSERT INTO "communes" VALUES('31','Boulogne-sur-Gesse','06',1612,1432,24.73,'-1880','48100',243,388);
INSERT INTO "communes" VALUES('31','Latoue','02',323,285,17.62,'-1723','47966',333,488);
INSERT INTO "communes" VALUES('31','Gardouch','38',1312,995,16.31,'-725','48213',168,259);
INSERT INTO "communes" VALUES('31','Clermont-le-Fort','10',532,463,10.04,'-1005','48287',152,282);
INSERT INTO "communes" VALUES('31','Agassac','16',117,121,9.58,'-1610','48190',197,336);
INSERT INTO "communes" VALUES('31','Préserville','17',648,360,12.19,'-790','48359',158,232);
INSERT INTO "communes" VALUES('31','Montgras','26',92,46,3.99,'-1422','48281',229,331);
INSERT INTO "communes" VALUES('31','Frontignan-de-Comminges','05',68,73,2.53,'-1864','47746',468,1565);
INSERT INTO "communes" VALUES('31','Forgues','26',189,152,5.24,'-1434','48257',203,328);
INSERT INTO "communes" VALUES('31','Eoux','02',119,121,9.17,'-1611','48081',272,374);
INSERT INTO "communes" VALUES('31','Ondes','15',740,684,6.57,'-1141','48645',102,111);
INSERT INTO "communes" VALUES('31','Marsoulas','32',131,137,2.4,'-1487','47895',292,422);
INSERT INTO "communes" VALUES('31','Nogaret','25',70,78,4,'-452','48325',188,273);
INSERT INTO "communes" VALUES('31','Saint-Médard','31',210,235,5.32,'-1669','47920',322,441);
INSERT INTO "communes" VALUES('31','<NAME>','08',338,246,8.47,'-513','48351',192,280);
INSERT INTO "communes" VALUES('31','Labastide-Paumès','16',142,127,8.04,'-1554','48152',247,345);
INSERT INTO "communes" VALUES('31','Auragne','24',401,312,13.63,'-920','48211',183,292);
INSERT INTO "communes" VALUES('31','Mancioux','31',423,345,7.22,'-1539','47953',274,485);
INSERT INTO "communes" VALUES('31','Coueilles','16',87,100,6.45,'-1611','48166',211,351);
INSERT INTO "communes" VALUES('31','Layrac-sur-Tarn','39',329,264,7.25,'-868','48704',86,223);
INSERT INTO "communes" VALUES('31','Saint-Frajou','16',197,173,16.61,'-1653','48149',222,350);
INSERT INTO "communes" VALUES('31','Cambernard','30',429,340,8.48,'-1285','48305',192,230);
INSERT INTO "communes" VALUES('31','Nailloux','24',3076,1237,18.55,'-792','48173',190,292);
INSERT INTO "communes" VALUES('31','Boutx','28',274,260,47.28,'-1801','47686',560,1850);
INSERT INTO "communes" VALUES('31','Valcabrère','05',152,139,1.61,'-1950','47814',424,471);
INSERT INTO "communes" VALUES('31','Sepx','31',208,152,12.37,'-1663','47950',360,489);
INSERT INTO "communes" VALUES('31','Polastron','13',58,64,4.78,'-1533','48137',248,351);
INSERT INTO "communes" VALUES('31','Mayrègne','04',27,33,5.19,'-1997','47604',1120,1914);
INSERT INTO "communes" VALUES('31','Latrape','27',344,296,19.08,'-1164','48050',227,369);
INSERT INTO "communes" VALUES('31','Esparron','02',61,36,5.53,'-1701','48072',293,374);
INSERT INTO "communes" VALUES('31','Puymaurin','16',300,298,22.24,'-1746','48192',197,312);
INSERT INTO "communes" VALUES('31','Brax','18',2531,2017,4.42,'-1219','48460',165,240);
INSERT INTO "communes" VALUES('31','Estancarbon','29',579,530,6.23,'-1723','47894',325,392);
INSERT INTO "communes" VALUES('31','Montespan','32',438,423,12.57,'-1647','47872',298,522);
INSERT INTO "communes" VALUES('31','Beauville','08',136,106,6.06,'-625','48305',195,291);
INSERT INTO "communes" VALUES('31','Beauchalot','31',492,392,6.33,'-1631','47897',295,410);
INSERT INTO "communes" VALUES('31','Fustignac','13',76,54,3.96,'-1504','48109',262,371);
INSERT INTO "communes" VALUES('31','Balesta','22',177,149,7.16,'-1965','48000',355,498);
INSERT INTO "communes" VALUES('31','Montoulieu-Saint-Bernard','02',187,153,4.83,'-1587','48038',276,467);
INSERT INTO "communes" VALUES('31','Saint-Cézert','15',369,413,8.94,'-1269','48646',125,173);
INSERT INTO "communes" VALUES('31','Bachas','02',59,75,2.62,'-1554','48049',272,364);
INSERT INTO "communes" VALUES('31','Monès','26',69,50,2.52,'-1444','48239',203,336);
INSERT INTO "communes" VALUES('31','Seilhan','05',201,187,4.68,'-1956','47834',417,702);
INSERT INTO "communes" VALUES('31','Esperce','12',237,210,16.42,'-1039','48108',216,334);
INSERT INTO "communes" VALUES('31','<NAME>','08',137,97,3.66,'-601','48380',177,255);
INSERT INTO "communes" VALUES('31','Lussan-Adeilhac','13',229,191,12.62,'-1551','48110',263,374);
INSERT INTO "communes" VALUES('31','Seyre','24',102,76,3.89,'-741','48181',185,262);
INSERT INTO "communes" VALUES('31','Saint-Rome','38',57,68,3.63,'-733','48239',163,174);
INSERT INTO "communes" VALUES('31','Pechbusque','10',837,707,3.14,'-975','48364',148,274);
INSERT INTO "communes" VALUES('31','Saint-Jean-Lherm','19',377,303,7.92,'-807','48560',146,251);
INSERT INTO "communes" VALUES('31','Lapeyrère','20',72,61,6.3,'-1135','48007',271,394);
INSERT INTO "communes" VALUES('31','Cazeaux-de-Larboust','04',93,82,19.14,'-2007','47563',914,3110);
INSERT INTO "communes" VALUES('31','Balma','43',13474,11944,16.59,'-931','48456',135,218);
INSERT INTO "communes" VALUES('31','Ardiège','05',400,325,3.76,'-1882','47855',405,710);
INSERT INTO "communes" VALUES('31','Sainte-Foy-d''Aigrefeuille','17',1979,1628,9.68,'-807','48381',152,240);
INSERT INTO "communes" VALUES('31','Capens','09',559,285,6.77,'-1197','48152',174,290);
INSERT INTO "communes" VALUES('31','Lautignac','26',286,220,17.77,'-1421','48202',231,351);
INSERT INTO "communes" VALUES('31','Lavalette','37',622,602,13.75,'-823','48486',155,233);
INSERT INTO "communes" VALUES('31','Saccourvielle','04',13,14,3.41,'-1972','47573',833,1781);
INSERT INTO "communes" VALUES('31','Aspet','01',950,927,26.37,'-1706','47795',399,1240);
INSERT INTO "communes" VALUES('31','Cassagnabère-Tournas','02',432,389,25.24,'-1717','48031',286,422);
INSERT INTO "communes" VALUES('31','Bois-de-la-Pierre','09',417,313,7.42,'-1317','48160',216,266);
INSERT INTO "communes" VALUES('31','Montégut-Lauragais','25',469,360,7.72,'-459','48310',188,258);
INSERT INTO "communes" VALUES('31','Boissède','16',83,71,3.84,'-1680','48230',186,252);
INSERT INTO "communes" VALUES('31','Malvezie','05',124,110,8.52,'-1832','47784',493,896);
INSERT INTO "communes" VALUES('31','Lahage','26',228,262,7.65,'-1417','48269',223,333);
INSERT INTO "communes" VALUES('31','Saint-André','02',213,180,18.69,'-1649','48082',282,380);
INSERT INTO "communes" VALUES('31','Gouzens','20',95,61,5.7,'-1276','47984',260,422);
INSERT INTO "communes" VALUES('31','Gratens','13',699,444,15.15,'-1359','48136',221,344);
INSERT INTO "communes" VALUES('31','<NAME>','31',114,103,4.21,'-1554','47986',318,485);
INSERT INTO "communes" VALUES('31','Montbernard','16',215,214,18.31,'-1738','48112',224,373);
INSERT INTO "communes" VALUES('31','Plagne','11',89,88,4.15,'-1419','47952',316,590);
INSERT INTO "communes" VALUES('31','Melles','28',113,104,45.32,'-1753','47631',548,2626);
INSERT INTO "communes" VALUES('31','Montberaud','11',210,167,15.87,'-1326','47950',265,474);
INSERT INTO "communes" VALUES('31','Oô','04',111,109,32.53,'-2033','47553',954,3215);
INSERT INTO "communes" VALUES('31','Montgazin','09',165,151,6.89,'-1147','48122',205,292);
INSERT INTO "communes" VALUES('31','Mazères-sur-Salat','32',593,592,6.68,'-1515','47926',265,375);
INSERT INTO "communes" VALUES('31','Saint-Alban','49',5634,5192,4.26,'-1024','48547',121,133);
INSERT INTO "communes" VALUES('31','Bordes-de-Rivière','22',496,359,8.52,'-1892','47896',379,516);
INSERT INTO "communes" VALUES('31','Launaguet','49',7149,5086,7.02,'-977','48527',126,203);
INSERT INTO "communes" VALUES('31','Rouède','32',289,236,6.2,'-1616','47836',356,489);
INSERT INTO "communes" VALUES('31','Plaisance-du-Touch','18',16091,14150,26.53,'-1156','48406',157,200);
INSERT INTO "communes" VALUES('31','Saux-et-Pomarède','29',270,251,12.52,'-1799','47948',369,497);
INSERT INTO "communes" VALUES('31','Launac','15',1267,963,22.32,'-1284','48603',139,253);
INSERT INTO "communes" VALUES('31','Auzas','31',193,133,7.89,'-1614','47966',288,474);
INSERT INTO "communes" VALUES('31','Franquevielle','22',361,333,10.88,'-2003','47930',437,565);
INSERT INTO "communes" VALUES('31','Peyrouzet','02',93,79,4.88,'-1673','48002',302,403);
INSERT INTO "communes" VALUES('31','Bazus','19',577,534,9.13,'-910','48595',128,216);
INSERT INTO "communes" VALUES('31','Mourvilles-Basses','08',72,60,4.58,'-704','48317',187,273);
INSERT INTO "communes" VALUES('31','Cier-de-Luchon','04',239,222,10.59,'-1928','47620',582,1988);
INSERT INTO "communes" VALUES('31','Lamasquère','30',1322,872,6.11,'-1213','48314',180,187);
INSERT INTO "communes" VALUES('31','Rouffiac-Tolosan','50',1732,1405,4.67,'-902','48516',154,234);
INSERT INTO "communes" VALUES('31','Juzet-d''Izaut','01',204,193,15.74,'-1753','47753',466,1908);
INSERT INTO "communes" VALUES('31','Cazaux-Layrisse','28',65,86,2.76,'-1921','47637',589,1776);
INSERT INTO "communes" VALUES('31','Villate','52',801,588,1.82,'-1064','48300',161,172);
INSERT INTO "communes" VALUES('31','Cathervielle','04',33,30,3.7,'-2034','47568',1152,1918);
INSERT INTO "communes" VALUES('31','Escoulis','32',84,81,4.64,'-1451','47902',298,410);
INSERT INTO "communes" VALUES('31','Benque','02',163,154,11.3,'-1574','48067',266,373);
INSERT INTO "communes" VALUES('31','Massabrac','20',78,72,4,'-1072','48027',217,315);
INSERT INTO "communes" VALUES('31','Noé','09',2627,2077,9.65,'-1180','48171',175,280);
INSERT INTO "communes" VALUES('31','Aigrefeuille','17',1077,577,4.62,'-829','48409',151,230);
INSERT INTO "communes" VALUES('31','Garidech','19',1591,952,7.11,'-862','48564',132,214);
INSERT INTO "communes" VALUES('31','Cirès','04',13,8,5.11,'-2021','47613',1235,1971);
INSERT INTO "communes" VALUES('31','Pechbonnieu','50',3940,2997,7.52,'-966','48560',140,208);
INSERT INTO "communes" VALUES('31','Vaudreuille','25',351,261,11.3,'-394','48251',223,575);
INSERT INTO "communes" VALUES('31','Lapeyrouse-Fossat','19',2686,2055,9.49,'-911','48547',132,215);
INSERT INTO "communes" VALUES('31','Quint-Fonsegrives','43',4850,4474,7.38,'-900','48428',141,234);
INSERT INTO "communes" VALUES('31','Cazaunous','01',62,47,4.66,'-1781','47762',474,920);
INSERT INTO "communes" VALUES('31','Auribail','03',228,162,8.94,'-1060','48169',209,312);
INSERT INTO "communes" VALUES('31','Escanecrabe','06',232,240,16.07,'-1764','48081',240,376);
INSERT INTO "communes" VALUES('31','Grépiac','03',990,789,8.18,'-987','48228',163,243);
INSERT INTO "communes" VALUES('31','Cazeneuve-Montaut','02',70,54,4.59,'-1643','47981',312,422);
INSERT INTO "communes" VALUES('31','Vieillevigne','38',305,174,3.14,'-757','48224',164,247);
INSERT INTO "communes" VALUES('31','Montmaurin','06',226,196,8.45,'-1888','48027',284,430);
INSERT INTO "communes" VALUES('31','Revel','25',9361,8023,35.31,'-369','48287',179,381);
INSERT INTO "communes" VALUES('31','Castelnau-Picampeau','13',198,165,11.3,'-1465','48118',252,381);
INSERT INTO "communes" VALUES('31','Saussens','08',238,144,3.02,'-682','48431',160,254);
INSERT INTO "communes" VALUES('31','Auzielle','10',1284,1556,4.59,'-856','48380',154,234);
INSERT INTO "communes" VALUES('31','Bruguières','14',4967,3862,9.03,'-1028','48582',116,175);
INSERT INTO "communes" VALUES('31','Galié','05',87,78,2.86,'-1893','47765',443,946);
INSERT INTO "communes" VALUES('31','Labarthe-Rivière','29',1363,1151,13.65,'-1849','47867',373,710);
INSERT INTO "communes" VALUES('31','Castagnac','20',301,204,10.77,'-1093','48031',217,363);
INSERT INTO "communes" VALUES('31','Larra','15',1432,1133,16.36,'-1228','48599',110,181);
INSERT INTO "communes" VALUES('31','Labarthe-sur-Lèze','52',4871,4637,10.43,'-1040','48280',151,173);
INSERT INTO "communes" VALUES('31','Buzet-sur-Tarn','19',2351,1411,30.19,'-782','48643',95,247);
INSERT INTO "communes" VALUES('31','Martres-Tolosane','11',2231,1684,23.52,'-1473','47999',236,488);
INSERT INTO "communes" VALUES('31','Fougaron','01',96,73,9.14,'-1561','47763',473,1416);
INSERT INTO "communes" VALUES('31','Bachos','28',27,38,2.67,'-1910','47664',520,1600);
INSERT INTO "communes" VALUES('31','Touille','32',258,203,6.49,'-1514','47867',293,443);
INSERT INTO "communes" VALUES('31','Cambiac','08',227,170,7.74,'-605','48321',195,261);
INSERT INTO "communes" VALUES('31','Paulhac','19',1128,913,14.03,'-867','48617',110,225);
INSERT INTO "communes" VALUES('31','Saleich','32',370,361,14.29,'-1518','47806',326,1166);
INSERT INTO "communes" VALUES('31','Belbèze-en-Comminges','32',105,116,9.56,'-1456','47925',320,601);
INSERT INTO "communes" VALUES('31','Lespinasse','14',2526,1863,4.24,'-1056','48565',117,127);
INSERT INTO "communes" VALUES('31','Lévignac','18',2018,1628,12.22,'-1269','48518',123,235);
INSERT INTO "communes" VALUES('31','Moncaup','01',32,26,7.14,'-1811','47753',508,1788);
INSERT INTO "communes" VALUES('31','Marignac-Laspeyres','11',196,113,12.41,'-1524','48017',285,530);
INSERT INTO "communes" VALUES('31','Saman','06',159,142,5.54,'-1796','48041',266,391);
INSERT INTO "communes" VALUES('31','Martres-de-Rivière','05',386,307,3.59,'-1884','47865',391,569);
INSERT INTO "communes" VALUES('31','Montsaunès','32',415,379,9.12,'-1555','47902',285,411);
INSERT INTO "communes" VALUES('31','Bagnères-de-Luchon','04',2593,2903,52.8,'-1936','47545',611,2737);
INSERT INTO "communes" VALUES('31','Montbrun-Lauragais','21',548,485,10.92,'-906','48285',175,284);
INSERT INTO "communes" VALUES('31','Cazaril-Laspènes','04',23,19,2.37,'-1954','47555',672,1560);
INSERT INTO "communes" VALUES('31','Poubeau','04',73,53,4.21,'-2043','47570',1181,1974);
INSERT INTO "communes" VALUES('31','Cier-de-Rivière','05',261,250,9.26,'-1892','47848',412,719);
INSERT INTO "communes" VALUES('31','Argut-Dessous','28',30,33,2.7,'-1799','47655',513,1090);
INSERT INTO "communes" VALUES('31','Lespiteau','29',75,68,1.81,'-1751','47853',352,486);
INSERT INTO "communes" VALUES('31','Jurvielle','04',23,17,5.79,'-2056','47575',1240,2093);
INSERT INTO "communes" VALUES('31','Milhas','01',175,140,19.68,'-1699','47764',466,1608);
INSERT INTO "communes" VALUES('31','Arlos','28',95,90,9.41,'-1814','47657',509,2165);
INSERT INTO "communes" VALUES('31','Benque-Dessous-et-Dessus','04',25,19,3.72,'-1980','47572',800,1805);
INSERT INTO "communes" VALUES('31','Sajas','26',104,82,5,'-1462','48196',248,345);
INSERT INTO "communes" VALUES('31','Artigue','04',35,34,9.72,'-1908','47591',840,2081);
INSERT INTO "communes" VALUES('31','Gouaux-de-Luchon','04',46,44,14.49,'-1907','47618',680,2193);
INSERT INTO "communes" VALUES('31','Gouaux-de-Larboust','04',53,65,10.67,'-2053','47550',1120,2370);
INSERT INTO "communes" VALUES('31','Guran','28',50,44,5.28,'-1912','47655',551,1740);
INSERT INTO "communes" VALUES('31','Billière','04',23,25,2.18,'-2011','47568',1021,1806);
INSERT INTO "communes" VALUES('31','Le Plan','11',494,316,8.02,'-1351','47963',246,480);
INSERT INTO "communes" VALUES('31','Montégut-Bourjac','13',119,109,5.52,'-1496','48090',258,365);
INSERT INTO "communes" VALUES('31','Clarac','22',558,507,4.74,'-1901','47885',387,515);
INSERT INTO "communes" VALUES('31','Sainte-Foy-de-Peyrolières','30',2001,1436,38.02,'-1324','48326',188,319);
INSERT INTO "communes" VALUES('31','Montbrun-Bocage','20',469,374,30.61,'-1189','47921',259,523);
INSERT INTO "communes" VALUES('31','Bellesserre','07',86,50,3.39,'-1364','48656',174,274);
INSERT INTO "communes" VALUES('31','Saint-Clar-de-Rivière','23',1174,874,10.07,'-1246','48296',181,228);
INSERT INTO "communes" VALUES('31','Nizan-Gesse','06',92,83,8.64,'-1932','48037',320,476);
INSERT INTO "communes" VALUES('31','Mourvilles-Hautes','25',173,167,6.59,'-578','48251',223,311);
INSERT INTO "communes" VALUES('31','Beaumont-sur-Lèze','03',1523,1414,26.31,'-1088','48201',174,311);
INSERT INTO "communes" VALUES('31','Eup','28',143,147,2.22,'-1830','47697',471,1259);
INSERT INTO "communes" VALUES('31','Saint-Laurent','16',168,157,8.39,'-1708','48140',211,341);
INSERT INTO "communes" VALUES('31','Gargas','14',635,520,7.28,'-966','48619',126,196);
INSERT INTO "communes" VALUES('31','Sénarens','13',119,101,6.93,'-1509','48166',244,345);
INSERT INTO "communes" VALUES('31','Mauzac','09',1111,684,9.27,'-1161','48195',165,285);
INSERT INTO "communes" VALUES('31','Labastide-Clermont','26',695,416,14.58,'-1350','48165',222,349);
INSERT INTO "communes" VALUES('31','Saint-Bertrand-de-Comminges','05',256,237,11.17,'-1962','47808',421,1016);
INSERT INTO "communes" VALUES('31','Payssous','05',92,80,4.08,'-1804','47816',388,790);
INSERT INTO "communes" VALUES('31','<NAME>','13',1714,1439,38.31,'-1412','48091',238,372);
INSERT INTO "communes" VALUES('31','Montoussin','13',122,91,4.83,'-1473','48084',254,360);
INSERT INTO "communes" VALUES('31','Montesquieu-Volvestre','20',2997,2319,59.82,'-1230','48009',208,523);
INSERT INTO "communes" VALUES('31','<NAME>','15',710,481,24.18,'-1305','48661',143,253);
INSERT INTO "communes" VALUES('31','Saint-Loup-en-Comminges','06',38,40,4.73,'-1948','48050',325,466);
INSERT INTO "communes" VALUES('31','Aurignac','02',1179,980,17.95,'-1619','48021',295,511);
INSERT INTO "communes" VALUES('31','Arbas','01',241,186,7.32,'-1590','47773',392,840);
INSERT INTO "communes" VALUES('31','Mont-de-Galié','05',37,36,2.42,'-1877','47766',560,1006);
INSERT INTO "communes" VALUES('31','Régades','29',132,113,3.62,'-1794','47833',377,630);
INSERT INTO "communes" VALUES('31','Falga','25',110,79,5.38,'-529','48309',209,286);
INSERT INTO "communes" VALUES('31','Vacquiers','14',1312,1032,19.61,'-952','48643',110,225);
INSERT INTO "communes" VALUES('31','Pelleport','07',515,344,10.38,'-1355','48598',157,275);
INSERT INTO "communes" VALUES('31','Grenade','15',8074,5760,37.01,'-1160','48635',97,167);
INSERT INTO "communes" VALUES('31','Bondigoux','39',463,322,7.46,'-885','48711',86,201);
INSERT INTO "communes" VALUES('31','Fronton','14',5594,3889,45.79,'-1052','48711',101,198);
INSERT INTO "communes" VALUES('31','Caubiac','07',296,194,7.99,'-1390','48571',178,275);
INSERT INTO "communes" VALUES('31','Sainte-Livrade','18',283,246,6.16,'-1369','48500',132,200);
INSERT INTO "communes" VALUES('31','Montastruc-la-Conseillère','19',3149,2487,15.49,'-829','48575',143,242);
INSERT INTO "communes" VALUES('31','Lagraulet-Saint-Nicolas','07',244,145,16.11,'-1397','48660',168,287);
INSERT INTO "communes" VALUES('31','Vaux','25',278,224,10.41,'-555','48284',209,291);
INSERT INTO "communes" VALUES('31','Renneville','38',506,334,8.42,'-681','48201',172,273);
INSERT INTO "communes" VALUES('31','Pinsaguel','52',2611,2464,5.2,'-1052','48343',144,160);
INSERT INTO "communes" VALUES('31','Gensac-de-Boulogne','06',102,141,10.96,'-1944','48059',289,438);
INSERT INTO "communes" VALUES('31','Cierp-Gaud','28',849,865,13.9,'-1886','47684',460,1840);
INSERT INTO "communes" VALUES('31','Marignac-Lasclares','13',410,294,10.01,'-1376','48118',231,310);
INSERT INTO "communes" VALUES('31','Lège','28',41,39,2.72,'-1917','47641',560,1740);
INSERT INTO "communes" VALUES('31','Vendine','08',248,169,2.87,'-632','48433',161,194);
INSERT INTO "communes" VALUES('31','Saubens','52',1913,1302,5.99,'-1098','48310',147,195);
INSERT INTO "communes" VALUES('31','Saint-Ignan','29',267,250,5.35,'-1825','47955',377,484);
INSERT INTO "communes" VALUES('31','Landorthe','29',946,779,9.65,'-1725','47924',343,463);
INSERT INTO "communes" VALUES('31','Génos','05',96,75,3.47,'-1848','47779',517,922);
INSERT INTO "communes" VALUES('31','Villeneuve-Lécussan','22',545,493,16.1,'-2042','47944',420,587);
INSERT INTO "communes" VALUES('31','Saint-Vincent','38',178,99,3.07,'-643','48267',193,243);
INSERT INTO "communes" VALUES('31','Fonbeauzard','49',2764,2599,1.32,'-1005','48530',127,135);
INSERT INTO "communes" VALUES('31','Eaunes','52',5390,3388,14.95,'-1091','48246',168,290);
INSERT INTO "communes" VALUES('31','Montpitol','19',399,332,5.96,'-763','48561',155,233);
INSERT INTO "communes" VALUES('31','Aureville','10',731,540,6.8,'-982','48313',169,282);
INSERT INTO "communes" VALUES('31','Pointis-Inard','29',829,741,14.66,'-1694','47873',319,489);
INSERT INTO "communes" VALUES('31','Mauremont','38',318,222,5.63,'-730','48286',184,269);
INSERT INTO "communes" VALUES('31','Marquefave','09',1031,858,18.92,'-1211','48130',175,323);
INSERT INTO "communes" VALUES('31','Molas','16',162,146,10.43,'-1730','48222',192,301);
INSERT INTO "communes" VALUES('31','Garac','07',170,157,6.05,'-1387','48546',150,274);
INSERT INTO "communes" VALUES('31','Flourens','43',1791,1794,9.74,'-860','48439',152,243);
INSERT INTO "communes" VALUES('31','Castelmaurou','50',3751,3257,16.77,'-895','48530',132,231);
INSERT INTO "communes" VALUES('31','Bonrepos-sur-Aussonnelle','30',850,579,10.17,'-1319','48384',206,312);
INSERT INTO "communes" VALUES('31','Casties-Labrande','13',108,97,8.7,'-1472','48143',241,342);
INSERT INTO "communes" VALUES('31','Aignes','12',234,193,21.81,'-831','48134',198,323);
INSERT INTO "communes" VALUES('31','Grazac','12',508,442,7.17,'-979','48124',194,333);
INSERT INTO "communes" VALUES('31','Sana','11',221,175,2.74,'-1472','48031',271,376);
INSERT INTO "communes" VALUES('31','Saint-Léon','24',1133,749,24.21,'-862','48223',185,291);
INSERT INTO "communes" VALUES('31','Issus','21',444,291,7.11,'-923','48249',178,247);
INSERT INTO "communes" VALUES('32','Mont-d''Astarac','15',96,102,8.05,'-1965','48142',234,386);
INSERT INTO "communes" VALUES('32','Sabazan','01',134,135,8.26,'-2544','48561',102,210);
INSERT INTO "communes" VALUES('32','Terraube','12',393,382,25.14,'-1983','48785',85,227);
INSERT INTO "communes" VALUES('32','<NAME>','06',558,528,27.48,'-2043','48869',104,217);
INSERT INTO "communes" VALUES('32','Aurensan','24',129,129,6.33,'-2822','48465',94,228);
INSERT INTO "communes" VALUES('32','Monguilhem','22',285,303,5.71,'-2798','48728',67,107);
INSERT INTO "communes" VALUES('32','Tirent-Pontéjac','27',86,70,7.55,'-1713','48396',157,255);
INSERT INTO "communes" VALUES('32','Gondrin','21',1161,989,34.76,'-2333','48761',80,181);
INSERT INTO "communes" VALUES('32','Samaran','15',87,94,8.61,'-2017','48213',218,333);
INSERT INTO "communes" VALUES('32','Betcave-Aguin','13',96,80,10.19,'-1828','48269',213,314);
INSERT INTO "communes" VALUES('32','Mouchan','06',433,365,13.11,'-2264','48783',77,185);
INSERT INTO "communes" VALUES('32','Riguepeu','29',207,214,21.52,'-2215','48499',123,241);
INSERT INTO "communes" VALUES('32','Bezolles','28',139,156,11.13,'-2207','48692',93,222);
INSERT INTO "communes" VALUES('32','Lagraulet-du-Gers','21',458,382,27.22,'-2360','48782',85,186);
INSERT INTO "communes" VALUES('32','Dému','07',324,340,28.89,'-2411','48628',137,232);
INSERT INTO "communes" VALUES('32','Eauze','07',4092,3888,69.86,'-2484','48735',106,193);
INSERT INTO "communes" VALUES('32','Bazian','29',109,102,12.71,'-2238','48521',126,234);
INSERT INTO "communes" VALUES('32','Cassaigne','06',218,186,8.58,'-2223','48787',74,168);
INSERT INTO "communes" VALUES('32','Durban','31',144,162,17.4,'-1954','48376',155,270);
INSERT INTO "communes" VALUES('32','Moncassin','19',134,119,13.93,'-2063','48282',179,283);
INSERT INTO "communes" VALUES('32','Clermont-Pouyguillès','19',165,158,12.71,'-2015','48301',181,281);
INSERT INTO "communes" VALUES('32','Termes-d''Armagnac','01',188,215,10.05,'-2608','48523',111,206);
INSERT INTO "communes" VALUES('32','Meilhan','13',87,80,6.82,'-1837','48248',215,329);
INSERT INTO "communes" VALUES('32','Loussous-Débat','01',49,56,5.07,'-2514','48503',119,185);
INSERT INTO "communes" VALUES('32','Crastes','02',242,206,19.25,'-1785','48582',131,272);
INSERT INTO "communes" VALUES('32','Bonas','28',135,122,10.1,'-2138','48644',96,195);
INSERT INTO "communes" VALUES('32','Saint-Germier','05',201,117,7.05,'-1540','48519',145,213);
INSERT INTO "communes" VALUES('32','Bourrouillan','22',147,174,8.7,'-2613','48689',102,182);
INSERT INTO "communes" VALUES('32','Plieux','18',165,176,12.27,'-1781','48834',82,187);
INSERT INTO "communes" VALUES('32','Callian','29',50,50,7.91,'-2288','48476',137,227);
INSERT INTO "communes" VALUES('32','Lauraët','21',250,207,12.71,'-2319','48816',88,177);
INSERT INTO "communes" VALUES('32','Sainte-Gemme','16',129,105,10.22,'-1708','48646',121,194);
INSERT INTO "communes" VALUES('32','Miramont-d''Astarac','19',361,345,14.73,'-2075','48385',150,273);
INSERT INTO "communes" VALUES('32','Saramon','27',856,673,13.03,'-1747','48359',166,266);
INSERT INTO "communes" VALUES('32','Saint-Georges','05',174,153,15.82,'-1556','48587',120,212);
INSERT INTO "communes" VALUES('32','Avezan','25',75,84,5.66,'-1712','48751',96,200);
INSERT INTO "communes" VALUES('32','<NAME>','31',236,212,12.96,'-2158','48519',115,246);
INSERT INTO "communes" VALUES('32','Belloc-Saint-Clamens','19',138,147,10.49,'-2112','48285',159,272);
INSERT INTO "communes" VALUES('32','Couloumé-Mondebat','23',201,249,22.85,'-2493','48490',122,245);
INSERT INTO "communes" VALUES('32','Sérempuy','16',37,29,3.27,'-1680','48623',126,189);
INSERT INTO "communes" VALUES('32','Viella','24',532,559,22.02,'-2751','48443',109,250);
INSERT INTO "communes" VALUES('32','Lamaguère','27',58,68,6.49,'-1849','48324',191,297);
INSERT INTO "communes" VALUES('32','Mascaras','20',61,52,5.95,'-2338','48384',173,283);
INSERT INTO "communes" VALUES('32','Ségoufielle','10',990,653,5.24,'-1340','48479',134,213);
INSERT INTO "communes" VALUES('32','Cabas-Loumassès','15',51,50,4.11,'-1931','48171',245,312);
INSERT INTO "communes" VALUES('32','Haget','17',312,293,9.1,'-2416','48244',162,270);
INSERT INTO "communes" VALUES('32','Castex-d''Armagnac','04',100,111,12.26,'-2782','48744',65,124);
INSERT INTO "communes" VALUES('32','Lombez','13',1911,1403,19.55,'-1585','48305',162,286);
INSERT INTO "communes" VALUES('32','Mourède','07',84,69,4.88,'-2267','48667',99,166);
INSERT INTO "communes" VALUES('32','Saint-Soulan','26',146,134,12.31,'-1643','48342',174,302);
INSERT INTO "communes" VALUES('32','Loubédat','22',125,129,9.46,'-2567','48607',101,186);
INSERT INTO "communes" VALUES('32','Ardizas','05',198,122,8.52,'-1483','48574',135,215);
INSERT INTO "communes" VALUES('32','Armous-et-Cau','20',95,93,9.33,'-2385','48415',152,279);
INSERT INTO "communes" VALUES('32','Lagarde-Hachan','19',155,131,8.57,'-2047','48229',202,285);
INSERT INTO "communes" VALUES('32','Labéjan','19',325,259,18.71,'-2041','48376',156,273);
INSERT INTO "communes" VALUES('32','Pouy-Loubrin','27',106,88,9.64,'-1909','48296',180,298);
INSERT INTO "communes" VALUES('32','Laveraët','14',121,104,11.86,'-2358','48367',154,280);
INSERT INTO "communes" VALUES('32','Sainte-Marie','09',388,248,22.45,'-1624','48512',135,231);
INSERT INTO "communes" VALUES('32','Saint-Arroman','15',135,126,11.97,'-2017','48265',192,304);
INSERT INTO "communes" VALUES('32','Galiax','23',179,193,6.05,'-2580','48462',123,142);
INSERT INTO "communes" VALUES('32','Larroque-sur-l''Osse','21',226,226,15.07,'-2291','48857',70,171);
INSERT INTO "communes" VALUES('32','Arblade-le-Bas','24',148,109,7.67,'-2793','48564',91,187);
INSERT INTO "communes" VALUES('32','Mauroux','25',143,113,9.96,'-1696','48791',105,256);
INSERT INTO "communes" VALUES('32','Sarrant','16',371,339,19.81,'-1564','48638',115,192);
INSERT INTO "communes" VALUES('32','Brugnens','08',251,250,13.45,'-1786','48711',97,200);
INSERT INTO "communes" VALUES('32','Saint-Martin-Gimois','27',87,74,6.68,'-1700','48354',180,295);
INSERT INTO "communes" VALUES('32','Flamarens','18',122,146,14.36,'-1715','48908',77,212);
INSERT INTO "communes" VALUES('32','Homps','16',103,86,9.24,'-1651','48677',105,193);
INSERT INTO "communes" VALUES('32','Gée-Rivière','24',49,49,2.74,'-2798','48526',83,92);
INSERT INTO "communes" VALUES('32','Sadeillan','17',83,79,5.92,'-2211','48214',210,325);
INSERT INTO "communes" VALUES('32','Pessan','03',700,636,26.87,'-1876','48467',153,292);
INSERT INTO "communes" VALUES('32','Malabat','17',97,87,5.4,'-2390','48260',162,296);
INSERT INTO "communes" VALUES('32','Lamothe-Goas','08',67,64,7.18,'-1975','48739',87,155);
INSERT INTO "communes" VALUES('32','Pallanne','14',69,66,5.18,'-2318','48340',165,266);
INSERT INTO "communes" VALUES('32','Aignan','01',775,844,32.16,'-2503','48553',107,222);
INSERT INTO "communes" VALUES('32','Ponsan-Soubiran','15',123,117,6.87,'-2058','48168',227,370);
INSERT INTO "communes" VALUES('32','Nougaroulet','02',352,288,15.79,'-1784','48548',136,231);
INSERT INTO "communes" VALUES('32','Montadet','13',82,72,5.11,'-1584','48258',174,304);
INSERT INTO "communes" VALUES('32','Peyrusse-Grande','20',162,209,25.5,'-2358','48480',151,269);
INSERT INTO "communes" VALUES('32','Marciac','14',1239,1160,20.6,'-2416','48360',142,247);
INSERT INTO "communes" VALUES('32','Samatan','26',2324,1830,33.53,'-1562','48325',155,252);
INSERT INTO "communes" VALUES('32','Panassac','15',276,280,9.17,'-1968','48206',209,317);
INSERT INTO "communes" VALUES('32','Lourties-Monbrun','15',137,108,9.5,'-1996','48284',192,301);
INSERT INTO "communes" VALUES('32','Saint-Élix-Theux','19',117,110,8.37,'-2074','48254',193,302);
INSERT INTO "communes" VALUES('32','Pauilhac','08',613,477,25.27,'-1915','48751',79,161);
INSERT INTO "communes" VALUES('32','Ordan-Larroque','11',932,773,42.64,'-2084','48542',135,273);
INSERT INTO "communes" VALUES('32','Pouy-Roquelaure','12',139,137,11.04,'-2019','48930',96,216);
INSERT INTO "communes" VALUES('32','Maravat','16',43,49,6.46,'-1760','48619',138,242);
INSERT INTO "communes" VALUES('32','Puylausic','13',188,157,9.84,'-1561','48276',171,295);
INSERT INTO "communes" VALUES('32','Magnas','25',74,48,3.19,'-1785','48772',124,207);
INSERT INTO "communes" VALUES('32','Castéron','25',63,58,11.08,'-1639','48769',165,267);
INSERT INTO "communes" VALUES('32','L''Isle-Bouzon','25',243,249,15.95,'-1787','48808',85,206);
INSERT INTO "communes" VALUES('32','Urdens','08',246,180,7.77,'-1818','48730',87,202);
INSERT INTO "communes" VALUES('32','Mérens','11',63,51,4.18,'-1999','48615',126,244);
INSERT INTO "communes" VALUES('32','Mormès','22',124,124,9.05,'-2767','48664',76,128);
INSERT INTO "communes" VALUES('32','Savignac-Mona','26',148,140,6.87,'-1476','48321',169,261);
INSERT INTO "communes" VALUES('32','Sion','22',120,111,7.05,'-2586','48600',92,166);
INSERT INTO "communes" VALUES('32','Castelnau-d''Auzan','21',1067,1037,43.79,'-2501','48831',82,186);
INSERT INTO "communes" VALUES('32','Maulichères','24',173,185,6.18,'-2696','48544',103,176);
INSERT INTO "communes" VALUES('32','Tasque','23',266,216,10.02,'-2575','48488',115,190);
INSERT INTO "communes" VALUES('32','Castelnau-d''Anglès','20',93,90,11.94,'-2268','48455',142,242);
INSERT INTO "communes" VALUES('32','Bassoues','20',353,376,32.29,'-2324','48421',150,287);
INSERT INTO "communes" VALUES('32','Biran','11',399,341,36.86,'-2131','48551',105,253);
INSERT INTO "communes" VALUES('32','Marambat','29',436,327,9.7,'-2247','48640',103,224);
INSERT INTO "communes" VALUES('32','Maurens','09',301,208,13.03,'-1578','48439',166,256);
INSERT INTO "communes" VALUES('32','Monblanc','26',368,286,12.93,'-1496','48293',162,306);
INSERT INTO "communes" VALUES('32','Polastron','26',260,188,15.21,'-1657','48368',171,286);
INSERT INTO "communes" VALUES('32','Saint-Mont','24',303,322,12.59,'-2763','48502',89,165);
INSERT INTO "communes" VALUES('32','Peyrusse-Massas','11',106,82,6.49,'-1981','48598',123,250);
INSERT INTO "communes" VALUES('32','Saint-Christaud','20',75,90,11,'-2304','48366',169,291);
INSERT INTO "communes" VALUES('32','Bouzon-Gellenave','01',192,167,10.29,'-2563','48542',101,200);
INSERT INTO "communes" VALUES('32','Lalanne','08',116,92,5.55,'-1836','48664',90,144);
INSERT INTO "communes" VALUES('32','L''Isle-Jourdain','10',7336,5557,70.48,'-1395','48460',136,304);
INSERT INTO "communes" VALUES('32','Tournan','13',198,178,12.56,'-1725','48258',184,305);
INSERT INTO "communes" VALUES('32','Clermont-Savès','10',249,164,5.1,'-1452','48464',154,216);
INSERT INTO "communes" VALUES('32','<NAME>','08',356,335,27.71,'-2012','48726',95,242);
INSERT INTO "communes" VALUES('32','Lahitte','02',257,184,5.03,'-1840','48511',148,240);
INSERT INTO "communes" VALUES('32','Sainte-Aurence-Cazaux','17',124,121,9.54,'-2127','48194',194,319);
INSERT INTO "communes" VALUES('32','Haulies','03',136,81,10.13,'-1855','48397',177,292);
INSERT INTO "communes" VALUES('32','Corneillan','24',139,147,8.47,'-2796','48507',85,160);
INSERT INTO "communes" VALUES('32','Beccas','14',94,83,3.38,'-2424','48256',159,275);
INSERT INTO "communes" VALUES('32','Séailles','07',67,64,8.11,'-2470','48611',126,212);
INSERT INTO "communes" VALUES('32','Montpezat','13',241,194,15.64,'-1521','48217',198,346);
INSERT INTO "communes" VALUES('32','Vic-Fezensac','29',3645,3614,53.94,'-2259','48621',102,231);
INSERT INTO "communes" VALUES('32','Manas-Bastanous','17',89,105,7.54,'-2192','48191',204,318);
INSERT INTO "communes" VALUES('32','Betplan','17',113,136,5.46,'-2375','48237',168,315);
INSERT INTO "communes" VALUES('32','Castex','17',94,88,5.38,'-2251','48195',217,323);
INSERT INTO "communes" VALUES('32','Saint-Lary','11',261,194,9.67,'-2040','48582',156,260);
INSERT INTO "communes" VALUES('32','Barcelonne-du-Gers','24',1304,1303,20.29,'-2858','48559',76,161);
INSERT INTO "communes" VALUES('32','Saint-Sauvy','09',367,331,17.58,'-1685','48549',132,220);
INSERT INTO "communes" VALUES('32','Pessoulens','25',159,159,12.63,'-1622','48725',115,262);
INSERT INTO "communes" VALUES('32','Juillac','14',126,121,7.49,'-2455','48381',136,226);
INSERT INTO "communes" VALUES('32','Lamazère','19',140,132,7.47,'-2093','48397',141,243);
INSERT INTO "communes" VALUES('32','Pouylebon','20',163,155,14.38,'-2268','48387',164,266);
INSERT INTO "communes" VALUES('32','Bédéchan','27',134,104,7.84,'-1707','48414',157,262);
INSERT INTO "communes" VALUES('32','Barran','31',723,670,52.82,'-2104','48463',121,283);
INSERT INTO "communes" VALUES('32','Ornézan','03',240,236,12.13,'-1927','48345',165,282);
INSERT INTO "communes" VALUES('32','Aurimont','27',214,133,8.07,'-1684','48415',157,235);
INSERT INTO "communes" VALUES('32','Castelnau-d''Arbieu','08',211,187,16.34,'-1813','48759',79,231);
INSERT INTO "communes" VALUES('32','Loubersan','19',179,168,10.77,'-2042','48330',171,272);
INSERT INTO "communes" VALUES('32','Monbardon','15',94,88,6.41,'-1808','48202',216,316);
INSERT INTO "communes" VALUES('32','Saint-Puy','28',586,602,36.88,'-2083','48752',87,220);
INSERT INTO "communes" VALUES('32','Gimbrède','18',336,288,24.98,'-1798','48933',72,221);
INSERT INTO "communes" VALUES('32','Pouydraguin','01',145,136,9.71,'-2554','48509',113,222);
INSERT INTO "communes" VALUES('32','Viozan','19',110,114,6.76,'-2069','48215',192,285);
INSERT INTO "communes" VALUES('32','Cézan','08',172,150,12.22,'-2041','48680',125,231);
INSERT INTO "communes" VALUES('32','Cadeillan','13',73,72,4.26,'-1655','48245',177,247);
INSERT INTO "communes" VALUES('32','Caussens','06',593,549,13.27,'-2124','48825',102,205);
INSERT INTO "communes" VALUES('32','Sainte-Christie','30',566,419,9.91,'-1893','48617',100,178);
INSERT INTO "communes" VALUES('32','Lelin-Lapujolle','24',233,207,13.56,'-2759','48563',96,188);
INSERT INTO "communes" VALUES('32','Ladevèze-Ville','14',268,249,9.09,'-2532','48374',143,254);
INSERT INTO "communes" VALUES('32','Traversères','27',79,63,10.46,'-1874','48373',175,291);
INSERT INTO "communes" VALUES('32','Labarrère','21',216,250,12.99,'-2434','48844',77,181);
INSERT INTO "communes" VALUES('32','Seissan','03',1080,997,18.56,'-1937','48325',168,283);
INSERT INTO "communes" VALUES('32','Caillavet','29',189,164,14.58,'-2227','48569',110,225);
INSERT INTO "communes" VALUES('32','Cazaubon','04',1707,1546,55.64,'-2676','48816',92,183);
INSERT INTO "communes" VALUES('32','Sémézies-Cachan','27',74,75,6.95,'-1784','48344',177,281);
INSERT INTO "communes" VALUES('32','Pompiac','26',182,144,10.12,'-1477','48348',151,256);
INSERT INTO "communes" VALUES('32','Taybosc','08',59,56,5.87,'-1778','48648',158,224);
INSERT INTO "communes" VALUES('32','Belmont','29',152,151,15.1,'-2330','48544',130,212);
INSERT INTO "communes" VALUES('32','Roques','28',113,122,8.48,'-2267','48720',91,195);
INSERT INTO "communes" VALUES('32','Puységur','08',76,80,7.26,'-1924','48641',100,191);
INSERT INTO "communes" VALUES('32','Ayzieu','04',155,147,13.84,'-2615','48722',102,175);
INSERT INTO "communes" VALUES('32','Luppé-Violles','22',146,126,7.57,'-2744','48599',96,166);
INSERT INTO "communes" VALUES('32','Saint-Orens-Pouy-Petit','28',149,141,11.31,'-2114','48796',97,225);
INSERT INTO "communes" VALUES('32','Saint-Germé','24',499,443,9.55,'-2759','48533',89,110);
INSERT INTO "communes" VALUES('32','Lannemaignan','04',103,104,8.58,'-2819','48778',59,117);
INSERT INTO "communes" VALUES('32','Cuélas','15',107,106,6.55,'-2092','48168',208,296);
INSERT INTO "communes" VALUES('32','Auradé','10',628,388,21.32,'-1421','48407',143,311);
INSERT INTO "communes" VALUES('32','Lannux','24',225,199,12.83,'-2837','48497',82,223);
INSERT INTO "communes" VALUES('32','Noulens','07',98,105,5.74,'-2412','48677',132,196);
INSERT INTO "communes" VALUES('32','Préchac','08',165,153,12.79,'-1956','48656',114,218);
INSERT INTO "communes" VALUES('32','Mirepoix','30',211,171,7.25,'-1850','48605',115,201);
INSERT INTO "communes" VALUES('32','Gazax-et-Baccarisse','20',85,99,9.45,'-2383','48453',154,276);
INSERT INTO "communes" VALUES('32','Rozès','28',128,109,10.74,'-2185','48675',94,214);
INSERT INTO "communes" VALUES('32','Tudelle','29',62,63,5.16,'-2275','48532',127,228);
INSERT INTO "communes" VALUES('32','Montréal','21',1231,1238,63.05,'-2371','48833',73,183);
INSERT INTO "communes" VALUES('32','Blousson-Sérian','14',55,50,5.27,'-2379','48289',185,298);
INSERT INTO "communes" VALUES('32','Tillac','14',254,295,12.47,'-2290','48306',170,264);
INSERT INTO "communes" VALUES('32','Panjas','04',380,398,20.01,'-2695','48690',74,184);
INSERT INTO "communes" VALUES('32','Montégut','02',558,392,11.42,'-1879','48502',135,257);
INSERT INTO "communes" VALUES('32','Sauviac','19',108,134,6.48,'-2092','48228',184,282);
INSERT INTO "communes" VALUES('32','Monbrun','05',341,214,10.8,'-1458','48514',158,225);
INSERT INTO "communes" VALUES('32','Saint-Arailles','29',144,116,13.2,'-2199','48474',136,236);
INSERT INTO "communes" VALUES('32','Auch','99',21576,21911,72.48,'-1942','48495',115,281);
INSERT INTO "communes" VALUES('32','Condom','06',7012,7256,97.37,'-2182','48842',62,190);
INSERT INTO "communes" VALUES('32','Cravencères','22',105,118,9.09,'-2556','48629',97,180);
INSERT INTO "communes" VALUES('32','Orbessan','03',255,210,8.24,'-1919','48382',152,273);
INSERT INTO "communes" VALUES('32','Bétous','22',97,74,5.13,'-2567','48574',99,187);
INSERT INTO "communes" VALUES('32','Esclassan-Labastide','15',355,285,11.93,'-1976','48247',204,324);
INSERT INTO "communes" VALUES('32','Gaudonville','25',122,103,7.39,'-1656','48761',121,265);
INSERT INTO "communes" VALUES('32','Estang','04',630,646,22.51,'-2717','48741',82,157);
INSERT INTO "communes" VALUES('32','Sabaillan','13',156,153,11.21,'-1694','48269',179,307);
INSERT INTO "communes" VALUES('32','Mansencôme','06',66,73,4.05,'-2219','48746',112,201);
INSERT INTO "communes" VALUES('32','Giscaro','10',82,67,5.4,'-1564','48453',175,251);
INSERT INTO "communes" VALUES('32','Berdoues','19',452,356,17.65,'-2144','48314',152,272);
INSERT INTO "communes" VALUES('32','Cazaux-Savès','26',274,138,5.62,'-1504','48380',150,241);
INSERT INTO "communes" VALUES('32','Bellegarde','15',172,136,14.39,'-1903','48250',212,315);
INSERT INTO "communes" VALUES('32','Monfort','16',480,424,22.49,'-1681','48660',105,194);
INSERT INTO "communes" VALUES('32','Mongausy','13',77,64,7.41,'-1700','48342',177,305);
INSERT INTO "communes" VALUES('32','Saint-Justin','14',157,139,13.18,'-2428','48314',146,266);
INSERT INTO "communes" VALUES('32','Laguian-Mazous','17',278,303,9.98,'-2309','48244',199,347);
INSERT INTO "communes" VALUES('32','Mirande','19',3685,3564,23.42,'-2147','48350',139,268);
INSERT INTO "communes" VALUES('32','Maumusson-Laguian','24',153,165,9.3,'-2709','48454',112,184);
INSERT INTO "communes" VALUES('32','Peyrusse-Vieille','20',70,78,11.05,'-2395','48477',141,255);
INSERT INTO "communes" VALUES('32','Ligardes','06',227,250,11.3,'-2060','48934',77,182);
INSERT INTO "communes" VALUES('32','Ayguetinte','28',185,152,6.31,'-2121','48705',96,203);
INSERT INTO "communes" VALUES('32','Izotges','23',90,74,2.94,'-2609','48502',110,119);
INSERT INTO "communes" VALUES('32','Manciet','22',812,767,42.11,'-2551','48666',105,212);
INSERT INTO "communes" VALUES('32','Ansan','09',96,63,7.76,'-1736','48545',138,212);
INSERT INTO "communes" VALUES('32','Moncorneil-Grazan','27',147,104,7.09,'-1870','48281',204,314);
INSERT INTO "communes" VALUES('32','Pergain-Taillac','12',331,285,19.38,'-1943','48954',57,187);
INSERT INTO "communes" VALUES('32','Catonvielle','05',101,62,3.07,'-1527','48511',153,213);
INSERT INTO "communes" VALUES('32','Garde','12',115,131,8.85,'-1979','48849',72,184);
INSERT INTO "communes" VALUES('32','Cannet','23',55,55,4.81,'-2656','48459',114,231);
INSERT INTO "communes" VALUES('32','Larroque-Engalin','12',50,59,6.16,'-1994','48878',72,203);
INSERT INTO "communes" VALUES('32','Saint-André','26',99,76,5.58,'-1645','48403',175,246);
INSERT INTO "communes" VALUES('32','Preignan','30',1248,962,10.67,'-1896','48569',112,197);
INSERT INTO "communes" VALUES('32','Marseillan','19',92,68,4.34,'-2244','48321',179,273);
INSERT INTO "communes" VALUES('32','Saint-Blancard','15',336,257,14.87,'-1878','48160',227,357);
INSERT INTO "communes" VALUES('32','Castillon-Savès','10',289,204,11.96,'-1501','48411',147,246);
INSERT INTO "communes" VALUES('32','Castelnau-sur-l''Auvignon','06',170,163,10.22,'-2088','48858',98,209);
INSERT INTO "communes" VALUES('32','Beaumarchés','23',682,589,32.47,'-2496','48429',129,246);
INSERT INTO "communes" VALUES('32','Roquelaure','30',580,453,21.23,'-1953','48578',106,239);
INSERT INTO "communes" VALUES('32','Courties','20',45,49,6.02,'-2422','48417',145,260);
INSERT INTO "communes" VALUES('32','Troncens','14',185,199,12.97,'-2357','48289',182,342);
INSERT INTO "communes" VALUES('32','Tachoires','27',102,102,9.61,'-1858','48302',197,304);
INSERT INTO "communes" VALUES('32','Touget','05',519,320,17.72,'-1579','48545',130,215);
INSERT INTO "communes" VALUES('32','Berrac','12',108,90,7.99,'-1985','48903',73,207);
INSERT INTO "communes" VALUES('32','Beaupuy','10',198,104,6.54,'-1479','48494',156,229);
INSERT INTO "communes" VALUES('32','Fourcès','21',279,277,23.72,'-2340','48881',64,180);
INSERT INTO "communes" VALUES('32','Plaisance','23',1458,1520,13.71,'-2544','48451',122,186);
INSERT INTO "communes" VALUES('32','Bazugues','19',67,55,5.36,'-2214','48276',195,301);
INSERT INTO "communes" VALUES('32','Lussan','09',244,192,12.83,'-1780','48473',147,264);
INSERT INTO "communes" VALUES('32','Marsolan','12',461,387,26.14,'-1997','48826',87,214);
INSERT INTO "communes" VALUES('32','Montaut','17',114,117,8.48,'-2130','48216',180,262);
INSERT INTO "communes" VALUES('32','Arblade-le-Haut','22',285,275,12.2,'-2662','48599',87,177);
INSERT INTO "communes" VALUES('32','Riscle','24',1727,1694,31.74,'-2693','48507',96,206);
INSERT INTO "communes" VALUES('32','Laymont','13',201,216,11.05,'-1500','48247',190,315);
INSERT INTO "communes" VALUES('32','Mansempuy','16',82,53,6.33,'-1694','48600',137,202);
INSERT INTO "communes" VALUES('32','Sainte-Radegonde','08',184,170,9.82,'-1943','48710',97,181);
INSERT INTO "communes" VALUES('32','Avéron-Bergelle','01',154,176,14.7,'-2519','48605',109,196);
INSERT INTO "communes" VALUES('32','Bajonnette','16',105,92,7.48,'-1742','48677',134,212);
INSERT INTO "communes" VALUES('32','Aubiet','09',1114,1002,38.96,'-1725','48496',138,233);
INSERT INTO "communes" VALUES('32','Saint-Lizier-du-Planté','13',121,112,10.49,'-1540','48238',181,301);
INSERT INTO "communes" VALUES('32','Aussos','15',62,77,7.86,'-1871','48195',232,346);
INSERT INTO "communes" VALUES('32','Lectoure','12',3785,3941,84.93,'-1906','48816',68,223);
INSERT INTO "communes" VALUES('32','Seysses-Savès','26',260,242,13.26,'-1439','48340',165,268);
INSERT INTO "communes" VALUES('32','Labastide-Savès','26',134,117,3.62,'-1506','48355',153,220);
INSERT INTO "communes" VALUES('32','Saint-Aunix-Lengros','23',153,117,5.36,'-2539','48420',131,202);
INSERT INTO "communes" VALUES('32','Saint-Maur','19',124,111,13.84,'-2215','48309',170,290);
INSERT INTO "communes" VALUES('32','Lartigue','27',155,164,14.89,'-1796','48367',170,296);
INSERT INTO "communes" VALUES('32','L''Isle-Arné','09',139,82,6.97,'-1739','48462',149,234);
INSERT INTO "communes" VALUES('32','Idrac-Respaillès','19',212,203,13.03,'-2088','48360',155,266);
INSERT INTO "communes" VALUES('32','Saint-Médard','19',325,293,17.07,'-2085','48322',165,281);
INSERT INTO "communes" VALUES('32','Castelnavet','01',141,155,18.06,'-2452','48526',125,245);
INSERT INTO "communes" VALUES('32','Peyrecave','18',76,82,5.07,'-1685','48886',73,147);
INSERT INTO "communes" VALUES('32','Sauvimont','13',71,39,3.44,'-1520','48276',170,271);
INSERT INTO "communes" VALUES('32','Saint-Paul-de-Baïse','28',106,100,10.1,'-2181','48639',96,208);
INSERT INTO "communes" VALUES('32','Pébées','26',94,67,4.05,'-1456','48289',200,315);
INSERT INTO "communes" VALUES('32','Cazaux-Villecomtal','14',91,83,4.13,'-2403','48281',157,275);
INSERT INTO "communes" VALUES('32','Masseube','15',1604,1396,21.03,'-1953','48255',188,306);
INSERT INTO "communes" VALUES('32','Estampes','17',169,171,10.82,'-2289','48219',203,339);
INSERT INTO "communes" VALUES('32','Laas','19',287,237,10.94,'-2251','48299',176,286);
INSERT INTO "communes" VALUES('32','Saint-Cricq','05',262,121,3.01,'-1486','48555',145,212);
INSERT INTO "communes" VALUES('32','Cologne','05',850,516,6.52,'-1510','48580',134,214);
INSERT INTO "communes" VALUES('32','Margouët-Meymes','01',195,174,17.69,'-2482','48583',130,221);
INSERT INTO "communes" VALUES('32','Montégut-Savès','13',71,68,3.69,'-1530','48269',175,271);
INSERT INTO "communes" VALUES('32','Aux-Aussat','17',260,201,12.61,'-2295','48262',189,342);
INSERT INTO "communes" VALUES('32','Lasséran','31',355,257,15.06,'-1999','48436',144,262);
INSERT INTO "communes" VALUES('32','Leboulin','02',309,285,8.91,'-1860','48522',124,258);
INSERT INTO "communes" VALUES('32','Miélan','17',1215,1259,21.88,'-2254','48255',187,303);
INSERT INTO "communes" VALUES('32','Bars','20',129,139,10.61,'-2269','48346',170,271);
INSERT INTO "communes" VALUES('32','Mouchès','20',73,73,3.07,'-2138','48398',137,231);
INSERT INTO "communes" VALUES('32','Antras','11',56,58,6.59,'-2098','48588',125,251);
INSERT INTO "communes" VALUES('32','Castéra-Lectourois','12',305,296,18.86,'-1919','48862',64,203);
INSERT INTO "communes" VALUES('32','Saint-Antonin','16',145,130,11.19,'-1691','48582',125,203);
INSERT INTO "communes" VALUES('32','Fustérouau','01',130,114,7.85,'-2593','48541',103,196);
INSERT INTO "communes" VALUES('32','Louslitges','20',81,83,12.03,'-2413','48439',145,270);
INSERT INTO "communes" VALUES('32','Endoufielle','10',568,445,17.1,'-1459','48390',146,235);
INSERT INTO "communes" VALUES('32','Saint-Ost','19',80,86,6.84,'-2075','48198',197,287);
INSERT INTO "communes" VALUES('32','Fleurance','08',6339,6279,43.32,'-1859','48722',83,181);
INSERT INTO "communes" VALUES('32','Thoux','05',229,163,6.12,'-1493','48537',147,214);
INSERT INTO "communes" VALUES('32','Labarthète','24',147,139,11.09,'-2770','48477',99,233);
INSERT INTO "communes" VALUES('32','Tourdun','14',96,105,6.95,'-2427','48387',141,240);
INSERT INTO "communes" VALUES('32','Caupenne-d''Armagnac','22',428,377,21.65,'-2670','48653',77,151);
INSERT INTO "communes" VALUES('32','Aujan-Mournède','15',94,107,8.46,'-2038','48202',217,370);
INSERT INTO "communes" VALUES('32','Monferran-Savès','10',705,674,24.68,'-1506','48442',155,241);
INSERT INTO "communes" VALUES('32','Beaumont','06',141,112,7.56,'-2279','48829',76,152);
INSERT INTO "communes" VALUES('32','Lagardère','28',68,54,4.95,'-2232','48712',118,222);
INSERT INTO "communes" VALUES('32','Mauléon-d''Armagnac','04',289,306,35.13,'-2766','48781',68,153);
INSERT INTO "communes" VALUES('32','Sarraguzan','17',97,84,8.64,'-2221','48174',234,378);
INSERT INTO "communes" VALUES('32','Roquepine','28',61,46,3.77,'-2076','48791',128,231);
INSERT INTO "communes" VALUES('32','Saint-Mézard','12',214,202,15.11,'-1975','48924',62,222);
INSERT INTO "communes" VALUES('32','Blaziert','06',136,124,10.97,'-2066','48816',111,222);
INSERT INTO "communes" VALUES('32','Auterive','03',537,508,10.79,'-1914','48425',141,285);
INSERT INTO "communes" VALUES('32','Sarragachies','01',254,265,12.83,'-2656','48537',106,177);
INSERT INTO "communes" VALUES('32','Pis','08',94,80,5.36,'-1806','48649',117,194);
INSERT INTO "communes" VALUES('32','Puycasquier','02',444,424,20.14,'-1766','48607',146,264);
INSERT INTO "communes" VALUES('32','Jegun','11',1137,968,39.25,'-2086','48619',105,242);
INSERT INTO "communes" VALUES('32','Labrihe','16',203,150,9.44,'-1622','48634',115,184);
INSERT INTO "communes" VALUES('32','Saint-Élix','13',193,122,8.17,'-1736','48325',177,291);
INSERT INTO "communes" VALUES('32','Goutz','08',186,163,8.46,'-1780','48672',127,203);
INSERT INTO "communes" VALUES('32','Cadeilhan','25',132,100,8.43,'-1739','48699',122,194);
INSERT INTO "communes" VALUES('32','Lalanne-Arqué','15',136,161,11.15,'-1882','48143',243,367);
INSERT INTO "communes" VALUES('32','Valence-sur-Baïse','28',1185,1147,27.6,'-2172','48758',75,201);
INSERT INTO "communes" VALUES('32','Lasseube-Propre','31',337,236,14.57,'-1959','48416',145,251);
INSERT INTO "communes" VALUES('32','Labarthe','03',169,141,6.46,'-1952','48305',180,261);
INSERT INTO "communes" VALUES('32','Marguestau','04',71,59,3.21,'-2642','48761',101,148);
INSERT INTO "communes" VALUES('32','Sainte-Mère','18',204,182,9.43,'-1852','48894',95,189);
INSERT INTO "communes" VALUES('32','Mont-de-Marrast','17',107,102,7,'-2197','48204',191,304);
INSERT INTO "communes" VALUES('32','Nogaro','22',1980,1881,11.06,'-2634','48620',89,148);
INSERT INTO "communes" VALUES('32','Cahuzac-sur-Adour','23',239,171,6.62,'-2622','48488',112,141);
INSERT INTO "communes" VALUES('32','Gaujac','13',64,37,5.01,'-1670','48310',204,311);
INSERT INTO "communes" VALUES('32','Lavardens','11',407,376,30.55,'-2025','48623',126,245);
INSERT INTO "communes" VALUES('32','Goux','23',84,84,5.36,'-2621','48464',122,226);
INSERT INTO "communes" VALUES('32','Saint-Orens','16',84,75,4.34,'-1586','48571',124,213);
INSERT INTO "communes" VALUES('32','Ramouzens','07',145,175,16.67,'-2390','48681',132,215);
INSERT INTO "communes" VALUES('32','Saint-Martin-de-Goyne','12',130,109,5.6,'-1967','48892',66,186);
INSERT INTO "communes" VALUES('32','Monferran-Plavès','27',128,111,11.07,'-1886','48325',190,294);
INSERT INTO "communes" VALUES('32','Montaut-les-Créneaux','30',646,619,26.23,'-1865','48549',114,264);
INSERT INTO "communes" VALUES('32','Simorre','13',690,698,35.85,'-1779','48278',182,321);
INSERT INTO "communes" VALUES('32','Cazaux-d''Anglès','29',133,116,12.6,'-2307','48510',130,234);
INSERT INTO "communes" VALUES('32','Blanquefort','09',54,44,3.33,'-1697','48527',137,183);
INSERT INTO "communes" VALUES('32','Lupiac','01',308,312,34.5,'-2394','48535',141,247);
INSERT INTO "communes" VALUES('32','Sainte-Anne','05',116,57,6.74,'-1523','48605',125,192);
INSERT INTO "communes" VALUES('32','Gimont','09',2815,2741,27.58,'-1622','48474',144,232);
INSERT INTO "communes" VALUES('32','Duffort','17',136,141,9.84,'-2137','48160',215,331);
INSERT INTO "communes" VALUES('32','Boucagnères','03',135,141,6.16,'-1913','48403',150,273);
INSERT INTO "communes" VALUES('32','Roquefort','11',274,231,7.21,'-1926','48620',103,182);
INSERT INTO "communes" VALUES('32','Saint-Jean-le-Comtal','31',387,349,17.15,'-2019','48419',145,271);
INSERT INTO "communes" VALUES('32','Caumont','24',129,103,7.15,'-2712','48546',98,193);
INSERT INTO "communes" VALUES('32','Scieurac-et-Flourès','14',49,50,5.38,'-2368','48399',157,276);
INSERT INTO "communes" VALUES('32','Bascous','07',153,153,10.22,'-2434','48663',138,212);
INSERT INTO "communes" VALUES('32','Tarsac','24',169,161,4.51,'-2721','48520',95,109);
INSERT INTO "communes" VALUES('32','Sansan','03',97,89,3.7,'-1921','48367',159,240);
INSERT INTO "communes" VALUES('32','Razengues','10',189,104,4.35,'-1488','48490',178,231);
INSERT INTO "communes" VALUES('32','Monclar','04',199,135,10.12,'-2715','48799',92,149);
INSERT INTO "communes" VALUES('32','Gazaupouy','06',285,297,20.94,'-2096','48897',83,220);
INSERT INTO "communes" VALUES('32','Toujouse','22',206,139,14.5,'-2795','48703',70,137);
INSERT INTO "communes" VALUES('32','Saint-Martin','19',453,420,9.07,'-2179','48340',159,263);
INSERT INTO "communes" VALUES('32','Saint-Clar','25',1003,869,17.91,'-1741','48769',93,193);
INSERT INTO "communes" VALUES('32','Noilhan','26',320,247,18.03,'-1560','48372',155,256);
INSERT INTO "communes" VALUES('32','Boulaur','27',161,128,9.03,'-1736','48379',162,285);
INSERT INTO "communes" VALUES('32','Escornebœuf','09',502,497,25.45,'-1583','48505',135,232);
INSERT INTO "communes" VALUES('32','Pujaudran','10',1372,899,17.41,'-1319','48434',194,305);
INSERT INTO "communes" VALUES('32','Tieste-Uragnoux','23',129,121,6.1,'-2554','48388',144,224);
INSERT INTO "communes" VALUES('32','Garravet','13',142,121,9.09,'-1581','48238',183,310);
INSERT INTO "communes" VALUES('32','Faget-Abbatial','27',228,211,17.46,'-1825','48340',182,303);
INSERT INTO "communes" VALUES('32','Sirac','05',142,101,8,'-1540','48567',137,215);
INSERT INTO "communes" VALUES('32','Céran','08',181,148,10.74,'-1832','48686',89,181);
INSERT INTO "communes" VALUES('32','Monties','15',70,108,10.55,'-1845','48211',218,335);
INSERT INTO "communes" VALUES('32','Castéra-Verduzan','28',949,830,19.82,'-2118','48672',97,221);
INSERT INTO "communes" VALUES('32','Saint-Avit-Frandat','12',99,85,7.55,'-1872','48864',96,195);
INSERT INTO "communes" VALUES('32','Chélan','15',190,184,13.49,'-1987','48161',222,341);
INSERT INTO "communes" VALUES('32','Montégut-Arros','17',289,286,15.29,'-2361','48196',170,334);
INSERT INTO "communes" VALUES('32','Gaujan','13',105,107,10.82,'-1793','48232',208,329);
INSERT INTO "communes" VALUES('32','Castillon-Debats','29',328,301,35.05,'-2356','48588',117,227);
INSERT INTO "communes" VALUES('32','Saint-Léonard','25',175,142,13.11,'-1742','48732',96,192);
INSERT INTO "communes" VALUES('32','Villecomtal-sur-Arros','17',847,744,11.17,'-2375','48224',168,315);
INSERT INTO "communes" VALUES('32','Tournecoupe','25',283,267,18.95,'-1695','48737',97,221);
INSERT INTO "communes" VALUES('32','Duran','30',813,665,6.59,'-1966','48520',137,256);
INSERT INTO "communes" VALUES('32','Castet-Arrouy','18',191,148,8.04,'-1801','48866',87,180);
INSERT INTO "communes" VALUES('32','Préchac-sur-Adour','23',212,215,4.37,'-2599','48447',126,142);
INSERT INTO "communes" VALUES('32','Béraut','06',340,319,12.43,'-2149','48795',82,207);
INSERT INTO "communes" VALUES('32','Justian','28',99,93,6.3,'-2263','48684',95,221);
INSERT INTO "communes" VALUES('32','Perchède','22',86,74,5.25,'-2749','48641',81,131);
INSERT INTO "communes" VALUES('32','Saint-Antoine','18',204,177,9.8,'-1662','48929',64,198);
INSERT INTO "communes" VALUES('32','Castin','30',290,261,11.22,'-1989','48546',148,266);
INSERT INTO "communes" VALUES('32','Castelnau-Barbarens','27',497,451,42.37,'-1792','48418',157,291);
INSERT INTO "communes" VALUES('32','Roquebrune','29',196,188,18.41,'-2263','48579',115,215);
INSERT INTO "communes" VALUES('32','Bernède','24',216,204,8.18,'-2842','48522',80,168);
INSERT INTO "communes" VALUES('32','Laujuzan','22',246,225,11.34,'-2724','48674',74,138);
INSERT INTO "communes" VALUES('32','Miramont-Latour','08',153,136,9.77,'-1837','48638',105,202);
INSERT INTO "communes" VALUES('32','Roquelaure-Saint-Aubin','05',126,59,4.21,'-1506','48520',160,211);
INSERT INTO "communes" VALUES('32','Bivès','25',135,130,9.93,'-1702','48704',107,192);
INSERT INTO "communes" VALUES('32','Solomiac','16',461,362,13.8,'-1599','48673',115,202);
INSERT INTO "communes" VALUES('32','Préneron','29',144,142,8.63,'-2289','48585',115,201);
INSERT INTO "communes" VALUES('32','Larroque-Saint-Sernin','28',165,182,17.96,'-2079','48695',95,232);
INSERT INTO "communes" VALUES('32','Monlaur-Bernet','15',187,161,12.21,'-2028','48169',237,376);
INSERT INTO "communes" VALUES('32','Vergoignan','24',297,250,10.44,'-2816','48575',91,153);
INSERT INTO "communes" VALUES('32','Bretagne-d''Armagnac','07',398,345,12.35,'-2443','48763',113,185);
INSERT INTO "communes" VALUES('32','Sorbets','22',210,194,9.21,'-2612','48579',98,159);
INSERT INTO "communes" VALUES('32','Saint-Créac','25',102,100,8.37,'-1705','48802',90,252);
INSERT INTO "communes" VALUES('32','Sainte-Dode','17',223,237,18.84,'-2192','48245',179,340);
INSERT INTO "communes" VALUES('32','Lahas','26',166,154,14.54,'-1605','48394',166,281);
INSERT INTO "communes" VALUES('32','Ségos','24',248,232,8.67,'-2882','48472',91,184);
INSERT INTO "communes" VALUES('32','Lasserade','23',204,226,12.76,'-2526','48472',120,204);
INSERT INTO "communes" VALUES('32','Villefranche','13',164,138,12.62,'-1788','48249',202,311);
INSERT INTO "communes" VALUES('32','Montesquiou','20',600,570,46.8,'-2231','48421',145,256);
INSERT INTO "communes" VALUES('32','Espaon','13',195,146,8.89,'-1636','48245',172,299);
INSERT INTO "communes" VALUES('32','Armentieux','14',87,76,4.83,'-2495','48356',141,221);
INSERT INTO "communes" VALUES('32','Monlezun','14',198,189,17.35,'-2359','48333',155,260);
INSERT INTO "communes" VALUES('32','Monclar-sur-Losse','20',115,102,10.47,'-2226','48368',164,267);
INSERT INTO "communes" VALUES('32','Tourrenquets','02',122,115,7.12,'-1828','48615',135,224);
INSERT INTO "communes" VALUES('32','Sembouès','14',66,56,2.65,'-2413','48289',157,272);
INSERT INTO "communes" VALUES('32','Marsan','09',438,430,14.93,'-1794','48507',158,256);
INSERT INTO "communes" VALUES('32','Saint-Michel','19',266,242,16.56,'-2135','48254',168,286);
INSERT INTO "communes" VALUES('32','Lias-d''Armagnac','04',197,183,11.92,'-2677','48737',92,186);
INSERT INTO "communes" VALUES('32','Monpardiac','14',43,35,3.5,'-2325','48293',193,284);
INSERT INTO "communes" VALUES('32','Saint-Pierre-d''Aubézies','01',78,74,8.42,'-2412','48493',131,245);
INSERT INTO "communes" VALUES('32','Bézéril','26',116,92,9.65,'-1621','48382',172,272);
INSERT INTO "communes" VALUES('32','Mas-d''Auvignon','12',170,170,13.74,'-2037','48767',97,233);
INSERT INTO "communes" VALUES('32','Lannepax','07',563,568,30.84,'-2343','48667',107,217);
INSERT INTO "communes" VALUES('32','Mauvezin','16',1947,1647,32.18,'-1621','48589',115,202);
INSERT INTO "communes" VALUES('32','Augnax','02',88,57,4,'-1734','48580',150,213);
INSERT INTO "communes" VALUES('32','Castillon-Massas','11',249,197,9.59,'-1992','48577',136,264);
INSERT INTO "communes" VALUES('32','Saint-Griède','22',130,128,7.52,'-2699','48585',95,163);
INSERT INTO "communes" VALUES('32','Marestaing','10',247,172,8.46,'-1463','48422',144,223);
INSERT INTO "communes" VALUES('32','Ladevèze-Rivière','14',217,223,13.54,'-2514','48391',134,220);
INSERT INTO "communes" VALUES('32','Verlus','24',98,97,6.19,'-2814','48447',98,236);
INSERT INTO "communes" VALUES('32','Juilles','09',225,180,13.86,'-1674','48446',145,234);
INSERT INTO "communes" VALUES('32','Réjaumont','08',208,175,13.6,'-1984','48683',118,242);
INSERT INTO "communes" VALUES('32','Lanne-Soubiran','22',123,90,6.67,'-2722','48608',92,152);
INSERT INTO "communes" VALUES('32','Larée','04',240,238,12.87,'-2657','48784',98,153);
INSERT INTO "communes" VALUES('32','Montestruc-sur-Gers','08',707,598,16.31,'-1897','48659',91,180);
INSERT INTO "communes" VALUES('32','Jû-Belloc','23',317,305,10.01,'-2590','48425',131,202);
INSERT INTO "communes" VALUES('32','Larressingle','06',211,200,8.55,'-2251','48828',75,177);
INSERT INTO "communes" VALUES('32','Beaucaire','28',286,277,16.14,'-2169','48708',85,208);
INSERT INTO "communes" VALUES('32','Saint-Jean-Poutge','29',316,238,10.8,'-2177','48584',105,225);
INSERT INTO "communes" VALUES('32','Maupas','04',192,212,9.85,'-2747','48719',70,136);
INSERT INTO "communes" VALUES('32','<NAME>','22',1180,1099,31.51,'-2797','48639',87,153);
INSERT INTO "communes" VALUES('32','Frégouville','10',325,201,12.32,'-1536','48432',159,252);
INSERT INTO "communes" VALUES('32','Courrensan','07',391,375,25.16,'-2326','48721',95,178);
INSERT INTO "communes" VALUES('32','Estipouy','20',198,196,11.69,'-2174','48389',139,256);
INSERT INTO "communes" VALUES('32','Espas','22',116,124,15.13,'-2517','48646',119,221);
INSERT INTO "communes" VALUES('32','Saint-Loube','13',97,62,6.09,'-1494','48266',183,305);
INSERT INTO "communes" VALUES('32','Bézues-Bajon','15',209,183,12.86,'-1930','48205',220,314);
INSERT INTO "communes" VALUES('32','Saint-Martin-d''Armagnac','22',227,202,10.8,'-2666','48571',97,175);
INSERT INTO "communes" VALUES('32','Encausse','05',386,270,15.65,'-1442','48555',163,240);
INSERT INTO "communes" VALUES('32','Montamat','13',121,92,6.6,'-1658','48317',185,306);
INSERT INTO "communes" VALUES('32','Barcugnan','17',120,143,9.11,'-2145','48199',190,311);
INSERT INTO "communes" VALUES('32','Manent-Montané','15',93,106,7.45,'-1929','48148',257,360);
INSERT INTO "communes" VALUES('32','Pavie','31',2399,2220,24.67,'-1938','48456',132,260);
INSERT INTO "communes" VALUES('32','Sarcos','15',75,57,6.41,'-1833','48198',225,346);
INSERT INTO "communes" VALUES('32','Gavarret-sur-Aulouste','08',130,128,8.38,'-1871','48635',94,201);
INSERT INTO "communes" VALUES('32','Salles-d''Armagnac','22',118,105,6.08,'-2644','48680',82,184);
INSERT INTO "communes" VALUES('32','Projan','24',156,142,11.78,'-2860','48444',92,231);
INSERT INTO "communes" VALUES('32','Campagne-d''Armagnac','04',199,167,5.49,'-2597','48738',104,155);
INSERT INTO "communes" VALUES('32','Réans','04',251,257,12.31,'-2566','48737',108,186);
INSERT INTO "communes" VALUES('32','Ponsampère','19',108,118,8.9,'-2177','48284',176,295);
INSERT INTO "communes" VALUES('32','Ricourt','14',73,66,7.87,'-2399','48320',162,270);
INSERT INTO "communes" VALUES('32','Saint-Caprais','09',135,102,7.89,'-1721','48438',155,237);
INSERT INTO "communes" VALUES('32','Mirannes','29',70,74,7.89,'-2171','48466',123,233);
INSERT INTO "communes" VALUES('32','Estramiac','25',134,132,9.69,'-1653','48707',106,212);
INSERT INTO "communes" VALUES('32','Pellefigue','13',125,102,12.81,'-1715','48305',182,308);
INSERT INTO "communes" VALUES('32','Sainte-Christie-d''Armagnac','22',366,338,22.5,'-2606','48650',85,175);
INSERT INTO "communes" VALUES('32','Avensac','16',61,48,4.8,'-1594','48702',111,207);
INSERT INTO "communes" VALUES('32','L''Isle-de-Noé','20',549,443,25.66,'-2138','48429',125,283);
INSERT INTO "communes" VALUES('32','Lias','10',512,315,10.67,'-1335','48403',172,305);
INSERT INTO "communes" VALUES('32','Montiron','09',123,131,10.54,'-1654','48429',146,253);
INSERT INTO "communes" VALUES('32','Maignaut-Tauzia','28',220,181,11.14,'-2145','48766',75,193);
INSERT INTO "communes" VALUES('32','Monlezun-d''Armagnac','22',198,205,6.48,'-2762','48694',70,126);
INSERT INTO "communes" VALUES('32','Sère','15',92,98,8.64,'-1876','48235',221,326);
INSERT INTO "communes" VALUES('32','Arrouède','15',90,78,6.33,'-1945','48178',222,327);
INSERT INTO "communes" VALUES('32','Saint-Brès','16',85,88,5.89,'-1741','48644',138,210);
INSERT INTO "communes" VALUES('32','Urgosse','22',238,230,6.7,'-2622','48597',91,160);
INSERT INTO "communes" VALUES('32','Sauveterre','13',231,229,16.45,'-1644','48285',170,311);
INSERT INTO "communes" VALUES('32','Nizas','26',159,78,4.16,'-1486','48331',158,266);
INSERT INTO "communes" VALUES('32','Sempesserre','18',305,311,20.99,'-1875','48906',57,210);
INSERT INTO "communes" VALUES('32','Magnan','22',231,196,11.3,'-2732','48632',81,136);
INSERT INTO "communes" VALUES('32','Miradoux','18',533,497,34.58,'-1756','48887',79,227);
INSERT INTO "communes" VALUES('32','Cazeneuve','21',144,127,8.31,'-2417','48762',103,177);
INSERT INTO "communes" VALUES('33','Saint-Jean-d''Illac','61',6966,5214,120.58,'-3467','49789',34,61);
INSERT INTO "communes" VALUES('33','Guîtres','26',1667,1475,5.02,'-2803','50046',2,70);
INSERT INTO "communes" VALUES('33','Canéjan','59',5109,5121,12,'-3324','49737',23,56);
INSERT INTO "communes" VALUES('33','<NAME>','54',23095,22457,5.28,'-3261','49850',2,27);
INSERT INTO "communes" VALUES('33','Casseuil','38',383,367,6.34,'-2723','49539',8,122);
INSERT INTO "communes" VALUES('33','Génissac','16',1835,1319,13.04,'-2882','49843',2,77);
INSERT INTO "communes" VALUES('33','Libourne','30',23624,21764,20.63,'-2867','49906',2,28);
INSERT INTO "communes" VALUES('33','<NAME>','05',4557,3241,107.32,'-3449','49563',40,84);
INSERT INTO "communes" VALUES('33','Virsac','39',992,900,3.6,'-3086','50030',33,56);
INSERT INTO "communes" VALUES('33','Lavazan','25',228,179,8.97,'-2717','49326',87,143);
INSERT INTO "communes" VALUES('33','Flaujagues','37',544,490,7.8,'-2556','49808',2,84);
INSERT INTO "communes" VALUES('33','Salaunes','20',779,574,42.64,'-3518','49929',41,51);
INSERT INTO "communes" VALUES('33','Origne','45',176,126,27.19,'-3154','49436',38,76);
INSERT INTO "communes" VALUES('33','Saint-Christophe-des-Bardes','31',500,515,7.69,'-2732','49885',25,97);
INSERT INTO "communes" VALUES('33','Bonzac','26',762,623,7.49,'-2843','50008',1,74);
INSERT INTO "communes" VALUES('33','Petit-Palais-et-Cornemps','31',706,551,14.32,'-2666','49979',16,85);
INSERT INTO "communes" VALUES('33','Soussac','34',179,159,6.61,'-2574','49699',63,125);
INSERT INTO "communes" VALUES('33','Cérons','36',1855,1347,7.83,'-2970','49590',0,27);
INSERT INTO "communes" VALUES('33','Beautiran','27',2180,2039,6.35,'-3098','49671',3,22);
INSERT INTO "communes" VALUES('33','Salignac','39',1443,1133,13.04,'-3020','50018',13,64);
INSERT INTO "communes" VALUES('33','Périssac','24',1079,875,12.16,'-2956','50021',7,59);
INSERT INTO "communes" VALUES('33','Mérignas','47',290,277,9.56,'-2693','49761',9,96);
INSERT INTO "communes" VALUES('33','Daignac','16',480,406,5.73,'-2873','49777',16,86);
INSERT INTO "communes" VALUES('33','Saint-Hilaire-de-la-Noaille','38',377,305,11.45,'-2594','49557',39,130);
INSERT INTO "communes" VALUES('33','Floirac','58',16202,16156,8.67,'-3180','49818',3,79);
INSERT INTO "communes" VALUES('33','Prignac-et-Marcamps','15',1368,1288,9.66,'-3144','50036',2,42);
INSERT INTO "communes" VALUES('33','Baron','16',1076,867,10.34,'-2943','49802',29,108);
INSERT INTO "communes" VALUES('33','Mazères','28',669,547,13.14,'-2883','49439',19,124);
INSERT INTO "communes" VALUES('33','Langon','28',7391,6168,13.71,'-2873','49503',0,73);
INSERT INTO "communes" VALUES('33','Saint-Seurin-de-Cursac','07',707,761,2.36,'-3293','50178',7,55);
INSERT INTO "communes" VALUES('33','Saint-Laurent-Médoc','42',4221,3364,136.55,'-3509','50167',4,41);
INSERT INTO "communes" VALUES('33','Ambès','60',2894,2823,28.85,'-3187','50012',0,8);
INSERT INTO "communes" VALUES('33','<NAME>','23',1417,1216,18.64,'-2943','49744',52,118);
INSERT INTO "communes" VALUES('33','Saint-Hippolyte','21',162,209,4.45,'-2737','49857',9,101);
INSERT INTO "communes" VALUES('33','Saint-Martin-de-Lerm','47',140,122,7.02,'-2642','49609',13,96);
INSERT INTO "communes" VALUES('33','Plassac','07',868,914,7.12,'-3315','50115',0,79);
INSERT INTO "communes" VALUES('33','Villenave-de-Rions','17',315,274,2.56,'-2972','49655',14,103);
INSERT INTO "communes" VALUES('33','Puynormand','31',312,247,7.64,'-2597','49981',32,117);
INSERT INTO "communes" VALUES('33','Montussan','55',2778,2208,8.3,'-3072','49869',7,88);
INSERT INTO "communes" VALUES('33','Billaux','30',1097,816,6.26,'-2859','49947',2,16);
INSERT INTO "communes" VALUES('33','Coutures','32',92,65,3.4,'-2564','49605',17,105);
INSERT INTO "communes" VALUES('33','Saint-Germain-de-la-Rivière','24',367,339,4.28,'-2965','49942',1,80);
INSERT INTO "communes" VALUES('33','Saint-Émilion','30',1984,2345,27.02,'-2769','49881',3,107);
INSERT INTO "communes" VALUES('33','Espiet','16',716,532,6.79,'-2887','49777',14,75);
INSERT INTO "communes" VALUES('33','Blasimon','47',872,711,29.76,'-2678','49721',22,130);
INSERT INTO "communes" VALUES('33','Eyrans','40',705,580,4.28,'-3281','50209',1,27);
INSERT INTO "communes" VALUES('33','Saint-Genès-de-Lombaud','23',308,250,6.14,'-3020','49726',22,99);
INSERT INTO "communes" VALUES('33','Fronsac','24',1077,1044,15.29,'-2899','49915',1,84);
INSERT INTO "communes" VALUES('33','Martillac','27',2487,2017,17.09,'-3200','49681',8,59);
INSERT INTO "communes" VALUES('33','Cazats','04',294,224,7.48,'-2827','49413',38,124);
INSERT INTO "communes" VALUES('33','Escoussans','48',295,244,5.11,'-2892','49649',23,97);
INSERT INTO "communes" VALUES('33','Camps-sur-l''Isle','22',541,388,3.02,'-2631','50017',11,24);
INSERT INTO "communes" VALUES('33','Maransin','26',1055,869,29.94,'-2894','50079',18,101);
INSERT INTO "communes" VALUES('33','Marcenais','44',709,596,9.04,'-2971','50065',16,65);
INSERT INTO "communes" VALUES('33','Gradignan','59',23063,22180,15.77,'-3281','49746',10,51);
INSERT INTO "communes" VALUES('33','Lussac','31',1308,1332,23.43,'-2703','49945',22,84);
INSERT INTO "communes" VALUES('33','Vertheuil','33',1226,1068,21.94,'-3523','50278',5,35);
INSERT INTO "communes" VALUES('33','Barde','20',628,634,4.76,'-3307','50017',2,17);
INSERT INTO "communes" VALUES('33','Tizac-de-Curton','16',287,296,3.97,'-2874','49801',9,77);
INSERT INTO "communes" VALUES('33','Lamothe-Landerron','38',1122,1042,9.18,'-2528','49509',15,106);
INSERT INTO "communes" VALUES('33','Saint-Pierre-de-Mons','28',1077,814,9.27,'-2841','49502',2,55);
INSERT INTO "communes" VALUES('33','Pompignac','23',2649,2527,11.62,'-3081','49835',17,89);
INSERT INTO "communes" VALUES('33','Fours','07',283,279,4.64,'-3295','50193',0,33);
INSERT INTO "communes" VALUES('33','Sainte-Colombe','21',467,350,4.06,'-2665','49866',24,96);
INSERT INTO "communes" VALUES('33','Sauveterre-de-Guyenne','47',1811,1793,31.75,'-2692','49659',38,107);
INSERT INTO "communes" VALUES('33','Sainte-Foy-la-Longue','43',135,115,9.37,'-2758','49567',40,113);
INSERT INTO "communes" VALUES('33','Bieujac','28',504,416,6.97,'-2768','49488',13,58);
INSERT INTO "communes" VALUES('33','Bagas','38',274,173,3.63,'-2658','49583',11,86);
INSERT INTO "communes" VALUES('33','Blaignac','38',263,221,3.18,'-2659','49502',12,63);
INSERT INTO "communes" VALUES('33','Saint-Antoine-du-Queyret','34',85,77,6.85,'-2585','49737',40,122);
INSERT INTO "communes" VALUES('33','Fargues','28',1604,1216,15.41,'-2926','49484',18,88);
INSERT INTO "communes" VALUES('33','Lugasson','48',269,237,6.32,'-2774','49724',17,90);
INSERT INTO "communes" VALUES('33','Bommes','28',476,436,5.8,'-2992','49496',10,75);
INSERT INTO "communes" VALUES('33','Saint-Pierre-de-Bat','48',314,271,8.95,'-2853','49638',38,101);
INSERT INTO "communes" VALUES('33','Saint-Estèphe','33',1660,1795,23.54,'-3454','50288',0,31);
INSERT INTO "communes" VALUES('33','Ladaux','48',204,186,4.29,'-2868','49667',33,87);
INSERT INTO "communes" VALUES('33','Grignols','25',1124,1058,22.7,'-2645','49320',49,166);
INSERT INTO "communes" VALUES('33','Saint-Vivien-de-Blaye','44',350,321,5.69,'-3171','50111',8,51);
INSERT INTO "communes" VALUES('33','Saint-Symphorien','45',1742,1397,106.29,'-3140','49365',45,86);
INSERT INTO "communes" VALUES('33','Bourdelles','38',115,107,7.06,'-2596','49504',7,40);
INSERT INTO "communes" VALUES('33','<NAME>','38',4230,4193,12.53,'-2639','49536',5,133);
INSERT INTO "communes" VALUES('33','Caumont','34',158,122,7.58,'-2601','49661',37,108);
INSERT INTO "communes" VALUES('33','Mongauzy','38',582,570,6.84,'-2559','49519',13,110);
INSERT INTO "communes" VALUES('33','Branne','16',1294,949,2.41,'-2803','49812',2,81);
INSERT INTO "communes" VALUES('33','Saint-Léon','23',330,242,4.49,'-2899','49743',45,117);
INSERT INTO "communes" VALUES('33','Puybarban','03',413,309,5.58,'-2679','49503',12,65);
INSERT INTO "communes" VALUES('33','Saint-Seurin-sur-l''Isle','22',3053,2376,8.83,'-2598','50016',12,75);
INSERT INTO "communes" VALUES('33','Coutras','22',8045,7027,33.69,'-2739','50046',4,74);
INSERT INTO "communes" VALUES('33','Lugaignac','16',394,300,3.66,'-2811','49795',10,89);
INSERT INTO "communes" VALUES('33','Monprimblanc','17',278,276,4.97,'-2888','49589',24,116);
INSERT INTO "communes" VALUES('33','Coimères','03',866,657,12.91,'-2829','49440',40,122);
INSERT INTO "communes" VALUES('33','Francs','31',212,178,6.59,'-2603','49940',28,96);
INSERT INTO "communes" VALUES('33','Saint-Genès-de-Castillon','21',395,389,6.8,'-2669','49886',32,98);
INSERT INTO "communes" VALUES('33','Belin-Béliet','05',4379,2757,156.03,'-3474','49442',11,84);
INSERT INTO "communes" VALUES('33','Porchères','22',902,726,13.19,'-2585','50033',12,85);
INSERT INTO "communes" VALUES('33','Saint-Étienne-de-Lisse','21',279,355,7.09,'-2704','49866',11,91);
INSERT INTO "communes" VALUES('33','Neuffons','32',169,122,4.67,'-2581','49604',12,98);
INSERT INTO "communes" VALUES('33','Loupiac-de-la-Réole','38',471,335,5.32,'-2642','49495',13,65);
INSERT INTO "communes" VALUES('33','Saint-Trojan','15',323,318,3.05,'-3241','50098',39,92);
INSERT INTO "communes" VALUES('33','Comps','15',480,389,1.66,'-3257','50076',28,82);
INSERT INTO "communes" VALUES('33','Cénac','23',1843,1806,7.5,'-3108','49755',7,82);
INSERT INTO "communes" VALUES('33','Léogeats','28',720,547,19.61,'-3003','49458',15,102);
INSERT INTO "communes" VALUES('33','Noaillan','50',1564,1016,31.8,'-3003','49422',17,99);
INSERT INTO "communes" VALUES('33','Saint-Pey-d''Armens','21',261,276,4.2,'-2722','49840',6,16);
INSERT INTO "communes" VALUES('33','Biganos','02',9672,6954,52.73,'-3683','49605',0,45);
INSERT INTO "communes" VALUES('33','Saint-Macaire','43',1995,1541,1.79,'-2845','49518',0,30);
INSERT INTO "communes" VALUES('33','Cézac','44',2337,1764,19.16,'-3063','50101',2,76);
INSERT INTO "communes" VALUES('33','Virelade','36',922,747,13.41,'-3020','49629',4,31);
INSERT INTO "communes" VALUES('33','Vayres','30',3429,2625,14.46,'-2945','49886',2,39);
INSERT INTO "communes" VALUES('33','Bouliac','58',3106,3244,7.48,'-3154','49794',4,84);
INSERT INTO "communes" VALUES('33','Vignonet','21',541,534,4.15,'-2759','49829',3,13);
INSERT INTO "communes" VALUES('33','Valeyrac','29',525,418,13.49,'-3591','50439',0,18);
INSERT INTO "communes" VALUES('33','Bordeaux','99',239157,215374,49.36,'-3240','49820',1,42);
INSERT INTO "communes" VALUES('33','Berthez','03',221,166,6.03,'-2746','49428',29,115);
INSERT INTO "communes" VALUES('33','Cubzac-les-Ponts','39',2067,1787,8.92,'-3101','49967',1,42);
INSERT INTO "communes" VALUES('33','Saint-Côme','04',296,249,5.96,'-2797','49362',42,124);
INSERT INTO "communes" VALUES('33','Villegouge','24',1237,1093,13.84,'-2938','49963',11,81);
INSERT INTO "communes" VALUES('33','Saint-André-et-Appelles','41',689,687,10.25,'-2380','49799',7,114);
INSERT INTO "communes" VALUES('33','Civrac-de-Blaye','44',791,668,13.25,'-3088','50124',8,51);
INSERT INTO "communes" VALUES('33','Baurech','23',749,692,7.68,'-3085','49695',2,97);
INSERT INTO "communes" VALUES('33','Saint-Laurent-du-Bois','43',239,219,7.41,'-2747','49595',37,97);
INSERT INTO "communes" VALUES('33','Artigues-de-Lussac','31',1051,971,10.16,'-2751','49969',18,66);
INSERT INTO "communes" VALUES('33','Arveyres','30',1886,1625,17.27,'-2911','49871',1,41);
INSERT INTO "communes" VALUES('33','Queyrac','29',1388,1164,30.73,'-3683','50403',3,13);
INSERT INTO "communes" VALUES('33','Mombrier','15',362,343,4.25,'-3211','50088',17,83);
INSERT INTO "communes" VALUES('33','Illats','36',1280,1161,29.24,'-3010','49553',3,61);
INSERT INTO "communes" VALUES('33','Néac','31',389,403,6.88,'-2799','49929',10,54);
INSERT INTO "communes" VALUES('33','Escaudes','18',150,167,25.77,'-2821','49233',60,107);
INSERT INTO "communes" VALUES('33','Salles-de-Castillon','21',390,370,10.81,'-2597','49903',18,100);
INSERT INTO "communes" VALUES('33','Saint-Christoly-Médoc','29',284,323,7.55,'-3513','50396',1,16);
INSERT INTO "communes" VALUES('33','Bonnetan','23',806,734,4.29,'-3053','49801',34,100);
INSERT INTO "communes" VALUES('33','Campugnan','07',467,407,6.23,'-3222','50197',14,43);
INSERT INTO "communes" VALUES('33','Jau-Dignac-et-Loirac','46',1051,867,41.23,'-3660','50453',0,14);
INSERT INTO "communes" VALUES('33','Prignac-en-Médoc','29',232,163,7.44,'-3611','50364',7,33);
INSERT INTO "communes" VALUES('33','Arsac','20',3146,2820,32.6,'-3361','49997',5,41);
INSERT INTO "communes" VALUES('33','Jugazan','16',282,221,5.53,'-2768','49757',8,98);
INSERT INTO "communes" VALUES('33','Margaux','20',1506,1344,7.36,'-3348','50046',1,23);
INSERT INTO "communes" VALUES('33','Pompéjac','50',240,230,9.74,'-2919','49336',36,105);
INSERT INTO "communes" VALUES('33','Marcheprime','02',4301,3486,24.56,'-3546','49658',34,62);
INSERT INTO "communes" VALUES('33','Aillas','03',761,672,35.13,'-2679','49416',29,138);
INSERT INTO "communes" VALUES('33','Loupiac','17',1099,939,9.57,'-2927','49587',3,108);
INSERT INTO "communes" VALUES('33','Bègles','52',24913,22538,9.96,'-3206','49786',3,18);
INSERT INTO "communes" VALUES('33','Gajac','04',388,323,12.28,'-2741','49374',36,144);
INSERT INTO "communes" VALUES('33','Nérigean','16',859,908,9.98,'-2917','49824',8,76);
INSERT INTO "communes" VALUES('33','Langoiran','17',2230,1992,10.14,'-3042','49675',2,101);
INSERT INTO "communes" VALUES('33','Cubnezais','44',1324,1049,10.3,'-3049','50083',11,61);
INSERT INTO "communes" VALUES('33','Croignon','23',499,382,4.62,'-2980','49800',26,103);
INSERT INTO "communes" VALUES('33','Lansac','15',689,640,6,'-3198','50068',7,68);
INSERT INTO "communes" VALUES('33','Saint-Philippe-du-Seignal','41',461,395,3.38,'-2313','49808',20,113);
INSERT INTO "communes" VALUES('33','Préchac','50',1038,1017,63.87,'-2989','49333',26,93);
INSERT INTO "communes" VALUES('33','Villandraut','50',969,816,12.58,'-3010','49397',20,54);
INSERT INTO "communes" VALUES('33','Saint-Martin-du-Bois','26',821,589,9.8,'-2893','50029',5,81);
INSERT INTO "communes" VALUES('33','Verdelais','43',919,869,4.75,'-2876','49542',2,103);
INSERT INTO "communes" VALUES('33','Macau','06',3486,2884,19.56,'-3278','50009',0,26);
INSERT INTO "communes" VALUES('33','Parempuyre','06',7978,6620,21.8,'-3268','49944',0,15);
INSERT INTO "communes" VALUES('33','Daubèze','47',152,138,5.63,'-2753','49680',43,94);
INSERT INTO "communes" VALUES('33','Béguey','17',1128,914,3.16,'-2955','49603',2,90);
INSERT INTO "communes" VALUES('33','Cauvignac','25',151,107,5.51,'-2684','49353',59,152);
INSERT INTO "communes" VALUES('33','Audenge','02',6052,3943,82.09,'-3722','49649',0,59);
INSERT INTO "communes" VALUES('33','Sigalens','03',356,238,18.33,'-2646','49388',33,136);
INSERT INTO "communes" VALUES('33','Landerrouet-sur-Ségur','32',115,108,3.14,'-2621','49615',14,82);
INSERT INTO "communes" VALUES('33','Marimbault','04',163,96,6.71,'-2895','49345',88,123);
INSERT INTO "communes" VALUES('33','Castelnau-de-Médoc','20',3728,3165,23.92,'-3484','50030',14,47);
INSERT INTO "communes" VALUES('33','Saint-Selve','27',2095,1638,17.74,'-3130','49634',7,63);
INSERT INTO "communes" VALUES('33','<NAME>','41',309,312,6.51,'-2339','49768',62,125);
INSERT INTO "communes" VALUES('33','Saint-Léger-de-Balson','45',317,247,38.04,'-3114','49369',27,71);
INSERT INTO "communes" VALUES('33','Saint-Sauveur-de-Puynormand','31',407,361,5.57,'-2636','49999',19,93);
INSERT INTO "communes" VALUES('33','Bayon-sur-Gironde','15',727,748,5.7,'-3263','50060',0,82);
INSERT INTO "communes" VALUES('33','Bassens','60',6899,6972,10.28,'-3171','49893',2,56);
INSERT INTO "communes" VALUES('33','Budos','36',706,630,21.1,'-3024','49482',12,70);
INSERT INTO "communes" VALUES('33','Pondaurat','03',430,356,8.74,'-2694','49485',11,67);
INSERT INTO "communes" VALUES('33','Saint-Genès-de-Blaye','07',469,396,7.41,'-3309','50180',0,34);
INSERT INTO "communes" VALUES('33','Gornac','47',385,368,8.35,'-2798','49625',54,113);
INSERT INTO "communes" VALUES('33','Sauviac','04',334,246,11.15,'-2803','49340',55,127);
INSERT INTO "communes" VALUES('33','Montignac','48',141,110,6.48,'-2846','49680',49,105);
INSERT INTO "communes" VALUES('33','Cessac','48',187,169,3.65,'-2794','49714',21,77);
INSERT INTO "communes" VALUES('33','Saint-Magne','05',990,814,82.66,'-3327','49475',50,81);
INSERT INTO "communes" VALUES('33','Saint-Aubin-de-Médoc','63',6186,4985,34.72,'-3402','49902',23,51);
INSERT INTO "communes" VALUES('33','Carcans','42',2190,1549,175.4,'-3756','50088',0,65);
INSERT INTO "communes" VALUES('33','<NAME>','63',8933,8134,9.26,'-3348','49858',8,47);
INSERT INTO "communes" VALUES('33','Pineuilh','41',4417,3641,17.36,'-2343','49812',7,125);
INSERT INTO "communes" VALUES('33','Goualade','18',87,77,17,'-2757','49235',74,143);
INSERT INTO "communes" VALUES('33','Aubiac','04',242,259,5.62,'-2864','49411',46,123);
INSERT INTO "communes" VALUES('33','Cantois','48',227,173,8,'-2853','49659',44,106);
INSERT INTO "communes" VALUES('33','Masseilles','25',127,120,6.72,'-2657','49341',60,152);
INSERT INTO "communes" VALUES('33','Lèves-et-Thoumeyragues','41',548,543,15.58,'-2402','49770',30,126);
INSERT INTO "communes" VALUES('33','Lestiac-sur-Garonne','17',620,585,2.98,'-3012','49659',3,96);
INSERT INTO "communes" VALUES('33','Lesparre-Médoc','29',5581,4856,36.97,'-3638','50341',7,34);
INSERT INTO "communes" VALUES('33','Saint-Laurent-du-Plan','43',86,71,2.39,'-2727','49582',19,82);
INSERT INTO "communes" VALUES('33','Saint-Ciers-sur-Gironde','40',3085,3098,38.34,'-3274','50323',0,57);
INSERT INTO "communes" VALUES('33','Bellefond','48',225,202,3.19,'-2785','49740',12,73);
INSERT INTO "communes" VALUES('33','Quinsac','23',2048,1768,8.14,'-3138','49728',2,86);
INSERT INTO "communes" VALUES('33','Aubie-et-Espessas','39',1195,950,7.55,'-3048','50021',14,56);
INSERT INTO "communes" VALUES('33','Blaye','07',4802,4668,6.42,'-3332','50142',0,41);
INSERT INTO "communes" VALUES('33','Bégadan','29',909,879,22.15,'-3589','50396',0,18);
INSERT INTO "communes" VALUES('33','Pellegrue','34',991,977,38.18,'-2512','49715',33,132);
INSERT INTO "communes" VALUES('33','Saint-Médard-d''Eyrans','27',2802,2277,12.72,'-3163','49688',3,51);
INSERT INTO "communes" VALUES('33','Gironde-sur-Dropt','38',1141,1108,8.84,'-2695','49537',8,93);
INSERT INTO "communes" VALUES('33','Saint-Girons-d''Aiguevives','44',956,791,11.94,'-3198','50156',24,81);
INSERT INTO "communes" VALUES('33','Tauriac','15',1301,1294,10.51,'-3154','50055',1,46);
INSERT INTO "communes" VALUES('33','La Teste-de-Buch','49',24591,22976,180.2,'-3868','49592',0,101);
INSERT INTO "communes" VALUES('33','Castelviel','47',186,185,8.02,'-2766','49630',53,121);
INSERT INTO "communes" VALUES('33','Mauriac','47',270,225,10.02,'-2631','49716',37,112);
INSERT INTO "communes" VALUES('33','Cabanac-et-Villagrains','27',2121,1436,69,'-3211','49563',22,77);
INSERT INTO "communes" VALUES('33','Yvrac','55',2534,2160,8.48,'-3109','49866',24,88);
INSERT INTO "communes" VALUES('33','Eysines','06',19571,18411,12.01,'-3320','49872',3,45);
INSERT INTO "communes" VALUES('33','Saint-Avit-Saint-Nazaire','41',1514,1381,18.61,'-2310','49834',6,38);
INSERT INTO "communes" VALUES('33','Birac','04',229,181,10.17,'-2748','49353',48,135);
INSERT INTO "communes" VALUES('33','Gans','04',188,158,7.01,'-2759','49395',35,134);
INSERT INTO "communes" VALUES('33','Loubens','38',309,310,5.89,'-2637','49589',13,94);
INSERT INTO "communes" VALUES('33','Saint-Morillon','27',1493,1082,20.4,'-3155','49611',15,67);
INSERT INTO "communes" VALUES('33','Gours','31',437,373,7.89,'-2571','49993',17,82);
INSERT INTO "communes" VALUES('33','Saint-Androny','07',572,564,11.65,'-3318','50211',0,36);
INSERT INTO "communes" VALUES('33','Brannens','03',224,173,6.04,'-2766','49468',15,65);
INSERT INTO "communes" VALUES('33','Anglade','40',896,769,13.82,'-3304','50235',1,32);
INSERT INTO "communes" VALUES('33','Lamarque','20',1188,955,8.91,'-3394','50107',0,19);
INSERT INTO "communes" VALUES('33','Pauillac','33',5075,5177,22.74,'-3428','50222',0,29);
INSERT INTO "communes" VALUES('33','Bazas','04',4715,4352,37.29,'-2831','49369',34,123);
INSERT INTO "communes" VALUES('33','Donnezac','44',849,778,35.75,'-3089','50275',23,82);
INSERT INTO "communes" VALUES('33','Saint-Ciers-d''Abzac','26',1385,1070,11.71,'-2904','50035',6,67);
INSERT INTO "communes" VALUES('33','Arcachon','01',10975,11459,7.56,'-3895','49621',0,45);
INSERT INTO "communes" VALUES('33','Saint-Caprais-de-Blaye','40',536,405,5.17,'-3221','50317',15,59);
INSERT INTO "communes" VALUES('33','Pomerol','30',715,850,6.24,'-2819','49924',7,39);
INSERT INTO "communes" VALUES('33','Camiran','38',435,442,5.8,'-2674','49587',11,83);
INSERT INTO "communes" VALUES('33','Mazion','07',515,402,3.71,'-3279','50180',9,34);
INSERT INTO "communes" VALUES('33','Saint-Savin','44',2834,2080,33.87,'-3095','50154',19,93);
INSERT INTO "communes" VALUES('33','Bourg','15',2197,2118,10.54,'-3215','50045',1,81);
INSERT INTO "communes" VALUES('33','Landiras','36',2096,1505,59.75,'-3057','49519',13,83);
INSERT INTO "communes" VALUES('33','Talais','46',662,550,15.27,'-3771','50524',0,16);
INSERT INTO "communes" VALUES('33','Saugon','44',405,328,15.5,'-3155','50198',17,66);
INSERT INTO "communes" VALUES('33','Saint-Michel-de-Fronsac','24',538,592,5.49,'-2933','49922',1,79);
INSERT INTO "communes" VALUES('33','Saint-Martial','43',208,170,7.47,'-2791','49597',47,112);
INSERT INTO "communes" VALUES('33','Fargues-Saint-Hilaire','23',2711,2249,7.02,'-3091','49804',17,88);
INSERT INTO "communes" VALUES('33','Cadillac','17',2520,2365,5.44,'-2950','49596',3,92);
INSERT INTO "communes" VALUES('33','Gujan-Mestras','49',19305,14963,53.99,'-3783','49595',0,28);
INSERT INTO "communes" VALUES('33','Abzac','22',1790,1598,13.44,'-2738','50018',5,65);
INSERT INTO "communes" VALUES('33','Cardan','17',439,373,4.25,'-2954','49644',43,117);
INSERT INTO "communes" VALUES('33','Saint-Antoine-sur-l''Isle','22',535,435,10.4,'-2554','50030',15,113);
INSERT INTO "communes" VALUES('33','Sainte-Gemme','32',243,187,9.55,'-2519','49578',30,116);
INSERT INTO "communes" VALUES('33','Sablons','26',1295,1181,11.84,'-2811','50028',1,16);
INSERT INTO "communes" VALUES('33','Saint-Loubès','19',8004,7089,25.07,'-3072','49908',1,57);
INSERT INTO "communes" VALUES('33','Vensac','46',880,694,34,'-3753','50442',0,30);
INSERT INTO "communes" VALUES('33','Saint-Sulpice-et-Cameyrac','19',4339,3914,15.04,'-3030','49900',3,64);
INSERT INTO "communes" VALUES('33','Andernos-les-Bains','02',11127,9256,20.01,'-3807','49714',1,30);
INSERT INTO "communes" VALUES('33','Saint-Médard-en-Jalles','63',27719,25590,85.28,'-3393','49884',9,48);
INSERT INTO "communes" VALUES('33','Captieux','18',1425,1505,119.33,'-2885','49213',69,136);
INSERT INTO "communes" VALUES('33','Riocaud','41',197,179,10.4,'-2365','49738',60,130);
INSERT INTO "communes" VALUES('33','Saint-Christophe-de-Double','22',663,578,36.13,'-2579','50090',24,108);
INSERT INTO "communes" VALUES('33','Saint-Michel-de-Lapujade','38',193,221,7.47,'-2518','49535',24,122);
INSERT INTO "communes" VALUES('33','Cars','07',1160,1189,11.1,'-3285','50143',17,71);
INSERT INTO "communes" VALUES('33','Saucats','27',2136,1663,89.15,'-3258','49614',24,70);
INSERT INTO "communes" VALUES('33','Toulenne','28',2582,1991,6.58,'-2888','49509',1,34);
INSERT INTO "communes" VALUES('33','<NAME>','24',2393,1867,8.53,'-3019','49978',6,49);
INSERT INTO "communes" VALUES('33','Saint-Laurent-d''Arce','39',1362,1057,8.07,'-3118','50039',3,46);
INSERT INTO "communes" VALUES('33','Saint-Seurin-de-Cadourne','33',714,767,15.77,'-3473','50318',1,23);
INSERT INTO "communes" VALUES('33','Martres','48',132,105,3.03,'-2783','49678',38,79);
INSERT INTO "communes" VALUES('33','Pleine-Selve','40',220,192,4.23,'-3236','50364',29,90);
INSERT INTO "communes" VALUES('33','Chamadelle','22',677,559,15.35,'-2681','50115',7,87);
INSERT INTO "communes" VALUES('33','Marcillac','40',1168,995,32.23,'-3177','50299',7,82);
INSERT INTO "communes" VALUES('33','Cleyrac','47',158,149,6.07,'-2639','49689',53,106);
INSERT INTO "communes" VALUES('33','Cartelègue','07',1104,872,11.45,'-3241','50206',4,39);
INSERT INTO "communes" VALUES('33','<NAME>','49',6586,4820,87.08,'-3734','49593',0,35);
INSERT INTO "communes" VALUES('33','Blanquefort','06',14779,13902,33.72,'-3304','49901',0,39);
INSERT INTO "communes" VALUES('33','Saint-Caprais-de-Bordeaux','23',2717,2535,10.26,'-3081','49723',25,97);
INSERT INTO "communes" VALUES('33','Naujac-sur-Mer','29',844,631,98.55,'-3735','50283',0,61);
INSERT INTO "communes" VALUES('33','Soulac-sur-Mer','46',2645,2729,28.89,'-3846','50568',0,25);
INSERT INTO "communes" VALUES('33','Camarsac','23',936,770,5.35,'-3001','49814',24,99);
INSERT INTO "communes" VALUES('33','Saint-Germain-du-Puch','16',2105,1982,11.76,'-2953','49840',11,71);
INSERT INTO "communes" VALUES('33','Artigues-près-Bordeaux','55',7245,5984,7.28,'-3144','49845',30,81);
INSERT INTO "communes" VALUES('33','Bellebat','48',241,143,4.87,'-2837','49710',51,117);
INSERT INTO "communes" VALUES('33','Saint-Sauveur','33',1262,1188,21.89,'-3524','50225',5,33);
INSERT INTO "communes" VALUES('33','Arès','02',5576,4669,48.25,'-3859','49739',0,37);
INSERT INTO "communes" VALUES('33','Tresses','58',4155,3597,11.54,'-3111','49832',27,88);
INSERT INTO "communes" VALUES('33','Ordonnac','29',461,405,10.21,'-3525','50342',2,35);
INSERT INTO "communes" VALUES('33','Saint-Palais','40',486,420,9.76,'-3251','50349',7,91);
INSERT INTO "communes" VALUES('33','Margueron','41',385,400,13.57,'-2319','49736',49,132);
INSERT INTO "communes" VALUES('33','Saint-Yzan-de-Soudiac','44',2186,1531,11.14,'-3052','50156',35,92);
INSERT INTO "communes" VALUES('33','Grézillac','16',715,610,7.79,'-2837','49797',3,83);
INSERT INTO "communes" VALUES('33','<NAME>-sur-Mer','46',1356,1273,17.09,'-3776','50607',0,36);
INSERT INTO "communes" VALUES('33','Tabanac','23',1056,974,8,'-3047','49689',3,94);
INSERT INTO "communes" VALUES('33','Saint-Vincent-de-Pertignas','37',364,369,7.61,'-2721','49775',2,88);
INSERT INTO "communes" VALUES('33','Lagorce','26',1660,1294,28.47,'-2779','50091',5,91);
INSERT INTO "communes" VALUES('33','Saint-Germain-d''Esteuil','29',1187,1086,44.71,'-3557','50322',3,32);
INSERT INTO "communes" VALUES('33','Saint-Michel-de-Castelnau','18',241,216,42.61,'-2719','49201',78,147);
INSERT INTO "communes" VALUES('33','Haux','23',795,732,10.21,'-2996','49704',11,101);
INSERT INTO "communes" VALUES('33','Baigneaux','48',347,245,7.93,'-2815','49692',32,90);
INSERT INTO "communes" VALUES('33','Bruges','54',14903,10613,14.22,'-3277','49870',1,31);
INSERT INTO "communes" VALUES('33','Saint-Quentin-de-Caplong','41',248,276,11.27,'-2450','49760',18,111);
INSERT INTO "communes" VALUES('33','Générac','44',575,493,9.44,'-3204','50199',19,50);
INSERT INTO "communes" VALUES('33','Civrac-en-Médoc','29',584,502,18.35,'-3593','50376',6,22);
INSERT INTO "communes" VALUES('33','Cantenac','20',1310,1177,14.26,'-3322','50031',1,22);
INSERT INTO "communes" VALUES('33','Fossès-et-Baleyssac','38',183,158,9.4,'-2549','49549',33,113);
INSERT INTO "communes" VALUES('33','Saint-Mariens','44',1510,1178,12,'-3044','50130',29,98);
INSERT INTO "communes" VALUES('33','Sallebœuf','23',2223,1928,14.8,'-3038','49825',21,97);
INSERT INTO "communes" VALUES('33','Saint-Martin-de-Laye','26',501,386,9.56,'-2849','50039',4,81);
INSERT INTO "communes" VALUES('33','Romagne','48',427,277,5.15,'-2815','49733',20,87);
INSERT INTO "communes" VALUES('33','Rimons','32',203,190,14.38,'-2589','49635',29,106);
INSERT INTO "communes" VALUES('33','Dardenac','16',93,59,1.5,'-2866','49760',33,86);
INSERT INTO "communes" VALUES('33','Donzac','17',148,124,4.41,'-2894','49614',35,121);
INSERT INTO "communes" VALUES('33','Saint-Quentin-de-Baron','16',1934,958,8.69,'-2915','49798',10,80);
INSERT INTO "communes" VALUES('33','Camiac-et-Saint-Denis','16',378,253,6.6,'-2901','49772',28,114);
INSERT INTO "communes" VALUES('33','Lignan-de-Bazas','04',307,243,11.1,'-2906','49368',77,123);
INSERT INTO "communes" VALUES('33','Barie','03',281,211,5.33,'-2724','49522',7,18);
INSERT INTO "communes" VALUES('33','Pujols','37',574,608,7.4,'-2630','49785',9,98);
INSERT INTO "communes" VALUES('33','Castillon-de-Castets','03',302,216,4.47,'-2724','49500',12,56);
INSERT INTO "communes" VALUES('33','Cours-de-Monségur','32',279,249,9.64,'-2465','49612',24,121);
INSERT INTO "communes" VALUES('33','Saint-Louis-de-Montferrand','60',2034,1863,10.8,'-3190','49947',1,5);
INSERT INTO "communes" VALUES('33','Moulon','16',968,928,13.25,'-2841','49830',2,76);
INSERT INTO "communes" VALUES('33','<NAME>','06',5570,5375,30.12,'-3340','49950',5,37);
INSERT INTO "communes" VALUES('33','Vérac','24',820,715,8.59,'-2975','49990',11,69);
INSERT INTO "communes" VALUES('33','Pessac-sur-Dordogne','37',476,466,7.78,'-2508','49801',3,106);
INSERT INTO "communes" VALUES('33','Saint-Genès-de-Fronsac','24',717,575,6.96,'-2993','50027',24,64);
INSERT INTO "communes" VALUES('33','Frontenac','48',727,650,14.4,'-2776','49709',24,105);
INSERT INTO "communes" VALUES('33','Fontet','38',795,731,7.67,'-2630','49510',5,63);
INSERT INTO "communes" VALUES('33','Saint-Sulpice-de-Pommiers','47',226,228,9.82,'-2723','49635',33,101);
INSERT INTO "communes" VALUES('33','Hostens','45',1337,741,57.64,'-3306','49437',49,100);
INSERT INTO "communes" VALUES('33','Coirac','47',212,179,5.76,'-2783','49657',48,91);
INSERT INTO "communes" VALUES('33','Mesterrieux','32',202,179,3.59,'-2613','49607',12,86);
INSERT INTO "communes" VALUES('33','Teuillac','15',778,667,7.15,'-3205','50103',22,86);
INSERT INTO "communes" VALUES('33','Caudrot','43',1134,932,6.12,'-2756','49530',6,111);
INSERT INTO "communes" VALUES('33','Tayac','31',144,131,7.22,'-2607','49947',37,87);
INSERT INTO "communes" VALUES('33','Mouillac','24',99,103,1.87,'-2988','50009',27,64);
INSERT INTO "communes" VALUES('33','Carignan-de-Bordeaux','23',3689,3095,8.78,'-3124','49794',10,86);
INSERT INTO "communes" VALUES('33','<NAME>','45',225,161,18,'-3237','49389',66,87);
INSERT INTO "communes" VALUES('33','Martignas-sur-Jalle','61',7227,5581,26.39,'-3458','49823',22,46);
INSERT INTO "communes" VALUES('33','Grayan-et-l''Hôpital','46',1258,728,45.4,'-3808','50492',0,35);
INSERT INTO "communes" VALUES('33','Faleyras','48',397,310,10.44,'-2848','49746',26,102);
INSERT INTO "communes" VALUES('33','Cours-les-Bains','25',217,158,10.43,'-2617','49312',85,167);
INSERT INTO "communes" VALUES('33','Gabarnac','17',322,265,5.21,'-2894','49573',24,120);
INSERT INTO "communes" VALUES('33','Cissac-Médoc','33',1772,1535,23.62,'-3520','50252',5,33);
INSERT INTO "communes" VALUES('33','Lartigue','18',51,44,13.64,'-2703','49168',91,127);
INSERT INTO "communes" VALUES('33','Vendays-Montalivet','29',2384,1827,101.46,'-3774','50396',0,57);
INSERT INTO "communes" VALUES('33','Saint-Michel-de-Rieufret','36',547,498,18.94,'-3076','49580',19,66);
INSERT INTO "communes" VALUES('33','Blaignan','29',240,239,6.83,'-3572','50358',7,34);
INSERT INTO "communes" VALUES('33','Saint-Loubert','28',185,129,2.11,'-2782','49509',10,46);
INSERT INTO "communes" VALUES('33','Lugon-et-l''Île-du-Carnay','24',1128,999,10.94,'-2975','49953',1,72);
INSERT INTO "communes" VALUES('33','Saint-André-du-Bois','43',403,389,10,'-2799','49561',33,117);
INSERT INTO "communes" VALUES('33','Isle-Saint-Georges','27',536,522,4.35,'-3123','49694',2,5);
INSERT INTO "communes" VALUES('33','Pugnac','15',2034,1892,13.53,'-3147','50091',3,52);
INSERT INTO "communes" VALUES('33','Saint-Gervais','39',1568,1219,5.58,'-3111','50020',3,50);
INSERT INTO "communes" VALUES('33','Gauriaguet','39',1166,943,5.37,'-3032','50044',23,54);
INSERT INTO "communes" VALUES('33','Noaillac','38',390,291,7.94,'-2608','49462',22,70);
INSERT INTO "communes" VALUES('33','Saint-Jean-de-Blaignac','37',404,401,5.58,'-2751','49792',3,93);
INSERT INTO "communes" VALUES('33','Taillecavat','32',308,263,9.49,'-2429','49607',28,101);
INSERT INTO "communes" VALUES('33','Omet','17',262,226,2.62,'-2908','49613',20,102);
INSERT INTO "communes" VALUES('33','Hourtin','42',3235,2325,190.5,'-3771','50207',0,64);
INSERT INTO "communes" VALUES('33','<NAME>','04',411,349,15.21,'-2896','49419',41,115);
INSERT INTO "communes" VALUES('33','Saint-Médard-de-Guizières','22',2390,2107,10.37,'-2661','50017',8,67);
INSERT INTO "communes" VALUES('33','Braud-et-Saint-Louis','40',1385,1305,49.24,'-3291','50275',0,29);
INSERT INTO "communes" VALUES('33','Avensan','20',2222,1752,52.24,'-3438','50039',4,51);
INSERT INTO "communes" VALUES('33','Tizac-de-Lapouyade','26',490,438,9.4,'-2935','50082',15,79);
INSERT INTO "communes" VALUES('33','Peujard','39',1760,1397,10.98,'-3074','50052',10,54);
INSERT INTO "communes" VALUES('33','Arcins','20',433,309,6.77,'-3401','50081',1,18);
INSERT INTO "communes" VALUES('33','Eynesse','41',583,478,7.59,'-2424','49806',8,111);
INSERT INTO "communes" VALUES('33','Lacanau','20',4428,3129,214.02,'-3795','49977',0,66);
INSERT INTO "communes" VALUES('33','Lormont','60',19799,21340,7.36,'-3176','49866',2,63);
INSERT INTO "communes" VALUES('33','Savignac-de-l''Isle','26',510,476,4.47,'-2857','49989',2,60);
INSERT INTO "communes" VALUES('33','Bayas','26',454,420,10.82,'-2826','50067',8,81);
INSERT INTO "communes" VALUES('33','Juillac','37',261,205,5.86,'-2552','49790',2,108);
INSERT INTO "communes" VALUES('33','Carbon-Blanc','19',6885,6620,3.86,'-3159','49883',10,55);
INSERT INTO "communes" VALUES('33','Rauzan','37',1161,1037,6.5,'-2735','49754',5,100);
INSERT INTO "communes" VALUES('33','Uzeste','50',449,416,26.05,'-2956','49379',24,104);
INSERT INTO "communes" VALUES('33','Villenave-d''Ornon','57',28420,27489,21.26,'-3226','49755',3,41);
INSERT INTO "communes" VALUES('33','Saint-Laurent-des-Combes','21',279,347,3.86,'-2743','49861',9,107);
INSERT INTO "communes" VALUES('33','Dieulivol','32',288,263,10.47,'-2473','49637',22,111);
INSERT INTO "communes" VALUES('33','Saint-Philippe-d''Aiguille','21',415,424,5.87,'-2630','49904',38,117);
INSERT INTO "communes" VALUES('33','Arbis','48',285,243,8.74,'-2869','49643',23,107);
INSERT INTO "communes" VALUES('33','Capian','17',647,624,18.23,'-2964','49679',17,115);
INSERT INTO "communes" VALUES('33','Saint-Maixant','43',1566,1277,7.68,'-2886','49532',0,98);
INSERT INTO "communes" VALUES('33','Roquebrune','32',242,217,6.52,'-2572','49588',14,108);
INSERT INTO "communes" VALUES('33','Preignac','36',2166,2025,13.26,'-2924','49539',2,59);
INSERT INTO "communes" VALUES('33','Esseintes','38',269,218,5.1,'-2671','49566',11,94);
INSERT INTO "communes" VALUES('33','Labescau','25',105,97,5.99,'-2695','49390',63,141);
INSERT INTO "communes" VALUES('33','La Brède','27',3825,3129,23.28,'-3183','49646',9,61);
INSERT INTO "communes" VALUES('33','Cudos','04',842,557,34.21,'-2840','49321',60,133);
INSERT INTO "communes" VALUES('33','Mios','02',7219,4625,137.41,'-3637','49561',4,65);
INSERT INTO "communes" VALUES('33','Cestas','59',16353,16936,99.57,'-3354','49716',33,67);
INSERT INTO "communes" VALUES('33','Samonac','15',426,378,3.9,'-3229','50082',17,88);
INSERT INTO "communes" VALUES('33','Bernos-Beaulac','04',1152,1075,36.8,'-2883','49311',46,122);
INSERT INTO "communes" VALUES('33','Hure','38',497,438,7.09,'-2595','49494',12,63);
INSERT INTO "communes" VALUES('33','Églisottes-et-Chalaures','22',2167,1883,17.16,'-2638','50111',10,103);
INSERT INTO "communes" VALUES('33','Savignac','03',600,493,17.02,'-2717','49470',27,106);
INSERT INTO "communes" VALUES('33','Listrac-Médoc','20',2404,1858,61.9,'-3475','50082',9,44);
INSERT INTO "communes" VALUES('33','<NAME>','23',464,340,3.93,'-2996','49780',35,106);
INSERT INTO "communes" VALUES('33','Saint-Romain-la-Virvée','24',787,755,7.82,'-3040','49962',2,63);
INSERT INTO "communes" VALUES('33','Gensac','37',860,800,9.38,'-2515','49784',15,115);
INSERT INTO "communes" VALUES('33','Ambarès-et-Lagrave','19',13270,11204,24.76,'-3137','49916',0,34);
INSERT INTO "communes" VALUES('33','Doulezon','37',265,230,7.36,'-2602','49769',26,112);
INSERT INTO "communes" VALUES('33','Latresne','23',3277,3195,10.39,'-3148','49761',2,72);
INSERT INTO "communes" VALUES('33','Castres-Gironde','27',2108,1512,6.97,'-3090','49663',3,32);
INSERT INTO "communes" VALUES('33','Saint-Exupéry','38',159,119,4.19,'-2710','49585',17,83);
INSERT INTO "communes" VALUES('33','Saint-Christoly-de-Blaye','44',1947,1774,28.06,'-3160','50145',9,78);
INSERT INTO "communes" VALUES('33','Sauternes','28',732,587,11.32,'-2977','49480',13,89);
INSERT INTO "communes" VALUES('33','Saint-Pardon-de-Conques','28',540,393,6.68,'-2797','49505',0,54);
INSERT INTO "communes" VALUES('33','Guillos','36',412,356,22.67,'-3155','49498',65,82);
INSERT INTO "communes" VALUES('33','<NAME>','22',488,373,14.67,'-2633','50066',24,91);
INSERT INTO "communes" VALUES('33','Marsas','44',1092,864,8.13,'-3021','50075',27,71);
INSERT INTO "communes" VALUES('33','Tarnès','24',266,254,1.45,'-2995','49973',4,34);
INSERT INTO "communes" VALUES('33','Sainte-Foy-la-Grande','41',2474,2785,0.51,'-2355','49823',7,20);
INSERT INTO "communes" VALUES('33','Loupes','23',655,442,4.87,'-3033','49784',45,105);
INSERT INTO "communes" VALUES('33','Ruch','47',563,504,14.49,'-2641','49751',17,110);
INSERT INTO "communes" VALUES('33','Laroque','17',272,230,2.97,'-2934','49622',13,107);
INSERT INTO "communes" VALUES('33','Coubeyrac','37',105,106,5.61,'-2530','49761',22,113);
INSERT INTO "communes" VALUES('33','Massugas','34',279,258,14.41,'-2501','49743',30,118);
INSERT INTO "communes" VALUES('33','Saint-Hilaire-du-Bois','47',85,92,4.5,'-2686','49625',34,103);
INSERT INTO "communes" VALUES('33','Sainte-Eulalie','19',4632,4189,9.06,'-3122','49898',10,60);
INSERT INTO "communes" VALUES('33','Saint-Félix-de-Foncaude','47',293,256,10.33,'-2704','49615',25,86);
INSERT INTO "communes" VALUES('33','Listrac-de-Durèze','34',176,113,5.31,'-2546','49736',36,115);
INSERT INTO "communes" VALUES('33','Montagoudin','38',164,145,3.34,'-2596','49531',14,111);
INSERT INTO "communes" VALUES('33','Landerrouat','34',182,161,4.99,'-2420','49714',68,126);
INSERT INTO "communes" VALUES('33','Targon','48',1851,1686,25.88,'-2889','49705',37,118);
INSERT INTO "communes" VALUES('33','Léognan','27',9309,8267,41.43,'-3264','49699',13,62);
INSERT INTO "communes" VALUES('33','Madirac','23',184,156,1.86,'-3045','49737',37,92);
INSERT INTO "communes" VALUES('33','Ayguemorte-les-Graves','27',933,904,6.33,'-3131','49678',4,34);
INSERT INTO "communes" VALUES('33','Talence','56',40600,37228,8.35,'-3251','49787',9,31);
INSERT INTO "communes" VALUES('33','Lucmau','50',215,209,66.73,'-2938','49269',48,126);
INSERT INTO "communes" VALUES('33','Sadirac','23',3501,3026,19.11,'-3052','49757',31,112);
INSERT INTO "communes" VALUES('33','Pessac','97',58025,56151,38.82,'-3298','49784',12,56);
INSERT INTO "communes" VALUES('33','Lalande-de-Pomerol','30',672,612,8.25,'-2829','49951',5,37);
INSERT INTO "communes" VALUES('33','Marions','25',187,171,16.32,'-2697','49315',93,146);
INSERT INTO "communes" VALUES('33','Reignac','40',1441,1197,37.43,'-3160','50260',7,65);
INSERT INTO "communes" VALUES('33','Castelmoron-d''Albret','32',56,62,0.04,'-2609','49644',37,61);
INSERT INTO "communes" VALUES('33','Saint-Paul','07',956,860,10.87,'-3268','50164',17,46);
INSERT INTO "communes" VALUES('33','Lanton','02',6196,4960,136.19,'-3746','49671',1,54);
INSERT INTO "communes" VALUES('33','Villeneuve','15',391,364,4.63,'-3293','50093',1,51);
INSERT INTO "communes" VALUES('33','Giscos','18',202,171,32.06,'-2789','49192',75,128);
INSERT INTO "communes" VALUES('33','Saint-Seurin-de-Bourg','15',331,353,2.47,'-3240','50058',0,86);
INSERT INTO "communes" VALUES('33','Louchats','45',709,540,39.24,'-3226','49458',57,86);
INSERT INTO "communes" VALUES('33','Asques','24',490,473,6.28,'-3054','49946',1,32);
INSERT INTO "communes" VALUES('33','Izon','30',5370,3958,15.59,'-2998','49911',1,21);
INSERT INTO "communes" VALUES('33','Castillon-la-Bataille','21',3045,3115,5.68,'-2645','49837',2,104);
INSERT INTO "communes" VALUES('33','Roaillan','28',1318,842,11.48,'-2909','49443',17,106);
INSERT INTO "communes" VALUES('33','Sainte-Terre','21',1834,1635,13.93,'-2721','49809',2,16);
INSERT INTO "communes" VALUES('33','Sainte-Croix-du-Mont','17',899,842,8.98,'-2908','49548',1,118);
INSERT INTO "communes" VALUES('33','Mérignac','98',66142,61990,48.17,'-3313','49825',12,53);
INSERT INTO "communes" VALUES('33','Pujols-sur-Ciron','36',755,721,7.53,'-2990','49513',8,24);
INSERT INTO "communes" VALUES('33','Caplong','41',225,204,9.27,'-2443','49753',43,118);
INSERT INTO "communes" VALUES('33','Saint-Vivien-de-Monségur','32',385,370,15.83,'-2477','49573',41,131);
INSERT INTO "communes" VALUES('33','Saint-Pey-de-Castets','37',634,628,11.07,'-2672','49790',1,96);
INSERT INTO "communes" VALUES('33','Saint-Vivien-de-Médoc','46',1615,1365,29.4,'-3747','50478',0,12);
INSERT INTO "communes" VALUES('33','Naujan-et-Postiac','16',494,501,11.1,'-2798','49765',6,91);
INSERT INTO "communes" VALUES('33','Ligueux','41',168,155,5.05,'-2297','49762',32,125);
INSERT INTO "communes" VALUES('33','Cazaugitat','34',250,223,14.35,'-2589','49683',45,141);
INSERT INTO "communes" VALUES('33','Cazalis','50',231,179,46.81,'-3018','49269',79,130);
INSERT INTO "communes" VALUES('33','Saint-Germain-de-Grave','43',144,155,6.16,'-2842','49584',37,119);
INSERT INTO "communes" VALUES('33','Cabara','16',396,337,3.42,'-2774','49808',2,63);
INSERT INTO "communes" VALUES('33','Bassanne','03',91,87,2.54,'-2696','49511',11,45);
INSERT INTO "communes" VALUES('33','Castets-en-Dorthe','28',1211,1123,8.69,'-2766','49513',6,56);
INSERT INTO "communes" VALUES('33','Sendets','25',328,255,8.36,'-2694','49359',78,144);
INSERT INTO "communes" VALUES('33','Bourideys','50',91,84,48.44,'-3100','49298',62,101);
INSERT INTO "communes" VALUES('33','Gaillan-en-Médoc','29',2034,1916,42.02,'-3657','50361',7,20);
INSERT INTO "communes" VALUES('33','Sillas','25',113,105,7.63,'-2664','49305',104,141);
INSERT INTO "communes" VALUES('33','Soussans','20',1544,1340,13.55,'-3373','50062',1,21);
INSERT INTO "communes" VALUES('33','Soulignac','48',450,424,11.49,'-2911','49664',34,111);
INSERT INTO "communes" VALUES('33','Saint-Aignan','24',230,252,2.75,'-2927','49937',28,88);
INSERT INTO "communes" VALUES('33','Puisseguin','31',861,926,17.25,'-2677','49915',38,108);
INSERT INTO "communes" VALUES('33','Camblanes-et-Meynac','23',2661,2089,8.68,'-3138','49739',2,80);
INSERT INTO "communes" VALUES('33','Saint-Yzans-de-Médoc','29',397,471,11.54,'-3509','50358',1,14);
INSERT INTO "communes" VALUES('33','Mourens','47',387,358,10.63,'-2829','49610',47,116);
INSERT INTO "communes" VALUES('33','Lugos','05',840,559,62.14,'-3579','49426',11,49);
INSERT INTO "communes" VALUES('33','Saint-Genis-du-Bois','48',99,75,2.34,'-2791','49669',42,85);
INSERT INTO "communes" VALUES('33','<NAME>','63',9099,7884,15.16,'-3340','49894',4,39);
INSERT INTO "communes" VALUES('33','Saint-Julien-Beychevelle','33',679,796,16.3,'-3419','50183',0,28);
INSERT INTO "communes" VALUES('33','Cursan','23',504,437,6.07,'-2971','49782',41,109);
INSERT INTO "communes" VALUES('33','Cussac-Fort-Médoc','20',2000,1352,18.01,'-3408','50127',0,29);
INSERT INTO "communes" VALUES('33','Semens','43',207,170,3.67,'-2862','49570',33,121);
INSERT INTO "communes" VALUES('33','Lapouyade','26',469,429,25.8,'-2915','50096',30,103);
INSERT INTO "communes" VALUES('33','Lignan-de-Bordeaux','23',704,676,8.94,'-3071','49773',17,95);
INSERT INTO "communes" VALUES('33','Gauriac','15',853,825,5.54,'-3282','50071',0,66);
INSERT INTO "communes" VALUES('33','Monségur','32',1525,1431,9.91,'-2506','49612',17,111);
INSERT INTO "communes" VALUES('33','Cavignac','44',1605,1192,6.63,'-3029','50112',22,77);
INSERT INTO "communes" VALUES('33','Cadarsac','30',300,246,2.28,'-2914','49845',2,53);
INSERT INTO "communes" VALUES('33','Moulis-en-Médoc','20',1810,1367,20.56,'-3452','50066',6,42);
INSERT INTO "communes" VALUES('33','Cambes','23',1346,1145,5.34,'-3111','49702',2,86);
INSERT INTO "communes" VALUES('33','Beychac-et-Caillau','55',1983,1786,15.62,'-3008','49856',10,84);
INSERT INTO "communes" VALUES('33','Saint-Avit-de-Soulège','41',75,93,2.84,'-2456','49792',9,99);
INSERT INTO "communes" VALUES('33','Créon','23',4246,2856,8.02,'-2983','49749',51,109);
INSERT INTO "communes" VALUES('33','Lerm-et-Musset','25',469,400,36.87,'-2770','49253',64,137);
INSERT INTO "communes" VALUES('33','Morizès','38',532,508,5.87,'-2697','49569',10,77);
INSERT INTO "communes" VALUES('33','Paillet','17',1193,989,2.48,'-3001','49651',4,92);
INSERT INTO "communes" VALUES('33','Couquèques','29',252,209,6.33,'-3540','50383',3,13);
INSERT INTO "communes" VALUES('33','Saillans','24',375,363,6.22,'-2903','49956',2,80);
INSERT INTO "communes" VALUES('33','Floudès','38',103,116,3.7,'-2671','49525',8,16);
INSERT INTO "communes" VALUES('33','Sainte-Florence','37',126,129,3.21,'-2698','49792',3,82);
INSERT INTO "communes" VALUES('33','Saint-Martin-Lacaussade','07',1018,856,3.94,'-3310','50163',2,39);
INSERT INTO "communes" VALUES('33','Belvès-de-Castillon','21',326,341,6.61,'-2631','49865',13,102);
INSERT INTO "communes" VALUES('33','Berson','07',1766,1519,17.98,'-3248','50120',12,91);
INSERT INTO "communes" VALUES('33','Civrac-sur-Dordogne','37',233,225,1.94,'-2687','49811',2,10);
INSERT INTO "communes" VALUES('33','Galgon','24',2836,2434,15.18,'-2899','49990',2,56);
INSERT INTO "communes" VALUES('33','<NAME>','23',763,695,2.53,'-3042','49679',3,82);
INSERT INTO "communes" VALUES('33','Sainte-Hélène','20',2648,1781,127.87,'-3578','49962',28,47);
INSERT INTO "communes" VALUES('33','Cenon','55',22242,21283,5.52,'-3188','49841',3,75);
INSERT INTO "communes" VALUES('33','<NAME>','24',343,322,3.22,'-2940','49927',2,78);
INSERT INTO "communes" VALUES('33','Mouliets-et-Villemartin','37',1094,1009,15.91,'-2617','49824',2,93);
INSERT INTO "communes" VALUES('33','<NAME>','20',2488,1504,149.03,'-3809','49859',0,50);
INSERT INTO "communes" VALUES('33','Blésignac','23',310,249,2.5,'-2883','49750',33,80);
INSERT INTO "communes" VALUES('33','Saint-Magne-de-Castillon','21',1864,1754,13.87,'-2668','49849',1,96);
INSERT INTO "communes" VALUES('33','Saint-Cibard','31',220,192,3.54,'-2621','49929',38,108);
INSERT INTO "communes" VALUES('33','Saint-Aubin-de-Branne','16',360,283,5.52,'-2787','49787',2,88);
INSERT INTO "communes" VALUES('33','Courpiac','48',106,101,2.21,'-2799','49728',17,72);
INSERT INTO "communes" VALUES('33','<NAME>','32',378,291,8.15,'-2515','49624',18,115);
INSERT INTO "communes" VALUES('33','Saint-Martin-de-Sescas','43',524,471,8.19,'-2777','49528',5,114);
INSERT INTO "communes" VALUES('33','Salles','05',6158,4489,137.98,'-3562','49502',7,76);
INSERT INTO "communes" VALUES('33','Lados','03',148,116,6.49,'-2760','49408',35,130);
INSERT INTO "communes" VALUES('33','Auros','03',916,663,15.32,'-2758','49439',24,113);
INSERT INTO "communes" VALUES('33','Auriolles','34',129,117,7.03,'-2541','49713',41,116);
INSERT INTO "communes" VALUES('33','Saumos','20',556,339,57.65,'-3695','49910',21,41);
INSERT INTO "communes" VALUES('33','Saint-Ferme','34',364,338,20.09,'-2532','49660',30,126);
INSERT INTO "communes" VALUES('33','Gardegan-et-Tourtirac','21',306,282,9.58,'-2620','49889',12,107);
INSERT INTO "communes" VALUES('33','Saint-Vincent-de-Paul','19',1050,1056,13.88,'-3117','49949',1,8);
INSERT INTO "communes" VALUES('33','Rions','17',1581,1441,10.65,'-2987','49626',2,117);
INSERT INTO "communes" VALUES('33','Arbanats','36',1083,821,7.6,'-3035','49639',2,34);
INSERT INTO "communes" VALUES('33','Saint-Sulpice-de-Faleyrens','30',1485,1572,18.17,'-2807','49860',1,20);
INSERT INTO "communes" VALUES('33','Saint-Brice','47',303,297,5.76,'-2762','49664',48,102);
INSERT INTO "communes" VALUES('33','Cadillac-en-Fronsadais','24',1156,885,3.81,'-3011','49963',1,62);
INSERT INTO "communes" VALUES('33','Bossugan','37',47,55,2.42,'-2647','49768',13,90);
INSERT INTO "communes" VALUES('33','Saint-Sulpice-de-Guilleragues','32',217,227,6.89,'-2540','49588',18,102);
INSERT INTO "communes" VALUES('33','Saint-Sève','38',213,193,4.8,'-2628','49566',29,122);
INSERT INTO "communes" VALUES('33','<NAME>-Garonne','43',745,610,6.35,'-2832','49540',2,116);
INSERT INTO "communes" VALUES('33','Lège-Cap-Ferret','02',7714,6304,93.62,'-3870','49770',0,43);
INSERT INTO "communes" VALUES('33','Saint-Ciers-de-Canesse','15',789,718,6.8,'-3273','50093',5,87);
INSERT INTO "communes" VALUES('33','Guillac','16',183,156,3.06,'-2833','49779',25,87);
INSERT INTO "communes" VALUES('33','Saint-Aubin-de-Blaye','40',783,687,11.54,'-3219','50298',2,37);
INSERT INTO "communes" VALUES('33','Saint-André-de-Cubzac','39',9594,7235,23.15,'-3091','49994',2,73);
INSERT INTO "communes" VALUES('33','Saint-Pierre-d''Aurillac','43',1313,1088,6.52,'-2809','49524',0,115);
INSERT INTO "communes" VALUES('33','Saint-Martin-du-Puy','47',200,228,9.1,'-2626','49635',27,98);
INSERT INTO "communes" VALUES('33','Balizac','45',451,318,41.78,'-3090','49430',18,64);
INSERT INTO "communes" VALUES('33','Étauliers','40',1660,1394,12.98,'-3233','50249',1,23);
INSERT INTO "communes" VALUES('33','Portets','36',2407,1999,15.49,'-3067','49663',2,37);
INSERT INTO "communes" VALUES('33','Barsac','36',2141,1949,14.48,'-2945','49566',3,21);
INSERT INTO "communes" VALUES('33','Le Temple','20',524,498,71.83,'-3697','49865',29,47);
INSERT INTO "communes" VALUES('33','Podensac','36',2645,2266,8.34,'-2991','49612',2,25);
INSERT INTO "communes" VALUES('33','Laruscade','44',2358,1703,46.76,'-2975','50120',18,106);
INSERT INTO "communes" VALUES('33','Brach','20',501,235,28.61,'-3638','50046',27,39);
INSERT INTO "communes" VALUES('33','Ludon-Médoc','06',4160,3326,18.69,'-3267','49980',0,16);
INSERT INTO "communes" VALUES('33','Saint-Denis-de-Pile','26',5170,4080,28.27,'-2825','49991',2,49);
INSERT INTO "communes" VALUES('33','Sainte-Radegonde','37',459,438,12.48,'-2579','49784',9,118);
INSERT INTO "communes" VALUES('33','Montagne','31',1619,1585,26.66,'-2740','49922',18,97);
INSERT INTO "communes" VALUES('33','Peintures','22',1587,1194,13.13,'-2705','50076',5,31);
INSERT INTO "communes" VALUES('33','Brouqueyran','03',207,148,5.66,'-2791','49426',30,114);
INSERT INTO "communes" VALUES('33','Saint-Antoine','39',409,285,0.2,'-3066','50018',36,47);
INSERT INTO "communes" VALUES('33','Cadaujac','27',4816,4404,15.33,'-3185','49728',3,36);
INSERT INTO "communes" VALUES('34','Mauguio','19',16307,14846,49.56,'1857','48463',0,51);
INSERT INTO "communes" VALUES('34','Saint-Jean-de-Fos','14',1533,1162,14.19,'1349','48556',30,528);
INSERT INTO "communes" VALUES('34','Pérols','48',8509,7738,6.01,'1793','48406',0,12);
INSERT INTO "communes" VALUES('34','Félines-Minervois','27',428,389,29.87,'293','48144',143,922);
INSERT INTO "communes" VALUES('34','Montady','06',3959,2534,9.95,'871','48145',10,113);
INSERT INTO "communes" VALUES('34','Olargues','26',627,571,18.6,'642','48396',148,760);
INSERT INTO "communes" VALUES('34','Lunas','16',651,639,44.89,'953','48564',234,768);
INSERT INTO "communes" VALUES('34','Beaufort','27',189,155,6.09,'468','48109',53,220);
INSERT INTO "communes" VALUES('34','Bessan','01',4585,4027,27.65,'1209','48179',0,84);
INSERT INTO "communes" VALUES('34','Villetelle','17',1399,923,5.31,'2004','48593',10,67);
INSERT INTO "communes" VALUES('34','Saint-Sériès','17',887,583,4.56,'1965','48591',14,68);
INSERT INTO "communes" VALUES('34','Soubès','15',889,710,12.35,'1122','48630',190,733);
INSERT INTO "communes" VALUES('34','Castelnau-le-Lez','47',14948,14208,11.18,'1738','48484',19,93);
INSERT INTO "communes" VALUES('34','Saint-Félix-de-Lodez','10',1142,739,4.38,'1247','48513',69,132);
INSERT INTO "communes" VALUES('34','Plans','15',292,265,18.12,'1044','48615',186,845);
INSERT INTO "communes" VALUES('34','Valmascle','10',46,41,6.99,'1069','48440',190,448);
INSERT INTO "communes" VALUES('34','Fabrègues','49',6236,5901,31.46,'1600','48389',7,220);
INSERT INTO "communes" VALUES('34','Baillargues','07',6206,5836,7.68,'1863','48512',13,57);
INSERT INTO "communes" VALUES('34','Ganges','13',4083,3503,7.16,'1524','48816',138,540);
INSERT INTO "communes" VALUES('34','Tressan','14',539,402,3.92,'1282','48416',17,100);
INSERT INTO "communes" VALUES('34','Ceyras','10',1100,725,6.96,'1246','48494',39,152);
INSERT INTO "communes" VALUES('34','Montoulieu','13',153,115,16.1,'1615','48808',159,522);
INSERT INTO "communes" VALUES('34','Alignan-du-Vent','35',1575,1135,17.3,'1117','48300',32,120);
INSERT INTO "communes" VALUES('34','Vieussan','26',274,217,28.26,'712','48379',84,733);
INSERT INTO "communes" VALUES('34','Ferrières-les-Verreries','09',63,38,17.42,'1623','48753',206,421);
INSERT INTO "communes" VALUES('34','Florensac','11',4882,3863,35.71,'1254','48203',1,90);
INSERT INTO "communes" VALUES('34','Usclas-du-Bosc','15',126,67,4.51,'1185','48581',160,445);
INSERT INTO "communes" VALUES('34','Villeveyrac','20',3164,2208,37.12,'1412','48334',12,255);
INSERT INTO "communes" VALUES('34','Campagne','09',271,235,4.84,'1881','48653',35,86);
INSERT INTO "communes" VALUES('34','Boisseron','17',1719,1150,7.46,'1938','48622',19,77);
INSERT INTO "communes" VALUES('34','Balaruc-le-Vieux','12',2069,1796,5.92,'1498','48289',0,196);
INSERT INTO "communes" VALUES('34','Saint-Étienne-de-Gourgas','15',450,309,19.43,'1157','48633',240,762);
INSERT INTO "communes" VALUES('34','Riols','33',750,690,56.02,'506','48339',253,1060);
INSERT INTO "communes" VALUES('34','Combaillaux','18',1430,1285,9.06,'1589','48530',64,275);
INSERT INTO "communes" VALUES('34','Marsillargues','17',6088,5327,42.71,'2045','48516',0,11);
INSERT INTO "communes" VALUES('34','Viols-en-Laval','32',210,177,16.03,'1543','48614',186,320);
INSERT INTO "communes" VALUES('34','Péret','21',887,560,10.97,'1178','48417',74,334);
INSERT INTO "communes" VALUES('34','Saint-Vincent-de-Barbeyrargues','18',689,569,2.24,'1712','48562',65,161);
INSERT INTO "communes" VALUES('34','Ceilhes-et-Rocozels','16',307,256,27.82,'860','48671',426,821);
INSERT INTO "communes" VALUES('34','Valros','35',1330,1133,6.61,'1144','48245',24,99);
INSERT INTO "communes" VALUES('34','Avène','16',305,276,62.65,'847','48619',294,978);
INSERT INTO "communes" VALUES('34','Galargues','07',651,519,11.43,'1872','48634',29,257);
INSERT INTO "communes" VALUES('34','Beaulieu','07',1698,1399,7.73,'1872','48587',47,105);
INSERT INTO "communes" VALUES('34','<NAME>-et-Saint-Martin-de-Castries','15',152,118,43.05,'1249','48654',573,822);
INSERT INTO "communes" VALUES('34','Montblanc','35',2594,2137,26.94,'1145','48218',8,68);
INSERT INTO "communes" VALUES('34','Viols-le-Fort','32',1157,851,16.73,'1520','48604',157,535);
INSERT INTO "communes" VALUES('34','Saussines','17',951,776,6.28,'1912','48626',24,76);
INSERT INTO "communes" VALUES('34','Bédarieux','03',6453,5966,27.82,'914','48462',184,520);
INSERT INTO "communes" VALUES('34','Montferrier-sur-Lez','23',3385,3295,7.7,'1690','48521',36,149);
INSERT INTO "communes" VALUES('34','Brignac','10',714,346,4.65,'1263','48470',21,69);
INSERT INTO "communes" VALUES('34','Saint-Paul-et-Valmalle','02',1020,756,12.72,'1487','48474',110,341);
INSERT INTO "communes" VALUES('34','Murviel-lès-Béziers','25',2840,2390,32.36,'897','48267',19,220);
INSERT INTO "communes" VALUES('34','<NAME>','27',546,589,31.56,'333','48129',90,598);
INSERT INTO "communes" VALUES('34','Lavalette','16',57,37,8.54,'1040','48546',201,685);
INSERT INTO "communes" VALUES('34','Restinclières','07',1554,1162,6.53,'1891','48582',47,101);
INSERT INTO "communes" VALUES('34','Autignac','25',852,730,11.55,'925','48332',79,205);
INSERT INTO "communes" VALUES('34','Puéchabon','02',458,347,31.26,'1423','48571',54,483);
INSERT INTO "communes" VALUES('34','Fontès','21',955,788,17.7,'1158','48378',38,235);
INSERT INTO "communes" VALUES('34','Fos','29',120,96,6.58,'1010','48407',171,464);
INSERT INTO "communes" VALUES('34','Prémian','26',544,406,16.69,'549','48360',218,1111);
INSERT INTO "communes" VALUES('34','Sauteyrargues','09',354,299,12.76,'1758','48710',104,290);
INSERT INTO "communes" VALUES('34','Camplong','03',241,187,13.25,'868','48525',264,882);
INSERT INTO "communes" VALUES('34','Mourèze','10',175,131,13.44,'1133','48466',160,537);
INSERT INTO "communes" VALUES('34','Aigues-Vives','30',429,352,12.81,'535','48153',90,251);
INSERT INTO "communes" VALUES('34','Roujan','29',1931,1476,17.02,'1082','48339',49,246);
INSERT INTO "communes" VALUES('34','Lattes','48',15927,13760,27.83,'1747','48410',0,25);
INSERT INTO "communes" VALUES('34','Oupia','27',285,209,9.04,'477','48100',50,295);
INSERT INTO "communes" VALUES('34','Brenas','16',47,25,10.59,'1023','48504',188,625);
INSERT INTO "communes" VALUES('34','Espondeilhan','35',970,625,5.08,'1029','48267',60,123);
INSERT INTO "communes" VALUES('34','Vendémian','14',1065,793,16.89,'1361','48424',57,282);
INSERT INTO "communes" VALUES('34','Mons','26',581,507,22.32,'688','48413',117,1054);
INSERT INTO "communes" VALUES('34','Faugères','03',551,435,26.06,'947','48406',170,544);
INSERT INTO "communes" VALUES('34','Saint-Chinian','30',1829,1776,23.29,'678','48247',101,631);
INSERT INTO "communes" VALUES('34','Caussiniojouls','25',128,118,10.5,'907','48390',178,547);
INSERT INTO "communes" VALUES('34','Bassan','05',1667,1454,6.79,'1019','48235',53,102);
INSERT INTO "communes" VALUES('34','Saint-Aunès','19',3041,2825,12.32,'1809','48489',13,60);
INSERT INTO "communes" VALUES('34','Lignan-sur-Orb','38',2897,2838,3.41,'926','48204',9,86);
INSERT INTO "communes" VALUES('34','Saint-Georges-d''Orques','49',5343,4395,9.31,'1604','48456',45,183);
INSERT INTO "communes" VALUES('34','Minerve','27',130,111,27.89,'455','48171',137,604);
INSERT INTO "communes" VALUES('34','Hérépian','31',1474,1367,8.77,'865','48437',178,520);
INSERT INTO "communes" VALUES('34','Quarante','06',1609,1449,30.05,'695','48163',21,227);
INSERT INTO "communes" VALUES('34','Tourbes','28',1521,1276,15.96,'1158','48273',11,103);
INSERT INTO "communes" VALUES('34','Neffiès','29',993,699,10.92,'1104','48371',74,327);
INSERT INTO "communes" VALUES('34','Puilacher','14',364,156,2.68,'1300','48408',27,99);
INSERT INTO "communes" VALUES('34','Lunel-Viel','17',3706,3176,11.97,'1950','48531',6,50);
INSERT INTO "communes" VALUES('34','Laurens','25',1436,936,16.39,'956','48359',117,228);
INSERT INTO "communes" VALUES('34','Montouliers','30',238,201,7.7,'633','48153',43,223);
INSERT INTO "communes" VALUES('34','Lézignan-la-Cèbe','21',1429,1017,6.13,'1223','48326',7,91);
INSERT INTO "communes" VALUES('34','Cruzy','30',971,833,25.85,'671','48173',21,263);
INSERT INTO "communes" VALUES('34','Cassagnoles','27',92,78,24.54,'315','48206',280,1005);
INSERT INTO "communes" VALUES('34','<NAME>','34',1178,1122,87.55,'407','48445',663,1087);
INSERT INTO "communes" VALUES('34','Saint-Michel','08',57,44,25.4,'1166','48729',647,861);
INSERT INTO "communes" VALUES('34','Agde','01',24567,20066,50.81,'1265','48122',0,110);
INSERT INTO "communes" VALUES('34','Vic-la-Gardiole','12',2855,2460,18.49,'1622','48322',0,216);
INSERT INTO "communes" VALUES('34','Cessenon-sur-Orb','30',2066,1734,37.29,'794','48278',29,254);
INSERT INTO "communes" VALUES('34','Ferrals-les-Montagnes','27',144,141,25.78,'327','48225',358,887);
INSERT INTO "communes" VALUES('34','Roqueredonde','16',245,138,22.71,'973','48667',453,853);
INSERT INTO "communes" VALUES('34','Béziers','98',70955,69359,95.48,'977','48159',4,120);
INSERT INTO "communes" VALUES('34','Saint-Félix-de-l''Héras','08',35,29,12.92,'1072','48706',600,824);
INSERT INTO "communes" VALUES('34','Salasc','10',276,189,9,'1088','48467',136,489);
INSERT INTO "communes" VALUES('34','Puisserguier','06',2853,2483,28.27,'782','48187',39,205);
INSERT INTO "communes" VALUES('34','Causses-et-Veyran','25',633,546,17.65,'833','48305',33,403);
INSERT INTO "communes" VALUES('34','Puimisson','25',1003,790,6.38,'967','48267',65,137);
INSERT INTO "communes" VALUES('34','Balaruc-les-Bains','12',6868,5683,8.66,'1489','48268',0,169);
INSERT INTO "communes" VALUES('34','Saint-Christol','17',1441,1216,11.29,'1937','48586',24,92);
INSERT INTO "communes" VALUES('34','Ferrières-Poussarou','26',66,49,26.01,'625','48317',203,728);
INSERT INTO "communes" VALUES('34','<NAME>','18',403,326,6.3,'1684','48600',63,142);
INSERT INTO "communes" VALUES('34','Corneilhan','38',1596,1537,14.23,'951','48222',27,133);
INSERT INTO "communes" VALUES('34','Mérifons','16',48,26,6.74,'1054','48483',157,452);
INSERT INTO "communes" VALUES('34','Thézan-lès-Béziers','25',2667,2076,13.65,'926','48246',15,132);
INSERT INTO "communes" VALUES('34','Lansargues','19',2744,2491,18.39,'1929','48502',0,16);
INSERT INTO "communes" VALUES('34','Joncels','16',294,227,46.24,'953','48597',290,835);
INSERT INTO "communes" VALUES('34','Canet','10',3315,1601,7.33,'1282','48446',23,57);
INSERT INTO "communes" VALUES('34','Pomérols','11',2177,1691,11.01,'1291','48212',1,68);
INSERT INTO "communes" VALUES('34','Cazouls-d''Hérault','21',329,272,4.39,'1245','48340',9,31);
INSERT INTO "communes" VALUES('34','Saint-Pons-de-Thomières','33',2062,2288,40.99,'471','48321',273,1026);
INSERT INTO "communes" VALUES('34','Saussan','49',1482,1444,3.6,'1598','48413',13,53);
INSERT INTO "communes" VALUES('34','Mèze','20',10523,7636,34.59,'1409','48252',0,75);
INSERT INTO "communes" VALUES('34','Cabrières','21',478,338,29.02,'1140','48419',76,481);
INSERT INTO "communes" VALUES('34','Azillanet','27',420,372,14.4,'445','48138',62,279);
INSERT INTO "communes" VALUES('34','Gabian','29',820,661,15.96,'1040','48348',82,260);
INSERT INTO "communes" VALUES('34','Olmet-et-Villecun','15',146,113,9.55,'1058','48564',120,600);
INSERT INTO "communes" VALUES('34','Sète','97',42774,39579,24.21,'1511','48227',0,176);
INSERT INTO "communes" VALUES('34','Capestang','06',3033,3006,39.56,'787','48143',0,120);
INSERT INTO "communes" VALUES('34','Saint-Guilhem-le-Désert','02',269,245,38.64,'1348','48593',54,812);
INSERT INTO "communes" VALUES('34','<NAME>','34',114,121,40.44,'392','48390',816,1069);
INSERT INTO "communes" VALUES('34','Agonès','13',241,179,4.16,'1546','48781',119,323);
INSERT INTO "communes" VALUES('34','Pégairolles-de-Buèges','32',49,54,13.35,'1389','48673',160,780);
INSERT INTO "communes" VALUES('34','Pardailhan','33',184,160,41.18,'566','48279',275,820);
INSERT INTO "communes" VALUES('34','Magalas','29',2977,1824,20.76,'984','48301',77,201);
INSERT INTO "communes" VALUES('34','Vacquières','09',427,291,14.74,'1787','48716',85,206);
INSERT INTO "communes" VALUES('34','Saint-Thibéry','28',2344,2204,18.47,'1200','48219',0,80);
INSERT INTO "communes" VALUES('34','Servian','35',4193,3352,40.61,'1069','48252',19,103);
INSERT INTO "communes" VALUES('34','Poilhes','06',554,508,5.95,'823','48120',0,115);
INSERT INTO "communes" VALUES('34','Saint-André-de-Buèges','32',55,58,15.26,'1474','48721',119,940);
INSERT INTO "communes" VALUES('34','Castanet-le-Haut','31',187,167,27.55,'706','48520',389,1124);
INSERT INTO "communes" VALUES('34','Saint-Hilaire-de-Beauvoir','07',365,273,4.69,'1863','48618',39,86);
INSERT INTO "communes" VALUES('34','Pézènes-les-Mines','03',244,172,26.87,'1017','48432',194,501);
INSERT INTO "communes" VALUES('34','Pailhès','25',470,467,6,'945','48256',58,147);
INSERT INTO "communes" VALUES('34','Bélarga','14',445,259,4.13,'1278','48392',17,84);
INSERT INTO "communes" VALUES('34','Saint-Julien','26',207,191,19.25,'655','48410',148,1090);
INSERT INTO "communes" VALUES('34','Poujols','15',152,125,2.86,'1097','48628',192,652);
INSERT INTO "communes" VALUES('34','Saint-Jean-de-Védas','44',8716,8041,12.89,'1653','48418',4,65);
INSERT INTO "communes" VALUES('34','Liausson','10',156,110,7.95,'1148','48484',135,537);
INSERT INTO "communes" VALUES('34','Saint-Nazaire-de-Ladarez','25',343,332,28.27,'821','48344',110,690);
INSERT INTO "communes" VALUES('34','Combes','31',329,267,10.97,'789','48448',200,783);
INSERT INTO "communes" VALUES('34','Saint-Bauzille-de-Montmel','18',940,733,21.52,'1799','48633',62,320);
INSERT INTO "communes" VALUES('34','Roquessels','29',123,123,8.98,'985','48391',138,440);
INSERT INTO "communes" VALUES('34','Saint-Guiraud','14',211,185,6.07,'1242','48530',69,289);
INSERT INTO "communes" VALUES('34','Adissan','21',966,732,4.46,'1213','48372',30,105);
INSERT INTO "communes" VALUES('34','Celles','10',23,20,7.56,'1116','48512',89,350);
INSERT INTO "communes" VALUES('34','Lieuran-lès-Béziers','05',1362,929,8.51,'1001','48243',46,103);
INSERT INTO "communes" VALUES('34','Saint-Pargoire','14',2053,1358,23.77,'1314','48364',18,221);
INSERT INTO "communes" VALUES('34','Pégairolles-de-l''Escalette','08',145,137,32.13,'1096','48670',223,822);
INSERT INTO "communes" VALUES('34','Murviel-lès-Montpellier','49',1911,1208,10.11,'1556','48449',66,236);
INSERT INTO "communes" VALUES('34','Lodève','15',7512,6905,23.17,'1092','48591',117,700);
INSERT INTO "communes" VALUES('34','Laroque','13',1479,1130,6.63,'1542','48803',124,490);
INSERT INTO "communes" VALUES('34','Saint-Jean-de-Buèges','32',206,184,16.9,'1423','48698',144,806);
INSERT INTO "communes" VALUES('34','Saint-Étienne-d''Albagnan','26',301,271,22.7,'578','48369',207,1102);
INSERT INTO "communes" VALUES('34','Nissan-lez-Enserune','06',3652,2906,29.74,'880','48098',0,122);
INSERT INTO "communes" VALUES('34','Vérargues','17',709,446,5.51,'1959','48574',15,65);
INSERT INTO "communes" VALUES('34','Villemagne-l''Argentière','31',424,430,8.06,'870','48464',187,481);
INSERT INTO "communes" VALUES('34','Pinet','11',1402,990,8.83,'1303','48227',5,68);
INSERT INTO "communes" VALUES('34','Saint-Clément-de-Rivière','18',4987,4579,12.73,'1678','48537',46,146);
INSERT INTO "communes" VALUES('34','Rosis','31',304,262,52.91,'742','48519',272,1123);
INSERT INTO "communes" VALUES('34','Aires','31',572,546,20.54,'852','48424',149,640);
INSERT INTO "communes" VALUES('34','Margon','29',550,244,4.47,'1078','48319',57,125);
INSERT INTO "communes" VALUES('34','Jacou','07',4902,4752,3.43,'1750','48512',45,85);
INSERT INTO "communes" VALUES('34','Clapiers','23',5200,4627,7.69,'1724','48508',25,126);
INSERT INTO "communes" VALUES('34','Pierrerue','30',287,264,11.7,'712','48253',90,683);
INSERT INTO "communes" VALUES('34','Saint-Étienne-Estréchoux','03',244,261,3.58,'853','48520',255,594);
INSERT INTO "communes" VALUES('34','Paulhan','10',3648,2663,11.26,'1247','48379',18,83);
INSERT INTO "communes" VALUES('34','Vendres','39',2199,1553,37.8,'986','48077',0,64);
INSERT INTO "communes" VALUES('34','Graissessac','03',708,633,10.03,'840','48534',270,1001);
INSERT INTO "communes" VALUES('34','Nébian','10',1233,1023,9.79,'1217','48451',39,289);
INSERT INTO "communes" VALUES('34','Notre-Dame-de-Londres','32',479,398,28.15,'1600','48696',126,426);
INSERT INTO "communes" VALUES('34','Pézenas','28',8251,7464,29.56,'1207','48288',3,96);
INSERT INTO "communes" VALUES('34','Siran','27',683,568,21.25,'361','48126',77,491);
INSERT INTO "communes" VALUES('34','Villespassans','30',147,128,14.07,'643','48201',138,321);
INSERT INTO "communes" VALUES('34','Saint-Bauzille-de-la-Sylve','14',830,723,8.63,'1344','48463',68,247);
INSERT INTO "communes" VALUES('34','Gignac','14',5447,3955,29.85,'1349','48502',28,286);
INSERT INTO "communes" VALUES('34','Saint-Drézéry','07',2156,1755,10.47,'1828','48593',60,145);
INSERT INTO "communes" VALUES('34','Babeau-Bouldoux','30',293,242,21.4,'636','48262',153,681);
INSERT INTO "communes" VALUES('34','Saint-Jean-de-la-Blaquière','15',569,361,17.22,'1207','48572',85,557);
INSERT INTO "communes" VALUES('34','Saint-Gély-du-Fesc','18',8821,7629,16.51,'1633','48547',71,264);
INSERT INTO "communes" VALUES('34','Valergues','17',2017,1737,5.2,'1917','48520',9,41);
INSERT INTO "communes" VALUES('34','Puissalicon','35',1117,908,13.05,'999','48287',66,142);
INSERT INTO "communes" VALUES('34','Cazevieille','18',184,119,16.21,'1613','48633',160,641);
INSERT INTO "communes" VALUES('34','Montarnaud','02',2524,2348,27.53,'1514','48499',105,319);
INSERT INTO "communes" VALUES('34','Cambon-et-Salvergues','26',61,74,50.39,'580','48464',511,1152);
INSERT INTO "communes" VALUES('34','Sauvian','39',4153,3562,13.07,'1026','48102',3,41);
INSERT INTO "communes" VALUES('34','Saint-Vincent-d''Olargues','26',325,322,15.84,'603','48401',180,1085);
INSERT INTO "communes" VALUES('34','Sussargues','07',2567,2130,6.48,'1851','48569',35,126);
INSERT INTO "communes" VALUES('34','Poussan','20',5224,4037,30.08,'1482','48321',0,286);
INSERT INTO "communes" VALUES('34','Lauret','09',563,426,6.67,'1722','48706',125,400);
INSERT INTO "communes" VALUES('34','Assignan','30',180,168,7.95,'613','48220',173,408);
INSERT INTO "communes" VALUES('34','Saint-Nazaire-de-Pézan','17',576,539,5.66,'1980','48493',0,5);
INSERT INTO "communes" VALUES('34','Cébazan','30',548,346,13.03,'709','48226',112,268);
INSERT INTO "communes" VALUES('34','Valflaunès','09',709,651,21.04,'1706','48667',109,640);
INSERT INTO "communes" VALUES('34','Montels','06',246,168,7.3,'770','48105',0,24);
INSERT INTO "communes" VALUES('34','Saint-Geniès-des-Mourgues','07',1692,1509,11.37,'1887','48552',23,90);
INSERT INTO "communes" VALUES('34','Villeneuvette','10',63,85,3.14,'1181','48456',116,317);
INSERT INTO "communes" VALUES('34','Lavérune','44',2735,2610,7.18,'1632','48428',17,72);
INSERT INTO "communes" VALUES('34','Brissac','13',618,442,44.13,'1517','48754',99,772);
INSERT INTO "communes" VALUES('34','Carlencas-et-Levas','03',124,88,10.78,'987','48481',277,491);
INSERT INTO "communes" VALUES('34','Guzargues','07',477,345,11.73,'1765','48580',80,209);
INSERT INTO "communes" VALUES('34','Coulobres','35',354,230,2.99,'1048','48277',55,120);
INSERT INTO "communes" VALUES('34','Fozières','15',182,166,5.43,'1134','48613',171,680);
INSERT INTO "communes" VALUES('34','Maureilhan','06',1893,1430,10.55,'870','48175',34,85);
INSERT INTO "communes" VALUES('34','Cournonsec','49',2389,1965,12.06,'1520','48387',34,156);
INSERT INTO "communes" VALUES('34','Pignan','49',6366,5667,20.32,'1584','48427',29,218);
INSERT INTO "communes" VALUES('34','Aigne','27',265,234,10.94,'512','48147',79,273);
INSERT INTO "communes" VALUES('34','Boujan-sur-Libron','05',3121,2610,7.02,'1014','48192',34,106);
INSERT INTO "communes" VALUES('34','Cazouls-lès-Béziers','38',4461,3343,38.46,'850','48214',16,204);
INSERT INTO "communes" VALUES('34','Portiragnes','05',3160,2281,20.16,'1110','48116',0,41);
INSERT INTO "communes" VALUES('34','Saint-Bauzille-de-Putois','13',1593,1141,18.16,'1555','48772',118,483);
INSERT INTO "communes" VALUES('34','Arboras','14',99,74,6.73,'1276','48567',137,702);
INSERT INTO "communes" VALUES('34','Rouet','32',58,46,24.77,'1640','48680',179,500);
INSERT INTO "communes" VALUES('34','Jonquières','14',391,355,2.05,'1266','48528',94,126);
INSERT INTO "communes" VALUES('34','Saint-Privat','15',405,218,26.9,'1209','48614',197,782);
INSERT INTO "communes" VALUES('34','Argelliers','02',890,722,50.29,'1486','48553',80,531);
INSERT INTO "communes" VALUES('34','Saint-Geniès-de-Varensal','31',190,208,12.55,'740','48534',358,1086);
INSERT INTO "communes" VALUES('34','Mas-de-Londres','32',482,276,19.06,'1573','48646',167,400);
INSERT INTO "communes" VALUES('34','Castries','07',5752,5140,24.05,'1828','48532',20,154);
INSERT INTO "communes" VALUES('34','Montbazin','20',2968,2213,21.13,'1510','48351',16,313);
INSERT INTO "communes" VALUES('34','Soumont','15',160,135,11.04,'1131','48587',130,542);
INSERT INTO "communes" VALUES('34','Frontignan','12',22526,19130,31.72,'1576','48275',0,223);
INSERT INTO "communes" VALUES('34','Marseillan','01',7883,6198,51.71,'1323','48174',0,33);
INSERT INTO "communes" VALUES('34','Saint-Maurice-Navacelles','08',156,142,68.6,'1313','48719',219,800);
INSERT INTO "communes" VALUES('34','<NAME>','47',8005,6799,5.84,'1780','48497',29,83);
INSERT INTO "communes" VALUES('34','Montpellier','99',257351,225511,56.88,'1711','48457',7,121);
INSERT INTO "communes" VALUES('34','Aumelas','14',489,380,58.26,'1402','48448',64,341);
INSERT INTO "communes" VALUES('34','Plaissan','14',899,642,5.79,'1321','48398',35,165);
INSERT INTO "communes" VALUES('34','Usclas-d''Hérault','21',296,144,2.82,'1253','48354',18,30);
INSERT INTO "communes" VALUES('34','Saint-Brès','07',2659,2477,4.86,'1881','48519',13,41);
INSERT INTO "communes" VALUES('34','Villeneuve-lès-Béziers','05',3986,3431,17.31,'1049','48127',2,51);
INSERT INTO "communes" VALUES('34','Matelles','18',1677,1429,16.81,'1636','48589',60,300);
INSERT INTO "communes" VALUES('34','Garrigues','09',167,127,4.92,'1864','48661',58,221);
INSERT INTO "communes" VALUES('34','Villeneuve-lès-Maguelone','12',9141,7341,22.7,'1694','48369',0,130);
INSERT INTO "communes" VALUES('34','Saint-Jean-de-Minervois','33',143,115,32.7,'551','48207',159,778);
INSERT INTO "communes" VALUES('34','Saint-Gervais-sur-Mare','31',861,798,24.29,'782','48502',280,940);
INSERT INTO "communes" VALUES('34','Sérignan','39',6685,6120,27.45,'1046','48089',0,24);
INSERT INTO "communes" VALUES('34','Verreries-de-Moussans','33',94,104,18.69,'388','48276',404,849);
INSERT INTO "communes" VALUES('34','Vendargues','07',5579,5222,8.98,'1814','48509',25,86);
INSERT INTO "communes" VALUES('34','Vailhauquès','18',2366,1900,16.12,'1535','48525',80,303);
INSERT INTO "communes" VALUES('34','Saint-Pierre-de-la-Fage','15',113,88,18.6,'1210','48659',360,780);
INSERT INTO "communes" VALUES('34','Lagamas','14',114,112,4.52,'1318','48526',33,142);
INSERT INTO "communes" VALUES('34','Aniane','02',2773,2099,30.34,'1388','48539',36,367);
INSERT INTO "communes" VALUES('34','Maraussan','38',3757,2786,12.37,'912','48185',8,92);
INSERT INTO "communes" VALUES('34','<NAME>-sur-Orb','03',1229,1052,30.65,'903','48504',204,745);
INSERT INTO "communes" VALUES('34','Claret','09',1389,1069,28.27,'1742','48735',135,410);
INSERT INTO "communes" VALUES('34','Fraisse-sur-Agout','34',346,323,58.46,'513','48451',435,1111);
INSERT INTO "communes" VALUES('34','Octon','16',453,399,21.81,'1073','48505',134,700);
INSERT INTO "communes" VALUES('34','Loupian','20',2092,1486,16,'1419','48278',0,170);
INSERT INTO "communes" VALUES('34','Cournonterral','49',5939,5070,28.62,'1536','48398',29,320);
INSERT INTO "communes" VALUES('34','Lunel','17',25277,22346,23.9,'1999','48530',2,53);
INSERT INTO "communes" VALUES('34','Dio-et-Valquières','16',152,134,18.77,'996','48519',256,701);
INSERT INTO "communes" VALUES('34','Saint-Just','17',2851,2493,6.08,'1975','48508',2,9);
INSERT INTO "communes" VALUES('34','Grabels','46',6393,5438,16.24,'1628','48498',50,167);
INSERT INTO "communes" VALUES('34','Fouzilhon','29',219,146,5.39,'1009','48335',134,214);
INSERT INTO "communes" VALUES('34','Caux','28',2509,1976,24.84,'1147','48341',27,166);
INSERT INTO "communes" VALUES('34','Berlou','26',191,184,11.34,'688','48323',130,680);
INSERT INTO "communes" VALUES('34','Aspiran','10',1446,1167,16.13,'1236','48406',17,160);
INSERT INTO "communes" VALUES('34','Courniou','33',607,603,30.06,'417','48304',329,951);
INSERT INTO "communes" VALUES('34','Saint-Pons-de-Mauchiens','21',656,513,13.58,'1308','48348',18,185);
INSERT INTO "communes" VALUES('34','Montaud','07',906,617,12.92,'1799','48612',51,210);
INSERT INTO "communes" VALUES('34','<NAME>-Motte','19',8440,6466,10.58,'1943','48400',0,3);
INSERT INTO "communes" VALUES('34','<NAME>','15',225,189,15.86,'1086','48549',98,385);
INSERT INTO "communes" VALUES('34','Colombiers','38',2335,2063,10.14,'893','48126',21,100);
INSERT INTO "communes" VALUES('34','Pouzols','14',842,630,2.96,'1307','48465',27,100);
INSERT INTO "communes" VALUES('34','Cazedarnes','30',534,397,11.64,'769','48249',98,251);
INSERT INTO "communes" VALUES('34','Sainte-Croix-de-Quintillargues','18',606,532,6.62,'1747','48636',104,321);
INSERT INTO "communes" VALUES('34','<NAME>','03',280,191,3.8,'853','48475',236,662);
INSERT INTO "communes" VALUES('34','Assas','07',1529,1310,19.11,'1736','48558',59,164);
INSERT INTO "communes" VALUES('34','Castelnau-de-Guers','11',1123,889,22.51,'1224','48261',1,105);
INSERT INTO "communes" VALUES('34','Agel','30',219,167,12.54,'574','48153',70,257);
INSERT INTO "communes" VALUES('34','Pouzolles','29',1060,781,10.01,'1047','48315',48,180);
INSERT INTO "communes" VALUES('34','Moulès-et-Baucels','13',850,598,22.78,'1551','48831',156,727);
INSERT INTO "communes" VALUES('34','Colombières-sur-Orb','26',471,417,8.11,'749','48422',132,1008);
INSERT INTO "communes" VALUES('34','Taussac-la-Billière','31',474,353,14.62,'816','48468',199,700);
INSERT INTO "communes" VALUES('34','Gorniès','13',112,121,29.31,'1431','48765',176,940);
INSERT INTO "communes" VALUES('34','Saint-Mathieu-de-Tréviers','18',4686,3713,21.92,'1702','48633',78,400);
INSERT INTO "communes" VALUES('34','Cers','05',2191,1802,7.85,'1076','48137',3,48);
INSERT INTO "communes" VALUES('34','Montpeyroux','14',1227,1087,22.42,'1300','48550',66,841);
INSERT INTO "communes" VALUES('34','Saint-Geniès-de-Fontedit','25',1389,1083,9.24,'936','48298',58,150);
INSERT INTO "communes" VALUES('34','Popian','14',360,248,5.86,'1332','48466',47,130);
INSERT INTO "communes" VALUES('34','Murles','18',294,233,24.06,'1566','48543',80,298);
INSERT INTO "communes" VALUES('34','Lacoste','10',295,248,7.46,'1222','48496',40,266);
INSERT INTO "communes" VALUES('34','Vias','01',5354,4327,32.49,'1202','48125',0,33);
INSERT INTO "communes" VALUES('34','Lamalou-les-Bains','31',2438,2157,6.18,'826','48442',175,458);
INSERT INTO "communes" VALUES('34','Juvignac','46',7466,5587,10.83,'1637','48459',27,150);
INSERT INTO "communes" VALUES('34','Cazilhac','13',1310,1163,11.69,'1517','48804',132,523);
INSERT INTO "communes" VALUES('34','Vailhan','29',169,120,11.23,'1073','48392',93,460);
INSERT INTO "communes" VALUES('34','<NAME>','08',442,383,22.08,'1092','48737',714,826);
INSERT INTO "communes" VALUES('34','Prades-sur-Vernazobre','30',279,236,19.98,'722','48275',64,663);
INSERT INTO "communes" VALUES('34','Montagnac','21',3593,2983,39.81,'1274','48312',8,172);
INSERT INTO "communes" VALUES('34','Fontanès','09',282,202,8.18,'1753','48661',88,241);
INSERT INTO "communes" VALUES('34','Buzignargues','07',261,199,4.61,'1854','48634',40,133);
INSERT INTO "communes" VALUES('34','Lespignan','38',3120,2570,22.92,'928','48082',0,90);
INSERT INTO "communes" VALUES('34','Nézignan-l''Évêque','28',1520,957,4.33,'1189','48246',7,74);
INSERT INTO "communes" VALUES('34','<NAME>','15',1210,740,28.13,'1177','48564',56,432);
INSERT INTO "communes" VALUES('34','Rives','08',121,127,23.79,'1036','48714',640,853);
INSERT INTO "communes" VALUES('34','Saint-Saturnin-de-Lucian','14',308,229,9.83,'1260','48549',118,720);
INSERT INTO "communes" VALUES('34','<NAME>','16',1604,1484,11.83,'922','48548',236,787);
INSERT INTO "communes" VALUES('34','Olonzac','27',1683,1566,18.95,'438','48093',29,182);
INSERT INTO "communes" VALUES('34','<NAME>','02',917,719,24.45,'1454','48515',136,367);
INSERT INTO "communes" VALUES('34','Creissan','06',1295,934,8.89,'749','48195',73,201);
INSERT INTO "communes" VALUES('34','Mudaison','19',2498,2262,8.1,'1892','48496',4,21);
INSERT INTO "communes" VALUES('34','Roquebrun','26',554,579,39.64,'771','48334',56,731);
INSERT INTO "communes" VALUES('34','Mireval','12',3275,3051,11.05,'1627','48342',0,196);
INSERT INTO "communes" VALUES('34','Aumes','21',440,310,7.39,'1252','48296',6,106);
INSERT INTO "communes" VALUES('34','Campagnan','14',550,393,3.75,'1290','48375',18,123);
INSERT INTO "communes" VALUES('34','Cesseras','27',372,400,15.07,'421','48139',54,417);
INSERT INTO "communes" VALUES('34','Cabrerolles','25',363,269,28.68,'876','48384',134,705);
INSERT INTO "communes" VALUES('34','Candillargues','19',1401,1143,8.23,'1924','48467',0,7);
INSERT INTO "communes" VALUES('34','Saint-André-de-Sangonis','14',5319,3788,19.6,'1297','48500',26,122);
INSERT INTO "communes" VALUES('34','<NAME>','14',1819,1350,13.91,'1320','48436',25,161);
INSERT INTO "communes" VALUES('34','Clermont-l''Hérault','10',8018,6531,32.49,'1217','48475',40,322);
INSERT INTO "communes" VALUES('34','Vélieux','33',62,50,10.15,'441','48208',213,675);
INSERT INTO "communes" VALUES('34','Lieuran-Cabrières','21',279,182,6.13,'1199','48428',77,323);
INSERT INTO "communes" VALUES('34','Rieussec','33',91,76,22.2,'447','48241',314,860);
INSERT INTO "communes" VALUES('34','Le Poujol-sur-Orb','31',1024,898,4.58,'805','48422',162,380);
INSERT INTO "communes" VALUES('34','Causse-de-la-Selle','32',337,291,45.19,'1456','48673',68,640);
INSERT INTO "communes" VALUES('34','Boisset','33',26,30,17.47,'408','48224',257,794);
INSERT INTO "communes" VALUES('34','Romiguières','16',27,15,3.45,'993','48687',554,877);
INSERT INTO "communes" VALUES('34','Sorbs','08',38,52,20.2,'1182','48769',480,860);
INSERT INTO "communes" VALUES('34','Saint-Martin-de-l''Arçon','26',125,118,4.22,'718','48416',120,1065);
INSERT INTO "communes" VALUES('34','Saint-Martin-de-Londres','32',2370,1892,38.2,'1550','48656',91,488);
INSERT INTO "communes" VALUES('34','Bouzigues','20',1626,1206,3.05,'1468','48276',0,61);
INSERT INTO "communes" VALUES('34','Prades-le-Lez','18',4534,4341,8.88,'1698','48554',53,134);
INSERT INTO "communes" VALUES('34','Teyran','07',4427,4236,10.04,'1768','48538',45,122);
INSERT INTO "communes" VALUES('34','Saint-Jean-de-Cornies','07',673,478,3.11,'1849','48605',50,106);
INSERT INTO "communes" VALUES('34','Saint-Jean-de-Cuculles','18',468,352,9.09,'1664','48614',72,459);
INSERT INTO "communes" VALUES('34','<NAME>','08',48,39,22.45,'1142','48743',596,865);
INSERT INTO "communes" VALUES('34','Nizas','21',582,524,8.53,'1190','48348',19,131);
INSERT INTO "communes" VALUES('34','Montesquieu','29',65,47,14.47,'1043','48402',140,467);
INSERT INTO "communes" VALUES('34','Gigean','20',5687,3548,16.56,'1527','48333',10,232);
INSERT INTO "communes" VALUES('34','Abeilhan','35',1355,985,7.81,'1064','48277',43,105);
INSERT INTO "communes" VALUES('34','<NAME>','27',328,306,21.78,'492','48170',112,483);
INSERT INTO "communes" VALUES('34','Valras-Plage','39',4592,3635,2.35,'1060','48052',0,10);
INSERT INTO "communes" VALUES('34','Palavas-les-Flots','48',5995,5419,2.38,'1771','48366',0,3);
INSERT INTO "communes" VALUES('34','Lauroux','15',203,172,26.42,'1058','48642',212,845);
INSERT INTO "communes" VALUES('34','Saturargues','17',891,596,5.99,'1974','48580',16,68);
INSERT INTO "communes" VALUES('35','Bain-de-Bretagne','03',7339,5516,64.77,'-4465','53158',17,114);
INSERT INTO "communes" VALUES('35','Domalain','02',1958,1490,33.54,'-3975','53329',45,108);
INSERT INTO "communes" VALUES('35','Sixt-sur-Aff','25',2152,1915,42.5,'-4905','53084',5,92);
INSERT INTO "communes" VALUES('35','Plélan-le-Grand','27',3566,2944,49.74,'-4928','53335',42,154);
INSERT INTO "communes" VALUES('35','Fleurigné','12',1043,898,18.17,'-3841','53706',79,233);
INSERT INTO "communes" VALUES('35','Montours','36',1016,811,15.27,'-4050','53825',108,184);
INSERT INTO "communes" VALUES('35','Guipel','17',1579,1419,25.11,'-4508','53665',58,113);
INSERT INTO "communes" VALUES('35','Saint-Just','25',1058,924,28.05,'-4775','53073',8,94);
INSERT INTO "communes" VALUES('35','Beaucé','12',1214,1056,8.17,'-3881','53709',70,188);
INSERT INTO "communes" VALUES('35','Rimou','01',358,307,13.28,'-4276','53777',14,83);
INSERT INTO "communes" VALUES('35','<NAME>','40',870,460,8.95,'-4384','53253',44,111);
INSERT INTO "communes" VALUES('35','Langon','28',1443,1282,36.54,'-4649','53022',1,97);
INSERT INTO "communes" VALUES('35','Landavran','43',626,398,5.01,'-4029','53510',68,127);
INSERT INTO "communes" VALUES('35','Moutiers','15',900,657,17.64,'-3945','53297',51,108);
INSERT INTO "communes" VALUES('35','<NAME>-Erbrée','42',630,450,11.98,'-3819','53490',77,167);
INSERT INTO "communes" VALUES('35','Roz-sur-Couesnon','26',1034,952,25.86,'-4365','53988',5,97);
INSERT INTO "communes" VALUES('35','Rennes','98',207178,206194,50.39,'-4463','53460',20,74);
INSERT INTO "communes" VALUES('35','Saint-Gilles','24',3783,3463,20.72,'-4625','53504',34,96);
INSERT INTO "communes" VALUES('35','Tresbœuf','40',1198,923,25.33,'-4314','53203',25,113);
INSERT INTO "communes" VALUES('35','Andouillé-Neuville','34',807,504,12.61,'-4363','53660',52,111);
INSERT INTO "communes" VALUES('35','Chelun','15',341,249,11.25,'-3956','53172',73,112);
INSERT INTO "communes" VALUES('35','Brulais','21',465,400,11.96,'-4866','53210',27,91);
INSERT INTO "communes" VALUES('35','La Chapelle-Chaussée','04',1146,763,14.76,'-4657','53635',84,148);
INSERT INTO "communes" VALUES('35','Landujan','22',936,688,14.32,'-4814','53611',62,118);
INSERT INTO "communes" VALUES('35','Redon','28',9592,9500,15.09,'-4912','52946',0,73);
INSERT INTO "communes" VALUES('35','Baulon','16',1951,1325,25.02,'-4742','53317',48,124);
INSERT INTO "communes" VALUES('35','Plesder','41',708,569,11.03,'-4732','53793',18,97);
INSERT INTO "communes" VALUES('35','Pléchâtel','03',2735,1952,36.32,'-4539','53216',7,116);
INSERT INTO "communes" VALUES('35','Saint-Malo','96',46342,50697,36.58,'-4828','54053',0,51);
INSERT INTO "communes" VALUES('35','Teillay','03',997,786,26.21,'-4305','53119',37,98);
INSERT INTO "communes" VALUES('35','Saint-Lunaire','10',2329,2246,10.27,'-4939','54038',0,64);
INSERT INTO "communes" VALUES('35','Amanlis','18',1602,1442,25.25,'-4236','53340',25,93);
INSERT INTO "communes" VALUES('35','Dinard','10',10579,10443,7.84,'-4887','54036',0,56);
INSERT INTO "communes" VALUES('35','Quédillac','38',1132,964,26.54,'-4977','53611',60,121);
INSERT INTO "communes" VALUES('35','Cancale','05',5324,5208,12.61,'-4654','54085',0,56);
INSERT INTO "communes" VALUES('35','Cherrueix','11',1150,960,12.69,'-4497','54006',1,9);
INSERT INTO "communes" VALUES('35','Tressé','09',340,250,5.24,'-4690','53868',35,77);
INSERT INTO "communes" VALUES('35','Availles-sur-Seiche','15',702,512,11.06,'-3925','53290',52,89);
INSERT INTO "communes" VALUES('35','Moulins','15',651,563,15.21,'-4121','53336',42,94);
INSERT INTO "communes" VALUES('35','Pipriac','25',3559,2916,48.65,'-4760','53121',14,98);
INSERT INTO "communes" VALUES('35','Guipry','25',3646,2990,50.35,'-4644','53139',3,115);
INSERT INTO "communes" VALUES('35','Corps-Nuds','18',2941,2460,22.56,'-4359','53309',34,90);
INSERT INTO "communes" VALUES('35','Comblessac','21',660,487,17.23,'-4911','53196',17,96);
INSERT INTO "communes" VALUES('35','Gévezé','31',3984,2764,27.54,'-4583','53577',38,109);
INSERT INTO "communes" VALUES('35','Saint-Suliac','08',940,855,5.46,'-4788','53967',0,73);
INSERT INTO "communes" VALUES('35','Saint-Hilaire-des-Landes','36',993,922,18.27,'-4105','53724',54,117);
INSERT INTO "communes" VALUES('35','Saint-Étienne-en-Coglès','36',1684,1424,22.65,'-4068','53782',73,155);
INSERT INTO "communes" VALUES('35','Rannée','15',1156,1110,51.95,'-3974','53249',55,114);
INSERT INTO "communes" VALUES('35','Laignelet','12',979,793,14.83,'-3874','53746',104,231);
INSERT INTO "communes" VALUES('35','Saint-Ganton','25',418,386,14.08,'-4696','53072',25,102);
INSERT INTO "communes" VALUES('35','Miniac-Morvan','08',3705,2792,31.03,'-4707','53905',2,68);
INSERT INTO "communes" VALUES('35','Domagné','06',2217,1638,29,'-4142','53412',43,96);
INSERT INTO "communes" VALUES('35','Le Lou-du-Lac','22',96,101,3.18,'-4810','53566',63,101);
INSERT INTO "communes" VALUES('35','Saint-Grégoire','52',8549,7646,17.3,'-4469','53501',25,92);
INSERT INTO "communes" VALUES('35','Montauban-de-Bretagne','22',4739,4042,42.96,'-4871','53555',42,117);
INSERT INTO "communes" VALUES('35','Le Châtellier','36',377,393,13.43,'-3989','53795',119,183);
INSERT INTO "communes" VALUES('35','Montgermont','52',3056,2748,4.67,'-4503','53508',34,62);
INSERT INTO "communes" VALUES('35','Chauvigné','01',788,576,17.71,'-4218','53751',30,107);
INSERT INTO "communes" VALUES('35','Vern-sur-Seiche','46',8146,7455,19.7,'-4374','53383',21,72);
INSERT INTO "communes" VALUES('35','Combourg','09',5637,4869,63.55,'-4542','53788',29,120);
INSERT INTO "communes" VALUES('35','Visseiche','15',827,688,16.03,'-4041','53284',42,91);
INSERT INTO "communes" VALUES('35','Saint-Léger-des-Prés','09',232,232,5.54,'-4431','53773',40,86);
INSERT INTO "communes" VALUES('35','Bovel','21',579,331,14.6,'-4793','53278',45,128);
INSERT INTO "communes" VALUES('35','Ercé-près-Liffré','19',1801,1363,15.78,'-4282','53617',46,112);
INSERT INTO "communes" VALUES('35','Coësmes','33',1391,1072,23.24,'-4197','53203',47,107);
INSERT INTO "communes" VALUES('35','Saint-Jouan-des-Guérets','39',2672,2489,9.24,'-4788','53998',0,61);
INSERT INTO "communes" VALUES('35','Parcé','13',640,601,16.88,'-3930','53637',73,166);
INSERT INTO "communes" VALUES('35','Lécousse','13',2931,2834,11.07,'-3949','53742',62,181);
INSERT INTO "communes" VALUES('35','Osse','06',1179,772,8.99,'-4207','53395',44,78);
INSERT INTO "communes" VALUES('35','Hirel','05',1373,1178,9.85,'-4598','54006',1,9);
INSERT INTO "communes" VALUES('35','Hédé-Bazouges','17',1940,1833,14.52,'-4599','53661',39,108);
INSERT INTO "communes" VALUES('35','Liffré','19',6829,6454,66.86,'-4271','53571',40,113);
INSERT INTO "communes" VALUES('35','Saint-Germain-sur-Ille','34',892,725,3.9,'-4440','53610',37,100);
INSERT INTO "communes" VALUES('35','Chevaigné','34',1838,1620,10.33,'-4407','53569',32,90);
INSERT INTO "communes" VALUES('35','<NAME>','38',487,361,6.25,'-4972','53564',77,114);
INSERT INTO "communes" VALUES('35','Coglès','36',650,575,17.21,'-4112','53844',70,142);
INSERT INTO "communes" VALUES('35','Montfort-sur-Meu','23',6458,5408,14.02,'-4769','53487',28,131);
INSERT INTO "communes" VALUES('35','Iffs','04',264,232,4.52,'-4670','53653',53,141);
INSERT INTO "communes" VALUES('35','Muel','38',816,648,28.9,'-4993','53475',45,133);
INSERT INTO "communes" VALUES('35','Gaël','38',1584,1350,52.1,'-5064','53480',51,131);
INSERT INTO "communes" VALUES('35','Pocé-les-Bois','43',1078,970,14.84,'-3985','53462',47,112);
INSERT INTO "communes" VALUES('35','Saint-Jean-sur-Vilaine','06',1043,872,10.73,'-4108','53463',42,112);
INSERT INTO "communes" VALUES('35','Orgères','47',3905,2865,16.33,'-4450','53332',26,111);
INSERT INTO "communes" VALUES('35','Montreuil-sous-Pérouse','43',1061,928,15.49,'-3970','53501',53,125);
INSERT INTO "communes" VALUES('35','Sougéal','26',642,586,14.15,'-4288','53900',5,104);
INSERT INTO "communes" VALUES('35','Le Vivier-sur-Mer','11',1014,1009,2.24,'-4567','54002',3,8);
INSERT INTO "communes" VALUES('35','La Ville-ès-Nonais','08',1036,681,4.34,'-4766','53942',0,53);
INSERT INTO "communes" VALUES('35','Janzé','18',8142,5361,41.26,'-4262','53290',31,117);
INSERT INTO "communes" VALUES('35','Miniac-sous-Bécherel','04',708,560,13.55,'-4743','53650',79,183);
INSERT INTO "communes" VALUES('35','Saint-Coulomb','05',2482,2167,18.04,'-4720','54083',0,52);
INSERT INTO "communes" VALUES('35','Talensac','23',2353,2046,21.61,'-4736','53454',24,128);
INSERT INTO "communes" VALUES('35','<NAME>','02',1439,1354,43.63,'-3748','53372',67,184);
INSERT INTO "communes" VALUES('35','Saint-Sulpice-la-Forêt','19',1423,1307,6.72,'-4351','53576',46,92);
INSERT INTO "communes" VALUES('35','Québriac','17',1469,1040,20.72,'-4626','53716',22,96);
INSERT INTO "communes" VALUES('35','Lohéac','25',664,603,5.11,'-4688','53184',34,100);
INSERT INTO "communes" VALUES('35','Marcillé-Raoul','01',833,660,22.41,'-4380','53763',25,91);
INSERT INTO "communes" VALUES('35','Ercé-en-Lamée','03',1437,1157,39.21,'-4328','53145',23,107);
INSERT INTO "communes" VALUES('35','Romagne','13',2154,1609,26.93,'-4015','53714',57,171);
INSERT INTO "communes" VALUES('35','Bruz','47',16465,13181,29.95,'-4536','53361',12,99);
INSERT INTO "communes" VALUES('35','Thorigné-Fouillard','19',7140,6631,13.58,'-4351','53511',27,89);
INSERT INTO "communes" VALUES('35','Laillé','16',4348,3554,32.04,'-4505','53309',5,110);
INSERT INTO "communes" VALUES('35','Parthenay-de-Bretagne','31',1378,563,4.8,'-4627','53547',62,107);
INSERT INTO "communes" VALUES('35','Dourdain','19',1046,706,13.8,'-4118','53548',52,112);
INSERT INTO "communes" VALUES('35','Saint-Ouen-la-Rouërie','01',792,754,21.12,'-4197','53848',12,114);
INSERT INTO "communes" VALUES('35','Saulnières','40',700,583,10.34,'-4360','53240',56,117);
INSERT INTO "communes" VALUES('35','Renac','28',944,858,25.89,'-4792','53022',2,94);
INSERT INTO "communes" VALUES('35','Saint-Symphorien','17',560,0,7.91,'-4620','53658',51,122);
INSERT INTO "communes" VALUES('35','Retiers','33',3775,3226,41.38,'-4131','53237',41,120);
INSERT INTO "communes" VALUES('35','<NAME>','01',541,512,12.36,'-4266','53853',7,117);
INSERT INTO "communes" VALUES('35','Mecé','43',570,468,15.63,'-4043','53597',85,132);
INSERT INTO "communes" VALUES('35','Lourmais','09',322,251,7.22,'-4515','53833',60,111);
INSERT INTO "communes" VALUES('35','Combourtillé','13',578,400,9.25,'-3980','53636',72,130);
INSERT INTO "communes" VALUES('35','Javené','13',1914,1517,18.45,'-3947','53688',60,109);
INSERT INTO "communes" VALUES('35','Dompierre-du-Chemin','13',548,473,9.68,'-3867','53630',93,182);
INSERT INTO "communes" VALUES('35','Betton','52',10111,8555,26.73,'-4423','53536',27,90);
INSERT INTO "communes" VALUES('35','Saint-Germain-en-Coglès','36',2053,1777,32.09,'-4000','53784',105,194);
INSERT INTO "communes" VALUES('35','Esse','33',1122,858,23.19,'-4179','53286',32,92);
INSERT INTO "communes" VALUES('35','Dingé','17',1580,1328,52.89,'-4503','53731',54,108);
INSERT INTO "communes" VALUES('35','Bourg-des-Comptes','16',2848,2008,23.41,'-4532','53255',7,99);
INSERT INTO "communes" VALUES('35','Boisgervilly','22',1513,1214,19.95,'-4889','53519',58,111);
INSERT INTO "communes" VALUES('35','<NAME>-Bouëxic','21',1299,808,20.66,'-4753','53255',32,112);
INSERT INTO "communes" VALUES('35','Sains','26',482,503,10.25,'-4356','53946',19,96);
INSERT INTO "communes" VALUES('35','Tremblay','01',1508,1424,36.22,'-4236','53802',10,116);
INSERT INTO "communes" VALUES('35','Cardroc','04',525,398,7.39,'-4696','53650',65,152);
INSERT INTO "communes" VALUES('35','La Gouesnière','39',1646,1068,8.74,'-4701','54006',2,47);
INSERT INTO "communes" VALUES('35','Iffendic','23',4291,3048,73.66,'-4856','53478',32,134);
INSERT INTO "communes" VALUES('35','Trémeheuc','09',366,313,6.05,'-4489','53806',69,127);
INSERT INTO "communes" VALUES('35','Saint-Maugan','38',587,349,8.43,'-4911','53483',42,98);
INSERT INTO "communes" VALUES('35','Fougères','97',19779,21798,10.46,'-3929','53724',62,171);
INSERT INTO "communes" VALUES('35','Goven','16',4132,2967,39.73,'-4649','53340',15,116);
INSERT INTO "communes" VALUES('35','Vieux-Vy-sur-Couesnon','34',1104,861,21.56,'-4251','53713',22,107);
INSERT INTO "communes" VALUES('35','Saint-Sulpice-des-Landes','14',806,562,11.19,'-4399','53074',28,99);
INSERT INTO "communes" VALUES('35','Mézières-sur-Couesnon','35',1378,825,24.74,'-4188','53662',35,121);
INSERT INTO "communes" VALUES('35','Cintré','24',2054,1467,8.32,'-4676','53451',25,63);
INSERT INTO "communes" VALUES('35','Montautour','42',249,240,6.9,'-3870','53560',105,194);
INSERT INTO "communes" VALUES('35','Vergéal','02',738,589,11.21,'-4003','53373',62,108);
INSERT INTO "communes" VALUES('35','Champeaux','43',473,421,9.83,'-4053','53497',49,116);
INSERT INTO "communes" VALUES('35','Cornille','43',860,663,12.47,'-4048','53422',45,107);
INSERT INTO "communes" VALUES('35','Étrelles','02',2559,2128,27.17,'-3922','53400',52,108);
INSERT INTO "communes" VALUES('35','Chavagne','24',3725,3091,12.44,'-4579','53394',16,38);
INSERT INTO "communes" VALUES('35','Louvigné-de-Bais','06',1709,1411,15.37,'-4074','53387',33,106);
INSERT INTO "communes" VALUES('35','Taillis','43',1002,770,12.27,'-3972','53543',72,136);
INSERT INTO "communes" VALUES('35','Bruc-sur-Aff','25',845,777,21.23,'-4839','53128',12,84);
INSERT INTO "communes" VALUES('35','Torcé','02',1147,916,14.03,'-4002','53402',69,104);
INSERT INTO "communes" VALUES('35','Paimpont','27',1631,1399,110.28,'-5008','53353',62,258);
INSERT INTO "communes" VALUES('35','Thourie','33',707,526,24.04,'-4241','53171',34,97);
INSERT INTO "communes" VALUES('35','Noyal-Châtillon-sur-Seiche','47',6250,5635,26.51,'-4438','53382',17,54);
INSERT INTO "communes" VALUES('35','Saint-Médard-sur-Ille','34',1319,1154,18.22,'-4440','53636',44,115);
INSERT INTO "communes" VALUES('35','<NAME>','08',1053,841,11.35,'-4637','53874',13,79);
INSERT INTO "communes" VALUES('35','Pleine-Fougères','26',1963,1740,31.98,'-4334','53926',5,93);
INSERT INTO "communes" VALUES('35','Mont-Dol','11',1248,1099,26.44,'-4558','53966',1,62);
INSERT INTO "communes" VALUES('35','Lalleu','40',581,468,15.47,'-4274','53173',31,104);
INSERT INTO "communes" VALUES('35','Trimer','41',177,102,3.56,'-4700','53712',29,87);
INSERT INTO "communes" VALUES('35','La Bosse-de-Bretagne','40',607,388,10.21,'-4372','53188',22,106);
INSERT INTO "communes" VALUES('35','<NAME>','20',682,592,16.92,'-4034','53881',90,172);
INSERT INTO "communes" VALUES('35','Forges-la-Forêt','33',280,242,6.04,'-4020','53177',70,111);
INSERT INTO "communes" VALUES('35','Landéan','12',1256,1170,27.31,'-3877','53792',107,208);
INSERT INTO "communes" VALUES('35','Poilley','20',397,382,10.78,'-3999','53851',115,184);
INSERT INTO "communes" VALUES('35','Saint-Gonlay','23',349,273,9.26,'-4891','53459',38,95);
INSERT INTO "communes" VALUES('35','Bléruais','38',98,60,3.33,'-4957','53457',45,97);
INSERT INTO "communes" VALUES('35','Montreuil-sur-Ille','34',2114,1554,15.15,'-4450','53675',50,96);
INSERT INTO "communes" VALUES('35','Epiniac','11',1364,1089,23.77,'-4480','53900',11,107);
INSERT INTO "communes" VALUES('35','Erbrée','42',1664,1498,35.52,'-3845','53443',70,163);
INSERT INTO "communes" VALUES('35','<NAME>','26',1169,975,21.93,'-4441','53903',18,108);
INSERT INTO "communes" VALUES('35','Livré-sur-Changeon','19',1646,1135,26.37,'-4089','53577',59,126);
INSERT INTO "communes" VALUES('35','Saint-Aubin-du-Pavail','07',729,589,5.83,'-4220','53382',50,76);
INSERT INTO "communes" VALUES('35','Saint-Georges-de-Chesné','35',602,385,11.62,'-4031','53637',58,122);
INSERT INTO "communes" VALUES('35','Saint-Broladre','26',1140,1013,23.81,'-4437','53985',1,102);
INSERT INTO "communes" VALUES('35','Saint-Ouen-des-Alleux','35',1312,924,15.2,'-4180','53698',32,106);
INSERT INTO "communes" VALUES('35','Bréal-sous-Montfort','27',5055,3828,33.82,'-4670','53387',19,82);
INSERT INTO "communes" VALUES('35','Piré-sur-Seiche','18',2283,1876,36.34,'-4185','53344',31,86);
INSERT INTO "communes" VALUES('35','Mernel','21',986,755,17.37,'-4782','53220',23,103);
INSERT INTO "communes" VALUES('35','Saint-Erblon','47',2482,2230,10.93,'-4431','53354',20,49);
INSERT INTO "communes" VALUES('35','<NAME>','14',1253,908,32.45,'-4472','53070',22,105);
INSERT INTO "communes" VALUES('35','Bréal-sous-Vitré','42',645,530,5.75,'-3775','53448',110,181);
INSERT INTO "communes" VALUES('35','Saint-Gondran','17',520,465,4.4,'-4636','53630',80,121);
INSERT INTO "communes" VALUES('35','Val-d''Izé','43',2493,2083,43.79,'-4046','53530',67,129);
INSERT INTO "communes" VALUES('35','Domloup','07',2989,2436,18.91,'-4288','53402',33,87);
INSERT INTO "communes" VALUES('35','Bédée','23',3997,3299,38.95,'-4756','53533',32,119);
INSERT INTO "communes" VALUES('35','Saint-Père','08',2300,1754,19.74,'-4734','53987',1,56);
INSERT INTO "communes" VALUES('35','La Chapelle-aux-Filtzméens','41',764,381,6.36,'-4624','53760',21,85);
INSERT INTO "communes" VALUES('35','Billé','13',1030,833,16.96,'-3981','53653',57,117);
INSERT INTO "communes" VALUES('35','Bazouges-la-Pérouse','01',1877,1857,58.18,'-4345','53807',10,116);
INSERT INTO "communes" VALUES('35','Pancé','03',1132,966,19.33,'-4438','53202',17,105);
INSERT INTO "communes" VALUES('35','Gennes-sur-Seiche','02',814,738,18.5,'-3845','53321',58,104);
INSERT INTO "communes" VALUES('35','La Mézière','17',4320,3132,16.23,'-4547','53576',39,114);
INSERT INTO "communes" VALUES('35','Saint-Méloir-des-Ondes','05',3732,3010,29.49,'-4710','54042',2,58);
INSERT INTO "communes" VALUES('35','Vitré','99',16834,15324,37.03,'-3940','53471',56,127);
INSERT INTO "communes" VALUES('35','Chanteloup','40',1623,1110,17.53,'-4391','53295',38,109);
INSERT INTO "communes" VALUES('35','La Chapelle-du-Lou','22',723,374,7.28,'-4809','53570',74,114);
INSERT INTO "communes" VALUES('35','Vendel','35',437,339,6.37,'-4053','53666',50,105);
INSERT INTO "communes" VALUES('35','Romillé','04',3632,2688,28.67,'-4698','53573',60,142);
INSERT INTO "communes" VALUES('35','Clayes','23',678,457,4.28,'-4654','53530',65,109);
INSERT INTO "communes" VALUES('35','Saint-Brice-en-Coglès','36',2752,2399,16.46,'-4115','53790',80,124);
INSERT INTO "communes" VALUES('35','Pleurtuit','10',5962,4543,29.67,'-4883','53978',0,92);
INSERT INTO "communes" VALUES('35','Pacé','31',9961,7890,34.94,'-4567','53498',27,91);
INSERT INTO "communes" VALUES('35','La Nouaye','23',294,235,2.77,'-4795','53514',38,76);
INSERT INTO "communes" VALUES('35','Le Minihic-sur-Rance','10',1427,1266,3.91,'-4832','53974',0,61);
INSERT INTO "communes" VALUES('35','Bonnemain','09',1377,1140,23.77,'-4558','53852',43,108);
INSERT INTO "communes" VALUES('35','Saint-Onen-la-Chapelle','38',1097,784,24.66,'-5010','53530',57,114);
INSERT INTO "communes" VALUES('35','Trans-la-Forêt','26',550,585,14.83,'-4361','53885',33,117);
INSERT INTO "communes" VALUES('35','<NAME>','24',7669,5735,18.89,'-4591','53447',18,48);
INSERT INTO "communes" VALUES('35','Servon-sur-Vilaine','07',3542,2919,15.26,'-4219','53468',34,91);
INSERT INTO "communes" VALUES('35','Saint-Georges-de-Reintembault','20',1638,1681,31.02,'-3977','53898',94,180);
INSERT INTO "communes" VALUES('35','Lillemer','08',282,200,3.74,'-4663','53961',1,13);
INSERT INTO "communes" VALUES('35','Monterfil','27',1273,976,16.94,'-4795','53407',32,132);
INSERT INTO "communes" VALUES('35','Drouges','15',520,418,11.63,'-4001','53224',57,109);
INSERT INTO "communes" VALUES('35','Maxent','27',1305,1038,39.72,'-4855','53314',51,137);
INSERT INTO "communes" VALUES('35','Saint-Péran','27',351,197,9.37,'-4881','53394',84,160);
INSERT INTO "communes" VALUES('35','Saint-Germain-du-Pinel','02',877,648,11.3,'-3892','53347',69,107);
INSERT INTO "communes" VALUES('35','Antrain','01',1393,1388,9.31,'-4246','53845',6,84);
INSERT INTO "communes" VALUES('35','Pont-Péan','47',3697,3203,8.76,'-4490','53348',17,44);
INSERT INTO "communes" VALUES('35','<NAME>','03',976,838,23.18,'-4531','53114',18,95);
INSERT INTO "communes" VALUES('35','Boistrudan','18',670,494,12.8,'-4153','53299',32,85);
INSERT INTO "communes" VALUES('35','Saint-Malo-de-Phily','25',907,657,18.77,'-4583','53197',5,114);
INSERT INTO "communes" VALUES('35','Saint-Pierre-de-Plesguen','09',2650,2000,29.49,'-4722','53830',34,99);
INSERT INTO "communes" VALUES('35','Luitré','12',1301,1200,29.15,'-3839','53648',78,201);
INSERT INTO "communes" VALUES('35','Pleumeleuc','23',2941,2126,19.51,'-4728','53538',43,112);
INSERT INTO "communes" VALUES('35','Baillé','36',312,314,5.23,'-4131','53733',60,111);
INSERT INTO "communes" VALUES('35','Saint-Aubin-des-Landes','43',912,871,10.28,'-4035','53438',45,105);
INSERT INTO "communes" VALUES('35','Saint-Thual','41',749,415,11.4,'-4745','53708',33,126);
INSERT INTO "communes" VALUES('35','<NAME>','36',597,447,8.23,'-4090','53819',93,138);
INSERT INTO "communes" VALUES('35','Sainte-Anne-sur-Vilaine','14',1014,777,28.57,'-4624','53034',2,85);
INSERT INTO "communes" VALUES('35','<NAME>','10',2393,2119,3.14,'-4857','54007',0,55);
INSERT INTO "communes" VALUES('35','Montreuil-le-Gast','34',1912,1602,9.14,'-4515','53608',65,122);
INSERT INTO "communes" VALUES('35','<NAME>','12',553,429,7.32,'-3849','53678',70,122);
INSERT INTO "communes" VALUES('35','Marcillé-Robert','33',941,821,20.3,'-4108','53278',37,87);
INSERT INTO "communes" VALUES('35','Roz-Landrieux','11',1265,1059,18.1,'-4614','53937',0,50);
INSERT INTO "communes" VALUES('35','Vignoc','17',1798,1096,14.09,'-4576','53610',63,121);
INSERT INTO "communes" VALUES('35','Vezin-le-Coquet','49',4382,4029,7.86,'-4547','53465',21,67);
INSERT INTO "communes" VALUES('35','Baguer-Morvan','11',1564,1342,23.11,'-4567','53917',15,87);
INSERT INTO "communes" VALUES('35','Arbrissel','33',279,237,4.62,'-4045','53252',52,82);
INSERT INTO "communes" VALUES('35','L''Hermitage','24',3835,3091,6.83,'-4614','53473',27,56);
INSERT INTO "communes" VALUES('35','Saint-Sauveur-des-Landes','13',1442,1001,18.84,'-4056','53714',85,132);
INSERT INTO "communes" VALUES('35','Mellé','20',671,685,15.5,'-3917','53876',129,196);
INSERT INTO "communes" VALUES('35','La Bazouge-du-Désert','20',1093,1012,24.6,'-3824','53826',113,193);
INSERT INTO "communes" VALUES('35','<NAME>','23',1514,1099,6.87,'-4744','53411',29,92);
INSERT INTO "communes" VALUES('35','La Couyère','40',501,350,11.72,'-4268','53208',44,109);
INSERT INTO "communes" VALUES('35','Chasné-sur-Illet','19',1466,1141,9.47,'-4331','53602',39,81);
INSERT INTO "communes" VALUES('35','Monthault','20',251,249,8.2,'-3909','53902',114,197);
INSERT INTO "communes" VALUES('35','Saint-Jacques-de-la-Lande','49',10497,7583,11.83,'-4480','53434',18,47);
INSERT INTO "communes" VALUES('35','Lanrigan','17',138,108,3.98,'-4484','53774',50,85);
INSERT INTO "communes" VALUES('35','Louvigné-du-Désert','20',3758,4025,41.66,'-3845','53868',97,198);
INSERT INTO "communes" VALUES('35','Saint-Guinoux','08',907,733,6.37,'-4689','53973',2,48);
INSERT INTO "communes" VALUES('35','Saint-Marcan','26',467,380,7.68,'-4411','53987',4,96);
INSERT INTO "communes" VALUES('35','Brécé','07',1929,1560,7.16,'-4243','53454',32,73);
INSERT INTO "communes" VALUES('35','Le Theil-de-Bretagne','33',1556,1129,24.2,'-4185','53244',42,106);
INSERT INTO "communes" VALUES('35','Saint-Séglin','21',478,434,9.4,'-4823','53171',12,74);
INSERT INTO "communes" VALUES('35','Cuguen','09',784,709,23.54,'-4444','53833',35,113);
INSERT INTO "communes" VALUES('35','Noyal-sur-Vilaine','07',5441,4696,30.36,'-4290','53458',32,91);
INSERT INTO "communes" VALUES('35','Saint-Malon-sur-Mel','38',589,447,16.07,'-4928','53437',46,116);
INSERT INTO "communes" VALUES('35','Langan','04',894,771,7.8,'-4655','53605',69,124);
INSERT INTO "communes" VALUES('35','Lassy','16',1380,1026,9.76,'-4674','53310',37,112);
INSERT INTO "communes" VALUES('35','<NAME>','19',3834,3503,49.68,'-4194','53538',42,125);
INSERT INTO "communes" VALUES('35','Saint-Thurial','27',1886,1485,18.01,'-4742','53366',32,128);
INSERT INTO "communes" VALUES('35','Mouazé','34',1053,916,8.39,'-4384','53591',32,77);
INSERT INTO "communes" VALUES('35','Breteil','23',3377,2974,14.7,'-4705','53495',26,71);
INSERT INTO "communes" VALUES('35','Vieux-Viel','26',288,275,8.77,'-4312','53901',14,108);
INSERT INTO "communes" VALUES('35','Saint-Benoît-des-Ondes','05',1077,805,2.92,'-4653','54022',2,10);
INSERT INTO "communes" VALUES('35','Guichen','16',7500,6523,42.99,'-4591','53297',7,107);
INSERT INTO "communes" VALUES('35','Feins','34',809,710,20.35,'-4418','53699',56,104);
INSERT INTO "communes" VALUES('35','Meillac','09',1730,1354,32.21,'-4611','53792',22,92);
INSERT INTO "communes" VALUES('35','Crevin','03',2594,1722,8.31,'-4442','53264',50,111);
INSERT INTO "communes" VALUES('35','Saint-Georges-de-Gréhaigne','26',342,380,12.15,'-4317','53965',5,81);
INSERT INTO "communes" VALUES('35','Longaulnay','41',614,341,7.52,'-4751','53678',65,191);
INSERT INTO "communes" VALUES('35','Aubigné','34',428,240,2.2,'-4413','53661',52,87);
INSERT INTO "communes" VALUES('35','Saint-Pern','04',973,775,12.13,'-4803','53653',56,181);
INSERT INTO "communes" VALUES('35','Le Sel-de-Bretagne','40',915,514,8.1,'-4385','53218',37,107);
INSERT INTO "communes" VALUES('35','La Chapelle-Saint-Aubert','35',421,361,9.77,'-4049','53682',51,128);
INSERT INTO "communes" VALUES('35','Campel','21',513,403,11.1,'-4829','53263',47,119);
INSERT INTO "communes" VALUES('35','Saint-Marc-sur-Couesnon','35',517,409,12.05,'-4113','53671',42,117);
INSERT INTO "communes" VALUES('35','Chantepie','46',9823,6795,11.98,'-4392','53432',32,77);
INSERT INTO "communes" VALUES('35','<NAME>','05',2199,1949,14.43,'-4644','53995',1,8);
INSERT INTO "communes" VALUES('35','Maure-de-Bretagne','21',3203,2472,66.76,'-4809','53212',17,117);
INSERT INTO "communes" VALUES('35','Lieuron','25',737,563,16.72,'-4756','53168',18,69);
INSERT INTO "communes" VALUES('35','Cesson-Sévigné','53',15219,14336,32.14,'-4378','53468',27,82);
INSERT INTO "communes" VALUES('35','Gahard','34',1268,917,24.96,'-4284','53664',45,112);
INSERT INTO "communes" VALUES('35','Saint-Uniac','22',509,349,6.89,'-4850','53526',45,96);
INSERT INTO "communes" VALUES('35','Plerguer','08',2284,1772,20.19,'-4649','53919',2,78);
INSERT INTO "communes" VALUES('35','Saint-Didier','06',1792,1277,14.14,'-4120','53439',40,97);
INSERT INTO "communes" VALUES('35','Bains-sur-Oust','28',3406,3021,44.63,'-4898','53004',0,89);
INSERT INTO "communes" VALUES('35','Chartres-de-Bretagne','47',7260,6467,9.95,'-4489','53377',16,50);
INSERT INTO "communes" VALUES('35','Messac','03',2778,2247,41.64,'-4605','53139',3,89);
INSERT INTO "communes" VALUES('35','La Guerche-de-Bretagne','15',4255,4093,11.53,'-3962','53268',51,91);
INSERT INTO "communes" VALUES('35','Saint-Christophe-de-Valains','35',218,138,3.27,'-4204','53714',35,104);
INSERT INTO "communes" VALUES('35','<NAME>','12',614,524,11.56,'-3778','53772',148,244);
INSERT INTO "communes" VALUES('35','Lanhélin','09',957,619,6.43,'-4627','53843',44,88);
INSERT INTO "communes" VALUES('35','Princé','42',375,333,12.36,'-3805','53574',113,188);
INSERT INTO "communes" VALUES('35','Nouvoitou','07',2895,2560,18.93,'-4314','53378',22,75);
INSERT INTO "communes" VALUES('35','Martigné-Ferchaud','33',2663,2633,74.1,'-4061','53142',42,121);
INSERT INTO "communes" VALUES('35','Saint-Aubin-du-Cormier','35',3578,2754,27.41,'-4150','53622',54,123);
INSERT INTO "communes" VALUES('35','La Chapelle-de-Brain','28',952,835,17.65,'-4745','53000',1,70);
INSERT INTO "communes" VALUES('35','Langouet','17',546,537,6.99,'-4622','53611',71,121);
INSERT INTO "communes" VALUES('35','Médréac','22',1876,1497,35.02,'-4893','53630',45,137);
INSERT INTO "communes" VALUES('35','Saint-Christophe-des-Bois','43',528,475,9.26,'-3982','53585',99,136);
INSERT INTO "communes" VALUES('35','Saint-Jean-sur-Couesnon','35',1072,863,18.32,'-4115','53656',47,122);
INSERT INTO "communes" VALUES('35','Châtillon-en-Vendelais','42',1694,1548,32.03,'-3906','53583',87,194);
INSERT INTO "communes" VALUES('35','Saint-M''Hervon','22',433,317,2.46,'-4883','53587',71,112);
INSERT INTO "communes" VALUES('35','Pleugueneuc','41',1659,1289,24.52,'-4711','53774',17,89);
INSERT INTO "communes" VALUES('35','Saint-Armel','07',1830,1395,7.75,'-4363','53346',22,79);
INSERT INTO "communes" VALUES('35','Sainte-Marie','28',2275,1760,25.28,'-4819','52993',0,68);
INSERT INTO "communes" VALUES('35','Saint-Aubin-d''Aubigné','34',3310,2441,23.52,'-4380','53625',42,111);
INSERT INTO "communes" VALUES('35','Châteaugiron','07',6545,5498,8.7,'-4266','53387',28,76);
INSERT INTO "communes" VALUES('35','Moussé','15',326,200,3.37,'-4007','53248',52,87);
INSERT INTO "communes" VALUES('35','Tinténiac','41',3373,2440,23.4,'-4635','53699',31,90);
INSERT INTO "communes" VALUES('35','<NAME>','41',623,476,9.63,'-4705','53682',48,117);
INSERT INTO "communes" VALUES('35','Sens-de-Bretagne','34',2547,1515,30.82,'-4303','53704',16,107);
INSERT INTO "communes" VALUES('35','Romazy','34',276,237,7.18,'-4259','53751',14,85);
INSERT INTO "communes" VALUES('35','Brie','18',812,699,13.56,'-4304','53280',45,113);
INSERT INTO "communes" VALUES('35','Trévérien','41',840,524,12.08,'-4738','53746',13,68);
INSERT INTO "communes" VALUES('35','Montreuil-des-Landes','43',236,184,9.42,'-3955','53608',85,133);
INSERT INTO "communes" VALUES('35','Bécherel','04',758,660,0.57,'-4757','53661',113,177);
INSERT INTO "communes" VALUES('35','Marpiré','43',1064,769,10.62,'-4085','53492',69,119);
INSERT INTO "communes" VALUES('35','Saint-Senoux','16',1695,1076,18.29,'-4582','53229',7,111);
INSERT INTO "communes" VALUES('35','<NAME>','15',150,128,2.14,'-3899','53271',65,95);
INSERT INTO "communes" VALUES('35','Parigné','12',1317,1134,20.72,'-3920','53809',109,182);
INSERT INTO "communes" VALUES('35','Balazé','42',2165,1917,36.66,'-3920','53521',70,169);
INSERT INTO "communes" VALUES('35','La Chapelle-Thouarault','23',1926,1915,7.64,'-4669','53472',28,64);
INSERT INTO "communes" VALUES('35','Saint-Briac-sur-Mer','10',1968,2052,8.06,'-4967','54023',0,62);
INSERT INTO "communes" VALUES('35','Melesse','34',5577,5163,32.39,'-4481','53575',38,111);
INSERT INTO "communes" VALUES('35','Noyal-sous-Bazouges','01',372,379,14.83,'-4401','53793',25,109);
INSERT INTO "communes" VALUES('35','Loutehel','21',215,191,7.21,'-4907','53262',31,99);
INSERT INTO "communes" VALUES('35','Gosné','35',1728,1380,18.14,'-4224','53607',53,114);
INSERT INTO "communes" VALUES('35','Guignen','16',3511,2426,53.05,'-4665','53245',21,122);
INSERT INTO "communes" VALUES('35','Grand-Fougeray','14',2352,1970,55.42,'-4522','53026',3,92);
INSERT INTO "communes" VALUES('35','Châteauneuf-d''Ille-et-Vilaine','08',1249,911,1.38,'-4740','53957',2,43);
INSERT INTO "communes" VALUES('35','Argentré-du-Plessis','02',4212,3614,41.46,'-3878','53397',67,163);
INSERT INTO "communes" VALUES('35','Dol-de-Bretagne','11',5335,4566,15.53,'-4541','53944',1,58);
INSERT INTO "communes" VALUES('35','Mondevert','42',771,576,5.02,'-3817','53427',107,142);
INSERT INTO "communes" VALUES('35','Baguer-Pican','11',1380,984,15.63,'-4484','53947',1,90);
INSERT INTO "communes" VALUES('35','<NAME>elle-des-Fougeretz','52',3944,3314,8.71,'-4521','53530',41,95);
INSERT INTO "communes" VALUES('35','Acigné','53',6166,5254,29.55,'-4303','53482',29,96);
INSERT INTO "communes" VALUES('35','<NAME>','36',177,165,3.7,'-4159','53721',50,98);
INSERT INTO "communes" VALUES('35','La Chapelle-Janson','12',1343,1177,26.96,'-3820','53719',79,249);
INSERT INTO "communes" VALUES('35','Bais','15',2114,1935,35.18,'-4030','53345',47,109);
INSERT INTO "communes" VALUES('35','Villamée','20',335,313,10.66,'-3953','53846',134,171);
INSERT INTO "communes" VALUES('35','Saint-Rémy-du-Plain','01',789,580,14.87,'-4342','53745',23,105);
INSERT INTO "communes" VALUES('35','Chancé','07',304,246,5.22,'-4129','53373',50,89);
INSERT INTO "communes" VALUES('35','Brielles','02',670,513,11.4,'-3808','53343',67,109);
INSERT INTO "communes" VALUES('35','Sainte-Colombe','33',307,270,7.58,'-4214','53209',47,106);
INSERT INTO "communes" VALUES('35','Bourgbarré','47',3458,2326,14.2,'-4390','53327',27,104);
INSERT INTO "communes" VALUES('35','Broualan','26',351,290,12.76,'-4429','53860',60,116);
INSERT INTO "communes" VALUES('35','Saint-M''Hervé','42',1370,1213,29.68,'-3836','53532',72,171);
INSERT INTO "communes" VALUES('35','Mordelles','24',7180,5902,29.76,'-4647','53416',19,51);
INSERT INTO "communes" VALUES('35','Irodouër','04',2015,1393,23.54,'-4763','53611',78,144);
INSERT INTO "communes" VALUES('35','Treffendel','27',1246,767,18.98,'-4824','53378',56,143);
INSERT INTO "communes" VALUES('35','Saint-Méen-le-Grand','38',4426,3564,18.28,'-5030','53544',79,123);
INSERT INTO "communes" VALUES('35','Châteaubourg','06',6081,4874,28.6,'-4155','53457',35,117);
INSERT INTO "communes" VALUES('35','Saint-Marc-le-Blanc','36',1288,1086,17.53,'-4162','53738',62,121);
INSERT INTO "communes" VALUES('35','Saint-Domineuc','41',2242,1440,15.7,'-4681','53749',17,90);
INSERT INTO "communes" VALUES('35','Saint-Brieuc-des-Iffs','04',363,293,8.29,'-4653','53657',34,133);
INSERT INTO "communes" VALUES('35','Poligné','03',1136,760,9.24,'-4470','53209',12,93);
INSERT INTO "communes" VALUES('35','Eancé','15',400,338,16.5,'-3977','53135',61,112);
INSERT INTO "communes" VALUES('36','Saint-Médard','08',45,73,12.6,'-1211','52222',108,174);
INSERT INTO "communes" VALUES('36','Saint-Pierre-de-Lamps','14',43,44,10.28,'-916','52190',138,185);
INSERT INTO "communes" VALUES('36','Bazaiges','11',230,230,18.37,'-892','51665',175,280);
INSERT INTO "communes" VALUES('36','Bretagne','14',143,81,18.36,'-729','52226',132,186);
INSERT INTO "communes" VALUES('36','Saint-Chartier','09',584,540,27.52,'-399','51833',181,271);
INSERT INTO "communes" VALUES('36','Francillon','14',71,72,10.27,'-860','52158',144,194);
INSERT INTO "communes" VALUES('36','Thenay','19',888,827,34.21,'-1009','51811',93,187);
INSERT INTO "communes" VALUES('36','Villentrois','22',614,645,32.38,'-971','52438',85,151);
INSERT INTO "communes" VALUES('36','Vicq-Exemplet','09',327,360,38.74,'-217','51810',185,263);
INSERT INTO "communes" VALUES('36','Neuvy-Saint-Sépulchre','16',1695,1654,35.11,'-586','51774',166,275);
INSERT INTO "communes" VALUES('36','Cuzion','11',446,504,18.45,'-811','51643',135,287);
INSERT INTO "communes" VALUES('36','Martizay','21',1045,1050,39,'-1437','52008',75,136);
INSERT INTO "communes" VALUES('36','Buxières-d''Aillac','02',225,217,25.75,'-649','51821',155,222);
INSERT INTO "communes" VALUES('36','Fontguenand','22',238,230,18.24,'-888','52465',86,141);
INSERT INTO "communes" VALUES('36','Aigurande','01',1567,1667,27.77,'-564','51593',284,442);
INSERT INTO "communes" VALUES('36','Fontenay','23',84,86,12.33,'-656','52290',118,171);
INSERT INTO "communes" VALUES('36','<NAME>','17',567,566,27.4,'-1053','51565',173,302);
INSERT INTO "communes" VALUES('36','Jeu-les-Bois','02',394,343,38.32,'-602','51859',143,206);
INSERT INTO "communes" VALUES('36','Dun-le-Poëlier','18',471,457,22.56,'-648','52449',87,140);
INSERT INTO "communes" VALUES('36','<NAME>','22',778,693,17.08,'-882','52498',71,114);
INSERT INTO "communes" VALUES('36','Bagneux','18',195,174,25.3,'-648','52426',92,146);
INSERT INTO "communes" VALUES('36','Crozon-sur-Vauvre','01',379,388,27.69,'-518','51654',237,450);
INSERT INTO "communes" VALUES('36','Chasseneuil','03',666,620,29.85,'-934','51830',93,177);
INSERT INTO "communes" VALUES('36','Guilly','23',247,223,20.64,'-680','52313',106,169);
INSERT INTO "communes" VALUES('36','<NAME>','09',452,468,39.82,'-305','51846',184,269);
INSERT INTO "communes" VALUES('36','Bouesse','03',370,398,24.19,'-721','51796',144,242);
INSERT INTO "communes" VALUES('36','Lourouer-Saint-Laurent','09',254,224,11.21,'-360','51804',194,246);
INSERT INTO "communes" VALUES('36','Briantes','09',608,557,23.12,'-349','51731',207,308);
INSERT INTO "communes" VALUES('36','Buzançais','06',4494,4576,58.64,'-1016','52100',102,155);
INSERT INTO "communes" VALUES('36','<NAME>','08',175,162,22.26,'-1218','52174',86,184);
INSERT INTO "communes" VALUES('36','Fougerolles','16',332,287,17.17,'-522','51737',187,284);
INSERT INTO "communes" VALUES('36','Montipouret','16',569,507,27.89,'-485','51833',170,259);
INSERT INTO "communes" VALUES('36','Preuilly-la-Ville','21',168,130,4.23,'-1521','51885',67,117);
INSERT INTO "communes" VALUES('36','Vigoux','17',466,445,37.51,'-943','51678',168,269);
INSERT INTO "communes" VALUES('36','Vendœuvres','06',1125,1018,96.45,'-1087','52002',97,139);
INSERT INTO "communes" VALUES('36','Thizay','13',257,250,16.65,'-473','52109',130,169);
INSERT INTO "communes" VALUES('36','Diou','12',279,235,16.39,'-344','52274',112,176);
INSERT INTO "communes" VALUES('36','Varennes-sur-Fouzon','18',723,665,22.85,'-812','52459',77,132);
INSERT INTO "communes" VALUES('36','Veuil','22',383,364,18.84,'-901','52357',97,158);
INSERT INTO "communes" VALUES('36','<NAME>','09',36,42,5.68,'-274','51713',228,274);
INSERT INTO "communes" VALUES('36','Pommiers','11',273,268,12.19,'-756','51692',196,280);
INSERT INTO "communes" VALUES('36','Faverolles','22',352,379,41.41,'-1031','52413',91,154);
INSERT INTO "communes" VALUES('36','Douadic','05',458,440,43.14,'-1361','51895',87,150);
INSERT INTO "communes" VALUES('36','Pellevoisin','10',833,885,25.62,'-1025','52204',117,192);
INSERT INTO "communes" VALUES('36','Langé','22',297,293,20.63,'-914','52304',105,177);
INSERT INTO "communes" VALUES('36','Orsennes','01',793,790,49.28,'-726','51640',209,376);
INSERT INTO "communes" VALUES('36','Fléré-la-Rivière','08',608,594,25.31,'-1365','52244',79,142);
INSERT INTO "communes" VALUES('36','Villegouin','10',402,411,24.03,'-1071','52182',101,201);
INSERT INTO "communes" VALUES('36','Bouges-le-Château','14',283,255,34.77,'-737','52266',120,207);
INSERT INTO "communes" VALUES('36','Murs','08',125,137,23.05,'-1306','52127',106,150);
INSERT INTO "communes" VALUES('36','Villers-les-Ormes','25',423,338,17.6,'-782','52077',141,169);
INSERT INTO "communes" VALUES('36','Déols','24',7916,8066,31.74,'-701','52033',140,165);
INSERT INTO "communes" VALUES('36','Obterre','15',247,267,28.47,'-1444','52128',98,144);
INSERT INTO "communes" VALUES('36','Valençay','22',2594,2736,41.59,'-856','52401',91,154);
INSERT INTO "communes" VALUES('36','Cléré-du-Bois','08',282,267,36.13,'-1372','52137',95,147);
INSERT INTO "communes" VALUES('36','Ardentes','02',3774,3322,62.09,'-562','51936',150,208);
INSERT INTO "communes" VALUES('36','Brives','13',276,198,19.61,'-433','52049',135,168);
INSERT INTO "communes" VALUES('36','Mérigny','21',563,572,31.77,'-1567','51812',67,136);
INSERT INTO "communes" VALUES('36','Saulnay','15',183,179,22.2,'-1186','52076',97,146);
INSERT INTO "communes" VALUES('36','Tournon-Saint-Martin','21',1214,1251,25.82,'-1536','51927',64,140);
INSERT INTO "communes" VALUES('36','Chezelles','06',442,409,17.32,'-845','52100',132,171);
INSERT INTO "communes" VALUES('36','Cluis','16',1020,1063,35.32,'-653','51717',188,340);
INSERT INTO "communes" VALUES('36','Sainte-Gemme','15',262,272,32.5,'-1108','52058',94,138);
INSERT INTO "communes" VALUES('36','Bonneuil','17',100,83,11.41,'-1234','51527',160,234);
INSERT INTO "communes" VALUES('36','Paulnay','15',356,354,38.48,'-1321','52057',88,149);
INSERT INTO "communes" VALUES('36','Ceaulmont','11',719,652,17.38,'-871','51702',104,266);
INSERT INTO "communes" VALUES('36','Gargilesse-Dampierre','11',319,324,15.72,'-822','51682',124,275);
INSERT INTO "communes" VALUES('36','Saint-Benoît-du-Sault','17',652,766,1.8,'-1051','51601',175,246);
INSERT INTO "communes" VALUES('36','Tranzault','16',326,323,17.97,'-541','51812',166,238);
INSERT INTO "communes" VALUES('36','Vouillon','13',260,250,14.98,'-458','52024',142,171);
INSERT INTO "communes" VALUES('36','Reboursin','23',121,98,12.72,'-573','52341',108,160);
INSERT INTO "communes" VALUES('36','Vigoulant','20',129,109,9.71,'-294','51598',270,426);
INSERT INTO "communes" VALUES('36','Aize','23',128,126,17.07,'-705','52338',100,161);
INSERT INTO "communes" VALUES('36','Issoudun','99',13090,13680,36.6,'-381','52165',122,161);
INSERT INTO "communes" VALUES('36','Maillet','16',265,247,25.02,'-731','51748',170,254);
INSERT INTO "communes" VALUES('36','Saint-Denis-de-Jouhet','01',954,1007,43.48,'-520','51701',227,382);
INSERT INTO "communes" VALUES('36','Ségry','13',519,465,33.06,'-282','52101',130,176);
INSERT INTO "communes" VALUES('36','Néret','09',217,208,19.05,'-209','51743',219,282);
INSERT INTO "communes" VALUES('36','Villegongis','14',136,101,18.15,'-823','52126',141,196);
INSERT INTO "communes" VALUES('36','Saint-Civran','17',177,154,11.61,'-1052','51663',133,241);
INSERT INTO "communes" VALUES('36','Saint-Aubin','13',198,169,28.32,'-347','52057',142,181);
INSERT INTO "communes" VALUES('36','Roussines','17',354,392,22.98,'-1052','51632',135,246);
INSERT INTO "communes" VALUES('36','Villiers','15',192,189,24.53,'-1280','52097',99,152);
INSERT INTO "communes" VALUES('36','Diors','02',712,675,25.44,'-580','52029',149,167);
INSERT INTO "communes" VALUES('36','Fontgombault','21',267,283,10.58,'-1502','51860',67,136);
INSERT INTO "communes" VALUES('36','Sougé','06',153,161,13.02,'-943','52181',120,170);
INSERT INTO "communes" VALUES('36','Sacierges-Saint-Martin','17',312,337,31.17,'-1079','51661',125,224);
INSERT INTO "communes" VALUES('36','Saint-Aigny','05',296,256,14.86,'-1457','51829',72,141);
INSERT INTO "communes" VALUES('36','Lignerolles','20',118,138,13,'-214','51662',291,410);
INSERT INTO "communes" VALUES('36','Rivarennes','19',604,545,37.41,'-1057','51817',88,171);
INSERT INTO "communes" VALUES('36','Châteauroux','98',46140,49598,25.54,'-718','52011',132,164);
INSERT INTO "communes" VALUES('36','Nuret-le-Ferron','19',327,315,47.29,'-1004','51871',108,176);
INSERT INTO "communes" VALUES('36','Vineuil','14',1184,1138,44.41,'-779','52112',142,186);
INSERT INTO "communes" VALUES('36','Bommiers','13',293,260,28.38,'-390','51994',143,204);
INSERT INTO "communes" VALUES('36','Neuillay-les-Bois','06',685,560,47.63,'-957','51962',117,154);
INSERT INTO "communes" VALUES('36','Chaillac','17',1118,1170,59.79,'-1153','51594',122,253);
INSERT INTO "communes" VALUES('36','Urciers','20',257,260,19.02,'-229','51706',247,363);
INSERT INTO "communes" VALUES('36','Saint-Gilles','17',114,133,7.68,'-991','51661',162,259);
INSERT INTO "communes" VALUES('36','Reuilly','12',2078,1962,25.8,'-325','52316',107,167);
INSERT INTO "communes" VALUES('36','Sauzelles','21',234,231,12.86,'-1482','51849',72,134);
INSERT INTO "communes" VALUES('36','Neuvy-Pailloux','13',1309,1158,41.81,'-529','52096',140,174);
INSERT INTO "communes" VALUES('36','Sazeray','20',331,319,22.69,'-314','51588',260,432);
INSERT INTO "communes" VALUES('36','Chassignolles','09',589,543,29.94,'-441','51712',204,376);
INSERT INTO "communes" VALUES('36','Chabris','18',2790,2656,41.22,'-759','52506',72,134);
INSERT INTO "communes" VALUES('36','Saint-Genou','06',1016,1038,24.41,'-1109','52144',97,167);
INSERT INTO "communes" VALUES('36','<NAME>','03',1968,1885,20.94,'-877','51753',103,256);
INSERT INTO "communes" VALUES('36','Condé','13',229,231,23.82,'-390','52088',130,168);
INSERT INTO "communes" VALUES('36','<NAME>','09',1034,858,17.84,'-419','51741',207,294);
INSERT INTO "communes" VALUES('36','Mézières-en-Brenne','15',1076,1159,57.57,'-1251','52023',84,138);
INSERT INTO "communes" VALUES('36','Mosnay','03',477,439,25.28,'-785','51802',116,227);
INSERT INTO "communes" VALUES('36','Lye','22',823,803,24.77,'-959','52475',76,136);
INSERT INTO "communes" VALUES('36','Dunet','17',111,106,9.24,'-1161','51631',112,199);
INSERT INTO "communes" VALUES('36','Vatan','23',2063,1971,29.8,'-584','52304',118,201);
INSERT INTO "communes" VALUES('36','Anjouin','18',344,339,28.91,'-595','52433',94,151);
INSERT INTO "communes" VALUES('36','Méobecq','06',366,362,35.56,'-1027','51931',110,137);
INSERT INTO "communes" VALUES('36','Paudy','12',466,435,30.28,'-465','52265',139,187);
INSERT INTO "communes" VALUES('36','Néons-sur-Creuse','21',399,389,19.85,'-1564','51941',59,132);
INSERT INTO "communes" VALUES('36','Saint-Cyran-du-Jambot','08',205,181,14.21,'-1330','52240',79,143);
INSERT INTO "communes" VALUES('36','Saint-Aoustrille','12',177,159,19.47,'-461','52154',127,163);
INSERT INTO "communes" VALUES('36','Buxeuil','23',220,227,19.75,'-722','52370',97,161);
INSERT INTO "communes" VALUES('36','Sainte-Fauste','13',299,253,23.07,'-524','52064',142,168);
INSERT INTO "communes" VALUES('36','Arthon','02',1183,995,46.8,'-708','51882',132,184);
INSERT INTO "communes" VALUES('36','Saint-Pierre-de-Jards','23',117,137,18.01,'-411','52331',114,154);
INSERT INTO "communes" VALUES('36','Argy','06',617,614,38.89,'-998','52155',106,182);
INSERT INTO "communes" VALUES('36','Mouhers','16',249,250,17.89,'-621','51739',190,293);
INSERT INTO "communes" VALUES('36','Saint-Août','09',881,814,54.11,'-412','51924',162,261);
INSERT INTO "communes" VALUES('36','Jeu-Maloches','10',131,121,12.73,'-976','52264',127,189);
INSERT INTO "communes" VALUES('36','Saint-Martin-de-Lamps','14',170,146,15.61,'-902','52212',133,179);
INSERT INTO "communes" VALUES('36','Gehée','10',270,301,22.75,'-927','52274',112,178);
INSERT INTO "communes" VALUES('36','Meunet-Planches','13',194,140,26.73,'-422','52041',132,174);
INSERT INTO "communes" VALUES('36','<NAME>','03',461,420,5.58,'-852','51727',108,267);
INSERT INTO "communes" VALUES('36','<NAME>','01',109,128,10.99,'-594','51661',282,387);
INSERT INTO "communes" VALUES('36','Sembleçay','18',104,106,8.08,'-727','52469',81,123);
INSERT INTO "communes" VALUES('36','Villedieu-sur-Indre','06',2744,2339,57.77,'-885','52052',110,163);
INSERT INTO "communes" VALUES('36','Bordes','12',925,940,16.3,'-401','52201',123,164);
INSERT INTO "communes" VALUES('36','Bélâbre','04',1020,1028,40.14,'-1309','51724',95,156);
INSERT INTO "communes" VALUES('36','Lignac','04',558,572,67.03,'-1242','51629',104,197);
INSERT INTO "communes" VALUES('36','Montchevrier','01',496,537,34.7,'-660','51645',230,397);
INSERT INTO "communes" VALUES('36','Châtillon-sur-Indre','08',2828,3120,45.3,'-1292','52209',82,148);
INSERT INTO "communes" VALUES('36','Gournay','16',330,283,20.33,'-673','51759',171,252);
INSERT INTO "communes" VALUES('36','<NAME>','02',432,334,21.54,'-912','51893',131,177);
INSERT INTO "communes" VALUES('36','<NAME>','02',5829,5021,45,'-686','51960',145,186);
INSERT INTO "communes" VALUES('36','Pouligny-Saint-Pierre','05',1056,978,47.45,'-1442','51868',72,143);
INSERT INTO "communes" VALUES('36','Montgivray','09',1705,1681,25.48,'-393','51782',187,253);
INSERT INTO "communes" VALUES('36','Saint-Hilaire-sur-Benaize','04',358,303,32.61,'-1402','51736',82,146);
INSERT INTO "communes" VALUES('36','Éguzon-Chantôme','11',1337,1373,36.44,'-838','51602',142,319);
INSERT INTO "communes" VALUES('36','Saint-Marcel','03',1552,1644,17.84,'-914','51780',98,178);
INSERT INTO "communes" VALUES('36','Lizeray','12',101,100,35.41,'-479','52202',140,188);
INSERT INTO "communes" VALUES('36','Montlevicq','09',102,116,18.79,'-296','51752',207,263);
INSERT INTO "communes" VALUES('36','Parpeçay','18',248,244,14.55,'-760','52453',82,118);
INSERT INTO "communes" VALUES('36','Mouhet','17',512,479,32.26,'-1004','51537',237,344);
INSERT INTO "communes" VALUES('36','Azay-le-Ferron','15',912,991,60.95,'-1408','52057',77,143);
INSERT INTO "communes" VALUES('36','Brion','14',501,440,44.2,'-676','52174',158,222);
INSERT INTO "communes" VALUES('36','Mers-sur-Indre','16',622,584,25.45,'-506','51843',164,246);
INSERT INTO "communes" VALUES('36','Celon','03',403,381,17.04,'-930','51687',117,249);
INSERT INTO "communes" VALUES('36','Chalais','04',169,165,39.65,'-1266','51707',95,161);
INSERT INTO "communes" VALUES('36','Ménétréols-sous-Vatan','23',124,124,27.83,'-548','52240',164,221);
INSERT INTO "communes" VALUES('36','Beaulieu','17',80,95,7.48,'-1144','51541',187,237);
INSERT INTO "communes" VALUES('36','Frédille','10',66,74,6.31,'-951','52225',120,172);
INSERT INTO "communes" VALUES('36','Liniez','23',338,305,26.94,'-650','52249',139,216);
INSERT INTO "communes" VALUES('36','Sainte-Lizaigne','12',1240,1160,26.36,'-349','52230',115,171);
INSERT INTO "communes" VALUES('36','Vijon','20',308,323,21.26,'-242','51588',299,454);
INSERT INTO "communes" VALUES('36','Clion','08',1118,1155,33.53,'-1226','52157',86,153);
INSERT INTO "communes" VALUES('36','Coings','14',852,814,29.33,'-690','52096',145,171);
INSERT INTO "communes" VALUES('36','Montierchaume','24',1688,1758,37.2,'-623','52071',144,169);
INSERT INTO "communes" VALUES('36','<NAME>','03',966,881,9.03,'-951','51811',96,178);
INSERT INTO "communes" VALUES('36','Arpheuilles','08',242,254,22.49,'-1176','52111',93,143);
INSERT INTO "communes" VALUES('36','Giroux','23',126,117,23.48,'-472','52296',133,181);
INSERT INTO "communes" VALUES('36','Rosnay','05',578,526,59.03,'-1247','51890',87,133);
INSERT INTO "communes" VALUES('36','Poulaines','18',878,836,46.32,'-748','52391',87,156);
INSERT INTO "communes" VALUES('36','Saint-Gaultier','19',1883,1934,9.2,'-1018','51817',91,169);
INSERT INTO "communes" VALUES('36','Saint-Plantaire','01',549,550,34.07,'-740','51619',197,371);
INSERT INTO "communes" VALUES('36','Mauvières','04',338,310,23.94,'-1386','51749',84,147);
INSERT INTO "communes" VALUES('36','Rouvres-les-Bois','14',330,361,30.85,'-757','52302',113,196);
INSERT INTO "communes" VALUES('36','Argenton-sur-Creuse','03',5120,5146,29.34,'-908','51766',99,234);
INSERT INTO "communes" VALUES('36','Tendu','03',592,451,42.17,'-865','51827',107,174);
INSERT INTO "communes" VALUES('36','Malicornay','16',175,196,16.31,'-766','51751',190,281);
INSERT INTO "communes" VALUES('36','Ciron','05',528,533,57.94,'-1213','51808',78,154);
INSERT INTO "communes" VALUES('36','Pouligny-Saint-Martin','20',237,254,15.66,'-357','51685',225,342);
INSERT INTO "communes" VALUES('36','Écueillé','10',1313,1411,34.9,'-1100','52316',119,187);
INSERT INTO "communes" VALUES('36','Luzeret','19',147,160,26.78,'-1049','51713',128,192);
INSERT INTO "communes" VALUES('36','Thevet-Saint-Julien','09',460,455,30.94,'-297','51819',187,263);
INSERT INTO "communes" VALUES('36','Luçay-le-Mâle','22',1480,1707,68.08,'-995','52367',97,182);
INSERT INTO "communes" VALUES('36','<NAME>','09',4482,4548,6.06,'-388','51758',198,263);
INSERT INTO "communes" VALUES('36','Velles','02',919,827,63.09,'-764','51876',117,184);
INSERT INTO "communes" VALUES('36','Lacs','09',652,615,13.46,'-347','51762',203,263);
INSERT INTO "communes" VALUES('36','<NAME>','05',6968,6995,57.61,'-1415','51815',72,140);
INSERT INTO "communes" VALUES('36','Sassierges-Saint-Germain','02',469,407,31.72,'-492','51966',148,217);
INSERT INTO "communes" VALUES('36','Chazelet','17',118,146,11.73,'-994','51676',141,237);
INSERT INTO "communes" VALUES('36','Chavin','03',283,301,14.01,'-806','51735',154,276);
INSERT INTO "communes" VALUES('36','Baraize','11',319,301,16.39,'-861','51654',123,292);
INSERT INTO "communes" VALUES('36','Menetou-sur-Nahon','18',121,113,6.98,'-764','52465',79,116);
INSERT INTO "communes" VALUES('36','Migny','12',119,99,13.35,'-300','52250',112,153);
INSERT INTO "communes" VALUES('36','Lurais','21',231,237,13.61,'-1540','51894',67,134);
INSERT INTO "communes" VALUES('36','Ambrault','13',917,714,25.59,'-419','51983',143,206);
INSERT INTO "communes" VALUES('36','Meunet-sur-Vatan','23',197,176,12.47,'-523','52311',109,156);
INSERT INTO "communes" VALUES('36','Champillet','09',154,154,6.94,'-247','51720',224,289);
INSERT INTO "communes" VALUES('36','Étrechet','02',887,802,17.89,'-613','51976',145,167);
INSERT INTO "communes" VALUES('36','Migné','19',277,296,56.32,'-1133','51907',96,138);
INSERT INTO "communes" VALUES('36','Pouligny-Notre-Dame','20',615,605,33.75,'-370','51646',239,456);
INSERT INTO "communes" VALUES('36','Lys-Saint-Georges','16',246,213,12.98,'-570','51824',156,224);
INSERT INTO "communes" VALUES('36','Feusines','20',203,192,12.49,'-261','51692',253,361);
INSERT INTO "communes" VALUES('36','Vicq-sur-Nahon','22',768,778,49.08,'-895','52341',101,191);
INSERT INTO "communes" VALUES('36','Badecon-le-Pin','11',762,697,9.88,'-827','51712',111,259);
INSERT INTO "communes" VALUES('36','Préaux','10',162,184,32.54,'-1160','52246',124,194);
INSERT INTO "communes" VALUES('36','Ruffec','05',636,525,40.93,'-1295','51810',77,141);
INSERT INTO "communes" VALUES('36','Lureuil','21',268,287,22.04,'-1438','51938',90,151);
INSERT INTO "communes" VALUES('36','Palluau-sur-Indre','08',770,830,41.55,'-1139','52160',91,196);
INSERT INTO "communes" VALUES('36','Pérassay','20',387,443,24.19,'-210','51635',268,422);
INSERT INTO "communes" VALUES('36','Sainte-Sévère-sur-Indre','20',840,899,26.03,'-295','51652',222,342);
INSERT INTO "communes" VALUES('36','Prissac','04',670,738,62.83,'-1143','51678',105,199);
INSERT INTO "communes" VALUES('36','Sarzay','16',328,300,18.3,'-480','51780',183,256);
INSERT INTO "communes" VALUES('36','Saint-Christophe-en-Bazelle','18',381,373,13.94,'-694','52435',97,135);
INSERT INTO "communes" VALUES('36','La Chapelle-Saint-Laurian','23',134,141,9.82,'-615','52292',125,174);
INSERT INTO "communes" VALUES('36','Saint-Valentin','12',278,276,24.9,'-524','52169',140,207);
INSERT INTO "communes" VALUES('36','Saint-Christophe-en-Boucherie','09',247,246,26.89,'-239','51865',191,274);
INSERT INTO "communes" VALUES('36','Heugnes','10',388,436,42.17,'-1031','52236',133,201);
INSERT INTO "communes" VALUES('36','Chitray','19',165,143,19.94,'-1086','51817',87,152);
INSERT INTO "communes" VALUES('36','Orville','18',128,120,9.35,'-606','52392',97,152);
INSERT INTO "communes" VALUES('36','Luant','02',1394,1279,31.06,'-864','51926',129,181);
INSERT INTO "communes" VALUES('36','Moulins-sur-Céphons','14',326,320,32.17,'-867','52234',117,203);
INSERT INTO "communes" VALUES('36','Chouday','13',162,153,30,'-302','52123',136,164);
INSERT INTO "communes" VALUES('36','Lingé','21',252,238,32.66,'-1392','51950',77,147);
INSERT INTO "communes" VALUES('36','La Champenoise','12',315,250,44.34,'-594','52156',152,216);
INSERT INTO "communes" VALUES('36','Oulches','19',417,374,43.36,'-1155','51795',84,163);
INSERT INTO "communes" VALUES('36','Parnac','17',519,562,46.75,'-994','51615',182,317);
INSERT INTO "communes" VALUES('36','Lourdoueix-Saint-Michel','01',350,426,19.67,'-674','51585',245,382);
INSERT INTO "communes" VALUES('36','Crevant','01',739,713,36.54,'-433','51652',272,467);
INSERT INTO "communes" VALUES('36','Saint-Michel-en-Brenne','15',325,308,49.15,'-1309','52007',76,111);
INSERT INTO "communes" VALUES('36','Verneuil-sur-Igneraie','09',345,327,9.84,'-362','51839',182,259);
INSERT INTO "communes" VALUES('36','Pruniers','13',543,416,49,'-317','51988',151,200);
INSERT INTO "communes" VALUES('36','La Chapelle-Orthemale','06',126,95,16.8,'-982','52048',111,151);
INSERT INTO "communes" VALUES('36','Concremiers','05',644,611,28.11,'-1467','51775',77,131);
INSERT INTO "communes" VALUES('36','Saint-Maur','25',3268,3340,70.31,'-775','52007',127,184);
INSERT INTO "communes" VALUES('36','Luçay-le-Libre','23',119,102,11.85,'-479','52318',119,157);
INSERT INTO "communes" VALUES('36','Mâron','02',734,677,27.84,'-523','52008',147,171);
INSERT INTO "communes" VALUES('36','Saint-Florentin','23',503,451,15.95,'-591','52306',118,162);
INSERT INTO "communes" VALUES('36','Levroux','14',2834,2913,56.43,'-804','52197',125,190);
INSERT INTO "communes" VALUES('36','Nohant-Vic','09',477,501,21.25,'-418','51821',175,261);
INSERT INTO "communes" VALUES('36','Baudres','14',486,495,27.4,'-842','52286',110,206);
INSERT INTO "communes" VALUES('36','Saint-Georges-sur-Arnon','12',548,431,23.87,'-271','52221',117,161);
INSERT INTO "communes" VALUES('36','Tilly','04',168,189,14.77,'-1261','51563',143,221);
INSERT INTO "communes" VALUES('36','Ingrandes','05',336,318,11.12,'-1526','51775',76,131);
INSERT INTO "communes" VALUES('36','Sainte-Cécile','18',99,99,9.5,'-741','52431',88,121);
INSERT INTO "communes" VALUES('36','Niherne','25',1551,1482,42.87,'-858','52031',122,163);
INSERT INTO "communes" VALUES('36','Selles-sur-Nahon','10',70,72,6.77,'-988','52241',118,170);
INSERT INTO "communes" VALUES('36','Saint-Lactencin','06',406,353,32.2,'-937','52109',116,182);
INSERT INTO "communes" VALUES('37','Chançay','24',1091,949,15.04,'-1625','52725',54,115);
INSERT INTO "communes" VALUES('37','Bléré','03',5213,4578,30.8,'-1496','52584',52,112);
INSERT INTO "communes" VALUES('37','Truyes','34',2094,1728,16.39,'-1652','52525',57,99);
INSERT INTO "communes" VALUES('37','Saint-Branchs','34',2444,2212,51.16,'-1738','52474',62,125);
INSERT INTO "communes" VALUES('37','Savonnières','31',3118,2558,16.46,'-1987','52609',37,96);
INSERT INTO "communes" VALUES('37','Saint-Cyr-sur-Loire','29',16072,16096,13.5,'-1843','52670',45,101);
INSERT INTO "communes" VALUES('37','Ballan-Miré','31',8106,7054,26.16,'-1915','52602',43,99);
INSERT INTO "communes" VALUES('37','Esvres','34',4523,4278,35.85,'-1723','52538',52,96);
INSERT INTO "communes" VALUES('37','Amboise','01',12846,11461,40.65,'-1504','52679',52,127);
INSERT INTO "communes" VALUES('37','Pocé-sur-Cisse','01',1628,1582,10.61,'-1495','52716',52,114);
INSERT INTO "communes" VALUES('37','La Roche-Clermault','07',487,479,18.03,'-2371','52375',30,112);
INSERT INTO "communes" VALUES('37','La Croix-en-Touraine','03',2224,1968,15.04,'-1495','52596',52,117);
INSERT INTO "communes" VALUES('37','Restigné','04',1198,1225,21.31,'-2342','52535',30,114);
INSERT INTO "communes" VALUES('37','Beaumont-la-Ronce','16',1167,995,39.04,'-1850','52856',85,175);
INSERT INTO "communes" VALUES('37','Bourgueil','04',3898,4108,32.95,'-2409','52536',28,117);
INSERT INTO "communes" VALUES('37','<NAME>','02',534,496,5.25,'-2121','52576',36,41);
INSERT INTO "communes" VALUES('37','Lignières-de-Touraine','02',1130,928,10,'-2133','52552',36,98);
INSERT INTO "communes" VALUES('37','Cinq-Mars-la-Pile','11',3369,2620,20.11,'-2083','52608',37,101);
INSERT INTO "communes" VALUES('37','Louans','12',601,543,18.02,'-1767','52427',99,126);
INSERT INTO "communes" VALUES('37','Rilly-sur-Vienne','10',465,404,13.1,'-2049','52285',38,124);
INSERT INTO "communes" VALUES('37','Monthodon','06',623,559,33.91,'-1666','52944',115,172);
INSERT INTO "communes" VALUES('37','Véretz','37',4123,3022,13.86,'-1701','52622',47,94);
INSERT INTO "communes" VALUES('37','Céré-la-Ronde','03',446,437,49.2,'-1274','52512',84,186);
INSERT INTO "communes" VALUES('37','Villaines-les-Rochers','02',981,918,12.47,'-2044','52468',52,116);
INSERT INTO "communes" VALUES('37','<NAME>','12',667,519,28.5,'-1716','52318',67,126);
INSERT INTO "communes" VALUES('37','Marcilly-sur-Vienne','20',561,509,10.99,'-1996','52272',32,121);
INSERT INTO "communes" VALUES('37','Manthelan','12',1371,1145,39.58,'-1715','52373',79,128);
INSERT INTO "communes" VALUES('37','Preuilly-sur-Claise','18',1072,1290,12,'-1564','52061',67,137);
INSERT INTO "communes" VALUES('37','Braye-sur-Maulne','05',216,205,11.84,'-2320','52840',50,121);
INSERT INTO "communes" VALUES('37','Vernou-sur-Brenne','24',2678,2451,25.91,'-1657','52690',47,130);
INSERT INTO "communes" VALUES('37','Sainte-Maure-de-Touraine','20',4096,3908,40.41,'-1906','52347',58,122);
INSERT INTO "communes" VALUES('37','Loches','13',6507,6329,27.06,'-1490','52365',64,147);
INSERT INTO "communes" VALUES('37','Sainte-Catherine-de-Fierbois','20',652,611,15.49,'-1870','52397',92,129);
INSERT INTO "communes" VALUES('37','Saint-Nicolas-de-Bourgueil','04',1177,1196,36.45,'-2456','52538',26,116);
INSERT INTO "communes" VALUES('37','Montreuil-en-Touraine','01',768,642,25.09,'-1544','52763',76,113);
INSERT INTO "communes" VALUES('37','Thizay','07',272,233,6.92,'-2437','52407',27,100);
INSERT INTO "communes" VALUES('37','Villedômer','06',1339,1135,35.49,'-1609','52829',72,154);
INSERT INTO "communes" VALUES('37','Parçay-Meslay','24',2304,2195,14.07,'-1768','52713',74,122);
INSERT INTO "communes" VALUES('37','Limeray','01',1173,945,14.39,'-1439','52733',52,116);
INSERT INTO "communes" VALUES('37','Cangey','01',1083,773,22.98,'-1418','52742',56,114);
INSERT INTO "communes" VALUES('37','Descartes','09',3815,4015,38.08,'-1821','52193',37,121);
INSERT INTO "communes" VALUES('37','Antogny-le-Tillac','20',532,447,17.31,'-1954','52182',37,123);
INSERT INTO "communes" VALUES('37','Saint-Règle','01',482,348,6.49,'-1426','52676',62,110);
INSERT INTO "communes" VALUES('37','Verneuil-sur-Indre','13',512,479,39.63,'-1438','52285',73,149);
INSERT INTO "communes" VALUES('37','Rouziers-de-Touraine','16',1223,1037,18.19,'-1875','52797',78,132);
INSERT INTO "communes" VALUES('37','Notre-Dame-d''Oé','24',3998,3330,7.73,'-1809','52731',85,109);
INSERT INTO "communes" VALUES('37','Tournon-Saint-Pierre','18',477,516,14.76,'-1536','51933',62,136);
INSERT INTO "communes" VALUES('37','Chinon','07',7894,8712,39.02,'-2326','52408',27,112);
INSERT INTO "communes" VALUES('37','Dierre','03',572,495,10.27,'-1538','52607',52,115);
INSERT INTO "communes" VALUES('37','Saint-Senoch','12',500,420,24.08,'-1519','52274',98,149);
INSERT INTO "communes" VALUES('37','Tauxigny','13',1242,1090,36.83,'-1669','52460',67,114);
INSERT INTO "communes" VALUES('37','Jaulnay','19',253,273,14.76,'-2136','52165',65,134);
INSERT INTO "communes" VALUES('37','Ambillou','05',1774,1300,48.85,'-2099','52724',68,117);
INSERT INTO "communes" VALUES('37','Boussay','18',248,268,27.54,'-1609','52047',62,137);
INSERT INTO "communes" VALUES('37','Sennevières','13',223,210,23.54,'-1372','52340',91,149);
INSERT INTO "communes" VALUES('37','Auzouer-en-Touraine','06',2064,1361,34.05,'-1574','52825',72,138);
INSERT INTO "communes" VALUES('37','Ferrière-Larçon','08',273,298,20.87,'-1617','52215',80,132);
INSERT INTO "communes" VALUES('37','Saint-Hippolyte','13',598,567,32.99,'-1374','52289',75,152);
INSERT INTO "communes" VALUES('37','Larçay','37',2391,2035,11.19,'-1729','52631',46,95);
INSERT INTO "communes" VALUES('37','Theneuil','10',314,294,9.8,'-2109','52330',34,107);
INSERT INTO "communes" VALUES('37','Yzeures-sur-Creuse','18',1445,1477,55.42,'-1629','51984',53,139);
INSERT INTO "communes" VALUES('37','Chaveignes','19',572,593,21.34,'-2208','52264',45,117);
INSERT INTO "communes" VALUES('37','Benais','04',937,870,20.08,'-2358','52552',33,114);
INSERT INTO "communes" VALUES('37','Saint-Patrice','11',677,639,17.18,'-2255','52540',32,114);
INSERT INTO "communes" VALUES('37','Loché-sur-Indrois','15',505,532,74.13,'-1242','52325',98,152);
INSERT INTO "communes" VALUES('37','Candes-Saint-Martin','07',221,227,5.77,'-2515','52457',27,101);
INSERT INTO "communes" VALUES('37','Rivarennes','02',1010,713,18.92,'-2203','52518',36,121);
INSERT INTO "communes" VALUES('37','Betz-le-Château','08',582,595,46.88,'-1574','52213',91,144);
INSERT INTO "communes" VALUES('37','Lussault-sur-Loire','01',717,692,9.36,'-1576','52663',51,109);
INSERT INTO "communes" VALUES('37','Trogues','10',335,290,9.38,'-2046','52348',32,99);
INSERT INTO "communes" VALUES('37','Chambray-lès-Tours','34',10733,10269,19.4,'-1803','52597',64,96);
INSERT INTO "communes" VALUES('37','Saché','02',1277,1005,28.29,'-1993','52497',41,113);
INSERT INTO "communes" VALUES('37','Tours','99',134817,132677,34.67,'-1831','52659',44,109);
INSERT INTO "communes" VALUES('37','Beaumont-Village','15',258,242,19.25,'-1256','52420',86,144);
INSERT INTO "communes" VALUES('37','Saint-Roch','16',1243,871,4.75,'-1952','52717',78,113);
INSERT INTO "communes" VALUES('37','<NAME>','08',322,366,32.05,'-1575','52135',71,145);
INSERT INTO "communes" VALUES('37','Chambourg-sur-Indre','13',1281,1190,28.39,'-1521','52424',62,119);
INSERT INTO "communes" VALUES('37','Saint-Pierre-des-Corps','30',15227,15757,11.28,'-1787','52657',46,51);
INSERT INTO "communes" VALUES('37','Cigogné','03',336,308,21.79,'-1562','52511',73,106);
INSERT INTO "communes" VALUES('37','Couesmes','05',531,515,19.12,'-2216','52849',58,128);
INSERT INTO "communes" VALUES('37','Panzoult','10',568,564,34.61,'-2150','52385',27,119);
INSERT INTO "communes" VALUES('37','Druye','31',895,721,22.87,'-1998','52566',69,101);
INSERT INTO "communes" VALUES('37','Joué-lès-Tours','98',35976,36511,32.41,'-1861','52612',44,96);
INSERT INTO "communes" VALUES('37','Marçay','07',463,451,21.35,'-2354','52333',37,97);
INSERT INTO "communes" VALUES('37','Azay-le-Rideau','02',3435,3106,27.34,'-2078','52513',36,102);
INSERT INTO "communes" VALUES('37','Ports','20',358,347,11.01,'-1981','52239',32,123);
INSERT INTO "communes" VALUES('37','Saint-Michel-sur-Loire','11',629,509,17.51,'-2208','52564',32,108);
INSERT INTO "communes" VALUES('37','Charentilly','16',1094,987,14.13,'-1919','52744',73,122);
INSERT INTO "communes" VALUES('37','Saint-Paterne-Racan','17',1676,1511,47.77,'-2060','52891',65,133);
INSERT INTO "communes" VALUES('37','Champigny-sur-Veude','19',865,881,16.18,'-2238','52297',39,107);
INSERT INTO "communes" VALUES('37','Bossée','12',340,334,19.01,'-1786','52347',104,121);
INSERT INTO "communes" VALUES('37','Mettray','36',2104,2027,10.34,'-1876','52725',57,100);
INSERT INTO "communes" VALUES('37','Villiers-au-Bouin','05',797,602,29.83,'-2249','52861',52,114);
INSERT INTO "communes" VALUES('37','Artannes-sur-Indre','14',2480,2185,20.97,'-1930','52526',47,98);
INSERT INTO "communes" VALUES('37','Ingrandes-de-Touraine','11',501,470,9.46,'-2300','52536',33,113);
INSERT INTO "communes" VALUES('37','Rivière','07',702,625,3.66,'-2285','52384',28,107);
INSERT INTO "communes" VALUES('37','Monts','14',6962,6512,27.28,'-1902','52530',47,99);
INSERT INTO "communes" VALUES('37','<NAME>','06',694,493,20.1,'-1643','52896',87,166);
INSERT INTO "communes" VALUES('37','Genillé','15',1582,1423,63.12,'-1379','52428',71,144);
INSERT INTO "communes" VALUES('37','Marcilly-sur-Maulne','05',225,237,14.6,'-2328','52834',47,121);
INSERT INTO "communes" VALUES('37','Chanceaux-près-Loches','13',148,143,14.58,'-1554','52386',75,133);
INSERT INTO "communes" VALUES('37','Rochecorbon','24',3311,2982,16.78,'-1757','52683',47,124);
INSERT INTO "communes" VALUES('37','Villandry','31',1071,920,17.8,'-2028','52600',38,97);
INSERT INTO "communes" VALUES('37','Sorigny','14',2203,1911,43.43,'-1823','52491',68,123);
INSERT INTO "communes" VALUES('37','Autrèche','06',394,400,20.72,'-1489','52805',82,122);
INSERT INTO "communes" VALUES('37','Marray','17',410,337,23.81,'-1817','52912',89,182);
INSERT INTO "communes" VALUES('37','Montrésor','15',338,395,0.98,'-1262','52395',87,121);
INSERT INTO "communes" VALUES('37','<NAME>','15',345,227,11.15,'-1370','52476',93,141);
INSERT INTO "communes" VALUES('37','Crissay-sur-Manse','10',118,119,7.5,'-2054','52389',44,120);
INSERT INTO "communes" VALUES('37','Thilouze','02',1602,1125,33.75,'-1951','52470',53,114);
INSERT INTO "communes" VALUES('37','Assay','19',173,174,14.53,'-2274','52305',38,92);
INSERT INTO "communes" VALUES('37','Saint-Christophe-sur-le-Nais','17',1087,964,18.27,'-2067','52907',52,127);
INSERT INTO "communes" VALUES('37','Barrou','08',501,482,30.71,'-1740','52073',47,146);
INSERT INTO "communes" VALUES('37','Château-la-Vallière','05',1650,1533,21.94,'-2235','52830',58,110);
INSERT INTO "communes" VALUES('37','Marigny-Marmande','19',605,621,30.83,'-2053','52201',54,134);
INSERT INTO "communes" VALUES('37','Cravant-les-Côteaux','10',723,751,38.21,'-2211','52398',27,121);
INSERT INTO "communes" VALUES('37','Verneuil-le-Château','19',151,110,8.44,'-2088','52265',58,123);
INSERT INTO "communes" VALUES('37','Bueil-en-Touraine','17',323,366,18.06,'-1985','52939',63,127);
INSERT INTO "communes" VALUES('37','Civray-sur-Esves','09',221,202,13.29,'-1806','52275',59,119);
INSERT INTO "communes" VALUES('37','Crotelles','06',640,530,15.89,'-1666','52825',95,152);
INSERT INTO "communes" VALUES('37','Azay-sur-Cher','03',2993,2707,22.85,'-1656','52610',48,103);
INSERT INTO "communes" VALUES('37','Chambon','18',301,289,17.88,'-1694','52047',47,136);
INSERT INTO "communes" VALUES('37','Varennes','12',238,210,11.07,'-1578','52299',86,142);
INSERT INTO "communes" VALUES('37','Cerelles','16',1231,982,12.3,'-1838','52777',62,122);
INSERT INTO "communes" VALUES('37','Vou','12',224,234,21.95,'-1641','52317',81,134);
INSERT INTO "communes" VALUES('37','Savigné-sur-Lathan','05',1367,1047,17.61,'-2240','52716',79,95);
INSERT INTO "communes" VALUES('37','Courcoué','19',264,236,15.66,'-2156','52260',59,122);
INSERT INTO "communes" VALUES('37','Saint-Antoine-du-Rocher','16',1483,1095,24.23,'-1896','52774',60,127);
INSERT INTO "communes" VALUES('37','Lémeré','19',442,369,19.83,'-2224','52314',35,115);
INSERT INTO "communes" VALUES('37','Perrusson','13',1538,1418,28.94,'-1470','52333',72,149);
INSERT INTO "communes" VALUES('37','Nouâtre','20',881,788,9.65,'-1983','52280',32,49);
INSERT INTO "communes" VALUES('37','L''Île-Bouchard','10',1721,1765,3.48,'-2124','52356',33,65);
INSERT INTO "communes" VALUES('37','Reignac-sur-Indre','13',1231,1068,22.44,'-1578','52480',60,101);
INSERT INTO "communes" VALUES('37','Courçay','03',834,694,24.77,'-1623','52501',57,99);
INSERT INTO "communes" VALUES('37','Monnaie','24',4011,3305,39.42,'-1724','52778',89,147);
INSERT INTO "communes" VALUES('37','Chemillé-sur-Dême','17',679,575,33.54,'-1876','52954',75,164);
INSERT INTO "communes" VALUES('37','Saint-Germain-sur-Vienne','07',376,353,13.36,'-2462','52423',27,105);
INSERT INTO "communes" VALUES('37','La Chapelle-sur-Loire','04',1528,1479,19.17,'-2347','52499',27,37);
INSERT INTO "communes" VALUES('37','Richelieu','19',1941,2172,5.09,'-2236','52238',47,77);
INSERT INTO "communes" VALUES('37','Château-Renault','06',5181,5481,3.51,'-1586','52879',83,129);
INSERT INTO "communes" VALUES('37','Cussay','09',586,560,25.81,'-1719','52249',65,124);
INSERT INTO "communes" VALUES('37','Paulmy','08',243,261,25.97,'-1663','52203',72,127);
INSERT INTO "communes" VALUES('37','Montlouis-sur-Loire','37',10487,9653,24.55,'-1677','52654',46,97);
INSERT INTO "communes" VALUES('37','Neuvy-le-Roi','17',1156,1108,47.5,'-1935','52893',75,128);
INSERT INTO "communes" VALUES('37','Luzé','19',264,263,20.3,'-2093','52248',65,129);
INSERT INTO "communes" VALUES('37','Vouvray','24',3069,3048,22.92,'-1708','52680',48,121);
INSERT INTO "communes" VALUES('37','Maillé','20',604,653,15.67,'-1950','52281',43,110);
INSERT INTO "communes" VALUES('37','<NAME>-Dames','37',4966,4643,8,'-1747','52662',46,52);
INSERT INTO "communes" VALUES('37','Dolus-le-Sec','13',685,537,27.27,'-1604','52405',89,127);
INSERT INTO "communes" VALUES('37','Saint-Avertin','32',13947,14094,13.25,'-1789','52630',46,98);
INSERT INTO "communes" VALUES('37','Sublaines','03',178,159,14.44,'-1495','52516',87,117);
INSERT INTO "communes" VALUES('37','Épeigné-les-Bois','03',436,376,14.52,'-1362','52534',71,141);
INSERT INTO "communes" VALUES('37','Huismes','07',1536,1388,23.82,'-2315','52481',31,118);
INSERT INTO "communes" VALUES('37','Bréhémont','02',793,716,12.71,'-2201','52550',32,40);
INSERT INTO "communes" VALUES('37','Parçay-sur-Vienne','10',655,530,18.74,'-2066','52340',32,115);
INSERT INTO "communes" VALUES('37','Chédigny','13',546,435,23.17,'-1486','52456',62,110);
INSERT INTO "communes" VALUES('37','Reugny','24',1582,1417,29.72,'-1614','52758',60,133);
INSERT INTO "communes" VALUES('37','Lerné','07',319,312,16.36,'-2460','52373',43,117);
INSERT INTO "communes" VALUES('37','Épeigné-sur-Dême','17',159,145,21.08,'-1914','52965',66,128);
INSERT INTO "communes" VALUES('37','Saint-Épain','20',1544,1419,62.65,'-2000','52384',47,122);
INSERT INTO "communes" VALUES('37','Francueil','03',1297,946,12.91,'-1393','52569',54,117);
INSERT INTO "communes" VALUES('37','Chezelles','10',137,130,15.17,'-2105','52287',45,122);
INSERT INTO "communes" VALUES('37','Beaulieu-lès-Loches','13',1759,1720,3.88,'-1468','52365',68,121);
INSERT INTO "communes" VALUES('37','Braye-sous-Faye','19',325,368,15.67,'-2211','52213',54,102);
INSERT INTO "communes" VALUES('37','Saint-Benoît-la-Forêt','02',882,766,35.25,'-2238','52467',50,119);
INSERT INTO "communes" VALUES('37','Saint-Étienne-de-Chigny','36',1426,1323,21.11,'-2023','52634',37,108);
INSERT INTO "communes" VALUES('37','Villeperdue','14',978,820,11.95,'-1894','52445',93,118);
INSERT INTO "communes" VALUES('37','Neuillé-Pont-Pierre','16',1951,1765,39,'-1987','52830',75,135);
INSERT INTO "communes" VALUES('37','Mazières-de-Touraine','11',1303,1022,34.18,'-2123','52648',52,109);
INSERT INTO "communes" VALUES('37','Anché','10',431,365,7.99,'-2253','52376',28,87);
INSERT INTO "communes" VALUES('37','Couziers','07',113,102,12.05,'-2505','52399',29,115);
INSERT INTO "communes" VALUES('37','Mosnes','01',742,737,14.5,'-1373','52728',55,114);
INSERT INTO "communes" VALUES('37','Cléré-les-Pins','11',1304,1165,35.62,'-2162','52695',80,111);
INSERT INTO "communes" VALUES('37','Noizay','24',1155,1156,17.47,'-1605','52690',48,114);
INSERT INTO "communes" VALUES('37','Nouzilly','06',1239,1106,40.24,'-1769','52826',75,164);
INSERT INTO "communes" VALUES('37','Fondettes','36',10377,8918,31.83,'-1931','52671',42,100);
INSERT INTO "communes" VALUES('37','Neuillé-le-Lierre','24',765,582,16.63,'-1585','52791',65,122);
INSERT INTO "communes" VALUES('37','Saint-Quentin-sur-Indrois','13',492,429,27.23,'-1459','52448',65,127);
INSERT INTO "communes" VALUES('37','Athée-sur-Cher','03',2501,2016,34.47,'-1579','52579',49,104);
INSERT INTO "communes" VALUES('37','<NAME>','12',473,425,28.87,'-1722','52401',79,127);
INSERT INTO "communes" VALUES('37','Savigny-en-Véron','07',1453,1272,21.31,'-2435','52446',27,43);
INSERT INTO "communes" VALUES('37','Faye-la-Vineuse','19',295,285,17.55,'-2218','52174',62,131);
INSERT INTO "communes" VALUES('37','Langeais','11',4029,3868,60.38,'-2145','52584',36,109);
INSERT INTO "communes" VALUES('37','Rillé','05',307,272,23.96,'-2320','52722',67,119);
INSERT INTO "communes" VALUES('37','Villeloin-Coulangé','15',649,618,34.62,'-1237','52379',92,144);
INSERT INTO "communes" VALUES('37','Pussigny','20',190,184,8.48,'-1963','52214',37,114);
INSERT INTO "communes" VALUES('37','Civray-de-Touraine','03',1815,1523,22.88,'-1431','52591',46,129);
INSERT INTO "communes" VALUES('37','<NAME>','08',199,229,5.27,'-1784','52094',43,67);
INSERT INTO "communes" VALUES('37','Rigny-Ussé','02',532,506,13.97,'-2264','52503',31,117);
INSERT INTO "communes" VALUES('37','<NAME>-Choisille','36',3009,2926,6.87,'-1886','52709',51,94);
INSERT INTO "communes" VALUES('37','Courcelles-de-Touraine','05',482,325,25.71,'-2253','52758',79,110);
INSERT INTO "communes" VALUES('37','Nazelles-Négron','01',3522,3635,22.32,'-1537','52703',51,114);
INSERT INTO "communes" VALUES('37','Ciran','12',440,364,13.86,'-1627','52289',77,131);
INSERT INTO "communes" VALUES('37','Saint-Martin-le-Beau','03',2902,2466,18.44,'-1585','52618',49,108);
INSERT INTO "communes" VALUES('37','Veigné','14',6091,5473,26.58,'-1777','52542',51,94);
INSERT INTO "communes" VALUES('37','Luzillé','03',894,778,40.68,'-1418','52514',68,132);
INSERT INTO "communes" VALUES('37','Saint-Ouen-les-Vignes','01',1031,941,18.55,'-1491','52744',63,116);
INSERT INTO "communes" VALUES('37','Mouzay','12',486,464,23.71,'-1604','52322',92,146);
INSERT INTO "communes" VALUES('37','Avon-les-Roches','10',549,520,33.28,'-2098','52396',38,119);
INSERT INTO "communes" VALUES('37','Brèches','05',284,255,11.63,'-2164','52855',74,133);
INSERT INTO "communes" VALUES('37','Sonzay','16',1294,1100,48.34,'-2082','52808',78,139);
INSERT INTO "communes" VALUES('37','Hermites','06',568,538,32.6,'-1760','52961',96,167);
INSERT INTO "communes" VALUES('37','Braslou','19',320,326,15.79,'-2160','52222',56,131);
INSERT INTO "communes" VALUES('37','Azay-sur-Indre','13',382,355,13.89,'-1546','52455',61,106);
INSERT INTO "communes" VALUES('37','Ligueil','12',2222,2162,29.72,'-1686','52270',66,128);
INSERT INTO "communes" VALUES('37','Charnizay','18',496,524,51.71,'-1500','52126',84,147);
INSERT INTO "communes" VALUES('37','Cheillé','02',1657,1283,46.26,'-2084','52505',37,120);
INSERT INTO "communes" VALUES('37','<NAME>','08',395,362,36.7,'-1603','52160',70,144);
INSERT INTO "communes" VALUES('37','Cormery','34',1653,1540,6.07,'-1667','52519',57,94);
INSERT INTO "communes" VALUES('37','Chenonceaux','03',356,326,4.33,'-1409','52591',54,129);
INSERT INTO "communes" VALUES('37','Marcé-sur-Esves','09',236,227,10.99,'-1869','52257',50,112);
INSERT INTO "communes" VALUES('37','Brizay','10',339,287,14.27,'-2149','52336',39,116);
INSERT INTO "communes" VALUES('37','Luynes','36',5078,4502,34.01,'-1980','52650',39,105);
INSERT INTO "communes" VALUES('37','Neuilly-le-Brignon','09',311,308,22,'-1719','52194',62,124);
INSERT INTO "communes" VALUES('37','Draché','09',706,635,18.51,'-1903','52283',56,112);
INSERT INTO "communes" VALUES('37','Abilly','09',1121,1106,30.27,'-1787','52157',42,123);
INSERT INTO "communes" VALUES('37','Souvigné','05',779,554,24.41,'-2154','52801',76,126);
INSERT INTO "communes" VALUES('37','Saint-Laurent-en-Gâtines','06',933,730,31.62,'-1733','52875',110,171);
INSERT INTO "communes" VALUES('37','Crouzilles','10',567,519,14.54,'-2086','52359',32,102);
INSERT INTO "communes" VALUES('37','La Ferrière','06',292,214,15.76,'-1766','52921',118,170);
INSERT INTO "communes" VALUES('37','Louestault','17',366,290,16.45,'-1872','52908',85,180);
INSERT INTO "communes" VALUES('37','Dame-Marie-les-Bois','06',313,275,8.91,'-1449','52823',93,131);
INSERT INTO "communes" VALUES('37','La Celle-Saint-Avant','09',1038,1084,17.8,'-1925','52247',37,103);
INSERT INTO "communes" VALUES('37','Souvigny-de-Touraine','01',372,366,26.18,'-1385','52680',72,133);
INSERT INTO "communes" VALUES('37','Gizeux','04',449,427,21.06,'-2379','52659',47,108);
INSERT INTO "communes" VALUES('37','Chargé','01',1159,946,8.46,'-1451','52703',52,112);
INSERT INTO "communes" VALUES('37','Saint-Laurent-de-Lin','05',300,234,13.86,'-2309','52786',64,119);
INSERT INTO "communes" VALUES('37','Villedômain','15',131,122,16.47,'-1201','52281',116,163);
INSERT INTO "communes" VALUES('37','Semblançay','16',2082,1692,35.66,'-1951','52777',92,134);
INSERT INTO "communes" VALUES('37','Bossay-sur-Claise','18',826,786,65.56,'-1527','52036',67,144);
INSERT INTO "communes" VALUES('37','Saunay','06',658,507,25.98,'-1516','52893',92,147);
INSERT INTO "communes" VALUES('37','Pernay','16',1055,865,17.61,'-2041','52715',60,119);
INSERT INTO "communes" VALUES('37','Sepmes','09',663,646,28.59,'-1848','52298',60,119);
INSERT INTO "communes" VALUES('37','Cinais','07',446,439,8.77,'-2394','52387',29,107);
INSERT INTO "communes" VALUES('37','Montbazon','14',3933,3433,6.5,'-1803','52542',52,92);
INSERT INTO "communes" VALUES('37','Tavant','10',262,238,5.22,'-2165','52362',28,82);
INSERT INTO "communes" VALUES('37','Hommes','05',900,664,29.59,'-2266','52696',75,93);
INSERT INTO "communes" VALUES('37','Lublé','05',139,125,12.6,'-2324','52794',57,118);
INSERT INTO "communes" VALUES('37','Continvoir','04',467,449,41.19,'-2351','52654',47,109);
INSERT INTO "communes" VALUES('37','Esves-le-Moutier','12',145,164,10.53,'-1588','52268',86,132);
INSERT INTO "communes" VALUES('37','Chaumussay','18',249,262,19.15,'-1638','52079',60,135);
INSERT INTO "communes" VALUES('37','Nouans-les-Fontaines','15',791,789,63.31,'-1153','52374',101,162);
INSERT INTO "communes" VALUES('37','Pouzay','20',828,755,14.07,'-2003','52313',32,99);
INSERT INTO "communes" VALUES('37','Beaumont-en-Véron','07',2793,2758,18.83,'-2389','52440',28,81);
INSERT INTO "communes" VALUES('37','Morand','06',328,235,14.62,'-1474','52847',104,147);
INSERT INTO "communes" VALUES('37','<NAME>','19',548,534,13.45,'-2149','52278',63,117);
INSERT INTO "communes" VALUES('37','Saint-Genouph','31',1028,940,4.74,'-1931','52643',42,49);
INSERT INTO "communes" VALUES('37','Chouzé-sur-Loire','04',2071,2094,28.04,'-2455','52485',25,36);
INSERT INTO "communes" VALUES('37','Razines','19',240,246,14.73,'-2176','52195',56,134);
INSERT INTO "communes" VALUES('37','Essards','11',155,153,4.17,'-2260','52606',52,105);
INSERT INTO "communes" VALUES('37','Avrillé-les-Ponceaux','11',449,384,32.8,'-2278','52661',57,95);
INSERT INTO "communes" VALUES('37','<NAME>','31',10080,8599,8.17,'-1862','52655',43,51);
INSERT INTO "communes" VALUES('37','Seuilly','07',368,369,15.73,'-2405','52371',35,111);
INSERT INTO "communes" VALUES('37','Neuil','20',439,369,18.82,'-2026','52413',60,117);
INSERT INTO "communes" VALUES('37','Berthenay','31',742,675,7.24,'-2014','52626',37,45);
INSERT INTO "communes" VALUES('37','Vallères','02',1128,779,14.72,'-2069','52569',37,97);
INSERT INTO "communes" VALUES('37','Chisseaux','03',637,575,11.8,'-1381','52590',54,136);
INSERT INTO "communes" VALUES('37','Le Grand-Pressigny','08',997,1117,39.55,'-1704','52134',52,135);
INSERT INTO "communes" VALUES('37','Pont-de-Ruan','14',871,596,5.74,'-1956','52512',46,94);
INSERT INTO "communes" VALUES('37','Noyant-de-Touraine','20',991,646,13.74,'-1975','52344',51,103);
INSERT INTO "communes" VALUES('37','Sazilly','10',254,231,10.57,'-2216','52373',27,87);
INSERT INTO "communes" VALUES('37','Chemillé-sur-Indrois','15',226,197,24.87,'-1301','52401',82,142);
INSERT INTO "communes" VALUES('37','Saint-Nicolas-des-Motets','06',265,224,12.77,'-1444','52873',108,151);
INSERT INTO "communes" VALUES('37','Channay-sur-Lathan','05',817,595,28.71,'-2303','52756',71,91);
INSERT INTO "communes" VALUES('37','Avoine','07',1834,1778,12.58,'-2393','52450',29,42);
INSERT INTO "communes" VALUES('37','Orbigny','15',756,726,65.88,'-1226','52456',98,182);
INSERT INTO "communes" VALUES('37','Villebourg','17',281,259,12.36,'-2008','52945',57,127);
INSERT INTO "communes" VALUES('37','Ferrière-sur-Beaulieu','13',735,563,19.63,'-1443','52376',75,144);
INSERT INTO "communes" VALUES('37','Ligré','19',1029,966,27.7,'-2290','52347',31,111);
INSERT INTO "communes" VALUES('37','Saint-Aubin-le-Dépeint','17',325,329,15.19,'-2162','52928',60,133);
INSERT INTO "communes" VALUES('37','Saint-Flovier','08',603,605,29.22,'-1454','52187',102,146);
INSERT INTO "communes" VALUES('37','Saint-Jean-Saint-Germain','13',723,602,21.34,'-1446','52314',72,147);
INSERT INTO "communes" VALUES('37','Bournan','12',265,215,14.67,'-1786','52291',62,121);
INSERT INTO "communes" VALUES('37','Chanceaux-sur-Choisille','24',3586,2822,18.47,'-1815','52746',62,121);
INSERT INTO "communes" VALUES('37','Bridoré','13',552,475,14.54,'-1393','52252',76,144);
INSERT INTO "communes" VALUES('37','Neuville-sur-Brenne','06',802,623,6.89,'-1587','52910',87,146);
INSERT INTO "communes" VALUES('37','Saint-Bauld','13',204,168,4.11,'-1666','52422',77,103);
INSERT INTO "communes" VALUES('38','Voiron','45',19893,19799,21.9,'3615','50404',222,846);
INSERT INTO "communes" VALUES('38','Réaumont','23',964,791,4.95,'3544','50411',309,436);
INSERT INTO "communes" VALUES('38','<NAME>','34',2374,1913,9.47,'3994','50360',229,1045);
INSERT INTO "communes" VALUES('38','<NAME>','36',141,126,47.99,'4041','49930',815,2992);
INSERT INTO "communes" VALUES('38','Nantoin','07',439,321,9.5,'3258','50484',430,609);
INSERT INTO "communes" VALUES('38','Saint-Vincent-de-Mercuze','34',1408,1361,7.85,'4015','50416',238,863);
INSERT INTO "communes" VALUES('38','Saint-Laurent-en-Beaumont','06',444,370,13.15,'3904','49866',557,1492);
INSERT INTO "communes" VALUES('38','Frontonas','08',1931,1702,12.65,'3164','50721',207,401);
INSERT INTO "communes" VALUES('38','Massieu','27',762,688,10.46,'3622','50489',422,867);
INSERT INTO "communes" VALUES('38','<NAME>','19',582,462,11.2,'3544','50745',207,210);
INSERT INTO "communes" VALUES('38','Beaurepaire','02',4620,3837,18.46,'3020','50376',225,315);
INSERT INTO "communes" VALUES('38','<NAME>','24',686,477,11.22,'2859','50435',252,407);
INSERT INTO "communes" VALUES('38','Clavans-en-Haut-Oisans','03',113,83,15.58,'4251','50093',1024,3464);
INSERT INTO "communes" VALUES('38','Cras','35',467,325,5.43,'3459','50299',280,773);
INSERT INTO "communes" VALUES('38','Beaulieu','30',626,514,8.79,'3395','50214',160,355);
INSERT INTO "communes" VALUES('38','<NAME>','24',6751,6338,7.41,'2734','50414',134,263);
INSERT INTO "communes" VALUES('38','La Bâtie-Divisin','27',897,802,10.51,'3623','50567',360,615);
INSERT INTO "communes" VALUES('38','Montbonnot-Saint-Martin','60',4651,3828,6.38,'3851','50252',215,356);
INSERT INTO "communes" VALUES('38','<NAME>','43',1231,977,9.6,'3521','50507',487,767);
INSERT INTO "communes" VALUES('38','Autrans','41',1702,1544,44.02,'3562','50195',1005,1711);
INSERT INTO "communes" VALUES('38','Saint-Pierre-de-Méaroz','06',137,104,4.64,'3874','49861',508,868);
INSERT INTO "communes" VALUES('38','Colombe','11',1439,1430,13.23,'3459','50443',448,738);
INSERT INTO "communes" VALUES('38','Treffort','18',245,129,10.99,'3690','49906',486,1070);
INSERT INTO "communes" VALUES('38','Leyrieu','08',724,643,6.39,'3243','50842',203,420);
INSERT INTO "communes" VALUES('38','Saint-Martin-d''Hères','97',36177,35769,9.26,'3809','50185',206,610);
INSERT INTO "communes" VALUES('38','Viriville','25',1545,1208,30.46,'3186','50351',306,606);
INSERT INTO "communes" VALUES('38','Sainte-Agnès','09',537,457,26.85,'3983','50263',270,2969);
INSERT INTO "communes" VALUES('38','Velanne','27',495,414,8.04,'3680','50543',380,641);
INSERT INTO "communes" VALUES('38','Notre-Dame-de-Vaulx','20',542,494,7.88,'3791','49985',877,1712);
INSERT INTO "communes" VALUES('38','Cornillon-en-Trièves','16',173,137,13.92,'3756','49811',493,1106);
INSERT INTO "communes" VALUES('38','Quet-en-Beaumont','06',64,49,8.1,'3930','49816',581,1664);
INSERT INTO "communes" VALUES('38','Ambel','06',23,22,4.83,'3993','49783',735,1596);
INSERT INTO "communes" VALUES('38','Vignieu','33',907,705,9.4,'3431','50698',220,444);
INSERT INTO "communes" VALUES('38','Bossieu','07',271,277,13.48,'3124','50463',361,524);
INSERT INTO "communes" VALUES('38','Oytier-Saint-Oblas','15',1581,1353,14.3,'2983','50623',232,376);
INSERT INTO "communes" VALUES('38','Saint-Hilaire','34',1532,1248,8.61,'3945','50344',647,2060);
INSERT INTO "communes" VALUES('38','Varacieux','42',826,644,18.48,'3334','50258',326,704);
INSERT INTO "communes" VALUES('38','Cholonge','20',322,229,8.92,'3844','50005',905,2140);
INSERT INTO "communes" VALUES('38','Goncelin','10',2173,1934,14.36,'4047','50381',235,1278);
INSERT INTO "communes" VALUES('38','Coublevie','45',4296,3742,7.05,'3644','50395',250,651);
INSERT INTO "communes" VALUES('38','Saint-Pierre-d''Entremont','29',559,478,32.31,'3908','50461',598,2047);
INSERT INTO "communes" VALUES('38','Brézins','26',1759,1325,8.26,'3300','50388',356,407);
INSERT INTO "communes" VALUES('38','Sainte-Marie-d''Alloix','34',553,569,3.04,'4033','50421',242,380);
INSERT INTO "communes" VALUES('38','Côtes-d''Arey','39',1937,1550,24.31,'2812','50507',217,409);
INSERT INTO "communes" VALUES('38','Rovon','42',593,532,11.82,'3472','50225',172,1471);
INSERT INTO "communes" VALUES('38','Montseveroux','02',884,782,16.48,'2927','50477',289,452);
INSERT INTO "communes" VALUES('38','Sablons','24',2031,1534,10.23,'2707','50353',135,154);
INSERT INTO "communes" VALUES('38','Saint-Aupre','45',1077,875,11.93,'3704','50444',436,925);
INSERT INTO "communes" VALUES('38','Villard-de-Lans','41',4034,3799,67.2,'3571','50078',720,2286);
INSERT INTO "communes" VALUES('38','Saint-Michel-en-Beaumont','06',37,30,8.04,'3959','49854',958,2020);
INSERT INTO "communes" VALUES('38','Châtelus','22',87,90,12.3,'3373','50064',229,1269);
INSERT INTO "communes" VALUES('38','Mottier','07',687,511,10.72,'3312','50466',448,641);
INSERT INTO "communes" VALUES('38','Notre-Dame-de-Commiers','44',475,377,4.79,'3737','50011',317,1323);
INSERT INTO "communes" VALUES('38','Moissieu-sur-Dolon','02',701,500,14.38,'2946','50429',287,463);
INSERT INTO "communes" VALUES('38','Lumbin','34',1969,1459,6.77,'3973','50341',222,880);
INSERT INTO "communes" VALUES('38','Corps','06',511,453,11.22,'4011','49798',639,1840);
INSERT INTO "communes" VALUES('38','Charette','19',461,281,11.26,'3371','50900',240,350);
INSERT INTO "communes" VALUES('38','Saint-Étienne-de-Saint-Geoirs','26',2917,2242,18.62,'3343','50377',369,545);
INSERT INTO "communes" VALUES('38','<NAME>','45',2814,2406,11.53,'3650','50372',184,935);
INSERT INTO "communes" VALUES('38','Commelle','07',794,599,14.04,'3211','50476',396,587);
INSERT INTO "communes" VALUES('38','Saint-Jean-d''Hérans','16',297,241,17.48,'3805','49837',486,1101);
INSERT INTO "communes" VALUES('38','Notre-Dame-de-l''Osier','42',499,393,8.38,'3410','50265',315,556);
INSERT INTO "communes" VALUES('38','Burcin','11',451,370,6.69,'3445','50479',453,734);
INSERT INTO "communes" VALUES('38','Saint-Barthélemy','02',961,761,7.98,'3048','50385',258,326);
INSERT INTO "communes" VALUES('38','Châteauvilain','04',630,484,8.82,'3326','50574',345,644);
INSERT INTO "communes" VALUES('38','Meylan','50',17487,18730,12.32,'3825','50232',206,1313);
INSERT INTO "communes" VALUES('38','Saint-Jean-de-Soudain','33',1430,977,7.48,'3436','50636',303,471);
INSERT INTO "communes" VALUES('38','Éparres','04',901,917,7.95,'3285','50593',319,501);
INSERT INTO "communes" VALUES('38','Voissant','27',205,209,3.88,'3748','50537',269,788);
INSERT INTO "communes" VALUES('38','Chasselay','42',431,341,9.45,'3335','50284',418,729);
INSERT INTO "communes" VALUES('38','Sainte-Marie-du-Mont','34',238,203,23.87,'4010','50451',522,1880);
INSERT INTO "communes" VALUES('38','Monestier-d''Ambel','06',23,20,11.02,'3989','49753',746,2378);
INSERT INTO "communes" VALUES('38','Tréminis','16',173,172,49.4,'3814','49720',792,2755);
INSERT INTO "communes" VALUES('38','Montagnieu','33',896,701,8.83,'3462','50583',380,582);
INSERT INTO "communes" VALUES('38','Chanas','24',2339,1935,11.65,'2758','50354',142,223);
INSERT INTO "communes" VALUES('38','Engins','41',496,420,20.64,'3644','50201',560,1704);
INSERT INTO "communes" VALUES('38','Chatte','30',2406,2445,22.81,'3274','50159',164,443);
INSERT INTO "communes" VALUES('38','Charvieu-Chavagneux','46',7722,7876,8.65,'3142','50829',200,251);
INSERT INTO "communes" VALUES('38','Pont-de-Chéruy','46',5143,4546,2.51,'3152','50834',196,236);
INSERT INTO "communes" VALUES('38','Abrets','21',3455,2704,6.89,'3609','50596',261,434);
INSERT INTO "communes" VALUES('38','Saint-Didier-de-Bizonnes','11',288,209,7.2,'3349','50519',514,647);
INSERT INTO "communes" VALUES('38','Saint-Victor-de-Cessieu','33',2144,1670,12.22,'3394','50601',310,555);
INSERT INTO "communes" VALUES('38','Villard-Saint-Christophe','20',374,272,14.22,'3855','49977',940,2176);
INSERT INTO "communes" VALUES('38','Paladru','27',1087,865,11.64,'3574','50529',488,711);
INSERT INTO "communes" VALUES('38','Saint-Arey','20',79,56,6.67,'3775','49858',487,1483);
INSERT INTO "communes" VALUES('38','Laval','09',962,805,25.33,'3995','50281',320,2600);
INSERT INTO "communes" VALUES('38','Saint-Théoffrey','20',449,340,5.75,'3818','49999',905,1240);
INSERT INTO "communes" VALUES('38','<NAME>','37',6411,5688,6.64,'3118','50708',205,305);
INSERT INTO "communes" VALUES('38','Vizille','44',7630,7442,10.51,'3817','50087',268,1016);
INSERT INTO "communes" VALUES('38','Saint-Clair-de-la-Tour','33',3428,2684,9.24,'3495','50638',314,425);
INSERT INTO "communes" VALUES('38','Jarrie','44',3853,4010,13.26,'3784','50108',259,733);
INSERT INTO "communes" VALUES('38','Faverges-de-la-Tour','33',1285,1106,7.67,'3541','50657',285,432);
INSERT INTO "communes" VALUES('38','Le Monestier-du-Percy','05',239,164,14.99,'3691','49771',597,1896);
INSERT INTO "communes" VALUES('38','La Tour-du-Pin','33',7975,6540,4.77,'3454','50629',309,461);
INSERT INTO "communes" VALUES('38','Beaufin','06',22,27,6.36,'4026','49764',744,2080);
INSERT INTO "communes" VALUES('38','Lentiol','25',215,147,7.6,'3085','50332',337,479);
INSERT INTO "communes" VALUES('38','Saint-Martin-de-Vaulserre','21',254,206,3.92,'3718','50549',320,584);
INSERT INTO "communes" VALUES('38','Lalley','05',210,185,23.65,'3710','49731',673,2045);
INSERT INTO "communes" VALUES('38','Lans-en-Vercors','41',2557,2037,38.67,'3613','50142',902,1960);
INSERT INTO "communes" VALUES('38','Roussillon','24',7964,7438,11.62,'2750','50413',146,265);
INSERT INTO "communes" VALUES('38','Percy','05',138,111,15.93,'3681','49779',591,1880);
INSERT INTO "communes" VALUES('38','Saint-Maurice-en-Trièves','05',168,163,12.94,'3697','49738',671,1975);
INSERT INTO "communes" VALUES('38','Roches-de-Condrieu','39',1957,1816,1.03,'2701','50503',155,200);
INSERT INTO "communes" VALUES('38','Morêtel-de-Mailles','10',400,303,6.71,'4089','50408',250,1178);
INSERT INTO "communes" VALUES('38','Badinières','04',606,418,5.99,'3295','50566',396,550);
INSERT INTO "communes" VALUES('38','Meyrieu-les-Étangs','28',868,714,8.54,'3181','50571',410,527);
INSERT INTO "communes" VALUES('38','Noyarey','32',2243,2103,16.86,'3661','50271',191,1649);
INSERT INTO "communes" VALUES('38','Saint-Ismier','60',6381,5922,14.9,'3878','50276',216,1489);
INSERT INTO "communes" VALUES('38','Oris-en-Rattier','36',111,83,18.83,'3926','49912',768,2606);
INSERT INTO "communes" VALUES('38','Jarcieu','02',1036,780,6.31,'2900','50371',205,248);
INSERT INTO "communes" VALUES('38','Heyrieux','15',4756,4158,13.95,'3030','50699',259,381);
INSERT INTO "communes" VALUES('38','Château-Bernard','18',280,167,18.27,'3600','49972',754,2286);
INSERT INTO "communes" VALUES('38','Sonnay','24',1299,959,14.17,'2856','50394',225,407);
INSERT INTO "communes" VALUES('38','Fontaine','96',22243,23323,6.74,'3720','50214',202,1007);
INSERT INTO "communes" VALUES('38','Saint-Jean-de-Vaulx','44',552,450,10.73,'3802','50014',890,1631);
INSERT INTO "communes" VALUES('38','Venon','55',722,677,4.34,'3853','50191',298,921);
INSERT INTO "communes" VALUES('38','Saint-Julien-de-l''Herms','02',144,111,9.17,'3064','50481',374,507);
INSERT INTO "communes" VALUES('38','Dolomieu','33',2956,2369,13.32,'3514','50679',260,454);
INSERT INTO "communes" VALUES('38','Granieu','21',447,258,3.73,'3613','50666',214,311);
INSERT INTO "communes" VALUES('38','<NAME>','40',1887,1716,28.48,'3679','50028',340,2161);
INSERT INTO "communes" VALUES('38','Saint-André-le-Gaz','21',2522,1954,8.89,'3553','50610',356,488);
INSERT INTO "communes" VALUES('38','Cordéac','16',205,193,26.62,'3891','49808',579,2793);
INSERT INTO "communes" VALUES('38','Montferrat','27',1588,1286,12.26,'3616','50542',488,721);
INSERT INTO "communes" VALUES('38','Sainte-Luce','06',40,22,7.95,'3972','49834',667,1877);
INSERT INTO "communes" VALUES('38','Valencogne','43',603,458,7.55,'3559','50555',516,680);
INSERT INTO "communes" VALUES('38','<NAME>','34',446,387,2.85,'4029','50443',319,920);
INSERT INTO "communes" VALUES('38','Eyzin-Pinet','39',2150,1819,28.44,'2958','50526',218,450);
INSERT INTO "communes" VALUES('38','Longechenal','11',570,428,8.12,'3346','50465',489,671);
INSERT INTO "communes" VALUES('38','Saint-Guillaume','18',282,270,13.33,'3614','49950',550,1733);
INSERT INTO "communes" VALUES('38','Lieudieu','28',292,248,5.94,'3161','50509',452,543);
INSERT INTO "communes" VALUES('38','Lavars','16',138,113,14.8,'3706','49832',484,1080);
INSERT INTO "communes" VALUES('38','<NAME>','34',2977,2822,11.56,'4013','50397',236,1008);
INSERT INTO "communes" VALUES('38','Saint-Paul-d''Izeaux','35',314,295,7.63,'3436','50352',458,764);
INSERT INTO "communes" VALUES('38','<NAME>','03',114,65,9.09,'4121','50077',715,1859);
INSERT INTO "communes" VALUES('38','Barraux','34',1862,1475,11.13,'4046','50483',241,950);
INSERT INTO "communes" VALUES('38','Brion','26',130,138,3.94,'3335','50325',466,724);
INSERT INTO "communes" VALUES('38','<NAME>','09',4566,3814,6.35,'3917','50240',216,441);
INSERT INTO "communes" VALUES('38','Le Pont-de-Beauvoisin','21',3453,2500,7.36,'3700','50594',239,332);
INSERT INTO "communes" VALUES('38','Theys','10',1992,1571,35.77,'4067','50334',320,2124);
INSERT INTO "communes" VALUES('38','Saint-Jean-le-Vieux','09',243,211,4.59,'3939','50236',313,1169);
INSERT INTO "communes" VALUES('38','La Bâtie-Montgascon','21',1771,1433,8.43,'3546','50644',314,425);
INSERT INTO "communes" VALUES('38','Saint-Michel-de-Saint-Geoirs','26',293,247,7.14,'3355','50339',459,728);
INSERT INTO "communes" VALUES('38','Siccieu-Saint-Julien-et-Carisieu','08',581,496,14.22,'3311','50817',237,417);
INSERT INTO "communes" VALUES('38','Beaucroissant','23',1477,1245,11.18,'3482','50378',332,753);
INSERT INTO "communes" VALUES('38','Domarin','04',1415,1427,2.99,'3231','50651',231,450);
INSERT INTO "communes" VALUES('38','Champ-sur-Drac','44',3136,3262,8.92,'3773','50077',259,1281);
INSERT INTO "communes" VALUES('38','Valencin','15',2510,2073,9.63,'2976','50680',270,379);
INSERT INTO "communes" VALUES('38','Besse','03',142,130,25.46,'4259','50080',1228,3122);
INSERT INTO "communes" VALUES('38','Saint-Mury-Monteymond','09',349,314,11.09,'3989','50247',320,2600);
INSERT INTO "communes" VALUES('38','Échirolles','95',35748,32811,7.86,'3757','50159',217,395);
INSERT INTO "communes" VALUES('38','Champagnier','44',1256,961,6.61,'3770','50125',239,516);
INSERT INTO "communes" VALUES('38','Saint-Nizier-du-Moucherotte','41',1030,804,11.26,'3660','50190',863,1897);
INSERT INTO "communes" VALUES('38','Tencin','10',1222,897,6.75,'4026','50344',229,1116);
INSERT INTO "communes" VALUES('38','La Sône','30',633,589,2.95,'3268','50124',160,270);
INSERT INTO "communes" VALUES('38','Pommiers-la-Placette','45',568,590,16.92,'3690','50353',344,1849);
INSERT INTO "communes" VALUES('38','Avenières','19',5430,4306,30,'3585','50706',201,291);
INSERT INTO "communes" VALUES('38','Revel-Tourdan','02',1024,842,11.62,'3002','50427',267,444);
INSERT INTO "communes" VALUES('38','Diémoz','15',2626,2241,13.72,'3064','50654',287,423);
INSERT INTO "communes" VALUES('38','La Chapelle-de-la-Tour','33',1664,1382,9.04,'3474','50650',323,453);
INSERT INTO "communes" VALUES('38','Entre-deux-Guiers','29',1766,1476,10.55,'3793','50480',373,1420);
INSERT INTO "communes" VALUES('38','Izeaux','23',2111,1810,15.54,'3431','50371',405,700);
INSERT INTO "communes" VALUES('38','Rencurel','22',304,295,34.63,'3485','50114',631,1625);
INSERT INTO "communes" VALUES('38','Fontanil-Cornillon','51',2818,2454,5.5,'3698','50284',196,1240);
INSERT INTO "communes" VALUES('38','Veyssilieu','08',293,240,6.49,'3204','50756',248,432);
INSERT INTO "communes" VALUES('38','Proveysieux','51',522,479,20.37,'3736','50292',264,1844);
INSERT INTO "communes" VALUES('38','Côtes-de-Corps','06',66,43,9.83,'3985','49814',680,2015);
INSERT INTO "communes" VALUES('38','Châtenay','25',428,303,4.62,'3214','50356',324,548);
INSERT INTO "communes" VALUES('38','Saint-Gervais','42',574,378,13.15,'3495','50224',178,1536);
INSERT INTO "communes" VALUES('38','Malleval-en-Vercors','42',51,30,14.1,'3445','50164',440,1440);
INSERT INTO "communes" VALUES('38','Saint-Clair-du-Rhône','24',3890,3599,7.16,'2707','50489',153,307);
INSERT INTO "communes" VALUES('38','Charnècles','23',1481,1309,5.23,'3546','50382',260,405);
INSERT INTO "communes" VALUES('38','Ornacieux','07',403,228,4.89,'3194','50445',371,540);
INSERT INTO "communes" VALUES('38','Huez','03',1368,1662,14.16,'4136','50092',1024,3081);
INSERT INTO "communes" VALUES('38','Hières-sur-Amby','08',1149,998,8.73,'3286','50886',193,429);
INSERT INTO "communes" VALUES('38','Bresson','47',692,738,2.78,'3792','50152',228,533);
INSERT INTO "communes" VALUES('38','Montalieu-Vercieu','19',3189,2177,8.66,'3408','50905',200,347);
INSERT INTO "communes" VALUES('38','Grenoble','98',155637,153426,18.13,'3766','50208',204,600);
INSERT INTO "communes" VALUES('38','Varces-Allières-et-Risset','40',6330,5342,20.88,'3717','50096',247,1960);
INSERT INTO "communes" VALUES('38','Brangues','19',585,469,11.67,'3550','50770',204,236);
INSERT INTO "communes" VALUES('38','Saint-Siméon-de-Bressieux','26',2777,2493,18.79,'3250','50365',337,627);
INSERT INTO "communes" VALUES('38','Blandin','43',140,122,4.26,'3457','50522',387,664);
INSERT INTO "communes" VALUES('38','Saint-Romain-de-Jalionas','08',3147,2749,13.65,'3204','50837',194,222);
INSERT INTO "communes" VALUES('38','Revel','09',1377,1165,29.55,'3924','50206',299,2840);
INSERT INTO "communes" VALUES('38','Ornon','03',131,138,11.6,'4046','50054',799,2856);
INSERT INTO "communes" VALUES('38','Saint-Just-de-Claix','22',1219,1024,11.59,'3275','50083',160,320);
INSERT INTO "communes" VALUES('38','Passins','19',1120,699,13.92,'3436','50764',210,377);
INSERT INTO "communes" VALUES('38','<NAME>','50',1072,941,15.13,'3824','50292',840,2079);
INSERT INTO "communes" VALUES('38','Panossas','08',605,500,7.99,'3186','50754',223,390);
INSERT INTO "communes" VALUES('38','Vaulnaveys-le-Bas','44',1174,1075,11.9,'3854','50118',287,1326);
INSERT INTO "communes" VALUES('38','Veurey-Voroize','32',1380,1316,12.21,'3642','50302',178,1620);
INSERT INTO "communes" VALUES('38','Saint-Andéol','18',116,123,29.7,'3573','49957',792,2087);
INSERT INTO "communes" VALUES('38','Chavanoz','46',4288,3943,8.24,'3150','50864',188,245);
INSERT INTO "communes" VALUES('38','Domène','09',6626,6413,5.29,'3891','50225',214,520);
INSERT INTO "communes" VALUES('38','Anthon','46',969,920,8.82,'3148','50879',182,249);
INSERT INTO "communes" VALUES('38','Bourgoin-Jallieu','94',26173,22934,24.37,'3270','50657',215,382);
INSERT INTO "communes" VALUES('38','Roche','37',1878,1547,20.14,'3136','50654',267,516);
INSERT INTO "communes" VALUES('38','Saint-Martin-le-Vinoux','51',5357,5191,10.06,'3755','50226',205,1299);
INSERT INTO "communes" VALUES('38','Flachères','11',496,301,4.94,'3308','50522',530,641);
INSERT INTO "communes" VALUES('38','<NAME>','50',6232,6452,6.42,'3782','50229',207,1045);
INSERT INTO "communes" VALUES('38','Saint-Albin-de-Vaulserre','21',371,368,4.99,'3740','50561',253,522);
INSERT INTO "communes" VALUES('38','Tignieu-Jameyzieu','08',6055,4835,13.32,'3167','50815',199,237);
INSERT INTO "communes" VALUES('38','Charantonnay','15',1880,1555,11,'3079','50596',337,472);
INSERT INTO "communes" VALUES('38','Merlas','27',496,407,15.64,'3696','50494',400,925);
INSERT INTO "communes" VALUES('38','Saint-Alban-de-Roche','04',1811,1758,6.11,'3208','50662',230,462);
INSERT INTO "communes" VALUES('38','Saint-Paul-de-Varces','40',2167,1845,19.69,'3671','50079',293,2047);
INSERT INTO "communes" VALUES('38','Virieu','43',1049,940,11.38,'3488','50540',384,775);
INSERT INTO "communes" VALUES('38','Panissage','43',451,354,4.88,'3474','50549',381,636);
INSERT INTO "communes" VALUES('38','Sainte-Blandine','33',904,763,9.21,'3449','50607',328,493);
INSERT INTO "communes" VALUES('38','Auberives-sur-Varèze','24',1487,1159,7.05,'2757','50472',169,256);
INSERT INTO "communes" VALUES('38','Saint-Savin','53',3566,2751,24.55,'3299','50699',216,403);
INSERT INTO "communes" VALUES('38','Allevard','01',3783,3085,25.63,'4153','50437',399,2749);
INSERT INTO "communes" VALUES('38','Saint-Jean-d''Avelanne','21',901,620,7.85,'3707','50563',256,549);
INSERT INTO "communes" VALUES('38','Bizonnes','11',835,630,11.04,'3382','50505',529,642);
INSERT INTO "communes" VALUES('38','Saint-Christophe-en-Oisans','03',114,106,123.47,'4267','49952',1168,4008);
INSERT INTO "communes" VALUES('38','Saint-Pierre-de-Chartreuse','29',1011,769,80.12,'3865','50380',640,2079);
INSERT INTO "communes" VALUES('38','Serpaize','38',1511,1240,11.71,'2868','50621',190,324);
INSERT INTO "communes" VALUES('38','Vinay','42',4070,3528,16.01,'3408','50233',168,580);
INSERT INTO "communes" VALUES('38','Chimilin','21',1359,1144,9.66,'3625','50641',228,362);
INSERT INTO "communes" VALUES('38','Saint-Martin-de-Clelles','05',160,116,14.72,'3650','49829',519,2082);
INSERT INTO "communes" VALUES('38','Saint-Maximin','10',641,539,10.35,'4112','50474',274,1204);
INSERT INTO "communes" VALUES('38','Avignonet','18',214,189,8.41,'3689','49954',362,825);
INSERT INTO "communes" VALUES('38','Laffrey','44',382,311,6.72,'3819','50027',680,1262);
INSERT INTO "communes" VALUES('38','Serre-Nerpol','42',297,284,13.16,'3376','50287',340,720);
INSERT INTO "communes" VALUES('38','Villette-de-Vienne','38',1631,1173,11.03,'2864','50654',196,364);
INSERT INTO "communes" VALUES('38','<NAME>','26',297,235,9.22,'3408','50328',503,773);
INSERT INTO "communes" VALUES('38','Nivolas-Vermelle','04',2339,1823,6.09,'3300','50618',258,441);
INSERT INTO "communes" VALUES('38','Saint-Geoirs','26',497,410,6.93,'3353','50358',414,747);
INSERT INTO "communes" VALUES('38','Optevoz','08',760,530,12,'3328','50836',280,415);
INSERT INTO "communes" VALUES('38','<NAME>','36',73,58,7.87,'3911','49936',710,2203);
INSERT INTO "communes" VALUES('38','Sousville','20',149,123,2.93,'3856','49904',560,942);
INSERT INTO "communes" VALUES('38','Saint-Paul-lès-Monestier','18',260,220,13.88,'3657','49922',515,1800);
INSERT INTO "communes" VALUES('38','Roissard','18',251,193,14.25,'3670','49869',486,1800);
INSERT INTO "communes" VALUES('38','Marcieu','20',70,71,11.97,'3725','49905',485,1729);
INSERT INTO "communes" VALUES('38','Luzinay','38',2206,1973,18.96,'2908','50654',207,366);
INSERT INTO "communes" VALUES('38','<NAME>','01',228,214,54.33,'4167','50355',812,2925);
INSERT INTO "communes" VALUES('38','Pisieu','02',528,470,18.76,'3026','50430',291,490);
INSERT INTO "communes" VALUES('38','Dionay','30',121,107,14.01,'3203','50226',392,625);
INSERT INTO "communes" VALUES('38','Saint-Sébastien','16',255,178,20.98,'3847','49830',579,1931);
INSERT INTO "communes" VALUES('38','Mayres-Savel','20',106,107,12.51,'3761','49860',484,1769);
INSERT INTO "communes" VALUES('38','Saint-Vérand','30',1823,1447,17.83,'3328','50192',276,480);
INSERT INTO "communes" VALUES('38','Corbelin','21',2124,1752,12,'3565','50675',212,365);
INSERT INTO "communes" VALUES('38','Four','37',1120,912,11.82,'3177','50653',270,529);
INSERT INTO "communes" VALUES('38','Saint-Jean-de-Moirans','23',3090,2675,6.43,'3606','50379',186,304);
INSERT INTO "communes" VALUES('38','<NAME>','06',72,76,22.29,'4043','49823',983,2402);
INSERT INTO "communes" VALUES('38','Saint-Hilaire-de-la-Côte','07',1434,1106,13.75,'3323','50434',361,647);
INSERT INTO "communes" VALUES('38','Vézeronce-Curtin','19',1784,1506,14.37,'3482','50723',205,316);
INSERT INTO "communes" VALUES('38','Vertrieu','08',660,469,4.59,'3367','50970',196,360);
INSERT INTO "communes" VALUES('38','Hurtières','10',176,121,3.35,'4038','50320',429,1038);
INSERT INTO "communes" VALUES('38','Marcollin','25',629,460,10.69,'3057','50340',279,442);
INSERT INTO "communes" VALUES('38','Roybon','25',1297,1233,67.31,'3231','50287',436,729);
INSERT INTO "communes" VALUES('38','Chamrousse','93',453,523,13.29,'3932','50124',1384,2440);
INSERT INTO "communes" VALUES('38','Bessins','30',129,107,4.65,'3253','50225',405,650);
INSERT INTO "communes" VALUES('38','Chozeau','08',1040,814,8.2,'3190','50774',204,416);
INSERT INTO "communes" VALUES('38','Morestel','19',4201,3032,8.03,'3481','50753',205,319);
INSERT INTO "communes" VALUES('38','Saint-Hilaire-de-Brens','08',516,414,7.52,'3283','50747',218,387);
INSERT INTO "communes" VALUES('38','<NAME>','40',11268,11604,5.6,'3735','50137',227,391);
INSERT INTO "communes" VALUES('38','<NAME>','36',156,130,19.45,'3910','50033',1063,2653);
INSERT INTO "communes" VALUES('38','Saint-Georges-d''Espéranche','15',3208,2838,24.65,'3045','50618',270,456);
INSERT INTO "communes" VALUES('38','Saint-Égrève','51',16006,15510,10.88,'3718','50257',198,1299);
INSERT INTO "communes" VALUES('38','Corenc','50',3851,3842,6.5,'3793','50235',221,1328);
INSERT INTO "communes" VALUES('38','Vénérieu','08',583,382,6,'3268','50732',217,420);
INSERT INTO "communes" VALUES('38','Saint-Barthélemy-de-Séchilienne','44',471,529,12.1,'3877','50049',301,1925);
INSERT INTO "communes" VALUES('38','Pinsot','01',200,139,24.27,'4182','50397',551,2858);
INSERT INTO "communes" VALUES('38','Sinard','18',639,579,10.44,'3689','49939',485,1005);
INSERT INTO "communes" VALUES('38','Moras','08',470,415,8.32,'3246','50764',275,436);
INSERT INTO "communes" VALUES('38','Saint-Pierre-de-Mésage','44',719,674,7.03,'3808','50058',289,1342);
INSERT INTO "communes" VALUES('38','Poliénas','35',1098,917,14.03,'3483','50277',178,409);
INSERT INTO "communes" VALUES('38','Saint-Martin-de-la-Cluze','18',607,566,16.26,'3691','49981',330,941);
INSERT INTO "communes" VALUES('38','Miribel-les-Échelles','29',1743,1708,29.34,'3746','50477',310,920);
INSERT INTO "communes" VALUES('38','Satolas-et-Bonce','37',2101,1648,16.8,'3104','50770',200,285);
INSERT INTO "communes" VALUES('38','Salagnon','53',1197,931,8.21,'3354','50741',221,397);
INSERT INTO "communes" VALUES('38','Montcarra','33',475,352,4.9,'3394','50681',309,452);
INSERT INTO "communes" VALUES('38','Saint-Sorlin-de-Morestel','19',543,448,5.38,'3489','50708',220,419);
INSERT INTO "communes" VALUES('38','Corrençon-en-Vercors','41',359,322,39.34,'3544','50035',1055,2286);
INSERT INTO "communes" VALUES('38','Bévenais','11',928,649,14.08,'3392','50442',426,705);
INSERT INTO "communes" VALUES('38','Chamagnieu','08',1487,1180,13.7,'3143','50756',202,341);
INSERT INTO "communes" VALUES('38','Têche','30',560,495,5.03,'3383','50203',162,411);
INSERT INTO "communes" VALUES('38','Saint-Martin-d''Uriage','09',5446,4793,29.69,'3892','50169',320,2200);
INSERT INTO "communes" VALUES('38','Saint-Marcellin','30',8062,6947,7.81,'3314','50168',174,454);
INSERT INTO "communes" VALUES('38','Allemond','03',871,760,44.75,'4112','50145',702,2969);
INSERT INTO "communes" VALUES('38','Saint-Bernard','34',632,468,21.59,'3963','50366',593,2047);
INSERT INTO "communes" VALUES('38','Prunières','20',376,312,8.2,'3807','49881',592,1617);
INSERT INTO "communes" VALUES('38','Eclose','28',713,536,10.29,'3292','50554',478,640);
INSERT INTO "communes" VALUES('38','Livet-et-Gavet','03',1226,1365,46.54,'3962','50101',366,2763);
INSERT INTO "communes" VALUES('38','Saint-Lattier','30',1265,1034,18.17,'3183','50098',144,406);
INSERT INTO "communes" VALUES('38','Saint-Just-Chaleyssin','15',2468,2241,13.95,'2959','50650',218,373);
INSERT INTO "communes" VALUES('38','Anjou','24',992,810,5.03,'2828','50385',218,383);
INSERT INTO "communes" VALUES('38','Culin','28',662,516,7.32,'3240','50582',421,536);
INSERT INTO "communes" VALUES('38','<NAME>','07',4833,4238,27.93,'3249','50437',335,582);
INSERT INTO "communes" VALUES('38','Maubec','04',1608,1369,8.57,'3255','50631',255,491);
INSERT INTO "communes" VALUES('38','Saint-Romain-de-Surieu','24',324,246,4.71,'2830','50429',240,402);
INSERT INTO "communes" VALUES('38','Reventin-Vaugris','39',1765,1575,18.4,'2782','50520',141,404);
INSERT INTO "communes" VALUES('38','Septème','38',1750,1469,21.55,'2964','50614',188,386);
INSERT INTO "communes" VALUES('38','Rives','23',6062,5601,10.93,'3517','50390',314,469);
INSERT INTO "communes" VALUES('38','Pajay','07',1050,796,14.32,'3114','50404',270,410);
INSERT INTO "communes" VALUES('38','Assieu','24',1316,889,12.34,'2813','50452',220,407);
INSERT INTO "communes" VALUES('38','Succieu','04',703,547,8.35,'3336','50586',324,571);
INSERT INTO "communes" VALUES('38','Châlons','02',165,162,5.2,'2883','50496',297,428);
INSERT INTO "communes" VALUES('38','Meyrié','04',1001,831,3.43,'3278','50622',283,400);
INSERT INTO "communes" VALUES('38','Plan','26',246,182,6.1,'3395','50348',452,785);
INSERT INTO "communes" VALUES('38','Saint-Bueil','27',700,628,3.81,'3726','50530',293,570);
INSERT INTO "communes" VALUES('38','Saint-Cassien','23',1107,961,5.67,'3574','50400',307,424);
INSERT INTO "communes" VALUES('38','Salaise-sur-Sanne','24',4201,3645,16.15,'2758','50383',137,234);
INSERT INTO "communes" VALUES('38','Saint-Baudille-de-la-Tour','08',744,570,21.76,'3335','50877',230,404);
INSERT INTO "communes" VALUES('38','Montchaboud','44',369,335,1.96,'3806','50106',261,733);
INSERT INTO "communes" VALUES('38','Saint-Pierre-de-Chérennes','22',476,354,12.03,'3362','50134',170,1400);
INSERT INTO "communes" VALUES('38','Dizimieu','08',651,497,9.74,'3291','50798',230,417);
INSERT INTO "communes" VALUES('38','Moirans','23',7780,7485,20.06,'3586','50361',180,341);
INSERT INTO "communes" VALUES('38','Sarcenas','51',197,141,7.76,'3801','50304',892,2079);
INSERT INTO "communes" VALUES('38','Beauvoir-de-Marc','28',1028,957,11.27,'3047','50576',306,456);
INSERT INTO "communes" VALUES('38','Prébois','16',163,140,16.03,'3732','49766',596,1720);
INSERT INTO "communes" VALUES('38','Chèzeneuve','37',499,373,6.79,'3207','50625',400,529);
INSERT INTO "communes" VALUES('38','Auberives-en-Royans','22',359,326,5.07,'3294','50070',170,330);
INSERT INTO "communes" VALUES('38','Saint-Antoine-l''Abbaye','30',1016,907,22.21,'3200','50194',274,578);
INSERT INTO "communes" VALUES('38','Gillonnay','07',975,824,14.29,'3289','50437',346,633);
INSERT INTO "communes" VALUES('38','Tramolé','28',533,476,6.99,'3257','50577',394,538);
INSERT INTO "communes" VALUES('38','<NAME>','10',2673,2117,8.44,'4062','50413',240,1202);
INSERT INTO "communes" VALUES('38','Saint-Maurice-l''Exil','24',5845,5512,12.82,'2709','50441',139,265);
INSERT INTO "communes" VALUES('38','Clelles','05',510,376,20.88,'3652','49808',520,1560);
INSERT INTO "communes" VALUES('38','Belmont','11',463,266,6.51,'3363','50526',455,662);
INSERT INTO "communes" VALUES('38','Valjouffrey','36',148,156,72.56,'4105','49858',923,3565);
INSERT INTO "communes" VALUES('38','Chassignieu','43',206,192,5.17,'3520','50556',373,607);
INSERT INTO "communes" VALUES('38','Saint-Quentin-sur-Isère','35',1311,1232,19.45,'3562','50310',176,1008);
INSERT INTO "communes" VALUES('38','Penol','07',322,288,12.16,'3171','50434',281,455);
INSERT INTO "communes" VALUES('38','Quaix-en-Chartreuse','51',924,741,18.09,'3758','50281',270,1689);
INSERT INTO "communes" VALUES('38','<NAME>','03',265,220,14.54,'4210','50050',871,3445);
INSERT INTO "communes" VALUES('38','Herbeys','55',1343,1168,7.73,'3841','50154',417,935);
INSERT INTO "communes" VALUES('38','Chonas-l''Amballan','39',1545,1218,7.41,'2750','50512',146,323);
INSERT INTO "communes" VALUES('38','<NAME>','03',3327,2992,35.75,'4103','50061',701,3121);
INSERT INTO "communes" VALUES('38','Annoisin-Chatelans','08',634,541,13.27,'3285','50841',280,452);
INSERT INTO "communes" VALUES('38','Montagne','30',265,249,8.78,'3173','50157',259,560);
INSERT INTO "communes" VALUES('38','Villefontaine','58',18374,17757,11.63,'3125','50682',208,352);
INSERT INTO "communes" VALUES('38','Vasselin','19',424,300,3.85,'3464','50701',221,450);
INSERT INTO "communes" VALUES('38','Saint-Quentin-Fallavier','37',5922,5847,22.83,'3082','50702',206,364);
INSERT INTO "communes" VALUES('38','Pont-Évêque','38',5041,5065,8.76,'2861','50589',165,321);
INSERT INTO "communes" VALUES('38','Villemoirieu','08',1809,1391,13.29,'3222','50795',203,425);
INSERT INTO "communes" VALUES('38','Ruy','53',4198,3760,20.81,'3312','50654',244,505);
INSERT INTO "communes" VALUES('38','Estrablin','39',3264,3217,20.69,'2920','50574',186,352);
INSERT INTO "communes" VALUES('38','Sassenage','32',10996,9726,13.31,'3698','50228',199,1409);
INSERT INTO "communes" VALUES('38','Nantes-en-Ratier','20',479,395,12.13,'3878','49928',587,1975);
INSERT INTO "communes" VALUES('38','Saint-Ondras','43',597,496,8.15,'3567','50575',361,626);
INSERT INTO "communes" VALUES('38','Marcilloles','25',998,760,9.5,'3163','50378',288,351);
INSERT INTO "communes" VALUES('38','Cour-et-Buis','02',851,726,13.73,'2965','50489',328,462);
INSERT INTO "communes" VALUES('38','Saint-Honoré','20',814,780,14.58,'3856','49949',895,2384);
INSERT INTO "communes" VALUES('38','Moidieu-Détourbe','39',1790,1409,18.04,'2977','50569',235,423);
INSERT INTO "communes" VALUES('38','Sillans','26',1860,1404,12.61,'3391','50379',393,567);
INSERT INTO "communes" VALUES('38','Jardin','39',2241,1951,9.25,'2857','50552',194,407);
INSERT INTO "communes" VALUES('38','Ponsonnas','20',272,224,2.9,'3845','49877',496,870);
INSERT INTO "communes" VALUES('38','Cheyssieu','24',1047,731,8.55,'2781','50477',180,254);
INSERT INTO "communes" VALUES('38','<NAME>','11',2940,2356,12.9,'3426','50443',434,724);
INSERT INTO "communes" VALUES('38','Saint-Prim','24',1200,892,7.3,'2730','50493',155,309);
INSERT INTO "communes" VALUES('38','Torchefelon','33',621,449,8.68,'3404','50578',378,589);
INSERT INTO "communes" VALUES('38','Saint-Pierre-de-Bressieux','26',684,627,23.08,'3276','50350',378,723);
INSERT INTO "communes" VALUES('38','Froges','10',3435,3090,6.43,'3987','50304',219,965);
INSERT INTO "communes" VALUES('38','La Combe-de-Lancey','09',705,529,18.55,'3957','50251',316,2813);
INSERT INTO "communes" VALUES('38','Siévoz','36',121,116,7.37,'3890','49893',582,1605);
INSERT INTO "communes" VALUES('38','Saint-Clair-sur-Galaure','25',272,248,15.3,'3120','50289',388,540);
INSERT INTO "communes" VALUES('38','Renage','23',3717,3331,5.1,'3499','50370',229,464);
INSERT INTO "communes" VALUES('38','Oulles','03',12,16,11.01,'4051','50083',728,2559);
INSERT INTO "communes" VALUES('38','Murianette','09',874,617,6.07,'3871','50213',213,999);
INSERT INTO "communes" VALUES('38','Pierre-Châtel','20',1333,1206,11.48,'3821','49952',888,1424);
INSERT INTO "communes" VALUES('38','Villard-Notre-Dame','03',25,41,14.06,'4119','50021',720,3023);
INSERT INTO "communes" VALUES('38','Seyssuel','38',1990,1885,9.75,'2788','50622',141,357);
INSERT INTO "communes" VALUES('38','<NAME>','20',5091,5188,8.33,'3834','49892',720,1204);
INSERT INTO "communes" VALUES('38','Meyssiès','28',602,535,13.88,'3019','50523',280,477);
INSERT INTO "communes" VALUES('38','Poisat','55',2078,2079,2.56,'3806','50176',214,724);
INSERT INTO "communes" VALUES('38','Chichilianne','05',274,206,62.48,'3595','49791',798,2082);
INSERT INTO "communes" VALUES('38','Mizoën','03',193,163,14.6,'4229','50056',955,2964);
INSERT INTO "communes" VALUES('38','Royas','28',386,305,5.48,'3075','50562',329,472);
INSERT INTO "communes" VALUES('38','Notre-Dame-de-Mésage','44',1198,1201,4.53,'3799','50079',270,1276);
INSERT INTO "communes" VALUES('38','Bilieu','43',1274,926,6.71,'3570','50499',488,810);
INSERT INTO "communes" VALUES('38','Saint-Sauveur','30',1927,1675,9.42,'3339','50169',160,301);
INSERT INTO "communes" VALUES('38','Pact','02',829,642,9.74,'2950','50392',238,309);
INSERT INTO "communes" VALUES('38','Veyrins-Thuellin','19',1904,1482,11.56,'3558','50695',204,322);
INSERT INTO "communes" VALUES('38','Primarette','02',720,621,21.76,'2993','50446',300,485);
INSERT INTO "communes" VALUES('38','Saint-Didier-de-la-Tour','33',1813,1420,14.63,'3496','50617',328,554);
INSERT INTO "communes" VALUES('38','Morette','35',386,362,6.27,'3462','50317',280,761);
INSERT INTO "communes" VALUES('38','Quincieu','35',81,74,4.75,'3387','50306',480,771);
INSERT INTO "communes" VALUES('38','Saint-Bonnet-de-Chavagne','30',628,449,15.18,'3217','50140',160,388);
INSERT INTO "communes" VALUES('38','L''Isle-d''Abeau','58',15586,12033,9.11,'3218','50688',208,302);
INSERT INTO "communes" VALUES('38','Saint-André-en-Royans','22',326,295,10.42,'3336','50095',224,1007);
INSERT INTO "communes" VALUES('38','Vernioz','24',1183,888,11.32,'2854','50469',218,408);
INSERT INTO "communes" VALUES('38','Monteynard','20',478,402,10.72,'3743','49973',362,1712);
INSERT INTO "communes" VALUES('38','Soleymieu','08',702,574,13.36,'3348','50789',221,363);
INSERT INTO "communes" VALUES('38','Miribel-Lanchâtre','18',375,251,9.65,'3649','49972',423,1509);
INSERT INTO "communes" VALUES('38','Savas-Mépin','28',806,575,10.43,'3038','50544',288,472);
INSERT INTO "communes" VALUES('38','Monestier-de-Clermont','18',1273,920,5.45,'3665','49908',679,1070);
INSERT INTO "communes" VALUES('38','Saint-Michel-les-Portes','05',248,143,20.59,'3620','49854',558,2082);
INSERT INTO "communes" VALUES('38','Mens','16',1387,1178,28.29,'3793','49797',612,1929);
INSERT INTO "communes" VALUES('38','Crémieu','08',3347,3171,6.14,'3239','50805',203,415);
INSERT INTO "communes" VALUES('38','Saint-Baudille-et-Pipet','16',254,232,35.97,'3813','49760',718,2696);
INSERT INTO "communes" VALUES('38','Doissin','43',851,616,8.45,'3430','50555',411,661);
INSERT INTO "communes" VALUES('38','Sérézin-de-la-Tour','04',865,612,9.31,'3342','50620',266,466);
INSERT INTO "communes" VALUES('38','Saint-Marcel-Bel-Accueil','53',1296,1253,18.23,'3221','50720',210,452);
INSERT INTO "communes" VALUES('38','Saint-Chef','53',3493,2896,27.16,'3366','50704',218,440);
INSERT INTO "communes" VALUES('38','Vaujany','03',345,311,64.54,'4156','50175',752,3464);
INSERT INTO "communes" VALUES('38','Ville-sous-Anjou','24',1146,1009,18.25,'2808','50402',186,401);
INSERT INTO "communes" VALUES('38','Saint-Pierre-d''Allevard','01',2799,2280,27.09,'4124','50416',429,1766);
INSERT INTO "communes" VALUES('38','Champier','07',1242,967,14.43,'3283','50504',470,631);
INSERT INTO "communes" VALUES('38','Courtenay','19',1201,738,32.08,'3381','50810',219,375);
INSERT INTO "communes" VALUES('38','Châbons','11',1844,1487,18.14,'3438','50493',386,687);
INSERT INTO "communes" VALUES('38','Arandon','19',564,406,12.22,'3436','50790',212,292);
INSERT INTO "communes" VALUES('38','Cessieu','33',2652,2117,14.35,'3378','50630',278,510);
INSERT INTO "communes" VALUES('38','Monsteroux-Milieu','02',741,515,8.17,'2889','50480',267,425);
INSERT INTO "communes" VALUES('38','Chapareillan','34',2747,2148,30.28,'4060','50514',245,1934);
INSERT INTO "communes" VALUES('38','<NAME>-en-Beaumont','06',307,242,9.26,'3919','49847',579,1480);
INSERT INTO "communes" VALUES('38','<NAME>','34',663,566,7.71,'4046','50447',242,420);
INSERT INTO "communes" VALUES('38','Balbins','07',386,371,7.26,'3197','50442',347,530);
INSERT INTO "communes" VALUES('38','Villard-Reculas','03',62,57,4.99,'4106','50102',826,2058);
INSERT INTO "communes" VALUES('38','Beaufort','25',563,415,8.69,'3095','50363',266,374);
INSERT INTO "communes" VALUES('38','Saint-Nicolas-de-Macherin','45',887,779,10.6,'3633','50443',447,952);
INSERT INTO "communes" VALUES('38','Presles','22',99,89,25.68,'3385','50101',468,1370);
INSERT INTO "communes" VALUES('38','Montrevel','43',473,346,9.37,'3406','50532',441,705);
INSERT INTO "communes" VALUES('38','Grenay','15',1453,1191,7.2,'3048','50738',220,321);
INSERT INTO "communes" VALUES('38','Apprieu','11',3108,2530,15.09,'3505','50445',371,773);
INSERT INTO "communes" VALUES('38','Bonnefamille','37',1015,929,9.43,'3104','50662',275,443);
INSERT INTO "communes" VALUES('38','Chélieu','43',661,522,10.13,'3488','50569',374,607);
INSERT INTO "communes" VALUES('38','Auris','03',207,216,11.21,'4167','50052',720,2164);
INSERT INTO "communes" VALUES('38','Gières','55',6118,6131,6.93,'3839','50202',205,660);
INSERT INTO "communes" VALUES('38','Porcieu-Amblagnieu','19',1603,1250,15.8,'3405','50927',191,395);
INSERT INTO "communes" VALUES('38','Saint-Appolinard','30',398,319,10.76,'3251','50210',329,643);
INSERT INTO "communes" VALUES('38','Chirens','45',2197,1889,17.53,'3577','50460',441,876);
INSERT INTO "communes" VALUES('38','<NAME>','20',413,338,14.64,'3757','49945',486,1712);
INSERT INTO "communes" VALUES('38','Bressieux','26',90,90,0.89,'3267','50358',395,525);
INSERT INTO "communes" VALUES('38','Gresse-en-Vercors','18',406,299,81.13,'3589','49891',960,2341);
INSERT INTO "communes" VALUES('38','Saint-Nazaire-les-Eymes','60',2907,2337,8.49,'3907','50277',219,1736);
INSERT INTO "communes" VALUES('38','Romagnieu','21',1433,1236,17.11,'3672','50633',218,364);
INSERT INTO "communes" VALUES('38','Sardieu','07',1017,600,11.2,'3195','50410',322,358);
INSERT INTO "communes" VALUES('38','<NAME>','01',504,425,27.71,'4177','50470',358,2526);
INSERT INTO "communes" VALUES('38','Saint-Jean-de-Bournay','28',4366,3859,26.87,'3112','50558',345,511);
INSERT INTO "communes" VALUES('38','Clonas-sur-Varèze','24',1495,1281,6.83,'2727','50460',157,256);
INSERT INTO "communes" VALUES('38','Villard-Bonnot','09',7296,6955,5.84,'3946','50265',218,448);
INSERT INTO "communes" VALUES('38','Tullins','35',7663,7061,28.79,'3496','50331',179,784);
INSERT INTO "communes" VALUES('38','Montfalcon','25',126,99,5.82,'3150','50283',410,552);
INSERT INTO "communes" VALUES('38','Vourey','23',1578,1549,6.88,'3537','50356',181,402);
INSERT INTO "communes" VALUES('38','Sainte-Anne-sur-Gervonde','28',581,399,7.67,'3219','50555',426,546);
INSERT INTO "communes" VALUES('38','Crolles','34',8451,8253,14.21,'3940','50317',219,1000);
INSERT INTO "communes" VALUES('38','<NAME>','35',637,470,18.45,'3524','50263',178,1604);
INSERT INTO "communes" VALUES('38','Adrets','10',903,648,16.15,'4031','50302',560,2440);
INSERT INTO "communes" VALUES('38','Oyeu','43',919,754,13.69,'3487','50469',516,771);
INSERT INTO "communes" VALUES('38','Biol','11',1373,1201,15.51,'3387','50546',438,691);
INSERT INTO "communes" VALUES('38','<NAME>','23',1795,1618,4.22,'3559','50424',379,787);
INSERT INTO "communes" VALUES('38','<NAME>','10',428,390,3.31,'4013','50326',225,452);
INSERT INTO "communes" VALUES('38','Thodure','25',704,562,14.43,'3146','50352',287,492);
INSERT INTO "communes" VALUES('38','Bougé-Chambalud','24',1252,918,15.85,'2850','50367',172,232);
INSERT INTO "communes" VALUES('38','Pommier-de-Beaurepaire','02',694,583,19.16,'3092','50445',274,507);
INSERT INTO "communes" VALUES('38','Saint-Victor-de-Morestel','19',1125,850,13.13,'3518','50774',205,272);
INSERT INTO "communes" VALUES('38','L''Albenc','42',1091,991,9.86,'3449','50250',170,415);
INSERT INTO "communes" VALUES('38','Saint-Romans','22',1742,1411,17.04,'3322','50129',160,863);
INSERT INTO "communes" VALUES('38','Saint-Blaise-du-Buis','23',993,854,5.44,'3535','50419',372,492);
INSERT INTO "communes" VALUES('38','Valbonnais','36',503,440,23.95,'3964','49889',672,2544);
INSERT INTO "communes" VALUES('38','Voreppe','45',9847,9231,28.65,'3667','50331',185,1702);
INSERT INTO "communes" VALUES('38','Pellafol','06',137,137,34.73,'3968','49775',639,2793);
INSERT INTO "communes" VALUES('38','Biviers','60',2360,2385,6.17,'3852','50267',311,1388);
INSERT INTO "communes" VALUES('38','Vernas','08',230,174,5.87,'3272','50864',195,429);
INSERT INTO "communes" VALUES('38','Entraigues','36',240,229,21.66,'4013','49891',744,2574);
INSERT INTO "communes" VALUES('38','Villette-d''Anthon','46',4284,3906,22.8,'3088','50884',179,260);
INSERT INTO "communes" VALUES('38','Bouvesse-Quirieu','19',1418,969,17.51,'3420','50884',200,338);
INSERT INTO "communes" VALUES('38','Sermérieu','19',1502,1168,17.14,'3414','50746',223,385);
INSERT INTO "communes" VALUES('38','Séchilienne','44',927,760,21.47,'3887','50061',304,1646);
INSERT INTO "communes" VALUES('38','Charancieu','27',714,566,5.53,'3606','50583',386,615);
INSERT INTO "communes" VALUES('38','Murinais','30',381,339,8.22,'3309','50237',345,667);
INSERT INTO "communes" VALUES('38','Chuzelles','38',2052,1958,13.03,'2823','50651',165,361);
INSERT INTO "communes" VALUES('38','Izeron','22',776,609,17.19,'3377','50163',166,1440);
INSERT INTO "communes" VALUES('38','<NAME>','43',766,648,6.68,'3528','50592',365,521);
INSERT INTO "communes" VALUES('38','Choranche','22',131,130,10.63,'3394','50074',200,1200);
INSERT INTO "communes" VALUES('38','Aoste','21',2682,1723,9.82,'3636','50654',207,256);
INSERT INTO "communes" VALUES('38','Seyssins','56',6913,6844,8,'3715','50173',219,1897);
INSERT INTO "communes" VALUES('38','Saint-Étienne-de-Crossey','45',2545,2478,12.84,'3676','50421',370,883);
INSERT INTO "communes" VALUES('38','Méaudre','41',1350,1040,33.87,'3545','50141',940,1625);
INSERT INTO "communes" VALUES('38','Saint-Joseph-de-Rivière','29',1145,958,17.39,'3734','50418',387,1880);
INSERT INTO "communes" VALUES('38','Montaud','35',526,383,14.59,'3583','50292',400,1643);
INSERT INTO "communes" VALUES('38','Bellegarde-Poussieu','02',928,851,16.79,'2916','50422',229,436);
INSERT INTO "communes" VALUES('38','Brié-et-Angonnes','44',2416,1828,9.7,'3833','50124',306,737);
INSERT INTO "communes" VALUES('38','Vénosc','03',815,939,25.06,'4199','49989',816,3465);
INSERT INTO "communes" VALUES('38','Bernin','60',2991,2906,7.67,'3920','50298',219,1200);
INSERT INTO "communes" VALUES('38','Saint-Pancrasse','34',438,407,6.71,'3915','50325',760,2060);
INSERT INTO "communes" VALUES('38','Vatilieu','35',385,341,9.22,'3415','50285',352,787);
INSERT INTO "communes" VALUES('38','Vaulx-Milieu','58',2435,2221,9.02,'3161','50681',208,330);
INSERT INTO "communes" VALUES('38','Trept','08',1774,1539,15.87,'3315','50763',219,360);
INSERT INTO "communes" VALUES('38','Claix','40',7538,7389,24.12,'3706','50133',226,1960);
INSERT INTO "communes" VALUES('38','La Motte-d''Aveillans','20',1794,1526,9.78,'3787','49957',637,1617);
INSERT INTO "communes" VALUES('38','Vif','40',8053,6478,28.3,'3704','50061',277,1263);
INSERT INTO "communes" VALUES('38','Saint-Hilaire-du-Rosier','30',1987,1760,16.42,'3235','50112',151,280);
INSERT INTO "communes" VALUES('38','Chantelouve','36',76,73,33.41,'4035','49982',975,3023);
INSERT INTO "communes" VALUES('38','Mont-de-Lans','03',1255,1086,31.66,'4214','50040',732,3285);
INSERT INTO "communes" VALUES('38','Saint-Agnin-sur-Bion','28',835,674,9.7,'3231','50601',320,503);
INSERT INTO "communes" VALUES('38','Saint-Georges-de-Commiers','44',2102,1886,14.62,'3741','50042',286,1370);
INSERT INTO "communes" VALUES('38','Oz','03',221,153,16.81,'4128','50156',716,3320);
INSERT INTO "communes" VALUES('38','Châtonnay','28',1861,1424,31.84,'3189','50540',424,615);
INSERT INTO "communes" VALUES('38','Saint-Geoire-en-Valdaine','27',2402,1972,16.73,'3665','50508',364,739);
INSERT INTO "communes" VALUES('38','Creys-Mépieu','19',1405,1091,28.99,'3501','50809',200,343);
INSERT INTO "communes" VALUES('38','Villard-Reymond','03',35,31,11.21,'4091','50038',840,2732);
INSERT INTO "communes" VALUES('38','Crachier','04',471,434,3.64,'3210','50609',370,462);
INSERT INTO "communes" VALUES('38','Saint-Sulpice-des-Rivoires','27',450,411,7.16,'3636','50521',511,780);
INSERT INTO "communes" VALUES('38','Villeneuve-de-Marc','28',1141,884,26.18,'3073','50529',344,524);
INSERT INTO "communes" VALUES('38','Lavaldens','36',157,139,41.4,'3945','49981',959,2856);
INSERT INTO "communes" VALUES('38','Marnans','25',147,114,6.6,'3223','50328',441,630);
INSERT INTO "communes" VALUES('38','Saint-Sorlin-de-Vienne','39',821,700,9.94,'2896','50520',219,428);
INSERT INTO "communes" VALUES('38','Saint-Christophe-sur-Guiers','29',798,718,23.54,'3819','50487',386,1761);
INSERT INTO "communes" VALUES('38','Cognin-les-Gorges','42',656,540,12.52,'3417','50190',166,1120);
INSERT INTO "communes" VALUES('38','Le Champ-près-Froges','10',1250,1159,4.83,'4003','50312',220,836);
INSERT INTO "communes" VALUES('38','Semons','07',368,291,10.55,'3176','50480',388,564);
INSERT INTO "communes" VALUES('38','Parmilieu','08',651,421,12.83,'3354','50934',235,442);
INSERT INTO "communes" VALUES('38','Janneyrias','46',1485,1170,10.52,'3084','50836',213,287);
INSERT INTO "communes" VALUES('38','Rochetoirin','33',1034,863,10.62,'3424','50646',302,487);
INSERT INTO "communes" VALUES('38','Fitilieu','21',1709,1275,10.01,'3583','50607',280,407);
INSERT INTO "communes" VALUES('38','Chasse-sur-Rhône','38',5267,4793,7.91,'2737','50645',145,290);
INSERT INTO "communes" VALUES('38','Arzay','07',216,169,9.79,'3149','50473',375,545);
INSERT INTO "communes" VALUES('38','Saint-Laurent-du-Pont','29',4484,4238,35.25,'3776','50431',379,1735);
INSERT INTO "communes" VALUES('38','Saint-Julien-de-Raz','45',434,445,10.81,'3694','50389',463,1891);
INSERT INTO "communes" VALUES('38','<NAME>','26',1085,822,11.8,'3360','50434',407,669);
INSERT INTO "communes" VALUES('38','Seyssinet-Pariset','56',12113,13074,10.65,'3736','50201',209,1565);
INSERT INTO "communes" VALUES('38','Pressins','21',1102,819,10.1,'3656','50584',262,532);
INSERT INTO "communes" VALUES('38','Artas','28',1620,1349,14.15,'3142','50595',364,507);
INSERT INTO "communes" VALUES('38','Beauvoir-en-Royans','22',74,70,2.1,'3335','50134',160,606);
INSERT INTO "communes" VALUES('38','Eydoche','11',477,332,5.58,'3327','50491',493,629);
INSERT INTO "communes" VALUES('38','Vienne','99',29328,29930,22.65,'2820','50584',140,404);
INSERT INTO "communes" VALUES('38','Mont-Saint-Martin','51',88,98,5.31,'3709','50301',520,1844);
INSERT INTO "communes" VALUES('38','Charavines','43',1784,1428,7.52,'3530','50478',440,800);
INSERT INTO "communes" VALUES('38','<NAME>','01',222,161,5.29,'4169','50480',320,1089);
INSERT INTO "communes" VALUES('38','Pontcharra','10',7162,6418,15.58,'4087','50481',244,1217);
INSERT INTO "communes" VALUES('38','Saint-Alban-du-Rhône','24',865,838,3.56,'2687','50474',149,166);
INSERT INTO "communes" VALUES('38','Faramans','07',935,733,10.79,'3141','50437',342,444);
INSERT INTO "communes" VALUES('38','Eybens','55',9582,9473,4.5,'3793','50165',216,408);
INSERT INTO "communes" VALUES('38','Chevrières','30',693,558,16.62,'3282','50208',310,661);
INSERT INTO "communes" VALUES('38','<NAME>','08',915,675,14.61,'3333','50947',192,383);
INSERT INTO "communes" VALUES('38','Vaulnaveys-le-Haut','44',3533,3098,19.86,'3860','50132',338,1714);
INSERT INTO "communes" VALUES('38','Agnin','24',969,789,7.96,'2801','50378',167,331);
INSERT INTO "communes" VALUES('38','Pont-en-Royans','22',835,918,2.9,'3340','50070',183,788);
INSERT INTO "communes" VALUES('38','Cognet','20',50,36,1.8,'3823','49868',491,920);
INSERT INTO "communes" VALUES('38','Chantesse','42',315,269,5.83,'3453','50270',247,489);
INSERT INTO "communes" VALUES('38','Susville','20',1402,1468,9.91,'3826','49906',874,1600);
INSERT INTO "communes" VALUES('39','<NAME>','30',53,39,3.71,'3580','52049',209,255);
INSERT INTO "communes" VALUES('39','Charnod','02',45,43,5.17,'3503','51481',480,685);
INSERT INTO "communes" VALUES('39','Lavangeot','24',115,157,2.41,'3636','52391',207,247);
INSERT INTO "communes" VALUES('39','Pimorin','21',189,158,10.29,'3520','51671',400,641);
INSERT INTO "communes" VALUES('39','Champagney','18',402,216,15.58,'3532','52511',192,239);
INSERT INTO "communes" VALUES('39','Pleure','08',428,346,5.07,'3468','52128',197,222);
INSERT INTO "communes" VALUES('39','Vernantois','34',331,273,6.99,'3600','51809',294,617);
INSERT INTO "communes" VALUES('39','Toulouse-le-Château','30',212,160,4.16,'3612','52026',223,352);
INSERT INTO "communes" VALUES('39','Santans','17',332,290,16.52,'3694','52248',215,253);
INSERT INTO "communes" VALUES('39','Mièges','20',92,91,3.19,'4111','51981',721,831);
INSERT INTO "communes" VALUES('39','Bracon','29',282,331,6.29,'3938','52145',345,626);
INSERT INTO "communes" VALUES('39','Nozeroy','20',417,424,3.74,'4111','51972',660,834);
INSERT INTO "communes" VALUES('39','Thervay','18',377,362,15.75,'3643','52501',192,311);
INSERT INTO "communes" VALUES('39','Chille','15',326,254,1.96,'3598','51882',262,388);
INSERT INTO "communes" VALUES('39','Écrille','21',82,68,5.25,'3661','51673',389,603);
INSERT INTO "communes" VALUES('39','Bellefontaine','19',550,453,24.71,'4143','51730',760,1302);
INSERT INTO "communes" VALUES('39','Bouchoux','05',314,280,21.71,'3869','51441',710,1230);
INSERT INTO "communes" VALUES('39','Mathenay','01',130,93,3.54,'3712','52147',231,295);
INSERT INTO "communes" VALUES('39','Augea','03',285,272,7.52,'3417','51727',188,400);
INSERT INTO "communes" VALUES('39','Hautecour','10',178,186,5.19,'3810','51743',570,779);
INSERT INTO "communes" VALUES('39','Vincent','07',322,226,8.72,'3505','51983',202,247);
INSERT INTO "communes" VALUES('39','Vaux-lès-Saint-Claude','26',709,684,9.36,'3778','51509',324,950);
INSERT INTO "communes" VALUES('39','Lect','16',382,352,11.94,'3710','51544',306,743);
INSERT INTO "communes" VALUES('39','Thoirette','02',681,542,8.77,'3551','51412',275,635);
INSERT INTO "communes" VALUES('39','Billecul','20',33,32,4.41,'4127','51951',780,926);
INSERT INTO "communes" VALUES('39','Brans','18',235,178,8.77,'3590','52480',198,367);
INSERT INTO "communes" VALUES('39','Nans','06',90,83,8.05,'4042','51990',635,904);
INSERT INTO "communes" VALUES('39','Bréry','30',214,195,4.85,'3603','51982',227,405);
INSERT INTO "communes" VALUES('39','Grusse','03',183,147,3.25,'3516','51776',228,550);
INSERT INTO "communes" VALUES('39','Sapois','06',340,287,3.56,'4007','51945',548,750);
INSERT INTO "communes" VALUES('39','Crozets','16',215,202,7.59,'3842','51623',720,1064);
INSERT INTO "communes" VALUES('39','Écleux','31',202,153,6.2,'3779','52221',223,277);
INSERT INTO "communes" VALUES('39','Chamole','23',164,137,5.78,'3767','52043',450,606);
INSERT INTO "communes" VALUES('39','Sermange','14',282,231,7.07,'3682','52437',228,284);
INSERT INTO "communes" VALUES('39','Châtelneuf','06',137,126,13,'3978','51861',677,885);
INSERT INTO "communes" VALUES('39','Pagney','14',357,302,5.99,'3740','52499',197,354);
INSERT INTO "communes" VALUES('39','Courlans','15',992,737,6.16,'3511','51861',211,280);
INSERT INTO "communes" VALUES('39','Genod','02',67,60,3.14,'3550','51505',326,689);
INSERT INTO "communes" VALUES('39','Planches-en-Montagne','22',150,128,13.48,'4080','51838',570,1061);
INSERT INTO "communes" VALUES('39','Molinges','26',669,596,2.57,'3810','51507',334,686);
INSERT INTO "communes" VALUES('39','Château-des-Prés','28',183,166,8.62,'3957','51668',890,1070);
INSERT INTO "communes" VALUES('39','Fétigny','02',99,78,3.3,'3626','51602',390,731);
INSERT INTO "communes" VALUES('39','Chaussenans','23',114,89,4.4,'3771','52033',546,580);
INSERT INTO "communes" VALUES('39','Ougney','14',322,283,7.08,'3702','52489',193,372);
INSERT INTO "communes" VALUES('39','Pretin','29',59,66,5.44,'3891','52152',346,631);
INSERT INTO "communes" VALUES('39','Grozon','23',483,396,14.25,'3738','52100',239,385);
INSERT INTO "communes" VALUES('39','Mont-sous-Vaudrey','17',1272,1166,14.86,'3628','52200',211,252);
INSERT INTO "communes" VALUES('39','Saint-Hymetière','02',75,68,3.32,'3582','51510',325,464);
INSERT INTO "communes" VALUES('39','Montmirey-la-Ville','18',184,198,3.93,'3537','52463',197,320);
INSERT INTO "communes" VALUES('39','Chamblay','31',415,388,13.82,'3741','52220',219,268);
INSERT INTO "communes" VALUES('39','Évans','12',621,545,9.87,'3818','52421',210,293);
INSERT INTO "communes" VALUES('39','Domblans','32',926,837,10.01,'3623','51960',234,405);
INSERT INTO "communes" VALUES('39','Falletans','24',399,308,24.35,'3584','52336',200,264);
INSERT INTO "communes" VALUES('39','Froideville','07',74,51,2.97,'3498','52011',199,224);
INSERT INTO "communes" VALUES('39','Bans','17',197,140,3.92,'3605','52201',209,246);
INSERT INTO "communes" VALUES('39','Peintre','18',128,135,6.34,'3495','52438',190,262);
INSERT INTO "communes" VALUES('39','Chemin','09',351,380,9.14,'3311','52200',182,188);
INSERT INTO "communes" VALUES('39','Auxange','14',202,132,5.2,'3682','52416',212,271);
INSERT INTO "communes" VALUES('39','Hays','08',287,271,6.8,'3390','52116',197,219);
INSERT INTO "communes" VALUES('39','Ranchot','12',472,439,6.91,'3762','52389',209,262);
INSERT INTO "communes" VALUES('39','<NAME>','28',526,486,21.65,'3960','51781',719,1063);
INSERT INTO "communes" VALUES('39','Charchilla','16',245,249,6.84,'3751','51629',460,690);
INSERT INTO "communes" VALUES('39','Reithouse','21',51,52,4.84,'3578','51733',489,672);
INSERT INTO "communes" VALUES('39','Augisey','03',184,207,9.29,'3506','51726',427,594);
INSERT INTO "communes" VALUES('39','Recanoz','07',80,52,3.01,'3522','52008',204,231);
INSERT INTO "communes" VALUES('39','Dampierre','12',1209,999,6.99,'3784','52395',210,272);
INSERT INTO "communes" VALUES('39','Rouffange','14',96,83,2.87,'3744','52472',228,351);
INSERT INTO "communes" VALUES('39','Our','12',164,169,13.86,'3682','52367',207,261);
INSERT INTO "communes" VALUES('39','Pillemoine','06',61,56,4.69,'3967','51889',654,821);
INSERT INTO "communes" VALUES('39','Rahon','08',522,472,19.6,'3472','52208',191,243);
INSERT INTO "communes" VALUES('39','Beaufort','03',1022,964,13.11,'3447','51748',191,574);
INSERT INTO "communes" VALUES('39','Augerans','17',151,137,8.05,'3605','52243',206,248);
INSERT INTO "communes" VALUES('39','Clucy','29',79,72,5.13,'3963','52163',560,719);
INSERT INTO "communes" VALUES('39','Conte','20',58,56,3.32,'4071','51943',614,801);
INSERT INTO "communes" VALUES('39','Offlanges','18',192,189,8.73,'3571','52454',204,378);
INSERT INTO "communes" VALUES('39','Macornay','34',1011,880,4.6,'3561','51827',259,505);
INSERT INTO "communes" VALUES('39','Vitreux','14',266,209,7.85,'3723','52496',192,361);
INSERT INTO "communes" VALUES('39','Condamine','15',272,212,3.65,'3448','51834',197,224);
INSERT INTO "communes" VALUES('39','Crenans','16',246,220,8.82,'3776','51620',596,897);
INSERT INTO "communes" VALUES('39','Prénovel','28',299,296,8.2,'3892','51680',877,1045);
INSERT INTO "communes" VALUES('39','Villevieux','04',731,670,9.87,'3475','51931',193,208);
INSERT INTO "communes" VALUES('39','Varessia','21',40,24,1.83,'3559','51733',473,672);
INSERT INTO "communes" VALUES('39','Loulle','06',172,176,10.9,'3939','51898',610,776);
INSERT INTO "communes" VALUES('39','Barretaine','23',200,200,9.23,'3748','52022',471,591);
INSERT INTO "communes" VALUES('39','Arlay','04',734,723,14.11,'3547','51957',212,325);
INSERT INTO "communes" VALUES('39','<NAME>','01',197,191,11.75,'3692','52158',220,288);
INSERT INTO "communes" VALUES('39','L''Étoile','15',559,581,6.13,'3554','51905',235,424);
INSERT INTO "communes" VALUES('39','Bersaillin','23',392,275,13.9,'3628','52066',222,300);
INSERT INTO "communes" VALUES('39','Villards-d''Héria','16',449,476,9.91,'3776','51576',459,950);
INSERT INTO "communes" VALUES('39','Broissia','27',53,37,2.97,'3438','51511',335,539);
INSERT INTO "communes" VALUES('39','La Boissière','02',68,52,5.36,'3549','51581',370,629);
INSERT INTO "communes" VALUES('39','La Chassagne','07',120,92,5.67,'3461','52071',193,218);
INSERT INTO "communes" VALUES('39','Fraisans','12',1228,1240,16.9,'3804','52388',209,279);
INSERT INTO "communes" VALUES('39','Conliège','11',701,732,6.05,'3625','51839',302,550);
INSERT INTO "communes" VALUES('39','Cézia','02',69,63,3.6,'3598','51512',458,802);
INSERT INTO "communes" VALUES('39','Uxelles','10',46,39,5.27,'3839','51781',570,686);
INSERT INTO "communes" VALUES('39','Mérona','21',11,8,2.97,'3665','51728',548,702);
INSERT INTO "communes" VALUES('39','Étival','16',319,284,13.83,'3839','51675',759,1027);
INSERT INTO "communes" VALUES('39','Chevrotaine','10',37,31,5.33,'3907','51841',620,811);
INSERT INTO "communes" VALUES('39','Choux','05',126,118,8.27,'3813','51450',580,1020);
INSERT INTO "communes" VALUES('39','<NAME>','07',33,36,2.05,'3493','52029',195,223);
INSERT INTO "communes" VALUES('39','Onoz','21',87,62,14.85,'3684','51617',425,740);
INSERT INTO "communes" VALUES('39','Serre-les-Moulières','14',184,141,5.67,'3645','52450',214,389);
INSERT INTO "communes" VALUES('39','Quintigny','04',221,201,3.65,'3543','51927',212,395);
INSERT INTO "communes" VALUES('39','Villers-Farlay','31',551,429,10.04,'3792','52221',226,291);
INSERT INTO "communes" VALUES('39','Menotey','24',279,235,5.02,'3513','52403',211,345);
INSERT INTO "communes" VALUES('39','Moutonne','21',118,81,3.99,'3581','51698',470,578);
INSERT INTO "communes" VALUES('39','Montfleur','27',168,150,7.88,'3444','51477',327,590);
INSERT INTO "communes" VALUES('39','Villette-lès-Dole','13',775,645,4.59,'3509','52276',195,232);
INSERT INTO "communes" VALUES('39','Pont-d''Héry','29',255,206,13.54,'3959','52079',430,781);
INSERT INTO "communes" VALUES('39','Gendrey','14',390,310,13.9,'3720','52450',222,371);
INSERT INTO "communes" VALUES('39','Villerserine','30',50,42,2.85,'3673','52064',239,271);
INSERT INTO "communes" VALUES('39','Saligney','14',171,153,7.98,'3670','52467',199,354);
INSERT INTO "communes" VALUES('39','Crotenay','06',677,598,11.61,'3863','51947',469,642);
INSERT INTO "communes" VALUES('39','Foucherans','13',1877,1760,7.7,'3463','52313',203,278);
INSERT INTO "communes" VALUES('39','Ravilloles','26',514,404,7.79,'3851','51584',590,980);
INSERT INTO "communes" VALUES('39','Saint-Lothain','30',460,436,12.33,'3675','52028',242,480);
INSERT INTO "communes" VALUES('39','Cernon','02',268,254,16.45,'3681','51559',307,801);
INSERT INTO "communes" VALUES('39','Monteplain','12',140,154,1.68,'3747','52397',210,258);
INSERT INTO "communes" VALUES('39','Gigny','27',299,260,16.04,'3472','51613',359,579);
INSERT INTO "communes" VALUES('39','Censeau','20',313,292,9.86,'4146','52015',770,882);
INSERT INTO "communes" VALUES('39','Ponthoux','26',92,80,2.18,'3860','51551',420,890);
INSERT INTO "communes" VALUES('39','Vevy','11',243,257,9.62,'3681','51850',501,556);
INSERT INTO "communes" VALUES('39','Damparis','33',2799,2799,8.85,'3418','52305',187,245);
INSERT INTO "communes" VALUES('39','Chevreaux','25',139,188,6.12,'3409','51677',275,647);
INSERT INTO "communes" VALUES('39','Tavaux','09',4123,4277,13.86,'3417','52271',189,197);
INSERT INTO "communes" VALUES('39','Balanod','25',323,293,4.93,'3354','51618',207,435);
INSERT INTO "communes" VALUES('39','Saint-Loup','09',278,279,9.58,'3303','52228',181,188);
INSERT INTO "communes" VALUES('39','Sainte-Agnès','03',316,287,4.08,'3485','51787',201,342);
INSERT INTO "communes" VALUES('39','Crans','22',67,72,9.03,'4040','51894',624,895);
INSERT INTO "communes" VALUES('39','Châtonnay','02',62,47,2.82,'3564','51583',345,440);
INSERT INTO "communes" VALUES('39','<NAME>','32',264,256,2.82,'3592','51898',270,385);
INSERT INTO "communes" VALUES('39','Pagnoz','31',229,221,3.29,'3871','52186',267,459);
INSERT INTO "communes" VALUES('39','Saint-Jean-d''Étreux','25',142,126,4.28,'3357','51561',290,600);
INSERT INTO "communes" VALUES('39','Longwy-sur-le-Doubs','09',537,495,16.46,'3373','52176',182,189);
INSERT INTO "communes" VALUES('39','Onglières','20',74,70,8.99,'4083','51995',728,892);
INSERT INTO "communes" VALUES('39','Vosbles','02',98,101,12.67,'3542','51489',319,730);
INSERT INTO "communes" VALUES('39','Dessia','27',74,70,4.64,'3516','51539',510,671);
INSERT INTO "communes" VALUES('39','Saint-Cyr-Montmalin','01',208,175,10.21,'3770','52166',237,335);
INSERT INTO "communes" VALUES('39','Desnes','04',475,426,9.06,'3485','51960',201,226);
INSERT INTO "communes" VALUES('39','Biarne','13',363,354,6.21,'3467','52384',192,262);
INSERT INTO "communes" VALUES('39','Cerniébaud','20',65,53,10.53,'4186','51925',926,1237);
INSERT INTO "communes" VALUES('39','Chaux-des-Crotenay','22',404,375,11.67,'4034','51842',560,859);
INSERT INTO "communes" VALUES('39','Saint-Germain-en-Montagne','06',421,390,5.35,'4004','51975',588,850);
INSERT INTO "communes" VALUES('39','<NAME>','19',317,287,8.06,'4046','51669',600,1100);
INSERT INTO "communes" VALUES('39','Geraise','29',44,40,6.04,'4013','52174',470,742);
INSERT INTO "communes" VALUES('39','Gevry','33',653,626,5.31,'3451','52266',192,198);
INSERT INTO "communes" VALUES('39','<NAME>','01',127,133,13.17,'3869','52083',470,633);
INSERT INTO "communes" VALUES('39','Montbarrey','17',332,282,9.7,'3672','52244',212,247);
INSERT INTO "communes" VALUES('39','<NAME>','06',81,72,6.31,'4012','52019',590,796);
INSERT INTO "communes" VALUES('39','Montain','32',496,405,2.29,'3603','51911',284,380);
INSERT INTO "communes" VALUES('39','Vaux-sur-Poligny','23',126,112,1.26,'3763','52031',377,577);
INSERT INTO "communes" VALUES('39','Villers-Robert','08',206,157,10.13,'3537','52169',202,243);
INSERT INTO "communes" VALUES('39','Moutoux','06',55,58,4.27,'4004','51990',585,870);
INSERT INTO "communes" VALUES('39','Grange-de-Vaivre','31',48,45,1.74,'3894','52225',245,403);
INSERT INTO "communes" VALUES('39','Bletterans','04',1394,1360,7.97,'3464','51941',190,224);
INSERT INTO "communes" VALUES('39','Monnières','13',453,404,2.06,'3473','52347',220,341);
INSERT INTO "communes" VALUES('39','Véria','25',139,118,10.09,'3430','51612',377,642);
INSERT INTO "communes" VALUES('39','Saint-Claude','26',11026,12296,70.19,'3918','51541',360,1222);
INSERT INTO "communes" VALUES('39','Louvatange','14',117,71,3.31,'3756','52441',234,265);
INSERT INTO "communes" VALUES('39','Moussières','05',196,164,16.95,'3948','51473',880,1310);
INSERT INTO "communes" VALUES('39','Lavancia-Epercy','26',647,619,10.56,'3714','51479',305,901);
INSERT INTO "communes" VALUES('39','Gatey','08',364,247,14.84,'3443','52162',197,223);
INSERT INTO "communes" VALUES('39','Péseux','09',289,248,5.36,'3366','52214',187,190);
INSERT INTO "communes" VALUES('39','Chapelle-Voland','04',619,567,30.5,'3379','52003',183,218);
INSERT INTO "communes" VALUES('39','Villette-lès-Arbois','01',399,304,5.45,'3796','52135',248,338);
INSERT INTO "communes" VALUES('39','<NAME>','08',997,787,8.56,'3517','52170',201,236);
INSERT INTO "communes" VALUES('39','Châtillon','11',141,127,16.77,'3771','51843',447,747);
INSERT INTO "communes" VALUES('39','Moissey','18',570,527,10.63,'3541','52441',217,377);
INSERT INTO "communes" VALUES('39','Saint-Maurice-Crillat','28',212,210,20.79,'3884','51744',579,1135);
INSERT INTO "communes" VALUES('39','Abergement-lès-Thésy','29',67,53,4.63,'4003','52130',619,732);
INSERT INTO "communes" VALUES('39','<NAME>','10',38,41,3.19,'3860','51730',538,775);
INSERT INTO "communes" VALUES('39','Orgelet','21',1685,1691,23.11,'3637','51691',374,653);
INSERT INTO "communes" VALUES('39','Montagna-le-Templier','27',95,88,7.05,'3465','51504',340,571);
INSERT INTO "communes" VALUES('39','Alièze','21',155,144,5.86,'3600','51765',538,686);
INSERT INTO "communes" VALUES('39','<NAME>','12',202,165,1.63,'3693','52365',208,257);
INSERT INTO "communes" VALUES('39','Geruge','34',166,146,4.36,'3547','51808',378,550);
INSERT INTO "communes" VALUES('39','<NAME>','17',546,509,19.56,'3577','52252',200,247);
INSERT INTO "communes" VALUES('39','Colonne','23',257,234,11.13,'3599','52094',213,245);
INSERT INTO "communes" VALUES('39','Chemenot','23',37,35,4.74,'3552','52074',203,227);
INSERT INTO "communes" VALUES('39','Saizenay','29',108,119,4.88,'3976','52180',498,737);
INSERT INTO "communes" VALUES('39','Nevy-lès-Dole','33',249,217,7.01,'3537','52225',198,242);
INSERT INTO "communes" VALUES('39','Entre-deux-Monts','22',159,123,5.36,'4038','51825',713,940);
INSERT INTO "communes" VALUES('39','Nancuise','21',42,47,5.21,'3554','51630',364,584);
INSERT INTO "communes" VALUES('39','Commenailles','07',780,720,21.52,'3461','52004',194,222);
INSERT INTO "communes" VALUES('39','Coyron','16',74,58,5.53,'3743','51679',423,555);
INSERT INTO "communes" VALUES('39','<NAME>','12',230,230,3.31,'3718','52386',209,262);
INSERT INTO "communes" VALUES('39','Marnoz','29',400,320,4.87,'3884','52167',276,616);
INSERT INTO "communes" VALUES('39','Courlaoux','15',955,848,12.42,'3472','51853',201,230);
INSERT INTO "communes" VALUES('39','Foncine-le-Haut','22',1024,948,28.95,'4152','51843',750,1212);
INSERT INTO "communes" VALUES('39','<NAME>','06',75,63,4.02,'3998','52005',586,800);
INSERT INTO "communes" VALUES('39','Orchamps','12',1047,1009,9.92,'3690','52387',206,267);
INSERT INTO "communes" VALUES('39','Aumur','09',368,343,9.22,'3347','52288',181,191);
INSERT INTO "communes" VALUES('39','Cize','06',821,827,4.19,'3970','51924',515,811);
INSERT INTO "communes" VALUES('39','Amange','24',372,290,6.77,'3587','52406',210,376);
INSERT INTO "communes" VALUES('39','Savigna','02',110,118,9.96,'3600','51601',349,571);
INSERT INTO "communes" VALUES('39','Morez','19',5154,6141,9.67,'4095','51691',650,1302);
INSERT INTO "communes" VALUES('39','Crançot','11',556,487,14.37,'3692','51873',450,561);
INSERT INTO "communes" VALUES('39','Longcochon','20',48,51,3.64,'4148','51971',758,886);
INSERT INTO "communes" VALUES('39','Archelange','24',235,213,5.09,'3530','52386',229,352);
INSERT INTO "communes" VALUES('39','Rothonay','21',123,143,12.98,'3550','51695',449,591);
INSERT INTO "communes" VALUES('39','Chavéria','21',220,171,10.22,'3589','51675',380,620);
INSERT INTO "communes" VALUES('39','Foulenay','07',84,81,4.16,'3498','52071',197,221);
INSERT INTO "communes" VALUES('39','Frébuans','34',366,345,2.65,'3500','51836',209,271);
INSERT INTO "communes" VALUES('39','Chambéria','21',167,149,14.67,'3582','51627',356,582);
INSERT INTO "communes" VALUES('39','Aromas','02',540,496,18.75,'3493','51436',390,660);
INSERT INTO "communes" VALUES('39','Maisod','16',318,271,7.39,'3725','51641',423,553);
INSERT INTO "communes" VALUES('39','Cousance','03',1231,1297,6.39,'3393','51702',196,330);
INSERT INTO "communes" VALUES('39','Arinthod','02',1150,1214,19.77,'3589','51548',335,841);
INSERT INTO "communes" VALUES('39','Gizia','03',216,221,7.35,'3426','51697',220,633);
INSERT INTO "communes" VALUES('39','Mantry','30',441,456,10.83,'3580','51996',216,385);
INSERT INTO "communes" VALUES('39','Beffia','21',88,81,5.17,'3568','51695',474,585);
INSERT INTO "communes" VALUES('39','<NAME>','06',254,252,7.75,'3965','52001',577,661);
INSERT INTO "communes" VALUES('39','Saint-Laurent-en-Grandvaux','28',1800,1790,17.57,'4022','51751',824,1094);
INSERT INTO "communes" VALUES('39','Lavans-lès-Saint-Claude','26',1878,1900,11.65,'3828','51540',356,936);
INSERT INTO "communes" VALUES('39','Digna','25',367,301,3.38,'3396','51685',198,410);
INSERT INTO "communes" VALUES('39','Bellecombe','05',79,92,12.17,'3984','51471',1150,1380);
INSERT INTO "communes" VALUES('39','La Vieille-Loye','17',383,345,9.19,'3662','52269',217,252);
INSERT INTO "communes" VALUES('39','Cramans','31',480,432,8.13,'3825','52236',229,340);
INSERT INTO "communes" VALUES('39','Lac-des-Rouges-Truites','28',361,331,19.69,'4067','51785',829,1181);
INSERT INTO "communes" VALUES('39','Esserval-Combe','20',17,21,1.76,'4115','52001',730,846);
INSERT INTO "communes" VALUES('39','Condes','02',115,108,2.05,'3653','51486',300,600);
INSERT INTO "communes" VALUES('39','Villeneuve-lès-Charnod','27',85,65,7.05,'3491','51485',419,641);
INSERT INTO "communes" VALUES('39','Brevans','24',628,655,3.62,'3541','52330',200,235);
INSERT INTO "communes" VALUES('39','Courbouzon','34',592,565,3.35,'3546','51835',245,460);
INSERT INTO "communes" VALUES('39','Moiron','34',142,135,1.85,'3584','51820',281,492);
INSERT INTO "communes" VALUES('39','Cuttura','26',335,345,5.95,'3861','51570',479,900);
INSERT INTO "communes" VALUES('39','Bourcia','27',115,110,11.13,'3413','51504',348,770);
INSERT INTO "communes" VALUES('39','Vers-en-Montagne','06',201,196,8.35,'3976','52018',586,660);
INSERT INTO "communes" VALUES('39','Plaisia','21',115,115,5.31,'3663','51703',420,690);
INSERT INTO "communes" VALUES('39','Biefmorin','23',76,67,11.25,'3579','52112',205,246);
INSERT INTO "communes" VALUES('39','<NAME>','14',111,58,2.49,'3786','52436',240,278);
INSERT INTO "communes" VALUES('39','Montagna-le-Reconduit','25',124,109,5.43,'3388','51620',270,553);
INSERT INTO "communes" VALUES('39','Belmont','17',271,257,16.06,'3619','52240',207,249);
INSERT INTO "communes" VALUES('39','Supt','06',106,107,13.97,'4024','52055',612,881);
INSERT INTO "communes" VALUES('39','Bonlieu','28',259,232,13.05,'3908','51779',620,1023);
INSERT INTO "communes" VALUES('39','Coisia','02',162,122,6.73,'3605','51451',285,756);
INSERT INTO "communes" VALUES('39','Balaiseaux','08',268,188,6.01,'3471','52196',196,222);
INSERT INTO "communes" VALUES('39','Taxenne','14',92,97,3.84,'3716','52471',212,353);
INSERT INTO "communes" VALUES('39','Rosay','03',125,139,9.93,'3461','51702',359,637);
INSERT INTO "communes" VALUES('39','Ruffey-sur-Seille','04',760,736,18.01,'3510','51938',201,304);
INSERT INTO "communes" VALUES('39','Saugeot','28',53,59,4.49,'3880','51779',600,755);
INSERT INTO "communes" VALUES('39','Rainans','24',226,172,3.67,'3493','52395',199,310);
INSERT INTO "communes" VALUES('39','Champdivers','09',439,434,7.45,'3387','52233',187,192);
INSERT INTO "communes" VALUES('39','Rotalier','03',171,163,4.07,'3489','51766',224,572);
INSERT INTO "communes" VALUES('39','Patornay','10',137,169,1.8,'3742','51763',429,479);
INSERT INTO "communes" VALUES('39','Lavigny','32',365,363,5.38,'3622','51908',275,517);
INSERT INTO "communes" VALUES('39','Salans','12',574,465,6.88,'3840','52405',211,276);
INSERT INTO "communes" VALUES('39','Boissia','10',142,104,5.67,'3776','51769',426,528);
INSERT INTO "communes" VALUES('39','Miéry','23',147,104,7.67,'3709','52014',305,560);
INSERT INTO "communes" VALUES('39','Syam','06',199,222,6.9,'4014','51889',521,794);
INSERT INTO "communes" VALUES('39','Molay','09',500,476,6.38,'3426','52245',190,196);
INSERT INTO "communes" VALUES('39','Ivrey','29',58,58,6.67,'3953','52211',319,810);
INSERT INTO "communes" VALUES('39','Saint-Maur','11',211,168,6.5,'3615','51795',525,643);
INSERT INTO "communes" VALUES('39','Louvenne','27',143,113,7.8,'3480','51579',355,563);
INSERT INTO "communes" VALUES('39','Martigna','16',205,193,8.77,'3736','51544',500,774);
INSERT INTO "communes" VALUES('39','Prémanon','19',1043,663,28.18,'4105','51624',769,1417);
INSERT INTO "communes" VALUES('39','Andelot-Morval','27',88,79,10.54,'3422','51584',360,593);
INSERT INTO "communes" VALUES('39','Dompierre-sur-Mont','21',245,179,7.37,'3636','51733',486,644);
INSERT INTO "communes" VALUES('39','Parcey','33',955,838,8.94,'3500','52247',192,215);
INSERT INTO "communes" VALUES('39','Séligney','08',90,111,4.15,'3558','52154',209,241);
INSERT INTO "communes" VALUES('39','Chemilla','02',96,73,1.87,'3581','51508',322,521);
INSERT INTO "communes" VALUES('39','Lavans-lès-Dole','24',335,265,10.27,'3656','52395',205,266);
INSERT INTO "communes" VALUES('39','Pointre','18',114,80,6.54,'3515','52472',194,218);
INSERT INTO "communes" VALUES('39','Dournon','29',126,102,6.55,'4032','52147',593,719);
INSERT INTO "communes" VALUES('39','Montaigu','11',500,507,7.1,'3591','51844',270,544);
INSERT INTO "communes" VALUES('39','Jouhe','24',569,438,5.96,'3503','52379',202,342);
INSERT INTO "communes" VALUES('39','Abergement-le-Grand','01',64,41,4.22,'3716','52126',239,288);
INSERT INTO "communes" VALUES('39','Blois-sur-Seille','32',103,82,5.4,'3704','51943',285,548);
INSERT INTO "communes" VALUES('39','<NAME>','32',280,232,1.08,'3619','51924',269,317);
INSERT INTO "communes" VALUES('39','Chalesmes','22',102,90,9.47,'4113','51877',830,1113);
INSERT INTO "communes" VALUES('39','Neuvilley','23',74,46,4.07,'3619','52109',222,252);
INSERT INTO "communes" VALUES('39','Poligny','23',4226,4518,50.22,'3746','52040',252,626);
INSERT INTO "communes" VALUES('39','Andelot-en-Montagne','06',540,549,12.48,'3997','52059',597,740);
INSERT INTO "communes" VALUES('39','Gevingey','34',452,417,5.9,'3522','51819',242,487);
INSERT INTO "communes" VALUES('39','Pont-de-Poitte','10',659,581,7.02,'3732','51760',425,570);
INSERT INTO "communes" VALUES('39','Graye-et-Charnay','25',139,101,6.31,'3462','51631',367,604);
INSERT INTO "communes" VALUES('39','Lavans-sur-Valouse','02',139,148,9.51,'3576','51482',320,799);
INSERT INTO "communes" VALUES('39','Saint-Germain-lès-Arlay','32',502,503,6.08,'3582','51956',222,386);
INSERT INTO "communes" VALUES('39','Buvilly','23',360,338,6,'3759','52076',290,575);
INSERT INTO "communes" VALUES('39','Molamboz','01',85,84,7.06,'3721','52155',223,290);
INSERT INTO "communes" VALUES('39','Sergenaux','07',61,35,3.24,'3468','52096',197,221);
INSERT INTO "communes" VALUES('39','<NAME>','20',74,77,5.89,'4171','51947',829,971);
INSERT INTO "communes" VALUES('39','Chêne-Bernard','08',72,62,3.61,'3496','52134',197,223);
INSERT INTO "communes" VALUES('39','Lamoura','26',529,438,22.28,'4033','51550',1064,1495);
INSERT INTO "communes" VALUES('39','Saint-Baraing','08',271,181,6.28,'3438','52201',187,217);
INSERT INTO "communes" VALUES('39','<NAME>','23',85,77,4.67,'3575','52085',209,231);
INSERT INTO "communes" VALUES('39','Planches-près-Arbois','01',101,79,1.39,'3856','52088',320,571);
INSERT INTO "communes" VALUES('39','Vescles','02',211,183,20.27,'3641','51511',305,800);
INSERT INTO "communes" VALUES('39','Germigney','17',91,77,5.44,'3724','52252',220,254);
INSERT INTO "communes" VALUES('39','Fontainebrux','04',178,131,6.75,'3428','51893',195,229);
INSERT INTO "communes" VALUES('39','Abergement-le-Petit','23',41,43,1.52,'3732','52114',250,290);
INSERT INTO "communes" VALUES('39','Montmorot','15',3061,3090,11.36,'3548','51863',223,355);
INSERT INTO "communes" VALUES('39','Chilly-sur-Salins','29',94,92,11.94,'3923','52100',573,695);
INSERT INTO "communes" VALUES('39','Frontenay','32',167,170,8.13,'3642','51984',250,563);
INSERT INTO "communes" VALUES('39','Bonnaud','03',46,30,1.65,'3434','51798',194,216);
INSERT INTO "communes" VALUES('39','Blye','11',152,117,10.76,'3741','51802',436,590);
INSERT INTO "communes" VALUES('39','Pont-du-Navoy','06',246,226,9.46,'3823','51916',463,741);
INSERT INTO "communes" VALUES('39','Nanc-lès-Saint-Amour','25',285,261,5.29,'3358','51581',209,596);
INSERT INTO "communes" VALUES('39','Lent','06',125,137,4.11,'4047','51938',625,808);
INSERT INTO "communes" VALUES('39','Repôts','04',36,23,4.02,'3421','51870',199,220);
INSERT INTO "communes" VALUES('39','Charcier','10',120,107,12.91,'3793','51808',448,654);
INSERT INTO "communes" VALUES('39','Brainans','23',168,166,7.07,'3652','52078',232,301);
INSERT INTO "communes" VALUES('39','Chaux-Champagny','29',63,73,7.33,'3947','52107',401,740);
INSERT INTO "communes" VALUES('39','Chaînée-des-Coupis','08',195,138,5.04,'3450','52141',203,220);
INSERT INTO "communes" VALUES('39','Chaussin','08',1617,1579,16.82,'3415','52183',183,214);
INSERT INTO "communes" VALUES('39','Francheville','07',37,26,1.46,'3514','52043',203,223);
INSERT INTO "communes" VALUES('39','Arbois','01',3520,3698,45.42,'3819','52114',246,613);
INSERT INTO "communes" VALUES('39','Dammartin-Marpain','18',290,227,11.32,'3564','52508',191,241);
INSERT INTO "communes" VALUES('39','Cosges','04',329,301,13.49,'3408','51942',187,216);
INSERT INTO "communes" VALUES('39','Charézier','10',148,139,9.26,'3767','51790',434,609);
INSERT INTO "communes" VALUES('39','Sirod','06',572,528,16.1,'4052','51926',560,890);
INSERT INTO "communes" VALUES('39','Doucier','10',295,270,12.52,'3825','51839',447,635);
INSERT INTO "communes" VALUES('39','Pupillin','01',247,218,6.61,'3805','52093',283,622);
INSERT INTO "communes" VALUES('39','<NAME>','07',80,92,3.57,'3523','52050',198,222);
INSERT INTO "communes" VALUES('39','<NAME>','28',357,289,10.62,'4022','51771',790,958);
INSERT INTO "communes" VALUES('39','Bief-du-Fourg','20',165,131,10.2,'4192','52011',840,883);
INSERT INTO "communes" VALUES('39','Voiteur','32',756,720,9.42,'3639','51949',245,497);
INSERT INTO "communes" VALUES('39','Vulvoz','05',20,16,4.49,'3836','51475',448,1010);
INSERT INTO "communes" VALUES('39','Songeson','10',74,58,8.42,'3871','51834',530,832);
INSERT INTO "communes" VALUES('39','Courtefontaine','12',217,178,13.64,'3853','52366',225,306);
INSERT INTO "communes" VALUES('39','Marigny','10',180,172,11.99,'3830','51869',454,628);
INSERT INTO "communes" VALUES('39','<NAME>','21',229,162,13.42,'3695','51696',423,686);
INSERT INTO "communes" VALUES('39','Senaud','25',56,39,4.06,'3381','51552',390,596);
INSERT INTO "communes" VALUES('39','Bourg-de-Sirod','06',98,86,4.42,'4023','51921',529,804);
INSERT INTO "communes" VALUES('39','Publy','11',283,262,15.18,'3673','51814',471,669);
INSERT INTO "communes" VALUES('39','Cressia','21',277,314,14.99,'3493','51698',431,637);
INSERT INTO "communes" VALUES('39','Menétrux-en-Joux','10',56,47,8.78,'3880','51805',502,819);
INSERT INTO "communes" VALUES('39','Perrigny','11',1538,1643,8.89,'3610','51854',271,564);
INSERT INTO "communes" VALUES('39','Mignovillard','20',683,644,49.81,'4210','51991',799,1189);
INSERT INTO "communes" VALUES('39','Longchaumois','19',1145,1092,57.6,'3995','51623',470,1411);
INSERT INTO "communes" VALUES('39','Chassal','26',495,510,5.19,'3834','51509',340,665);
INSERT INTO "communes" VALUES('39','Nance','04',494,429,7.34,'3433','51933',191,222);
INSERT INTO "communes" VALUES('39','Montrevel','27',100,107,6.39,'3499','51579',370,629);
INSERT INTO "communes" VALUES('39','Chêne-Sec','07',35,53,0.76,'3449','52056',193,216);
INSERT INTO "communes" VALUES('39','Thoissia','25',46,24,3.89,'3398','51581',427,605);
INSERT INTO "communes" VALUES('39','Besain','23',157,180,12.84,'3841','51984',514,640);
INSERT INTO "communes" VALUES('39','Malange','14',295,242,8.4,'3642','52418',212,391);
INSERT INTO "communes" VALUES('39','Champrougier','23',94,104,8.73,'3540','52080',202,226);
INSERT INTO "communes" VALUES('39','Foncine-le-Bas','22',205,182,9.29,'4104','51819',730,1181);
INSERT INTO "communes" VALUES('39','Légna','02',200,149,10.3,'3619','51585',370,812);
INSERT INTO "communes" VALUES('39','Saint-Julien','27',463,409,12.28,'3463','51549',346,591);
INSERT INTO "communes" VALUES('39','Monnet-la-Ville','06',368,330,6.19,'3844','51911',478,690);
INSERT INTO "communes" VALUES('39','Montcusel','16',176,172,9.55,'3691','51502',420,802);
INSERT INTO "communes" VALUES('39','Saffloz','10',105,87,8.65,'3902','51855',619,815);
INSERT INTO "communes" VALUES('39','Coiserette','05',46,46,5.91,'3886','51491',546,1090);
INSERT INTO "communes" VALUES('39','Larrivoire','05',102,108,6.5,'3835','51493',380,1010);
INSERT INTO "communes" VALUES('39','Sarrogna','21',225,183,19.87,'3638','51631',390,744);
INSERT INTO "communes" VALUES('39','Cesancey','03',404,334,5.12,'3512','51805',204,450);
INSERT INTO "communes" VALUES('39','Villard-sur-Bienne','26',196,132,10.37,'3958','51639',485,962);
INSERT INTO "communes" VALUES('39','Val-d''Épy','25',151,134,8.64,'3402','51536',285,555);
INSERT INTO "communes" VALUES('39','Présilly','21',118,102,11.23,'3610','51729',480,701);
INSERT INTO "communes" VALUES('39','Nogna','11',255,203,6.11,'3673','51777',497,623);
INSERT INTO "communes" VALUES('39','Bretenières','08',38,30,4.11,'3562','52132',213,245);
INSERT INTO "communes" VALUES('39','Chevigny','18',287,214,7.67,'3487','52419',192,295);
INSERT INTO "communes" VALUES('39','Aiglepierre','29',428,342,6.97,'3869','52169',278,631);
INSERT INTO "communes" VALUES('39','Éclans-Nenon','24',410,382,25.83,'3631','52361',205,261);
INSERT INTO "communes" VALUES('39','Villeneuve-sous-Pymont','15',282,217,2.67,'3571','51879',260,390);
INSERT INTO "communes" VALUES('39','Verges','11',172,169,6.16,'3718','51837',500,613);
INSERT INTO "communes" VALUES('39','Vriange','24',119,137,5.78,'3605','52422',226,378);
INSERT INTO "communes" VALUES('39','Bois-d''Amont','19',1677,1518,12.06,'4225','51706',1042,1310);
INSERT INTO "communes" VALUES('39','Septmoncel','26',684,659,19.4,'3974','51523',448,1281);
INSERT INTO "communes" VALUES('39','<NAME>','32',191,180,8.39,'3756','51967',520,562);
INSERT INTO "communes" VALUES('39','Ney','06',554,578,7.26,'3944','51929',489,719);
INSERT INTO "communes" VALUES('39','Morbier','19',2255,2059,41.58,'4089','51708',650,1180);
INSERT INTO "communes" VALUES('39','Aumont','23',430,405,7.97,'3663','52120',227,297);
INSERT INTO "communes" VALUES('39','Champvans','13',1357,1363,14.22,'3443','52339',188,290);
INSERT INTO "communes" VALUES('39','Saint-Thiébaud','29',68,60,7.94,'3921','52191',380,850);
INSERT INTO "communes" VALUES('39','Granges-sur-Baume','32',132,130,7.93,'3676','51905',400,550);
INSERT INTO "communes" VALUES('39','Souvans','17',500,451,19.66,'3569','52216',202,246);
INSERT INTO "communes" VALUES('39','Pratz','16',576,453,9.85,'3807','51532',400,948);
INSERT INTO "communes" VALUES('39','Choisey','33',1056,985,7.64,'3470','52292',193,231);
INSERT INTO "communes" VALUES('39','Vaudrey','17',384,317,17.87,'3650','52199',212,259);
INSERT INTO "communes" VALUES('39','Plasne','23',248,254,7.76,'3721','52001',480,606);
INSERT INTO "communes" VALUES('39','Châtel-de-Joux','16',57,48,14.13,'3841','51696',596,1003);
INSERT INTO "communes" VALUES('39','Rye','07',183,161,11.84,'3436','52079',190,219);
INSERT INTO "communes" VALUES('39','Monnetay','27',19,16,2.46,'3529','51613',429,598);
INSERT INTO "communes" VALUES('39','Saint-Didier','15',308,267,3.02,'3526','51898',210,333);
INSERT INTO "communes" VALUES('39','Coyrière','05',67,74,4.11,'3897','51492',520,1125);
INSERT INTO "communes" VALUES('39','Bornay','34',175,181,6.76,'3576','51794',335,629);
INSERT INTO "communes" VALUES('39','Villechantria','27',124,112,6.28,'3448','51526',336,556);
INSERT INTO "communes" VALUES('39','Chaumergy','07',478,412,6.14,'3490','52051',196,224);
INSERT INTO "communes" VALUES('39','Vadans','01',254,268,11.25,'3739','52149',235,323);
INSERT INTO "communes" VALUES('39','Salins-les-Bains','29',2926,3347,24.68,'3935','52157',284,737);
INSERT INTO "communes" VALUES('39','Arsures','01',236,213,4.44,'3838','52166',256,400);
INSERT INTO "communes" VALUES('39','Vannoz','06',233,216,5.75,'3978','51970',565,800);
INSERT INTO "communes" VALUES('39','Ladoye-sur-Seille','32',61,69,3.69,'3719','51957',338,560);
INSERT INTO "communes" VALUES('39','Picarreau','23',94,87,8.96,'3787','51949',530,628);
INSERT INTO "communes" VALUES('39','Aresches','29',41,50,4.76,'3971','52113',570,736);
INSERT INTO "communes" VALUES('39','Asnans-Beauvoisin','08',696,541,16.24,'3417','52163',183,220);
INSERT INTO "communes" VALUES('39','Molain','23',126,94,11.5,'3856','52027',560,686);
INSERT INTO "communes" VALUES('39','Plainoiseau','32',547,508,5.38,'3576','51923',253,424);
INSERT INTO "communes" VALUES('39','Saint-Aubin','09',1758,1539,33.76,'3327','52258',180,192);
INSERT INTO "communes" VALUES('39','Deux-Fays','07',122,115,6.77,'3495','52091',200,226);
INSERT INTO "communes" VALUES('39','Montigny-lès-Arsures','01',270,268,10.63,'3832','52141',254,580);
INSERT INTO "communes" VALUES('39','Mallerey','03',63,59,2.9,'3457','51813',196,228);
INSERT INTO "communes" VALUES('39','Audelange','24',252,206,4.64,'3610','52372',203,257);
INSERT INTO "communes" VALUES('39','Montholier','23',326,285,7.99,'3679','52109',228,310);
INSERT INTO "communes" VALUES('39','Chancia','16',239,142,2.41,'3673','51496',300,680);
INSERT INTO "communes" VALUES('39','Montmarlon','29',31,29,3.28,'4029','52084',630,741);
INSERT INTO "communes" VALUES('39','Rans','12',477,416,6.14,'3767','52378',209,269);
INSERT INTO "communes" VALUES('39','Ivory','29',84,84,9.13,'3914','52125',544,632);
INSERT INTO "communes" VALUES('39','Petit-Noir','09',1134,971,20.52,'3339','52152',177,215);
INSERT INTO "communes" VALUES('39','Cuvier','20',221,167,10.32,'4147','52030',798,885);
INSERT INTO "communes" VALUES('39','Lains','27',80,77,9.81,'3501','51545',365,660);
INSERT INTO "communes" VALUES('39','Menétru-le-Vignoble','32',155,138,5.88,'3650','51965',267,550);
INSERT INTO "communes" VALUES('39','Sergenon','07',49,50,3.88,'3467','52115',196,222);
INSERT INTO "communes" VALUES('39','Doye','20',92,69,3.56,'4088','51963',630,801);
INSERT INTO "communes" VALUES('39','Esserval-Tartre','20',84,69,12.19,'4121','52010',730,904);
INSERT INTO "communes" VALUES('39','Arthenas','21',161,141,6.71,'3548','51762',464,603);
INSERT INTO "communes" VALUES('39','Tassenières','08',385,332,6.64,'3531','52136',208,244);
INSERT INTO "communes" VALUES('39','Oussières','23',229,223,7.54,'3614','52119',220,254);
INSERT INTO "communes" VALUES('39','Briod','11',214,164,4.04,'3652','51845',505,555);
INSERT INTO "communes" VALUES('39','Neublans-Abergement','08',515,390,11.64,'3326','52122',180,215);
INSERT INTO "communes" VALUES('39','Montigny-sur-l''Ain','06',192,179,7.99,'3832','51900',460,661);
INSERT INTO "communes" VALUES('39','<NAME>','20',32,30,2.78,'4107','51948',725,885);
INSERT INTO "communes" VALUES('39','Mirebel','11',243,202,16.63,'3768','51887',460,747);
INSERT INTO "communes" VALUES('39','Lézat','19',186,196,5.75,'4020','51675',530,1115);
INSERT INTO "communes" VALUES('39','Port-Lesney','31',553,414,10.91,'3875','52225',240,440);
INSERT INTO "communes" VALUES('39','Revigny','11',264,253,6.51,'3632','51817',335,574);
INSERT INTO "communes" VALUES('39','Montrond','06',504,408,25.32,'3884','51998',513,678);
INSERT INTO "communes" VALUES('39','Fontenu','10',67,40,6.71,'3873','51853',485,667);
INSERT INTO "communes" VALUES('39','Bief-des-Maisons','22',75,85,5.79,'4114','51896',890,1144);
INSERT INTO "communes" VALUES('39','Molpré','20',24,33,2.73,'4145','51986',739,879);
INSERT INTO "communes" VALUES('39','Bonnefontaine','23',96,84,8.8,'3789','51920',534,745);
INSERT INTO "communes" VALUES('39','Marnézia','21',94,48,4.97,'3671','51750',507,703);
INSERT INTO "communes" VALUES('39','Pannessières','11',445,466,5.35,'3624','51887',280,527);
INSERT INTO "communes" VALUES('39','Essia','21',64,54,4.86,'3569','51762',459,640);
INSERT INTO "communes" VALUES('39','Gredisans','24',147,136,2.37,'3529','52397',240,348);
INSERT INTO "communes" VALUES('39','Darbonnay','30',97,95,4.39,'3631','52018',236,288);
INSERT INTO "communes" VALUES('39','<NAME>','26',208,215,12.59,'3945','51632',443,996);
INSERT INTO "communes" VALUES('39','Relans','04',345,248,4.74,'3456','51959',199,222);
INSERT INTO "communes" VALUES('39','Chilly-le-Vignoble','34',605,393,3.07,'3515','51842',212,287);
INSERT INTO "communes" VALUES('39','Poids-de-Fiole','11',301,252,6.49,'3659','51773',513,611);
INSERT INTO "communes" VALUES('39','<NAME>','10',154,151,14.56,'3956','51817',680,930);
INSERT INTO "communes" VALUES('39','Clairvaux-les-Lacs','10',1424,1473,12.29,'3792','51750',450,826);
INSERT INTO "communes" VALUES('39','<NAME>','32',254,312,1.74,'3608','51923',250,340);
INSERT INTO "communes" VALUES('39','Valfin-sur-Valouse','02',85,91,8.67,'3536','51522',335,689);
INSERT INTO "communes" VALUES('39','Mont-sur-Monnet','06',220,174,19.93,'3889','51899',502,745);
INSERT INTO "communes" VALUES('39','Abergement-la-Ronce','33',765,735,7.12,'3369','52300',186,195);
INSERT INTO "communes" VALUES('39','Cuisia','03',402,364,10.16,'3406','51708',193,554);
INSERT INTO "communes" VALUES('39','Fraroz','20',45,41,6.22,'4172','51927',889,1222);
INSERT INTO "communes" VALUES('39','Largillay-Marsonnay','10',189,134,6.98,'3710','51727',425,680);
INSERT INTO "communes" VALUES('39','Meussia','16',424,382,13.64,'3765','51665',439,875);
INSERT INTO "communes" VALUES('39','Thoiria','10',164,150,12.24,'3777','51704',430,873);
INSERT INTO "communes" VALUES('39','Communailles-en-Montagne','20',44,42,4.01,'4179','51999',770,888);
INSERT INTO "communes" VALUES('39','Denezières','28',85,78,6.41,'3857','51790',519,673);
INSERT INTO "communes" VALUES('39','Cornod','02',236,219,13.99,'3569','51459',305,680);
INSERT INTO "communes" VALUES('39','Baume-les-Messieurs','32',190,194,13.09,'3680','51898',277,572);
INSERT INTO "communes" VALUES('39','Charency','20',55,41,2.73,'4064','51967',630,804);
INSERT INTO "communes" VALUES('39','Vercia','03',316,244,4.06,'3467','51767',198,296);
INSERT INTO "communes" VALUES('39','Sellières','30',786,775,9.9,'3585','52031',212,310);
INSERT INTO "communes" VALUES('39','<NAME>','05',353,263,24.26,'3901','51428',800,1440);
INSERT INTO "communes" VALUES('39','Valempoulières','06',215,172,16.25,'3919','52029',610,766);
INSERT INTO "communes" VALUES('39','Orbagna','03',181,166,4.11,'3460','51757',199,572);
INSERT INTO "communes" VALUES('39','Nevy-sur-Seille','32',235,244,6.56,'3660','51935',257,526);
INSERT INTO "communes" VALUES('39','Piards','28',186,176,5.29,'3880','51662',884,1030);
INSERT INTO "communes" VALUES('39','L''Aubépin','25',140,131,5.67,'3374','51600',325,590);
INSERT INTO "communes" VALUES('39','Chatelay','17',90,108,13.07,'3739','52254',223,259);
INSERT INTO "communes" VALUES('39','Romain','14',210,140,6.07,'3760','52459',240,298);
INSERT INTO "communes" VALUES('39','Loisia','25',172,157,11.58,'3473','51650',371,637);
INSERT INTO "communes" VALUES('39','Rousses','19',3108,2929,38,'4139','51651',720,1300);
INSERT INTO "communes" VALUES('39','Marigna-sur-Valouse','02',106,81,8.35,'3547','51607',354,598);
INSERT INTO "communes" VALUES('39','Moirans-en-Montagne','16',2284,2123,26.56,'3765','51591',423,981);
INSERT INTO "communes" VALUES('39','Leschères','26',212,153,8.28,'3878','51613',700,1064);
INSERT INTO "communes" VALUES('39','Messia-sur-Sorne','34',824,805,2.69,'3529','51847',233,356);
INSERT INTO "communes" VALUES('39','Plénise','20',58,63,5.43,'4103','52007',733,907);
INSERT INTO "communes" VALUES('39','Château-Chalon','32',164,160,10.17,'3655','51950',254,563);
INSERT INTO "communes" VALUES('39','<NAME>','27',53,39,2.97,'3421','51534',372,556);
INSERT INTO "communes" VALUES('39','Villers-les-Bois','23',200,210,10.5,'3603','52126',212,252);
INSERT INTO "communes" VALUES('39','Saint-Lamain','30',123,119,4.16,'3629','51995',236,335);
INSERT INTO "communes" VALUES('39','Mutigney','18',156,143,8,'3563','52531',188,233);
INSERT INTO "communes" VALUES('39','Vincelles','03',386,364,6.29,'3491','51778',194,440);
INSERT INTO "communes" VALUES('39','Rix','20',81,74,5.17,'4123','51966',721,923);
INSERT INTO "communes" VALUES('39','Jeurre','16',253,254,6.99,'3745','51519',315,696);
INSERT INTO "communes" VALUES('39','Chissey-sur-Loue','17',346,347,38.56,'3760','52246',223,282);
INSERT INTO "communes" VALUES('39','Florentia','27',35,24,3.18,'3432','51551',417,556);
INSERT INTO "communes" VALUES('39','Cernans','29',141,98,5.51,'3995','52147',612,724);
INSERT INTO "communes" VALUES('39','Chaux-des-Prés','28',191,168,7.79,'3922','51675',834,1003);
INSERT INTO "communes" VALUES('39','Saint-Laurent-la-Roche','03',347,276,11.13,'3533','51778',270,578);
INSERT INTO "communes" VALUES('39','Vertamboz','10',93,68,6.66,'3783','51773',439,615);
INSERT INTO "communes" VALUES('39','Courbette','11',40,51,2.65,'3588','51775',494,625);
INSERT INTO "communes" VALUES('39','Saint-Amour','25',2371,2104,11.65,'3340','51595',200,446);
INSERT INTO "communes" VALUES('39','Plénisette','20',25,30,2.61,'4094','51999',750,890);
INSERT INTO "communes" VALUES('39','Rogna','05',204,209,10.46,'3791','51474',410,960);
INSERT INTO "communes" VALUES('39','Sampans','13',928,708,7.58,'3467','52362',193,342);
INSERT INTO "communes" VALUES('39','Avignon-lès-Saint-Claude','26',360,309,7.83,'3900','51545',580,917);
INSERT INTO "communes" VALUES('39','Chazelles','25',125,112,4.04,'3340','51560',199,302);
INSERT INTO "communes" VALUES('39','Châtenois','24',345,355,8.03,'3573','52386',207,348);
INSERT INTO "communes" VALUES('39','Barésia-sur-l''Ain','10',154,98,9.39,'3750','51721',423,567);
INSERT INTO "communes" VALUES('39','Larnaud','04',529,493,10.67,'3464','51902',197,236);
INSERT INTO "communes" VALUES('39','Lajoux','26',252,220,23.65,'4039','51528',936,1495);
INSERT INTO "communes" VALUES('39','<NAME>','06',162,169,6.01,'3986','51881',540,848);
INSERT INTO "communes" VALUES('39','Maynal','03',306,280,8.14,'3428','51733',192,574);
INSERT INTO "communes" VALUES('39','Romange','24',212,182,5.49,'3627','52399',211,258);
INSERT INTO "communes" VALUES('39','Molunes','26',141,125,20.51,'3985','51495',750,1330);
INSERT INTO "communes" VALUES('39','Villard-Saint-Sauveur','26',627,654,9.05,'3931','51524',410,1089);
INSERT INTO "communes" VALUES('39','Nantey','25',75,61,6.5,'3403','51565',382,620);
INSERT INTO "communes" VALUES('39','Frasne-les-Meulières','18',109,119,4.88,'3517','52449',197,340);
INSERT INTO "communes" VALUES('39','Crissey','33',655,593,4.81,'3496','52298',194,220);
INSERT INTO "communes" VALUES('39','Étrepigney','12',409,357,15.6,'3728','52366',207,262);
INSERT INTO "communes" VALUES('39','Viry','05',925,827,25.4,'3780','51445',539,1113);
INSERT INTO "communes" VALUES('39','Tourmont','23',465,442,9.73,'3717','52067',239,302);
INSERT INTO "communes" VALUES('39','Mouchard','31',1142,1018,6.18,'3845','52193',244,382);
INSERT INTO "communes" VALUES('39','Rochefort-sur-Nenon','24',563,641,10.2,'3583','52362',201,256);
INSERT INTO "communes" VALUES('39','Dramelay','02',34,32,6.53,'3555','51563',340,629);
INSERT INTO "communes" VALUES('39','Mesnois','10',202,154,11.47,'3725','51779',434,703);
INSERT INTO "communes" VALUES('39','Dole','96',24629,24955,38.38,'3503','52325',196,341);
INSERT INTO "communes" VALUES('39','Gillois','20',143,119,9.65,'4091','51927',690,957);
INSERT INTO "communes" VALUES('39','Plumont','12',92,90,12.1,'3751','52361',212,268);
INSERT INTO "communes" VALUES('39','Saint-Pierre','28',322,316,16.37,'3980','51742',846,1135);
INSERT INTO "communes" VALUES('39','Villeneuve-d''Aval','31',85,75,3.99,'3789','52190',237,297);
INSERT INTO "communes" VALUES('39','Baverans','24',444,323,3.41,'3558','52336',201,237);
INSERT INTO "communes" VALUES('39','Lons-le-Saunier','97',17681,18476,7.68,'3575','51861',243,415);
INSERT INTO "communes" VALUES('39','Ounans','31',385,281,12.19,'3699','52217',214,253);
INSERT INTO "communes" VALUES('39','<NAME>-sur-Furieuse','29',329,287,9.03,'3912','52220',250,550);
INSERT INTO "communes" VALUES('39','Thésy','29',66,62,4.92,'3985','52125',639,718);
INSERT INTO "communes" VALUES('39','Fay-en-Montagne','23',76,83,6.26,'3765','51947',519,567);
INSERT INTO "communes" VALUES('39','Monay','30',134,130,2.5,'3620','52041',235,347);
INSERT INTO "communes" VALUES('39','Mournans-Charbonny','20',85,91,5.06,'4075','51978',636,836);
INSERT INTO "communes" VALUES('39','Champagne-sur-Loue','31',130,116,3.77,'3863','52266',231,342);
INSERT INTO "communes" VALUES('39','Vers-sous-Sellières','30',226,154,8.48,'3554','52028',205,229);
INSERT INTO "communes" VALUES('39','Annoire','09',392,411,15.69,'3269','52176',177,186);
INSERT INTO "communes" VALUES('39','Chisséria','02',84,71,7.25,'3585','51533',335,814);
INSERT INTO "communes" VALUES('39','Passenans','30',336,296,4.94,'3647','51998',250,491);
INSERT INTO "communes" VALUES('39','Équevillon','06',612,524,4.84,'4001','51955',551,812);
INSERT INTO "communes" VALUES('39','Mesnay','01',554,566,8.32,'3845','52113',303,600);
INSERT INTO "communes" VALUES('39','Bois-de-Gand','07',60,62,3.25,'3515','52030',204,226);
INSERT INTO "communes" VALUES('39','Essards-Taignevaux','08',247,217,5.4,'3423','52123',193,219);
INSERT INTO "communes" VALUES('39','Cogna','10',260,212,6.6,'3801','51757',498,700);
INSERT INTO "communes" VALUES('39','Montmirey-le-Château','18',168,145,8.02,'3553','52471',204,293);
INSERT INTO "communes" VALUES('39','Arsure-Arsurette','20',92,87,12.56,'4162','51914',875,1205);
INSERT INTO "communes" VALUES('39','Grande-Rivière','28',421,432,30.59,'3974','51712',846,1152);
INSERT INTO "communes" VALUES('39','<NAME>','32',328,308,10.63,'3736','51928',510,576);
INSERT INTO "communes" VALUES('39','Saint-Lupicin','26',2140,2081,9.54,'3839','51555',410,915);
INSERT INTO "communes" VALUES('39','Soucia','10',163,113,12.37,'3792','51713',484,884);
INSERT INTO "communes" VALUES('39','Trenal','34',369,350,6.64,'3479','51826',198,260);
INSERT INTO "communes" VALUES('39','Ardon','06',132,141,5.04,'3946','51971',525,637);
INSERT INTO "communes" VALUES('39','Fort-du-Plasne','28',427,397,12.92,'4058','51798',730,970);
INSERT INTO "communes" VALUES('39','Chapois','06',210,206,10.07,'4027','52041',597,832);
INSERT INTO "communes" VALUES('39','Lemuy','29',234,264,21.33,'4035','52108',608,884);
INSERT INTO "communes" VALUES('39','Champagnole','06',8077,8609,20.18,'3967','51941',476,783);
INSERT INTO "communes" VALUES('39','Lombard','30',182,129,5.41,'3523','51984',209,253);
INSERT INTO "communes" VALUES('39','Authume','24',808,776,7.52,'3518','52362',223,337);
INSERT INTO "communes" VALUES('40','Bergouey','14',98,110,4.39,'-3397','48521',47,122);
INSERT INTO "communes" VALUES('40','Samadet','06',1056,1010,26.19,'-3137','48488',70,185);
INSERT INTO "communes" VALUES('40','Artassenx','07',264,245,5.5,'-3038','48718',79,122);
INSERT INTO "communes" VALUES('40','Trensacq','20',270,231,79.25,'-3432','49127',45,104);
INSERT INTO "communes" VALUES('40','Ondres','21',4555,3646,15.13,'-4207','48401',3,53);
INSERT INTO "communes" VALUES('40','Maillas','19',113,102,63.84,'-2815','49164',88,152);
INSERT INTO "communes" VALUES('40','Saint-Vincent-de-Paul','04',2997,2141,32.37,'-3706','48608',2,70);
INSERT INTO "communes" VALUES('40','Belhade','17',192,132,28.55,'-3356','49309',32,65);
INSERT INTO "communes" VALUES('40','Betbezer-d''Armagnac','05',141,106,8.1,'-2787','48863',78,144);
INSERT INTO "communes" VALUES('40','Estigarde','05',84,74,29.65,'-2722','48921',113,151);
INSERT INTO "communes" VALUES('40','Gaujacq','02',448,413,16.14,'-3416','48490',29,132);
INSERT INTO "communes" VALUES('40','Saint-Cricq-Villeneuve','28',437,405,15.76,'-2988','48768',39,106);
INSERT INTO "communes" VALUES('40','Cassen','12',573,372,5.97,'-3552','48624',15,65);
INSERT INTO "communes" VALUES('40','Linxe','03',1275,1057,80.93,'-3981','48801',14,71);
INSERT INTO "communes" VALUES('40','Campet-et-Lamolère','11',346,265,18.97,'-3270','48798',18,56);
INSERT INTO "communes" VALUES('40','Lucbardez-et-Bargues','11',507,329,21.48,'-3046','48857',38,97);
INSERT INTO "communes" VALUES('40','Lacrabe','08',237,185,6.27,'-3252','48462',49,135);
INSERT INTO "communes" VALUES('40','Benquet','30',1494,1293,29.33,'-3153','48700',46,91);
INSERT INTO "communes" VALUES('40','Villeneuve-de-Marsan','28',2371,2109,23.14,'-2937','48770',48,116);
INSERT INTO "communes" VALUES('40','Messanges','25',984,646,34,'-4128','48684',0,60);
INSERT INTO "communes" VALUES('40','Poyanne','12',613,518,10.72,'-3504','48618',12,99);
INSERT INTO "communes" VALUES('40','Saint-Perdon','30',1707,984,30.62,'-3254','48743',20,94);
INSERT INTO "communes" VALUES('40','Saint-Sever','22',4789,4447,46.96,'-3234','48619',26,118);
INSERT INTO "communes" VALUES('40','Saint-Avit','11',615,541,40.74,'-3091','48824',33,97);
INSERT INTO "communes" VALUES('40','Josse','23',817,730,9.48,'-3956','48490',2,36);
INSERT INTO "communes" VALUES('40','Uza','03',155,160,12.88,'-3930','48926',12,44);
INSERT INTO "communes" VALUES('40','Castel-Sarrazin','02',531,361,12.01,'-3463','48466',25,73);
INSERT INTO "communes" VALUES('40','Montfort-en-Chalosse','12',1157,1210,11.57,'-3527','48568',26,108);
INSERT INTO "communes" VALUES('40','Saint-Lon-les-Mines','16',1186,905,21.82,'-3848','48460',4,105);
INSERT INTO "communes" VALUES('40','Argelos','02',185,173,6.44,'-3295','48425',48,157);
INSERT INTO "communes" VALUES('40','Cauneille','16',797,705,15.42,'-3778','48385',2,136);
INSERT INTO "communes" VALUES('40','Sainte-Foy','28',254,138,9.1,'-2965','48819',63,102);
INSERT INTO "communes" VALUES('40','Port-de-Lanne','16',901,702,12.68,'-3906','48405',0,63);
INSERT INTO "communes" VALUES('40','Angresse','25',1535,1093,7.68,'-4121','48510',2,21);
INSERT INTO "communes" VALUES('40','Misson','18',716,628,14.69,'-3663','48430',27,112);
INSERT INTO "communes" VALUES('40','Bas-Mauco','22',319,277,11.5,'-3213','48663',35,74);
INSERT INTO "communes" VALUES('40','Saint-André-de-Seignanx','21',1542,1274,19.49,'-4098','48397',1,67);
INSERT INTO "communes" VALUES('40','Seyresse','29',798,595,2.23,'-3779','48540',2,38);
INSERT INTO "communes" VALUES('40','Bostens','11',176,149,7.66,'-2997','48857',80,119);
INSERT INTO "communes" VALUES('40','Aubagnan','08',242,233,3.4,'-3139','48519',62,140);
INSERT INTO "communes" VALUES('40','Saugnac-et-Cambran','29',1612,1269,13.28,'-3699','48523',4,77);
INSERT INTO "communes" VALUES('40','Clèdes','06',120,128,6.84,'-3016','48466',91,185);
INSERT INTO "communes" VALUES('40','Morcenx','13',4606,4392,62.08,'-3612','48926',50,104);
INSERT INTO "communes" VALUES('40','Pontonx-sur-l''Adour','27',2516,2072,49.42,'-3625','48653',5,75);
INSERT INTO "communes" VALUES('40','Carcen-Ponson','27',629,564,36.72,'-3492','48757',12,102);
INSERT INTO "communes" VALUES('40','Laluque','27',823,610,52.81,'-3699','48727',38,86);
INSERT INTO "communes" VALUES('40','Coudures','22',476,384,11.65,'-3174','48546',50,135);
INSERT INTO "communes" VALUES('40','Lahosse','14',292,257,8.08,'-3481','48570',25,101);
INSERT INTO "communes" VALUES('40','Moustey','17',668,607,67.31,'-3441','49288',19,63);
INSERT INTO "communes" VALUES('40','Pouydesseaux','19',901,626,34.09,'-2957','48855',48,136);
INSERT INTO "communes" VALUES('40','Caupenne','14',404,361,15.22,'-3424','48537',32,122);
INSERT INTO "communes" VALUES('40','Meilhan','26',1104,999,39.07,'-3381','48737',18,84);
INSERT INTO "communes" VALUES('40','Peyre','08',214,223,10.25,'-3204','48408',60,156);
INSERT INTO "communes" VALUES('40','Pécorade','06',152,164,4.17,'-3008','48506',95,175);
INSERT INTO "communes" VALUES('40','Aire-sur-l''Adour','01',6279,6003,57.78,'-2888','48559',68,176);
INSERT INTO "communes" VALUES('40','Toulouzette','14',279,269,11.26,'-3358','48618',19,98);
INSERT INTO "communes" VALUES('40','Onesse-et-Laharie','13',959,927,132.13,'-3784','48957',22,96);
INSERT INTO "communes" VALUES('40','Mano','17',109,93,32.27,'-3343','49353',38,74);
INSERT INTO "communes" VALUES('40','Saint-Barthélemy','21',370,236,5.66,'-4075','48349',0,71);
INSERT INTO "communes" VALUES('40','Gibret','12',103,83,2.58,'-3509','48541',31,102);
INSERT INTO "communes" VALUES('40','Cachen','19',232,216,35.66,'-3074','48966',62,114);
INSERT INTO "communes" VALUES('40','Saint-Aubin','14',502,461,9.72,'-3370','48568',32,107);
INSERT INTO "communes" VALUES('40','Montsoué','22',574,557,17.98,'-3159','48590',45,166);
INSERT INTO "communes" VALUES('40','Ozourt','12',201,155,3.97,'-3569','48515',17,51);
INSERT INTO "communes" VALUES('40','Créon-d''Armagnac','05',335,280,21.26,'-2713','48883',110,163);
INSERT INTO "communes" VALUES('40','Mouscardès','18',258,230,9.14,'-3574','48425',45,125);
INSERT INTO "communes" VALUES('40','Bonnegarde','02',287,275,9.67,'-3378','48409',49,131);
INSERT INTO "communes" VALUES('40','Saint-Laurent-de-Gosse','21',560,482,17.39,'-4005','48370',0,76);
INSERT INTO "communes" VALUES('40','Montaut','22',556,602,14.88,'-3325','48601',25,121);
INSERT INTO "communes" VALUES('40','Gouts','26',242,238,10.88,'-3488','48654',11,34);
INSERT INTO "communes" VALUES('40','Estibeaux','18',654,502,16.72,'-3603','48444',25,126);
INSERT INTO "communes" VALUES('40','Moliets-et-Maa','25',956,609,27.66,'-4105','48721',0,55);
INSERT INTO "communes" VALUES('40','Castandet','07',400,415,16.66,'-2976','48675',67,126);
INSERT INTO "communes" VALUES('40','Lacquy','28',232,221,19.28,'-2901','48834',75,127);
INSERT INTO "communes" VALUES('40','Sorde-l''Abbaye','16',651,535,16.34,'-3767','48365',2,135);
INSERT INTO "communes" VALUES('40','Léon','03',1877,1461,64.45,'-4044','48752',6,67);
INSERT INTO "communes" VALUES('40','Louer','12',266,179,2.85,'-3587','48618',10,52);
INSERT INTO "communes" VALUES('40','Gastes','15',606,410,35.23,'-3870','49252',2,60);
INSERT INTO "communes" VALUES('40','Parentis-en-Born','15',5304,4430,111.55,'-3790','49277',20,57);
INSERT INTO "communes" VALUES('40','Rion-des-Landes','27',2459,2199,118.25,'-3619','48807',46,103);
INSERT INTO "communes" VALUES('40','Mimizan','10',7069,6862,114.83,'-3961','49112',0,80);
INSERT INTO "communes" VALUES('40','Gaillères','11',571,430,14.04,'-3010','48823',63,102);
INSERT INTO "communes" VALUES('40','Grange','05',205,190,21.13,'-2707','48859',90,167);
INSERT INTO "communes" VALUES('40','Biscarrosse','15',12197,9290,160.48,'-3889','49326',0,78);
INSERT INTO "communes" VALUES('40','Orthevielle','16',904,718,13.94,'-3871','48391',1,106);
INSERT INTO "communes" VALUES('40','Beyries','02',106,86,4.29,'-3305','48413',77,163);
INSERT INTO "communes" VALUES('40','Castelnau-Chalosse','02',555,435,10.66,'-3534','48516',17,96);
INSERT INTO "communes" VALUES('40','Classun','01',264,180,8.82,'-3056','48567',76,154);
INSERT INTO "communes" VALUES('40','Hagetmau','08',4535,4411,28.37,'-3256','48506',72,142);
INSERT INTO "communes" VALUES('40','Duhort-Bachen','01',632,600,34.17,'-2955','48583',64,159);
INSERT INTO "communes" VALUES('40','Fargues','22',322,264,11.84,'-3096','48588',57,130);
INSERT INTO "communes" VALUES('40','Labenne','23',4803,3340,24.48,'-4181','48437',2,52);
INSERT INTO "communes" VALUES('40','Mézos','10',854,816,89.05,'-3890','48974',12,72);
INSERT INTO "communes" VALUES('40','Baigts','14',342,322,11.64,'-3475','48541',32,122);
INSERT INTO "communes" VALUES('40','Cagnotte','18',700,525,14.68,'-3782','48440',12,135);
INSERT INTO "communes" VALUES('40','Sainte-Colombe','08',651,455,12.79,'-3215','48535',50,139);
INSERT INTO "communes" VALUES('40','Peyrehorade','16',3467,3016,16.11,'-3818','48383',2,140);
INSERT INTO "communes" VALUES('40','Cazalis','08',149,134,5.13,'-3331','48472',40,127);
INSERT INTO "communes" VALUES('40','Bias','10',765,514,20.95,'-3949','49051',20,70);
INSERT INTO "communes" VALUES('40','Sabres','20',1220,1106,160.13,'-3418','49053',58,107);
INSERT INTO "communes" VALUES('40','Biarrotte','21',249,226,4.9,'-4009','48401',8,55);
INSERT INTO "communes" VALUES('40','Candresse','29',791,558,8.54,'-3685','48569',4,48);
INSERT INTO "communes" VALUES('40','Brocas','09',787,700,53.46,'-3190','48937',54,111);
INSERT INTO "communes" VALUES('40','Nassiet','02',331,279,11.77,'-3350','48445',38,145);
INSERT INTO "communes" VALUES('40','Saint-Julien-d''Armagnac','05',118,102,14.64,'-2740','48870',94,157);
INSERT INTO "communes" VALUES('40','Montgaillard','22',577,485,20.46,'-3133','48602',38,124);
INSERT INTO "communes" VALUES('40','Arsague','02',347,277,7.18,'-3481','48423',46,94);
INSERT INTO "communes" VALUES('40','Ossages','18',478,423,14.31,'-3575','48397',43,148);
INSERT INTO "communes" VALUES('40','<NAME>','28',392,386,23.41,'-2863','48814',55,124);
INSERT INTO "communes" VALUES('40','Bordères-et-Lamensans','07',349,344,15.6,'-3000','48637',52,90);
INSERT INTO "communes" VALUES('40','Dax','97',20665,19557,19.7,'-3764','48563',2,46);
INSERT INTO "communes" VALUES('40','Vieux-Boucau-les-Bains','25',1564,1383,4.25,'-4156','48651',0,21);
INSERT INTO "communes" VALUES('40','Villenave','27',264,254,27.37,'-3493','48853',27,99);
INSERT INTO "communes" VALUES('40','Arjuzanx','13',212,214,29.2,'-3547','48903',41,103);
INSERT INTO "communes" VALUES('40','Arthez-d''Armagnac','28',120,102,11.17,'-2884','48772',52,114);
INSERT INTO "communes" VALUES('40','Castelnau-Tursan','06',187,190,9.27,'-3048','48509',74,179);
INSERT INTO "communes" VALUES('40','Haut-Mauco','30',809,720,18.64,'-3213','48695',49,91);
INSERT INTO "communes" VALUES('40','Capbreton','23',7965,6642,21.75,'-4187','48491',0,51);
INSERT INTO "communes" VALUES('40','Puyol-Cazalet','06',122,96,4.59,'-3048','48449',90,167);
INSERT INTO "communes" VALUES('40','Sainte-Eulalie-en-Born','15',1167,785,70.83,'-3910','49193',2,62);
INSERT INTO "communes" VALUES('40','Narrosse','29',3015,2507,10.53,'-3714','48560',4,44);
INSERT INTO "communes" VALUES('40','Lévignacq','03',346,345,42.32,'-3893','48895',27,75);
INSERT INTO "communes" VALUES('40','Urgons','06',264,251,11.53,'-3088','48499',72,160);
INSERT INTO "communes" VALUES('40','Labrit','09',874,715,72.18,'-3201','49005',70,113);
INSERT INTO "communes" VALUES('40','Saint-Pierre-du-Mont','30',8924,7186,26.25,'-3173','48758',25,102);
INSERT INTO "communes" VALUES('40','Boos','27',312,149,15.81,'-3700','48768',60,88);
INSERT INTO "communes" VALUES('40','Laurède','14',371,340,5.7,'-3472','48617',13,99);
INSERT INTO "communes" VALUES('40','Saint-Cricq-du-Gave','16',370,264,8.7,'-3722','48371',6,143);
INSERT INTO "communes" VALUES('40','Lussagnet','07',81,82,8.43,'-2856','48639',87,141);
INSERT INTO "communes" VALUES('40','Bourriot-Bergonce','19',328,311,82.65,'-2874','49030',89,148);
INSERT INTO "communes" VALUES('40','Pontenx-les-Forges','10',1467,1085,80.62,'-3842','49157',9,56);
INSERT INTO "communes" VALUES('40','Saint-Cricq-Chalosse','08',659,559,20.23,'-3357','48505',50,128);
INSERT INTO "communes" VALUES('40','Soorts-Hossegor','25',3723,3296,14.51,'-4182','48509',0,55);
INSERT INTO "communes" VALUES('40','Vielle-Tursan','01',289,291,12.81,'-3097','48528',64,142);
INSERT INTO "communes" VALUES('40','Saint-Jean-de-Lier','12',388,323,8.15,'-3572','48655',6,43);
INSERT INTO "communes" VALUES('40','Saint-Julien-en-Born','03',1451,1312,72.93,'-3957','48959',0,64);
INSERT INTO "communes" VALUES('40','Bénesse-Maremne','23',2297,1754,18.69,'-4107','48482',1,25);
INSERT INTO "communes" VALUES('40','Lüe','20',506,464,96.72,'-3690','49146',33,80);
INSERT INTO "communes" VALUES('40','Orist','16',679,537,14.76,'-3904','48490',2,100);
INSERT INTO "communes" VALUES('40','Amou','02',1559,1452,27.25,'-3426','48437',31,147);
INSERT INTO "communes" VALUES('40','Miramont-Sensacq','06',361,366,25.32,'-2960','48439',111,221);
INSERT INTO "communes" VALUES('40','Oeyregave','16',362,295,8.03,'-3816','48371',2,69);
INSERT INTO "communes" VALUES('40','Argelouse','24',101,55,22.79,'-3314','49296',39,73);
INSERT INTO "communes" VALUES('40','Rimbez-et-Baudiets','05',101,86,32.84,'-2538','48947',88,154);
INSERT INTO "communes" VALUES('40','Bélis','09',149,137,20.46,'-3108','48960',62,111);
INSERT INTO "communes" VALUES('40','Castaignos-Souslens','02',396,358,7.45,'-3319','48429',45,146);
INSERT INTO "communes" VALUES('40','Lencouacq','19',398,403,96.62,'-3046','48999',75,128);
INSERT INTO "communes" VALUES('40','Renung','01',508,467,21.95,'-2995','48610',54,145);
INSERT INTO "communes" VALUES('40','Banos','22',253,232,5.77,'-3288','48596',34,124);
INSERT INTO "communes" VALUES('40','Heugas','29',1237,1268,18.79,'-3797','48491',1,80);
INSERT INTO "communes" VALUES('40','Habas','18',1443,1310,18.75,'-3629','48413',14,123);
INSERT INTO "communes" VALUES('40','Garrey','12',179,181,4.93,'-3605','48523',11,46);
INSERT INTO "communes" VALUES('40','Doazit','14',900,887,22.16,'-3314','48545',57,127);
INSERT INTO "communes" VALUES('40','Ychoux','15',2041,1482,111.28,'-3661','49253',37,71);
INSERT INTO "communes" VALUES('40','Pey','16',696,544,13.85,'-3931','48479',2,57);
INSERT INTO "communes" VALUES('40','Audon','26',321,275,7.55,'-3514','48664',8,55);
INSERT INTO "communes" VALUES('40','Lauret','06',82,74,7.34,'-2978','48403',117,237);
INSERT INTO "communes" VALUES('40','Gousse','12',305,170,4.09,'-3592','48637',6,34);
INSERT INTO "communes" VALUES('40','Aureilhan','10',946,640,11.51,'-3935','49133',5,34);
INSERT INTO "communes" VALUES('40','Luxey','24',662,659,160.07,'-3174','49182',62,121);
INSERT INTO "communes" VALUES('40','Momuy','08',453,367,13.3,'-3302','48460',41,126);
INSERT INTO "communes" VALUES('40','Aurice','22',645,633,17.31,'-3268','48682',26,83);
INSERT INTO "communes" VALUES('40','Tarnos','21',11906,10073,26.26,'-4220','48378',0,53);
INSERT INTO "communes" VALUES('40','Escource','20',610,605,102.74,'-3744','49072',23,84);
INSERT INTO "communes" VALUES('40','Lamothe','26',300,316,12.63,'-3322','48657',27,74);
INSERT INTO "communes" VALUES('40','Retjons','19',320,278,77.84,'-2924','49003',68,134);
INSERT INTO "communes" VALUES('40','Sindères','13',185,179,20.34,'-3691','48919',56,96);
INSERT INTO "communes" VALUES('40','Arue','19',309,286,48.11,'-2987','48956',47,113);
INSERT INTO "communes" VALUES('40','Maylis','14',340,329,12.21,'-3352','48552',43,122);
INSERT INTO "communes" VALUES('40','Saint-Geours-d''Auribat','12',348,279,5.47,'-3527','48619',15,86);
INSERT INTO "communes" VALUES('40','Commensacq','20',406,320,71.24,'-3513','49123',49,84);
INSERT INTO "communes" VALUES('40','Poudenx','08',229,203,7.46,'-3243','48419',53,151);
INSERT INTO "communes" VALUES('40','Larbey','14',249,236,6,'-3394','48559',33,108);
INSERT INTO "communes" VALUES('40','Arboucave','06',202,194,9.89,'-3080','48458',86,170);
INSERT INTO "communes" VALUES('40','Goos','12',538,423,10.49,'-3595','48588',4,73);
INSERT INTO "communes" VALUES('40','Dumes','22',268,133,2.48,'-3243','48562',51,113);
INSERT INTO "communes" VALUES('40','Ygos-Saint-Saturnin','13',1219,1135,57.88,'-3414','48862',44,101);
INSERT INTO "communes" VALUES('40','Sore','24',1044,897,147.72,'-3242','49248',45,99);
INSERT INTO "communes" VALUES('40','Luglon','20',339,307,41.07,'-3393','48980',79,103);
INSERT INTO "communes" VALUES('40','Geaune','06',730,660,10.53,'-3017','48489',82,221);
INSERT INTO "communes" VALUES('40','Hastingues','16',601,447,14.54,'-3873','48371',0,84);
INSERT INTO "communes" VALUES('40','Yzosse','29',422,429,5.32,'-3721','48569',4,12);
INSERT INTO "communes" VALUES('40','Liposthey','17',438,323,23.97,'-3574','49241',61,73);
INSERT INTO "communes" VALUES('40','Marpaps','02',147,109,6.84,'-3356','48413',72,142);
INSERT INTO "communes" VALUES('40','Azur','25',601,448,16.94,'-4043','48665',3,49);
INSERT INTO "communes" VALUES('40','Pouillon','18',2870,2685,49.74,'-3703','48450',18,121);
INSERT INTO "communes" VALUES('40','Latrille','01',166,186,6.84,'-2916','48476',132,187);
INSERT INTO "communes" VALUES('40','Bahus-Soubiran','01',372,303,14.53,'-2992','48526',100,169);
INSERT INTO "communes" VALUES('40','Carcarès-Sainte-Croix','26',488,434,15.57,'-3475','48713',14,74);
INSERT INTO "communes" VALUES('40','Monségur','08',378,299,19.69,'-3198','48449',60,151);
INSERT INTO "communes" VALUES('40','Larrivière-Saint-Savin','07',600,577,16.85,'-3071','48632',45,134);
INSERT INTO "communes" VALUES('40','Sort-en-Chalosse','12',886,708,15.39,'-3630','48537',8,50);
INSERT INTO "communes" VALUES('40','Saint-Geours-de-Maremne','25',2157,1666,42.9,'-3962','48541',1,66);
INSERT INTO "communes" VALUES('40','Solférino','20',345,348,97.83,'-3615','49051',74,85);
INSERT INTO "communes" VALUES('40','Gabarret','05',1287,1296,16.9,'-2584','48874',135,178);
INSERT INTO "communes" VALUES('40','Saint-Agnet','01',193,188,7.8,'-2900','48452',99,196);
INSERT INTO "communes" VALUES('40','Uchacq-et-Parentis','11',575,496,38.58,'-3219','48809',28,74);
INSERT INTO "communes" VALUES('40','Tercis-les-Bains','29',1161,1035,10.19,'-3830','48524',2,62);
INSERT INTO "communes" VALUES('40','Pujo-le-Plan','28',577,544,18.51,'-2965','48735',51,116);
INSERT INTO "communes" VALUES('40','Tosse','25',2374,1679,17.94,'-4077','48544',12,54);
INSERT INTO "communes" VALUES('40','Bretagne-de-Marsan','30',1426,910,12.93,'-3112','48719',62,97);
INSERT INTO "communes" VALUES('40','Cauna','22',421,389,13.39,'-3306','48646',21,74);
INSERT INTO "communes" VALUES('40','Onard','12',351,296,6.15,'-3526','48645',8,50);
INSERT INTO "communes" VALUES('40','Serres-Gaston','08',360,341,8.88,'-3170','48508',52,142);
INSERT INTO "communes" VALUES('40','Téthieu','04',656,493,11.03,'-3679','48613',4,34);
INSERT INTO "communes" VALUES('40','Labastide-Chalosse','08',135,117,4.56,'-3274','48458',49,127);
INSERT INTO "communes" VALUES('40','Gamarde-les-Bains','12',1050,883,18.95,'-3566','48592',9,97);
INSERT INTO "communes" VALUES('40','Bélus','16',603,431,11.84,'-3829','48435',35,130);
INSERT INTO "communes" VALUES('40','Hinx','12',1775,1145,15.51,'-3626','48557',3,55);
INSERT INTO "communes" VALUES('40','Lacajunte','06',134,136,5.63,'-3068','48437',94,174);
INSERT INTO "communes" VALUES('40','Saubion','23',1377,935,7.8,'-4094','48524',7,38);
INSERT INTO "communes" VALUES('40','Saint-Gor','19',310,270,53.72,'-2864','48949',65,128);
INSERT INTO "communes" VALUES('40','Saint-Loubouer','01',434,410,16.95,'-3063','48530',72,166);
INSERT INTO "communes" VALUES('40','Mauries','06',90,63,5.49,'-2966','48465',103,221);
INSERT INTO "communes" VALUES('40','Donzacq','02',445,388,11.7,'-3490','48507',20,112);
INSERT INTO "communes" VALUES('40','Gaas','18',490,364,9.13,'-3745','48459',17,87);
INSERT INTO "communes" VALUES('40','Clermont','12',810,645,15.02,'-3614','48502',9,59);
INSERT INTO "communes" VALUES('40','Bégaar','27',1089,939,27.8,'-3541','48696',7,52);
INSERT INTO "communes" VALUES('40','Orx','23',521,422,11.89,'-4118','48448',3,31);
INSERT INTO "communes" VALUES('40','Tilh','18',816,749,22.86,'-3525','48417',59,151);
INSERT INTO "communes" VALUES('40','Saint-Yaguen','27',569,456,37.59,'-3421','48766',15,57);
INSERT INTO "communes" VALUES('40','<NAME>','26',226,204,9.46,'-3321','48691',52,84);
INSERT INTO "communes" VALUES('40','Biaudos','21',803,635,15.59,'-4046','48389',0,66);
INSERT INTO "communes" VALUES('40','Gourbera','04',356,256,27.73,'-3760','48671',26,84);
INSERT INTO "communes" VALUES('40','Eyres-Moncube','22',375,343,12.19,'-3207','48578',44,122);
INSERT INTO "communes" VALUES('40','Saubusse','04',818,741,10.53,'-3915','48508',1,31);
INSERT INTO "communes" VALUES('40','Mant','08',289,272,19.34,'-3162','48429',68,208);
INSERT INTO "communes" VALUES('40','Brassempouy','02',302,268,10.72,'-3368','48480',35,131);
INSERT INTO "communes" VALUES('40','Magescq','25',1853,1380,77.12,'-3948','48644',9,66);
INSERT INTO "communes" VALUES('40','Sarron','01',120,87,3.9,'-2901','48435',107,199);
INSERT INTO "communes" VALUES('40','<NAME>','09',207,201,51.1,'-3153','49030',88,123);
INSERT INTO "communes" VALUES('40','Lit-et-Mixe','03',1520,1441,112.95,'-3993','48925',0,72);
INSERT INTO "communes" VALUES('40','Lespéron','13',1017,864,102.81,'-3811','48856',37,99);
INSERT INTO "communes" VALUES('40','Parleboscq','05',506,504,40.19,'-2579','48826',87,182);
INSERT INTO "communes" VALUES('40','Saubrigues','23',1381,1079,21.44,'-4056','48456',2,85);
INSERT INTO "communes" VALUES('40','Arx','05',67,57,24.18,'-2513','49007',90,159);
INSERT INTO "communes" VALUES('40','Labouheyre','20',2592,2537,36.13,'-3617','49125',57,84);
INSERT INTO "communes" VALUES('40','Garrosse','13',312,297,26.68,'-3627','48903',58,94);
INSERT INTO "communes" VALUES('40','Vielle-Soubiran','19',246,197,32.71,'-2802','48939',92,142);
INSERT INTO "communes" VALUES('40','Cère','09',407,274,39.87,'-3190','48880',42,99);
INSERT INTO "communes" VALUES('40','Bougue','30',612,526,21.96,'-3032','48767',34,96);
INSERT INTO "communes" VALUES('40','Nerbis','14',257,251,4.15,'-3414','48617',16,103);
INSERT INTO "communes" VALUES('40','Herm','04',1044,783,52.08,'-3868','48675',28,84);
INSERT INTO "communes" VALUES('40','Cazères-sur-l''Adour','07',1144,862,31.25,'-2949','48623',62,139);
INSERT INTO "communes" VALUES('40','Lourquen','12',222,188,5.9,'-3470','48590',24,86);
INSERT INTO "communes" VALUES('40','Herré','05',127,144,23.14,'-2624','48898',138,152);
INSERT INTO "communes" VALUES('40','<NAME>','07',487,385,11.07,'-2917','48642',72,132);
INSERT INTO "communes" VALUES('40','Bats','06',291,230,7.35,'-3106','48510',69,148);
INSERT INTO "communes" VALUES('40','Bourdalat','28',210,187,14.15,'-2829','48710',76,135);
INSERT INTO "communes" VALUES('40','Perquie','28',365,297,26.34,'-2912','48753',58,121);
INSERT INTO "communes" VALUES('40','Montégut','28',71,81,4.82,'-2817','48750',63,110);
INSERT INTO "communes" VALUES('40','Hontanx','28',548,536,30.48,'-2900','48694',77,137);
INSERT INTO "communes" VALUES('40','Vert','09',236,209,40.03,'-3241','48989',69,106);
INSERT INTO "communes" VALUES('40','Audignon','22',359,327,9.31,'-3267','48580',37,116);
INSERT INTO "communes" VALUES('40','Sarraziet','22',209,153,7.01,'-3140','48559',51,156);
INSERT INTO "communes" VALUES('40','Lubbon','05',106,95,47.74,'-2625','49005',134,156);
INSERT INTO "communes" VALUES('40','Castets','03',1963,1808,90.18,'-3870','48758',23,86);
INSERT INTO "communes" VALUES('40','Saint-Michel-Escalus','03',291,231,17.59,'-3997','48770',8,57);
INSERT INTO "communes" VALUES('40','Serreslous-et-Arribans','08',208,182,5.46,'-3314','48515',62,132);
INSERT INTO "communes" VALUES('40','Mont-de-Marsan','98',31225,29529,36.88,'-3152','48767',23,97);
INSERT INTO "communes" VALUES('40','Maurrin','07',459,385,13.38,'-3010','48694',67,121);
INSERT INTO "communes" VALUES('40','Hauriet','14',264,251,7.57,'-3371','48592',24,106);
INSERT INTO "communes" VALUES('40','Saint-Martin-de-Seignanx','21',4863,3904,45.35,'-4137','48381',0,72);
INSERT INTO "communes" VALUES('40','Saint-Jean-de-Marsacq','23',1325,894,26.4,'-3992','48472',2,91);
INSERT INTO "communes" VALUES('40','Roquefort','19',1896,1897,12.12,'-2954','48926',49,95);
INSERT INTO "communes" VALUES('40','Sainte-Marie-de-Gosse','23',1060,878,26.54,'-3972','48396',0,108);
INSERT INTO "communes" VALUES('40','Payros-Cazautets','06',95,100,6.35,'-3029','48474',79,166);
INSERT INTO "communes" VALUES('40','Mugron','14',1390,1324,16.53,'-3429','48611',14,111);
INSERT INTO "communes" VALUES('40','Ousse-Suzan','13',243,252,24.48,'-3443','48840',22,96);
INSERT INTO "communes" VALUES('40','Campagne','30',944,840,33.91,'-3307','48739',20,92);
INSERT INTO "communes" VALUES('40','Saint-Martin-d''Oney','11',1303,927,34.4,'-3308','48810',18,67);
INSERT INTO "communes" VALUES('40','Saint-Justin','19',929,887,65.62,'-2853','48867',62,151);
INSERT INTO "communes" VALUES('40','Baudignan','05',42,36,23.3,'-2540','48988',104,161);
INSERT INTO "communes" VALUES('40','Saint-Pandelon','29',750,668,9.18,'-3750','48522',1,61);
INSERT INTO "communes" VALUES('40','Soustons','25',7294,5751,100.38,'-4073','48613',0,62);
INSERT INTO "communes" VALUES('40','Morganx','08',186,170,5.22,'-3230','48451',57,136);
INSERT INTO "communes" VALUES('40','Pomarez','02',1503,1451,30.57,'-3517','48477',20,72);
INSERT INTO "communes" VALUES('40','Bénesse-lès-Dax','29',518,454,5.89,'-3746','48491',21,96);
INSERT INTO "communes" VALUES('40','Losse','05',260,308,102.69,'-2710','49010',95,157);
INSERT INTO "communes" VALUES('40','Saugnacq-et-Muret','17',905,712,109.37,'-3515','49341',20,64);
INSERT INTO "communes" VALUES('40','Geloux','11',734,511,51.7,'-3305','48867',33,84);
INSERT INTO "communes" VALUES('40','Garein','09',424,382,57.1,'-3320','48941',65,106);
INSERT INTO "communes" VALUES('40','Beylongue','27',363,300,37.51,'-3517','48803',35,103);
INSERT INTO "communes" VALUES('40','Préchacq-les-Bains','12',676,462,8.63,'-3605','48620',5,36);
INSERT INTO "communes" VALUES('40','Monget','08',82,87,5.64,'-3175','48407',70,170);
INSERT INTO "communes" VALUES('40','Oeyreluy','29',1593,1119,5.72,'-3796','48524',2,44);
INSERT INTO "communes" VALUES('40','Tartas','99',3088,2843,30.37,'-3494','48703',10,68);
INSERT INTO "communes" VALUES('40','Buanes','01',278,199,6.62,'-3065','48568',69,149);
INSERT INTO "communes" VALUES('40','Mées','04',1736,1375,15.11,'-3826','48558',1,49);
INSERT INTO "communes" VALUES('40','Rivière-Saas-et-Gourby','04',1180,941,27.37,'-3876','48532',2,57);
INSERT INTO "communes" VALUES('40','Souprosse','26',997,1069,42.56,'-3385','48654',15,84);
INSERT INTO "communes" VALUES('40','Labastide-d''Armagnac','19',689,707,31.87,'-2803','48855',67,139);
INSERT INTO "communes" VALUES('40','Saint-Gein','28',448,395,17.85,'-2931','48706',69,127);
INSERT INTO "communes" VALUES('40','Mauvezin-d''Armagnac','05',107,86,4.68,'-2731','48836',82,132);
INSERT INTO "communes" VALUES('40','Sanguinet','15',3258,1984,81.43,'-3790','49427',20,45);
INSERT INTO "communes" VALUES('40','Taller','03',458,417,41.07,'-3788','48748',57,89);
INSERT INTO "communes" VALUES('40','Sarbazan','19',1098,948,22.44,'-2942','48910',54,112);
INSERT INTO "communes" VALUES('40','Vicq-d''Auribat','12',262,189,4.2,'-3551','48650',9,45);
INSERT INTO "communes" VALUES('40','Maillères','09',213,182,15.05,'-3089','48920',44,118);
INSERT INTO "communes" VALUES('40','Pissos','17',1356,1097,140.75,'-3461','49232',30,79);
INSERT INTO "communes" VALUES('40','Saint-Paul-lès-Dax','04',12409,10228,58.45,'-3766','48584',2,61);
INSERT INTO "communes" VALUES('40','Siest','29',113,82,2.91,'-3853','48499',1,97);
INSERT INTO "communes" VALUES('40','Nousse','12',282,226,3.87,'-3510','48574',22,107);
INSERT INTO "communes" VALUES('40','Bastennes','02',264,241,7.29,'-3468','48501',24,98);
INSERT INTO "communes" VALUES('40','Eugénie-les-Bains','01',448,507,11.03,'-3017','48551',82,159);
INSERT INTO "communes" VALUES('40','Seignosse','25',3310,2423,35.09,'-4121','48544',0,62);
INSERT INTO "communes" VALUES('40','Saint-Martin-de-Hinx','23',1296,938,25.48,'-4008','48424',1,106);
INSERT INTO "communes" VALUES('40','Poyartin','12',754,631,13.04,'-3560','48539',17,102);
INSERT INTO "communes" VALUES('40','Pimbo','06',185,179,10.89,'-3016','48418',100,213);
INSERT INTO "communes" VALUES('40','Horsarrieu','08',633,636,11.02,'-3259','48537',50,133);
INSERT INTO "communes" VALUES('40','Bassercles','02',118,122,6.59,'-3278','48401',65,167);
INSERT INTO "communes" VALUES('40','Philondenx','06',215,204,9.66,'-3092','48403',101,227);
INSERT INTO "communes" VALUES('40','Labatut','18',1423,1099,20.95,'-3691','48389',5,125);
INSERT INTO "communes" VALUES('40','Castelner','08',116,103,5.73,'-3243','48392',74,202);
INSERT INTO "communes" VALUES('40','Mazerolles','30',698,566,15.97,'-3081','48750',34,107);
INSERT INTO "communes" VALUES('40','Canenx-et-Réaut','09',175,135,28.07,'-3088','48896',38,108);
INSERT INTO "communes" VALUES('40','Bascons','07',912,869,18.7,'-3061','48691',66,107);
INSERT INTO "communes" VALUES('40','Vielle-Saint-Girons','03',1195,1026,72.03,'-4040','48833',0,76);
INSERT INTO "communes" VALUES('40','Saint-Étienne-d''Orthe','16',593,467,11.07,'-3905','48430',2,57);
INSERT INTO "communes" VALUES('40','Escalans','05',251,219,30.31,'-2548','48904',86,176);
INSERT INTO "communes" VALUES('40','Angoumé','04',288,179,7.83,'-3859','48542',2,57);
INSERT INTO "communes" VALUES('40','Grenade-sur-l''Adour','07',2503,2266,19.72,'-3073','48640',48,84);
INSERT INTO "communes" VALUES('40','Laglorieuse','30',557,567,11.59,'-3047','48741',52,118);
INSERT INTO "communes" VALUES('40','Lesgor','27',375,262,28.19,'-3597','48725',17,75);
INSERT INTO "communes" VALUES('40','Sorbets','06',186,169,11.88,'-2962','48484',105,218);
INSERT INTO "communes" VALUES('40','Saint-Maurice-sur-Adour','07',578,509,9.53,'-3116','48650',41,76);
INSERT INTO "communes" VALUES('40','Arengosse','13',706,676,62.48,'-3469','48891',32,102);
INSERT INTO "communes" VALUES('40','Mimbaste','18',1018,993,20.6,'-3677','48498',5,72);
INSERT INTO "communes" VALUES('40','Saint-Vincent-de-Tyrosse','23',7585,5365,20.98,'-4045','48512',7,61);
INSERT INTO "communes" VALUES('40','Callen','24',142,149,87.86,'-3125','49221',65,119);
INSERT INTO "communes" VALUES('40','Saint-Paul-en-Born','10',817,602,43.53,'-3877','49138',6,54);
INSERT INTO "communes" VALUES('41','Mur-de-Sologne','22',1430,1197,50.5,'-809','52681',88,131);
INSERT INTO "communes" VALUES('41','Chaumont-sur-Tharonne','07',1096,1073,78.33,'-479','52901',98,142);
INSERT INTO "communes" VALUES('41','Montrieux-en-Sologne','15',631,524,34.11,'-681','52837',80,118);
INSERT INTO "communes" VALUES('41','Villeromain','23',225,198,13.08,'-1326','53032',114,133);
INSERT INTO "communes" VALUES('41','Saint-Rimay','12',285,311,7.36,'-1571','53069',65,125);
INSERT INTO "communes" VALUES('41','Sainte-Gemmes','23',101,86,8.56,'-1184','53104',110,131);
INSERT INTO "communes" VALUES('41','Dhuizon','15',1430,1253,43.34,'-754','52876',86,132);
INSERT INTO "communes" VALUES('41','Thésée','18',1181,1123,17.61,'-1147','52585',61,122);
INSERT INTO "communes" VALUES('41','Romorantin-Lanthenay','97',17027,18353,45.31,'-660','52620',84,121);
INSERT INTO "communes" VALUES('41','Thoury','15',391,337,15.76,'-822','52922',77,131);
INSERT INTO "communes" VALUES('41','Sasnières','19',101,69,7.83,'-1557','53020',81,145);
INSERT INTO "communes" VALUES('41','Séris','08',375,287,17.52,'-927','53063',103,119);
INSERT INTO "communes" VALUES('41','Neung-sur-Beuvron','15',1238,1111,63,'-591','52817',87,122);
INSERT INTO "communes" VALUES('41','Savigny-sur-Braye','21',2177,2202,67.18,'-1697','53200',74,166);
INSERT INTO "communes" VALUES('41','Pouillé','18',807,754,18.03,'-1165','52576',61,183);
INSERT INTO "communes" VALUES('41','<NAME>','16',198,119,18.36,'-1072','53209',118,153);
INSERT INTO "communes" VALUES('41','Binas','16',731,593,26.38,'-971','53226',120,133);
INSERT INTO "communes" VALUES('41','Saint-Sulpice-de-Pommeray','27',1801,1876,11.5,'-1186','52898',80,144);
INSERT INTO "communes" VALUES('41','Cour-sur-Loire','10',272,307,5.4,'-1014','52945',67,115);
INSERT INTO "communes" VALUES('41','Areines','28',609,532,4.84,'-1380','53112',77,130);
INSERT INTO "communes" VALUES('41','Gombergean','19',182,145,12.18,'-1392','52946',114,130);
INSERT INTO "communes" VALUES('41','<NAME>','23',176,146,10.76,'-1258','53138',98,144);
INSERT INTO "communes" VALUES('41','Montlivault','30',1339,1192,10.73,'-992','52933',67,90);
INSERT INTO "communes" VALUES('41','Neuvy','03',326,295,31.28,'-815','52848',77,128);
INSERT INTO "communes" VALUES('41','Saint-Agil','11',273,258,15.61,'-1567','53373',150,201);
INSERT INTO "communes" VALUES('41','Saint-Bohaire','27',472,361,14.06,'-1192','52938',85,123);
INSERT INTO "communes" VALUES('41','Bauzy','03',264,257,24.7,'-809','52817',79,113);
INSERT INTO "communes" VALUES('41','Gièvres','22',2292,2027,38.05,'-742','52530',72,102);
INSERT INTO "communes" VALUES('41','Oucques','08',1482,1314,26.23,'-1158','53137',115,139);
INSERT INTO "communes" VALUES('41','Hayes','12',201,169,15.71,'-1733','53017',93,156);
INSERT INTO "communes" VALUES('41','Épuisay','21',745,533,23.52,'-1561','53223',119,182);
INSERT INTO "communes" VALUES('41','Thenay','13',846,803,20.03,'-1165','52653',74,116);
INSERT INTO "communes" VALUES('41','Lamotte-Beuvron','07',4736,4251,23.34,'-346','52891',106,146);
INSERT INTO "communes" VALUES('41','Oigny','11',93,80,9.86,'-1573','53404',134,184);
INSERT INTO "communes" VALUES('41','Mont-près-Chambord','03',3271,3025,28.51,'-971','52848',72,123);
INSERT INTO "communes" VALUES('41','Saint-Loup','09',361,298,14.7,'-552','52517',82,151);
INSERT INTO "communes" VALUES('41','Cellé','21',249,270,12.67,'-1726','53149',73,155);
INSERT INTO "communes" VALUES('41','Saint-Jean-Froidmentel','14',503,437,17.2,'-1219','53285',88,189);
INSERT INTO "communes" VALUES('41','Beauchêne','11',163,142,10.08,'-1519','53267',164,205);
INSERT INTO "communes" VALUES('41','<NAME>','11',184,202,14.19,'-1636','53433',131,249);
INSERT INTO "communes" VALUES('41','Arville','11',104,108,9.75,'-1544','53403',157,204);
INSERT INTO "communes" VALUES('41','Valaire','04',75,87,6.68,'-1187','52744',62,109);
INSERT INTO "communes" VALUES('41','Pray','23',305,262,10.48,'-1355','52974',123,132);
INSERT INTO "communes" VALUES('41','<NAME>','14',1333,1197,26.61,'-1391','53243',115,195);
INSERT INTO "communes" VALUES('41','Prénouvellon','16',218,228,19.77,'-887','53299',116,131);
INSERT INTO "communes" VALUES('41','Artins','12',298,282,11.72,'-1774','53050',57,139);
INSERT INTO "communes" VALUES('41','Coulanges','06',308,312,8.35,'-1237','52826',67,116);
INSERT INTO "communes" VALUES('41','Fresnes','04',1080,808,16.02,'-1027','52705',86,112);
INSERT INTO "communes" VALUES('41','Mondoubleau','11',1497,1607,4.84,'-1597','53312',110,166);
INSERT INTO "communes" VALUES('41','Vallières-les-Grandes','13',836,610,40.75,'-1322','52692',77,134);
INSERT INTO "communes" VALUES('41','Thoré-la-Rochette','24',886,884,10.78,'-1524','53099',69,137);
INSERT INTO "communes" VALUES('41','Azé','24',1119,985,31.93,'-1486','53168',80,154);
INSERT INTO "communes" VALUES('41','Vouzon','07',1487,1060,78.25,'-309','52940',108,147);
INSERT INTO "communes" VALUES('41','Soings-en-Sologne','22',1543,1314,35.3,'-902','52681',92,137);
INSERT INTO "communes" VALUES('41','Saint-Hilaire-la-Gravelle','14',689,687,17.57,'-1255','53250',87,172);
INSERT INTO "communes" VALUES('41','Faye','23',220,183,8.7,'-1289','53114',98,133);
INSERT INTO "communes" VALUES('41','Monteaux','06',792,663,6.27,'-1359','52762',56,102);
INSERT INTO "communes" VALUES('41','Montrouveau','12',133,110,17.7,'-1786','53016',94,141);
INSERT INTO "communes" VALUES('41','Vievy-le-Rayé','16',490,461,45.12,'-1136','53183',99,152);
INSERT INTO "communes" VALUES('41','Bonneveau','21',502,465,10.95,'-1763','53125',65,154);
INSERT INTO "communes" VALUES('41','Lunay','21',1334,1290,38.63,'-1579','53121',66,156);
INSERT INTO "communes" VALUES('41','Ruan-sur-Egvonne','05',91,93,11.35,'-1323','53348',123,258);
INSERT INTO "communes" VALUES('41','<NAME>','08',74,65,11.7,'-1008','53127',111,147);
INSERT INTO "communes" VALUES('41','Vineuil','30',7119,6653,22.34,'-1071','52867',68,100);
INSERT INTO "communes" VALUES('41','Maves','10',663,577,33.33,'-1080','53047',99,127);
INSERT INTO "communes" VALUES('41','Couture-sur-Loir','12',415,433,14.3,'-1832','53060',54,136);
INSERT INTO "communes" VALUES('41','Villerable','28',535,501,16.81,'-1451','53065',87,138);
INSERT INTO "communes" VALUES('41','Essarts','12',105,102,4.38,'-1799','53037',75,139);
INSERT INTO "communes" VALUES('41','Muides-sur-Loire','03',1365,1158,9.15,'-898','52966',72,104);
INSERT INTO "communes" VALUES('41','Saint-Laurent-des-Bois','08',296,225,18.32,'-987','53168',123,152);
INSERT INTO "communes" VALUES('41','Ambloy','19',196,155,13.16,'-1521','53014',99,134);
INSERT INTO "communes" VALUES('41','Boisseau','08',100,86,8.06,'-1155','53080',103,129);
INSERT INTO "communes" VALUES('41','Villebarou','01',2619,1942,9.11,'-1126','52914',108,121);
INSERT INTO "communes" VALUES('41','La Chapelle-Saint-Martin-en-Plaine','10',689,590,22.83,'-1022','53019',104,124);
INSERT INTO "communes" VALUES('41','La Chaussée-Saint-Victor','01',4230,4079,6.63,'-1079','52904',67,114);
INSERT INTO "communes" VALUES('41','Saint-Cyr-du-Gault','06',179,196,26.06,'-1452','52912',108,149);
INSERT INTO "communes" VALUES('41','Candé-sur-Beuvron','04',1479,1205,15.49,'-1195','52772',62,111);
INSERT INTO "communes" VALUES('41','Sargé-sur-Braye','11',1003,975,42.61,'-1648','53249',78,202);
INSERT INTO "communes" VALUES('41','Vernou-en-Sologne','17',606,523,51.31,'-730','52779',82,116);
INSERT INTO "communes" VALUES('41','Tripleville','16',149,130,13.07,'-945','53271',112,131);
INSERT INTO "communes" VALUES('41','Seigy','18',1121,1091,8.18,'-1043','52505',67,137);
INSERT INTO "communes" VALUES('41','Briou','08',117,101,10.17,'-954','53126',116,148);
INSERT INTO "communes" VALUES('41','Villeherviers','29',492,498,38.9,'-598','52629',85,112);
INSERT INTO "communes" VALUES('41','Fontaine-Raoul','05',238,197,21.9,'-1331','53323',124,252);
INSERT INTO "communes" VALUES('41','Chauvigny-du-Perche','05',227,244,23.43,'-1396','53287',132,226);
INSERT INTO "communes" VALUES('41','Roches-l''Évêque','12',292,283,2.4,'-1606','53085',66,134);
INSERT INTO "communes" VALUES('41','Fougères-sur-Bièvre','04',801,653,14.69,'-1104','52720',78,121);
INSERT INTO "communes" VALUES('41','Chambon-sur-Cisse','06',689,745,12.71,'-1245','52847',72,131);
INSERT INTO "communes" VALUES('41','Chitenay','04',1022,926,15.61,'-1073','52775',67,116);
INSERT INTO "communes" VALUES('41','Baillou','11',246,229,19.85,'-1660','53298',88,166);
INSERT INTO "communes" VALUES('41','Villerbon','01',776,682,17.28,'-1072','52958',101,117);
INSERT INTO "communes" VALUES('41','Membrolles','16',263,216,18.95,'-966','53316',114,134);
INSERT INTO "communes" VALUES('41','Baigneaux','23',51,47,6.58,'-1203','53091',121,129);
INSERT INTO "communes" VALUES('41','Rilly-sur-Loire','13',459,404,10.22,'-1335','52740',58,109);
INSERT INTO "communes" VALUES('41','Molineuf','06',796,803,11.02,'-1245','52865',72,145);
INSERT INTO "communes" VALUES('41','Fontaine-les-Coteaux','21',385,343,22.11,'-1675','53110',63,154);
INSERT INTO "communes" VALUES('41','Ternay','12',314,272,14.38,'-1730','53034',59,139);
INSERT INTO "communes" VALUES('41','Angé','13',817,793,17.36,'-1215','52591',59,172);
INSERT INTO "communes" VALUES('41','Fossé','27',1121,850,10.2,'-1169','52926',85,120);
INSERT INTO "communes" VALUES('41','Huisseau-en-Beauce','19',404,314,8.98,'-1474','53025',90,131);
INSERT INTO "communes" VALUES('41','Oisly','04',342,310,10.61,'-1066','52655',98,131);
INSERT INTO "communes" VALUES('41','Villeny','15',403,334,33.98,'-646','52914',93,136);
INSERT INTO "communes" VALUES('41','Verdes','16',495,388,28.59,'-1008','53287',107,132);
INSERT INTO "communes" VALUES('41','Vendôme','98',16920,17709,23.89,'-1412','53103',76,141);
INSERT INTO "communes" VALUES('41','Saint-Romain-sur-Cher','18',1513,1291,31.17,'-1042','52577',64,120);
INSERT INTO "communes" VALUES('41','Villetrun','23',324,267,6.83,'-1307','53096',109,131);
INSERT INTO "communes" VALUES('41','Mazangé','24',916,842,24.26,'-1545','53138',71,156);
INSERT INTO "communes" VALUES('41','Choue','11',529,544,37.39,'-1565','53332',112,212);
INSERT INTO "communes" VALUES('41','Saint-Julien-de-Chédon','13',734,699,9.87,'-1260','52586',59,159);
INSERT INTO "communes" VALUES('41','Lancé','19',453,407,18.01,'-1410','52993',116,131);
INSERT INTO "communes" VALUES('41','Fortan','21',268,183,5.98,'-1578','53162',95,147);
INSERT INTO "communes" VALUES('41','Crouy-sur-Cosson','03',510,472,28.37,'-811','52945',77,111);
INSERT INTO "communes" VALUES('41','Yvoy-le-Marron','07',617,534,48.92,'-537','52925',94,138);
INSERT INTO "communes" VALUES('41','Salbris','20',5704,6029,106.61,'-316','52695',96,131);
INSERT INTO "communes" VALUES('41','Châteauvieux','18',555,575,33.48,'-1059','52478',79,160);
INSERT INTO "communes" VALUES('41','Cour-Cheverny','04',2731,2555,29.8,'-978','52788',73,118);
INSERT INTO "communes" VALUES('41','Montoire-sur-le-Loir','12',4058,4275,21.02,'-1637','53060',60,146);
INSERT INTO "communes" VALUES('41','Villefranche-sur-Cher','09',2701,2413,27.23,'-629','52548',82,123);
INSERT INTO "communes" VALUES('41','Lestiou','10',269,202,8.29,'-832','53038',77,117);
INSERT INTO "communes" VALUES('41','Pezou','14',1125,938,13.97,'-1326','53185',82,148);
INSERT INTO "communes" VALUES('41','Crucheray','19',411,373,25.43,'-1387','53031',93,132);
INSERT INTO "communes" VALUES('41','Feings','04',708,530,16.52,'-1093','52709',84,116);
INSERT INTO "communes" VALUES('41','Tourailles','23',130,133,7.46,'-1309','52984',117,134);
INSERT INTO "communes" VALUES('41','Cormeray','04',1530,1038,10.31,'-1033','52766',91,109);
INSERT INTO "communes" VALUES('41','Monthou-sur-Bièvre','04',764,505,16.62,'-1157','52751',62,113);
INSERT INTO "communes" VALUES('41','Rahart','14',288,256,14.23,'-1410','53189',108,154);
INSERT INTO "communes" VALUES('41','Saint-Claude-de-Diray','30',1698,1564,9.17,'-1023','52906',67,94);
INSERT INTO "communes" VALUES('41','Courmemin','17',524,472,24.17,'-788','52747',84,124);
INSERT INTO "communes" VALUES('41','Avaray','10',723,577,13.88,'-858','53025',75,118);
INSERT INTO "communes" VALUES('41','Souvigny-en-Sologne','07',494,414,41.55,'-192','52939',122,152);
INSERT INTO "communes" VALUES('41','Saint-Firmin-des-Prés','14',835,777,13.89,'-1359','53158',79,140);
INSERT INTO "communes" VALUES('41','Mennetou-sur-Cher','09',884,903,16.26,'-523','52522',85,136);
INSERT INTO "communes" VALUES('41','Blois','99',46492,49062,37.46,'-1121','52881',63,135);
INSERT INTO "communes" VALUES('41','Houssay','12',370,371,16.56,'-1553','53059',75,137);
INSERT INTO "communes" VALUES('41','Pierrefitte-sur-Sauldre','20',842,851,74.96,'-206','52792',108,148);
INSERT INTO "communes" VALUES('41','Moisy','16',318,270,17.33,'-1134','53239',117,137);
INSERT INTO "communes" VALUES('41','Lavardin','12',208,263,6.71,'-1612','53047',63,146);
INSERT INTO "communes" VALUES('41','Méhers','18',341,257,18.27,'-977','52586',78,109);
INSERT INTO "communes" VALUES('41','Chémery','18',961,848,34.16,'-954','52606',84,136);
INSERT INTO "communes" VALUES('41','Naveil','24',2143,1832,13.28,'-1452','53104',72,137);
INSERT INTO "communes" VALUES('41','La Marolle-en-Sologne','15',397,354,25.24,'-619','52871',97,136);
INSERT INTO "communes" VALUES('41','Saint-Jacques-des-Guérets','12',94,78,1.81,'-1715','53083',60,67);
INSERT INTO "communes" VALUES('41','Josnes','08',907,872,20.63,'-902','53107',108,130);
INSERT INTO "communes" VALUES('41','Saint-Georges-sur-Cher','13',2448,2156,23.78,'-1346','52584',56,141);
INSERT INTO "communes" VALUES('41','Saint-Aignan','18',3166,3543,18.48,'-1067','52521',64,164);
INSERT INTO "communes" VALUES('41','Saint-Lubin-en-Vergonnois','27',682,743,17.06,'-1221','52904',80,132);
INSERT INTO "communes" VALUES('41','Marcilly-en-Gault','20',751,754,50.31,'-514','52739',94,129);
INSERT INTO "communes" VALUES('41','Pontlevoy','13',1586,1460,51.12,'-1203','52655',77,137);
INSERT INTO "communes" VALUES('41','Orchaise','06',897,855,20.03,'-1264','52878',77,146);
INSERT INTO "communes" VALUES('41','Pruniers-en-Sologne','29',2292,2123,43.84,'-739','52581',74,111);
INSERT INTO "communes" VALUES('41','Souesmes','20',1119,1114,99.5,'-175','52732',105,158);
INSERT INTO "communes" VALUES('41','Billy','22',901,802,26.47,'-886','52569',69,107);
INSERT INTO "communes" VALUES('41','Bracieux','03',1254,1163,2.95,'-883','52832',74,89);
INSERT INTO "communes" VALUES('41','Troo','12',328,291,14.19,'-1710','53086',58,154);
INSERT INTO "communes" VALUES('41','Villexanton','10',187,198,11.53,'-1016','53046',104,124);
INSERT INTO "communes" VALUES('41','Villemardy','23',282,217,12.17,'-1273','53037',118,133);
INSERT INTO "communes" VALUES('41','Couddes','18',511,486,18.64,'-1037','52626',94,119);
INSERT INTO "communes" VALUES('41','Brévainville','14',171,163,16.16,'-1169','53281',88,144);
INSERT INTO "communes" VALUES('41','Monthou-sur-Cher','13',969,903,20.16,'-1157','52608',61,135);
INSERT INTO "communes" VALUES('41','Fréteval','14',1095,897,20.49,'-1252','53209',85,151);
INSERT INTO "communes" VALUES('41','Theillay','20',1274,1293,96.38,'-329','52571',96,168);
INSERT INTO "communes" VALUES('41','Ouchamps','04',832,803,13.08,'-1143','52747',62,114);
INSERT INTO "communes" VALUES('41','Chailles','02',2537,2019,18.54,'-1140','52824',63,110);
INSERT INTO "communes" VALUES('41','<NAME>','05',290,303,28.2,'-1508','53439',165,228);
INSERT INTO "communes" VALUES('41','Cellettes','02',2345,2137,20.96,'-1062','52809',68,107);
INSERT INTO "communes" VALUES('41','Conan','08',199,190,15.3,'-1167','53054',97,126);
INSERT INTO "communes" VALUES('41','Villefrancœur','06',486,462,18.08,'-1242','52993',105,127);
INSERT INTO "communes" VALUES('41','Marolles','27',710,716,9.88,'-1144','52942',87,117);
INSERT INTO "communes" VALUES('41','Roches','08',73,65,8.79,'-986','53106',112,136);
INSERT INTO "communes" VALUES('41','Chambord','03',134,185,54.38,'-908','52903',72,129);
INSERT INTO "communes" VALUES('41','Tréhet','12',111,121,5.65,'-1905','53038',53,110);
INSERT INTO "communes" VALUES('41','Herbault','06',1197,1050,13.01,'-1331','52894',105,147);
INSERT INTO "communes" VALUES('41','Orçay','20',240,257,18.75,'-251','52545',122,168);
INSERT INTO "communes" VALUES('41','Saint-Avit','11',110,121,14.83,'-1578','53435',156,240);
INSERT INTO "communes" VALUES('41','Veilleins','17',150,180,43.26,'-740','52690',93,127);
INSERT INTO "communes" VALUES('41','Morée','14',1140,994,25.83,'-1225','53226',86,152);
INSERT INTO "communes" VALUES('41','Saint-Ouen','28',3448,3050,11.3,'-1391','53123',77,140);
INSERT INTO "communes" VALUES('41','Suèvres','10',1498,1371,36.65,'-973','52963',71,119);
INSERT INTO "communes" VALUES('41','Bouffry','05',146,158,17.73,'-1377','53342',139,257);
INSERT INTO "communes" VALUES('41','Saint-Gourgon','19',120,116,10.15,'-1466','52957',112,129);
INSERT INTO "communes" VALUES('41','Villiers-sur-Loir','24',1192,1189,9.96,'-1492','53119',70,141);
INSERT INTO "communes" VALUES('41','Ouzouer-le-Doyen','16',226,166,16.59,'-1107','53269',116,133);
INSERT INTO "communes" VALUES('41','<NAME>','05',186,165,15.03,'-1445','53323',155,243);
INSERT INTO "communes" VALUES('41','Maslives','03',684,580,7.35,'-951','52924',72,99);
INSERT INTO "communes" VALUES('41','Lisle','14',211,194,6.61,'-1356','53170',82,147);
INSERT INTO "communes" VALUES('41','Saint-Dyé-sur-Loire','03',1114,944,5.51,'-942','52951',72,92);
INSERT INTO "communes" VALUES('41','Meusnes','18',1047,944,13.35,'-933','52500',68,132);
INSERT INTO "communes" VALUES('41','Authon','19',641,697,32.26,'-1599','52938',90,156);
INSERT INTO "communes" VALUES('41','Chissay-en-Touraine','13',1143,918,18.17,'-1337','52597',55,138);
INSERT INTO "communes" VALUES('41','Montrichard','13',3427,3630,14.36,'-1281','52603',59,134);
INSERT INTO "communes" VALUES('41','Choussy','18',330,234,15.45,'-1100','52637',80,117);
INSERT INTO "communes" VALUES('41','Couffy','18',558,555,14.92,'-997','52497',67,134);
INSERT INTO "communes" VALUES('41','Villeporcher','19',148,137,12.1,'-1492','52934',115,137);
INSERT INTO "communes" VALUES('41','Lorges','08',370,289,13.52,'-931','53137',115,146);
INSERT INTO "communes" VALUES('41','<NAME>','08',27,28,9.68,'-1026','53095',105,128);
INSERT INTO "communes" VALUES('41','Sassay','04',918,730,16.44,'-994','52659',99,137);
INSERT INTO "communes" VALUES('41','Maray','09',229,252,27.8,'-502','52497',85,151);
INSERT INTO "communes" VALUES('41','<NAME>','20',989,1036,50.02,'-423','52651',94,126);
INSERT INTO "communes" VALUES('41','<NAME>','15',1019,894,57.93,'-736','52951',78,131);
INSERT INTO "communes" VALUES('41','Gy-en-Sologne','22',511,450,35.92,'-837','52606',77,111);
INSERT INTO "communes" VALUES('41','Danzé','14',721,603,42.26,'-1454','53215',107,183);
INSERT INTO "communes" VALUES('41','Épiais','23',142,94,8.7,'-1206','53120',108,136);
INSERT INTO "communes" VALUES('41','Châtres-sur-Cher','09',1090,1128,35.33,'-478','52517',87,157);
INSERT INTO "communes" VALUES('41','Renay','23',176,167,12.05,'-1300','53159',90,143);
INSERT INTO "communes" VALUES('41','Busloup','14',433,379,18.94,'-1338','53215',88,162);
INSERT INTO "communes" VALUES('41','Meslay','28',293,294,7.18,'-1375','53124',77,130);
INSERT INTO "communes" VALUES('41','Villechauve','19',289,270,11.02,'-1550','52944',97,147);
INSERT INTO "communes" VALUES('41','Saint-Arnoult','12',331,306,9.57,'-1626','53008',85,152);
INSERT INTO "communes" VALUES('41','Fontaines-en-Sologne','03',623,519,46.25,'-873','52788',80,119);
INSERT INTO "communes" VALUES('41','Sougé','21',482,440,16.88,'-1787','53078',56,147);
INSERT INTO "communes" VALUES('41','<NAME>-Beauharnais','15',536,463,2.42,'-540','52824',95,109);
INSERT INTO "communes" VALUES('41','Veuves','06',212,216,8.07,'-1346','52746',58,65);
INSERT INTO "communes" VALUES('41','Semerville','16',95,79,9.67,'-1063','53258',123,132);
INSERT INTO "communes" VALUES('41','Onzain','06',3471,3144,29.89,'-1291','52778',59,119);
INSERT INTO "communes" VALUES('41','Santenay','06',271,254,30.28,'-1356','52852',94,144);
INSERT INTO "communes" VALUES('41','Contres','04',3420,3266,36.09,'-1010','52688',94,129);
INSERT INTO "communes" VALUES('41','Lancôme','06',136,114,9.89,'-1348','52943',105,129);
INSERT INTO "communes" VALUES('41','Sambin','04',917,676,20.83,'-1155','52709',84,120);
INSERT INTO "communes" VALUES('41','Villedieu-le-Château','12',409,420,29.65,'-1876','53022',60,133);
INSERT INTO "communes" VALUES('41','Mareuil-sur-Cher','18',1123,957,31.88,'-1119','52547',64,186);
INSERT INTO "communes" VALUES('41','Tour-en-Sologne','03',951,887,26.34,'-929','52821',72,123);
INSERT INTO "communes" VALUES('41','Saint-Léonard-en-Beauce','08',622,538,40.66,'-1062','53146',113,152);
INSERT INTO "communes" VALUES('41','La Chapelle-Vendômoise','06',741,744,13.07,'-1219','52968',87,131);
INSERT INTO "communes" VALUES('41','<NAME>','05',210,198,15.89,'-1411','53408',154,202);
INSERT INTO "communes" VALUES('41','Françay','06',297,231,20.31,'-1345','52909',107,134);
INSERT INTO "communes" VALUES('41','Saint-Gervais-la-Forêt','02',3312,3306,8.97,'-1085','52854',67,110);
INSERT INTO "communes" VALUES('41','Millançay','17',744,667,57.94,'-626','52719',90,127);
INSERT INTO "communes" VALUES('41','Marchenoir','08',699,633,9.42,'-1046','53137',124,151);
INSERT INTO "communes" VALUES('41','Villeneuve-Frouville','08',71,69,4.36,'-1142','53096',114,125);
INSERT INTO "communes" VALUES('41','Périgny','23',191,188,10.41,'-1318','53045',97,131);
INSERT INTO "communes" VALUES('41','Bourré','13',748,677,4.84,'-1233','52608',58,134);
INSERT INTO "communes" VALUES('41','Sainte-Anne','28',371,273,5.13,'-1394','53064',103,139);
INSERT INTO "communes" VALUES('41','Huisseau-sur-Cosson','03',2193,1913,22.79,'-982','52881',72,97);
INSERT INTO "communes" VALUES('41','Mer','10',6115,5886,26.47,'-921','52998',72,116);
INSERT INTO "communes" VALUES('41','Chaon','07',448,375,31.85,'-182','52899',112,151);
INSERT INTO "communes" VALUES('41','Saint-Viâtre','20',1269,1157,89.79,'-448','52804',92,132);
INSERT INTO "communes" VALUES('41','Nouan-le-Fuzelier','07',2381,2318,85.49,'-332','52819',99,138);
INSERT INTO "communes" VALUES('41','Menars','10',606,574,4.5,'-1031','52936',67,111);
INSERT INTO "communes" VALUES('41','Seur','04',467,354,3.85,'-1114','52781',67,106);
INSERT INTO "communes" VALUES('41','Souday','11',538,542,36.42,'-1633','53374',106,182);
INSERT INTO "communes" VALUES('41','Chouzy-sur-Cisse','06',1860,1864,22.43,'-1210','52806',61,115);
INSERT INTO "communes" VALUES('41','Boursay','05',206,203,22.08,'-1519','53355',136,210);
INSERT INTO "communes" VALUES('41','Autainville','08',378,320,25.01,'-1023','53201',119,153);
INSERT INTO "communes" VALUES('41','Marcilly-en-Beauce','28',362,232,6.39,'-1483','53071',80,132);
INSERT INTO "communes" VALUES('41','Lassay-sur-Croisne','22',245,184,16.92,'-793','52637',84,112);
INSERT INTO "communes" VALUES('41','Villavard','12',147,135,5.18,'-1591','53066',65,131);
INSERT INTO "communes" VALUES('41','Champigny-en-Beauce','06',654,550,22.31,'-1201','53013',92,129);
INSERT INTO "communes" VALUES('41','Cheverny','04',932,985,33,'-974','52777',78,116);
INSERT INTO "communes" VALUES('41','Mesland','06',556,528,26.38,'-1349','52789',62,116);
INSERT INTO "communes" VALUES('41','Chaumont-sur-Loire','13',1056,1031,26.84,'-1279','52756',61,114);
INSERT INTO "communes" VALUES('41','Selles-Saint-Denis','20',1241,1193,50.98,'-460','52651',89,129);
INSERT INTO "communes" VALUES('41','Noyers-sur-Cher','18',2809,2608,22.74,'-1041','52530',63,121);
INSERT INTO "communes" VALUES('41','Faverolles-sur-Cher','13',1293,1118,15.51,'-1279','52579',57,146);
INSERT INTO "communes" VALUES('41','Courbouzon','10',445,390,6.41,'-881','53017',72,116);
INSERT INTO "communes" VALUES('41','Talcy','08',261,247,15.21,'-992','53077',107,126);
INSERT INTO "communes" VALUES('41','Prunay-Cassereau','19',652,612,32.85,'-1573','52995',99,154);
INSERT INTO "communes" VALUES('41','Mulsans','10',457,392,16,'-1057','52996',105,121);
INSERT INTO "communes" VALUES('41','Saint-Laurent-Nouan','03',4222,3686,60.98,'-805','53019',72,112);
INSERT INTO "communes" VALUES('41','<NAME>','09',420,372,10.72,'-663','52523',82,152);
INSERT INTO "communes" VALUES('41','Cormenon','11',697,692,5.76,'-1603','53298',102,210);
INSERT INTO "communes" VALUES('41','Le Temple','11',176,179,13.32,'-1558','53258',144,208);
INSERT INTO "communes" VALUES('41','Saint-Étienne-des-Guérets','06',97,98,11.72,'-1414','52888',122,148);
INSERT INTO "communes" VALUES('41','Saint-Martin-des-Bois','12',615,589,36.4,'-1677','53025',60,156);
INSERT INTO "communes" VALUES('41','Saint-Denis-sur-Loire','01',787,884,12.4,'-1056','52917',69,115);
INSERT INTO "communes" VALUES('41','Châtillon-sur-Cher','18',1691,1514,29.66,'-936','52530',67,118);
INSERT INTO "communes" VALUES('41','Saint-Julien-sur-Cher','09',747,664,15.99,'-625','52535',82,152);
INSERT INTO "communes" VALUES('41','Selles-sur-Cher','22',4616,4774,25.74,'-869','52528',68,104);
INSERT INTO "communes" VALUES('41','Montils','04',1794,1436,9.27,'-1155','52773',62,101);
INSERT INTO "communes" VALUES('41','Langon','09',848,769,38.82,'-566','52538',82,130);
INSERT INTO "communes" VALUES('41','Concriers','08',162,145,4.84,'-958','53079',107,124);
INSERT INTO "communes" VALUES('41','Villermain','16',350,285,28.75,'-896','53180',112,143);
INSERT INTO "communes" VALUES('41','<NAME>','05',196,185,20.1,'-1458','53400',156,202);
INSERT INTO "communes" VALUES('41','Rhodon','23',105,87,7.12,'-1188','53059',109,128);
INSERT INTO "communes" VALUES('41','Droué','05',1073,1204,24.04,'-1400','53379',143,214);
INSERT INTO "communes" VALUES('41','Villiersfaux','28',256,224,7.22,'-1498','53055',85,134);
INSERT INTO "communes" VALUES('41','Landes-le-Gaulois','06',697,584,24.15,'-1282','52947',97,128);
INSERT INTO "communes" VALUES('41','Lignières','14',418,376,15.77,'-1282','53184',84,149);
INSERT INTO "communes" VALUES('41','Saint-Marc-du-Cor','11',190,171,13.09,'-1537','53301',144,216);
INSERT INTO "communes" VALUES('41','Villebout','05',127,106,11.21,'-1287','53322',107,225);
INSERT INTO "communes" VALUES('41','Romilly','05',162,169,14.9,'-1442','53277',144,210);
INSERT INTO "communes" VALUES('41','Ouzouer-le-Marché','16',1907,1575,28.1,'-899','53235',118,136);
INSERT INTO "communes" VALUES('41','Rocé','23',188,197,10.27,'-1321','53119',87,131);
INSERT INTO "communes" VALUES('41','Coulommiers-la-Tour','23',527,476,12.12,'-1326','53092',87,131);
INSERT INTO "communes" VALUES('41','Saint-Amand-Longpré','19',1218,1034,21.37,'-1467','52989',102,134);
INSERT INTO "communes" VALUES('41','Beauvilliers','08',62,37,8,'-1202','53153',120,144);
INSERT INTO "communes" VALUES('41','Rougeou','22',116,102,7.89,'-889','52624',92,111);
INSERT INTO "communes" VALUES('41','Loreux','29',236,255,29.95,'-562','52666',88,124);
INSERT INTO "communes" VALUES('41','Averdon','06',703,644,29.14,'-1157','52983',87,131);
INSERT INTO "communes" VALUES('41','Nourray','19',116,122,12.17,'-1420','53019',103,133);
INSERT INTO "communes" VALUES('41','Selommes','23',843,759,28.01,'-1272','53062',107,131);
INSERT INTO "communes" VALUES('41','Seillac','06',84,78,9.58,'-1310','52828',82,122);
INSERT INTO "communes" VALUES('42','<NAME>','11',76,85,9.11,'1677','50871',702,1267);
INSERT INTO "communes" VALUES('42','Périgneux','31',1370,1083,32,'2020','50492',448,720);
INSERT INTO "communes" VALUES('42','Poncins','07',897,754,20.63,'2029','50809',331,393);
INSERT INTO "communes" VALUES('42','Maclas','13',1685,1309,10.15,'2609','50403',256,453);
INSERT INTO "communes" VALUES('42','Rive-de-Gier','15',14996,14383,7.33,'2534','50588',227,394);
INSERT INTO "communes" VALUES('42','Firminy','08',17133,19283,10.45,'2167','50431',446,800);
INSERT INTO "communes" VALUES('42','Chazelles-sur-Lavieu','29',247,176,9.85,'1849','50599',586,1200);
INSERT INTO "communes" VALUES('42','Châtelneuf','25',317,259,8.48,'1829','50709',498,1110);
INSERT INTO "communes" VALUES('42','Cottance','07',664,551,13.55,'2180','50882',403,656);
INSERT INTO "communes" VALUES('42','Saint-Genest-Lerpt','22',5683,5684,12.68,'2222','50496',437,698);
INSERT INTO "communes" VALUES('42','Luriecq','29',1190,767,20.28,'1937','50501',480,1120);
INSERT INTO "communes" VALUES('42','Caloire','08',335,273,4.7,'2118','50466',421,772);
INSERT INTO "communes" VALUES('42','Chenereilles','29',476,314,8.97,'1936','50538',428,749);
INSERT INTO "communes" VALUES('42','Saint-Paul-en-Cornillon','08',1321,1306,3.72,'2116','50441',422,713);
INSERT INTO "communes" VALUES('42','Arçon','27',99,107,19.19,'1724','51123',511,1155);
INSERT INTO "communes" VALUES('42','Saint-Julien-la-Vêtre','11',376,451,12.9,'1653','50905',490,823);
INSERT INTO "communes" VALUES('42','Cremeaux','30',947,902,33.32,'1769','51009',456,912);
INSERT INTO "communes" VALUES('42','Cellieu','33',1578,1466,12.11,'2449','50581',318,812);
INSERT INTO "communes" VALUES('42','Chausseterre','30',245,277,16.58,'1608','50996',627,1144);
INSERT INTO "communes" VALUES('42','Saint-Forgeux-Lespinasse','12',538,420,16.19,'1772','51248',287,363);
INSERT INTO "communes" VALUES('42','Leigneux','02',391,349,4.53,'1822','50835',389,581);
INSERT INTO "communes" VALUES('42','Chirassimont','32',376,364,10.69,'2165','51015',469,764);
INSERT INTO "communes" VALUES('42','<NAME>','11',51,53,5.2,'1579','50839',983,1344);
INSERT INTO "communes" VALUES('42','Saint-Laurent-Rochefort','02',252,248,15.6,'1763','50859',420,895);
INSERT INTO "communes" VALUES('42','L''Hôpital-le-Grand','09',952,594,12.86,'2068','50659',352,380);
INSERT INTO "communes" VALUES('42','Arcinges','01',194,134,3.44,'2160','51264',398,720);
INSERT INTO "communes" VALUES('42','Maringes','06',640,566,9.17,'2239','50735',440,671);
INSERT INTO "communes" VALUES('42','Unias','31',373,237,5.37,'2101','50672',345,371);
INSERT INTO "communes" VALUES('42','Saint-Galmier','23',5588,5297,19.47,'2201','50655',357,551);
INSERT INTO "communes" VALUES('42','Verrières-en-Forez','09',632,539,21.17,'1845','50634',540,1272);
INSERT INTO "communes" VALUES('42','<NAME>','28',6459,6688,7.63,'2328','50535',473,696);
INSERT INTO "communes" VALUES('42','<NAME>','16',439,444,11.12,'1899','51278',255,344);
INSERT INTO "communes" VALUES('42','Renaison','27',2866,2658,23.04,'1765','51169',327,820);
INSERT INTO "communes" VALUES('42','Saint-Pierre-la-Noaille','05',368,323,7.21,'1956','51311',253,427);
INSERT INTO "communes" VALUES('42','Marclopt','07',494,358,8.43,'2081','50739',335,363);
INSERT INTO "communes" VALUES('42','Boën','02',3181,3118,6,'1853','50829',374,557);
INSERT INTO "communes" VALUES('42','Unieux','08',8643,8340,8.58,'2139','50446',421,660);
INSERT INTO "communes" VALUES('42','Vougy','05',1408,1495,20.9,'1980','51226',256,368);
INSERT INTO "communes" VALUES('42','Vivans','12',247,261,25.16,'1784','51322',282,364);
INSERT INTO "communes" VALUES('42','Écoche','01',552,413,11.7,'2179','51290',373,791);
INSERT INTO "communes" VALUES('42','Notre-Dame-de-Boisset','14',544,510,9.1,'1992','51105',278,414);
INSERT INTO "communes" VALUES('42','Saint-André-le-Puy','23',1265,1185,8.66,'2137','50717',357,374);
INSERT INTO "communes" VALUES('42','Essertines-en-Donzy','07',490,432,6.97,'2232','50837',456,590);
INSERT INTO "communes" VALUES('42','Maizilly','05',341,298,5.12,'2120','51310',285,483);
INSERT INTO "communes" VALUES('42','Sauvain','25',401,429,30.23,'1743','50748',640,1631);
INSERT INTO "communes" VALUES('42','Saint-André-d''Apchon','27',1909,1741,13.44,'1771','51147',327,808);
INSERT INTO "communes" VALUES('42','Chalain-le-Comtal','09',657,454,18.36,'2037','50717',338,383);
INSERT INTO "communes" VALUES('42','<NAME>','01',713,698,5.93,'2189','51246',476,787);
INSERT INTO "communes" VALUES('42','Genilac','15',3730,3104,8.67,'2495','50591',255,588);
INSERT INTO "communes" VALUES('42','Saint-Symphorien-de-Lay','32',1800,1429,33.57,'2083','51053',305,621);
INSERT INTO "communes" VALUES('42','Saint-Marcel-de-Félines','10',779,693,22.43,'2061','50965',311,524);
INSERT INTO "communes" VALUES('42','Nandax','05',529,333,8.03,'2032','51220',281,413);
INSERT INTO "communes" VALUES('42','Marcoux','02',728,565,15.3,'1863','50790',394,777);
INSERT INTO "communes" VALUES('42','Cuinzier','01',658,584,5.62,'2145','51253',389,610);
INSERT INTO "communes" VALUES('42','Saint-Pierre-de-Bœuf','13',1621,1310,5.95,'2681','50425',130,445);
INSERT INTO "communes" VALUES('42','Saint-Priest-la-Roche','32',302,274,13.5,'1952','51014',290,535);
INSERT INTO "communes" VALUES('42','Saint-Germain-la-Montagne','01',233,202,12.54,'2268','51336',434,721);
INSERT INTO "communes" VALUES('42','Chalain-d''Uzore','09',534,444,8.03,'1927','50747',369,461);
INSERT INTO "communes" VALUES('42','Pouilly-sous-Charlieu','05',2544,2720,15.99,'1969','51272',251,331);
INSERT INTO "communes" VALUES('42','Saint-Jean-Saint-Maurice-sur-Loire','34',1124,1025,23.57,'1850','51073',270,803);
INSERT INTO "communes" VALUES('42','Saint-Haon-le-Vieux','27',907,810,16.34,'1746','51194',319,843);
INSERT INTO "communes" VALUES('42','Champdieu','09',1694,1474,18.2,'1899','50716',363,727);
INSERT INTO "communes" VALUES('42','Grézolles','26',279,228,5.6,'1794','50959',453,611);
INSERT INTO "communes" VALUES('42','Veauche','23',8507,8055,10.41,'2157','50625',348,406);
INSERT INTO "communes" VALUES('42','Saint-Cyr-de-Favières','32',805,772,14.11,'1954','51074',287,541);
INSERT INTO "communes" VALUES('42','Aveizieux','23',1467,1275,9.02,'2262','50628',480,696);
INSERT INTO "communes" VALUES('42','Civens','07',1367,1129,13.1,'2129','50867',327,470);
INSERT INTO "communes" VALUES('42','Sorbiers','28',7717,7378,12.19,'2349','50542',435,822);
INSERT INTO "communes" VALUES('42','Chalmazel','25',409,472,39.38,'1682','50783',740,1595);
INSERT INTO "communes" VALUES('42','Veauchette','31',921,740,7.54,'2143','50625',347,376);
INSERT INTO "communes" VALUES('42','Saint-Médard-en-Forez','06',935,806,10.39,'2250','50664',387,656);
INSERT INTO "communes" VALUES('42','Tartaras','15',767,597,3.91,'2591','50616',190,348);
INSERT INTO "communes" VALUES('42','Malleval','13',552,476,5.06,'2656','50427',151,414);
INSERT INTO "communes" VALUES('42','Graix','03',145,134,8.58,'2481','50386',813,1431);
INSERT INTO "communes" VALUES('42','Saint-Priest-la-Vêtre','11',134,106,5.17,'1640','50894',607,820);
INSERT INTO "communes" VALUES('42','Montrond-les-Bains','23',4785,4031,10.11,'2104','50715',333,369);
INSERT INTO "communes" VALUES('42','Colombier','03',308,269,17.86,'2515','50375',649,1429);
INSERT INTO "communes" VALUES('42','Craintilleux','31',1170,902,8.22,'2109','50648',348,379);
INSERT INTO "communes" VALUES('42','Saint-Thurin','11',194,181,7.35,'1706','50907',450,717);
INSERT INTO "communes" VALUES('42','Ailleux','02',147,143,9.31,'1784','50893',428,722);
INSERT INTO "communes" VALUES('42','L''Hôpital-sous-Rochefort','02',118,109,1.15,'1774','50860',411,578);
INSERT INTO "communes" VALUES('42','Valeille','07',665,518,16.43,'2189','50786',350,532);
INSERT INTO "communes" VALUES('42','Bourg-Argental','03',3011,2771,20.15,'2470','50329',450,1003);
INSERT INTO "communes" VALUES('42','Arthun','02',511,459,13.88,'1886','50859',346,502);
INSERT INTO "communes" VALUES('42','Saint-Martin-d''Estréaux','12',897,958,29.6,'1624','51340',298,589);
INSERT INTO "communes" VALUES('42','Montbrison','09',15299,14597,16.33,'1921','50675',370,552);
INSERT INTO "communes" VALUES('42','Mornand-en-Forez','09',422,294,21.6,'1987','50755',343,385);
INSERT INTO "communes" VALUES('42','Chambœuf','23',1590,1358,11.12,'2204','50642',366,545);
INSERT INTO "communes" VALUES('42','Bussières','10',1515,1303,16.76,'2146','50931',458,770);
INSERT INTO "communes" VALUES('42','Lentigny','34',1587,1352,11.3,'1827','51106',320,440);
INSERT INTO "communes" VALUES('42','Saint-Maurice-en-Gourgois','17',1728,1282,31.83,'2052','50446',422,816);
INSERT INTO "communes" VALUES('42','Saint-Denis-de-Cabanne','05',1300,1293,7.65,'2084','51305',273,423);
INSERT INTO "communes" VALUES('42','Magneux-Haute-Rive','09',481,304,12.56,'2038','50745',334,389);
INSERT INTO "communes" VALUES('42','Changy','12',615,583,13.67,'1727','51269',298,556);
INSERT INTO "communes" VALUES('42','Salt-en-Donzy','07',535,393,8.93,'2169','50819',346,490);
INSERT INTO "communes" VALUES('42','Sainte-Croix-en-Jarez','15',435,351,12.05,'2567','50533',349,955);
INSERT INTO "communes" VALUES('42','Saint-Étienne','99',171260,180438,79.97,'2281','50482',422,1117);
INSERT INTO "communes" VALUES('42','Vérin','13',692,577,3.05,'2684','50505',143,369);
INSERT INTO "communes" VALUES('42','Saint-Romain-en-Jarez','15',1168,929,16.96,'2442','50618',360,920);
INSERT INTO "communes" VALUES('42','Saint-Jean-Bonnefonds','20',6316,6093,11.59,'2344','50501',418,663);
INSERT INTO "communes" VALUES('42','Cuzieu','23',1498,1394,11.51,'2138','50677',348,390);
INSERT INTO "communes" VALUES('42','Saint-Romain-la-Motte','27',1554,1384,27.56,'1827','51205',290,361);
INSERT INTO "communes" VALUES('42','Sury-le-Comtal','31',5605,4803,24.18,'2052','50597',360,457);
INSERT INTO "communes" VALUES('42','Saint-Michel-sur-Rhône','13',778,638,5.87,'2676','50496',140,436);
INSERT INTO "communes" VALUES('42','Andrézieux-Bouthéon','23',9676,9149,16.28,'2137','50584',353,435);
INSERT INTO "communes" VALUES('42','Noirétable','11',1666,1637,40.34,'1587','50908',656,1351);
INSERT INTO "communes" VALUES('42','L''Horme','33',4750,4639,4.4,'2454','50541',299,414);
INSERT INTO "communes" VALUES('42','Balbigny','10',2840,2618,16.98,'2056','50909',314,482);
INSERT INTO "communes" VALUES('42','Saint-Cyr-de-Valorges','10',352,274,9.91,'2188','50991',526,892);
INSERT INTO "communes" VALUES('42','Ouches','34',1116,1014,10.12,'1834','51129',295,376);
INSERT INTO "communes" VALUES('42','Chambles','31',969,762,18.9,'2113','50491',360,741);
INSERT INTO "communes" VALUES('42','<NAME>','12',298,293,13.31,'1687','51301',344,595);
INSERT INTO "communes" VALUES('42','Tarentaise','24',450,412,12.57,'2391','50415',856,1296);
INSERT INTO "communes" VALUES('42','Saint-Hilaire-Cusson-la-Valmitte','17',324,259,18.31,'1895','50410',640,977);
INSERT INTO "communes" VALUES('42','Burdignes','03',347,341,30.81,'2478','50300',472,1382);
INSERT INTO "communes" VALUES('42','Bard','09',610,577,13.78,'1861','50653',417,1271);
INSERT INTO "communes" VALUES('42','Saint-Priest-la-Prugne','30',459,442,36.68,'1570','51068',610,1287);
INSERT INTO "communes" VALUES('42','Apinac','17',401,304,15.35,'1844','50423',796,1055);
INSERT INTO "communes" VALUES('42','Trelins','02',616,538,8.09,'1857','50812',368,736);
INSERT INTO "communes" VALUES('42','Viricelles','06',432,333,2,'2266','50725',477,593);
INSERT INTO "communes" VALUES('42','Marcilly-le-Châtel','02',1272,973,16.32,'1890','50772',377,708);
INSERT INTO "communes" VALUES('42','Saint-Bonnet-les-Oules','23',1516,1257,12.41,'2217','50603',392,586);
INSERT INTO "communes" VALUES('42','Perreux','14',2169,2074,41.35,'1984','51153',255,436);
INSERT INTO "communes" VALUES('42','Saint-Victor-sur-Rhins','32',1126,896,11.43,'2161','51116',330,574);
INSERT INTO "communes" VALUES('42','Charlieu','05',3695,3592,6.7,'2039','51288',268,378);
INSERT INTO "communes" VALUES('42','<NAME>','04',12851,14079,17.51,'2209','50440',464,849);
INSERT INTO "communes" VALUES('42','Saint-Christo-en-Jarez','28',1822,1363,21.77,'2389','50605',540,885);
INSERT INTO "communes" VALUES('42','Roche','09',268,253,23.33,'1788','50683',756,1418);
INSERT INTO "communes" VALUES('42','Farnay','33',1342,1138,7.93,'2512','50549',315,792);
INSERT INTO "communes" VALUES('42','Saint-Barthélemy-Lestra','07',684,582,11.06,'2226','50799',371,593);
INSERT INTO "communes" VALUES('42','<NAME>','18',939,741,34.78,'2422','50462',440,1388);
INSERT INTO "communes" VALUES('42','Saint-Martin-Lestra','07',910,702,16.33,'2242','50801',457,623);
INSERT INTO "communes" VALUES('42','Jas','07',220,178,6.22,'2193','50828',368,566);
INSERT INTO "communes" VALUES('42','Marlhes','24',1393,1305,32.6,'2287','50315',810,1190);
INSERT INTO "communes" VALUES('42','Écotay-l''Olme','09',1130,1110,6.52,'1905','50657',416,667);
INSERT INTO "communes" VALUES('42','Luré','26',142,143,6.23,'1778','50979',510,681);
INSERT INTO "communes" VALUES('42','Soleymieux','29',644,470,8.8,'1895','50565',514,780);
INSERT INTO "communes" VALUES('42','Sainte-Colombe-sur-Gand','10',410,419,13.56,'2154','50977',468,774);
INSERT INTO "communes" VALUES('42','Saint-Romain-le-Puy','31',3607,2803,21.14,'1985','50617',366,524);
INSERT INTO "communes" VALUES('42','Cezay','02',190,157,10.52,'1807','50891',419,714);
INSERT INTO "communes" VALUES('42','<NAME>','06',272,217,3.37,'2304','50619',598,773);
INSERT INTO "communes" VALUES('42','Bonson','31',3593,3816,5.15,'2088','50582',355,385);
INSERT INTO "communes" VALUES('42','Montarcher','29',63,75,5.99,'1844','50510',938,1194);
INSERT INTO "communes" VALUES('42','Saint-Nizier-sous-Charlieu','05',1661,1572,12.83,'1984','51281',252,408);
INSERT INTO "communes" VALUES('42','Saint-Georges-Haute-Ville','29',1272,1122,9.63,'1958','50616',400,655);
INSERT INTO "communes" VALUES('42','Saint-Paul-en-Jarez','33',4103,4128,19.98,'2486','50537',313,947);
INSERT INTO "communes" VALUES('42','Sail-les-Bains','12',209,222,21.11,'1677','51376',279,421);
INSERT INTO "communes" VALUES('42','Saint-Bonnet-des-Quarts','12',361,363,32.45,'1674','51257',395,966);
INSERT INTO "communes" VALUES('42','Saint-Marcel-d''Urfé','30',283,264,13.92,'1721','50970',491,900);
INSERT INTO "communes" VALUES('42','Boyer','05',225,159,5.18,'2081','51219',318,449);
INSERT INTO "communes" VALUES('42','Virigneux','06',588,465,11.84,'2241','50766',427,652);
INSERT INTO "communes" VALUES('42','Chazelles-sur-Lyon','06',5110,4808,20.91,'2284','50710',414,631);
INSERT INTO "communes" VALUES('42','Débats-Rivière-d''Orpra','02',166,136,3.41,'1780','50845',402,680);
INSERT INTO "communes" VALUES('42','Saint-Cyprien','31',2313,2126,7.28,'2111','50598',354,380);
INSERT INTO "communes" VALUES('42','La Chapelle-en-Lafaye','29',138,108,8.99,'1836','50514',917,1174);
INSERT INTO "communes" VALUES('42','Saint-Just-en-Bas','25',304,317,20.95,'1716','50812',670,1174);
INSERT INTO "communes" VALUES('42','Ambierle','27',1805,1729,30.76,'1732','51227',297,843);
INSERT INTO "communes" VALUES('42','Saint-Germain-Laval','26',1672,1487,17.08,'1862','50922',344,526);
INSERT INTO "communes" VALUES('42','Saint-Bonnet-le-Courreau','25',733,745,50.18,'1786','50734',500,1481);
INSERT INTO "communes" VALUES('42','Pradines','32',679,611,11.6,'2044','51109',302,459);
INSERT INTO "communes" VALUES('42','Saint-Rirand','27',158,110,16.43,'1680','51196',486,1035);
INSERT INTO "communes" VALUES('42','Villemontais','34',981,933,12.73,'1793','51088',397,946);
INSERT INTO "communes" VALUES('42','Noës','27',186,163,15.68,'1684','51157',497,1122);
INSERT INTO "communes" VALUES('42','Bessey','13',398,296,6.24,'2621','50429',278,430);
INSERT INTO "communes" VALUES('42','Le Coteau','14',6905,7376,4.89,'1944','51141',265,317);
INSERT INTO "communes" VALUES('42','Saint-Chamond','97',35793,37361,54.88,'2420','50529',326,1051);
INSERT INTO "communes" VALUES('42','La Tuilière','30',287,321,31.09,'1628','51050',644,1097);
INSERT INTO "communes" VALUES('42','Estivareilles','17',671,519,22.56,'1860','50463',885,1149);
INSERT INTO "communes" VALUES('42','Châteauneuf','15',1480,1445,13.65,'2542','50580',208,657);
INSERT INTO "communes" VALUES('42','Saint-Bonnet-le-Château','17',1562,1549,1.87,'1922','50471',779,952);
INSERT INTO "communes" VALUES('42','Boisset-Saint-Priest','29',1141,880,18.28,'1964','50570',399,645);
INSERT INTO "communes" VALUES('42','Croizet-sur-Gand','32',284,224,5.98,'2103','51018',407,578);
INSERT INTO "communes" VALUES('42','Fraisses','08',3958,3954,4.63,'2144','50431',437,746);
INSERT INTO "communes" VALUES('42','Grammond','06',860,751,8.13,'2339','50628',599,885);
INSERT INTO "communes" VALUES('42','Saint-Vincent-de-Boisset','14',884,878,4.11,'1984','51119',269,382);
INSERT INTO "communes" VALUES('42','Saint-Sauveur-en-Rue','03',1124,1105,30.26,'2398','50299',600,1359);
INSERT INTO "communes" VALUES('42','Dargoire','15',452,410,1.92,'2590','50623',189,335);
INSERT INTO "communes" VALUES('42','Saint-Appolinard','13',609,526,9.84,'2573','50380',368,1060);
INSERT INTO "communes" VALUES('42','Mizérieux','07',398,237,7.01,'2032','50883',319,394);
INSERT INTO "communes" VALUES('42','Bussy-Albieux','02',482,442,19.65,'1886','50881',339,534);
INSERT INTO "communes" VALUES('42','Champoly','30',288,264,14.89,'1665','50953',490,952);
INSERT INTO "communes" VALUES('42','Savigneux','09',3186,2566,19.19,'1940','50674',357,398);
INSERT INTO "communes" VALUES('42','Sainte-Agathe-la-Bouteresse','02',1116,813,11.75,'1909','50816',355,411);
INSERT INTO "communes" VALUES('42','Saint-Léger-sur-Roanne','34',1148,944,4.51,'1845','51156',296,339);
INSERT INTO "communes" VALUES('42','Saint-Julien-d''Oddes','26',270,258,10.41,'1844','50942',384,560);
INSERT INTO "communes" VALUES('42','Marols','29',398,336,14.94,'1898','50531',620,1184);
INSERT INTO "communes" VALUES('42','Combre','14',421,282,4.01,'2141','51140',334,482);
INSERT INTO "communes" VALUES('42','Thélis-la-Combe','03',175,146,14.57,'2465','50364',600,1313);
INSERT INTO "communes" VALUES('42','<NAME>','01',790,745,14.75,'2162','51195',371,662);
INSERT INTO "communes" VALUES('42','Machézal','32',419,360,13.88,'2184','51024',470,882);
INSERT INTO "communes" VALUES('42','Lézigneux','09',1656,1153,15.04,'1916','50630',419,844);
INSERT INTO "communes" VALUES('42','Saint-Just-Saint-Rambert','31',14172,13189,40.63,'2115','50555',358,673);
INSERT INTO "communes" VALUES('42','Lérigneux','09',155,126,9.76,'1809','50668',827,1344);
INSERT INTO "communes" VALUES('42','Chagnon','33',506,412,2.48,'2463','50594',300,518);
INSERT INTO "communes" VALUES('42','Planfoy','24',909,852,12.27,'2338','50426',597,1099);
INSERT INTO "communes" VALUES('42','Sail-sous-Couzan','25',951,981,7.43,'1816','50816',396,689);
INSERT INTO "communes" VALUES('42','Saint-Polgues','26',240,193,5.77,'1821','51014',453,644);
INSERT INTO "communes" VALUES('42','<NAME>','03',355,324,15.13,'2432','50353',760,1292);
INSERT INTO "communes" VALUES('42','<NAME>','33',5070,4971,4.05,'2480','50559',274,427);
INSERT INTO "communes" VALUES('42','Véranne','13',808,582,15.96,'2585','50409',417,1390);
INSERT INTO "communes" VALUES('42','Marcenod','28',650,518,9,'2384','50636',655,946);
INSERT INTO "communes" VALUES('42','Pouilly-lès-Feurs','07',1181,988,13.03,'2106','50887',338,526);
INSERT INTO "communes" VALUES('42','Saint-Martin-la-Plaine','15',3686,3432,9.7,'2507','50606',257,630);
INSERT INTO "communes" VALUES('42','Sainte-Agathe-en-Donzy','10',111,117,3.39,'2189','50931',566,771);
INSERT INTO "communes" VALUES('42','<NAME>','11',59,46,4.42,'1569','50830',940,1383);
INSERT INTO "communes" VALUES('42','Villerest','34',4641,4246,14.82,'1889','51104',261,426);
INSERT INTO "communes" VALUES('42','Saint-Priest-en-Jarez','20',6177,5815,3.07,'2268','50527',437,590);
INSERT INTO "communes" VALUES('42','Montagny','14',1163,1113,25.57,'2110','51147',316,542);
INSERT INTO "communes" VALUES('42','Lavieu','29',95,77,4.45,'1887','50599',496,771);
INSERT INTO "communes" VALUES('42','Chavanay','13',2833,2291,15.06,'2661','50461',140,463);
INSERT INTO "communes" VALUES('42','Salvizinet','07',599,488,10.84,'2153','50844',340,552);
INSERT INTO "communes" VALUES('42','Saint-Cyr-les-Vignes','07',926,789,19.38,'2182','50752',357,595);
INSERT INTO "communes" VALUES('42','Gumières','29',317,253,16.12,'1834','50590',748,1236);
INSERT INTO "communes" VALUES('42','Pouilly-les-Nonains','34',1824,1597,10.23,'1828','51154',308,354);
INSERT INTO "communes" VALUES('42','Panissières','07',2972,2860,26.71,'2229','50879',426,835);
INSERT INTO "communes" VALUES('42','Amions','26',290,238,17.01,'1886','50976',359,525);
INSERT INTO "communes" VALUES('42','Pélussin','13',3515,3354,32.16,'2605','50465',240,1340);
INSERT INTO "communes" VALUES('42','Saint-Romain-d''Urfé','30',284,271,15,'1657','50986',593,886);
INSERT INTO "communes" VALUES('42','Mars','05',552,551,12.03,'2122','51281',331,592);
INSERT INTO "communes" VALUES('42','Saint-Martin-la-Sauveté','26',974,898,29.74,'1763','50925',396,889);
INSERT INTO "communes" VALUES('42','Chambéon','07',483,369,16.85,'2044','50775',331,388);
INSERT INTO "communes" VALUES('42','Saint-Paul-d''Uzore','09',138,98,9.51,'1938','50753',350,520);
INSERT INTO "communes" VALUES('42','Saint-Haon-le-Châtel','27',596,573,0.87,'1754','51184',363,463);
INSERT INTO "communes" VALUES('42','Saint-Thomas-la-Garde','09',585,517,3.41,'1938','50630',400,546);
INSERT INTO "communes" VALUES('42','Jonzieux','24',1217,1039,10.32,'2251','50348',807,944);
INSERT INTO "communes" VALUES('42','Saint-Paul-de-Vézelin','26',306,299,13.52,'1943','50983',288,482);
INSERT INTO "communes" VALUES('42','Rozier-en-Donzy','07',1362,1274,9.51,'2157','50887',380,682);
INSERT INTO "communes" VALUES('42','Montverdun','02',1117,758,16.52,'1923','50794',340,531);
INSERT INTO "communes" VALUES('42','Essertines-en-Châtelneuf','09',664,587,15.2,'1846','50688',444,1010);
INSERT INTO "communes" VALUES('42','Sainte-Foy-Saint-Sulpice','02',483,354,29.12,'1992','50854',327,401);
INSERT INTO "communes" VALUES('42','Boisset-lès-Montrond','31',1081,828,8.01,'2084','50690',337,379);
INSERT INTO "communes" VALUES('42','Urbise','12',137,140,15.5,'1728','51393',269,330);
INSERT INTO "communes" VALUES('42','Aboën','17',363,234,8.96,'1994','50460',594,771);
INSERT INTO "communes" VALUES('42','<NAME>','28',1327,1153,5.05,'2280','50539',453,698);
INSERT INTO "communes" VALUES('42','Saint-Régis-du-Coin','24',374,336,20.4,'2342','50315',977,1302);
INSERT INTO "communes" VALUES('42','Saint-Sixte','02',695,582,15.35,'1829','50862',390,656);
INSERT INTO "communes" VALUES('42','<NAME>','28',4393,4234,20.57,'2197','50560',387,628);
INSERT INTO "communes" VALUES('42','Bellegarde-en-Forez','23',1847,1468,18.91,'2180','50719',361,606);
INSERT INTO "communes" VALUES('42','Saint-Joseph','15',1908,1623,8.05,'2535','50619',219,497);
INSERT INTO "communes" VALUES('42','Jeansagnière','25',83,103,14.01,'1666','50815',900,1383);
INSERT INTO "communes" VALUES('42','Saint-Jean-Soleymieux','29',850,726,16.47,'1891','50560',699,1204);
INSERT INTO "communes" VALUES('42','Doizieux','33',828,652,28.07,'2499','50475',480,1396);
INSERT INTO "communes" VALUES('42','Saint-Étienne-le-Molard','02',969,749,16.55,'1946','50814',338,397);
INSERT INTO "communes" VALUES('42','Rivas','23',524,408,4.6,'2124','50651',349,390);
INSERT INTO "communes" VALUES('42','Jarnosse','05',414,354,11.88,'2106','51232',344,570);
INSERT INTO "communes" VALUES('42','Lupé','13',316,251,1.47,'2631','50414',263,382);
INSERT INTO "communes" VALUES('42','Mably','16',7551,7636,32.8,'1920','51207',257,353);
INSERT INTO "communes" VALUES('42','L''Étrat','28',2621,2524,8.48,'2270','50540',430,686);
INSERT INTO "communes" VALUES('42','Saint-Georges-de-Baroille','26',328,281,15.24,'1994','50944',304,416);
INSERT INTO "communes" VALUES('42','Briennon','16',1733,1690,23.84,'1943','51277',253,345);
INSERT INTO "communes" VALUES('42','Précieux','09',1047,771,16.29,'2016','50652',358,404);
INSERT INTO "communes" VALUES('42','Margerie-Chantagret','29',699,510,7.71,'1922','50583',491,802);
INSERT INTO "communes" VALUES('42','<NAME>','13',561,333,8.25,'2644','50525',318,785);
INSERT INTO "communes" VALUES('42','Merle-Leignec','17',306,239,16.17,'1868','50416',660,994);
INSERT INTO "communes" VALUES('42','Souternon','26',326,311,17.05,'1835','50966',383,581);
INSERT INTO "communes" VALUES('42','<NAME>','04',7976,8456,6.95,'2253','50448',528,841);
INSERT INTO "communes" VALUES('42','Pinay','10',278,273,6.62,'2001','50970',302,470);
INSERT INTO "communes" VALUES('42','Roisey','13',881,698,13.03,'2595','50431',390,1343);
INSERT INTO "communes" VALUES('42','Néronde','10',472,448,8.57,'2111','50932',377,606);
INSERT INTO "communes" VALUES('42','<NAME>','24',438,415,10.06,'2420','50410',700,1308);
INSERT INTO "communes" VALUES('42','Belmont-de-la-Loire','01',1532,1497,23.71,'2233','51295',402,822);
INSERT INTO "communes" VALUES('42','Cervières','11',115,111,7.56,'1595','50942',655,979);
INSERT INTO "communes" VALUES('42','Usson-en-Forez','17',1466,1230,47.24,'1783','50433',767,1137);
INSERT INTO "communes" VALUES('42','Saint-Julien-Molin-Molette','03',1243,1136,9.45,'2532','50358',441,880);
INSERT INTO "communes" VALUES('42','Cherier','30',483,445,28.11,'1748','51072',594,1156);
INSERT INTO "communes" VALUES('42','<NAME>','12',1066,1169,20.61,'1701','51306',295,443);
INSERT INTO "communes" VALUES('42','Roche-la-Molière','22',10359,10077,17.44,'2208','50482',469,700);
INSERT INTO "communes" VALUES('42','Chevrières','06',1055,844,14.54,'2294','50654',426,770);
INSERT INTO "communes" VALUES('42','Montchal','07',443,424,8.84,'2198','50918',512,782);
INSERT INTO "communes" VALUES('42','Chuyer','13',766,588,12.06,'2619','50508',319,880);
INSERT INTO "communes" VALUES('42','Châtelus','06',127,108,2.53,'2365','50662',550,788);
INSERT INTO "communes" VALUES('42','Saint-Héand','28',3561,3750,31.3,'2262','50587',467,870);
INSERT INTO "communes" VALUES('42','Saint-Nizier-de-Fornas','17',642,584,15.88,'1939','50449',619,995);
INSERT INTO "communes" VALUES('42','Parigny','14',624,506,9.15,'1956','51101',277,446);
INSERT INTO "communes" VALUES('42','Saint-Hilaire-sous-Charlieu','05',563,399,13.51,'2052','51246',280,464);
INSERT INTO "communes" VALUES('42','Saint-Jean-la-Vêtre','11',344,387,16.22,'1632','50877',654,1296);
INSERT INTO "communes" VALUES('42','Palogneux','25',73,52,7.01,'1759','50827',496,945);
INSERT INTO "communes" VALUES('42','Nollieux','26',156,133,6.95,'1845','50907',389,612);
INSERT INTO "communes" VALUES('42','Saint-Marcellin-en-Forez','31',4213,3376,31.09,'2034','50553',379,640);
INSERT INTO "communes" VALUES('42','Nervieux','07',906,791,19.44,'2020','50895',315,385);
INSERT INTO "communes" VALUES('42','Pralong','02',850,677,8.03,'1882','50740',398,716);
INSERT INTO "communes" VALUES('42','Rozier-Côtes-d''Aurec','17',445,359,13.89,'1964','50413',540,931);
INSERT INTO "communes" VALUES('42','Commelle-Vernay','14',2800,2793,12.41,'1922','51105',265,446);
INSERT INTO "communes" VALUES('42','Villers','05',575,501,5.73,'2095','51246',357,482);
INSERT INTO "communes" VALUES('42','Saint-Didier-sur-Rochefort','11',415,409,22.75,'1676','50882',457,900);
INSERT INTO "communes" VALUES('42','Cordelle','32',892,782,26.64,'1916','51049',280,556);
INSERT INTO "communes" VALUES('42','Saint-Germain-Lespinasse','27',1161,1098,15,'1807','51226',281,349);
INSERT INTO "communes" VALUES('42','Regny','32',1581,1618,13.8,'2087','51101',305,510);
INSERT INTO "communes" VALUES('42','Saint-Denis-sur-Coise','06',586,548,10.79,'2319','50686',451,721);
INSERT INTO "communes" VALUES('42','Neaux','32',520,443,17.36,'2048','51069',294,606);
INSERT INTO "communes" VALUES('42','<NAME>','17',566,426,5.65,'1942','50461',619,872);
INSERT INTO "communes" VALUES('42','Violay','10',1338,1346,27.07,'2246','50948',535,1003);
INSERT INTO "communes" VALUES('42','Lay','32',710,648,12.85,'2091','51062',339,592);
INSERT INTO "communes" VALUES('42','Chandon','05',1448,1382,12.38,'2050','51278',271,472);
INSERT INTO "communes" VALUES('42','Villars','21',7831,8496,5.72,'2242','50521',428,600);
INSERT INTO "communes" VALUES('42','Saint-Alban-les-Eaux','27',920,954,7.75,'1777','51121',360,791);
INSERT INTO "communes" VALUES('42','Dancé','26',159,110,8.83,'1877','51003',283,583);
INSERT INTO "communes" VALUES('42','Belleroche','01',259,212,13.93,'2304','51298',473,881);
INSERT INTO "communes" VALUES('42','Roanne','98',36806,38880,16.12,'1924','51151',257,304);
INSERT INTO "communes" VALUES('42','Pavezin','15',339,262,8.87,'2594','50517',436,955);
INSERT INTO "communes" VALUES('42','Valfleury','33',664,519,8.77,'2395','50580',359,820);
INSERT INTO "communes" VALUES('42','Salles','11',479,425,25.22,'1619','50942',636,963);
INSERT INTO "communes" VALUES('42','Neulise','32',1269,1152,22.99,'2048','51003',376,606);
INSERT INTO "communes" VALUES('42','Vendranges','32',325,237,11.14,'2000','51046',305,562);
INSERT INTO "communes" VALUES('42','Juré','30',244,209,12.07,'1728','50982',490,836);
INSERT INTO "communes" VALUES('42','Grézieux-le-Fromental','09',121,105,10.31,'2018','50687',351,389);
INSERT INTO "communes" VALUES('42','Saint-Romain-les-Atheux','24',924,816,14.68,'2266','50396',635,983);
INSERT INTO "communes" VALUES('42','Fourneaux','32',617,548,12.17,'2148','51041',416,607);
INSERT INTO "communes" VALUES('42','Coutouvre','14',1098,1024,21.87,'2083','51192',303,538);
INSERT INTO "communes" VALUES('42','Cleppé','07',556,454,15.48,'2048','50855',323,394);
INSERT INTO "communes" VALUES('42','Épercieux-Saint-Paul','07',663,543,7.92,'2084','50880',319,344);
INSERT INTO "communes" VALUES('42','Feurs','07',7921,7671,24.39,'2099','50823',327,366);
INSERT INTO "communes" VALUES('42','Saint-Jodard','10',555,604,6.65,'1995','50979',300,464);
INSERT INTO "communes" VALUES('42','Riorges','34',10714,10068,15.51,'1893','51159',277,334);
INSERT INTO "communes" VALUES('42','La Valla-sur-Rochefort','11',137,118,8.98,'1684','50844',766,1224);
INSERT INTO "communes" VALUES('42','Lorette','33',4498,4861,3.41,'2494','50569',257,500);
INSERT INTO "communes" VALUES('42','<NAME>-sur-Dorlay','33',765,654,8.69,'2496','50498',400,873);
INSERT INTO "communes" VALUES('42','Saint-Just-en-Chevalet','30',1182,1286,29.19,'1677','51015',556,983);
INSERT INTO "communes" VALUES('42','Saint-Genest-Malifaux','24',2931,2691,47.08,'2315','50378',680,1292);
INSERT INTO "communes" VALUES('42','Bully','26',395,298,19.03,'1854','51031',281,733);
INSERT INTO "communes" VALUES('42','Noailly','27',776,720,31.45,'1862','51261',268,363);
INSERT INTO "communes" VALUES('42','Saint-Just-la-Pendue','32',1569,1420,19.88,'2118','50994',428,637);
INSERT INTO "communes" VALUES('42','Saint-Georges-en-Couzan','25',406,459,23.64,'1772','50779',452,1134);
INSERT INTO "communes" VALUES('42','Pommiers','26',374,372,23.84,'1921','50921',318,408);
INSERT INTO "communes" VALUES('42','Sevelinges','01',651,581,8.19,'2177','51220',397,682);
INSERT INTO "communes" VALUES('42','Saint-Laurent-la-Conche','07',594,480,15.51,'2083','50760',326,366);
INSERT INTO "communes" VALUES('42','Fontanès','28',652,576,6.63,'2334','50607',633,900);
INSERT INTO "communes" VALUES('43','Blavozy','31',1592,1319,6.38,'1824','50063',634,871);
INSERT INTO "communes" VALUES('43','Desges','17',63,79,16.83,'1240','50019',662,1177);
INSERT INTO "communes" VALUES('43','Vissac-Auteyrac','10',336,299,17.1,'1414','50136',678,1229);
INSERT INTO "communes" VALUES('43','Loudes','12',870,804,24.33,'1569','50098',759,1042);
INSERT INTO "communes" VALUES('43','Saint-Jeures','27',910,782,34.14,'2076','50107',749,1208);
INSERT INTO "communes" VALUES('43','La Chapelle-Geneste','07',139,141,18.06,'1479','50389',668,1114);
INSERT INTO "communes" VALUES('43','Vieille-Brioude','34',1215,1102,27.7,'1185','50295',425,725);
INSERT INTO "communes" VALUES('43','Saint-Julien-Chapteuil','23',1870,1806,28.26,'1916','50039',771,1408);
INSERT INTO "communes" VALUES('43','Grenier-Montgon','04',118,123,5.01,'954','50320',504,694);
INSERT INTO "communes" VALUES('43','Vazeilles-Limandre','12',241,211,11.72,'1513','50126',877,1197);
INSERT INTO "communes" VALUES('43','Tence','27',3193,2891,52.12,'2171','50127',803,1127);
INSERT INTO "communes" VALUES('43','Fontannes','34',1058,873,9.77,'1209','50321',419,527);
INSERT INTO "communes" VALUES('43','Blanzac','24',311,267,8.58,'1672','50121',569,915);
INSERT INTO "communes" VALUES('43','Borne','24',425,352,5.48,'1625','50111',720,885);
INSERT INTO "communes" VALUES('43','<NAME>','27',2672,2645,41.71,'2184','50068',874,1139);
INSERT INTO "communes" VALUES('43','Blassac','11',152,121,12.56,'1181','50189',441,953);
INSERT INTO "communes" VALUES('43','Moudeyres','13',107,104,9.25,'1959','49950',957,1286);
INSERT INTO "communes" VALUES('43','Chassignolles','02',80,84,18.27,'1284','50441',666,1100);
INSERT INTO "communes" VALUES('43','Saint-Préjet-d''Allier','25',171,199,24.46,'1428','49906',711,1135);
INSERT INTO "communes" VALUES('43','Monistrol-sur-Loire','14',8717,7451,48.25,'2040','50325',434,874);
INSERT INTO "communes" VALUES('43','Boisset','03',285,221,14.04,'1829','50360',590,944);
INSERT INTO "communes" VALUES('43','Beaumont','05',269,236,12.03,'1117','50348',421,692);
INSERT INTO "communes" VALUES('43','Azerat','02',265,274,18.11,'1162','50402',404,661);
INSERT INTO "communes" VALUES('43','Vazeilles-près-Saugues','25',42,44,6.73,'1391','49887',894,1154);
INSERT INTO "communes" VALUES('43','Torsiac','04',72,71,9.06,'978','50390',460,690);
INSERT INTO "communes" VALUES('43','Josat','16',91,111,12.44,'1414','50236',620,1107);
INSERT INTO "communes" VALUES('43','Solignac-sous-Roche','21',216,150,8.65,'1845','50280',520,876);
INSERT INTO "communes" VALUES('43','Pébrac','10',124,137,17.85,'1303','50035',560,1071);
INSERT INTO "communes" VALUES('43','Ally','11',163,222,31.13,'1086','50177',549,1109);
INSERT INTO "communes" VALUES('43','Beaulieu','28',923,845,22.27,'1784','50142',543,948);
INSERT INTO "communes" VALUES('43','Polignac','19',2809,2603,33.05,'1692','50077',562,892);
INSERT INTO "communes" VALUES('43','Saint-Geneys-près-Saint-Paulien','24',303,254,16.49,'1653','50180',750,1098);
INSERT INTO "communes" VALUES('43','Saint-Julien-des-Chazes','10',75,69,6.63,'1385','50052',519,923);
INSERT INTO "communes" VALUES('43','Léotoing','04',207,209,19.56,'985','50402',460,701);
INSERT INTO "communes" VALUES('43','Monistrol-d''Allier','25',219,256,27.32,'1452','49965',551,1074);
INSERT INTO "communes" VALUES('43','Venteuges','25',366,380,39.35,'1290','49983',670,1270);
INSERT INTO "communes" VALUES('43','Chomelix','08',488,409,26.47,'1657','50291',674,1089);
INSERT INTO "communes" VALUES('43','Saint-Martin-de-Fugères','13',204,245,20.87,'1775','49895',725,1185);
INSERT INTO "communes" VALUES('43','<NAME>','26',595,544,34.9,'1715','49928',698,1127);
INSERT INTO "communes" VALUES('43','Brioude','97',6664,6818,13.52,'1164','50327',414,622);
INSERT INTO "communes" VALUES('43','Sainte-Florine','02',3145,3005,7.67,'1090','50450',400,511);
INSERT INTO "communes" VALUES('43','Laussonne','13',1007,990,25.11,'1906','49967',796,1191);
INSERT INTO "communes" VALUES('43','Couteuges','16',302,262,10.34,'1290','50209',520,722);
INSERT INTO "communes" VALUES('43','Autrac','04',78,69,8.46,'884','50367',552,1028);
INSERT INTO "communes" VALUES('43','Grazac','29',1000,728,21.66,'2052','50208',537,854);
INSERT INTO "communes" VALUES('43','Bonneval','07',86,105,14.66,'1561','50346',740,1126);
INSERT INTO "communes" VALUES('43','Saint-Paulien','24',2406,1910,40.63,'1640','50151',704,1070);
INSERT INTO "communes" VALUES('43','Sembadel','07',248,251,18.59,'1500','50305',849,1128);
INSERT INTO "communes" VALUES('43','Saint-Pierre-Eynac','23',1030,848,23.99,'1886','50052',685,1070);
INSERT INTO "communes" VALUES('43','Beauzac','14',2762,2063,36.33,'1958','50288',440,969);
INSERT INTO "communes" VALUES('43','Saint-Front','09',458,516,52.33,'2006','49975',796,1594);
INSERT INTO "communes" VALUES('43','Landos','18',932,902,36.51,'1661','49825',978,1237);
INSERT INTO "communes" VALUES('43','Vorey','28',1423,1447,39.23,'1748','50207',510,948);
INSERT INTO "communes" VALUES('43','Siaugues-Sainte-Marie','10',798,798,40.01,'1440','50104',540,1301);
INSERT INTO "communes" VALUES('43','Goudet','13',61,62,4.5,'1766','49877',733,1018);
INSERT INTO "communes" VALUES('43','Lorlanges','04',326,242,14.49,'1033','50373',523,682);
INSERT INTO "communes" VALUES('43','Bas-en-Basset','03',4126,3349,46.76,'1969','50340',433,901);
INSERT INTO "communes" VALUES('43','Frugières-le-Pin','16',135,121,11.57,'1279','50298',467,766);
INSERT INTO "communes" VALUES('43','Allègre','01',987,1009,23.57,'1528','50222',880,1172);
INSERT INTO "communes" VALUES('43','Saint-Julien-d''Ance','08',238,213,17.82,'1751','50338',653,954);
INSERT INTO "communes" VALUES('43','Valprivas','03',498,401,23.66,'1897','50346',491,953);
INSERT INTO "communes" VALUES('43','Saint-Vert','02',109,103,20.67,'1328','50413',710,1132);
INSERT INTO "communes" VALUES('43','Lavoûte-Chilhac','11',308,302,3.61,'1185','50165',447,640);
INSERT INTO "communes" VALUES('43','Sanssac-l''Église','12',1049,894,15.28,'1603','50057',660,964);
INSERT INTO "communes" VALUES('43','Mézères','28',158,102,8.58,'1870','50178',805,1089);
INSERT INTO "communes" VALUES('43','Saint-Pal-de-Mons','35',2069,1747,27.11,'2153','50274',615,969);
INSERT INTO "communes" VALUES('43','Champclause','09',207,229,22.27,'2043','50025',1108,1436);
INSERT INTO "communes" VALUES('43','Tiranges','03',456,407,26.83,'1835','50338',489,921);
INSERT INTO "communes" VALUES('43','Saint-Arcons-d''Allier','10',194,164,16.08,'1348','50076',498,1045);
INSERT INTO "communes" VALUES('43','Lempdes-sur-Allagnon','02',1323,1370,10.4,'1037','50428',425,546);
INSERT INTO "communes" VALUES('43','<NAME>-Saint-Mary','17',134,131,21.57,'1201','49967',749,1496);
INSERT INTO "communes" VALUES('43','Saint-Julien-Molhesabate','15',206,198,27.5,'2322','50207',809,1388);
INSERT INTO "communes" VALUES('43','Saint-Paul-de-Tartas','18',192,244,27.47,'1744','49782',933,1342);
INSERT INTO "communes" VALUES('43','Chadron','13',258,207,13.62,'1776','49957',667,983);
INSERT INTO "communes" VALUES('43','Paulhac','05',656,618,8.4,'1124','50334',436,646);
INSERT INTO "communes" VALUES('43','Saint-Julien-du-Pinet','29',452,344,17.2,'1892','50169',637,1186);
INSERT INTO "communes" VALUES('43','La Séauve-sur-Semène','22',1414,1097,7.86,'2126','50328',657,865);
INSERT INTO "communes" VALUES('43','Vergezac','12',428,405,20.31,'1544','50037',902,1259);
INSERT INTO "communes" VALUES('43','Saint-Bonnet-le-Froid','15',231,194,13.09,'2332','50158',758,1161);
INSERT INTO "communes" VALUES('43','Lantriac','23',1860,1598,22.83,'1853','50001',678,1083);
INSERT INTO "communes" VALUES('43','Prades','10',62,62,4.82,'1396','50031',535,880);
INSERT INTO "communes" VALUES('43','Saint-Jean-de-Nay','12',384,429,28.26,'1511','50077',868,1301);
INSERT INTO "communes" VALUES('43','Solignac-sur-Loire','26',1210,1058,24,'1722','49965',655,1115);
INSERT INTO "communes" VALUES('43','Espaly-Saint-Marcel','32',3548,3553,6.29,'1692','50051',618,892);
INSERT INTO "communes" VALUES('43','Freycenet-la-Cuche','13',137,144,16.25,'1946','49883',1034,1524);
INSERT INTO "communes" VALUES('43','Raucoules','15',891,751,21.01,'2176','50208',630,915);
INSERT INTO "communes" VALUES('43','Chanaleilles','25',207,228,48.52,'1279','49846',1077,1486);
INSERT INTO "communes" VALUES('43','Saint-Austremoine','11',50,58,11.55,'1148','50134',527,1044);
INSERT INTO "communes" VALUES('43','Chaudeyrolles','09',102,108,18.9,'2074','49945',1124,1720);
INSERT INTO "communes" VALUES('43','Cussac-sur-Loire','26',1688,1376,10.27,'1705','49989',647,1069);
INSERT INTO "communes" VALUES('43','Chavaniac-Lafayette','16',280,288,8.41,'1382','50176',620,1046);
INSERT INTO "communes" VALUES('43','Fay-sur-Lignon','09',419,399,13.24,'2100','49985',1079,1380);
INSERT INTO "communes" VALUES('43','<NAME>','06',241,236,19.31,'1614','49878',1118,1301);
INSERT INTO "communes" VALUES('43','Présailles','13',152,161,22.23,'1879','49891',960,1283);
INSERT INTO "communes" VALUES('43','Cistrières','07',136,139,21.89,'1428','50357',711,1155);
INSERT INTO "communes" VALUES('43','Saint-Étienne-sur-Blesle','04',51,52,17.65,'890','50346',554,1004);
INSERT INTO "communes" VALUES('43','Chambezon','04',88,94,5.09,'1007','50422',433,720);
INSERT INTO "communes" VALUES('43','Lubilhac','04',107,133,24.09,'1009','50281',565,996);
INSERT INTO "communes" VALUES('43','Saint-Georges-d''Aurac','16',452,412,17.42,'1338','50174',557,911);
INSERT INTO "communes" VALUES('43','Auzon','02',925,816,16.96,'1150','50435',400,755);
INSERT INTO "communes" VALUES('43','Chaspinhac','19',725,540,16.44,'1787','50096',572,937);
INSERT INTO "communes" VALUES('43','Saint-Privat-du-Dragon','11',164,186,21.66,'1234','50209',449,780);
INSERT INTO "communes" VALUES('43','Langeac','10',3978,4072,33.94,'1286','50111',488,951);
INSERT INTO "communes" VALUES('43','Mazeyrat-d''Allier','10',1546,1228,44.95,'1324','50134',481,1000);
INSERT INTO "communes" VALUES('43','Ferrussac','17',85,92,17.08,'1183','50103',585,1057);
INSERT INTO "communes" VALUES('43','Saint-Beauzire','05',332,272,23.46,'1034','50306',553,891);
INSERT INTO "communes" VALUES('43','Arlempdes','18',132,114,13.74,'1763','49850',769,1166);
INSERT INTO "communes" VALUES('43','Tailhac','17',81,74,12.52,'1245','50046',575,1067);
INSERT INTO "communes" VALUES('43','Beaux','29',794,653,16.78,'1952','50208',475,920);
INSERT INTO "communes" VALUES('43','Bains','26',1270,1028,37.56,'1598','50011',878,1332);
INSERT INTO "communes" VALUES('43','Aurec-sur-Loire','30',5614,4894,22.44,'2072','50410',414,821);
INSERT INTO "communes" VALUES('43','<NAME>-sur-Gazeille','13',1767,1728,39.39,'1843','49932',752,1283);
INSERT INTO "communes" VALUES('43','Roche-en-Régnier','28',491,389,26.92,'1783','50246',504,1076);
INSERT INTO "communes" VALUES('43','Berbezit','07',59,59,10.39,'1398','50316',712,1163);
INSERT INTO "communes" VALUES('43','Chilhac','11',197,185,4.11,'1223','50174',468,780);
INSERT INTO "communes" VALUES('43','Saint-Germain-Laprade','31',3413,2991,28.09,'1814','50042',601,920);
INSERT INTO "communes" VALUES('43','Araules','29',623,607,31.1,'2041','50100',920,1386);
INSERT INTO "communes" VALUES('43','Cubelles','25',136,126,12.13,'1380','50007',640,1054);
INSERT INTO "communes" VALUES('43','Saint-Étienne-du-Vigan','18',112,110,9.43,'1665','49755',872,1164);
INSERT INTO "communes" VALUES('43','Saint-Vénérand','25',55,52,9.68,'1492','49852',660,1099);
INSERT INTO "communes" VALUES('43','Saugues','25',1873,2015,78.8,'1345','49956',661,1483);
INSERT INTO "communes" VALUES('43','Ceyssac','32',398,405,10.86,'1666','50042',657,897);
INSERT INTO "communes" VALUES('43','Pinols','17',227,267,34.92,'1197','50057',706,1428);
INSERT INTO "communes" VALUES('43','Sainte-Eugénie-de-Villeneuve','16',93,109,6.11,'1430','50155',829,1129);
INSERT INTO "communes" VALUES('43','Lissac','24',260,239,12.03,'1590','50148',791,908);
INSERT INTO "communes" VALUES('43','Barges','18',70,73,7.02,'1731','49818',945,1258);
INSERT INTO "communes" VALUES('43','Riotord','15',1197,1155,51.88,'2295','50257',791,1369);
INSERT INTO "communes" VALUES('43','Croisances','25',35,40,7.37,'1419','49888',867,1151);
INSERT INTO "communes" VALUES('43','Alleyrac','13',123,118,11.34,'1833','49878',1025,1283);
INSERT INTO "communes" VALUES('43','Saint-Maurice-de-Lignon','14',2402,1800,30.23,'2002','50249',461,892);
INSERT INTO "communes" VALUES('43','Lafarre','18',63,72,13.02,'1837','49825',823,1192);
INSERT INTO "communes" VALUES('43','Bellevue-la-Montagne','01',468,476,32.74,'1648','50245',600,1061);
INSERT INTO "communes" VALUES('43','Bournoncle-Saint-Pierre','05',1008,953,16.16,'1091','50382',419,614);
INSERT INTO "communes" VALUES('43','Aiguilhe','19',1585,1552,1.1,'1720','50057',609,751);
INSERT INTO "communes" VALUES('43','Villettes','35',1204,853,11.78,'2052','50261',505,794);
INSERT INTO "communes" VALUES('43','Frugerès-les-Mines','02',510,499,1.08,'1078','50429',414,480);
INSERT INTO "communes" VALUES('43','Montfaucon-en-Velay','15',1277,1207,4.99,'2197','50206',875,969);
INSERT INTO "communes" VALUES('43','Saint-Hilaire','02',183,190,14.64,'1223','50423',519,884);
INSERT INTO "communes" VALUES('43','<NAME>','01',58,72,11.29,'1458','50243',680,1136);
INSERT INTO "communes" VALUES('43','Saint-Jean-d''Aubrigoux','08',187,185,17.8,'1641','50401',880,1191);
INSERT INTO "communes" VALUES('43','Charraix','10',95,82,9.46,'1369','50029',720,1030);
INSERT INTO "communes" VALUES('43','Auvers','17',62,67,21.5,'1184','49996',756,1496);
INSERT INTO "communes" VALUES('43','Lavoûte-sur-Loire','24',760,692,10.16,'1744','50131',554,900);
INSERT INTO "communes" VALUES('43','Saint-Christophe-sur-Dolaison','26',954,907,27.34,'1649','49997',763,1069);
INSERT INTO "communes" VALUES('43','Mazet-Saint-Voy','27',1150,1032,45.02,'2119','50052',875,1283);
INSERT INTO "communes" VALUES('43','Saint-Didier-sur-Doulon','16',211,222,34.14,'1335','50334',550,1089);
INSERT INTO "communes" VALUES('43','Vernassal','01',393,332,19.23,'1518','50166',850,1163);
INSERT INTO "communes" VALUES('43','Vielprat','18',63,66,7.24,'1797','49838',791,1112);
INSERT INTO "communes" VALUES('43','Le Mas-de-Tence','27',175,150,12.83,'2247','50135',936,1153);
INSERT INTO "communes" VALUES('43','Lapte','29',1502,1252,30.75,'2089','50207',600,914);
INSERT INTO "communes" VALUES('43','Dunières','15',2934,2945,34.75,'2231','50240',711,1033);
INSERT INTO "communes" VALUES('43','Chamalières-sur-Loire','28',465,408,13.4,'1832','50223',495,984);
INSERT INTO "communes" VALUES('43','Saint-Étienne-Lardeyrol','23',695,611,11.8,'1850','50079',669,1033);
INSERT INTO "communes" VALUES('43','Vézézoux','02',517,405,7.13,'1122','50448',393,638);
INSERT INTO "communes" VALUES('43','Fix-Saint-Geneys','01',139,139,7.91,'1479','50159',951,1195);
INSERT INTO "communes" VALUES('43','Javaugues','34',197,156,6.98,'1271','50321',459,798);
INSERT INTO "communes" VALUES('43','<NAME>','19',604,538,2.22,'1754','50073',586,786);
INSERT INTO "communes" VALUES('43','Saint-Laurent-Chabreuges','05',233,243,8.27,'1116','50310',477,683);
INSERT INTO "communes" VALUES('43','Chaniat','34',166,134,13.93,'1276','50351',454,869);
INSERT INTO "communes" VALUES('43','Coubon','20',3063,2708,22.73,'1757','49997',607,948);
INSERT INTO "communes" VALUES('43','Saint-Georges-Lagricol','08',498,411,19.17,'1722','50331',743,963);
INSERT INTO "communes" VALUES('43','Salzuit','16',361,341,8.05,'1274','50234',514,768);
INSERT INTO "communes" VALUES('43','Saint-Didier-d''Allier','06',34,43,7.71,'1507','49986',622,1214);
INSERT INTO "communes" VALUES('43','Saint-Jean-Lachalm','06',285,281,34.64,'1536','49952',634,1417);
INSERT INTO "communes" VALUES('43','Chanteuges','10',424,403,16.33,'1328','50081',493,894);
INSERT INTO "communes" VALUES('43','Domeyrat','16',192,145,9.57,'1295','50277',472,752);
INSERT INTO "communes" VALUES('43','<NAME>apelle-d''Aurec','14',902,626,11.79,'2078','50372',422,796);
INSERT INTO "communes" VALUES('43','Vastres','09',212,222,30.34,'2138','49988',777,1215);
INSERT INTO "communes" VALUES('43','Agnat','02',190,209,19.65,'1236','50382',445,860);
INSERT INTO "communes" VALUES('43','Arsac-en-Velay','20',1179,915,12.15,'1785','49989',620,958);
INSERT INTO "communes" VALUES('43','Sainte-Sigolène','35',5913,5435,30.64,'2109','50270',560,854);
INSERT INTO "communes" VALUES('43','<NAME>','23',423,374,11.89,'1914','50107',879,1255);
INSERT INTO "communes" VALUES('43','<NAME>','99',18521,20489,16.79,'1720','50048',600,888);
INSERT INTO "communes" VALUES('43','Saint-Bérain','10',96,118,13,'1441','50037',551,1301);
INSERT INTO "communes" VALUES('43','Saint-André-de-Chalencon','21',340,279,17.2,'1815','50303',549,969);
INSERT INTO "communes" VALUES('43','Montregard','15',607,593,39.93,'2233','50176',859,1142);
INSERT INTO "communes" VALUES('43','Saint-Arcons-de-Barges','18',115,118,15.38,'1763','49822',825,1342);
INSERT INTO "communes" VALUES('43','Chenereilles','27',301,244,14.42,'2128','50148',806,956);
INSERT INTO "communes" VALUES('43','Queyrières','23',310,285,13.95,'1957','50080',949,1436);
INSERT INTO "communes" VALUES('43','Jax','16',134,132,11.93,'1424','50187',646,1150);
INSERT INTO "communes" VALUES('43','Saint-Hostien','23',684,578,13.49,'1901','50080',747,1204);
INSERT INTO "communes" VALUES('43','Chastel','17',145,161,27.69,'1096','50093',711,1359);
INSERT INTO "communes" VALUES('43','Chadrac','19',2671,3010,2.48,'1743','50071',577,730);
INSERT INTO "communes" VALUES('43','Estables','09',344,327,33.94,'2020','49894',1033,1725);
INSERT INTO "communes" VALUES('43','Chaspuzac','12',687,521,9.77,'1569','50076',818,964);
INSERT INTO "communes" VALUES('43','Grèzes','25',213,257,35.79,'1278','49911',1017,1484);
INSERT INTO "communes" VALUES('43','Saint-Pierre-du-Champ','28',489,518,31.09,'1736','50275',631,963);
INSERT INTO "communes" VALUES('43','Saint-Pal-de-Chalencon','03',1018,1045,28.95,'1800','50396',700,978);
INSERT INTO "communes" VALUES('43','Saint-Romain-Lachalm','22',1074,829,19.02,'2220','50296',757,1008);
INSERT INTO "communes" VALUES('43','Espalem','04',287,228,14.62,'996','50342',580,739);
INSERT INTO "communes" VALUES('43','Costaros','06',620,549,3.85,'1682','49883',1031,1215);
INSERT INTO "communes" VALUES('43','Sainte-Marguerite','16',37,37,5.39,'1394','50229',590,889);
INSERT INTO "communes" VALUES('43','Saint-Vincent','24',978,831,20.4,'1748','50160',528,932);
INSERT INTO "communes" VALUES('43','La Chomette','16',140,131,6.9,'1264','50255',573,743);
INSERT INTO "communes" VALUES('43','Laval-sur-Doulon','07',62,60,12.28,'1361','50391',642,1110);
INSERT INTO "communes" VALUES('43','Chassagnes','16',178,129,12.24,'1335','50238',529,871);
INSERT INTO "communes" VALUES('43','Pont-Salomon','22',1870,1661,8.43,'2124','50375',552,803);
INSERT INTO "communes" VALUES('43','Craponne-sur-Arzon','08',2164,2651,33.37,'1680','50368',771,1063);
INSERT INTO "communes" VALUES('43','Félines','07',283,322,20.5,'1563','50302',958,1122);
INSERT INTO "communes" VALUES('43','Aubazat','11',188,172,16.38,'1224','50155',464,848);
INSERT INTO "communes" VALUES('43','Saint-Géron','05',233,178,10.76,'1066','50380',437,674);
INSERT INTO "communes" VALUES('43','Bessamorel','29',409,329,7.37,'1945','50134',760,1137);
INSERT INTO "communes" VALUES('43','Saint-Didier-en-Velay','22',3367,2890,25.56,'2154','50336',640,924);
INSERT INTO "communes" VALUES('43','Cayres','06',708,613,29.22,'1634','49917',971,1382);
INSERT INTO "communes" VALUES('43','Ouides','06',55,60,10.69,'1557','49893',798,1286);
INSERT INTO "communes" VALUES('43','Séneujols','06',304,270,12.24,'1606','49956',985,1417);
INSERT INTO "communes" VALUES('43','Saint-Vidal','12',521,354,7.71,'1626','50083',682,924);
INSERT INTO "communes" VALUES('43','Cohade','05',823,653,9.99,'1152','50375',405,459);
INSERT INTO "communes" VALUES('43','Varennes-Saint-Honorat','01',34,39,11.91,'1446','50199',720,1174);
INSERT INTO "communes" VALUES('43','Saint-Victor-sur-Arlanc','08',106,107,11.88,'1597','50372',659,1044);
INSERT INTO "communes" VALUES('43','Chazelles','17',34,34,4.9,'1280','50021',626,1013);
INSERT INTO "communes" VALUES('43','Salettes','13',148,129,20.28,'1810','49848',786,1181);
INSERT INTO "communes" VALUES('43','Saint-Cirgues','11',161,147,13.62,'1186','50161',459,1033);
INSERT INTO "communes" VALUES('43','Cerzat','11',194,196,10.41,'1269','50179',475,747);
INSERT INTO "communes" VALUES('43','Saint-Ilpize','11',176,205,11.81,'1168','50218',432,763);
INSERT INTO "communes" VALUES('43','Lamothe','05',824,717,12.24,'1209','50348',417,645);
INSERT INTO "communes" VALUES('43','Cronce','17',81,100,16.15,'1138','50103',623,1173);
INSERT INTO "communes" VALUES('43','Montclard','16',62,65,9.58,'1394','50292',640,1204);
INSERT INTO "communes" VALUES('43','Esplantas','25',101,95,10.4,'1345','49899',962,1142);
INSERT INTO "communes" VALUES('43','Arlet','11',23,20,5.78,'1203','50129',545,933);
INSERT INTO "communes" VALUES('43','Monlet','01',416,377,35.7,'1531','50244',859,1172);
INSERT INTO "communes" VALUES('43','Yssingeaux','29',7009,6498,80.57,'1986','50159',589,1320);
INSERT INTO "communes" VALUES('43','Malvalette','03',732,422,21.01,'2024','50394',418,846);
INSERT INTO "communes" VALUES('43','Paulhaguet','16',940,981,11.23,'1307','50231',494,689);
INSERT INTO "communes" VALUES('43','Blesle','04',634,660,29.8,'927','50354',472,875);
INSERT INTO "communes" VALUES('43','Alleyras','98',173,231,24.86,'1495','49896',634,1074);
INSERT INTO "communes" VALUES('43','Saint-Just-Malmont','22',4126,3957,23.28,'2196','50377',520,934);
INSERT INTO "communes" VALUES('43','Freycenet-la-Tour','13',129,146,7.93,'1914','49932',964,1244);
INSERT INTO "communes" VALUES('43','Brives-Charensac','31',4231,4354,4.87,'1767','50052',598,838);
INSERT INTO "communes" VALUES('43','Retournac','21',2714,2216,45.76,'1885','50227',479,1064);
INSERT INTO "communes" VALUES('43','<NAME>','07',722,769,13.58,'1511','50357',916,1120);
INSERT INTO "communes" VALUES('43','Connangles','07',137,129,21.89,'1456','50332',873,1145);
INSERT INTO "communes" VALUES('43','Vals-près-le-Puy','33',3518,3393,5.12,'1709','50031',632,920);
INSERT INTO "communes" VALUES('43','Beaune-sur-Arzon','08',209,189,14.38,'1643','50311',885,1073);
INSERT INTO "communes" VALUES('43','Villeneuve-d''Allier','11',329,303,14.31,'1164','50220',436,902);
INSERT INTO "communes" VALUES('43','Collat','16',85,80,10.22,'1416','50271',687,1191);
INSERT INTO "communes" VALUES('43','Champagnac-le-Vieux','02',232,277,20.61,'1296','50398',640,980);
INSERT INTO "communes" VALUES('43','Vals-le-Chastel','16',46,46,3.99,'1316','50301',507,777);
INSERT INTO "communes" VALUES('43','Saint-Ferréol-d''Auroure','22',2390,2047,10.85,'2131','50395',457,818);
INSERT INTO "communes" VALUES('43','Jullianges','08',439,380,18.44,'1616','50340',838,1089);
INSERT INTO "communes" VALUES('43','<NAME>','12',31,39,3.82,'1484','50041',1070,1301);
INSERT INTO "communes" VALUES('43','Céaux-d''Allègre','01',462,411,32.41,'1567','50201',834,1144);
INSERT INTO "communes" VALUES('43','Mercœur','11',136,150,27.51,'1061','50215',600,1009);
INSERT INTO "communes" VALUES('43','Saint-Privat-d''Allier','12',401,414,29.96,'1491','49989',547,1221);
INSERT INTO "communes" VALUES('43','Saint-Haon','18',347,370,37.57,'1580','49829',689,1240);
INSERT INTO "communes" VALUES('43','Montusclat','23',130,123,10.47,'1987','50015',832,1328);
INSERT INTO "communes" VALUES('43','Rosières','28',1431,1309,26.82,'1835','50148',594,1072);
INSERT INTO "communes" VALUES('43','Thoras','25',216,270,37.56,'1362','49850',960,1371);
INSERT INTO "communes" VALUES('43','Vergongheon','02',1838,1608,12.61,'1092','50412',403,483);
INSERT INTO "communes" VALUES('43','Saint-Just-près-Brioude','34',425,391,46.94,'1129','50265',513,941);
INSERT INTO "communes" VALUES('43','Saint-Christophe-d''Allier','25',105,140,19.3,'1520','49840',689,1133);
INSERT INTO "communes" VALUES('43','Saint-Préjet-Armandon','16',107,93,8.47,'1339','50283',506,853);
INSERT INTO "communes" VALUES('43','Malrevers','19',720,691,14.09,'1811','50109',591,920);
INSERT INTO "communes" VALUES('43','Malvières','07',134,103,13.72,'1551','50375',668,1074);
INSERT INTO "communes" VALUES('43','Lavaudieu','34',224,225,17.54,'1241','50292',438,727);
INSERT INTO "communes" VALUES('43','Pradelles','18',613,584,17.48,'1717','49744',880,1302);
INSERT INTO "communes" VALUES('43','Rauret','18',178,139,20.75,'1616','49797',775,1204);
INSERT INTO "communes" VALUES('43','Saint-Pal-de-Senouire','07',101,118,18.35,'1460','50288',789,1204);
INSERT INTO "communes" VALUES('43','Saint-Victor-Malescours','22',790,673,14.47,'2195','50324',753,931);
INSERT INTO "communes" VALUES('43','Mazerat-Aurouze','16',200,198,16.35,'1360','50207',534,968);
INSERT INTO "communes" VALUES('44','Saint-Vincent-des-Landes','11',1462,1323,33.7,'-4259','52951',25,77);
INSERT INTO "communes" VALUES('44','Corcoué-sur-Logne','15',2553,1990,50.39,'-4348','52184',10,69);
INSERT INTO "communes" VALUES('44','Indre','55',4006,3641,4.72,'-4453','52443',0,26);
INSERT INTO "communes" VALUES('44','Saint-Malo-de-Guersac','47',3212,3126,14.62,'-5018','52612',0,13);
INSERT INTO "communes" VALUES('44','Maisdon-sur-Sèvre','01',2636,2054,17.45,'-4135','52330',3,63);
INSERT INTO "communes" VALUES('44','Piriac-sur-Mer','13',2209,1900,12.37,'-5425','52645',0,36);
INSERT INTO "communes" VALUES('44','Le Landreau','17',2876,2139,23.98,'-4046','52450',3,96);
INSERT INTO "communes" VALUES('44','Mouzeil','16',1783,1213,18.87,'-4094','52720',9,54);
INSERT INTO "communes" VALUES('44','Sainte-Pazanne','30',5437,3448,41.56,'-4608','52337',0,41);
INSERT INTO "communes" VALUES('44','Joué-sur-Erdre','33',2163,1690,54.53,'-4174','52773',7,66);
INSERT INTO "communes" VALUES('44','Guenrouet','36',3007,2408,69.9,'-4768','52799',0,73);
INSERT INTO "communes" VALUES('44','Brains','04',2584,2172,15.31,'-4509','52410',0,34);
INSERT INTO "communes" VALUES('44','Erbray','37',2940,2349,58.18,'-4060','52951',41,108);
INSERT INTO "communes" VALUES('44','Carquefou','06',17805,15369,43.42,'-4255','52552',1,76);
INSERT INTO "communes" VALUES('44','Saint-Herblain','96',43153,43728,30.02,'-4430','52457',1,64);
INSERT INTO "communes" VALUES('44','Oudon','02',3355,2617,22.12,'-4026','52607',2,74);
INSERT INTO "communes" VALUES('44','Treffieux','28',786,618,19.12,'-4304','52911',19,54);
INSERT INTO "communes" VALUES('44','Saint-Viaud','41',2116,1840,32.63,'-4840','52506',0,51);
INSERT INTO "communes" VALUES('44','Saint-Même-le-Tenu','18',1152,928,18.27,'-4590','52245',0,39);
INSERT INTO "communes" VALUES('44','Vallet','44',8425,6807,58.96,'-4004','52402',6,98);
INSERT INTO "communes" VALUES('44','<NAME>','18',1364,917,17.8,'-4530','52217',3,39);
INSERT INTO "communes" VALUES('44','Saint-Père-en-Retz','41',4135,3457,62.72,'-4868','52452',0,62);
INSERT INTO "communes" VALUES('44','Fay-de-Bretagne','03',3230,2491,64.81,'-4587','52683',18,87);
INSERT INTO "communes" VALUES('44','Juigné-des-Moutiers','37',353,322,24.65,'-3913','52977',52,102);
INSERT INTO "communes" VALUES('44','Saint-Hilaire-de-Clisson','09',2019,1474,18.43,'-4051','52291',22,54);
INSERT INTO "communes" VALUES('44','Boussay','09',2684,2361,26.45,'-3914','52271',27,111);
INSERT INTO "communes" VALUES('44','Donges','47',6748,6156,48.5,'-4903','52581',0,31);
INSERT INTO "communes" VALUES('44','Missillac','36',4843,3808,59.55,'-4995','52758',0,63);
INSERT INTO "communes" VALUES('44','Teillé','33',1740,1299,28.55,'-4018','52735',17,64);
INSERT INTO "communes" VALUES('44','La Chapelle-Saint-Sauveur','45',780,627,18.7,'-3692','52712',32,76);
INSERT INTO "communes" VALUES('44','Blain','03',9434,7731,101.72,'-4556','52751',7,44);
INSERT INTO "communes" VALUES('44','Couffé','16',2290,1790,39.97,'-4032','52657',7,73);
INSERT INTO "communes" VALUES('44','Pornic','32',14101,11891,94.18,'-4933','52351',0,60);
INSERT INTO "communes" VALUES('44','La Planche','01',2382,2074,24.42,'-4191','52241',13,52);
INSERT INTO "communes" VALUES('44','Pannecé','33',1349,911,30.59,'-3973','52762',22,79);
INSERT INTO "communes" VALUES('44','La Turballe','13',4582,4042,18.53,'-5381','52606',0,45);
INSERT INTO "communes" VALUES('44','Petit-Auverné','37',433,386,22.53,'-4030','52900',37,81);
INSERT INTO "communes" VALUES('44','La Remaudière','17',1140,816,12.98,'-3978','52486',38,101);
INSERT INTO "communes" VALUES('44','Remouillé','01',1695,1443,21.38,'-4126','52284',17,61);
INSERT INTO "communes" VALUES('44','Paimbœuf','29',3206,2762,2,'-4853','52542',0,11);
INSERT INTO "communes" VALUES('44','Montrelais','45',822,664,13.73,'-3670','52654',7,62);
INSERT INTO "communes" VALUES('44','Corsept','29',2742,1965,23.62,'-4884','52531',0,26);
INSERT INTO "communes" VALUES('44','Sucé-sur-Erdre','07',6258,5868,41.33,'-4295','52605',2,47);
INSERT INTO "communes" VALUES('44','Le Fresne-sur-Loire','45',982,699,6.29,'-3627','52668',7,61);
INSERT INTO "communes" VALUES('44','Saint-Lyphard','14',4326,3180,24.63,'-5160','52664',0,23);
INSERT INTO "communes" VALUES('44','<NAME>','37',822,761,34.5,'-3926','52915',46,99);
INSERT INTO "communes" VALUES('44','Prinquiau','43',3103,2053,22.82,'-4831','52625',0,70);
INSERT INTO "communes" VALUES('44','<NAME>','45',1014,877,20.96,'-3782','52714',23,78);
INSERT INTO "communes" VALUES('44','Grandchamps-des-Fontaines','07',4837,3464,33.87,'-4380','52628',8,70);
INSERT INTO "communes" VALUES('44','Malville','43',3161,2974,31.24,'-4667','52623',1,89);
INSERT INTO "communes" VALUES('44','<NAME>','10',4979,5265,4.39,'-5296','52530',0,23);
INSERT INTO "communes" VALUES('44','Avessac','40',2437,2154,76.49,'-4807','52948',0,81);
INSERT INTO "communes" VALUES('44','Saint-Herblon','02',2407,1842,36.9,'-3814','52676',5,80);
INSERT INTO "communes" VALUES('44','Montoir-de-Bretagne','47',6793,6194,36.79,'-4984','52587',0,15);
INSERT INTO "communes" VALUES('44','Basse-Goulaine','59',8091,7504,13.74,'-4224','52462',1,44);
INSERT INTO "communes" VALUES('44','Trans-sur-Erdre','33',970,680,22.56,'-4122','52752',17,57);
INSERT INTO "communes" VALUES('44','Le Loroux-Bottereau','17',7052,4936,45.31,'-4095','52487',2,93);
INSERT INTO "communes" VALUES('44','Saint-Michel-Chef-Chef','32',4435,3176,25.12,'-4983','52423',0,57);
INSERT INTO "communes" VALUES('44','Trignac','47',7264,6952,14.38,'-5028','52576',0,10);
INSERT INTO "communes" VALUES('44','Touches','27',2268,1948,35.15,'-4185','52713',3,52);
INSERT INTO "communes" VALUES('44','Thouaré-sur-Loire','06',7674,6660,12.76,'-4197','52519',1,73);
INSERT INTO "communes" VALUES('44','Saint-André-des-Eaux','13',5336,3532,24.71,'-5164','52571',0,41);
INSERT INTO "communes" VALUES('44','Bouguenais','51',18194,15631,31.5,'-4401','52421',1,41);
INSERT INTO "communes" VALUES('44','Sorinières','46',7444,6229,13.02,'-4296','52385',3,44);
INSERT INTO "communes" VALUES('44','Sion-les-Mines','11',1678,1367,54.71,'-4365','53039',17,88);
INSERT INTO "communes" VALUES('44','Puceul','28',960,631,20.09,'-4392','52802',26,82);
INSERT INTO "communes" VALUES('44','Saint-Géréon','02',2692,2488,7.51,'-3928','52632',6,51);
INSERT INTO "communes" VALUES('44','Saint-Sébastien-sur-Loire','50',25017,25223,11.66,'-4265','52452',2,33);
INSERT INTO "communes" VALUES('44','Assérac','14',1789,1361,32.91,'-5252','52699',0,49);
INSERT INTO "communes" VALUES('44','Savenay','43',7565,5890,26,'-4754','52623',0,86);
INSERT INTO "communes" VALUES('44','<NAME>','42',5017,4851,32.56,'-4387','52323',0,22);
INSERT INTO "communes" VALUES('44','<NAME>','16',3713,3449,35.99,'-4092','52577',2,85);
INSERT INTO "communes" VALUES('44','Paulx','18',1909,1355,35.92,'-4546','52181',4,51);
INSERT INTO "communes" VALUES('44','Grand-Auverné','19',805,681,34.4,'-4074','52879',37,88);
INSERT INTO "communes" VALUES('44','Villepot','34',653,668,20.59,'-4015','53084',66,116);
INSERT INTO "communes" VALUES('44','Saint-Jean-de-Boiseau','30',5131,4563,11.4,'-4512','52438',0,34);
INSERT INTO "communes" VALUES('44','Herbignac','14',5817,4350,71.43,'-5171','52721',0,55);
INSERT INTO "communes" VALUES('44','Saint-Fiacre-sur-Maine','59',1194,996,5.97,'-4170','52381',2,49);
INSERT INTO "communes" VALUES('44','<NAME>','17',5195,4271,22.14,'-4083','52524',1,79);
INSERT INTO "communes" VALUES('44','Préfailles','32',1256,1038,4.88,'-5057','52365',0,36);
INSERT INTO "communes" VALUES('44','Quilly','43',1280,905,17.67,'-4766','52735',1,37);
INSERT INTO "communes" VALUES('44','Saint-Léger-les-Vignes','04',1518,1158,6.49,'-4521','52373',0,29);
INSERT INTO "communes" VALUES('44','Gorges','09',4189,2650,15.77,'-4045','52335',5,49);
INSERT INTO "communes" VALUES('44','Guémené-Penfao','12',5035,4569,105.51,'-4632','52922',2,83);
INSERT INTO "communes" VALUES('44','Fercé','34',485,517,22.04,'-4169','53107',42,117);
INSERT INTO "communes" VALUES('44','Pont-Saint-Martin','04',5684,4756,21.88,'-4356','52360',0,31);
INSERT INTO "communes" VALUES('44','<NAME>','28',1377,652,10.23,'-4453','52742',18,42);
INSERT INTO "communes" VALUES('44','Casson','27',2089,1319,16.15,'-4329','52651',3,46);
INSERT INTO "communes" VALUES('44','Bonnœuvre','38',561,505,15.66,'-3969','52808',22,78);
INSERT INTO "communes" VALUES('44','Saint-Mars-du-Désert','27',4027,3407,30.46,'-4158','52629',3,77);
INSERT INTO "communes" VALUES('44','Treillières','07',7965,6030,29.05,'-4403','52590',9,74);
INSERT INTO "communes" VALUES('44','Mouzillon','44',2594,1759,16.5,'-4021','52379',9,78);
INSERT INTO "communes" VALUES('44','Saint-Sulpice-des-Landes','38',650,607,30.78,'-3936','52861',44,86);
INSERT INTO "communes" VALUES('44','Bourgneuf-en-Retz','05',3408,2400,53.19,'-4766','52270',0,39);
INSERT INTO "communes" VALUES('44','<NAME>','30',5985,5847,3.64,'-4467','52433',2,38);
INSERT INTO "communes" VALUES('44','Vay','28',1940,1227,36.13,'-4486','52839',21,96);
INSERT INTO "communes" VALUES('44','Sévérac','36',1557,1192,22.41,'-4903','52833',0,71);
INSERT INTO "communes" VALUES('44','Couëron','35',18591,17821,44.03,'-4511','52461',0,74);
INSERT INTO "communes" VALUES('44','Cordemais','35',2983,2518,37.15,'-4684','52545',0,91);
INSERT INTO "communes" VALUES('44','Drefféac','36',1843,1322,14.16,'-4881','52752',0,33);
INSERT INTO "communes" VALUES('44','Orvault','54',24504,23550,27.67,'-4400','52523',7,74);
INSERT INTO "communes" VALUES('44','Arthon-en-Retz','32',3761,2668,39.24,'-4750','52352',1,61);
INSERT INTO "communes" VALUES('44','Soudan','08',2013,2007,53.82,'-4046','53042',57,111);
INSERT INTO "communes" VALUES('44','Geneston','01',3524,2214,8.04,'-4277','52284',14,39);
INSERT INTO "communes" VALUES('44','<NAME>','42',2139,1407,29.54,'-4370','52215',8,50);
INSERT INTO "communes" VALUES('44','Bouvron','03',2863,2408,47.63,'-4649','52686',11,82);
INSERT INTO "communes" VALUES('44','Mesquer','13',1727,1473,16.72,'-5329','52666',0,34);
INSERT INTO "communes" VALUES('44','Derval','11',3246,2489,63.51,'-4453','52964',8,77);
INSERT INTO "communes" VALUES('44','<NAME>','03',1557,945,53.58,'-4539','52801',22,62);
INSERT INTO "communes" VALUES('44','Ruffigné','08',719,602,33.63,'-4256','53063',33,98);
INSERT INTO "communes" VALUES('44','Sautron','54',6901,6818,17.28,'-4450','52515',25,80);
INSERT INTO "communes" VALUES('44','Clisson','09',6732,5932,11.3,'-4022','52319',7,71);
INSERT INTO "communes" VALUES('44','Machecoul','18',5914,5424,66.62,'-4621','52214',0,36);
INSERT INTO "communes" VALUES('44','Pouillé-les-Côteaux','02',873,702,11.72,'-3887','52728',18,76);
INSERT INTO "communes" VALUES('44','Château-Thébaud','59',2862,2474,17.64,'-4173','52361',2,60);
INSERT INTO "communes" VALUES('44','Ligné','16',4592,2948,45.41,'-4126','52680',12,72);
INSERT INTO "communes" VALUES('44','<NAME>','28',1548,1101,21.22,'-4449','52808',20,82);
INSERT INTO "communes" VALUES('44','Vue','30',1415,996,19.51,'-4686','52443',0,60);
INSERT INTO "communes" VALUES('44','La Chapelle-des-Marais','14',3772,2952,18.05,'-5087','52719',0,11);
INSERT INTO "communes" VALUES('44','Pontchâteau','31',9683,7770,55.79,'-4916','52708',0,52);
INSERT INTO "communes" VALUES('44','Saint-Étienne-de-Montluc','35',6611,6228,57.57,'-4574','52529',0,89);
INSERT INTO "communes" VALUES('44','Rouans','30',2663,2131,37.73,'-4662','52428',0,60);
INSERT INTO "communes" VALUES('44','Frossay','41',2977,2110,57.22,'-4745','52493',0,47);
INSERT INTO "communes" VALUES('44','Notre-Dame-des-Landes','03',1970,1650,37.4,'-4496','52646',29,82);
INSERT INTO "communes" VALUES('44','Monnières','09',1932,1543,9.78,'-4103','52368',2,61);
INSERT INTO "communes" VALUES('44','Saint-Julien-de-Concelles','17',6820,6255,31.74,'-4136','52504',0,53);
INSERT INTO "communes" VALUES('44','Pornichet','57',10451,9689,12.67,'-5196','52518',0,44);
INSERT INTO "communes" VALUES('44','Lège','15',4290,3588,63.32,'-4372','52095',18,74);
INSERT INTO "communes" VALUES('44','Chauvé','41',2515,1702,40.98,'-4803','52390',0,62);
INSERT INTO "communes" VALUES('44','Saint-Lumine-de-Coutais','42',1891,1333,17.64,'-4514','52283',1,48);
INSERT INTO "communes" VALUES('44','Vieillevigne','01',3905,3263,51.76,'-4189','52190',21,66);
INSERT INTO "communes" VALUES('44','Riaillé','33',2127,1722,50.02,'-4035','52799',17,88);
INSERT INTO "communes" VALUES('44','Moutiers-en-Retz','05',1316,908,9.58,'-4820','52293',0,39);
INSERT INTO "communes" VALUES('44','Saint-Julien-de-Vouvantes','37',924,879,25.6,'-3972','52935',47,99);
INSERT INTO "communes" VALUES('44','Saint-Hilaire-de-Chaléons','05',1967,1551,34.98,'-4668','52337',1,32);
INSERT INTO "communes" VALUES('44','Saint-Gildas-des-Bois','36',3454,3062,33.42,'-4861','52796',1,74);
INSERT INTO "communes" VALUES('44','<NAME>-Heulin','44',3045,1859,13.47,'-4085','52418',2,37);
INSERT INTO "communes" VALUES('44','Sainte-Reine-de-Bretagne','31',2135,1682,19.73,'-5033','52712',0,37);
INSERT INTO "communes" VALUES('44','Petit-Mars','27',3462,2438,25.97,'-4213','52660',2,43);
INSERT INTO "communes" VALUES('44','Vertou','46',21443,20261,35.68,'-4231','52409',1,56);
INSERT INTO "communes" VALUES('44','La Meilleraye-de-Bretagne','19',1345,1028,27.63,'-4153','52844',29,91);
INSERT INTO "communes" VALUES('44','Nantes','99',284970,270343,65.19,'-4323','52464',2,52);
INSERT INTO "communes" VALUES('44','Rougé','34',2253,2141,56.32,'-4205','53092',39,109);
INSERT INTO "communes" VALUES('44','Sainte-Luce-sur-Loire','06',11907,11263,11.45,'-4248','52500',2,36);
INSERT INTO "communes" VALUES('44','Saint-Molf','13',2324,1500,22.82,'-5290','52657',0,30);
INSERT INTO "communes" VALUES('44','Saint-Aignan-Grandlieu','04',3506,3478,17.94,'-4408','52360',0,29);
INSERT INTO "communes" VALUES('44','Mésanger','02',4394,3135,49.75,'-3964','52704',7,76);
INSERT INTO "communes" VALUES('44','Batz-sur-Mer','10',3071,3051,9.27,'-5352','52530',0,21);
INSERT INTO "communes" VALUES('44','Moisdon-la-Rivière','19',1920,1734,50.43,'-4121','52913',28,79);
INSERT INTO "communes" VALUES('44','Cheix-en-Retz','30',844,530,8.34,'-4613','52424',0,27);
INSERT INTO "communes" VALUES('44','<NAME>','10',4050,4267,4.5,'-5385','52548',0,20);
INSERT INTO "communes" VALUES('44','Rezé','97',38425,35518,13.78,'-4340','52434',1,42);
INSERT INTO "communes" VALUES('44','Saint-Nicolas-de-Redon','40',3109,2802,22.32,'-4892','52938',0,73);
INSERT INTO "communes" VALUES('44','Châteaubriant','08',12022,12065,33.62,'-4125','53019',48,107);
INSERT INTO "communes" VALUES('44','Saint-Philbert-de-Grand-Lieu','42',8061,6251,58.81,'-4418','52261',0,51);
INSERT INTO "communes" VALUES('44','Chéméré','05',2259,1585,37.31,'-4724','52358',2,60);
INSERT INTO "communes" VALUES('44','Pierric','12',943,783,27.3,'-4526','52985',2,78);
INSERT INTO "communes" VALUES('44','Aigrefeuille-sur-Maine','01',3320,2152,14.58,'-4152','52307',2,56);
INSERT INTO "communes" VALUES('44','<NAME>','17',913,673,9.41,'-3952','52480',50,106);
INSERT INTO "communes" VALUES('44','Jans','11',1098,991,33.21,'-4389','52913',13,56);
INSERT INTO "communes" VALUES('44','Héric','27',5276,3990,73.93,'-4431','52681',17,66);
INSERT INTO "communes" VALUES('44','Plessé','40',4631,3414,104.38,'-4693','52824',1,66);
INSERT INTO "communes" VALUES('44','Barbechat','17',1284,1061,11.76,'-4025','52531',7,84);
INSERT INTO "communes" VALUES('44','Anetz','02',1910,1368,14.83,'-3821','52647',7,32);
INSERT INTO "communes" VALUES('44','Bouaye','04',5958,5252,13.83,'-4473','52382',0,34);
INSERT INTO "communes" VALUES('44','Saint-Étienne-de-Mer-Morte','18',1483,1003,27.33,'-4532','52144',9,47);
INSERT INTO "communes" VALUES('44','Guérande','13',15534,13655,81.44,'-5295','52587',0,60);
INSERT INTO "communes" VALUES('44','<NAME>','05',2564,2141,6.09,'-4860','52313',0,47);
INSERT INTO "communes" VALUES('44','Massérac','12',643,454,18.78,'-4723','52970',0,55);
INSERT INTO "communes" VALUES('44','Noyal-sur-Brutz','34',582,481,7.71,'-4092','53085',64,112);
INSERT INTO "communes" VALUES('44','Soulvache','34',397,402,11.27,'-4233','53144',37,109);
INSERT INTO "communes" VALUES('44','Lavau-sur-Loire','43',758,615,16.22,'-4781','52563',0,15);
INSERT INTO "communes" VALUES('44','Sainte-Anne-sur-Brivet','31',2588,1925,25.99,'-4822','52733',0,37);
INSERT INTO "communes" VALUES('44','Saint-Joachim','31',4046,3773,86.22,'-5041','52647',0,9);
INSERT INTO "communes" VALUES('44','Saint-Colomban','42',3129,2028,35.72,'-4355','52232',2,37);
INSERT INTO "communes" VALUES('44','<NAME>-Blanche','02',1131,846,14.82,'-3863','52712',7,84);
INSERT INTO "communes" VALUES('44','Touvois','15',1627,1302,39.21,'-4466','52114',18,61);
INSERT INTO "communes" VALUES('44','Lusanger','11',1019,947,35.38,'-4361','52979',21,72);
INSERT INTO "communes" VALUES('44','Ancenis','02',7551,7009,20.07,'-3905','52636',5,41);
INSERT INTO "communes" VALUES('44','Abbaretz','28',1916,1509,61.76,'-4298','52836',26,91);
INSERT INTO "communes" VALUES('44','Saint-Lumine-de-Clisson','09',1959,1348,18.26,'-4082','52315',2,61);
INSERT INTO "communes" VALUES('44','Conquereuil','12',1046,955,32.87,'-4542','52916',7,57);
INSERT INTO "communes" VALUES('44','Varades','45',3514,3193,45.82,'-3740','52649',7,74);
INSERT INTO "communes" VALUES('44','Nort-sur-Erdre','27',7781,5881,66.56,'-4261','52711',2,73);
INSERT INTO "communes" VALUES('44','Saint-Brevin-les-Pins','29',12248,9608,19.29,'-5004','52496',0,39);
INSERT INTO "communes" VALUES('44','Besné','31',2646,2029,17.54,'-4920','52664',0,16);
INSERT INTO "communes" VALUES('44','La Plaine-sur-Mer','32',3835,2513,16.39,'-5029','52375',0,38);
INSERT INTO "communes" VALUES('44','Crossac','31',2739,2145,25.85,'-5005','52679',0,22);
INSERT INTO "communes" VALUES('44','Bouée','43',860,661,21.34,'-4718','52579',0,28);
INSERT INTO "communes" VALUES('44','Vigneux-de-Bretagne','35',5438,4712,54.68,'-4527','52585',24,92);
INSERT INTO "communes" VALUES('44','Le Temple-de-Bretagne','35',1850,1557,1.6,'-4585','52587',77,90);
INSERT INTO "communes" VALUES('44','Saint-Mars-de-Coutais','18',2505,1859,34.67,'-4525','52347',0,38);
INSERT INTO "communes" VALUES('44','Mouais','11',388,259,9.93,'-4423','52995',9,61);
INSERT INTO "communes" VALUES('44','Gétigné','09',3397,3074,23.97,'-3984','52306',13,97);
INSERT INTO "communes" VALUES('44','<NAME>','57',16040,15833,22.19,'-5254','52540',1,55);
INSERT INTO "communes" VALUES('44','Vritz','38',729,803,32.89,'-3785','52869',35,92);
INSERT INTO "communes" VALUES('44','Montbert','01',2976,2293,28.24,'-4250','52286',7,51);
INSERT INTO "communes" VALUES('44','Fégréac','40',2278,1994,44.18,'-4868','52872',0,62);
INSERT INTO "communes" VALUES('44','Saint-Aubin-des-Châteaux','08',1615,1314,47.56,'-4247','53022',32,92);
INSERT INTO "communes" VALUES('44','Maumusson','38',1011,810,24.56,'-3824','52759',27,84);
INSERT INTO "communes" VALUES('44','<NAME>','30',4382,3777,30.65,'-4545','52443',0,27);
INSERT INTO "communes" VALUES('44','<NAME>','44',2948,2394,11.75,'-4080','52376',2,52);
INSERT INTO "communes" VALUES('44','<NAME>','44',1544,1089,18.17,'-3903','52424',42,101);
INSERT INTO "communes" VALUES('44','Marsac-sur-Don','12',1447,1200,27.68,'-4463','52884',11,95);
INSERT INTO "communes" VALUES('44','Mauves-sur-Loire','06',3033,2408,14.75,'-4144','52551',1,84);
INSERT INTO "communes" VALUES('44','<NAME>','43',2778,2256,24.82,'-4787','52636',0,77);
INSERT INTO "communes" VALUES('44','Nozay','28',3835,3156,57.7,'-4402','52849',13,96);
INSERT INTO "communes" VALUES('44','Saffré','28',3537,2678,57.46,'-4350','52780',17,78);
INSERT INTO "communes" VALUES('44','Issé','19',1827,1776,38.66,'-4208','52916',22,76);
INSERT INTO "communes" VALUES('44','La Chapelle-sur-Erdre','07',17300,16387,33.42,'-4321','52555',1,57);
INSERT INTO "communes" VALUES('44','La Haie-Fouassière','59',4358,3337,11.81,'-4151','52395',2,62);
INSERT INTO "communes" VALUES('44','Saint-Nazaire','98',67031,65868,46.79,'-5051','52533',0,47);
INSERT INTO "communes" VALUES('44','Haute-Goulaine','59',5530,4930,20.59,'-4183','52443',0,56);
INSERT INTO "communes" VALUES('44','Port-Saint-Père','30',2724,2141,32.57,'-4539','52370',0,52);
INSERT INTO "communes" VALUES('44','Le Bignon','01',3309,2583,27.54,'-4252','52332',3,58);
INSERT INTO "communes" VALUES('44','Campbon','43',3805,2899,49.82,'-4783','52680',3,80);
INSERT INTO "communes" VALUES('44','Le Pin','38',731,602,24.95,'-3878','52877',39,91);
INSERT INTO "communes" VALUES('44','Saint-Mars-la-Jaille','38',2445,2195,20.06,'-3912','52806',22,88);
INSERT INTO "communes" VALUES('44','Belligné','45',1765,1453,32.8,'-3738','52742',47,94);
INSERT INTO "communes" VALUES('44','Fresnay-en-Retz','05',1235,859,20.49,'-4681','52250',1,42);
INSERT INTO "communes" VALUES('44','Louisfert','19',898,796,18.16,'-4188','52972',39,87);
INSERT INTO "communes" VALUES('45','<NAME>','11',977,772,23.96,'621','53405',97,143);
INSERT INTO "communes" VALUES('45','Bouzy-la-Forêt','06',1215,866,37.47,'47','53168',113,142);
INSERT INTO "communes" VALUES('45','Amilly','32',11588,11497,40.26,'482','53304',86,139);
INSERT INTO "communes" VALUES('45','Quiers-sur-Bézonde','04',1173,970,16.61,'112','53332',104,135);
INSERT INTO "communes" VALUES('45','Jargeau','15',4488,3981,14.66,'-235','53183',97,108);
INSERT INTO "communes" VALUES('45','Givraines','29',378,306,11.26,'35','53498',95,127);
INSERT INTO "communes" VALUES('45','Saint-Denis-de-l''Hôtel','06',2925,2621,25.45,'-230','53193',97,124);
INSERT INTO "communes" VALUES('45','Montliard','03',224,175,8.99,'67','53355',104,147);
INSERT INTO "communes" VALUES('45','Coullons','14',2451,2272,78.97,'173','52912',130,205);
INSERT INTO "communes" VALUES('45','Barville-en-Gâtinais','03',305,198,10.29,'73','53458',99,118);
INSERT INTO "communes" VALUES('45','Escrignelles','05',64,78,14.04,'539','53017',159,176);
INSERT INTO "communes" VALUES('45','Pannes','33',3379,2908,20.84,'367','53354',83,107);
INSERT INTO "communes" VALUES('45','Saint-Brisson-sur-Loire','14',1029,1003,21.86,'385','52942',122,208);
INSERT INTO "communes" VALUES('45','Sennely','13',651,524,49.32,'-208','52976',114,144);
INSERT INTO "communes" VALUES('45','Mérinville','11',164,112,11.84,'672','53425',127,149);
INSERT INTO "communes" VALUES('45','Nangeville','17',116,101,8.59,'-16','53677',109,142);
INSERT INTO "communes" VALUES('45','Ouzouer-sous-Bellegarde','04',283,259,11.57,'145','53326',99,125);
INSERT INTO "communes" VALUES('45','Châtillon-le-Roi','26',277,274,4.54,'-255','53515',118,136);
INSERT INTO "communes" VALUES('45','Gémigny','28',223,160,14.17,'-713','53293',114,129);
INSERT INTO "communes" VALUES('45','Rouvray-Sainte-Croix','28',139,131,9.47,'-671','53399',119,133);
INSERT INTO "communes" VALUES('45','Tavers','02',1334,1217,22.62,'-804','53065',75,119);
INSERT INTO "communes" VALUES('45','Louzouer','11',266,277,11.23,'605','53376',112,138);
INSERT INTO "communes" VALUES('45','Château-Renard','07',2280,2389,40.34,'657','53256',104,188);
INSERT INTO "communes" VALUES('45','Nibelle','03',1045,752,27.18,'-10','53359',117,170);
INSERT INTO "communes" VALUES('45','<NAME>','13',7127,6781,86.12,'-439','53019',93,137);
INSERT INTO "communes" VALUES('45','Tournoisis','28',371,308,14.94,'-785','53340',117,131);
INSERT INTO "communes" VALUES('45','Bou','38',902,845,6.29,'-321','53193',97,102);
INSERT INTO "communes" VALUES('45','Bucy-Saint-Liphard','28',205,217,17.84,'-635','53262',105,131);
INSERT INTO "communes" VALUES('45','Audeville','17',177,161,12.71,'-109','53643',120,137);
INSERT INTO "communes" VALUES('45','Ouzouer-des-Champs','16',280,275,11.32,'411','53201',102,125);
INSERT INTO "communes" VALUES('45','Lombreuil','32',306,240,7.56,'327','53268',94,107);
INSERT INTO "communes" VALUES('45','Ascoux','29',913,786,6.75,'-99','53476',107,121);
INSERT INTO "communes" VALUES('45','Sceaux-du-Gâtinais','12',620,492,31.72,'289','53450',77,101);
INSERT INTO "communes" VALUES('45','Sermaises','17',1593,1594,21.25,'-146','53663',104,139);
INSERT INTO "communes" VALUES('45','Ladon','04',1342,1104,13.75,'225','53336',89,108);
INSERT INTO "communes" VALUES('45','Bricy','28',540,551,12.66,'-617','53332',116,131);
INSERT INTO "communes" VALUES('45','Sury-aux-Bois','06',787,507,38,'6','53295',109,160);
INSERT INTO "communes" VALUES('45','Rebréchien','20',1363,1168,19.19,'-324','53320',114,141);
INSERT INTO "communes" VALUES('45','Jouy-le-Potier','10',1324,1326,50.4,'-583','53050',94,119);
INSERT INTO "communes" VALUES('45','Corbeilles','12',1490,1463,32.62,'236','53414',79,96);
INSERT INTO "communes" VALUES('45','Marigny-les-Usages','38',1140,1172,9.66,'-356','53286',103,138);
INSERT INTO "communes" VALUES('45','Jouy-en-Pithiverais','26',249,241,15.86,'-248','53490',109,137);
INSERT INTO "communes" VALUES('45','Cortrat','08',90,94,11.03,'476','53218',95,132);
INSERT INTO "communes" VALUES('45','Mainvilliers','17',237,234,10.3,'-63','53667',117,140);
INSERT INTO "communes" VALUES('45','Champoulet','05',47,69,9.36,'647','52953',169,211);
INSERT INTO "communes" VALUES('45','<NAME>','18',1039,818,12.23,'-761','53160',99,116);
INSERT INTO "communes" VALUES('45','Briare','05',5710,5989,45.41,'447','52931',122,189);
INSERT INTO "communes" VALUES('45','Varennes-Changy','16',1564,1232,29.77,'360','53184',103,154);
INSERT INTO "communes" VALUES('45','Batilly-en-Puisaye','05',112,110,17.35,'608','52902',155,211);
INSERT INTO "communes" VALUES('45','Cepoy','33',2347,2063,8.52,'445','53385',77,114);
INSERT INTO "communes" VALUES('45','Dordives','12',2976,2590,15.18,'479','53493',67,115);
INSERT INTO "communes" VALUES('45','Adon','05',179,198,24.65,'510','53070',137,176);
INSERT INTO "communes" VALUES('45','Nevoy','14',1149,1019,30.75,'270','53015',117,160);
INSERT INTO "communes" VALUES('45','Dammarie-sur-Loing','08',530,468,20.94,'604','53093',126,177);
INSERT INTO "communes" VALUES('45','Coinces','28',556,437,21.63,'-663','53345',114,133);
INSERT INTO "communes" VALUES('45','Saint-Germain-des-Prés','07',1881,1709,26.18,'567','53282',95,148);
INSERT INTO "communes" VALUES('45','Coudroy','16',348,274,14.73,'146','53231',100,136);
INSERT INTO "communes" VALUES('45','Outarville','26',1433,1443,46.61,'-351','53568',120,139);
INSERT INTO "communes" VALUES('45','Montbarrois','03',272,274,6.01,'68','53384',107,142);
INSERT INTO "communes" VALUES('45','Puiseaux','30',3297,3041,20.32,'150','53562',82,141);
INSERT INTO "communes" VALUES('45','La Chapelle-Saint-Sépulcre','11',262,250,6.21,'564','53353',102,137);
INSERT INTO "communes" VALUES('45','Neuvy-en-Sullias','15',1198,935,25.28,'-101','53105',106,149);
INSERT INTO "communes" VALUES('45','Saint-Benoît-sur-Loire','27',2057,1877,18.27,'-34','53123',105,115);
INSERT INTO "communes" VALUES('45','Douchy','07',1012,956,23.51,'795','53270',121,190);
INSERT INTO "communes" VALUES('45','Escrennes','29',709,650,11.55,'-164','53481',102,123);
INSERT INTO "communes" VALUES('45','Saint-Florent','31',464,414,37.78,'156','52990',128,162);
INSERT INTO "communes" VALUES('45','Paucourt','33',894,860,20.2,'508','53373',82,127);
INSERT INTO "communes" VALUES('45','Presnoy','16',245,163,7.72,'243','53285',92,110);
INSERT INTO "communes" VALUES('45','Bouzonville-aux-Bois','29',420,344,7.54,'-113','53448',108,118);
INSERT INTO "communes" VALUES('45','Thimory','16',728,513,12.37,'293','53246',97,117);
INSERT INTO "communes" VALUES('45','Tigy','15',2271,1959,47.29,'-154','53106',104,149);
INSERT INTO "communes" VALUES('45','Chanteau','34',1281,1135,28.85,'-409','53294',109,138);
INSERT INTO "communes" VALUES('45','Rouvres-Saint-Jean','17',282,233,10.1,'-139','53692',99,142);
INSERT INTO "communes" VALUES('45','Traînou','20',3105,2794,33.68,'-257','53304',107,144);
INSERT INTO "communes" VALUES('45','Fréville-du-Gâtinais','04',182,170,9.77,'120','53360',97,131);
INSERT INTO "communes" VALUES('45','Châtillon-Coligny','08',1983,1945,25.53,'566','53136',115,179);
INSERT INTO "communes" VALUES('45','Chevry-sous-le-Bignon','12',231,202,7.4,'623','53490',97,133);
INSERT INTO "communes" VALUES('45','Crottes-en-Pithiverais','26',330,245,13.65,'-300','53472',122,137);
INSERT INTO "communes" VALUES('45','Montcorbon','07',460,432,26.61,'816','53300',144,199);
INSERT INTO "communes" VALUES('45','Échilleuses','30',374,323,12.43,'118','53516',91,129);
INSERT INTO "communes" VALUES('45','Neuville-aux-Bois','20',4113,3876,31.74,'-314','53411',118,142);
INSERT INTO "communes" VALUES('45','Baccon','18',717,629,33.02,'-787','53212',99,131);
INSERT INTO "communes" VALUES('45','Dadonville','29',2259,1873,18.21,'-93','53492',96,125);
INSERT INTO "communes" VALUES('45','Saint-Jean-de-Braye','36',19057,17757,13.7,'-406','53236',95,127);
INSERT INTO "communes" VALUES('45','Égry','03',341,264,7.39,'111','53448',95,115);
INSERT INTO "communes" VALUES('45','Ardon','13',1113,849,53.65,'-514','53087',98,123);
INSERT INTO "communes" VALUES('45','Chapelon','04',282,234,6.52,'269','53374',84,94);
INSERT INTO "communes" VALUES('45','Chambon-la-Forêt','03',840,624,17.16,'-46','53396',104,168);
INSERT INTO "communes" VALUES('45','Sougy','01',874,805,28.25,'-607','53393',121,134);
INSERT INTO "communes" VALUES('45','Gien','14',14684,15321,67.86,'325','52988',117,190);
INSERT INTO "communes" VALUES('45','Courcelles','03',285,252,6.3,'-21','53441',97,118);
INSERT INTO "communes" VALUES('45','Villemandeur','32',6450,5666,11.46,'414','53323',84,99);
INSERT INTO "communes" VALUES('45','Mardié','38',2560,2372,17.28,'-311','53208',97,124);
INSERT INTO "communes" VALUES('45','Saint-Loup-de-Gonois','11',111,102,6.16,'649','53399',107,148);
INSERT INTO "communes" VALUES('45','Gy-les-Nonains','07',638,607,20.13,'572','53275',96,147);
INSERT INTO "communes" VALUES('45','Bouilly-en-Gâtinais','29',344,299,15.96,'-58','53440',98,122);
INSERT INTO "communes" VALUES('45','Cerdon','31',1039,1009,67.07,'27','52929',132,172);
INSERT INTO "communes" VALUES('45','Vannes-sur-Cosson','15',600,522,35.65,'-138','53015',119,148);
INSERT INTO "communes" VALUES('45','Cernoy-en-Berry','09',457,441,28.23,'361','52822',176,266);
INSERT INTO "communes" VALUES('45','Treilles-en-Gâtinais','12',297,273,13.97,'359','53421',85,98);
INSERT INTO "communes" VALUES('45','Léouville','26',66,42,4.28,'-276','53582',123,136);
INSERT INTO "communes" VALUES('45','Cercottes','01',1232,737,24.24,'-504','53317',119,133);
INSERT INTO "communes" VALUES('45','Orville','30',109,110,7.19,'113','53603',72,115);
INSERT INTO "communes" VALUES('45','Moulon','04',188,179,9.4,'283','53355',87,109);
INSERT INTO "communes" VALUES('45','Dimancheville','30',112,88,2.35,'105','53595',77,133);
INSERT INTO "communes" VALUES('45','Saint-Gondon','14',1099,875,22.4,'228','52999',117,164);
INSERT INTO "communes" VALUES('45','Fontenay-sur-Loing','12',1713,1424,9.73,'486','53449',70,109);
INSERT INTO "communes" VALUES('45','Auvilliers-en-Gâtinais','04',352,306,20.61,'181','53294',96,126);
INSERT INTO "communes" VALUES('45','Ervauville','11',565,389,12.54,'717','53433',134,164);
INSERT INTO "communes" VALUES('45','Saint-Firmin-sur-Loire','09',502,553,24.76,'440','52918',126,234);
INSERT INTO "communes" VALUES('45','Seichebrières','06',173,127,14.84,'-75','53299',120,168);
INSERT INTO "communes" VALUES('45','Ouzouer-sur-Loire','27',2765,2519,34.27,'158','53074',112,154);
INSERT INTO "communes" VALUES('45','Charsonville','18',588,582,24.55,'-841','53254',110,131);
INSERT INTO "communes" VALUES('45','<NAME>','14',138,143,19.37,'321','53153',123,177);
INSERT INTO "communes" VALUES('45','Chaingy','18',3531,2868,21.69,'-626','53204',82,124);
INSERT INTO "communes" VALUES('45','Saint-Père-sur-Loire','31',1040,1005,10.69,'38','53083',107,117);
INSERT INTO "communes" VALUES('45','Thignonville','17',330,321,9.16,'-181','53645',112,132);
INSERT INTO "communes" VALUES('45','Beaugency','02',7659,7112,16.45,'-783','53087',78,118);
INSERT INTO "communes" VALUES('45','Coudray','17',404,368,12.42,'35','53636',94,141);
INSERT INTO "communes" VALUES('45','Pithiviers','29',8804,9235,6.94,'-94','53524',97,130);
INSERT INTO "communes" VALUES('45','<NAME>-sur-Essonne','30',366,289,9.19,'44','53541',87,129);
INSERT INTO "communes" VALUES('45','Chevilly','01',2495,2383,41.76,'-514','53366',117,138);
INSERT INTO "communes" VALUES('45','Villamblain','28',275,213,25.95,'-872','53345',119,135);
INSERT INTO "communes" VALUES('45','Montargis','19',14649,15025,4.46,'440','53330',82,112);
INSERT INTO "communes" VALUES('45','Préfontaines','12',461,446,11.75,'394','53454',77,102);
INSERT INTO "communes" VALUES('45','Thou','05',237,258,15.16,'635','52867',143,196);
INSERT INTO "communes" VALUES('45','Batilly-en-Gâtinais','03',404,350,10.32,'50','53415',106,120);
INSERT INTO "communes" VALUES('45','Baule','02',2043,1657,12.11,'-740','53123',81,116);
INSERT INTO "communes" VALUES('45','Bougy-lez-Neuville','20',189,177,16.73,'-344','53378',123,144);
INSERT INTO "communes" VALUES('45','Ramoulu','17',259,218,11.96,'-48','53584',91,135);
INSERT INTO "communes" VALUES('45','Courcy-aux-Loges','29',434,350,20.9,'-138','53405',114,150);
INSERT INTO "communes" VALUES('45','Montereau','16',622,547,50.12,'262','53174',106,175);
INSERT INTO "communes" VALUES('45','Griselles','12',801,620,30.32,'547','53421',87,133);
INSERT INTO "communes" VALUES('45','Vitry-aux-Loges','06',1850,1725,44.06,'-78','53267',107,138);
INSERT INTO "communes" VALUES('45','Greneville-en-Beauce','26',662,585,22.47,'-249','53535',114,137);
INSERT INTO "communes" VALUES('45','Sully-la-Chapelle','20',416,317,26.17,'-171','53306',106,147);
INSERT INTO "communes" VALUES('45','Corquilleroy','33',2621,2109,13.96,'404','53383',80,102);
INSERT INTO "communes" VALUES('45','Bazoches-sur-le-Betz','11',985,671,15.38,'722','53481',120,152);
INSERT INTO "communes" VALUES('45','Meung-sur-Loire','18',6086,6254,20.35,'-709','53143',82,113);
INSERT INTO "communes" VALUES('45','Vieilles-Maisons-sur-Joudry','16',600,462,16.46,'120','53207',113,141);
INSERT INTO "communes" VALUES('45','Saint-Maurice-sur-Fessard','32',1160,887,15.38,'315','53325',84,117);
INSERT INTO "communes" VALUES('45','Oussoy-en-Gâtinais','16',406,339,23.23,'339','53230',94,137);
INSERT INTO "communes" VALUES('45','Rozières-en-Beauce','18',183,157,9.17,'-705','53269',107,124);
INSERT INTO "communes" VALUES('45','Aschères-le-Marché','26',1191,1050,20.9,'-365','53453',121,133);
INSERT INTO "communes" VALUES('45','Guilly','31',666,540,17.03,'-67','53116',102,119);
INSERT INTO "communes" VALUES('45','Marsainvilliers','29',302,307,10.82,'-58','53579',119,132);
INSERT INTO "communes" VALUES('45','Ruan','01',232,235,16.26,'-442','53457',119,132);
INSERT INTO "communes" VALUES('45','Grangermont','30',209,175,3.93,'100','53544',91,128);
INSERT INTO "communes" VALUES('45','Juranville','03',485,403,15.23,'164','53401',85,110);
INSERT INTO "communes" VALUES('45','Courtemaux','11',289,221,12.19,'664','53389',110,154);
INSERT INTO "communes" VALUES('45','Augerville-la-Rivière','30',236,193,4.03,'111','53613',72,120);
INSERT INTO "communes" VALUES('45','<NAME>','05',793,749,35.23,'460','53051',144,186);
INSERT INTO "communes" VALUES('45','Semoy','36',3107,2877,7.78,'-431','53258',103,134);
INSERT INTO "communes" VALUES('45','Faverelles','05',159,198,18.92,'660','52861',156,228);
INSERT INTO "communes" VALUES('45','Nesploy','04',387,298,12.87,'28','53329',112,144);
INSERT INTO "communes" VALUES('45','Chilleurs-aux-Bois','29',1841,1705,52.22,'-224','53414',114,150);
INSERT INTO "communes" VALUES('45','Engenville','17',507,393,18.1,'-100','53598',119,136);
INSERT INTO "communes" VALUES('45','Gidy','01',1585,1482,23.91,'-555','53319',117,128);
INSERT INTO "communes" VALUES('45','Saint-Lyé-la-Forêt','20',1098,949,27.22,'-394','53378',120,137);
INSERT INTO "communes" VALUES('45','Châlette-sur-Loing','33',13050,13967,13.13,'444','53346',77,114);
INSERT INTO "communes" VALUES('45','Chuelles','07',1136,914,30.82,'699','53337',138,181);
INSERT INTO "communes" VALUES('45','Oison','26',130,127,12.09,'-410','53486',122,139);
INSERT INTO "communes" VALUES('45','Sandillon','15',3865,3402,41.31,'-338','53162',95,124);
INSERT INTO "communes" VALUES('45','Villeneuve-sur-Conie','28',204,195,17.97,'-762','53383',112,134);
INSERT INTO "communes" VALUES('45','Bonnée','27',670,658,11.61,'51','53108',111,118);
INSERT INTO "communes" VALUES('45','Saint-Martin-sur-Ocre','14',1244,1158,15.79,'357','52955',122,191);
INSERT INTO "communes" VALUES('45','Choux','14',500,449,33.36,'378','53109',123,177);
INSERT INTO "communes" VALUES('45','<NAME>','39',9658,8946,8.96,'-552','53211',87,113);
INSERT INTO "communes" VALUES('45','Autry-le-Châtel','09',1017,1015,50.56,'295','52886',141,236);
INSERT INTO "communes" VALUES('45','Dammarie-en-Puisaye','05',180,155,25.89,'596','52919',152,192);
INSERT INTO "communes" VALUES('45','Laas','29',203,165,6.6,'-133','53467',112,119);
INSERT INTO "communes" VALUES('45','Pierrefitte-ès-Bois','09',286,318,27.18,'423','52787',190,281);
INSERT INTO "communes" VALUES('45','Donnery','38',2533,2020,21.77,'-258','53237',99,124);
INSERT INTO "communes" VALUES('45','Boisseaux','26',422,253,7.19,'-387','53619',124,140);
INSERT INTO "communes" VALUES('45','Beaulieu-sur-Loire','09',1785,1689,48.83,'534','52825',130,260);
INSERT INTO "communes" VALUES('45','Morville-en-Beauce','17',187,178,11.02,'-182','53611',115,134);
INSERT INTO "communes" VALUES('45','Briarres-sur-Essonne','30',537,532,8.23,'101','53587',77,135);
INSERT INTO "communes" VALUES('45','Bordes','27',1777,1445,24.02,'73','53125',112,150);
INSERT INTO "communes" VALUES('45','Beaune-la-Rolande','03',2018,2097,20.55,'103','53411',91,119);
INSERT INTO "communes" VALUES('45','Saint-Aignan-le-Jaillard','31',573,561,24.31,'114','53047',112,159);
INSERT INTO "communes" VALUES('45','Foucherolles','11',295,169,9.8,'751','53437',142,164);
INSERT INTO "communes" VALUES('45','Montcresson','08',1299,1266,21,'523','53229',94,140);
INSERT INTO "communes" VALUES('45','Fleury-les-Aubrais','34',21171,20702,10.12,'-462','53258',109,133);
INSERT INTO "communes" VALUES('45','Ouzouer-sur-Trézée','05',1276,1208,61.63,'524','52970',137,185);
INSERT INTO "communes" VALUES('45','Intville-la-Guétard','17',123,99,4.88,'-137','53623',120,134);
INSERT INTO "communes" VALUES('45','<NAME>','07',779,613,19.56,'620','53346',112,156);
INSERT INTO "communes" VALUES('45','Bazoches-les-Gallerandes','26',1452,1348,36.73,'-326','53514',120,137);
INSERT INTO "communes" VALUES('45','Mareau-aux-Prés','10',1290,1140,13.34,'-597','53163',82,103);
INSERT INTO "communes" VALUES('45','Sainte-Geneviève-des-Bois','08',1081,990,40.74,'535','53131',115,166);
INSERT INTO "communes" VALUES('45','Bonny-sur-Loire','05',2049,1924,25.8,'560','52845',130,189);
INSERT INTO "communes" VALUES('45','Lion-en-Beauce','01',135,97,7,'-447','53483',121,137);
INSERT INTO "communes" VALUES('45','Girolles','12',676,581,13.9,'421','53402',76,104);
INSERT INTO "communes" VALUES('45','Isdes','31',590,476,43.89,'-90','52969',129,157);
INSERT INTO "communes" VALUES('45','Épieds-en-Beauce','18',1429,1035,40.22,'-799','53278',114,129);
INSERT INTO "communes" VALUES('45','Lorris','16',2966,2674,44.91,'196','53210',114,173);
INSERT INTO "communes" VALUES('45','Viglain','31',897,835,39.99,'-38','53032',114,150);
INSERT INTO "communes" VALUES('45','Tivernon','26',238,224,12.61,'-451','53506',125,139);
INSERT INTO "communes" VALUES('45','Saint-Cyr-en-Val','40',3107,3249,44.23,'-408','53144',92,126);
INSERT INTO "communes" VALUES('45','Attray','26',214,195,16.74,'-249','53469',105,137);
INSERT INTO "communes" VALUES('45','Germigny-des-Prés','06',730,589,9.78,'-78','53162',102,112);
INSERT INTO "communes" VALUES('45','Guigneville','29',527,484,32.01,'-177','53562',117,141);
INSERT INTO "communes" VALUES('45','Ousson-sur-Loire','05',743,684,5.35,'501','52878',127,182);
INSERT INTO "communes" VALUES('45','Cléry-Saint-André','10',3255,2720,18.13,'-644','53135',84,107);
INSERT INTO "communes" VALUES('45','Césarville-Dossainville','17',220,251,19.06,'-67','53624',106,142);
INSERT INTO "communes" VALUES('45','Férolles','15',1175,1078,17.05,'-253','53150',99,107);
INSERT INTO "communes" VALUES('45','Saint-Martin-d''Abbat','06',1643,1223,38.97,'-76','53174',106,139);
INSERT INTO "communes" VALUES('45','Conflans-sur-Loing','32',359,359,9.14,'503','53280',90,134);
INSERT INTO "communes" VALUES('45','Chantecoq','11',524,405,15.93,'689','53391',115,167);
INSERT INTO "communes" VALUES('45','Triguères','07',1355,1158,35.78,'716','53266',112,192);
INSERT INTO "communes" VALUES('45','Boulay-les-Barres','28',1120,551,12.45,'-614','53311',118,131);
INSERT INTO "communes" VALUES('45','Ingrannes','20',521,395,38.98,'-137','53323',109,147);
INSERT INTO "communes" VALUES('45','Combleux','38',475,424,1.1,'-384','53222',95,110);
INSERT INTO "communes" VALUES('45','Manchecourt','17',641,588,16.23,'5','53598',107,138);
INSERT INTO "communes" VALUES('45','Nancray-sur-Rimarde','03',554,430,11.58,'-3','53410',102,131);
INSERT INTO "communes" VALUES('45','Yèvre-la-Ville','29',699,701,26.77,'-11','53495',92,127);
INSERT INTO "communes" VALUES('45','Chailly-en-Gâtinais','16',675,560,18.37,'229','53275',95,121);
INSERT INTO "communes" VALUES('45','Chécy','38',8208,7225,15.47,'-344','53215',95,116);
INSERT INTO "communes" VALUES('45','Saint-Michel','03',125,143,5.14,'47','53410',110,129);
INSERT INTO "communes" VALUES('45','Mézières-lez-Cléry','10',793,602,27.01,'-592','53132',91,108);
INSERT INTO "communes" VALUES('45','Thorailles','11',158,83,3.45,'624','53359',128,144);
INSERT INTO "communes" VALUES('45','Marcilly-en-Villette','13',1999,1899,62.66,'-350','53071',97,136);
INSERT INTO "communes" VALUES('45','Bucy-le-Roi','01',191,177,4.58,'-466','53400',121,128);
INSERT INTO "communes" VALUES('45','Montbouy','08',745,688,26.73,'537','53179',102,154);
INSERT INTO "communes" VALUES('45','Poilly-lez-Gien','14',2341,2189,33.29,'291','52975',117,182);
INSERT INTO "communes" VALUES('45','Autruy-sur-Juine','26',728,810,27.11,'-261','53640',92,137);
INSERT INTO "communes" VALUES('45','Huêtre','01',252,199,13.15,'-601','53354',116,134);
INSERT INTO "communes" VALUES('45','Ménestreau-en-Villette','13',1467,1382,53.62,'-349','52999',104,139);
INSERT INTO "communes" VALUES('45','Erceville','26',323,277,12.72,'-334','53599',110,137);
INSERT INTO "communes" VALUES('45','Breteau','05',73,82,16.45,'618','52981',157,189);
INSERT INTO "communes" VALUES('45','Rozoy-le-Vieil','11',391,305,8.14,'677','53472',118,147);
INSERT INTO "communes" VALUES('45','Chaussy','26',341,275,12.94,'-379','53520',126,135);
INSERT INTO "communes" VALUES('45','Boismorand','14',863,593,25.15,'425','53096',128,176);
INSERT INTO "communes" VALUES('45','Estouy','29',519,496,18.07,'-11','53541',87,131);
INSERT INTO "communes" VALUES('45','Ormes','39',3435,3051,18.15,'-573','53268',106,131);
INSERT INTO "communes" VALUES('45','Nogent-sur-Vernisson','08',2594,2448,33.27,'451','53163',109,150);
INSERT INTO "communes" VALUES('45','Villemoutiers','04',492,483,16.18,'247','53328',91,106);
INSERT INTO "communes" VALUES('45','Andonville','26',196,217,11.94,'-339','53634',112,139);
INSERT INTO "communes" VALUES('45','Chevillon-sur-Huillard','32',1308,1141,19.34,'321','53291',86,106);
INSERT INTO "communes" VALUES('45','Malesherbes','17',6190,5988,17.61,'76','53663',67,140);
INSERT INTO "communes" VALUES('45','Saran','39',15120,14801,19.65,'-507','53279',108,137);
INSERT INTO "communes" VALUES('45','Trinay','01',214,192,17.22,'-426','53428',120,132);
INSERT INTO "communes" VALUES('45','Desmonts','30',172,165,4.76,'178','53585',102,141);
INSERT INTO "communes" VALUES('45','Vimory','32',1123,1105,26.22,'390','53275',89,104);
INSERT INTO "communes" VALUES('45','Loury','20',2519,1990,34.36,'-279','53335',108,152);
INSERT INTO "communes" VALUES('45','Boiscommun','03',1147,1043,16.06,'52','53374',108,147);
INSERT INTO "communes" VALUES('45','Sigloy','15',664,532,9.46,'-123','53148',102,110);
INSERT INTO "communes" VALUES('45','<NAME>','12',282,261,12.83,'651','53498',112,141);
INSERT INTO "communes" VALUES('45','Bromeilles','30',318,292,14.75,'178','53540',89,131);
INSERT INTO "communes" VALUES('45','Saint-Sigismond','28',295,241,14.93,'-729','53312',117,125);
INSERT INTO "communes" VALUES('45','Villorceau','02',1158,902,9.5,'-821','53111',104,121);
INSERT INTO "communes" VALUES('45','Vrigny','29',778,597,16.14,'-104','53423',108,168);
INSERT INTO "communes" VALUES('45','Dry','10',1391,1191,22.64,'-692','53108',82,105);
INSERT INTO "communes" VALUES('45','Dampierre-en-Burly','27',1260,1110,47.44,'202','53068',117,161);
INSERT INTO "communes" VALUES('45','Vienne-en-Val','15',1887,1550,35.94,'-223','53112',99,142);
INSERT INTO "communes" VALUES('45','Bray-en-Val','27',1366,1045,22.32,'34','53144',107,147);
INSERT INTO "communes" VALUES('45','Gondreville','12',371,364,8.07,'353','53390',85,97);
INSERT INTO "communes" VALUES('45','Châtenoy','06',420,367,25.84,'67','53242',109,139);
INSERT INTO "communes" VALUES('45','Ferrières-en-Gâtinais','12',3395,3045,27.32,'504','53434',72,121);
INSERT INTO "communes" VALUES('45','Noyers','16',722,672,18.06,'208','53239',98,134);
INSERT INTO "communes" VALUES('45','Villereau','20',402,327,9.12,'-387','53410',120,132);
INSERT INTO "communes" VALUES('45','Langesse','14',79,66,8.97,'359','53134',119,151);
INSERT INTO "communes" VALUES('45','Montigny','26',250,221,5.36,'-249','53458',115,134);
INSERT INTO "communes" VALUES('45','Saint-Hilaire-sur-Puiseaux','16',166,163,11.34,'410','53224',96,110);
INSERT INTO "communes" VALUES('45','Mézières-en-Gâtinais','04',260,183,9.86,'170','53372',92,111);
INSERT INTO "communes" VALUES('45','Ligny-le-Ribault','13',1305,1121,59.21,'-616','52983',84,117);
INSERT INTO "communes" VALUES('45','Lion-en-Sullias','31',393,336,24.49,'170','53030',113,152);
INSERT INTO "communes" VALUES('45','Courtenay','11',3976,3444,50.13,'799','53377',137,186);
INSERT INTO "communes" VALUES('45','Charmont-en-Beauce','26',402,330,18.05,'-256','53591',106,134);
INSERT INTO "communes" VALUES('45','Cravant','02',949,833,33.91,'-848','53143',108,131);
INSERT INTO "communes" VALUES('45','Saint-Hilaire-Saint-Mesmin','35',2847,2351,14.12,'-557','53184',87,105);
INSERT INTO "communes" VALUES('45','Boynes','29',1266,1014,15.43,'26','53467',105,123);
INSERT INTO "communes" VALUES('45','<NAME>','28',115,90,7.06,'-805','53370',121,134);
INSERT INTO "communes" VALUES('45','Mignerette','12',357,298,6.21,'293','53395',81,93);
INSERT INTO "communes" VALUES('45','Vennecy','20',1408,1304,10.71,'-312','53282',106,135);
INSERT INTO "communes" VALUES('45','Huisseau-sur-Mauves','18',1638,1649,37.16,'-704','53214',95,121);
INSERT INTO "communes" VALUES('45','Mareau-aux-Bois','29',608,468,11.61,'-164','53447',107,122);
INSERT INTO "communes" VALUES('45','Pers-en-Gâtinais','11',225,202,10.69,'631','53465',105,137);
INSERT INTO "communes" VALUES('45','Boigny-sur-Bionne','38',2164,1888,7.53,'-363','53253',98,121);
INSERT INTO "communes" VALUES('45','Saint-Firmin-des-Bois','07',489,420,19.05,'639','53295',118,179);
INSERT INTO "communes" VALUES('45','Beauchamps-sur-Huillard','04',413,334,18.09,'129','53265',96,130);
INSERT INTO "communes" VALUES('45','Saint-Hilaire-les-Andrésis','11',976,750,25.71,'752','53393',123,177);
INSERT INTO "communes" VALUES('45','Chevannes','12',343,290,11.99,'581','53483',91,126);
INSERT INTO "communes" VALUES('45','Combreux','06',241,202,12.67,'-39','53284',115,147);
INSERT INTO "communes" VALUES('45','Orveau-Bellesauve','17',381,316,15.8,'-8','53647',103,139);
INSERT INTO "communes" VALUES('45','Nargis','12',1394,1104,22.27,'467','53457',67,109);
INSERT INTO "communes" VALUES('45','Pithiviers-le-Vieil','29',1828,1824,33.68,'-142','53514',98,132);
INSERT INTO "communes" VALUES('45','Courtempierre','12',243,203,13.3,'309','53448',77,98);
INSERT INTO "communes" VALUES('45','Mignères','12',317,323,5.12,'320','53385',83,95);
INSERT INTO "communes" VALUES('45','Solterre','32',500,470,9.8,'446','53244',96,115);
INSERT INTO "communes" VALUES('45','Labrosse','17',79,81,4.09,'62','53605',106,134);
INSERT INTO "communes" VALUES('45','Santeau','29',367,287,8.71,'-212','53451',111,125);
INSERT INTO "communes" VALUES('45','La Chapelle-sur-Aveyron','08',550,393,19.03,'584','53185',114,182);
INSERT INTO "communes" VALUES('45','Lorcy','03',546,483,16.75,'219','53395',85,99);
INSERT INTO "communes" VALUES('45','Saint-Ay','18',3161,2967,10.07,'-647','53176',82,108);
INSERT INTO "communes" VALUES('45','Ouvrouer-les-Champs','15',521,380,10.54,'-176','53147',100,108);
INSERT INTO "communes" VALUES('45','Saint-Aignan-des-Gués','06',342,285,3.84,'-18','53157',108,130);
INSERT INTO "communes" VALUES('45','Patay','28',2080,2027,13.8,'-712','53387',114,132);
INSERT INTO "communes" VALUES('45','Auxy','03',994,861,20.28,'153','53465',81,117);
INSERT INTO "communes" VALUES('45','Artenay','01',1827,1940,20.5,'-509','53425',117,129);
INSERT INTO "communes" VALUES('45','Saint-Loup-des-Vignes','03',441,407,8.86,'94','53379',97,141);
INSERT INTO "communes" VALUES('45','Mormant-sur-Vernisson','32',125,117,10.92,'445','53275',89,107);
INSERT INTO "communes" VALUES('45','Pannecières','17',118,116,7.02,'-211','53659',120,136);
INSERT INTO "communes" VALUES('45','Saint-Maurice-sur-Aveyron','08',873,769,53.76,'656','53168',127,203);
INSERT INTO "communes" VALUES('45','Boësses','30',390,351,13.13,'123','53501',91,128);
INSERT INTO "communes" VALUES('45','Lailly-en-Val','02',2639,2252,45.61,'-722','53078',78,115);
INSERT INTO "communes" VALUES('45','Bellegarde','04',1759,1559,4.93,'118','53321',105,136);
INSERT INTO "communes" VALUES('45','Coulmiers','18',535,559,14.28,'-748','53257',108,121);
INSERT INTO "communes" VALUES('45','Pressigny-les-Pins','08',454,383,11.91,'461','53201',106,125);
INSERT INTO "communes" VALUES('45','Melleroy','07',519,500,24.23,'684','53217',133,191);
INSERT INTO "communes" VALUES('45','Aillant-sur-Milleron','08',389,357,26.93,'659','53103',138,196);
INSERT INTO "communes" VALUES('45','<NAME>','16',349,300,13.43,'287','53214',99,131);
INSERT INTO "communes" VALUES('45','Bordeaux-en-Gâtinais','03',117,122,9.46,'212','53443',79,96);
INSERT INTO "communes" VALUES('45','Bondaroy','29',393,361,6.94,'-67','53529',95,129);
INSERT INTO "communes" VALUES('45','Sully-sur-Loire','31',5443,5903,43.6,'43','53072',107,151);
INSERT INTO "communes" VALUES('45','Darvoy','15',1869,1731,8.58,'-264','53175',98,103);
INSERT INTO "communes" VALUES('45','Saint-Jean-de-la-Ruelle','37',16631,16560,6.1,'-515','53237',90,121);
INSERT INTO "communes" VALUES('45','Feins-en-Gâtinais','05',50,44,11.89,'560','53051',150,179);
INSERT INTO "communes" VALUES('45','Saint-Pryvé-Saint-Mesmin','35',5188,5609,8.87,'-521','53201',87,99);
INSERT INTO "communes" VALUES('45','Saint-Jean-le-Blanc','40',8185,8485,7.66,'-466','53213',91,100);
INSERT INTO "communes" VALUES('45','Châtillon-sur-Loire','09',3132,2963,40.67,'462','52879',126,246);
INSERT INTO "communes" VALUES('45','Saint-Péravy-la-Colombe','28',688,581,18.96,'-707','53334',114,131);
INSERT INTO "communes" VALUES('45','Villevoques','33',205,214,5.06,'323','53366',88,114);
INSERT INTO "communes" VALUES('45','Ingré','39',7899,7450,20.82,'-569','53245',103,133);
INSERT INTO "communes" VALUES('45','Saint-Denis-en-Val','40',7162,7207,17.11,'-418','53197',93,99);
INSERT INTO "communes" VALUES('45','<NAME>','08',151,109,13.82,'731','53111',164,198);
INSERT INTO "communes" VALUES('45','Aulnay-la-Rivière','30',507,489,16.14,'47','53551',82,137);
INSERT INTO "communes" VALUES('45','Orléans','99',114167,113089,27.48,'-481','53225',90,124);
INSERT INTO "communes" VALUES('45','Villemurlin','31',584,537,48.95,'-1','52984',120,160);
INSERT INTO "communes" VALUES('45','Châteauneuf-sur-Loire','06',8005,7036,40.01,'-127','53184',100,131);
INSERT INTO "communes" VALUES('45','Ondreville-sur-Essonne','30',389,333,6.57,'79','53556',82,127);
INSERT INTO "communes" VALUES('45','Olivet','35',19583,19209,23.39,'-485','53181',89,109);
INSERT INTO "communes" VALUES('45','Messas','02',875,944,5.21,'-780','53120',100,116);
INSERT INTO "communes" VALUES('45','Fay-aux-Loges','06',3349,3023,26.48,'-219','53254',102,126);
INSERT INTO "communes" VALUES('45','Gaubertin','03',268,194,7.29,'96','53469',91,121);
INSERT INTO "communes" VALUES('46','Cornac','01',355,328,13.76,'-506','49899',142,528);
INSERT INTO "communes" VALUES('46','Rouffilhac','10',161,142,6.5,'-1023','49766',128,265);
INSERT INTO "communes" VALUES('46','Loubressac','24',520,431,23.75,'-593','49857',120,424);
INSERT INTO "communes" VALUES('46','Crégols','26',78,69,18.35,'-706','49396',129,368);
INSERT INTO "communes" VALUES('46','Arques','07',207,158,15.05,'-1206','49558',145,325);
INSERT INTO "communes" VALUES('46','Lavercantière','27',273,183,14.99,'-1131','49597',192,355);
INSERT INTO "communes" VALUES('46','Montbrun','04',116,101,8.34,'-484','49450',141,395);
INSERT INTO "communes" VALUES('46','Saint-Michel-Loubéjou','01',383,364,5.25,'-540','49883',136,293);
INSERT INTO "communes" VALUES('46','Parnac','19',390,371,5.77,'-1135','49433',100,296);
INSERT INTO "communes" VALUES('46','Puyjourdes','04',70,49,7.83,'-529','49342',251,401);
INSERT INTO "communes" VALUES('46','Pontcirq','06',158,151,8.94,'-1193','49498',120,305);
INSERT INTO "communes" VALUES('46','Trespoux-Rassiels','03',765,662,20.7,'-1073','49349',132,343);
INSERT INTO "communes" VALUES('46','Lauresses','15',283,296,23.73,'-237','49742',473,718);
INSERT INTO "communes" VALUES('46','Bretenoux','01',1355,1230,5.69,'-553','49905',129,245);
INSERT INTO "communes" VALUES('46','Mauroux','23',539,419,16.2,'-1433','49395',65,271);
INSERT INTO "communes" VALUES('46','Sainte-Alauzie','05',137,109,12.22,'-1135','49237',156,283);
INSERT INTO "communes" VALUES('46','Cézac','05',180,139,17.34,'-1111','49266',174,288);
INSERT INTO "communes" VALUES('46','Gintrac','01',112,85,6.79,'-638','49883',119,368);
INSERT INTO "communes" VALUES('46','<NAME>','11',147,106,28.25,'-746','49692',258,406);
INSERT INTO "communes" VALUES('46','Saint-Matré','21',117,122,6.41,'-1352','49334',155,276);
INSERT INTO "communes" VALUES('46','Esclauzels','26',218,155,17.73,'-795','49357',120,369);
INSERT INTO "communes" VALUES('46','Estal','01',124,111,6.04,'-462','49909',193,480);
INSERT INTO "communes" VALUES('46','Pescadoires','23',135,130,3.28,'-1310','49450',80,120);
INSERT INTO "communes" VALUES('46','Autoire','24',342,312,7.15,'-572','49838',134,396);
INSERT INTO "communes" VALUES('46','Belfort-du-Quercy','14',523,463,36.19,'-882','49187',153,307);
INSERT INTO "communes" VALUES('46','Lauzès','16',167,147,6.39,'-840','49521',197,394);
INSERT INTO "communes" VALUES('46','Pinsac','28',742,707,19.69,'-914','49840',80,329);
INSERT INTO "communes" VALUES('46','Labastide-Marnhac','03',1139,845,28.87,'-1041','49321',137,320);
INSERT INTO "communes" VALUES('46','Livernon','18',633,464,25.86,'-549','49608',275,358);
INSERT INTO "communes" VALUES('46','Montredon','08',285,285,11.78,'-161','49576',240,505);
INSERT INTO "communes" VALUES('46','Castelfranc','19',409,413,5.71,'-1237','49446',80,270);
INSERT INTO "communes" VALUES('46','Larroque-Toirac','04',143,135,6.56,'-438','49469',145,386);
INSERT INTO "communes" VALUES('46','Quatre-Routes-du-Lot','29',672,584,2.8,'-768','49997',118,209);
INSERT INTO "communes" VALUES('46','Laramière','17',320,264,22.08,'-509','49280',323,415);
INSERT INTO "communes" VALUES('46','Mayrac','28',268,207,7.86,'-865','49887',120,287);
INSERT INTO "communes" VALUES('46','Cuzac','08',238,194,5.02,'-215','49533',170,423);
INSERT INTO "communes" VALUES('46','Saint-Jean-de-Laur','04',208,177,21.57,'-556','49355',141,402);
INSERT INTO "communes" VALUES('46','Figeac','99',9810,9592,35.16,'-339','49565',170,451);
INSERT INTO "communes" VALUES('46','Gagnac-sur-Cère','01',736,666,12.83,'-510','49932',138,412);
INSERT INTO "communes" VALUES('46','Promilhanes','17',214,182,14.55,'-579','49306',334,403);
INSERT INTO "communes" VALUES('46','Comiac','30',234,253,29.27,'-387','49934',171,621);
INSERT INTO "communes" VALUES('46','Saillac','17',143,118,16.28,'-640','49257',258,400);
INSERT INTO "communes" VALUES('46','Creysse','20',293,257,9.51,'-822','49873',95,316);
INSERT INTO "communes" VALUES('46','Aynac','13',590,531,21.55,'-539','49761',324,607);
INSERT INTO "communes" VALUES('46','Montlauzun','21',128,117,6.48,'-1268','49215',124,250);
INSERT INTO "communes" VALUES('46','Saint-Germain-du-Bel-Air','25',528,496,21.47,'-997','49608',188,394);
INSERT INTO "communes" VALUES('46','Lhospitalet','05',449,373,14.65,'-1032','49290',217,330);
INSERT INTO "communes" VALUES('46','Lherm','06',242,222,13.47,'-1212','49519',114,306);
INSERT INTO "communes" VALUES('46','Milhac','10',199,196,5.42,'-1099','49776',90,200);
INSERT INTO "communes" VALUES('46','Soturac','23',661,673,19.55,'-1466','49432',65,234);
INSERT INTO "communes" VALUES('46','Labastide-du-Haut-Mont','15',45,62,9.85,'-240','49816',577,776);
INSERT INTO "communes" VALUES('46','Linac','08',215,218,12.3,'-247','49629',210,467);
INSERT INTO "communes" VALUES('46','Saint-Médard-de-Presque','24',200,203,5.29,'-544','49848',140,400);
INSERT INTO "communes" VALUES('46','Glanes','01',286,247,2.72,'-508','49913',148,353);
INSERT INTO "communes" VALUES('46','Bio','11',310,255,10.79,'-613','49759',296,421);
INSERT INTO "communes" VALUES('46','Labastide-du-Vert','06',235,215,10.44,'-1194','49457',102,283);
INSERT INTO "communes" VALUES('46','Saint-Cirq-Madelon','10',145,123,7.49,'-1136','49768',90,188);
INSERT INTO "communes" VALUES('46','Saint-Médard','06',164,153,11.78,'-1158','49487',120,298);
INSERT INTO "communes" VALUES('46','Cardaillac','13',566,498,18.1,'-377','49644',226,575);
INSERT INTO "communes" VALUES('46','Sérignac','23',302,312,18.44,'-1369','49371',160,274);
INSERT INTO "communes" VALUES('46','Saint-Laurent-les-Tours','24',913,900,10.84,'-491','49854',152,465);
INSERT INTO "communes" VALUES('46','Meyronne','28',300,269,8.04,'-843','49863',90,285);
INSERT INTO "communes" VALUES('46','Saint-Céré','24',3545,3517,11.33,'-495','49844',141,523);
INSERT INTO "communes" VALUES('46','Touzac','23',355,333,4.89,'-1424','49441',65,143);
INSERT INTO "communes" VALUES('46','Montet-et-Bouxal','15',229,208,11.51,'-353','49711',415,643);
INSERT INTO "communes" VALUES('46','Cressensac','20',637,570,23.04,'-907','50023',239,330);
INSERT INTO "communes" VALUES('46','Rignac','11',267,258,9.64,'-712','49785',270,423);
INSERT INTO "communes" VALUES('46','Latouille-Lentillac','24',239,216,11.71,'-416','49838',184,573);
INSERT INTO "communes" VALUES('46','Sauliac-sur-Célé','16',110,92,25.13,'-683','49464',130,379);
INSERT INTO "communes" VALUES('46','Bagnac-sur-Célé','08',1556,1521,22.29,'-198','49629',210,478);
INSERT INTO "communes" VALUES('46','Lalbenque','14',1619,1068,52.24,'-880','49265',197,332);
INSERT INTO "communes" VALUES('46','Théminettes','13',169,145,8.71,'-538','49681',312,411);
INSERT INTO "communes" VALUES('46','Gigouzac','06',231,175,9.91,'-1003','49537',210,376);
INSERT INTO "communes" VALUES('46','Montamel','25',96,98,9.61,'-986','49562',258,427);
INSERT INTO "communes" VALUES('46','Condat','29',414,331,6.12,'-747','49989',116,249);
INSERT INTO "communes" VALUES('46','Lissac-et-Mouret','09',939,780,15.55,'-387','49585',182,366);
INSERT INTO "communes" VALUES('46','Saint-Bressou','13',118,128,10.03,'-405','49672',274,619);
INSERT INTO "communes" VALUES('46','Lagardelle','23',139,102,3.07,'-1297','49436',80,224);
INSERT INTO "communes" VALUES('46','Soulomès','12',120,107,7.67,'-825','49592',271,450);
INSERT INTO "communes" VALUES('46','Saint-Daunès','21',216,205,10.11,'-1229','49285',156,284);
INSERT INTO "communes" VALUES('46','Saint-Cyprien','21',308,315,15.07,'-1192','49231',145,277);
INSERT INTO "communes" VALUES('46','Issendolus','13',528,452,18.91,'-610','49714',300,373);
INSERT INTO "communes" VALUES('46','Lacave','28',285,293,21.19,'-865','49827',80,349);
INSERT INTO "communes" VALUES('46','Saint-Sulpice','04',132,109,13.19,'-606','49522',145,363);
INSERT INTO "communes" VALUES('46','Saignes','24',74,52,3.55,'-578','49764',325,441);
INSERT INTO "communes" VALUES('46','Sénaillac-Lauzès','16',133,156,25.78,'-762','49558',288,449);
INSERT INTO "communes" VALUES('46','Fontanes-du-Causse','12',75,72,15.01,'-751','49629',337,442);
INSERT INTO "communes" VALUES('46','Saint-Pantaléon','21',246,223,19.37,'-1190','49298',175,305);
INSERT INTO "communes" VALUES('46','Montvalent','20',302,267,27.61,'-798','49868',95,322);
INSERT INTO "communes" VALUES('46','Frayssinet','25',318,280,16.83,'-949','49625',221,413);
INSERT INTO "communes" VALUES('46','Lacapelle-Cabanac','23',163,145,8.04,'-1408','49406',74,266);
INSERT INTO "communes" VALUES('46','Crayssac','06',737,442,14.95,'-1121','49455',100,303);
INSERT INTO "communes" VALUES('46','Boussac','18',168,178,7.77,'-461','49558',170,340);
INSERT INTO "communes" VALUES('46','Albas','19',516,530,21.84,'-1222','49409',85,332);
INSERT INTO "communes" VALUES('46','Saint-Jean-Mirabel','08',236,212,9.2,'-254','49579',210,422);
INSERT INTO "communes" VALUES('46','Cadrieu','04',158,141,5.24,'-507','49435',140,394);
INSERT INTO "communes" VALUES('46','Sénaillac-Latronquière','15',141,145,11.26,'-307','49806',516,725);
INSERT INTO "communes" VALUES('46','Saint-Martin-de-Vers','16',122,108,9.93,'-864','49534',190,423);
INSERT INTO "communes" VALUES('46','Cajarc','04',1119,1114,25.1,'-549','49428',140,394);
INSERT INTO "communes" VALUES('46','<NAME>','13',122,111,5.62,'-437','49658',291,594);
INSERT INTO "communes" VALUES('46','Montgesty','06',310,268,11.88,'-1155','49532',170,313);
INSERT INTO "communes" VALUES('46','Quissac','18',117,106,25.17,'-674','49606',269,455);
INSERT INTO "communes" VALUES('46','Montcuq','21',1273,1263,32.22,'-1252','49265',135,291);
INSERT INTO "communes" VALUES('46','Thédirac','27',310,274,16.51,'-1132','49556',205,332);
INSERT INTO "communes" VALUES('46','Anglars-Juillac','19',349,332,5.48,'-1264','49433',81,240);
INSERT INTO "communes" VALUES('46','Carlucet','11',231,169,33.7,'-804','49690',171,385);
INSERT INTO "communes" VALUES('46','Soucirac','25',103,118,11.31,'-925','49669',247,434);
INSERT INTO "communes" VALUES('46','Saint-Clair','10',144,134,11,'-1028','49666',167,365);
INSERT INTO "communes" VALUES('46','Saint-Cirq-Souillaguet','10',146,127,8.54,'-976','49675',220,380);
INSERT INTO "communes" VALUES('46','Blars','16',126,117,25.68,'-686','49518',200,380);
INSERT INTO "communes" VALUES('46','Larnagol','04',133,157,24.36,'-621','49418',130,385);
INSERT INTO "communes" VALUES('46','Mayrinhac-Lentour','24',519,439,15.57,'-588','49793',310,448);
INSERT INTO "communes" VALUES('46','Saint-Michel-de-Bannières','29',303,329,7.74,'-720','49974',112,277);
INSERT INTO "communes" VALUES('46','Martel','20',1650,1464,35.28,'-808','49930',92,336);
INSERT INTO "communes" VALUES('46','Carnac-Rouffiac','19',249,204,13.57,'-1228','49349',130,300);
INSERT INTO "communes" VALUES('46','Beaumat','12',76,63,8.1,'-907','49622',238,426);
INSERT INTO "communes" VALUES('46','Cabrerets','16',231,203,43.38,'-758','49451',130,367);
INSERT INTO "communes" VALUES('46','<NAME>','03',972,778,22.54,'-986','49311',132,303);
INSERT INTO "communes" VALUES('46','Saint-Cirq-Lapopie','26',217,207,17.89,'-741','49405',120,389);
INSERT INTO "communes" VALUES('46','Frontenac','04',76,71,2.84,'-406','49488',150,370);
INSERT INTO "communes" VALUES('46','Laroque-des-Arcs','02',503,472,7.69,'-965','49418',110,331);
INSERT INTO "communes" VALUES('46','Sainte-Croix','21',85,69,7.77,'-1300','49266',164,280);
INSERT INTO "communes" VALUES('46','Reilhaguet','22',120,103,15.96,'-925','49745',131,390);
INSERT INTO "communes" VALUES('46','Vergne','11',433,408,8.82,'-640','49776',295,424);
INSERT INTO "communes" VALUES('46','Ginouillac','12',171,165,9.42,'-887','49695',215,446);
INSERT INTO "communes" VALUES('46','Viazac','08',300,284,17.74,'-291','49601',200,502);
INSERT INTO "communes" VALUES('46','Cavagnac','29',444,427,10.34,'-774','50010',123,256);
INSERT INTO "communes" VALUES('46','Rampoux','27',101,88,5.83,'-1141','49602',176,306);
INSERT INTO "communes" VALUES('46','Albiac','13',87,66,3.83,'-584','49740',324,430);
INSERT INTO "communes" VALUES('46','Cahus','01',189,179,10.01,'-464','49952',139,505);
INSERT INTO "communes" VALUES('46','Flaugnac','05',430,380,30.96,'-1048','49198',143,299);
INSERT INTO "communes" VALUES('46','Lunan','08',528,363,6.15,'-281','49559',174,426);
INSERT INTO "communes" VALUES('46','Cazals','07',617,573,10.57,'-1234','49604',157,324);
INSERT INTO "communes" VALUES('46','Léobard','27',207,181,10.3,'-1141','49691',130,263);
INSERT INTO "communes" VALUES('46','Vaylats','14',270,251,26.37,'-771','49264',210,326);
INSERT INTO "communes" VALUES('46','Camboulit','09',251,206,5.19,'-430','49555',177,312);
INSERT INTO "communes" VALUES('46','Brengues','18',206,175,20.56,'-560','49531',150,392);
INSERT INTO "communes" VALUES('46','Carayac','04',79,82,6.87,'-459','49497',271,409);
INSERT INTO "communes" VALUES('46','Saint-Géry','26',458,350,13.58,'-839','49421',120,348);
INSERT INTO "communes" VALUES('46','Anglars-Nozac','10',307,257,9.83,'-1034','49761',117,303);
INSERT INTO "communes" VALUES('46','Faycelles','09',630,531,14.08,'-389','49517',150,373);
INSERT INTO "communes" VALUES('46','Escamps','14',169,114,12.11,'-781','49296',235,302);
INSERT INTO "communes" VALUES('46','Prayssac','23',2469,2300,24.05,'-1276','49449',80,284);
INSERT INTO "communes" VALUES('46','Cremps','14',328,272,19.66,'-818','49321',173,283);
INSERT INTO "communes" VALUES('46','Cieurac','14',426,287,18.7,'-921','49297',189,292);
INSERT INTO "communes" VALUES('46','Fourmagnac','09',155,106,3.78,'-397','49626',213,364);
INSERT INTO "communes" VALUES('46','Lascabanes','21',189,170,16.58,'-1144','49266',162,298);
INSERT INTO "communes" VALUES('46','Sauzet','19',516,409,11.09,'-1201','49353',176,312);
INSERT INTO "communes" VALUES('46','Lunegarde','12',90,73,10.43,'-720','49656',329,422);
INSERT INTO "communes" VALUES('46','Fargues','21',159,149,14.79,'-1283','49332',155,289);
INSERT INTO "communes" VALUES('46','Bagat-en-Quercy','21',196,193,16.63,'-1216','49302',173,302);
INSERT INTO "communes" VALUES('46','Couzou','11',107,107,21.72,'-800','49740',138,376);
INSERT INTO "communes" VALUES('46','Ladirat','15',114,118,8.93,'-408','49794',191,492);
INSERT INTO "communes" VALUES('46','Bach','14',170,143,21.02,'-739','49278',220,337);
INSERT INTO "communes" VALUES('46','Saux','21',121,133,8.31,'-1390','49322',173,275);
INSERT INTO "communes" VALUES('46','Masclat','22',347,292,10.02,'-1050','49817',112,206);
INSERT INTO "communes" VALUES('46','Girac','01',369,341,4.4,'-576','49913',128,144);
INSERT INTO "communes" VALUES('46','Lanzac','28',592,487,14.62,'-949','49860',80,340);
INSERT INTO "communes" VALUES('46','Concorès','25',287,300,19,'-1046','49621',150,365);
INSERT INTO "communes" VALUES('46','Lugagnac','17',118,104,15.81,'-667','49343',173,339);
INSERT INTO "communes" VALUES('46','Prendeignes','08',214,200,15.76,'-275','49664',230,552);
INSERT INTO "communes" VALUES('46','Thémines','13',222,218,13.35,'-565','49711',306,423);
INSERT INTO "communes" VALUES('46','Laburgade','14',314,222,12.57,'-884','49318',159,278);
INSERT INTO "communes" VALUES('46','Sarrazac','20',571,464,18.38,'-831','50019',132,342);
INSERT INTO "communes" VALUES('46','Vers','26',422,398,17.94,'-870','49429',110,351);
INSERT INTO "communes" VALUES('46','Saint-Chamarand','25',206,173,13.09,'-973','49643',213,384);
INSERT INTO "communes" VALUES('46','Payrac','22',653,564,19.5,'-961','49774',125,364);
INSERT INTO "communes" VALUES('46','Saint-Paul-de-Vern','24',194,183,10.84,'-444','49821',167,473);
INSERT INTO "communes" VALUES('46','Lamativie','30',65,83,12.82,'-329','49956',267,643);
INSERT INTO "communes" VALUES('46','Montcabrier','23',351,376,21.75,'-1403','49491',103,271);
INSERT INTO "communes" VALUES('46','Pern','05',477,352,25.66,'-1036','49254',198,325);
INSERT INTO "communes" VALUES('46','Saint-Denis-lès-Martel','20',355,361,7.93,'-750','49934',93,323);
INSERT INTO "communes" VALUES('46','<NAME>','13',296,247,13.15,'-481','49677',336,565);
INSERT INTO "communes" VALUES('46','Rueyres','13',230,196,9.31,'-544','49720',309,428);
INSERT INTO "communes" VALUES('46','Francoulès','06',217,212,13.61,'-941','49493',203,410);
INSERT INTO "communes" VALUES('46','Rudelle','13',191,153,6.83,'-508','49692',326,435);
INSERT INTO "communes" VALUES('46','Bouziès','26',78,70,8.2,'-772','49427',120,348);
INSERT INTO "communes" VALUES('46','Caillac','19',575,533,7.44,'-1087','49430',100,271);
INSERT INTO "communes" VALUES('46','Cassagnes','23',207,192,11.62,'-1331','49510',148,300);
INSERT INTO "communes" VALUES('46','Gramat','11',3537,3549,57.07,'-680','49754',220,404);
INSERT INTO "communes" VALUES('46','Saint-Simon','18',160,122,9.26,'-546','49665',309,392);
INSERT INTO "communes" VALUES('46','<NAME>','21',179,181,19.51,'-1321','49355',108,292);
INSERT INTO "communes" VALUES('46','Corn','18',198,157,15.26,'-486','49565',163,424);
INSERT INTO "communes" VALUES('46','Beauregard','17',241,188,15.3,'-604','49273',298,396);
INSERT INTO "communes" VALUES('46','Nadillac','16',74,62,7.35,'-909','49514',191,405);
INSERT INTO "communes" VALUES('46','Capdenac','09',1092,990,10.9,'-297','49534',155,369);
INSERT INTO "communes" VALUES('46','Duravel','23',960,885,14.97,'-1397','49463',65,271);
INSERT INTO "communes" VALUES('46','Miers','11',437,397,25.28,'-699','49837',218,430);
INSERT INTO "communes" VALUES('46','Baladou','20',409,325,15.74,'-867','49914',160,301);
INSERT INTO "communes" VALUES('46','Nadaillac-de-Rouge','22',190,101,7.73,'-1008','49833',86,273);
INSERT INTO "communes" VALUES('46','Lamagdelaine','02',751,741,10.58,'-941','49408',110,331);
INSERT INTO "communes" VALUES('46','Vidaillac','17',167,159,9.49,'-567','49265',338,406);
INSERT INTO "communes" VALUES('46','Bessonies','15',101,120,7.41,'-206','49789',510,682);
INSERT INTO "communes" VALUES('46','Peyrilles','25',366,313,28.41,'-1025','49578',188,384);
INSERT INTO "communes" VALUES('46','Latronquière','15',544,530,10.37,'-287','49778',549,694);
INSERT INTO "communes" VALUES('46','Saint-Sozy','28',503,474,8.59,'-858','49867',80,298);
INSERT INTO "communes" VALUES('46','Vire-sur-Lot','23',380,323,7.77,'-1388','49434',67,269);
INSERT INTO "communes" VALUES('46','Villesèque','19',392,306,23.56,'-1132','49324',199,339);
INSERT INTO "communes" VALUES('46','Durbans','18',129,127,27.81,'-625','49641',287,393);
INSERT INTO "communes" VALUES('46','Bétaille','29',1072,827,13.99,'-670','49938',111,228);
INSERT INTO "communes" VALUES('46','Salviac','27',1263,1069,29.61,'-1191','49646',124,307);
INSERT INTO "communes" VALUES('46','Saint-Maurice-en-Quercy','13',230,239,13,'-432','49715',368,601);
INSERT INTO "communes" VALUES('46','Castelnau-Montratier','05',1847,1851,72.54,'-1093','49188',108,295);
INSERT INTO "communes" VALUES('46','Sainte-Colombe','13',191,163,11.35,'-371','49693',361,612);
INSERT INTO "communes" VALUES('46','Belmont-Sainte-Foi','14',109,105,9.01,'-782','49203',215,339);
INSERT INTO "communes" VALUES('46','Reyrevignes','18',296,272,12.44,'-468','49616',282,388);
INSERT INTO "communes" VALUES('46','Molières','13',368,364,12.77,'-446','49771',316,603);
INSERT INTO "communes" VALUES('46','Thégra','11',496,418,12.82,'-645','49801',319,426);
INSERT INTO "communes" VALUES('46','Floirac','20',275,276,19.02,'-758','49906',90,345);
INSERT INTO "communes" VALUES('46','Alvignac','11',733,572,13.05,'-715','49808',249,419);
INSERT INTO "communes" VALUES('46','Issepts','18',179,158,9.15,'-456','49639',267,444);
INSERT INTO "communes" VALUES('46','Calamane','06',465,383,7.6,'-1051','49473',139,324);
INSERT INTO "communes" VALUES('46','Camburat','09',446,244,8.03,'-377','49604',192,400);
INSERT INTO "communes" VALUES('46','Reilhac','18',172,143,12.98,'-686','49667',312,396);
INSERT INTO "communes" VALUES('46','Saint-Sauveur-la-Vallée','12',47,43,6.7,'-871','49562',236,435);
INSERT INTO "communes" VALUES('46','Sonac','18',79,80,7.34,'-530','49663',305,421);
INSERT INTO "communes" VALUES('46','Saint-Perdoux','08',199,198,12.53,'-321','49637',260,526);
INSERT INTO "communes" VALUES('46','Frayssinhes','24',198,190,12.15,'-442','49865',170,542);
INSERT INTO "communes" VALUES('46','Saint-Caprais','07',80,80,8.85,'-1309','49563',193,299);
INSERT INTO "communes" VALUES('46','Saint-Jean-Lagineste','24',318,250,12.66,'-529','49804',251,605);
INSERT INTO "communes" VALUES('46','Ussel','25',76,66,6.74,'-930','49548',292,421);
INSERT INTO "communes" VALUES('46','Biars-sur-Cère','01',1906,1988,3.63,'-544','49920',125,265);
INSERT INTO "communes" VALUES('46','Saint-Pierre-Lafeuille','06',355,292,8.52,'-981','49471',154,361);
INSERT INTO "communes" VALUES('46','Saint-Médard-Nicourby','15',88,84,7.77,'-351','49741',347,608);
INSERT INTO "communes" VALUES('46','Saint-Vincent-Rive-d''Olt','19',491,429,19.9,'-1152','49406',97,323);
INSERT INTO "communes" VALUES('46','Saint-Vincent-du-Pendit','24',164,186,9.24,'-483','49821',170,628);
INSERT INTO "communes" VALUES('46','Lacam-d''Ourcet','30',124,123,14.08,'-373','49831',306,624);
INSERT INTO "communes" VALUES('46','Lacapelle-Marival','13',1328,1251,11.61,'-456','49699',353,596);
INSERT INTO "communes" VALUES('46','Labastide-Murat','12',659,689,27.27,'-854','49608',265,449);
INSERT INTO "communes" VALUES('46','Flaujac-Gare','18',92,70,8.09,'-621','49677',308,351);
INSERT INTO "communes" VALUES('46','Saint-Hilaire','15',76,88,7.93,'-202','49750',469,693);
INSERT INTO "communes" VALUES('46','Gourdon','10',4640,4888,45.56,'-1060','49708',130,323);
INSERT INTO "communes" VALUES('46','Marminiac','07',383,318,22.88,'-1270','49629',177,343);
INSERT INTO "communes" VALUES('46','Uzech','25',220,196,12.21,'-1045','49546',213,373);
INSERT INTO "communes" VALUES('46','Sabadel-Lauzès','16',92,114,8.79,'-815','49519',198,357);
INSERT INTO "communes" VALUES('46','Mechmont','06',115,104,6.71,'-985','49532',236,383);
INSERT INTO "communes" VALUES('46','Puybrun','01',904,726,4.36,'-611','49909',125,266);
INSERT INTO "communes" VALUES('46','Maxou','06',291,230,12.59,'-993','49485',168,382);
INSERT INTO "communes" VALUES('46','Saint-Cirgues','15',379,355,32.5,'-236','49708',283,657);
INSERT INTO "communes" VALUES('46','Saint-Martin-le-Redon','23',209,192,10.6,'-1438','49478',86,257);
INSERT INTO "communes" VALUES('46','Frayssinet-le-Gélat','07',383,385,23.14,'-1303','49536',160,286);
INSERT INTO "communes" VALUES('46','Laval-de-Cère','01',342,324,7.98,'-447','49947',139,522);
INSERT INTO "communes" VALUES('46','Cuzance','20',547,372,29.74,'-886','49960',195,326);
INSERT INTO "communes" VALUES('46','Gindou','07',310,265,15.65,'-1207','49590',163,331);
INSERT INTO "communes" VALUES('46','<NAME>','10',1476,1077,34.4,'-997','49713',202,391);
INSERT INTO "communes" VALUES('46','Calvignac','17',202,191,17.89,'-620','49405',130,351);
INSERT INTO "communes" VALUES('46','Assier','18',684,535,16.49,'-511','49639',294,420);
INSERT INTO "communes" VALUES('46','Prudhomat','01',716,643,12.39,'-582','49888',120,267);
INSERT INTO "communes" VALUES('46','Grèzes','18',162,133,11.02,'-574','49586',268,443);
INSERT INTO "communes" VALUES('46','Saint-Jean-Lespinasse','24',434,373,5.99,'-529','49848',141,407);
INSERT INTO "communes" VALUES('46','Nuzéjouls','06',335,262,4.74,'-1063','49488',149,309);
INSERT INTO "communes" VALUES('46','Saint-Projet','10',397,355,15.83,'-940','49716',184,407);
INSERT INTO "communes" VALUES('46','Espère','31',1004,873,6.31,'-1067','49458',120,282);
INSERT INTO "communes" VALUES('46','Saint-Chels','04',158,139,17.86,'-595','49477',157,394);
INSERT INTO "communes" VALUES('46','Pradines','31',3490,3125,16.49,'-1036','49421',100,300);
INSERT INTO "communes" VALUES('46','Arcambal','03',997,737,23.11,'-914','49396',110,342);
INSERT INTO "communes" VALUES('46','Cambayrac','19',143,119,7.39,'-1168','49364',140,322);
INSERT INTO "communes" VALUES('46','Lebreil','21',154,131,10.2,'-1298','49248',127,278);
INSERT INTO "communes" VALUES('46','Valprionde','21',129,152,15.92,'-1353','49276',167,285);
INSERT INTO "communes" VALUES('46','Saint-Paul-de-Loubressac','05',562,430,20.19,'-987','49219',134,285);
INSERT INTO "communes" VALUES('46','Souillac','28',3817,3673,25.92,'-958','49886',80,314);
INSERT INTO "communes" VALUES('46','Junies','06',251,264,13.06,'-1224','49487',100,296);
INSERT INTO "communes" VALUES('46','Loupiac','22',270,267,12.65,'-973','49798',99,294);
INSERT INTO "communes" VALUES('46','Payrignac','10',696,595,21.64,'-1096','49729',95,232);
INSERT INTO "communes" VALUES('46','Espeyroux','13',96,106,7.64,'-460','49736',395,627);
INSERT INTO "communes" VALUES('46','Cambes','18',331,286,6.57,'-439','49572',236,365);
INSERT INTO "communes" VALUES('46','Fons','09',393,342,14.95,'-428','49627',212,425);
INSERT INTO "communes" VALUES('46','Luzech','19',1679,1640,22.13,'-1166','49420',84,323);
INSERT INTO "communes" VALUES('46','Caniac-du-Causse','12',339,246,35,'-771','49579',309,465);
INSERT INTO "communes" VALUES('46','Montfaucon','12',526,403,26.18,'-861','49653',260,423);
INSERT INTO "communes" VALUES('46','Séniergues','12',133,112,18.17,'-878','49667',223,425);
INSERT INTO "communes" VALUES('46','Lentillac-du-Causse','16',110,91,13.68,'-775','49514',160,353);
INSERT INTO "communes" VALUES('46','Dégagnac','27',607,507,37.9,'-1134','49628',140,306);
INSERT INTO "communes" VALUES('46','Espagnac-Sainte-Eulalie','18',85,73,9.75,'-551','49547',161,426);
INSERT INTO "communes" VALUES('46','Lentillac-Saint-Blaise','08',138,136,5.75,'-239','49546',175,381);
INSERT INTO "communes" VALUES('46','Aujols','14',307,243,16.43,'-875','49342',131,270);
INSERT INTO "communes" VALUES('46','Varaire','17',306,268,25.52,'-681','49286',220,404);
INSERT INTO "communes" VALUES('46','Calviac','30',165,202,26.49,'-322','49915',515,691);
INSERT INTO "communes" VALUES('46','Douelle','19',823,733,8.77,'-1085','49410',100,310);
INSERT INTO "communes" VALUES('46','Lamothe-Fénelon','22',338,320,13.99,'-1025','49816',109,262);
INSERT INTO "communes" VALUES('46','Pomarède','07',186,144,7.04,'-1295','49516',154,285);
INSERT INTO "communes" VALUES('46','Rocamadour','11',675,614,49.42,'-799','49777',110,364);
INSERT INTO "communes" VALUES('46','Sousceyrac','30',907,988,57.64,'-334','49859',399,745);
INSERT INTO "communes" VALUES('46','Padirac','11',189,169,8.86,'-648','49824',318,426);
INSERT INTO "communes" VALUES('46','Terrou','15',189,202,9.94,'-392','49760',273,570);
INSERT INTO "communes" VALUES('46','Teyssieu','01',187,196,13.63,'-424','49909',233,566);
INSERT INTO "communes" VALUES('46','Montcléra','07',273,291,20.91,'-1251','49578',154,311);
INSERT INTO "communes" VALUES('46','Bélaye','19',218,216,18.69,'-1270','49406',80,274);
INSERT INTO "communes" VALUES('46','Saint-Denis-Catus','06',205,193,10.78,'-1049','49517',170,337);
INSERT INTO "communes" VALUES('46','Belmont-Bretenoux','01',354,323,6.65,'-508','49878',146,406);
INSERT INTO "communes" VALUES('46','Cahors','98',20194,20022,64.72,'-996','49386',105,332);
INSERT INTO "communes" VALUES('46','Espédaillac','18',261,241,34.93,'-627','49598',255,444);
INSERT INTO "communes" VALUES('46','Puy-l''Évêque','23',2106,2159,26.38,'-1331','49450',80,284);
INSERT INTO "communes" VALUES('46','Planioles','09',488,385,5.85,'-348','49593',217,490);
INSERT INTO "communes" VALUES('46','Marcilhac-sur-Célé','04',197,194,27.35,'-629','49504',140,391);
INSERT INTO "communes" VALUES('46','Boissières','06',372,312,13.03,'-1040','49493',150,331);
INSERT INTO "communes" VALUES('46','Cazillac','20',422,345,19.02,'-806','49998',126,313);
INSERT INTO "communes" VALUES('46','Lachapelle-Auzac','28',764,803,31.34,'-960','49898',100,312);
INSERT INTO "communes" VALUES('46','Valroufié','02',425,352,13.48,'-943','49466',140,361);
INSERT INTO "communes" VALUES('46','Mercuès','31',1054,736,7.24,'-1056','49441',101,303);
INSERT INTO "communes" VALUES('46','Cénevières','17',179,161,15.69,'-655','49403',129,351);
INSERT INTO "communes" VALUES('46','Catus','06',920,909,21.32,'-1111','49507',130,341);
INSERT INTO "communes" VALUES('46','Berganty','26',102,93,6.98,'-766','49382',274,377);
INSERT INTO "communes" VALUES('46','Gréalou','04',254,224,17.5,'-499','49485',197,402);
INSERT INTO "communes" VALUES('46','Saint-Pierre-Toirac','04',149,122,5.83,'-425','49475',153,375);
INSERT INTO "communes" VALUES('46','Saint-Martin-Labouval','17',178,180,13.49,'-670','49405',129,384);
INSERT INTO "communes" VALUES('46','Belmontet','21',147,140,12.12,'-1314','49295',181,300);
INSERT INTO "communes" VALUES('46','Vayrac','29',1333,1188,16.33,'-703','49948',110,312);
INSERT INTO "communes" VALUES('46','Fajoles','22',262,211,8.98,'-1045','49781',118,213);
INSERT INTO "communes" VALUES('46','Concots','17',418,372,26.02,'-769','49335',195,368);
INSERT INTO "communes" VALUES('46','Carennac','29',389,373,19,'-672','49910',110,340);
INSERT INTO "communes" VALUES('46','Labathude','13',189,175,10.05,'-382','49709',370,613);
INSERT INTO "communes" VALUES('46','Gorses','15',344,357,35.6,'-346','49772',234,692);
INSERT INTO "communes" VALUES('46','Béduer','09',740,623,24.78,'-430','49534',176,405);
INSERT INTO "communes" VALUES('46','Saint-Félix','08',475,280,7.73,'-243','49568',182,393);
INSERT INTO "communes" VALUES('46','Bannes','24',137,166,10.11,'-474','49790',272,595);
INSERT INTO "communes" VALUES('46','Grézels','23',243,265,10.79,'-1316','49417',80,256);
INSERT INTO "communes" VALUES('46','Goujounac','07',229,197,10.38,'-1267','49529',130,306);
INSERT INTO "communes" VALUES('46','Lamothe-Cassel','25',97,105,11.35,'-923','49568',269,444);
INSERT INTO "communes" VALUES('46','Gignac','28',640,564,40.66,'-976','50006',153,356);
INSERT INTO "communes" VALUES('46','Orniac','16',86,90,16.79,'-743','49494',130,364);
INSERT INTO "communes" VALUES('46','Calès','22',168,150,34.23,'-887','49792',99,295);
INSERT INTO "communes" VALUES('46','Vaillac','12',96,107,13.68,'-897','49638',239,422);
INSERT INTO "communes" VALUES('46','Cras','16',93,75,10.22,'-893','49520',170,383);
INSERT INTO "communes" VALUES('46','Anglars','13',176,161,9.99,'-479','49711',328,561);
INSERT INTO "communes" VALUES('46','Felzins','08',387,300,15,'-224','49560',216,423);
INSERT INTO "communes" VALUES('46','Tauriac','01',387,330,8.23,'-623','49896',114,169);
INSERT INTO "communes" VALUES('46','Saint-Cernin','16',194,160,16.28,'-838','49548',227,464);
INSERT INTO "communes" VALUES('46','Leyme','13',961,941,10.16,'-484','49761',407,616);
INSERT INTO "communes" VALUES('46','Limogne-en-Quercy','17',796,724,32.31,'-629','49331',214,403);
INSERT INTO "communes" VALUES('46','Floressas','23',154,140,13.84,'-1350','49382',95,286);
INSERT INTO "communes" VALUES('46','Tour-de-Faure','26',400,350,8.77,'-714','49408',127,375);
INSERT INTO "communes" VALUES('46','Saint-Laurent-Lolmie','21',195,202,10.81,'-1231','49213',127,270);
INSERT INTO "communes" VALUES('46','Montdoumerc','14',437,355,13.62,'-907','49206',176,282);
INSERT INTO "communes" VALUES('46','Fontanès','14',456,371,16.44,'-932','49235',199,296);
INSERT INTO "communes" VALUES('46','Flaujac-Poujols','14',698,584,12.64,'-930','49340',144,295);
INSERT INTO "communes" VALUES('46','Cours','26',300,233,17.05,'-884','49465',140,364);
INSERT INTO "communes" VALUES('46','Le Roc','22',230,202,6.95,'-995','49851',84,324);
INSERT INTO "communes" VALUES('46','Strenquels','29',273,222,9.01,'-777','49983',114,336);
INSERT INTO "communes" VALUES('46','Sabadel-Latronquière','15',87,89,12.29,'-307','49706',329,633);
INSERT INTO "communes" VALUES('47','Roumagne','17',553,525,10.54,'-2221','49575',35,115);
INSERT INTO "communes" VALUES('47','Cocumont','21',974,888,25.44,'-2567','49388',33,148);
INSERT INTO "communes" VALUES('47','Argenton','05',335,268,12.14,'-2492','49317',45,169);
INSERT INTO "communes" VALUES('47','Granges-sur-Lot','28',580,540,4.19,'-2079','49307',32,64);
INSERT INTO "communes" VALUES('47','Engayrac','04',144,158,10.03,'-1612','49177',110,227);
INSERT INTO "communes" VALUES('47','Saint-Géraud','31',80,66,5.68,'-2426','49580',47,132);
INSERT INTO "communes" VALUES('47','Port-Sainte-Marie','27',1963,1749,18.94,'-2155','49167',27,216);
INSERT INTO "communes" VALUES('47','Birac-sur-Trec','19',801,672,14.34,'-2302','49429',28,129);
INSERT INTO "communes" VALUES('47','Sauvagnas','16',471,417,13.57,'-1775','49166',86,209);
INSERT INTO "communes" VALUES('47','Pompiey','18',227,201,19.61,'-2342','49103',73,191);
INSERT INTO "communes" VALUES('47','Montesquieu','18',780,713,25.53,'-2110','49113',30,163);
INSERT INTO "communes" VALUES('47','Castelnaud-de-Gratecambe','06',554,517,17.23,'-1854','49441',80,214);
INSERT INTO "communes" VALUES('47','Caubon-Saint-Sauveur','31',234,241,11.34,'-2400','49547',42,132);
INSERT INTO "communes" VALUES('47','Allemans-du-Dropt','17',481,447,6.4,'-2274','49585',33,89);
INSERT INTO "communes" VALUES('47','Sauveterre-Saint-Denis','03',450,421,8.25,'-1811','49060',45,53);
INSERT INTO "communes" VALUES('47','Sainte-Maure-de-Peyriac','22',337,326,23.06,'-2427','48903',64,164);
INSERT INTO "communes" VALUES('47','Clermont-Dessous','27',797,725,15.08,'-2101','49154',30,190);
INSERT INTO "communes" VALUES('47','Romestaing','05',147,154,15.46,'-2593','49352',56,167);
INSERT INTO "communes" VALUES('47','Cuzorn','13',878,870,23.34,'-1543','49494',76,242);
INSERT INTO "communes" VALUES('47','Allez-et-Cazeneuve','30',666,579,10.69,'-1896','49320',59,202);
INSERT INTO "communes" VALUES('47','Virazeil','19',1669,1586,19.87,'-2353','49452',31,127);
INSERT INTO "communes" VALUES('47','Nicole','27',273,295,4.78,'-2223','49250',22,163);
INSERT INTO "communes" VALUES('47','Montpezat','28',582,594,24.19,'-2014','49274',37,200);
INSERT INTO "communes" VALUES('47','Saint-Jean-de-Duras','11',243,226,16.56,'-2267','49660',60,173);
INSERT INTO "communes" VALUES('47','Monclar','23',838,860,24.02,'-2012','49386',54,191);
INSERT INTO "communes" VALUES('47','Paulhiac','24',318,225,21.89,'-1686','49513',83,183);
INSERT INTO "communes" VALUES('47','Sainte-Gemme-Martaillac','05',343,279,14,'-2427','49296',58,156);
INSERT INTO "communes" VALUES('47','Bon-Encontre','40',6093,5758,20.56,'-1850','49096',48,209);
INSERT INTO "communes" VALUES('47','Couthures-sur-Garonne','21',390,399,6.98,'-2509','49460',12,22);
INSERT INTO "communes" VALUES('47','Fals','03',355,290,9.4,'-1847','48992',49,176);
INSERT INTO "communes" VALUES('47','Saint-Vite','33',1219,1230,5.47,'-1551','49415',57,105);
INSERT INTO "communes" VALUES('47','Sauveterre-la-Lémance','13',586,623,23.46,'-1469','49544',115,284);
INSERT INTO "communes" VALUES('47','Saint-Pierre-de-Buzet','10',270,218,8.52,'-2292','49171',32,160);
INSERT INTO "communes" VALUES('47','Andiran','25',223,226,9.89,'-2287','48997',43,123);
INSERT INTO "communes" VALUES('47','Ambrus','10',99,71,12.35,'-2326','49142',68,175);
INSERT INTO "communes" VALUES('47','Dévillac','35',133,121,9.25,'-1709','49563',96,191);
INSERT INTO "communes" VALUES('47','Houeillès','14',633,643,67.63,'-2558','49108',97,153);
INSERT INTO "communes" VALUES('47','Esclottes','11',156,172,9.24,'-2434','49676',38,117);
INSERT INTO "communes" VALUES('47','Lavardac','18',2285,2265,15.1,'-2266','49085',30,168);
INSERT INTO "communes" VALUES('47','Moirax','15',1147,999,16.2,'-1920','49045',41,183);
INSERT INTO "communes" VALUES('47','Lalandusse','09',197,184,9.37,'-2006','49619',56,143);
INSERT INTO "communes" VALUES('47','Saint-Avit','31',167,152,8.95,'-2360','49520',45,123);
INSERT INTO "communes" VALUES('47','Saint-Sernin','11',429,396,21.07,'-2331','49679',42,127);
INSERT INTO "communes" VALUES('47','Ruffiac','05',176,0,12.84,'-2559','49291',59,168);
INSERT INTO "communes" VALUES('47','Saint-Étienne-de-Villeréal','35',292,267,14.62,'-1748','49573',88,191);
INSERT INTO "communes" VALUES('47','Fieux','12',339,274,14.85,'-2125','48990',58,189);
INSERT INTO "communes" VALUES('47','Jusix','21',113,114,7.5,'-2541','49489',12,19);
INSERT INTO "communes" VALUES('47','Caumont-sur-Garonne','20',627,544,11.61,'-2395','49376',17,86);
INSERT INTO "communes" VALUES('47','Chapelle','31',87,92,4.53,'-2304','49528',52,132);
INSERT INTO "communes" VALUES('47','Vergne','17',603,545,19.96,'-2155','49547',47,127);
INSERT INTO "communes" VALUES('47','Saint-Martin-de-Villeréal','35',126,93,8.22,'-1684','49604',94,201);
INSERT INTO "communes" VALUES('47','La Sauvetat-sur-Lède','24',646,452,14.14,'-1785','49410',60,184);
INSERT INTO "communes" VALUES('47','Foulayronnes','36',5024,4597,28.86,'-1876','49155',44,206);
INSERT INTO "communes" VALUES('47','Marmont-Pachas','15',130,91,7.96,'-1944','48987',103,196);
INSERT INTO "communes" VALUES('47','Auriac-sur-Dropt','11',208,186,5.28,'-2323','49610',29,110);
INSERT INTO "communes" VALUES('47','Cancon','06',1334,1287,24.49,'-1901','49484',90,217);
INSERT INTO "communes" VALUES('47','Sainte-Marthe','20',498,382,9.65,'-2431','49349',28,94);
INSERT INTO "communes" VALUES('47','Tonneins','32',8965,9041,34.78,'-2253','49322',21,166);
INSERT INTO "communes" VALUES('47','Thouars-sur-Garonne','18',210,179,4.03,'-2223','49170',27,39);
INSERT INTO "communes" VALUES('47','Mauvezin-sur-Gupie','38',504,0,15.8,'-2412','49507',31,122);
INSERT INTO "communes" VALUES('47','Allons','14',176,172,76.33,'-2656','49113',98,156);
INSERT INTO "communes" VALUES('47','Saint-Pastour','23',393,361,14.52,'-1929','49432',62,196);
INSERT INTO "communes" VALUES('47','Fargues-sur-Ourbise','10',366,287,44.16,'-2424','49155',89,175);
INSERT INTO "communes" VALUES('47','Saint-Barthélemy-d''Agenais','31',517,491,15.28,'-2180','49469',52,131);
INSERT INTO "communes" VALUES('47','<NAME>','16',843,746,13.05,'-1826','49216',97,236);
INSERT INTO "communes" VALUES('47','Loubès-Bernac','11',369,310,19.31,'-2269','49701',74,187);
INSERT INTO "communes" VALUES('47','Moncaut','25',558,422,15.76,'-2042','49046',63,202);
INSERT INTO "communes" VALUES('47','Gaujac','21',283,303,7.33,'-2473','49433',13,22);
INSERT INTO "communes" VALUES('47','Pardaillan','11',331,312,19.71,'-2284','49626',34,134);
INSERT INTO "communes" VALUES('47','Montastruc','23',277,276,24.88,'-2020','49432',62,195);
INSERT INTO "communes" VALUES('47','Montaut','35',237,207,14.19,'-1851','49560',79,190);
INSERT INTO "communes" VALUES('47','Massoulès','26',208,177,7.86,'-1631','49266',117,234);
INSERT INTO "communes" VALUES('47','Saint-Antoine-de-Ficalba','39',674,556,10.93,'-1800','49258',108,231);
INSERT INTO "communes" VALUES('47','Saint-Pardoux-du-Breuil','19',591,576,7.3,'-2382','49418',19,35);
INSERT INTO "communes" VALUES('47','Leyritz-Moncassin','07',217,218,20.24,'-2417','49253',45,175);
INSERT INTO "communes" VALUES('47','Brugnac','08',203,167,14.74,'-2092','49390',49,172);
INSERT INTO "communes" VALUES('47','Massels','26',112,91,6.17,'-1648','49243',97,229);
INSERT INTO "communes" VALUES('47','Puch-d''Agenais','10',719,652,23,'-2326','49254',27,123);
INSERT INTO "communes" VALUES('47','Sembas','39',134,149,12.51,'-1876','49242',124,224);
INSERT INTO "communes" VALUES('47','Frespech','26',290,271,11.7,'-1680','49233',88,230);
INSERT INTO "communes" VALUES('47','Anthé','33',189,208,13.93,'-1530','49302',92,252);
INSERT INTO "communes" VALUES('47','Clairac','32',2451,2385,33.78,'-2175','49289',27,185);
INSERT INTO "communes" VALUES('47','Saint-Martin-Curton','07',298,266,41.48,'-2584','49258',95,156);
INSERT INTO "communes" VALUES('47','Douzains','09',279,244,12.66,'-1997','49593',65,151);
INSERT INTO "communes" VALUES('47','Doudrac','35',104,101,8.61,'-1839','49621',70,115);
INSERT INTO "communes" VALUES('47','Razimet','10',243,214,7.18,'-2335','49280',36,101);
INSERT INTO "communes" VALUES('47','Montauriol','09',202,223,9.92,'-1951','49575',74,152);
INSERT INTO "communes" VALUES('47','Brax','15',1827,1623,8.8,'-1983','49115',35,60);
INSERT INTO "communes" VALUES('47','Pujols','39',3626,3546,24.98,'-1831','49317',65,211);
INSERT INTO "communes" VALUES('47','Colayrac-Saint-Cirq','36',2863,2717,21.36,'-1982','49133',32,187);
INSERT INTO "communes" VALUES('47','Lacépède','28',295,246,11.33,'-2083','49246',53,207);
INSERT INTO "communes" VALUES('47','Cavarc','09',137,147,11.99,'-1883','49655',67,143);
INSERT INTO "communes" VALUES('47','Lagarrigue','27',282,269,4.38,'-2175','49219',48,175);
INSERT INTO "communes" VALUES('47','Penne-d''Agenais','26',2402,2331,46.71,'-1686','49321',52,231);
INSERT INTO "communes" VALUES('47','Cuq','03',283,254,16.89,'-1820','48981',63,180);
INSERT INTO "communes" VALUES('47','Pont-du-Casse','02',4351,4256,19.1,'-1839','49146',53,204);
INSERT INTO "communes" VALUES('47','Savignac-de-Duras','11',227,217,14.89,'-2389','49668',35,126);
INSERT INTO "communes" VALUES('47','Bourran','27',591,578,18.16,'-2159','49270',27,145);
INSERT INTO "communes" VALUES('47','Gavaudun','24',305,316,21.33,'-1610','49512',105,243);
INSERT INTO "communes" VALUES('47','Monviel','06',85,77,6.23,'-1991','49521',76,162);
INSERT INTO "communes" VALUES('47','Lamontjoie','12',501,456,17.75,'-2018','48973',87,201);
INSERT INTO "communes" VALUES('47','Tombebœuf','23',453,424,18.38,'-2094','49452',57,162);
INSERT INTO "communes" VALUES('47','Sérignac-Péboudou','09',175,169,12.12,'-1996','49572',69,185);
INSERT INTO "communes" VALUES('47','Agen','99',33981,30199,11.49,'-1909','49115',37,162);
INSERT INTO "communes" VALUES('47','Saint-Vincent-de-Lamontjoie','12',257,197,15.29,'-2027','48983',69,195);
INSERT INTO "communes" VALUES('47','Bourgougnague','17',277,233,11.73,'-2134','49574',53,131);
INSERT INTO "communes" VALUES('47','Fauillet','32',859,815,14.23,'-2274','49362',23,88);
INSERT INTO "communes" VALUES('47','Saint-Romain-le-Noble','29',394,416,8.5,'-1724','49069',45,181);
INSERT INTO "communes" VALUES('47','Monbalen','16',412,346,13,'-1775','49237',93,230);
INSERT INTO "communes" VALUES('47','Lannes','22',409,428,32.4,'-2270','48928',58,171);
INSERT INTO "communes" VALUES('47','Fauguerolles','19',653,560,6.93,'-2319','49378',21,36);
INSERT INTO "communes" VALUES('47','Layrac','03',3552,3146,38.11,'-1861','49038',43,182);
INSERT INTO "communes" VALUES('47','Bias','39',3186,2955,12.29,'-1852','49351',42,76);
INSERT INTO "communes" VALUES('47','Hautesvignes','19',163,141,8.85,'-2205','49399',48,142);
INSERT INTO "communes" VALUES('47','Villebramar','23',103,96,10.06,'-2067','49476',62,147);
INSERT INTO "communes" VALUES('47','Casseneuil','06',2335,2296,18.09,'-1906','49381',38,204);
INSERT INTO "communes" VALUES('47','Villeneuve-sur-Lot','97',23513,22801,81.32,'-1814','49341',42,209);
INSERT INTO "communes" VALUES('47','Cauzac','04',385,365,14.52,'-1692','49201',75,221);
INSERT INTO "communes" VALUES('47','Calonges','20',589,521,15.99,'-2328','49304',26,94);
INSERT INTO "communes" VALUES('47','Caudecoste','03',933,911,17.13,'-1778','49019',46,120);
INSERT INTO "communes" VALUES('47','La Sauvetat-de-Savères','16',527,349,6.86,'-1709','49140',64,194);
INSERT INTO "communes" VALUES('47','Dolmayrac','30',647,525,19.4,'-1941','49292',50,219);
INSERT INTO "communes" VALUES('47','Bruch','18',773,725,15.89,'-2139','49117',35,159);
INSERT INTO "communes" VALUES('47','Castillonnès','09',1404,1324,19.4,'-1939','49614',62,145);
INSERT INTO "communes" VALUES('47','Montagnac-sur-Auvignon','25',599,498,22.69,'-2085','49068',48,196);
INSERT INTO "communes" VALUES('47','Puysserampion','17',246,243,10.72,'-2253','49559',44,116);
INSERT INTO "communes" VALUES('47','Sauméjan','14',80,68,19.5,'-2600','49152',103,147);
INSERT INTO "communes" VALUES('47','Casteljaloux','07',4761,4763,30.59,'-2498','49238',55,168);
INSERT INTO "communes" VALUES('47','Astaffort','03',2077,1881,35.17,'-1872','48960',52,215);
INSERT INTO "communes" VALUES('47','Tourliac','35',146,97,9.83,'-1699','49651',97,211);
INSERT INTO "communes" VALUES('47','Laplume','15',1402,1204,32.64,'-2006','49013',69,218);
INSERT INTO "communes" VALUES('47','Roquefort','15',1767,1197,7.53,'-1974','49082',53,156);
INSERT INTO "communes" VALUES('47','Boé','40',5421,4504,16.5,'-1898','49066',37,59);
INSERT INTO "communes" VALUES('47','Nomdieu','12',221,200,12.59,'-2068','48994',64,142);
INSERT INTO "communes" VALUES('47','Ferrensac','09',222,163,12.32,'-1895','49602',65,151);
INSERT INTO "communes" VALUES('47','Réaup-Lisse','22',587,523,70.89,'-2388','48990',43,174);
INSERT INTO "communes" VALUES('47','Soumensac','11',244,215,11.42,'-2233','49655',42,175);
INSERT INTO "communes" VALUES('47','Barbaste','18',1500,1415,38.7,'-2278','49077',38,146);
INSERT INTO "communes" VALUES('47','Gontaud-de-Nogaret','19',1634,1537,29.51,'-2268','49396',26,132);
INSERT INTO "communes" VALUES('47','Villeréal','35',1314,1186,13.92,'-1770','49596',78,168);
INSERT INTO "communes" VALUES('47','Savignac-sur-Leyze','24',279,273,11.38,'-1718','49423',70,153);
INSERT INTO "communes" VALUES('47','Villefranche-du-Queyran','07',405,360,16.55,'-2377','49231',45,182);
INSERT INTO "communes" VALUES('47','Lédat','34',1260,895,12.43,'-1854','49394',42,180);
INSERT INTO "communes" VALUES('47','Grateloup-Saint-Gayrand','08',439,414,20.67,'-2166','49357',42,172);
INSERT INTO "communes" VALUES('47','Marcellus','21',802,699,11.77,'-2509','49423',15,82);
INSERT INTO "communes" VALUES('47','Vianne','18',1128,1224,9.82,'-2239','49108',28,134);
INSERT INTO "communes" VALUES('47','Dondas','04',207,231,14.37,'-1664','49170',75,222);
INSERT INTO "communes" VALUES('47','Sainte-Bazeille','38',3044,2656,20.67,'-2492','49478',12,87);
INSERT INTO "communes" VALUES('47','Durance','14',281,270,38.6,'-2417','49070',111,166);
INSERT INTO "communes" VALUES('47','Cahuzac','09',294,281,8.04,'-1975','49622',58,144);
INSERT INTO "communes" VALUES('47','Mézin','22',1504,1464,31.58,'-2309','48952',49,166);
INSERT INTO "communes" VALUES('47','Duras','11',1316,1215,20.17,'-2393','49640',28,128);
INSERT INTO "communes" VALUES('47','Calignac','25',480,373,18.38,'-2135','49037',51,187);
INSERT INTO "communes" VALUES('47','Meilhan-sur-Garonne','21',1327,1253,28.62,'-2559','49468',12,90);
INSERT INTO "communes" VALUES('47','Clermont-Soubiran','29',367,333,10.39,'-1672','49045',45,188);
INSERT INTO "communes" VALUES('47','Saint-Georges','33',533,560,15.96,'-1558','49380',55,158);
INSERT INTO "communes" VALUES('47','Castelmoron-sur-Lot','08',1754,1663,23.25,'-2046','49330',32,195);
INSERT INTO "communes" VALUES('47','Saint-Maurice-de-Lestapel','06',112,102,7.79,'-1965','49527',84,170);
INSERT INTO "communes" VALUES('47','Trentels','26',820,825,19.47,'-1637','49373',52,222);
INSERT INTO "communes" VALUES('47','Le Passage','37',9395,8811,12.89,'-1926','49113',36,110);
INSERT INTO "communes" VALUES('47','Samazan','20',852,748,17.25,'-2471','49371',24,133);
INSERT INTO "communes" VALUES('47','Varès','32',647,691,16.79,'-2201','49365',35,137);
INSERT INTO "communes" VALUES('47','Xaintrailles','18',413,397,10.26,'-2309','49117',80,196);
INSERT INTO "communes" VALUES('47','Montignac-Toupinerie','31',138,111,8.31,'-2213','49498',60,137);
INSERT INTO "communes" VALUES('47','La Sauvetat-du-Dropt','11',566,465,10.37,'-2219','49608',36,123);
INSERT INTO "communes" VALUES('47','Cambes','31',166,162,9.2,'-2275','49550',44,132);
INSERT INTO "communes" VALUES('47','Moulinet','06',195,216,14.57,'-1950','49491',83,170);
INSERT INTO "communes" VALUES('47','Saint-Étienne-de-Fougères','23',843,732,9.9,'-1980','49354',37,90);
INSERT INTO "communes" VALUES('47','Blanquefort-sur-Briolance','13',515,491,41.93,'-1518','49556',104,274);
INSERT INTO "communes" VALUES('47','Marmande','98',18400,17194,45.06,'-2412','49445',12,132);
INSERT INTO "communes" VALUES('47','Cazideroque','33',239,264,11.94,'-1564','49332',80,237);
INSERT INTO "communes" VALUES('47','Boussès','14',42,41,47.14,'-2492','49051',115,161);
INSERT INTO "communes" VALUES('47','Sérignac-sur-Garonne','15',1122,868,8.91,'-2057','49126',32,117);
INSERT INTO "communes" VALUES('47','Poussignac','05',294,213,13.02,'-2518','49285',51,151);
INSERT INTO "communes" VALUES('47','Anzex','07',285,254,23.24,'-2412','49205',58,172);
INSERT INTO "communes" VALUES('47','Fourques-sur-Garonne','20',1238,1178,13.96,'-2420','49387',18,77);
INSERT INTO "communes" VALUES('47','Frégimont','27',270,189,7.59,'-2087','49198',57,200);
INSERT INTO "communes" VALUES('47','<NAME>-d''Agenais','20',1427,1330,21.18,'-2355','49345',17,120);
INSERT INTO "communes" VALUES('47','Saint-Colomb-de-Lauzun','17',502,434,23.19,'-2070','49571',67,136);
INSERT INTO "communes" VALUES('47','Lévignac-de-Guyenne','31',609,650,25.02,'-2375','49588',32,122);
INSERT INTO "communes" VALUES('47','Moustier','11',336,302,8.33,'-2264','49595',35,113);
INSERT INTO "communes" VALUES('47','La Réunion','07',457,443,28.06,'-2465','49219',78,172);
INSERT INTO "communes" VALUES('47','Saint-Hilaire-de-Lusignan','36',1404,1300,16.77,'-2027','49140',32,196);
INSERT INTO "communes" VALUES('47','Tournon-d''Agenais','33',771,753,21.26,'-1490','49333',103,261);
INSERT INTO "communes" VALUES('47','Galapian','27',326,285,9.25,'-2137','49221',44,180);
INSERT INTO "communes" VALUES('47','Saint-Sardos','28',334,242,14.46,'-2065','49268',42,187);
INSERT INTO "communes" VALUES('47','Pindères','14',231,202,40.76,'-2567','49192',73,143);
INSERT INTO "communes" VALUES('47','Sainte-Colombe-en-Bruilhois','15',1656,1345,21.15,'-2023','49086',35,168);
INSERT INTO "communes" VALUES('47','Saint-Laurent','18',486,503,4.4,'-2152','49163',30,40);
INSERT INTO "communes" VALUES('47','Aubiac','15',1014,907,13.86,'-1973','49046',69,180);
INSERT INTO "communes" VALUES('47','Monbahus','06',629,642,31.97,'-2002','49498',67,190);
INSERT INTO "communes" VALUES('47','Bournel','35',261,250,14.7,'-1851','49578',72,161);
INSERT INTO "communes" VALUES('47','Laussou','24',278,234,17.15,'-1722','49510',75,200);
INSERT INTO "communes" VALUES('47','Saint-Martin-de-Beauville','04',173,123,7.54,'-1687','49141',70,201);
INSERT INTO "communes" VALUES('47','Monflanquin','24',2373,2259,62.21,'-1743','49480',64,207);
INSERT INTO "communes" VALUES('47','Buzet-sur-Baïse','10',1276,1236,21.15,'-2264','49176',22,143);
INSERT INTO "communes" VALUES('47','Verteuil-d''Agenais','08',558,544,22.42,'-2135','49405',43,137);
INSERT INTO "communes" VALUES('47','Puymiclan','31',570,568,25.74,'-2245','49458',42,126);
INSERT INTO "communes" VALUES('47','Saint-Aubin','24',429,420,18.51,'-1649','49418',74,219);
INSERT INTO "communes" VALUES('47','Sainte-Livrade-sur-Lot','30',6290,5866,30.94,'-1941','49331',37,194);
INSERT INTO "communes" VALUES('47','Pailloles','06',338,281,9.16,'-1882','49412',54,180);
INSERT INTO "communes" VALUES('47','Puymirol','29',965,864,19.54,'-1710','49097',57,191);
INSERT INTO "communes" VALUES('47','Antagnac','05',221,333,9.31,'-2587','49281',106,152);
INSERT INTO "communes" VALUES('47','Moncrabeau','12',825,780,49.94,'-2184','48927',52,185);
INSERT INTO "communes" VALUES('47','Courbiac','33',110,112,9.05,'-1442','49308',136,272);
INSERT INTO "communes" VALUES('47','Agnac','17',441,388,13.84,'-2167','49603',39,125);
INSERT INTO "communes" VALUES('47','Rives','35',240,216,12.79,'-1773','49605',79,123);
INSERT INTO "communes" VALUES('47','Lafox','29',1163,817,5.23,'-1817','49076',45,146);
INSERT INTO "communes" VALUES('47','Castelnau-sur-Gupie','31',827,681,15.23,'-2449','49511',28,129);
INSERT INTO "communes" VALUES('47','Salles','24',318,257,21.58,'-1628','49499',84,196);
INSERT INTO "communes" VALUES('47','Saint-Urcisse','29',230,161,10.93,'-1687','49068',59,186);
INSERT INTO "communes" VALUES('47','Fumel','13',5162,5413,22.66,'-1521','49443',56,207);
INSERT INTO "communes" VALUES('47','Lacapelle-Biron','24',457,429,13.96,'-1601','49556',145,243);
INSERT INTO "communes" VALUES('47','Montpouillan','21',672,557,12.07,'-2479','49409',18,133);
INSERT INTO "communes" VALUES('47','Saint-Caprais-de-Lerm','29',602,476,13.6,'-1770','49126',58,195);
INSERT INTO "communes" VALUES('47','Masquières','33',185,126,12.31,'-1425','49341',149,263);
INSERT INTO "communes" VALUES('47','Thézac','33',196,162,11.21,'-1468','49366',120,257);
INSERT INTO "communes" VALUES('47','Estillac','15',1904,1307,7.94,'-1969','49063',54,164);
INSERT INTO "communes" VALUES('47','Laparade','08',445,408,16.22,'-2099','49320',32,192);
INSERT INTO "communes" VALUES('47','Mongaillard','18',187,171,8.53,'-2270','49119',50,163);
INSERT INTO "communes" VALUES('47','Aiguillon','27',4320,4220,28.28,'-2217','49222',22,168);
INSERT INTO "communes" VALUES('47','Beaugas','06',345,349,22.48,'-1888','49451',81,220);
INSERT INTO "communes" VALUES('47','Montignac-de-Lauzun','17',281,282,20.46,'-2081','49526',61,147);
INSERT INTO "communes" VALUES('47','Castella','16',334,314,12.52,'-1836','49237',109,232);
INSERT INTO "communes" VALUES('47','Hautefage-la-Tour','26',812,655,20.75,'-1725','49247',70,217);
INSERT INTO "communes" VALUES('47','Auradou','26',383,258,11.17,'-1695','49260',69,222);
INSERT INTO "communes" VALUES('47','Saint-Léon','10',298,258,9.6,'-2327','49214',52,157);
INSERT INTO "communes" VALUES('47','Parranquet','35',123,121,9.62,'-1692','49619',96,210);
INSERT INTO "communes" VALUES('47','Lougratte','09',449,393,20.45,'-1903','49537',82,183);
INSERT INTO "communes" VALUES('47','Ségalas','17',167,169,12.84,'-2006','49542',77,153);
INSERT INTO "communes" VALUES('47','Tourtrès','23',142,121,11.71,'-2121','49451',59,171);
INSERT INTO "communes" VALUES('47','Miramont-de-Guyenne','17',3276,3357,16.66,'-2195','49557',42,120);
INSERT INTO "communes" VALUES('47','Saint-Salvy','27',176,187,9.26,'-2109','49222',63,184);
INSERT INTO "communes" VALUES('47','Monheurt','10',223,251,11.44,'-2254','49267',22,32);
INSERT INTO "communes" VALUES('47','Agmé','19',141,102,5.01,'-2211','49434',48,116);
INSERT INTO "communes" VALUES('47','Seyches','31',1017,868,24.69,'-2257','49500',46,133);
INSERT INTO "communes" VALUES('47','Monsempron-Libos','13',2051,2135,9.05,'-1551','49434',59,155);
INSERT INTO "communes" VALUES('47','Prayssas','28',948,919,26.48,'-2031','49209',66,207);
INSERT INTO "communes" VALUES('47','Coulx','08',243,248,16.32,'-2072','49408',50,182);
INSERT INTO "communes" VALUES('47','Condezaygues','13',857,837,10.81,'-1578','49430',56,172);
INSERT INTO "communes" VALUES('47','Montayral','33',2876,2935,24.54,'-1499','49422',57,227);
INSERT INTO "communes" VALUES('47','Saint-Robert','16',188,175,6.74,'-1713','49163',82,213);
INSERT INTO "communes" VALUES('47','Saint-Léger','10',169,162,5.79,'-2242','49210',22,34);
INSERT INTO "communes" VALUES('47','Saint-Sauveur-de-Meilhan','21',314,245,7.03,'-2598','49424',23,132);
INSERT INTO "communes" VALUES('47','Grayssas','29',127,118,9.37,'-1625','49072',64,195);
INSERT INTO "communes" VALUES('47','Bourlens','33',357,353,15.44,'-1517','49354',96,235);
INSERT INTO "communes" VALUES('47','Armillac','17',193,141,7.77,'-2167','49508',60,139);
INSERT INTO "communes" VALUES('47','Castelculier','29',2315,1697,14.95,'-1826','49083',49,177);
INSERT INTO "communes" VALUES('47','Pompogne','14',194,138,35.96,'-2539','49173',77,147);
INSERT INTO "communes" VALUES('47','Damazan','10',1281,1237,16.37,'-2290','49211',28,147);
INSERT INTO "communes" VALUES('47','Dausse','26',501,431,6.94,'-1607','49315',73,225);
INSERT INTO "communes" VALUES('47','Laugnac','28',633,545,17.35,'-1924','49230',90,246);
INSERT INTO "communes" VALUES('47','Tayrac','04',329,320,12.89,'-1661','49108',62,193);
INSERT INTO "communes" VALUES('47','Grézet-Cavagnan','05',352,256,12.55,'-2449','49315',39,157);
INSERT INTO "communes" VALUES('47','Labretonie','08',175,159,11.8,'-2188','49432',49,138);
INSERT INTO "communes" VALUES('47','Saint-Jean-de-Thurac','29',502,408,5.12,'-1771','49060',45,186);
INSERT INTO "communes" VALUES('47','Le Temple-sur-Lot','30',971,969,16.91,'-2013','49311',32,190);
INSERT INTO "communes" VALUES('47','Sos','22',713,643,52.89,'-2440','48936',63,162);
INSERT INTO "communes" VALUES('47','Saint-Sixte','03',329,282,5.92,'-1726','49032',45,71);
INSERT INTO "communes" VALUES('47','Nérac','25',7125,6786,62.68,'-2219','49040',38,191);
INSERT INTO "communes" VALUES('47','Saint-Pierre-de-Clairac','29',831,721,13.15,'-1751','49088',52,177);
INSERT INTO "communes" VALUES('47','Laroque-Timbaut','16',1516,1322,21.64,'-1749','49204',87,222);
INSERT INTO "communes" VALUES('47','Beaupuy','38',1480,1028,8.17,'-2434','49484',28,103);
INSERT INTO "communes" VALUES('47','Lagupie','31',655,489,8.69,'-2469','49507',20,121);
INSERT INTO "communes" VALUES('47','Lasserre','12',77,82,6.49,'-2161','48961',52,152);
INSERT INTO "communes" VALUES('47','Pinel-Hauterive','23',525,461,21.77,'-1965','49377',37,204);
INSERT INTO "communes" VALUES('47','Bazens','27',530,480,12.21,'-2127','49181',30,200);
INSERT INTO "communes" VALUES('47','Villeton','20',527,519,10.24,'-2294','49291',22,43);
INSERT INTO "communes" VALUES('47','Madaillan','28',614,501,24.39,'-1958','49197',61,225);
INSERT INTO "communes" VALUES('47','Peyrière','17',279,242,8.14,'-2243','49528',63,132);
INSERT INTO "communes" VALUES('47','Montagnac-sur-Lède','24',252,267,19.55,'-1658','49491',85,231);
INSERT INTO "communes" VALUES('47','Guérin','05',246,234,10.43,'-2519','49345',57,146);
INSERT INTO "communes" VALUES('47','Sénestis','20',201,200,11.31,'-2340','49358',17,28);
INSERT INTO "communes" VALUES('47','Fréchou','25',207,249,11.97,'-2240','48983',52,142);
INSERT INTO "communes" VALUES('47','Poudenas','22',247,252,17.24,'-2364','48940',59,162);
INSERT INTO "communes" VALUES('47','Saint-Pé-Saint-Simon','22',222,210,17.46,'-2483','48892',73,161);
INSERT INTO "communes" VALUES('47','Saint-Martin-Petit','38',433,357,6.39,'-2502','49513',15,114);
INSERT INTO "communes" VALUES('47','Bouglon','05',613,528,13.92,'-2488','49326',35,143);
INSERT INTO "communes" VALUES('47','Lagruère','20',341,319,9.86,'-2327','49335',22,44);
INSERT INTO "communes" VALUES('47','Saint-Sylvestre-sur-Lot','26',2269,2062,21.27,'-1700','49332',52,218);
INSERT INTO "communes" VALUES('47','Trémons','26',377,340,13.49,'-1597','49345',52,230);
INSERT INTO "communes" VALUES('47','Saint-Astier','11',198,170,9.56,'-2313','49699',57,165);
INSERT INTO "communes" VALUES('47','Sainte-Colombe-de-Duras','11',99,77,6.97,'-2457','49656',32,115);
INSERT INTO "communes" VALUES('47','Mazières-Naresse','35',133,137,8.93,'-1814','49615',75,116);
INSERT INTO "communes" VALUES('47','Saint-Maurin','04',465,449,21.74,'-1604','49120',72,220);
INSERT INTO "communes" VALUES('47','Sainte-Colombe-de-Villeneuve','39',452,354,18.92,'-1864','49288',70,224);
INSERT INTO "communes" VALUES('47','Perche','17',133,125,8.42,'-2136','49488',62,141);
INSERT INTO "communes" VALUES('47','Monteton','31',277,238,13.81,'-2311','49581',33,128);
INSERT INTO "communes" VALUES('47','Lauzun','17',729,778,24.09,'-2084','49589',53,122);
INSERT INTO "communes" VALUES('47','Espiens','25',393,312,17.48,'-2177','49077',46,196);
INSERT INTO "communes" VALUES('47','Monségur','24',379,377,10.99,'-1619','49427',80,238);
INSERT INTO "communes" VALUES('47','Baleyssagues','11',182,176,8.18,'-2424','49650',25,108);
INSERT INTO "communes" VALUES('47','Feugarolles','18',926,865,23.82,'-2211','49135',27,172);
INSERT INTO "communes" VALUES('47','Lacaussade','24',211,168,10.28,'-1679','49451',78,172);
INSERT INTO "communes" VALUES('47','Saint-Nicolas-de-la-Balerme','03',397,354,4.72,'-1748','49041',45,73);
INSERT INTO "communes" VALUES('47','Saint-Pardoux-Isaac','17',1183,1217,7.26,'-2182','49568',44,122);
INSERT INTO "communes" VALUES('47','Saint-Pierre-sur-Dropt','31',278,226,8.18,'-2371','49604',28,70);
INSERT INTO "communes" VALUES('47','Saint-Quentin-du-Dropt','09',174,175,11.9,'-1929','49649',61,127);
INSERT INTO "communes" VALUES('47','Saint-Eutrope-de-Born','35',694,609,38.28,'-1820','49521',83,185);
INSERT INTO "communes" VALUES('47','Lusignan-Petit','28',370,273,7.35,'-2013','49190',46,198);
INSERT INTO "communes" VALUES('47','Longueville','19',351,260,4.79,'-2356','49402',20,35);
INSERT INTO "communes" VALUES('47','Rayet','35',168,155,10.02,'-1734','49641',87,167);
INSERT INTO "communes" VALUES('47','Escassefort','31',632,556,13.92,'-2332','49498',42,141);
INSERT INTO "communes" VALUES('47','Bajamont','02',929,931,12.2,'-1811','49184',64,211);
INSERT INTO "communes" VALUES('47','Lafitte-sur-Lot','32',791,694,15.99,'-2117','49280',27,67);
INSERT INTO "communes" VALUES('47','Francescas','12',695,714,21.23,'-2120','48960',63,171);
INSERT INTO "communes" VALUES('47','Caubeyres','10',222,135,14.39,'-2372','49175',85,183);
INSERT INTO "communes" VALUES('47','Villeneuve-de-Duras','11',317,254,11.81,'-2333','49712',54,131);
INSERT INTO "communes" VALUES('47','Saint-Front-sur-Lémance','13',562,576,19.58,'-1516','49530',99,276);
INSERT INTO "communes" VALUES('47','Boudy-de-Beauregard','06',402,356,10.07,'-1831','49487',82,156);
INSERT INTO "communes" VALUES('47','Saumont','25',235,158,6.74,'-2087','49024',56,152);
INSERT INTO "communes" VALUES('47','Taillebourg','19',85,92,7.11,'-2364','49386',17,25);
INSERT INTO "communes" VALUES('47','Beauville','04',578,553,23.17,'-1616','49196',84,231);
INSERT INTO "communes" VALUES('47','Cours','28',206,193,11.43,'-1942','49247',81,227);
INSERT INTO "communes" VALUES('47','Labastide-Castel-Amouroux','05',321,291,11.95,'-2457','49266',51,172);
INSERT INTO "communes" VALUES('47','Fongrave','23',612,565,9.46,'-2003','49329',38,177);
INSERT INTO "communes" VALUES('47','Beauziac','07',254,215,15.34,'-2544','49246',77,163);
INSERT INTO "communes" VALUES('47','Blaymont','04',226,196,13.56,'-1637','49227',85,228);
INSERT INTO "communes" VALUES('47','Cassignas','16',120,135,7.86,'-1720','49222',106,221);
INSERT INTO "communes" VALUES('48','Albaret-Sainte-Marie','20',564,452,15.98,'1012','49869',767,1139);
INSERT INTO "communes" VALUES('48','Recoules-de-Fumas','12',95,91,9.77,'1121','49601',879,1144);
INSERT INTO "communes" VALUES('48','Saint-Léger-du-Malzieu','11',207,190,18.92,'1081','49876',797,1184);
INSERT INTO "communes" VALUES('48','<NAME>','21',166,171,40.68,'1093','49225',438,1012);
INSERT INTO "communes" VALUES('48','Monts-Verts','20',341,336,29.13,'965','49842',916,1164);
INSERT INTO "communes" VALUES('48','Antrenas','12',325,303,17.55,'1031','49535',720,1183);
INSERT INTO "communes" VALUES('48','Gabrias','12',138,125,20.65,'1151','49494',717,1200);
INSERT INTO "communes" VALUES('48','<NAME>','07',179,129,18.5,'1419','49240',552,1179);
INSERT INTO "communes" VALUES('48','Malbouzon','16',146,160,14.26,'887','49668',1143,1264);
INSERT INTO "communes" VALUES('48','Saint-Laurent-de-Muret','12',177,164,46.04,'967','49559',976,1381);
INSERT INTO "communes" VALUES('48','Villefort','24',608,620,7.35,'1773','49377',509,960);
INSERT INTO "communes" VALUES('48','Chasseradès','03',158,151,61.93,'1655','49501',951,1482);
INSERT INTO "communes" VALUES('48','Florac','07',1942,1993,29.89,'1396','49251',522,1141);
INSERT INTO "communes" VALUES('48','Rousses','07',102,87,22.38,'1390','49118',660,1343);
INSERT INTO "communes" VALUES('48','<NAME>-de-Montvert','17',276,270,90.25,'1563','49293',665,1699);
INSERT INTO "communes" VALUES('48','Gabriac','02',109,97,8.44,'1541','49086',353,864);
INSERT INTO "communes" VALUES('48','Saint-Julien-du-Tournel','03',110,109,36.57,'1497','49445',912,1542);
INSERT INTO "communes" VALUES('48','Sainte-Hélène','03',71,52,6.73,'1407','49466',793,1212);
INSERT INTO "communes" VALUES('48','Sainte-Enimie','21',527,509,87.34,'1194','49296',444,1096);
INSERT INTO "communes" VALUES('48','Fontanès','10',118,110,11.28,'1610','49744',791,1075);
INSERT INTO "communes" VALUES('48','Vignes','13',107,118,28.84,'990','49198',400,1022);
INSERT INTO "communes" VALUES('48','Saint-Léger-de-Peyre','12',169,176,27.35,'1072','49549',670,1154);
INSERT INTO "communes" VALUES('48','Chaulhac','11',72,79,9.47,'1022','49914',740,1024);
INSERT INTO "communes" VALUES('48','Brenoux','25',361,304,11.25,'1330','49426',729,1082);
INSERT INTO "communes" VALUES('48','Estables','19',174,171,32.89,'1278','49632',1090,1553);
INSERT INTO "communes" VALUES('48','Chambon-le-Château','09',292,260,8.12,'1470','49837',891,1153);
INSERT INTO "communes" VALUES('48','Langogne','10',3014,3097,31.37,'1687','49696',886,1097);
INSERT INTO "communes" VALUES('48','Marvejols','12',5053,5504,12.45,'1059','49504',632,918);
INSERT INTO "communes" VALUES('48','Brion','08',98,111,22.11,'816','49727',980,1272);
INSERT INTO "communes" VALUES('48','Canilhac','04',139,102,7.27,'904','49360',499,940);
INSERT INTO "communes" VALUES('48','<NAME>','19',40,53,22.79,'1316','49683',1217,1506);
INSERT INTO "communes" VALUES('48','Fraissinet-de-Lozère','17',226,190,38.58,'1515','49305',669,1699);
INSERT INTO "communes" VALUES('48','Saint-Juéry','08',67,60,1.65,'833','49808',910,1064);
INSERT INTO "communes" VALUES('48','Fournels','08',368,325,15.76,'872','49796',909,1240);
INSERT INTO "communes" VALUES('48','Montrodat','12',1134,983,20.65,'1102','49502',640,1103);
INSERT INTO "communes" VALUES('48','<NAME>','14',150,147,30.21,'1360','49511',918,1437);
INSERT INTO "communes" VALUES('48','Luc','10',227,209,46.1,'1727','49611',925,1386);
INSERT INTO "communes" VALUES('48','Pied-de-Borne','24',217,195,27.89,'1831','49417',276,960);
INSERT INTO "communes" VALUES('48','Salces','23',95,82,45.78,'917','49482',789,1452);
INSERT INTO "communes" VALUES('48','Saint-Étienne-du-Valdonnez','25',638,469,56.09,'1362','49395',754,1557);
INSERT INTO "communes" VALUES('48','Pierrefiche','06',164,153,16.82,'1552','49656',1074,1285);
INSERT INTO "communes" VALUES('48','Pourcharesses','24',121,108,31.79,'1774','49376',600,1662);
INSERT INTO "communes" VALUES('48','Grandrieu','09',760,772,65.37,'1441','49760',867,1317);
INSERT INTO "communes" VALUES('48','Saint-André-de-Lancize','22',126,112,22.78,'1638','49176',376,1351);
INSERT INTO "communes" VALUES('48','Belvézet','03',92,81,12.39,'1565','49515',1156,1497);
INSERT INTO "communes" VALUES('48','Saint-Germain-de-Calberte','22',455,484,38.6,'1636','49131',275,1147);
INSERT INTO "communes" VALUES('48','Paulhac-en-Margeride','11',105,120,15.79,'1160','49941',1056,1496);
INSERT INTO "communes" VALUES('48','Saint-Pierre-le-Vieux','11',286,241,15.55,'1080','49830',840,1090);
INSERT INTO "communes" VALUES('48','<NAME>','22',668,710,26.47,'1763','49162',260,900);
INSERT INTO "communes" VALUES('48','Saint-Paul-le-Froid','09',146,188,44.17,'1372','49768',1154,1469);
INSERT INTO "communes" VALUES('48','Saint-Denis-en-Margeride','19',182,207,38.67,'1261','49706',995,1485);
INSERT INTO "communes" VALUES('48','Le Malzieu-Ville','11',881,971,7.8,'1105','49840',826,1063);
INSERT INTO "communes" VALUES('48','Chastel-Nouvel','14',736,625,31.5,'1295','49510',759,1302);
INSERT INTO "communes" VALUES('48','Hermaux','23',115,111,17.59,'883','49462',589,1361);
INSERT INTO "communes" VALUES('48','Laval-du-Tarn','04',108,109,36.85,'1130','49282',449,1021);
INSERT INTO "communes" VALUES('48','<NAME>','15',150,153,2.03,'971','49101',387,849);
INSERT INTO "communes" VALUES('48','Saint-Privat-du-Fau','11',133,118,22.16,'1115','49908',879,1417);
INSERT INTO "communes" VALUES('48','Saint-Chély-d''Apcher','20',4323,4319,28.26,'1043','49781',935,1126);
INSERT INTO "communes" VALUES('48','Ribennes','19',166,172,24.97,'1179','49599',917,1203);
INSERT INTO "communes" VALUES('48','<NAME>','23',904,725,19.3,'1020','49461',570,1053);
INSERT INTO "communes" VALUES('48','Saint-Laurent-de-Trèves','07',179,136,23.09,'1407','49190',568,1166);
INSERT INTO "communes" VALUES('48','Altier','24',207,207,54.45,'1694','49416',616,1678);
INSERT INTO "communes" VALUES('48','Marchastel','16',77,73,34.87,'856','49612',1139,1304);
INSERT INTO "communes" VALUES('48','Rimeize','20',605,517,32.3,'1097','49739',890,1125);
INSERT INTO "communes" VALUES('48','Saint-Andéol-de-Clerguemort','17',103,73,6.86,'1745','49213',379,970);
INSERT INTO "communes" VALUES('48','Saint-Michel-de-Dèze','22',209,191,14.19,'1733','49167',309,975);
INSERT INTO "communes" VALUES('48','Saint-Bonnet-de-Chirac','12',53,57,7.68,'1052','49459',579,960);
INSERT INTO "communes" VALUES('48','Saint-Maurice-de-Ventalon','17',75,81,38.51,'1658','49248',640,1493);
INSERT INTO "communes" VALUES('48','Prinsuéjols','16',158,162,42.96,'924','49638',1084,1286);
INSERT INTO "communes" VALUES('48','Rocles','10',216,197,19.84,'1607','49682',976,1243);
INSERT INTO "communes" VALUES('48','Bessons','20',449,362,23.49,'1018','49747',972,1274);
INSERT INTO "communes" VALUES('48','Saint-Pierre-de-Nogaret','23',164,158,16.44,'890','49413',509,1251);
INSERT INTO "communes" VALUES('48','Esclanèdes','05',319,250,12.51,'1139','49424',627,1001);
INSERT INTO "communes" VALUES('48','Julianges','11',73,71,9.42,'1080','49922',891,1340);
INSERT INTO "communes" VALUES('48','<NAME>','04',2120,1923,104.29,'976','49370',521,1008);
INSERT INTO "communes" VALUES('48','Saint-Bauzile','25',609,504,29.33,'1295','49424',687,1110);
INSERT INTO "communes" VALUES('48','Saint-Julien-d''Arpaon','02',119,134,20.72,'1477','49222',580,1421);
INSERT INTO "communes" VALUES('48','Naussac','10',205,190,13.52,'1669','49697',869,1064);
INSERT INTO "communes" VALUES('48','Saint-Germain-du-Teil','23',798,802,22.58,'929','49420',520,1122);
INSERT INTO "communes" VALUES('48','Allenc','03',253,189,38.58,'1472','49490',926,1326);
INSERT INTO "communes" VALUES('48','Saint-Flour-de-Mercoire','10',184,121,12.17,'1654','49662',954,1229);
INSERT INTO "communes" VALUES('48','La Fage-Saint-Julien','20',284,237,18.06,'950','49781',1032,1234);
INSERT INTO "communes" VALUES('48','<NAME>','12',225,210,24.45,'998','49586',880,1288);
INSERT INTO "communes" VALUES('48','Vialas','17',433,425,49.77,'1733','49260',335,1509);
INSERT INTO "communes" VALUES('48','Saint-Julien-des-Points','22',111,91,3.83,'1810','49173',248,725);
INSERT INTO "communes" VALUES('48','Saint-Frézal-de-Ventalon','17',158,143,16.89,'1687','49206',378,1128);
INSERT INTO "communes" VALUES('48','Cheylard-l''Évêque','10',63,54,29.64,'1629','49609',1055,1491);
INSERT INTO "communes" VALUES('48','<NAME>','02',183,154,22.8,'1464','49106',379,1047);
INSERT INTO "communes" VALUES('48','<NAME>','11',470,357,48.65,'1102','49838',855,1486);
INSERT INTO "communes" VALUES('48','Saint-Jean-la-Fouillouse','06',166,148,29.27,'1505','49668',1086,1348);
INSERT INTO "communes" VALUES('48','Molezon','02',90,85,14.76,'1494','49120',389,1011);
INSERT INTO "communes" VALUES('48','Salelles','05',150,118,10.62,'1048','49424',580,940);
INSERT INTO "communes" VALUES('48','Saint-Pierre-des-Tripiers','15',77,78,34.74,'1024','49110',392,1065);
INSERT INTO "communes" VALUES('48','Palhers','12',200,172,8.59,'1069','49467',668,1022);
INSERT INTO "communes" VALUES('48','Balsièges','25',517,508,32.88,'1246','49423',652,1093);
INSERT INTO "communes" VALUES('48','Lajo','18',108,136,18.58,'1211','49820',1064,1436);
INSERT INTO "communes" VALUES('48','Lachamp','19',177,142,25.89,'1149','49568',840,1187);
INSERT INTO "communes" VALUES('48','Sainte-Colombe-de-Peyre','01',199,203,21.9,'1003','49656',1018,1258);
INSERT INTO "communes" VALUES('48','Cubiérettes','03',54,50,11.34,'1612','49399',960,1625);
INSERT INTO "communes" VALUES('48','Mas-d''Orcières','03',124,131,36.56,'1524','49422',1000,1699);
INSERT INTO "communes" VALUES('48','<NAME>','08',168,167,37.77,'907','49731',1030,1292);
INSERT INTO "communes" VALUES('48','Chaudeyrac','06',308,263,44.1,'1578','49622',1119,1436);
INSERT INTO "communes" VALUES('48','Auroux','10',420,379,35.09,'1545','49725',909,1271);
INSERT INTO "communes" VALUES('48','Cocurès','07',196,173,3.55,'1426','49276',561,980);
INSERT INTO "communes" VALUES('48','Saint-Amans','19',147,133,9.98,'1237','49626',1050,1264);
INSERT INTO "communes" VALUES('48','Saint-Martin-de-Lansuscle','22',186,140,18.05,'1574','49129',376,1147);
INSERT INTO "communes" VALUES('48','Saint-Frézal-d''Albuges','03',53,42,17.2,'1577','49521',1120,1496);
INSERT INTO "communes" VALUES('48','Banassac','04',866,813,17.41,'959','49373',504,927);
INSERT INTO "communes" VALUES('48','Saint-Hilaire-de-Lavit','22',108,86,10.31,'1697','49170',333,927);
INSERT INTO "communes" VALUES('48','Saint-Gal','19',111,56,9.88,'1209','49632',993,1143);
INSERT INTO "communes" VALUES('48','Châteauneuf-de-Randon','06',531,531,24.49,'1487','49601',1116,1339);
INSERT INTO "communes" VALUES('48','Montbel','06',132,139,22.87,'1532','49547',1186,1436);
INSERT INTO "communes" VALUES('48','La Tieule','04',106,68,24,'911','49315',660,1018);
INSERT INTO "communes" VALUES('48','La Bastide-Puylaurent','24',172,157,24.19,'1743','49547',751,1328);
INSERT INTO "communes" VALUES('48','Cubières','03',175,197,48.88,'1596','49415',756,1633);
INSERT INTO "communes" VALUES('48','Albaret-le-Comtal','08',194,196,29.56,'879','49861',740,1161);
INSERT INTO "communes" VALUES('48','Chirac','23',1172,1005,33.79,'1032','49471',605,1254);
INSERT INTO "communes" VALUES('48','Saint-Rome-de-Dolan','13',80,73,32.63,'977','49193',387,1001);
INSERT INTO "communes" VALUES('48','Barre-des-Cévennes','02',204,179,34.29,'1463','49161',500,1064);
INSERT INTO "communes" VALUES('48','Quézac','21',348,246,26.91,'1320','49300',479,1080);
INSERT INTO "communes" VALUES('48','Vebron','07',201,196,69.66,'1379','49155',611,1246);
INSERT INTO "communes" VALUES('48','Serverette','18',284,289,17.35,'1166','49671',959,1106);
INSERT INTO "communes" VALUES('48','Bédouès','07',289,299,26.8,'1409','49268',540,1170);
INSERT INTO "communes" VALUES('48','Noalhac','08',98,82,13.51,'856','49790',913,1255);
INSERT INTO "communes" VALUES('48','Saint-Laurent-de-Veyrès','08',43,37,9.11,'880','49745',1030,1271);
INSERT INTO "communes" VALUES('48','Hures-la-Parade','15',234,181,88.59,'1129','49161',501,1204);
INSERT INTO "communes" VALUES('48','Aumont-Aubrac','01',1111,1029,26.53,'1052','49692',970,1165);
INSERT INTO "communes" VALUES('48','Mas-Saint-Chély','21',140,111,56.81,'1177','49232',800,1156);
INSERT INTO "communes" VALUES('48','Saint-Étienne-Vallée-Française','22',534,487,50.99,'1672','49074',194,925);
INSERT INTO "communes" VALUES('48','Fontans','18',212,196,33.9,'1167','49710',910,1123);
INSERT INTO "communes" VALUES('48','Trélans','23',101,113,23.35,'839','49444',714,1469);
INSERT INTO "communes" VALUES('48','Saint-Alban-sur-Limagnole','18',1505,1600,51.23,'1169','49757',872,1305);
INSERT INTO "communes" VALUES('48','Fraissinet-de-Fourques','15',63,67,24.3,'1336','49128',660,1343);
INSERT INTO "communes" VALUES('48','Montbrun','21',86,72,29.97,'1297','49263',479,1105);
INSERT INTO "communes" VALUES('48','Pelouse','14',225,151,32.98,'1422','49521',859,1431);
INSERT INTO "communes" VALUES('48','Arzenc-de-Randon','06',201,195,69.2,'1439','49624',1146,1542);
INSERT INTO "communes" VALUES('48','Saint-Sauveur-de-Peyre','01',276,251,27.61,'1056','49621',852,1180);
INSERT INTO "communes" VALUES('48','Chanac','05',1399,1155,71.14,'1118','49407',612,1004);
INSERT INTO "communes" VALUES('48','Moissac-Vallée-Française','22',223,228,27.05,'1609','49070',256,768);
INSERT INTO "communes" VALUES('48','Cultures','05',133,106,3.96,'1157','49437',650,1000);
INSERT INTO "communes" VALUES('48','Bassurels','02',43,47,46.34,'1432','49088',553,1562);
INSERT INTO "communes" VALUES('48','Saint-Saturnin','04',63,73,9.14,'946','49346',563,967);
INSERT INTO "communes" VALUES('48','Fau-de-Peyre','01',182,182,26.72,'985','49720',992,1247);
INSERT INTO "communes" VALUES('48','Saint-André-Capcèze','24',168,146,9.85,'1791','49352',423,1087);
INSERT INTO "communes" VALUES('48','Saint-Bonnet-de-Montauroux','09',124,128,21.33,'1537','49795',729,1180);
INSERT INTO "communes" VALUES('48','Prunières','11',253,175,13.09,'1117','49807',868,1121);
INSERT INTO "communes" VALUES('48','Chastanier','10',92,88,10.41,'1576','49695',952,1169);
INSERT INTO "communes" VALUES('48','Barjac','05',660,597,29.92,'1193','49450',650,1212);
INSERT INTO "communes" VALUES('48','Saint-Sauveur-de-Ginestoux','06',62,68,22.14,'1410','49672',1217,1488);
INSERT INTO "communes" VALUES('48','Sainte-Croix-Vallée-Française','02',319,281,18.57,'1562','49089',320,924);
INSERT INTO "communes" VALUES('48','Ispagnac','07',856,759,53.71,'1332','49301',499,1233);
INSERT INTO "communes" VALUES('48','Javols','01',331,277,31.21,'1117','49659',931,1117);
INSERT INTO "communes" VALUES('48','Chadenet','03',120,97,12.96,'1442','49466',859,1345);
INSERT INTO "communes" VALUES('48','Mende','99',12140,11792,36.56,'1293','49465',691,1236);
INSERT INTO "communes" VALUES('48','Saint-Privat-de-Vallongue','22',272,249,23.87,'1666','49198',354,1353);
INSERT INTO "communes" VALUES('48','Lanuéjols','25',317,208,32.67,'1373','49445',778,1421);
INSERT INTO "communes" VALUES('48','Badaroux','14',907,848,20.72,'1348','49485',736,1220);
INSERT INTO "communes" VALUES('48','Arzenc-d''Apcher','08',49,58,7.88,'869','49835',760,1137);
INSERT INTO "communes" VALUES('48','Cassagnas','02',118,134,35.19,'1566','49190',667,1398);
INSERT INTO "communes" VALUES('48','<NAME>','13',125,110,23.69,'901','49264',788,1016);
INSERT INTO "communes" VALUES('48','Grandvals','16',83,91,12.84,'778','49711',1018,1235);
INSERT INTO "communes" VALUES('48','Meyrueis','15',825,851,104.68,'1214','49087',611,1562);
INSERT INTO "communes" VALUES('48','Gatuzières','15',42,56,29.4,'1281','49110',759,1562);
INSERT INTO "communes" VALUES('48','Laubert','06',102,133,14.28,'1449','49540',1186,1428);
INSERT INTO "communes" VALUES('48','Prévenchères','24',260,215,62.75,'1748','49468',337,1294);
INSERT INTO "communes" VALUES('48','Chauchailles','08',97,97,17.4,'830','49773',918,1257);
INSERT INTO "communes" VALUES('48','<NAME>','09',77,99,37.83,'1392','49700',1177,1506);
INSERT INTO "communes" VALUES('48','<NAME>','01',269,207,19.33,'1018','49670',1010,1217);
INSERT INTO "communes" VALUES('48','Nasbinals','16',500,505,63.34,'789','49625',1080,1386);
INSERT INTO "communes" VALUES('48','Sainte-Eulalie','18',46,64,21.31,'1256','49767',1153,1454);
INSERT INTO "communes" VALUES('48','Rieutort-de-Randon','19',756,646,62.34,'1269','49594',1034,1550);
INSERT INTO "communes" VALUES('48','Saint-Georges-de-Lévéjac','13',259,247,56.26,'994','49244',420,1005);
INSERT INTO "communes" VALUES('48','Saint-Symphorien','09',249,258,33.28,'1431','49822',948,1237);
INSERT INTO "communes" VALUES('48','Laval-Atger','09',166,190,10.67,'1510','49787',828,1175);
INSERT INTO "communes" VALUES('48','Recoules-d''Aubrac','16',241,272,26.55,'764','49658',1049,1374);
INSERT INTO "communes" VALUES('48','Saint-Martin-de-Boubaux','22',172,163,31.41,'1762','49111',200,925);
INSERT INTO "communes" VALUES('48','Termes','08',217,202,17.65,'922','49792',1015,1223);
INSERT INTO "communes" VALUES('48','<NAME>','13',350,323,17.94,'931','49232',815,1005);
INSERT INTO "communes" VALUES('48','<NAME>','03',356,446,16.36,'1554','49429',1037,1482);
INSERT INTO "communes" VALUES('48','Servières','19',182,152,19.38,'1187','49528',840,1265);
INSERT INTO "communes" VALUES('48','Bondons','07',142,150,45.54,'1425','49318',600,1569);
INSERT INTO "communes" VALUES('48','Bagnols-les-Bains','03',238,244,2.4,'1476','49451',898,1145);
INSERT INTO "communes" VALUES('48','Grèzes','12',225,245,16.21,'1113','49459',709,1032);
INSERT INTO "communes" VALUES('48','Blavignac','20',236,226,13.83,'1056','49873',793,1106);
INSERT INTO "communes" VALUES('48','Laubies','19',171,148,22.8,'1214','49651',1010,1388);
INSERT INTO "communes" VALUES('49','Châtelais','30',634,576,23.68,'-3626','53064',26,102);
INSERT INTO "communes" VALUES('49','Nueil-sur-Layon','34',1357,1319,61.23,'-3003','52353',57,123);
INSERT INTO "communes" VALUES('49','Armaillé','24',284,289,16.78,'-3850','53016',39,100);
INSERT INTO "communes" VALUES('49','Saint-Just-sur-Dive','20',404,346,7.24,'-2708','52415',26,39);
INSERT INTO "communes" VALUES('49','Fontaine-Milon','31',487,354,8.46,'-2872','52780',31,88);
INSERT INTO "communes" VALUES('49','Pontigné','04',257,218,24.17,'-2642','52831',47,92);
INSERT INTO "communes" VALUES('49','Brigné','13',407,316,14.63,'-3023','52491',40,90);
INSERT INTO "communes" VALUES('49','Mozé-sur-Louet','23',2063,2001,25.53,'-3209','52619',12,94);
INSERT INTO "communes" VALUES('49','Saint-Clément-des-Levées','28',1149,1005,10.22,'-2801','52590',20,27);
INSERT INTO "communes" VALUES('49','Saint-Sauveur-de-Landemont','09',870,653,11.69,'-3992','52538',13,91);
INSERT INTO "communes" VALUES('49','Chemillé','11',7028,6182,49.2,'-3404','52458',42,114);
INSERT INTO "communes" VALUES('49','La Varenne','09',1762,1372,14.35,'-4065','52570',1,82);
INSERT INTO "communes" VALUES('49','Saint-Philbert-en-Mauges','06',376,325,7.25,'-3726','52390',54,114);
INSERT INTO "communes" VALUES('49','Vaulandry','04',313,271,27.65,'-2645','52885',46,87);
INSERT INTO "communes" VALUES('49','Cholet','97',54098,54215,87.47,'-3573','52288',63,184);
INSERT INTO "communes" VALUES('49','Saint-Georges-des-Gardes','11',1590,1448,32.49,'-3440','52389',77,211);
INSERT INTO "communes" VALUES('49','Cernusson','34',310,279,8.45,'-3135','52417',69,116);
INSERT INTO "communes" VALUES('49','Vernantes','17',1982,1855,40.77,'-2538','52659',33,111);
INSERT INTO "communes" VALUES('49','<NAME>-sur-Oudon','30',586,482,12.62,'-3514','52976',19,68);
INSERT INTO "communes" VALUES('49','Tigné','34',765,718,16.78,'-3072','52445',37,98);
INSERT INTO "communes" VALUES('49','Saint-Clément-de-la-Place','18',1911,1391,33.23,'-3425','52806',40,102);
INSERT INTO "communes" VALUES('49','Cheviré-le-Rouge','04',923,724,35.96,'-2798','52884',30,104);
INSERT INTO "communes" VALUES('49','Verchers-sur-Layon','13',902,814,30.7,'-2926','52393',48,109);
INSERT INTO "communes" VALUES('49','Champtoceaux','09',2373,1748,15.54,'-4003','52597',2,86);
INSERT INTO "communes" VALUES('49','<NAME>','20',1267,1236,16.04,'-2857','52361',32,106);
INSERT INTO "communes" VALUES('49','<NAME>','16',1804,1423,22.15,'-3496','52837',51,97);
INSERT INTO "communes" VALUES('49','<NAME>','39',1259,950,7.99,'-3344','52825',21,96);
INSERT INTO "communes" VALUES('49','Beausse','25',392,360,5.36,'-3626','52579',83,156);
INSERT INTO "communes" VALUES('49','Toutlemonde','12',1138,956,12.63,'-3448','52283',93,176);
INSERT INTO "communes" VALUES('49','Beaupréau','06',6784,6217,35.79,'-3701','52447',32,117);
INSERT INTO "communes" VALUES('49','<NAME>','24',254,288,7.24,'-3905','53020',47,100);
INSERT INTO "communes" VALUES('49','Candé','07',2861,2593,4.91,'-3749','52845',32,67);
INSERT INTO "communes" VALUES('49','Sermaise','31',331,227,7.19,'-2833','52805',30,70);
INSERT INTO "communes" VALUES('49','Pruillé','16',635,531,12.68,'-3332','52864',12,83);
INSERT INTO "communes" VALUES('49','Meigné','13',354,314,13.19,'-2830','52480',59,100);
INSERT INTO "communes" VALUES('49','Rairies','14',970,866,8.41,'-2825','52946',22,43);
INSERT INTO "communes" VALUES('49','Rou-Marson','29',683,599,12.66,'-2770','52484',32,87);
INSERT INTO "communes" VALUES('49','Saint-Laurent-des-Autels','09',2152,1497,18.55,'-3919','52541',25,106);
INSERT INTO "communes" VALUES('49','Cerqueux-sous-Passavant','34',496,444,23.24,'-3114','52342',84,127);
INSERT INTO "communes" VALUES('49','Chavaignes','22',101,113,7.42,'-2555','52824',74,89);
INSERT INTO "communes" VALUES('49','Beauvau','31',253,209,7.98,'-2881','52866',33,90);
INSERT INTO "communes" VALUES('49','Noyant','22',1896,1844,27.41,'-2468','52791',51,89);
INSERT INTO "communes" VALUES('49','Bouillé-Ménard','24',738,638,15.79,'-3672','53047',32,104);
INSERT INTO "communes" VALUES('49','<NAME>','39',2129,2054,23.39,'-3340','52800',22,99);
INSERT INTO "communes" VALUES('49','Chalonnes-sous-le-Lude','22',137,134,16.49,'-2404','52844',52,101);
INSERT INTO "communes" VALUES('49','Saint-Lambert-du-Lattay','32',1894,1466,14.44,'-3298','52558',16,96);
INSERT INTO "communes" VALUES('49','Saint-Martin-de-la-Place','28',1156,1116,14.84,'-2762','52573',20,29);
INSERT INTO "communes" VALUES('49','Saint-Macaire-du-Bois','20',436,387,13.06,'-2916','52353',43,86);
INSERT INTO "communes" VALUES('49','Brézé','20',1308,1300,20.05,'-2661','52413',26,104);
INSERT INTO "communes" VALUES('49','Nuaillé','12',1379,1356,13.23,'-3480','52327',109,187);
INSERT INTO "communes" VALUES('49','Ambillou-Château','15',958,807,19.99,'-2978','52515',47,101);
INSERT INTO "communes" VALUES('49','<NAME>','20',906,867,13.4,'-2729','52439',27,67);
INSERT INTO "communes" VALUES('49','La Lande-Chasles','17',105,86,5.08,'-2668','52744',39,75);
INSERT INTO "communes" VALUES('49','Saint-Sauveur-de-Flée','30',287,250,12.87,'-3476','53060',42,86);
INSERT INTO "communes" VALUES('49','Beaucouzé','38',4938,4869,19.34,'-3299','52751',21,88);
INSERT INTO "communes" VALUES('49','Yzernay','12',1791,1577,40.66,'-3377','52246',122,184);
INSERT INTO "communes" VALUES('49','Champtocé-sur-Loire','26',1792,1533,36.76,'-3555','52680',11,83);
INSERT INTO "communes" VALUES('49','Chavagnes','32',1057,777,16.21,'-3102','52522',41,98);
INSERT INTO "communes" VALUES('49','<NAME>','11',729,597,12.54,'-3480','52460',94,123);
INSERT INTO "communes" VALUES('49','Angers','98',147571,151322,42.7,'-3213','52748',12,64);
INSERT INTO "communes" VALUES('49','Gesté','06',2579,2339,35.55,'-3830','52423',48,104);
INSERT INTO "communes" VALUES('49','Champ-sur-Layon','32',989,803,19.19,'-3236','52518',22,92);
INSERT INTO "communes" VALUES('49','Vihiers','34',4271,3991,59.7,'-3189','52385',52,211);
INSERT INTO "communes" VALUES('49','La Daguenière','23',1282,1246,11.92,'-3081','52689',16,21);
INSERT INTO "communes" VALUES('49','La Jumellière','11',1368,1065,29.09,'-3408','52534',20,104);
INSERT INTO "communes" VALUES('49','La Poitevinière','06',1065,976,26.73,'-3593','52475',57,126);
INSERT INTO "communes" VALUES('49','Saint-Michel-et-Chanveaux','24',368,364,27.67,'-3852','52978',39,105);
INSERT INTO "communes" VALUES('49','La Romagne','19',1763,1587,15.93,'-3732','52290',48,133);
INSERT INTO "communes" VALUES('49','Briollay','33',2668,2284,14.28,'-3161','52849',13,64);
INSERT INTO "communes" VALUES('49','Le May-sur-Èvre','06',3970,3892,31.62,'-3588','52373',72,128);
INSERT INTO "communes" VALUES('49','Corzé','31',1672,1519,31.49,'-3031','52844',15,68);
INSERT INTO "communes" VALUES('49','Beaufort-en-Vallée','05',6380,5384,35.66,'-2835','52711',17,51);
INSERT INTO "communes" VALUES('49','Châteauneuf-sur-Sarthe','10',3016,2408,14.39,'-3139','52979',16,72);
INSERT INTO "communes" VALUES('49','Saint-Paul-du-Bois','34',612,563,26.58,'-3201','52312',103,214);
INSERT INTO "communes" VALUES('49','Durtal','14',3349,3237,60.58,'-2864','52969',21,94);
INSERT INTO "communes" VALUES('49','La Boissière-sur-Èvre','21',418,367,6.02,'-3796','52557',17,102);
INSERT INTO "communes" VALUES('49','Trémentines','12',2813,2817,34.06,'-3470','52358',82,180);
INSERT INTO "communes" VALUES('49','Distré','29',1673,1217,14.72,'-2720','52471',25,77);
INSERT INTO "communes" VALUES('49','Montreuil-Juigné','39',7107,6669,13.81,'-3276','52809',12,72);
INSERT INTO "communes" VALUES('49','<NAME>ubaudière','06',1218,1134,10.9,'-3587','52414',65,118);
INSERT INTO "communes" VALUES('49','Parçay-les-Pins','22',915,1022,27.85,'-2419','52708',48,119);
INSERT INTO "communes" VALUES('49','La Chapelle-du-Genêt','06',1196,1002,9.1,'-3729','52426',42,114);
INSERT INTO "communes" VALUES('49','Brissarthe','10',630,528,16.99,'-3096','53001',17,78);
INSERT INTO "communes" VALUES('49','La Chapelle-Saint-Laud','31',646,422,10.63,'-2958','52905',28,98);
INSERT INTO "communes" VALUES('49','Soulaines-sur-Aubance','23',1156,1187,12.72,'-3176','52628',17,96);
INSERT INTO "communes" VALUES('49','Marigné','10',640,523,24.41,'-3284','53025',20,83);
INSERT INTO "communes" VALUES('49','Saint-Laurent-de-la-Plaine','25',1699,1537,18.44,'-3490','52575',29,113);
INSERT INTO "communes" VALUES('49','Soucelles','33',2620,1865,19.2,'-3061','52854',12,60);
INSERT INTO "communes" VALUES('49','Villebernier','27',1449,1350,9.91,'-2630','52503',23,32);
INSERT INTO "communes" VALUES('49','Carbay','24',244,208,7.63,'-3951','53036',54,101);
INSERT INTO "communes" VALUES('49','Thouarcé','32',1838,1682,18.74,'-3151','52519',23,98);
INSERT INTO "communes" VALUES('49','Juvardeil','10',811,766,18.95,'-3150','52950',16,77);
INSERT INTO "communes" VALUES('49','Fontaine-Guérin','05',955,723,22.51,'-2806','52763',21,90);
INSERT INTO "communes" VALUES('49','<NAME>','21',1143,930,22.62,'-3835','52480',68,109);
INSERT INTO "communes" VALUES('49','Saint-Cyr-en-Bourg','20',982,1070,8.63,'-2663','52438',30,104);
INSERT INTO "communes" VALUES('49','Montigné-lès-Rairies','14',366,351,9.01,'-2821','52911',28,76);
INSERT INTO "communes" VALUES('49','Pouancé','24',3110,3308,48.97,'-3903','53045',48,108);
INSERT INTO "communes" VALUES('49','Melay','11',1608,1419,22.7,'-3371','52424',75,212);
INSERT INTO "communes" VALUES('49','Baugé','04',3681,3661,8.55,'-2712','52825',41,102);
INSERT INTO "communes" VALUES('49','Noyant-la-Gravoyère','30',1836,1761,11.91,'-3657','53004',32,102);
INSERT INTO "communes" VALUES('49','Saint-Rémy-la-Varenne','23',976,842,15.67,'-2947','52664',18,77);
INSERT INTO "communes" VALUES('49','Vaudelnay','20',1228,1058,25.48,'-2823','52375',31,104);
INSERT INTO "communes" VALUES('49','Chanzeaux','32',1160,944,31.47,'-3312','52516',19,104);
INSERT INTO "communes" VALUES('49','Chemellier','15',728,458,10.99,'-2994','52601',31,92);
INSERT INTO "communes" VALUES('49','Saint-Léger-sous-Cholet','35',2492,2604,9.6,'-3607','52326',93,132);
INSERT INTO "communes" VALUES('49','Meigné-le-Vicomte','22',301,322,23.13,'-2384','52788',71,96);
INSERT INTO "communes" VALUES('49','Mazières-en-Mauges','12',1000,955,8.9,'-3504','52273',88,163);
INSERT INTO "communes" VALUES('49','Nyoiseau','30',1281,1275,15.55,'-3614','53018',22,97);
INSERT INTO "communes" VALUES('49','Grugé-l''Hôpital','24',299,286,15.71,'-3751','53057',41,108);
INSERT INTO "communes" VALUES('49','Faveraye-Mâchelles','32',647,495,18.6,'-3151','52487',27,91);
INSERT INTO "communes" VALUES('49','Gené','16',456,259,9.25,'-3489','52923',36,54);
INSERT INTO "communes" VALUES('49','Challain-la-Potherie','07',827,774,47.87,'-3759','52929',42,106);
INSERT INTO "communes" VALUES('49','Chartrené','04',54,54,3.79,'-2736','52769',33,97);
INSERT INTO "communes" VALUES('49','Champigné','10',2068,1504,22.7,'-3232','52960',21,80);
INSERT INTO "communes" VALUES('49','Pellouailles-les-Vignes','01',2486,2164,3.57,'-3086','52802',32,53);
INSERT INTO "communes" VALUES('49','Saint-Georges-sur-Loire','26',3335,3010,33.36,'-3443','52677',11,81);
INSERT INTO "communes" VALUES('49','Chênehutte-Trèves-Cunault','15',1038,1104,27.61,'-2767','52565',20,96);
INSERT INTO "communes" VALUES('49','Passavant-sur-Layon','34',130,135,4.91,'-3028','52341',62,112);
INSERT INTO "communes" VALUES('49','Cheffes','33',912,821,17.35,'-3160','52912',14,53);
INSERT INTO "communes" VALUES('49','Chazé-Henry','24',858,943,19.87,'-3829','53059',52,107);
INSERT INTO "communes" VALUES('49','Saint-Germain-des-Prés','26',1364,1138,19.76,'-3523','52677',10,71);
INSERT INTO "communes" VALUES('49','Saint-Jean-de-Linières','26',1734,1400,8.66,'-3327','52731',29,79);
INSERT INTO "communes" VALUES('49','Cléré-sur-Layon','34',326,350,21.74,'-3064','52325',67,116);
INSERT INTO "communes" VALUES('49','Sceaux-d''Anjou','10',972,721,17.18,'-3270','52913',32,71);
INSERT INTO "communes" VALUES('49','Drain','09',1938,1665,19.05,'-3937','52599',5,92);
INSERT INTO "communes" VALUES('49','Saint-Laurent-du-Mottay','25',779,703,14.63,'-3651','52611',8,137);
INSERT INTO "communes" VALUES('49','Saint-Lambert-la-Potherie','39',2472,2218,13.81,'-3349','52760',39,76);
INSERT INTO "communes" VALUES('49','Savennières','26',1375,1156,21.01,'-3327','52648',12,77);
INSERT INTO "communes" VALUES('49','La Cornuaille','18',985,791,43.92,'-3691','52790',38,89);
INSERT INTO "communes" VALUES('49','Morannes','14',1790,1600,40.73,'-3059','53051',17,66);
INSERT INTO "communes" VALUES('49','Miré','10',1024,969,17.73,'-3143','53065',24,81);
INSERT INTO "communes" VALUES('49','Saint-Aubin-de-Luigné','08',1190,858,15.19,'-3338','52586',12,104);
INSERT INTO "communes" VALUES('49','Contigné','10',761,597,23.31,'-3170','53033',19,77);
INSERT INTO "communes" VALUES('49','Étriché','14',1541,1163,19.6,'-3091','52945',16,53);
INSERT INTO "communes" VALUES('49','Daumeray','14',1529,1313,40.53,'-2997','53002',17,67);
INSERT INTO "communes" VALUES('49','Aubigné-sur-Layon','34',359,334,5.32,'-3108','52458',36,80);
INSERT INTO "communes" VALUES('49','Montreuil-sur-Maine','16',689,557,11.13,'-3370','52945',17,61);
INSERT INTO "communes" VALUES('49','Neuvy-en-Mauges','11',822,709,18.13,'-3513','52519',45,126);
INSERT INTO "communes" VALUES('49','Trélazé','36',12384,11026,12.2,'-3114','52718',0,45);
INSERT INTO "communes" VALUES('49','Mazé','05',4811,3870,33.33,'-2899','52729',18,53);
INSERT INTO "communes" VALUES('49','Bourgneuf-en-Mauges','25',679,687,11.64,'-3524','52570',80,152);
INSERT INTO "communes" VALUES('49','<NAME>','21',1656,1455,30.29,'-3753','52468',28,109);
INSERT INTO "communes" VALUES('49','<NAME>','34',1063,896,17.27,'-3303','52396',89,204);
INSERT INTO "communes" VALUES('49','Cerqueux','12',821,642,13.86,'-3308','52223',139,186);
INSERT INTO "communes" VALUES('49','<NAME>','34',964,811,22.16,'-3302','52298',124,213);
INSERT INTO "communes" VALUES('49','<NAME>','04',1266,1217,28.63,'-2730','52813',27,89);
INSERT INTO "communes" VALUES('49','Roussay','19',1167,966,10.99,'-3779','52323',37,119);
INSERT INTO "communes" VALUES('49','Cizay-la-Madeleine','20',498,412,19.29,'-2804','52432',39,109);
INSERT INTO "communes" VALUES('49','Saint-Barthélemy-d''Anjou','02',8702,9832,14.58,'-3146','52742',22,49);
INSERT INTO "communes" VALUES('49','Bocé','04',603,501,16.01,'-2688','52785',39,97);
INSERT INTO "communes" VALUES('49','Montjean-sur-Loire','25',2939,2648,19.33,'-3553','52654',8,78);
INSERT INTO "communes" VALUES('49','Lué-en-Baugeois','31',342,288,7.42,'-2907','52806',27,89);
INSERT INTO "communes" VALUES('49','Cherré','10',532,397,13.91,'-3222','53012',35,74);
INSERT INTO "communes" VALUES('49','Béhuard','26',127,110,2.21,'-3312','52644',12,16);
INSERT INTO "communes" VALUES('49','Montpollin','04',214,129,4.49,'-2712','52874',56,103);
INSERT INTO "communes" VALUES('49','Alleuds','32',890,636,10.47,'-3051','52577',49,73);
INSERT INTO "communes" VALUES('49','Broc','22',336,315,21.23,'-2411','52866',40,117);
INSERT INTO "communes" VALUES('49','Angrie','07',951,678,40.97,'-3677','52856',36,88);
INSERT INTO "communes" VALUES('49','Blaison-Gohier','23',1096,951,21.45,'-3009','52667',18,91);
INSERT INTO "communes" VALUES('49','Sainte-Gemmes-sur-Loire','23',3957,3684,14.83,'-3215','52695',12,45);
INSERT INTO "communes" VALUES('49','Marcé','31',859,637,21.09,'-2959','52867',32,97);
INSERT INTO "communes" VALUES('49','Concourson-sur-Layon','13',543,546,18.21,'-2974','52416',46,95);
INSERT INTO "communes" VALUES('49','Montguillon','30',196,165,11.91,'-3423','53031',46,87);
INSERT INTO "communes" VALUES('49','<NAME>','15',436,360,11.02,'-2892','52635',17,84);
INSERT INTO "communes" VALUES('49','Auverse','22',450,390,30.74,'-2539','52798',55,102);
INSERT INTO "communes" VALUES('49','Soulaire-et-Bourg','33',1408,1188,18.08,'-3210','52866',14,59);
INSERT INTO "communes" VALUES('49','Louvaines','30',539,442,15.07,'-3488','52991',18,78);
INSERT INTO "communes" VALUES('49','<NAME>','05',2194,1901,17.37,'-2894','52670',17,25);
INSERT INTO "communes" VALUES('49','Grézillé','15',551,391,17.62,'-2982','52584',44,100);
INSERT INTO "communes" VALUES('49','Chanteloup-les-Bois','12',681,633,27.47,'-3358','52327',128,191);
INSERT INTO "communes" VALUES('49','Rablay-sur-Layon','32',732,636,7.44,'-3236','52550',20,89);
INSERT INTO "communes" VALUES('49','Saint-Sylvain-d''Anjou','01',4440,4541,21.26,'-3120','52800',17,53);
INSERT INTO "communes" VALUES('49','Saint-Crespin-sur-Moine','19',1565,1410,20.11,'-3914','52332',17,96);
INSERT INTO "communes" VALUES('49','Saint-Florent-le-Vieil','25',2677,2625,24.7,'-3725','52624',7,130);
INSERT INTO "communes" VALUES('49','Bécon-les-Granits','18',2687,2325,46.17,'-3486','52781',18,88);
INSERT INTO "communes" VALUES('49','Lézigné','31',719,634,9.3,'-2923','52929',17,63);
INSERT INTO "communes" VALUES('49','Avrillé','41',12639,12994,15.85,'-3250','52786',17,62);
INSERT INTO "communes" VALUES('49','Fougeré','04',756,737,24.18,'-2761','52919',27,102);
INSERT INTO "communes" VALUES('49','Louerre','15',438,372,14.44,'-2956','52552',49,103);
INSERT INTO "communes" VALUES('49','Brain-sur-Longuenée','16',1008,769,22.43,'-3443','52872',41,102);
INSERT INTO "communes" VALUES('49','La Membrolle-sur-Longuenée','39',1872,1454,9.44,'-3345','52846',12,102);
INSERT INTO "communes" VALUES('49','Saint-Sigismond','18',374,313,12.72,'-3644','52726',24,86);
INSERT INTO "communes" VALUES('49','Saint-Sulpice','23',179,180,2.9,'-3060','52667',18,80);
INSERT INTO "communes" VALUES('49','<NAME>','19',2078,1945,22.08,'-3773','52242',49,139);
INSERT INTO "communes" VALUES('49','<NAME>','18',2861,2066,65.57,'-3581','52802',27,91);
INSERT INTO "communes" VALUES('49','Baracé','14',471,317,13.46,'-2994','52933',17,62);
INSERT INTO "communes" VALUES('49','Montsoreau','29',480,540,5.19,'-2533','52463',27,88);
INSERT INTO "communes" VALUES('49','Mouliherne','17',917,854,40.79,'-2577','52741',33,99);
INSERT INTO "communes" VALUES('49','Cossé-d''Anjou','11',431,407,13.29,'-3349','52403',84,211);
INSERT INTO "communes" VALUES('49','Bouzillé','09',1473,1275,18.39,'-3830','52597',7,102);
INSERT INTO "communes" VALUES('49','Saint-Saturnin-sur-Loire','23',1323,1207,11.94,'-3080','52661',18,84);
INSERT INTO "communes" VALUES('49','Genneteil','22',348,294,35.95,'-2541','52881',49,89);
INSERT INTO "communes" VALUES('49','Saint-Léger-des-Bois','26',1527,1307,15.42,'-3384','52734',38,79);
INSERT INTO "communes" VALUES('49','Noëllet','24',445,393,15.4,'-3809','52993',33,104);
INSERT INTO "communes" VALUES('49','Seiches-sur-le-Loir','31',2960,2410,28.83,'-2992','52859',15,64);
INSERT INTO "communes" VALUES('49','Saulgé-l''Hôpital','32',550,365,6.6,'-3021','52551',48,72);
INSERT INTO "communes" VALUES('49','Torfou','19',2090,1922,32.35,'-3836','52264',39,133);
INSERT INTO "communes" VALUES('49','L''Hôtellerie-de-Flée','30',487,375,14.77,'-3584','53049',26,92);
INSERT INTO "communes" VALUES('49','<NAME>','35',3765,3507,31.15,'-3640','52292',48,139);
INSERT INTO "communes" VALUES('49','Parnay','29',482,460,6.54,'-2587','52479',26,101);
INSERT INTO "communes" VALUES('49','Andrezé','06',1830,1798,21.2,'-3655','52413',52,117);
INSERT INTO "communes" VALUES('49','Dénezé-sous-le-Lude','22',310,262,15.05,'-2446','52811',58,86);
INSERT INTO "communes" VALUES('49','Brion','05',1115,1027,28.29,'-2771','52713',21,88);
INSERT INTO "communes" VALUES('49','Saint-Georges-sur-Layon','13',785,592,22.5,'-3005','52442',39,86);
INSERT INTO "communes" VALUES('49','<NAME>','24',136,140,9.79,'-3785','53065',46,105);
INSERT INTO "communes" VALUES('49','Vivy','27',2413,1873,23.17,'-2656','52585',20,47);
INSERT INTO "communes" VALUES('49','Brain-sur-l''Authion','36',3291,2803,22.92,'-3053','52718',15,43);
INSERT INTO "communes" VALUES('49','Coron','34',1550,1301,31.49,'-3312','52364',84,188);
INSERT INTO "communes" VALUES('49','Chemiré-sur-Sarthe','10',272,244,6.62,'-3076','53057',18,69);
INSERT INTO "communes" VALUES('49','Tillières','19',1738,1268,24.13,'-3890','52383',28,101);
INSERT INTO "communes" VALUES('49','Blou','17',1022,825,21.46,'-2638','52625',23,111);
INSERT INTO "communes" VALUES('49','Saint-André-de-la-Marche','19',2817,2417,11.03,'-3702','52333',42,114);
INSERT INTO "communes" VALUES('49','Échemiré','04',604,466,16.98,'-2783','52835',33,101);
INSERT INTO "communes" VALUES('49','Montfort','13',111,111,4.41,'-2830','52442',55,97);
INSERT INTO "communes" VALUES('49','Chigné','22',303,275,25.22,'-2499','52871',47,86);
INSERT INTO "communes" VALUES('49','Linières-Bouton','22',86,93,9.89,'-2510','52734',44,78);
INSERT INTO "communes" VALUES('49','Chaudron-en-Mauges','21',1446,1409,25.71,'-3690','52542',25,146);
INSERT INTO "communes" VALUES('49','Saint-Melaine-sur-Aubance','23',2100,1943,5.11,'-3144','52633',17,63);
INSERT INTO "communes" VALUES('49','<NAME>','16',3687,3347,41.11,'-3388','52920',17,78);
INSERT INTO "communes" VALUES('49','Artannes-sur-Thouet','29',434,395,6.61,'-2701','52444',25,55);
INSERT INTO "communes" VALUES('49','Rochefort-sur-Loire','08',2232,1989,27.8,'-3325','52619',12,104);
INSERT INTO "communes" VALUES('49','<NAME>','16',309,248,12.55,'-3341','53025',20,87);
INSERT INTO "communes" VALUES('49','Vern-d''Anjou','16',2219,1560,36.11,'-3524','52890',33,87);
INSERT INTO "communes" VALUES('49','Loiré','07',881,754,33.73,'-3685','52905',32,90);
INSERT INTO "communes" VALUES('49','Vauchrétien','32',1478,1395,19.73,'-3126','52592',29,92);
INSERT INTO "communes" VALUES('49','Grez-Neuville','16',1491,1305,26.9,'-3353','52892',16,97);
INSERT INTO "communes" VALUES('49','<NAME>','25',1084,676,9.47,'-3789','52621',6,36);
INSERT INTO "communes" VALUES('49','Segré','30',6801,6404,15.99,'-3565','52985',22,92);
INSERT INTO "communes" VALUES('49','Courléon','17',167,126,13.77,'-2437','52656',57,119);
INSERT INTO "communes" VALUES('49','Feneu','33',2159,1799,25.52,'-3255','52857',12,67);
INSERT INTO "communes" VALUES('49','Montfaucon-Montigné','19',1970,518,16.8,'-3846','52333',27,122);
INSERT INTO "communes" VALUES('49','Marans','30',523,429,9.59,'-3550','52932',26,51);
INSERT INTO "communes" VALUES('49','Faye-d''Anjou','32',1289,1034,30.4,'-3174','52548',22,104);
INSERT INTO "communes" VALUES('49','Clefs','04',979,869,25.92,'-2674','52918',30,97);
INSERT INTO "communes" VALUES('49','Sainte-Christine','11',784,590,9.52,'-3540','52541',53,124);
INSERT INTO "communes" VALUES('49','Brossay','20',324,243,4.79,'-2831','52405',55,94);
INSERT INTO "communes" VALUES('49','Gennes','15',2086,1945,32.52,'-2855','52601',22,98);
INSERT INTO "communes" VALUES('49','Trémont','34',397,350,8.1,'-3092','52398',65,116);
INSERT INTO "communes" VALUES('49','<NAME>','26',2342,2124,18.36,'-3359','52639',12,67);
INSERT INTO "communes" VALUES('49','Saint-Germain-sur-Moine','19',2789,2481,26.79,'-3844','52353',27,111);
INSERT INTO "communes" VALUES('49','Saint-Mathurin-sur-Loire','23',2374,2236,19.85,'-2950','52681',18,22);
INSERT INTO "communes" VALUES('49','Saint-Jean-de-la-Croix','23',239,237,1.83,'-3255','52678',12,19);
INSERT INTO "communes" VALUES('49','Dénezé-sous-Doué','13',452,405,23.77,'-2901','52497',54,101);
INSERT INTO "communes" VALUES('49','<NAME>','22',160,134,5.3,'-2459','52735',54,97);
INSERT INTO "communes" VALUES('49','<NAME>','24',349,365,22.97,'-3727','52975',32,105);
INSERT INTO "communes" VALUES('49','Corné','05',2866,2573,16.64,'-2984','52745',16,60);
INSERT INTO "communes" VALUES('49','Montreuil-Bellay','20',4014,4111,48.96,'-2767','52368',29,73);
INSERT INTO "communes" VALUES('49','Cantenay-Épinard','39',2070,1865,16.1,'-3228','52815',12,49);
INSERT INTO "communes" VALUES('49','Antoigné','20',485,414,17.87,'-2721','52316',36,74);
INSERT INTO "communes" VALUES('49','Ulmes','13',571,478,8.1,'-2794','52466',39,97);
INSERT INTO "communes" VALUES('49','Villevêque','01',2851,2608,28.03,'-3067','52845',14,51);
INSERT INTO "communes" VALUES('49','Saint-Jean-des-Mauvrets','23',1744,1450,12.76,'-3095','52665',16,81);
INSERT INTO "communes" VALUES('49','Verrie','29',436,388,16.49,'-2796','52517',61,94);
INSERT INTO "communes" VALUES('49','Neuillé','27',945,870,13.56,'-2635','52601',27,111);
INSERT INTO "communes" VALUES('49','Varennes-sur-Loire','27',1891,1800,22.66,'-2536','52487',23,32);
INSERT INTO "communes" VALUES('49','Martigné-Briand','13',1872,1705,27.21,'-3074','52481',26,94);
INSERT INTO "communes" VALUES('49','Combrée','24',2767,2410,24.16,'-3742','53005',32,106);
INSERT INTO "communes" VALUES('49','Saint-Georges-du-Bois','05',412,343,9.42,'-2846','52775',26,82);
INSERT INTO "communes" VALUES('49','Chaumont-d''Anjou','31',289,252,11.98,'-2910','52823',26,70);
INSERT INTO "communes" VALUES('49','Lasse','22',281,247,28.94,'-2584','52818',64,101);
INSERT INTO "communes" VALUES('49','Saint-Martin-d''Arcé','04',794,650,13.18,'-2690','52843',52,95);
INSERT INTO "communes" VALUES('49','Varrains','29',1207,1146,3.4,'-2666','52470',25,81);
INSERT INTO "communes" VALUES('49','Villedieu-la-Blouère','06',2432,2102,14.24,'-3778','52386',47,109);
INSERT INTO "communes" VALUES('49','Breil','22',277,309,15.09,'-2421','52750',60,119);
INSERT INTO "communes" VALUES('49','Saint-Rémy-en-Mauges','21',1436,1218,21.56,'-3791','52523',17,109);
INSERT INTO "communes" VALUES('49','Notre-Dame-d''Allençon','32',608,416,13.63,'-3096','52558',43,94);
INSERT INTO "communes" VALUES('49','Fontevraud-l''Abbaye','29',1554,1188,14.82,'-2541','52425',37,114);
INSERT INTO "communes" VALUES('49','Louresse-Rochemenier','13',837,615,25.82,'-2945','52488',45,103);
INSERT INTO "communes" VALUES('49','Tancoigné','34',338,221,4.25,'-3050','52416',53,91);
INSERT INTO "communes" VALUES('49','Chalonnes-sur-Loire','08',6492,5592,38.56,'-3445','52612',10,99);
INSERT INTO "communes" VALUES('49','Montreuil-sur-Loir','33',494,297,11.99,'-3045','52898',15,54);
INSERT INTO "communes" VALUES('49','Courchamps','20',464,432,6.99,'-2772','52446',34,80);
INSERT INTO "communes" VALUES('49','Botz-en-Mauges','25',811,665,15.74,'-3709','52563',11,141);
INSERT INTO "communes" VALUES('49','Coutures','15',532,479,9.31,'-2991','52625',30,89);
INSERT INTO "communes" VALUES('49','Sarrigné','36',818,743,2.97,'-3024','52780',22,57);
INSERT INTO "communes" VALUES('49','Liré','09',2427,2164,31.81,'-3890','52604',5,105);
INSERT INTO "communes" VALUES('49','Tiercé','33',4254,3607,33.7,'-3115','52906',13,73);
INSERT INTO "communes" VALUES('49','Brain-sur-Allonnes','27',2012,1798,33.32,'-2523','52558',23,111);
INSERT INTO "communes" VALUES('49','Méon','22',264,247,15.04,'-2464','52772',49,89);
INSERT INTO "communes" VALUES('49','Allonnes','27',3013,2556,36.33,'-2570','52548',23,110);
INSERT INTO "communes" VALUES('49','Landemont','09',1635,1483,18.67,'-3976','52517',18,104);
INSERT INTO "communes" VALUES('49','Chambellay','16',344,299,12.86,'-3355','52989',17,76);
INSERT INTO "communes" VALUES('49','<NAME>-et-Chapelle-Aubry','21',1266,1026,18.76,'-3691','52506',43,121);
INSERT INTO "communes" VALUES('49','Saint-Martin-du-Bois','30',896,686,21.73,'-3420','53007',17,83);
INSERT INTO "communes" VALUES('49','Ingrandes','26',1645,1420,6.65,'-3622','52669',7,69);
INSERT INTO "communes" VALUES('49','Huillé','14',524,407,12.53,'-2935','52942',17,78);
INSERT INTO "communes" VALUES('49','Chaudefonds-sur-Layon','08',957,791,14.77,'-3380','52585',12,95);
INSERT INTO "communes" VALUES('49','<NAME>','40',3059,2940,21.21,'-3541','52228',72,164);
INSERT INTO "communes" VALUES('49','Chenillé-Changé','10',149,148,5.3,'-3336','52999',17,72);
INSERT INTO "communes" VALUES('49','La Renaudière','19',924,791,21.46,'-3774','52356',37,111);
INSERT INTO "communes" VALUES('49','Écouflant','01',3748,3703,17.02,'-3186','52810',12,50);
INSERT INTO "communes" VALUES('49','Saint-Georges-des-Sept-Voies','15',695,576,15.22,'-2930','52620',31,93);
INSERT INTO "communes" VALUES('49','Saint-Quentin-lès-Beaurepaire','04',300,211,7.51,'-2716','52919',31,66);
INSERT INTO "communes" VALUES('49','Bouchemaine','38',6175,6155,19.81,'-3273','52692',11,73);
INSERT INTO "communes" VALUES('49','Saint-Martin-du-Fouilloux','26',1621,1368,14.82,'-3379','52701',28,81);
INSERT INTO "communes" VALUES('49','Saint-Philbert-du-Peuple','17',1313,1117,16.38,'-2645','52659',24,58);
INSERT INTO "communes" VALUES('49','Andard','36',2504,2188,11.99,'-3037','52730',16,38);
INSERT INTO "communes" VALUES('49','Montilliers','34',1153,1120,26.36,'-3157','52425',42,119);
INSERT INTO "communes" VALUES('49','Saint-Lézin','11',765,678,13.08,'-3457','52499',69,119);
INSERT INTO "communes" VALUES('49','<NAME>','06',1332,1214,16.88,'-3595','52504',79,129);
INSERT INTO "communes" VALUES('49','Beaulieu-sur-Layon','32',1449,1069,12.78,'-3251','52568',17,104);
INSERT INTO "communes" VALUES('49','<NAME>','21',1865,1807,15.43,'-3836','52535',30,107);
INSERT INTO "communes" VALUES('49','La Chapelle-Saint-Florent','25',1314,1065,15.84,'-3769','52593',7,102);
INSERT INTO "communes" VALUES('49','Juigné-sur-Loire','23',2499,2273,12.49,'-3125','52675',16,66);
INSERT INTO "communes" VALUES('49','Jallais','06',3208,3152,52.81,'-3561','52441',57,121);
INSERT INTO "communes" VALUES('49','Freigné','07',1149,984,65.26,'-3843','52832',27,85);
INSERT INTO "communes" VALUES('49','<NAME>','04',340,292,18.1,'-2649','52772',48,102);
INSERT INTO "communes" VALUES('49','La Ferrière-de-Flée','30',358,263,13.12,'-3536','53035',48,90);
INSERT INTO "communes" VALUES('49','Souzay-Champigny','29',753,677,8.92,'-2606','52484',26,93);
INSERT INTO "communes" VALUES('49','Le Plessis-Grammoire','02',2283,2016,9.14,'-3074','52778',25,42);
INSERT INTO "communes" VALUES('49','Saint-Christophe-la-Couperie','09',783,455,8.29,'-3909','52505',74,104);
INSERT INTO "communes" VALUES('49','Brissac-Quincé','32',2931,2294,9.76,'-3095','52617',33,78);
INSERT INTO "communes" VALUES('49','Doué-la-Fontaine','13',7518,7448,35.9,'-2902','52437',48,105);
INSERT INTO "communes" VALUES('49','Forges','13',258,197,9.01,'-2868','52465',54,109);
INSERT INTO "communes" VALUES('49','<NAME>','23',1208,1245,9.35,'-3027','52693',16,21);
INSERT INTO "communes" VALUES('49','Saint-Augustin-des-Bois','18',1020,826,27.28,'-3480','52733',12,84);
INSERT INTO "communes" VALUES('49','Ponts-de-Cé','23',11696,11391,19.55,'-3180','52694',15,36);
INSERT INTO "communes" VALUES('49','Somloire','34',940,790,31.83,'-3270','52260',107,184);
INSERT INTO "communes" VALUES('49','Charcé-Saint-Ellier-sur-Aubance','32',776,629,16.84,'-3052','52618',36,90);
INSERT INTO "communes" VALUES('49','Vernoil-le-Fourrier','17',1251,1219,33.1,'-2508','52653',45,120);
INSERT INTO "communes" VALUES('49','Bauné','31',1596,1290,20.99,'-2951','52776',22,76);
INSERT INTO "communes" VALUES('49','<NAME>','25',1468,1290,17.72,'-3635','52629',7,127);
INSERT INTO "communes" VALUES('49','Cornillé-les-Caves','31',431,437,10.38,'-2931','52778',19,80);
INSERT INTO "communes" VALUES('49','Thorigné-d''Anjou','10',1138,753,16.45,'-3333','52932',17,66);
INSERT INTO "communes" VALUES('49','Cuon','04',608,480,13.13,'-2709','52753',36,91);
INSERT INTO "communes" VALUES('49','Valanjou','32',2228,1916,55.86,'-3258','52460',44,116);
INSERT INTO "communes" VALUES('49','Longué-Jumelles','17',6826,6944,96.2,'-2716','52642',20,78);
INSERT INTO "communes" VALUES('49','Gée','05',405,287,6.38,'-2853','52730',19,33);
INSERT INTO "communes" VALUES('49','Saint-Quentin-en-Mauges','21',1036,996,21.31,'-3611','52547',78,165);
INSERT INTO "communes" VALUES('49','Bégrolles-en-Mauges','06',1877,1531,14.62,'-3642','52379',74,117);
INSERT INTO "communes" VALUES('49','La Chaussaire','21',786,610,12.2,'-3870','52446',52,106);
INSERT INTO "communes" VALUES('49','La Breille-les-Pins','27',595,445,27.57,'-2510','52601',55,118);
INSERT INTO "communes" VALUES('49','Maulévrier','12',3180,2827,33.42,'-3424','52232',87,176);
INSERT INTO "communes" VALUES('49','La Tourlandry','11',1286,1199,19.34,'-3371','52381',120,216);
INSERT INTO "communes" VALUES('49','Sainte-Gemmes-d''Andigné','30',1486,1310,25.34,'-3579','52972',22,62);
INSERT INTO "communes" VALUES('49','Vezins','12',1634,1585,18.02,'-3386','52356',113,184);
INSERT INTO "communes" VALUES('49','Denée','08',1403,1390,15.6,'-3271','52644',12,90);
INSERT INTO "communes" VALUES('49','Épieds','20',709,546,26.99,'-2647','52382',29,111);
INSERT INTO "communes" VALUES('49','Noyant-la-Plaine','15',324,180,4.99,'-2996','52528',57,87);
INSERT INTO "communes" VALUES('49','Saumur','99',27283,29916,66.25,'-2683','52510',20,95);
INSERT INTO "communes" VALUES('49','Andigné','16',357,262,6.63,'-3464','52962',18,61);
INSERT INTO "communes" VALUES('49','<NAME>','34',210,184,5.54,'-3074','52424',52,112);
INSERT INTO "communes" VALUES('49','Montrevault','21',1281,1180,2.66,'-3758','52513',23,106);
INSERT INTO "communes" VALUES('49','Saint-Christophe-du-Bois','40',2624,2500,21.75,'-3646','52254',53,141);
INSERT INTO "communes" VALUES('49','Querré','10',319,240,12.41,'-3286','52977',37,80);
INSERT INTO "communes" VALUES('49','Rosiers-sur-Loire','28',2357,2247,26.11,'-2846','52613',18,26);
INSERT INTO "communes" VALUES('49','Chacé','29',1266,1309,6.42,'-2673','52461',25,73);
INSERT INTO "communes" VALUES('49','Bourg-l''Évêque','24',221,214,5.29,'-3722','53040',54,103);
INSERT INTO "communes" VALUES('49','Luigné','32',265,184,9.58,'-3032','52539',56,82);
INSERT INTO "communes" VALUES('49','<NAME>','30',830,724,23.03,'-3671','52978',27,96);
INSERT INTO "communes" VALUES('49','Mûrs-Erigné','23',5326,5122,17.29,'-3211','52662',12,80);
INSERT INTO "communes" VALUES('49','Écuillé','33',600,462,12.55,'-3221','52906',18,68);
INSERT INTO "communes" VALUES('49','Saint-Macaire-en-Mauges','19',6829,5689,27.33,'-3698','52360',37,114);
INSERT INTO "communes" VALUES('49','Chazé-sur-Argos','07',1023,841,30.82,'-3588','52909',27,83);
INSERT INTO "communes" VALUES('49','Jarzé','31',1691,1406,33.12,'-2855','52840',34,101);
INSERT INTO "communes" VALUES('49','Saint-Pierre-Montlimart','21',3299,3053,22.29,'-3737','52523',12,106);
INSERT INTO "communes" VALUES('49','Turquant','29',563,448,7.86,'-2565','52470',26,103);
INSERT INTO "communes" VALUES('49','<NAME>','25',3966,3626,39,'-3552','52617',12,174);
INSERT INTO "communes" VALUES('49','Champteussé-sur-Baconne','10',227,187,11.48,'-3324','52964',24,77);
INSERT INTO "communes" VALUES('49','Villemoisan','18',619,495,20.75,'-3587','52737',12,90);
INSERT INTO "communes" VALUES('49','Vergonnes','24',319,288,10.38,'-3802','53028',42,105);
INSERT INTO "communes" VALUES('49','Aviré','30',454,424,14.36,'-3481','53007',28,87);
INSERT INTO "communes" VALUES('49','Sœurdres','10',342,247,15.24,'-3234','53043',39,79);
INSERT INTO "communes" VALUES('50','Beauficel','43',167,163,9.13,'-3663','54156',113,357);
INSERT INTO "communes" VALUES('50','Mortain','24',1733,2193,7.44,'-3641','54053',102,327);
INSERT INTO "communes" VALUES('50','Sacey','29',545,516,15.27,'-4207','53899',6,74);
INSERT INTO "communes" VALUES('50','Vernix','05',171,133,5.84,'-3957','54129',17,83);
INSERT INTO "communes" VALUES('50','Champrepus','48',303,237,9.12,'-4064','54260',57,156);
INSERT INTO "communes" VALUES('50','Rouffigny','48',320,287,6.72,'-3989','54226',125,206);
INSERT INTO "communes" VALUES('50','Azeville','22',77,78,3,'-4054','54955',6,34);
INSERT INTO "communes" VALUES('50','Catz','09',121,109,2.78,'-3907','54790',0,32);
INSERT INTO "communes" VALUES('50','Équeurdreville-Hainneville','50',17339,18146,12.83,'-4434','55165',0,173);
INSERT INTO "communes" VALUES('50','<NAME>','14',168,143,4.78,'-4131','54292',32,129);
INSERT INTO "communes" VALUES('50','Hamelin','33',111,123,2.46,'-3940','53938',88,161);
INSERT INTO "communes" VALUES('50','Sainte-Colombe','41',215,157,4.99,'-4287','54913',2,37);
INSERT INTO "communes" VALUES('50','La Croix-Avranchin','33',477,431,10.79,'-4133','53940',33,92);
INSERT INTO "communes" VALUES('50','<NAME>','46',188,142,4.66,'-3598','54503',92,180);
INSERT INTO "communes" VALUES('50','Saint-Brice-de-Landelles','32',664,617,14.77,'-3877','53926',59,202);
INSERT INTO "communes" VALUES('50','Besneville','41',668,516,18.27,'-4404','54853',10,116);
INSERT INTO "communes" VALUES('50','Fleury','48',921,760,12.6,'-4013','54275',109,201);
INSERT INTO "communes" VALUES('50','<NAME>','20',296,263,12.46,'-4241','54642',11,37);
INSERT INTO "communes" VALUES('50','Ferrières','44',57,66,3.51,'-3660','53938',109,234);
INSERT INTO "communes" VALUES('50','Saint-Joseph','47',805,734,9.78,'-4292','55036',32,122);
INSERT INTO "communes" VALUES('50','Carnet','33',476,433,10.18,'-4104','53900',40,138);
INSERT INTO "communes" VALUES('50','Saint-Martin-de-Varreville','37',217,155,8.36,'-3971','54918',0,41);
INSERT INTO "communes" VALUES('50','Teurthéville-Bocage','30',615,537,21.47,'-4147','55102',32,116);
INSERT INTO "communes" VALUES('50','Aucey-la-Plaine','29',456,363,9.39,'-4238','53919',5,61);
INSERT INTO "communes" VALUES('50','Huberville','47',354,282,5.76,'-4193','55011',29,118);
INSERT INTO "communes" VALUES('50','Liesville-sur-Douve','37',224,153,5.24,'-4064','54837',2,18);
INSERT INTO "communes" VALUES('50','Bérigny','31',387,366,12.15,'-3641','54603',73,159);
INSERT INTO "communes" VALUES('50','Montmartin-sur-Mer','23',1309,1094,9.81,'-4290','54432',2,60);
INSERT INTO "communes" VALUES('50','Dangy','08',651,603,9.93,'-3957','54494',70,161);
INSERT INTO "communes" VALUES('50','Agon-Coutainville','36',2834,2724,12.35,'-4348','54492',0,49);
INSERT INTO "communes" VALUES('50','Sénoville','03',214,179,7.22,'-4574','54926',34,121);
INSERT INTO "communes" VALUES('50','Glatigny','16',144,144,4.99,'-4407','54753',5,34);
INSERT INTO "communes" VALUES('50','Beaucoudray','45',154,129,4.7,'-3865','54398',84,204);
INSERT INTO "communes" VALUES('50','<NAME>','03',245,195,7.32,'-4520','54880',12,125);
INSERT INTO "communes" VALUES('50','Montbray','26',362,407,14.04,'-3813','54311',79,266);
INSERT INTO "communes" VALUES('50','<NAME>','17',353,274,10.12,'-4091','54241',68,166);
INSERT INTO "communes" VALUES('50','Saint-Hilaire-Petitville','09',1362,1389,9.99,'-3960','54782',0,31);
INSERT INTO "communes" VALUES('50','Saint-Patrice-de-Claids','20',157,163,5.58,'-4193','54700',9,34);
INSERT INTO "communes" VALUES('50','Jobourg','04',501,377,10.15,'-4711','55203',0,181);
INSERT INTO "communes" VALUES('50','Hauteville-sur-Mer','23',656,619,3.31,'-4307','54418',0,48);
INSERT INTO "communes" VALUES('50','Picauville','37',1934,1986,19.1,'-4171','54866',2,30);
INSERT INTO "communes" VALUES('50','Saint-Martin-de-Cenilly','10',202,206,6.76,'-4020','54425',74,136);
INSERT INTO "communes" VALUES('50','Mobecq','16',251,208,7.99,'-4282','54747',32,110);
INSERT INTO "communes" VALUES('50','Guilberville','46',994,821,22.15,'-3649','54431',70,262);
INSERT INTO "communes" VALUES('50','<NAME>','31',1081,1035,10.22,'-3830','54640',4,87);
INSERT INTO "communes" VALUES('50','Ouville','10',463,399,11.2,'-4110','54466',29,121);
INSERT INTO "communes" VALUES('50','Saint-Martin-d''Aubigny','27',538,472,15.16,'-4096','54628',10,89);
INSERT INTO "communes" VALUES('50','Placy-Montaigu','46',219,179,8.99,'-3603','54478',109,228);
INSERT INTO "communes" VALUES('50','Saint-Laurent-de-Terregatte','33',566,572,16.35,'-3995','53969',14,159);
INSERT INTO "communes" VALUES('50','Amigny','34',144,123,3.69,'-3906','54617',13,57);
INSERT INTO "communes" VALUES('50','Milly','32',342,330,9.65,'-3729','54002',65,128);
INSERT INTO "communes" VALUES('50','Coudeville-sur-Mer','06',878,738,8.7,'-4293','54312',3,69);
INSERT INTO "communes" VALUES('50','<NAME>','35',945,792,7.74,'-3745','54568',48,166);
INSERT INTO "communes" VALUES('50','<NAME>','39',214,215,5.22,'-3885','54234',160,242);
INSERT INTO "communes" VALUES('50','Villechien','24',192,206,10.83,'-3692','53977',70,165);
INSERT INTO "communes" VALUES('50','Loges-Marchis','32',1022,871,19.78,'-3805','53936',69,208);
INSERT INTO "communes" VALUES('50','Hiesville','37',74,69,4.03,'-4000','54858',2,38);
INSERT INTO "communes" VALUES('50','<NAME>','48',402,417,9.31,'-3973','54305',80,172);
INSERT INTO "communes" VALUES('50','Taillepied','41',29,25,2.15,'-4354','54858',7,48);
INSERT INTO "communes" VALUES('50','Moon-sur-Elle','31',835,813,9.84,'-3756','54677',3,48);
INSERT INTO "communes" VALUES('50','Fervaches','45',383,285,4.89,'-3802','54439',31,119);
INSERT INTO "communes" VALUES('50','Hambye','14',1192,1120,29.57,'-4002','54386',47,166);
INSERT INTO "communes" VALUES('50','Montaigu-les-Bois','14',238,209,6.67,'-4018','54325',68,169);
INSERT INTO "communes" VALUES('50','Morigny','26',87,83,4.35,'-3773','54313',77,163);
INSERT INTO "communes" VALUES('50','Moitiers-d''Allonne','03',685,612,17.21,'-4573','54891',0,127);
INSERT INTO "communes" VALUES('50','Fourneaux','45',96,90,3.34,'-3747','54405',37,147);
INSERT INTO "communes" VALUES('50','Anctoville-sur-Boscq','06',498,418,2.15,'-4298','54271',22,69);
INSERT INTO "communes" VALUES('50','Chèvreville','32',203,198,4.45,'-3759','54016',71,122);
INSERT INTO "communes" VALUES('50','Coulouvray-Boisbenâtre','39',540,538,17.25,'-3828','54208',130,315);
INSERT INTO "communes" VALUES('50','Lengronne','14',449,429,12.07,'-4132','54371',35,119);
INSERT INTO "communes" VALUES('50','Saint-Pois','39',494,529,7.78,'-3781','54166',73,289);
INSERT INTO "communes" VALUES('50','Moyon','45',1129,894,23.74,'-3839','54445',50,145);
INSERT INTO "communes" VALUES('50','Saint-Sébastien-de-Raids','27',362,281,5.27,'-4120','54656',7,25);
INSERT INTO "communes" VALUES('50','Herqueville','04',159,145,2.91,'-4682','55186',0,178);
INSERT INTO "communes" VALUES('50','Chaulieu','43',284,271,10.64,'-3554','54151',243,366);
INSERT INTO "communes" VALUES('50','Hocquigny','17',192,144,3.05,'-4158','54237',67,126);
INSERT INTO "communes" VALUES('50','<NAME>','22',346,349,3.86,'-4171','54945',3,26);
INSERT INTO "communes" VALUES('50','<NAME>','21',261,214,3.26,'-4020','54617',2,37);
INSERT INTO "communes" VALUES('50','Saint-Jean-des-Baisants','46',1203,994,13.37,'-3678','54548',50,217);
INSERT INTO "communes" VALUES('50','Saint-Nicolas-de-Pierrepont','16',262,250,8.13,'-4359','54804',7,123);
INSERT INTO "communes" VALUES('50','Plomb','01',403,367,8.16,'-4043','54145',14,148);
INSERT INTO "communes" VALUES('50','Saint-Jean-de-Savigny','31',381,278,7.58,'-3699','54661',17,101);
INSERT INTO "communes" VALUES('50','Fierville-les-Mines','03',311,252,7.44,'-4451','54879',22,108);
INSERT INTO "communes" VALUES('50','Omonville-la-Rogue','04',524,522,4.29,'-4644','55225',0,133);
INSERT INTO "communes" VALUES('50','Vindefontaine','16',312,273,8.13,'-4172','54820',2,41);
INSERT INTO "communes" VALUES('50','Videcosville','30',87,80,2.51,'-4119','55071',39,87);
INSERT INTO "communes" VALUES('50','Annoville','23',632,547,8.47,'-4301','54403',4,58);
INSERT INTO "communes" VALUES('50','Cavigny','34',204,243,6.78,'-3829','54659',2,66);
INSERT INTO "communes" VALUES('50','Neufmesnil','16',190,175,5.33,'-4307','54791',17,90);
INSERT INTO "communes" VALUES('50','Champs-de-Losque','34',199,203,9.31,'-3964','54648',0,35);
INSERT INTO "communes" VALUES('50','Lithaire','16',551,518,14.21,'-4244','54778',15,123);
INSERT INTO "communes" VALUES('50','Couvains','31',444,387,15.03,'-3715','54629',59,147);
INSERT INTO "communes" VALUES('50','Saint-Martin-le-Hébert','07',136,169,2.13,'-4383','55012',53,147);
INSERT INTO "communes" VALUES('50','Tirepied','05',777,694,18.77,'-4000','54122',8,149);
INSERT INTO "communes" VALUES('50','Sottevast','07',1353,1197,10.82,'-4367','55025',30,147);
INSERT INTO "communes" VALUES('50','Genêts','42',417,440,6.89,'-4236','54094',6,38);
INSERT INTO "communes" VALUES('50','Saint-Germain-le-Gaillard','28',703,624,13.83,'-4576','54985',14,127);
INSERT INTO "communes" VALUES('50','Contrières','23',392,333,9.12,'-4185','54431',8,101);
INSERT INTO "communes" VALUES('50','Écausseville','22',101,88,5.27,'-4123','54958',3,31);
INSERT INTO "communes" VALUES('50','La Mancellière-sur-Vire','08',487,486,6.8,'-3785','54521',17,109);
INSERT INTO "communes" VALUES('50','Brévands','09',347,317,13.87,'-3911','54813',0,29);
INSERT INTO "communes" VALUES('50','Feugères','27',339,274,8.31,'-4063','54612',4,112);
INSERT INTO "communes" VALUES('50','Baudreville','16',82,84,4.67,'-4409','54784',7,41);
INSERT INTO "communes" VALUES('50','Heussé','44',237,267,14.57,'-3596','53897',155,228);
INSERT INTO "communes" VALUES('50','Néville-sur-Mer','38',187,169,3.46,'-4083','55213',0,52);
INSERT INTO "communes" VALUES('50','Saint-André-de-l''Épine','31',538,464,7.24,'-3719','54599',64,171);
INSERT INTO "communes" VALUES('50','Vidouville','46',130,116,4.46,'-3597','54553',77,192);
INSERT INTO "communes" VALUES('50','Perques','07',161,161,4.85,'-4438','54939',13,122);
INSERT INTO "communes" VALUES('50','Courcy','12',568,470,11.45,'-4144','54491',18,143);
INSERT INTO "communes" VALUES('50','Beslon','26',536,498,17.24,'-3875','54276',118,237);
INSERT INTO "communes" VALUES('50','Saint-Denis-le-Gast','14',557,488,16.73,'-4073','54378',29,123);
INSERT INTO "communes" VALUES('50','Margueray','26',135,128,4.64,'-3866','54329',169,257);
INSERT INTO "communes" VALUES('50','Brillevast','38',323,299,9.07,'-4167','55142',37,132);
INSERT INTO "communes" VALUES('50','<NAME>','14',224,243,10.8,'-4071','54294',42,164);
INSERT INTO "communes" VALUES('50','Flottemanville-Hague','04',885,731,11.39,'-4510','55135',45,179);
INSERT INTO "communes" VALUES('50','Tollevast','25',1198,1160,12.36,'-4403','55083',68,176);
INSERT INTO "communes" VALUES('50','<NAME>','13',245,138,4.59,'-3963','54075',39,197);
INSERT INTO "communes" VALUES('50','Sideville','50',566,488,7.63,'-4470','55104',18,171);
INSERT INTO "communes" VALUES('50','Saint-Pierre-Langers','42',552,386,8.4,'-4260','54205',7,121);
INSERT INTO "communes" VALUES('50','Bricqueville-sur-Mer','06',1165,906,12.88,'-4287','54348',3,73);
INSERT INTO "communes" VALUES('50','Champcervon','17',217,157,5.63,'-4146','54197',81,132);
INSERT INTO "communes" VALUES('50','Joganville','22',89,84,2.87,'-4095','54967',13,34);
INSERT INTO "communes" VALUES('50','Saint-Brice','01',136,115,2.55,'-4049','54109',9,115);
INSERT INTO "communes" VALUES('50','Belval','10',301,274,5.72,'-4111','54488',32,145);
INSERT INTO "communes" VALUES('50','Champcey','42',205,149,3.24,'-4203','54140',20,105);
INSERT INTO "communes" VALUES('50','<NAME>','48',398,312,9.16,'-3968','54212',130,217);
INSERT INTO "communes" VALUES('50','La Mouche','17',200,148,4.43,'-4096','54215',97,153);
INSERT INTO "communes" VALUES('50','Sainte-Pience','17',298,238,8.68,'-4043','54182',105,201);
INSERT INTO "communes" VALUES('50','Saint-Floxel','22',473,417,8.45,'-4097','54991',15,73);
INSERT INTO "communes" VALUES('50','Saint-Jean-du-Corail-des-Bois','05',77,76,3.63,'-3931','54186',80,217);
INSERT INTO "communes" VALUES('50','<NAME>','30',249,303,7.23,'-4039','55133',1,121);
INSERT INTO "communes" VALUES('50','Saint-Aubin-des-Préaux','15',413,379,8.24,'-4271','54227',11,94);
INSERT INTO "communes" VALUES('50','Saint-Martin-de-Landelles','32',1190,1226,19.91,'-3898','53940',57,192);
INSERT INTO "communes" VALUES('50','Sainte-Mère-Église','37',1632,1586,17.68,'-4060','54899',1,41);
INSERT INTO "communes" VALUES('50','Saint-Cyr-du-Bailleul','02',406,443,23.41,'-3485','53962',92,226);
INSERT INTO "communes" VALUES('50','Brainville','36',208,120,3.19,'-4261','54540',50,99);
INSERT INTO "communes" VALUES('50','Saint-Martin-de-Bonfossé','08',543,499,12.68,'-3896','54504',64,168);
INSERT INTO "communes" VALUES('50','Saint-Quentin-sur-le-Homme','13',1251,1090,16.84,'-4059','54053',6,95);
INSERT INTO "communes" VALUES('50','Braffais','05',190,163,5.79,'-3997','54174',56,182);
INSERT INTO "communes" VALUES('50','Avranches','01',8020,8509,4.5,'-4104','54094',7,108);
INSERT INTO "communes" VALUES('50','Montanel','33',369,368,15.4,'-4174','53884',19,124);
INSERT INTO "communes" VALUES('50','Courtils','13',237,260,5.39,'-4162','54031',4,28);
INSERT INTO "communes" VALUES('50','Folligny','17',1005,779,11.8,'-4164','54249',59,128);
INSERT INTO "communes" VALUES('50','Neuville-au-Plain','37',108,94,4.7,'-4074','54920',2,36);
INSERT INTO "communes" VALUES('50','Saint-Jean-du-Corail','24',265,282,14.04,'-3606','54010',77,311);
INSERT INTO "communes" VALUES('50','Baupte','27',458,430,2.29,'-4109','54787',2,26);
INSERT INTO "communes" VALUES('50','Tourlaville','51',15910,17556,17.19,'-4350','55157',0,132);
INSERT INTO "communes" VALUES('50','Chavoy','01',152,77,3.7,'-4078','54142',20,127);
INSERT INTO "communes" VALUES('50','Grosville','28',711,623,13.15,'-4533','55011',56,137);
INSERT INTO "communes" VALUES('50','Perriers-en-Beauficel','43',226,218,9.3,'-3703','54152',75,331);
INSERT INTO "communes" VALUES('50','Colomby','41',482,429,11.16,'-4255','54952',7,44);
INSERT INTO "communes" VALUES('50','Saint-Laurent-de-Cuves','39',488,481,14.8,'-3844','54168',32,226);
INSERT INTO "communes" VALUES('50','Saint-Jean-de-la-Rivière','03',355,278,3.57,'-4528','54856',4,75);
INSERT INTO "communes" VALUES('50','Yquelon','15',1014,959,2.14,'-4325','54276',17,67);
INSERT INTO "communes" VALUES('50','La Chapelle-Urée','05',128,122,4.6,'-3875','54079',140,237);
INSERT INTO "communes" VALUES('50','Virey','32',1028,900,16.94,'-3856','53983',56,146);
INSERT INTO "communes" VALUES('50','Saint-Sauveur-de-Pierrepont','16',132,143,8.18,'-4367','54817',7,42);
INSERT INTO "communes" VALUES('50','Chevry','45',79,82,3.62,'-3840','54409',54,175);
INSERT INTO "communes" VALUES('50','Auvers','09',671,589,18.76,'-4067','54773',0,26);
INSERT INTO "communes" VALUES('50','Cosqueville','38',580,495,10.9,'-4161','55216',0,85);
INSERT INTO "communes" VALUES('50','Bricquebosq','28',510,447,8.05,'-4505','55039',59,128);
INSERT INTO "communes" VALUES('50','Bacilly','42',872,670,15.88,'-4197','54112',7,75);
INSERT INTO "communes" VALUES('50','Éroudeville','22',243,220,4.86,'-4140','54974',6,59);
INSERT INTO "communes" VALUES('50','Bréville-sur-Mer','06',819,610,6.86,'-4326','54294',0,69);
INSERT INTO "communes" VALUES('50','Saint-Martin-le-Bouillant','39',291,305,12.37,'-3904','54206',90,252);
INSERT INTO "communes" VALUES('50','Chanteloup','06',331,240,4.17,'-4248','54332',24,72);
INSERT INTO "communes" VALUES('50','Turqueville','37',144,117,5.21,'-4014','54894',3,42);
INSERT INTO "communes" VALUES('50','Saint-Loup','01',697,477,6.45,'-4035','54076',16,124);
INSERT INTO "communes" VALUES('50','Golleville','41',179,168,6.46,'-4281','54930',6,45);
INSERT INTO "communes" VALUES('50','Éculleville','04',37,42,2.33,'-4620','55203',0,152);
INSERT INTO "communes" VALUES('50','Jullouville','97',2345,2414,21.88,'-4336','54194',5,115);
INSERT INTO "communes" VALUES('50','Lingreville','23',920,917,9.04,'-4293','54390',2,61);
INSERT INTO "communes" VALUES('50','Montjoie-Saint-Martin','33',272,265,7.49,'-4031','53925',75,188);
INSERT INTO "communes" VALUES('50','Savigny','10',412,335,10.16,'-4084','54500',35,135);
INSERT INTO "communes" VALUES('50','Bellefontaine','19',159,160,6.73,'-3678','54099',100,292);
INSERT INTO "communes" VALUES('50','Condé-sur-Vire','46',3331,2983,24.85,'-3749','54503',17,153);
INSERT INTO "communes" VALUES('50','Lapenty','32',429,434,14.89,'-3715','53977',65,198);
INSERT INTO "communes" VALUES('50','Flamanville','28',1725,1683,7.22,'-4670','55034',0,90);
INSERT INTO "communes" VALUES('50','Angoville-sur-Ay','20',256,230,6.72,'-4316','54726',5,54);
INSERT INTO "communes" VALUES('50','Saint-Ébremond-de-Bonfossé','08',768,650,11.9,'-3873','54519',12,115);
INSERT INTO "communes" VALUES('50','Saint-Senier-de-Beuvron','33',309,306,11.21,'-4052','53973',17,170);
INSERT INTO "communes" VALUES('50','Cresnays','05',254,271,9.78,'-3843','54132',32,131);
INSERT INTO "communes" VALUES('50','Saint-Jean-le-Thomas','42',430,396,2.38,'-4281','54144',5,90);
INSERT INTO "communes" VALUES('50','Brécey','05',2177,2115,20.96,'-3892','54139',22,111);
INSERT INTO "communes" VALUES('50','Saint-Malo-de-la-Lande','36',461,305,4.01,'-4307','54523',14,71);
INSERT INTO "communes" VALUES('50','<NAME>','08',148,123,1.91,'-3869','54472',90,150);
INSERT INTO "communes" VALUES('50','Saint-Louet-sur-Vire','45',199,172,7.33,'-3698','54435',60,172);
INSERT INTO "communes" VALUES('50','Buais','44',559,652,17.92,'-3673','53914',115,238);
INSERT INTO "communes" VALUES('50','Émondeville','22',359,291,5.33,'-4088','54954',7,37);
INSERT INTO "communes" VALUES('50','Surtainville','28',1235,1072,14.61,'-4610','54955',3,81);
INSERT INTO "communes" VALUES('50','Granville','15',12969,12688,9.9,'-4359','54265',0,67);
INSERT INTO "communes" VALUES('50','Coutances','12',9355,9546,12.51,'-4202','54495',12,150);
INSERT INTO "communes" VALUES('50','Rauville-la-Bigot','07',1188,861,17.16,'-4467','55021',52,151);
INSERT INTO "communes" VALUES('50','Saint-Samson-de-Bonfossé','08',901,728,6.28,'-3850','54499',28,159);
INSERT INTO "communes" VALUES('50','<NAME>','07',118,137,4,'-4433','54916',13,122);
INSERT INTO "communes" VALUES('50','<NAME>','14',230,233,10.41,'-4051','54295',73,166);
INSERT INTO "communes" VALUES('50','Donville-les-Bains','15',3242,3358,2.75,'-4349','54276',4,68);
INSERT INTO "communes" VALUES('50','Cerisy-la-Forêt','31',937,839,23.81,'-3637','54661',34,131);
INSERT INTO "communes" VALUES('50','Baudre','35',536,357,3.81,'-3788','54544',14,93);
INSERT INTO "communes" VALUES('50','Saint-André-de-Bohon','09',313,264,10.43,'-3987','54705',0,21);
INSERT INTO "communes" VALUES('50','Saint-Germain-de-Tournebut','22',394,355,13.91,'-4147','55037',22,101);
INSERT INTO "communes" VALUES('50','<NAME>','34',109,94,2.86,'-3890','54696',9,44);
INSERT INTO "communes" VALUES('50','Saint-Marcouf','22',331,376,13.38,'-4030','54970',0,36);
INSERT INTO "communes" VALUES('50','La Bonneville','41',173,143,6.31,'-4212','54880',3,32);
INSERT INTO "communes" VALUES('50','Néhou','41',553,440,15.98,'-4309','54911',3,74);
INSERT INTO "communes" VALUES('50','Le Grand-Celland','05',568,448,12.45,'-3914','54090',50,225);
INSERT INTO "communes" VALUES('50','Saint-Germain-sur-Sèves','27',199,213,8.19,'-4119','54691',3,19);
INSERT INTO "communes" VALUES('50','Percy','26',2281,2127,37.04,'-3917','54352',60,275);
INSERT INTO "communes" VALUES('50','Sortosville-en-Beaumont','03',312,317,10.24,'-4503','54916',18,144);
INSERT INTO "communes" VALUES('50','Saint-Georges-de-Livoye','05',209,181,5.53,'-3948','54152',22,120);
INSERT INTO "communes" VALUES('50','Sébeville','37',32,25,2.88,'-4027','54875',3,38);
INSERT INTO "communes" VALUES('50','<NAME>','43',228,241,10.08,'-3518','54123',204,316);
INSERT INTO "communes" VALUES('50','Saint-Georges-de-la-Rivière','03',280,212,3.79,'-4517','54849',5,78);
INSERT INTO "communes" VALUES('50','Saint-Pierre-Église','38',1785,1796,8.06,'-4156','55187',4,138);
INSERT INTO "communes" VALUES('50','Carentan','09',6063,6371,15.66,'-3983','54782',0,30);
INSERT INTO "communes" VALUES('50','Aumeville-Lestre','30',142,139,2.44,'-4064','55044',2,41);
INSERT INTO "communes" VALUES('50','Sainte-Suzanne-sur-Vire','35',552,509,5.05,'-3773','54512',17,110);
INSERT INTO "communes" VALUES('50','Bretteville','51',1067,1076,5.78,'-4286','55174',0,156);
INSERT INTO "communes" VALUES('50','Marchésieux','27',716,665,19.89,'-4031','54653',0,22);
INSERT INTO "communes" VALUES('50','Saint-Ovin','99',769,674,12.93,'-3998','54090',36,193);
INSERT INTO "communes" VALUES('50','Chasseguey','19',77,88,3.06,'-3779','54046',92,210);
INSERT INTO "communes" VALUES('50','Biville','04',553,414,8.7,'-4621','55126',2,179);
INSERT INTO "communes" VALUES('50','<NAME>','21',187,150,3.46,'-3971','54613',2,33);
INSERT INTO "communes" VALUES('50','Magneville','07',293,282,9.49,'-4314','54942',6,51);
INSERT INTO "communes" VALUES('50','Boisroger','36',194,153,5.3,'-4306','54547',28,78);
INSERT INTO "communes" VALUES('50','Saint-Martin-le-Gréard','25',434,264,2.86,'-4430','55064',62,126);
INSERT INTO "communes" VALUES('50','Digosville','51',1532,1451,9.27,'-4291','55146',0,142);
INSERT INTO "communes" VALUES('50','Lestre','22',259,224,7.57,'-4079','55029',1,45);
INSERT INTO "communes" VALUES('50','Anneville-sur-Mer','20',238,191,3.73,'-4352','54576',0,16);
INSERT INTO "communes" VALUES('50','Teurthéville-Hague','50',915,747,12.73,'-4516','55092',32,142);
INSERT INTO "communes" VALUES('50','Saint-Jean-des-Champs','17',1328,1116,19.4,'-4224','54253',21,122);
INSERT INTO "communes" VALUES('50','<NAME>','26',78,69,2.82,'-3912','54426',92,137);
INSERT INTO "communes" VALUES('50','Tréauville','28',723,632,12.84,'-4609','55035',4,130);
INSERT INTO "communes" VALUES('50','Moitiers-en-Bauptois','41',334,283,8.04,'-4192','54850',1,37);
INSERT INTO "communes" VALUES('50','Gouberville','38',115,137,2.79,'-4059','55208',0,38);
INSERT INTO "communes" VALUES('50','Ravenoville','37',263,252,11.65,'-4008','54952',1,32);
INSERT INTO "communes" VALUES('50','Heugueville-sur-Sienne','36',535,486,5.88,'-4289','54484',5,89);
INSERT INTO "communes" VALUES('50','Crosville-sur-Douve','41',62,58,4.06,'-4245','54877',3,33);
INSERT INTO "communes" VALUES('50','Flottemanville','22',200,176,4.85,'-4213','54972',7,43);
INSERT INTO "communes" VALUES('50','Carolles','42',788,0,3.85,'-4330','54168',0,77);
INSERT INTO "communes" VALUES('50','Lozon','21',307,308,8.86,'-3999','54603',4,94);
INSERT INTO "communes" VALUES('50','Angey','42',238,140,2.47,'-4253','54167',85,121);
INSERT INTO "communes" VALUES('50','Équilly','17',162,128,5.65,'-4137','54267',54,134);
INSERT INTO "communes" VALUES('50','Tanis','29',315,260,7.49,'-4198','53992',7,51);
INSERT INTO "communes" VALUES('50','<NAME>','19',234,207,11.74,'-3732','54112',60,291);
INSERT INTO "communes" VALUES('50','Catteville','41',118,105,4.57,'-4340','54840',7,40);
INSERT INTO "communes" VALUES('50','<NAME>','45',386,320,3.98,'-3774','54483',19,122);
INSERT INTO "communes" VALUES('50','<NAME>','48',500,482,15.1,'-4029','54240',75,215);
INSERT INTO "communes" VALUES('50','Ger','02',851,953,39.78,'-3472','54091',162,341);
INSERT INTO "communes" VALUES('50','Branville-Hague','04',178,108,2.12,'-4580','55173',98,164);
INSERT INTO "communes" VALUES('50','Saint-Georges-d''Elle','31',384,364,8.96,'-3675','54609',71,192);
INSERT INTO "communes" VALUES('50','Subligny','17',344,310,8,'-4113','54161',45,140);
INSERT INTO "communes" VALUES('50','Muneville-le-Bingard','40',684,539,19.81,'-4240','54579',23,80);
INSERT INTO "communes" VALUES('50','Saint-Pellerin','09',394,315,4.37,'-3905','54775',0,35);
INSERT INTO "communes" VALUES('50','Saint-Clément-Rancoudray','24',536,581,32.1,'-3581','54083',225,321);
INSERT INTO "communes" VALUES('50','Reigneville-Bocage','41',30,28,2.27,'-4235','54897',13,37);
INSERT INTO "communes" VALUES('50','Sainte-Marie-du-Mont','37',750,803,26.98,'-3958','54865',1,42);
INSERT INTO "communes" VALUES('50','Marcilly','13',372,332,8.86,'-3987','54053',17,163);
INSERT INTO "communes" VALUES('50','Saint-Nicolas-des-Bois','05',111,105,3.57,'-3923','54173',55,180);
INSERT INTO "communes" VALUES('50','Bréhal','06',3045,2599,12.71,'-4276','54332',4,71);
INSERT INTO "communes" VALUES('50','Vasteville','04',1108,872,16.72,'-4566','55105',3,175);
INSERT INTO "communes" VALUES('50','Saint-Jean-de-Daye','34',601,614,4.24,'-3860','54698',0,47);
INSERT INTO "communes" VALUES('50','<NAME>','39',150,154,7.85,'-3779','54127',47,205);
INSERT INTO "communes" VALUES('50','Notre-Dame-de-Livoye','05',127,121,3.54,'-3937','54160',31,120);
INSERT INTO "communes" VALUES('50','Cuves','05',349,360,9.69,'-3824','54132',32,128);
INSERT INTO "communes" VALUES('50','Montreuil-sur-Lozon','21',306,241,6.45,'-3971','54597',15,107);
INSERT INTO "communes" VALUES('50','Vaudreville','22',80,80,3.03,'-4119','55019',12,72);
INSERT INTO "communes" VALUES('50','Raids','09',192,217,6.8,'-4089','54686',2,19);
INSERT INTO "communes" VALUES('50','Héauville','28',500,373,10.83,'-4596','55090',4,142);
INSERT INTO "communes" VALUES('50','<NAME>','05',183,161,6.57,'-3941','54107',22,193);
INSERT INTO "communes" VALUES('50','Quettehou','30',1586,1475,16.17,'-4044','55103',1,104);
INSERT INTO "communes" VALUES('50','Crasville','30',250,255,7.18,'-4084','55058',2,87);
INSERT INTO "communes" VALUES('50','Montaigu-la-Brisette','47',506,428,14.71,'-4173','55072',37,131);
INSERT INTO "communes" VALUES('50','Bretteville-sur-Ay','20',385,317,9.75,'-4410','54734',4,38);
INSERT INTO "communes" VALUES('50','L''Étang-Bertrand','07',365,280,8.74,'-4332','54961',9,81);
INSERT INTO "communes" VALUES('50','Le Vast','38',304,298,13.04,'-4104','55136',21,121);
INSERT INTO "communes" VALUES('50','Foucarville','37',130,108,5.06,'-3993','54935',1,32);
INSERT INTO "communes" VALUES('50','Prétot-Sainte-Suzanne','16',315,355,11.64,'-4193','54805',4,44);
INSERT INTO "communes" VALUES('50','Saint-Lô-d''Ourville','03',530,481,10.7,'-4451','54816',3,38);
INSERT INTO "communes" VALUES('50','Notre-Dame-du-Touchet','24',641,658,17.65,'-3659','53981',71,152);
INSERT INTO "communes" VALUES('50','Hyenville','23',321,269,3.39,'-4228','54438',7,53);
INSERT INTO "communes" VALUES('50','La Chaise-Baudouin','05',448,396,12.06,'-3970','54182',55,205);
INSERT INTO "communes" VALUES('50','Vaudrimesnil','40',393,386,6.05,'-4168','54615',16,40);
INSERT INTO "communes" VALUES('50','Saint-Barthélemy','24',348,361,6.81,'-3655','54091',165,308);
INSERT INTO "communes" VALUES('50','Cametours','10',414,381,7.22,'-4019','54520',64,126);
INSERT INTO "communes" VALUES('50','Muneville-sur-Mer','06',392,314,7.42,'-4252','54371',19,74);
INSERT INTO "communes" VALUES('50','Morsalines','30',204,206,3.65,'-4055','55081',3,88);
INSERT INTO "communes" VALUES('50','Saint-Symphorien-le-Valois','16',822,716,5.8,'-4322','54773',23,81);
INSERT INTO "communes" VALUES('50','Husson','44',231,260,13.59,'-3588','53967',78,133);
INSERT INTO "communes" VALUES('50','Tamerville','47',644,583,18.2,'-4209','55037',33,126);
INSERT INTO "communes" VALUES('50','Saint-Michel-de-Montjoie','39',313,371,14.46,'-3738','54181',185,358);
INSERT INTO "communes" VALUES('50','Tourville-sur-Sienne','36',776,588,7.5,'-4312','54496',5,103);
INSERT INTO "communes" VALUES('50','Méautis','09',651,642,16.98,'-4040','54753',0,29);
INSERT INTO "communes" VALUES('50','Saint-Aubin-de-Terregatte','33',711,562,20.96,'-4040','53973',12,181);
INSERT INTO "communes" VALUES('50','Laulne','20',157,183,9.06,'-4217','54717',13,103);
INSERT INTO "communes" VALUES('50','<NAME>','28',282,261,5.52,'-4628','54986',0,102);
INSERT INTO "communes" VALUES('50','Gavray','14',1388,1482,20.6,'-4096','54344',24,186);
INSERT INTO "communes" VALUES('50','Lolif','42',546,523,12.5,'-4144','54149',9,120);
INSERT INTO "communes" VALUES('50','Négreville','07',829,734,11.48,'-4327','55018',14,79);
INSERT INTO "communes" VALUES('50','Breuville','07',378,351,8.41,'-4454','55040',58,138);
INSERT INTO "communes" VALUES('50','Saint-Germain-des-Vaux','04',414,463,6.36,'-4729','55236',0,123);
INSERT INTO "communes" VALUES('50','Pierreville','28',702,586,10.11,'-4575','54970',35,117);
INSERT INTO "communes" VALUES('50','<NAME>','14',162,145,6.78,'-4110','54313',30,131);
INSERT INTO "communes" VALUES('50','Huisnes-sur-Mer','29',208,151,6.75,'-4207','54009',6,38);
INSERT INTO "communes" VALUES('50','Amfreville','37',293,290,10.1,'-4143','54900',1,31);
INSERT INTO "communes" VALUES('50','Omonville-la-Petite','04',137,132,6.16,'-4688','55223',0,181);
INSERT INTO "communes" VALUES('50','Troisgots','45',283,302,7.53,'-3788','54457',25,133);
INSERT INTO "communes" VALUES('50','Périers','27',2390,2558,14.62,'-4160','54652',6,36);
INSERT INTO "communes" VALUES('50','<NAME>','17',316,254,7.53,'-4190','54183',44,126);
INSERT INTO "communes" VALUES('50','Surville','16',196,134,7.4,'-4428','54759',4,41);
INSERT INTO "communes" VALUES('50','Morville','07',260,262,7.08,'-4276','54971',12,47);
INSERT INTO "communes" VALUES('50','Lieusaint','47',376,333,5.22,'-4238','54972',9,44);
INSERT INTO "communes" VALUES('50','Montpinchon','10',560,494,16.94,'-4052','54469',37,148);
INSERT INTO "communes" VALUES('50','Saint-Gilles','21',903,783,7.84,'-3902','54561',12,104);
INSERT INTO "communes" VALUES('50','Montmartin-en-Graignes','34',560,522,30.34,'-3870','54751',0,38);
INSERT INTO "communes" VALUES('50','Monthuchon','40',607,590,7.66,'-4176','54536',69,176);
INSERT INTO "communes" VALUES('50','Querqueville','50',5244,5147,5.56,'-4480','55182',0,115);
INSERT INTO "communes" VALUES('50','Valcanville','30',372,387,6.45,'-4073','55160',8,86);
INSERT INTO "communes" VALUES('50','Clitourps','38',201,138,6.3,'-4119','55173',53,137);
INSERT INTO "communes" VALUES('50','Saint-James','33',2678,2918,17.96,'-4068','53914',28,151);
INSERT INTO "communes" VALUES('50','Villedieu-les-Poêles','48',3871,4104,8.05,'-3954','54265',98,217);
INSERT INTO "communes" VALUES('50','Saint-Hilaire-du-Harcouët','32',3959,4363,10.12,'-3809','53975',58,119);
INSERT INTO "communes" VALUES('50','Fontenay','24',316,292,6.85,'-3740','54032',78,139);
INSERT INTO "communes" VALUES('50','Moulines','32',302,290,7.41,'-3743','53939',74,183);
INSERT INTO "communes" VALUES('50','Sortosville','22',103,72,2.48,'-4188','54977',15,53);
INSERT INTO "communes" VALUES('50','Doville','16',293,257,11.09,'-4307','54813',2,128);
INSERT INTO "communes" VALUES('50','<NAME>','32',281,271,9.75,'-3788','54030',72,205);
INSERT INTO "communes" VALUES('50','Loges-sur-Brécey','05',156,147,5.27,'-3903','54184',53,165);
INSERT INTO "communes" VALUES('50','Hardinvast','25',896,804,7.3,'-4427','55087',67,172);
INSERT INTO "communes" VALUES('50','Bolleville','16',380,368,6.09,'-4347','54779',7,44);
INSERT INTO "communes" VALUES('50','Boisyvon','39',110,106,3.85,'-3850','54228',170,270);
INSERT INTO "communes" VALUES('50','Gathemo','43',287,292,10.41,'-3680','54184',230,367);
INSERT INTO "communes" VALUES('50','Chambres','17',121,92,4.18,'-4138','54185',68,133);
INSERT INTO "communes" VALUES('50','Saint-Sauveur-le-Vicomte','41',2082,2211,34.27,'-4298','54874',2,91);
INSERT INTO "communes" VALUES('50','Juvigny-le-Tertre','19',610,675,7.5,'-3731','54085',135,283);
INSERT INTO "communes" VALUES('50','Brectouville','46',167,157,3.74,'-3732','54469',29,137);
INSERT INTO "communes" VALUES('50','<NAME>','26',311,279,11.28,'-3879','54337',115,228);
INSERT INTO "communes" VALUES('50','Saint-Denis-le-Vêtu','10',608,590,14.08,'-4155','54429',20,121);
INSERT INTO "communes" VALUES('50','Le Neufbourg','24',488,534,2.25,'-3649','54063',160,286);
INSERT INTO "communes" VALUES('50','Saint-Michel-de-la-Pierre','40',205,183,4.25,'-4135','54598',25,109);
INSERT INTO "communes" VALUES('50','Bourguenolles','48',324,243,7.65,'-4038','54227',91,184);
INSERT INTO "communes" VALUES('50','Barfleur','30',643,642,0.6,'-4001','55189',0,8);
INSERT INTO "communes" VALUES('50','Saint-Fromond','34',763,665,15.52,'-3809','54690',0,53);
INSERT INTO "communes" VALUES('50','Longueville','06',620,529,4.07,'-4320','54282',20,68);
INSERT INTO "communes" VALUES('50','Giéville','46',683,589,10.33,'-3684','54460',53,150);
INSERT INTO "communes" VALUES('50','Cherbourg-Octeville','96',38433,25337,14.26,'-4391','55154',0,139);
INSERT INTO "communes" VALUES('50','Roncey','10',826,799,12.15,'-4078','54433',33,131);
INSERT INTO "communes" VALUES('50','Vauville','04',383,368,16.35,'-4648','55153',3,182);
INSERT INTO "communes" VALUES('50','Saint-Georges-de-Rouelley','02',542,519,20.52,'-3450','54004',119,283);
INSERT INTO "communes" VALUES('50','<NAME>','26',633,564,14.37,'-3910','54305',88,247);
INSERT INTO "communes" VALUES('50','Martinvast','25',1189,1116,10.31,'-4445','55107',17,155);
INSERT INTO "communes" VALUES('50','Virandeville','50',804,763,8.22,'-4514','55076',31,95);
INSERT INTO "communes" VALUES('50','Neuville-en-Beaumont','41',38,45,1.69,'-4373','54831',7,41);
INSERT INTO "communes" VALUES('50','Coigny','16',206,204,4.5,'-4134','54804',4,36);
INSERT INTO "communes" VALUES('50','Saint-Christophe-du-Foc','28',398,276,3.58,'-4531','55062',44,99);
INSERT INTO "communes" VALUES('50','Quettetot','07',728,562,12.43,'-4448','54986',34,159);
INSERT INTO "communes" VALUES('50','Helleville','28',438,324,5.88,'-4578','55061',60,138);
INSERT INTO "communes" VALUES('50','Tonneville','04',658,594,3.84,'-4503','55160',19,171);
INSERT INTO "communes" VALUES('50','Biniville','41',103,89,2.98,'-4237','54920',14,40);
INSERT INTO "communes" VALUES('50','Houtteville','16',93,81,4.51,'-4110','54821',1,37);
INSERT INTO "communes" VALUES('50','Fresville','22',373,326,13.94,'-4103','54933',1,36);
INSERT INTO "communes" VALUES('50','Pontaubault','01',472,445,1.94,'-4097','54032',7,72);
INSERT INTO "communes" VALUES('50','Benoîtville','28',592,458,8.29,'-4575','55031',35,131);
INSERT INTO "communes" VALUES('50','Varenguebec','16',361,292,21.19,'-4261','54821',2,131);
INSERT INTO "communes" VALUES('50','Saint-Pierre-de-Semilly','31',420,378,4.59,'-3713','54578',78,174);
INSERT INTO "communes" VALUES('50','Saint-Vaast-la-Hougue','30',2028,2128,6.28,'-4004','55098',0,10);
INSERT INTO "communes" VALUES('50','Saint-Lô','95',18718,20081,23.19,'-3809','54572',7,134);
INSERT INTO "communes" VALUES('50','Chef-du-Pont','37',743,749,3.78,'-4090','54872',0,18);
INSERT INTO "communes" VALUES('50','Rampan','52',218,212,4.09,'-3851','54606',7,78);
INSERT INTO "communes" VALUES('50','Barneville-Carteret','03',2283,2431,10.29,'-4544','54868',0,100);
INSERT INTO "communes" VALUES('50','Cambernon','12',719,699,17.01,'-4136','54534',57,177);
INSERT INTO "communes" VALUES('50','Fontenay-sur-Mer','22',168,176,8.18,'-4058','54988',1,43);
INSERT INTO "communes" VALUES('50','Saint-Romphaire','08',744,595,9.97,'-3825','54488',18,155);
INSERT INTO "communes" VALUES('50','<NAME>','34',548,505,14.58,'-3890','54671',8,52);
INSERT INTO "communes" VALUES('50','<NAME>','21',272,254,2.81,'-3942','54560',43,109);
INSERT INTO "communes" VALUES('50','Chéris','13',266,235,5.87,'-3996','54037',12,140);
INSERT INTO "communes" VALUES('50','Savigny-le-Vieux','44',422,494,17.16,'-3761','53912',87,220);
INSERT INTO "communes" VALUES('50','Saussemesnil','47',920,914,21.45,'-4245','55078',60,175);
INSERT INTO "communes" VALUES('50','Notre-Dame-de-Cenilly','10',704,689,25.23,'-3993','54439',50,141);
INSERT INTO "communes" VALUES('50','Champeaux','42',358,321,4.29,'-4295','54154',0,103);
INSERT INTO "communes" VALUES('50','Ponts','01',592,443,6.7,'-4091','54115',7,72);
INSERT INTO "communes" VALUES('50','Saint-Aubin-du-Perron','40',238,219,7.62,'-4124','54613',15,88);
INSERT INTO "communes" VALUES('50','Rauville-la-Place','41',388,436,11.88,'-4268','54876',2,46);
INSERT INTO "communes" VALUES('50','Théville','38',304,243,7.77,'-4176','55169',59,136);
INSERT INTO "communes" VALUES('50','Barenton','02',1255,1348,34.88,'-3520','53999',88,297);
INSERT INTO "communes" VALUES('50','Soulles','08',468,395,14.86,'-3917','54460',81,180);
INSERT INTO "communes" VALUES('50','Marcey-les-Grèves','01',1271,1093,6.73,'-4142','54108',6,46);
INSERT INTO "communes" VALUES('50','Saint-Pair-sur-Mer','15',3842,3623,14.42,'-4339','54239',2,72);
INSERT INTO "communes" VALUES('50','Canville-la-Rocque','16',130,130,5.35,'-4415','54824',7,43);
INSERT INTO "communes" VALUES('50','Hémevez','22',173,148,4.3,'-4197','54954',6,28);
INSERT INTO "communes" VALUES('50','Étienville','41',330,344,7.36,'-4191','54864',2,30);
INSERT INTO "communes" VALUES('50','<NAME>','27',258,281,14.99,'-4181','54757',2,130);
INSERT INTO "communes" VALUES('50','Marigny','21',2141,1874,10.31,'-3974','54554',32,112);
INSERT INTO "communes" VALUES('50','Lessay','20',2025,1768,22.23,'-4297','54687',5,42);
INSERT INTO "communes" VALUES('50','Saint-Cyr','22',210,178,5.7,'-4173','54987',7,84);
INSERT INTO "communes" VALUES('50','Saint-Germain-d''Elle','31',204,198,8.87,'-3618','54581',90,196);
INSERT INTO "communes" VALUES('50','Beuzeville-la-Bastille','37',150,161,4.34,'-4119','54841',2,37);
INSERT INTO "communes" VALUES('50','Montsurvent','36',344,279,8.33,'-4260','54572',31,88);
INSERT INTO "communes" VALUES('50','Gatteville-le-Phare','38',497,566,9.7,'-4022','55207',0,36);
INSERT INTO "communes" VALUES('50','Bion','24',401,431,12.67,'-3617','54022',76,305);
INSERT INTO "communes" VALUES('50','<NAME>','01',127,86,3.78,'-3990','54118',12,137);
INSERT INTO "communes" VALUES('50','Pont-Hébert','34',1780,1712,14.99,'-3855','54630',5,83);
INSERT INTO "communes" VALUES('50','Ozeville','22',148,124,4.7,'-4084','55002',20,72);
INSERT INTO "communes" VALUES('50','Sainte-Marie-du-Bois','44',58,55,4.77,'-3586','53959',100,210);
INSERT INTO "communes" VALUES('50','Précey','13',488,339,7.73,'-4126','54009',13,73);
INSERT INTO "communes" VALUES('50','Auderville','04',267,284,4.33,'-4742','55236',0,133);
INSERT INTO "communes" VALUES('50','Reffuveille','19',476,498,23.34,'-3835','54076',69,244);
INSERT INTO "communes" VALUES('50','Ducey','13',2478,2179,11.21,'-4028','54021',6,113);
INSERT INTO "communes" VALUES('50','Brouains','43',194,213,3.79,'-3671','54135',105,263);
INSERT INTO "communes" VALUES('50','Domjean','45',1023,820,16.57,'-3743','54430',30,178);
INSERT INTO "communes" VALUES('50','Varouville','38',267,274,4.19,'-4116','55196',22,108);
INSERT INTO "communes" VALUES('50','<NAME>','30',146,113,4.74,'-4051','55150',8,122);
INSERT INTO "communes" VALUES('50','Urville','22',194,185,5.15,'-4189','54946',6,33);
INSERT INTO "communes" VALUES('50','Romagny','24',1030,1013,29.46,'-3670','54045',70,287);
INSERT INTO "communes" VALUES('50','Argouges','33',549,541,16.41,'-4147','53892',25,133);
INSERT INTO "communes" VALUES('50','Valognes','47',7190,7538,15.63,'-4228','55010',19,87);
INSERT INTO "communes" VALUES('50','Gréville-Hague','04',767,721,10.03,'-4597','55194',0,167);
INSERT INTO "communes" VALUES('50','Créances','20',2182,2014,20.32,'-4337','54668',0,35);
INSERT INTO "communes" VALUES('50','Réthoville','38',134,124,3.43,'-4104','55218',0,45);
INSERT INTO "communes" VALUES('50','Sourdeval-les-Bois','14',176,181,5.86,'-4001','54345',55,184);
INSERT INTO "communes" VALUES('50','Vengeons','43',481,517,15.75,'-3614','54172',160,352);
INSERT INTO "communes" VALUES('50','Gratot','36',663,611,10.73,'-4249','54517',33,147);
INSERT INTO "communes" VALUES('50','<NAME>','03',198,162,3.45,'-4479','54855',20,76);
INSERT INTO "communes" VALUES('50','Canisy','08',1028,934,6.25,'-3902','54529',39,116);
INSERT INTO "communes" VALUES('50','Montebourg','22',2105,2024,5.89,'-4129','54986',21,116);
INSERT INTO "communes" VALUES('50','Yvetot-Bocage','47',1139,1025,12.46,'-4267','54989',13,75);
INSERT INTO "communes" VALUES('50','Saint-Jean-de-la-Haize','01',500,400,8.95,'-4108','54116',7,128);
INSERT INTO "communes" VALUES('50','Baubigny','03',156,166,6.41,'-4600','54922',0,80);
INSERT INTO "communes" VALUES('50','Saint-Clair-sur-l''Elle','31',911,865,7.99,'-3740','54658',12,95);
INSERT INTO "communes" VALUES('50','<NAME>','17',1367,1320,6.29,'-4148','54217',62,134);
INSERT INTO "communes" VALUES('50','Sourdeval','43',2782,3032,36.12,'-3619','54137',155,354);
INSERT INTO "communes" VALUES('50','Rouxeville','46',337,299,5.83,'-3649','54557',99,199);
INSERT INTO "communes" VALUES('50','Anneville-en-Saire','30',386,324,6,'-4025','55151',1,111);
INSERT INTO "communes" VALUES('50','Auxais','09',180,136,7.76,'-4039','54681',2,19);
INSERT INTO "communes" VALUES('50','Tocqueville','38',260,280,5.9,'-4081','55190',8,71);
INSERT INTO "communes" VALUES('50','Rocheville','07',649,559,10.07,'-4369','55003',22,135);
INSERT INTO "communes" VALUES('50','Ver','14',375,286,13.27,'-4144','54327',20,118);
INSERT INTO "communes" VALUES('50','Écoquenéauville','37',69,68,3.52,'-4032','54891',5,37);
INSERT INTO "communes" VALUES('50','Isigny-le-Buat','18',3282,3058,73.31,'-3897','54021',23,215);
INSERT INTO "communes" VALUES('50','Octeville-l''Avenel','30',193,167,6.86,'-4101','55048',20,82);
INSERT INTO "communes" VALUES('50','Pieux','28',3558,3474,15.25,'-4605','55015',5,132);
INSERT INTO "communes" VALUES('50','Ancteville','36',246,204,7.74,'-4239','54559',44,128);
INSERT INTO "communes" VALUES('50','Montgardon','16',414,418,13.32,'-4343','54756',9,88);
INSERT INTO "communes" VALUES('50','Saint-Jores','27',361,462,12.73,'-4176','54781',1,44);
INSERT INTO "communes" VALUES('50','Pirou','20',1589,1319,29.11,'-4339','54629',0,40);
INSERT INTO "communes" VALUES('50','Saint-Sauveur-la-Pommeraye','06',308,272,5.27,'-4202','54274',64,131);
INSERT INTO "communes" VALUES('50','Cretteville','16',230,220,6.83,'-4138','54826',2,37);
INSERT INTO "communes" VALUES('50','Digulleville','04',291,247,7.89,'-4662','55221',0,182);
INSERT INTO "communes" VALUES('50','<NAME>','06',157,144,7.6,'-4161','54277',32,126);
INSERT INTO "communes" VALUES('50','Carneville','38',228,222,6.88,'-4203','55182',30,139);
INSERT INTO "communes" VALUES('50','Bricquebec','07',4256,4366,32.66,'-4406','54967',7,161);
INSERT INTO "communes" VALUES('50','Saint-Amand','46',2257,2004,29.2,'-3667','54492',43,218);
INSERT INTO "communes" VALUES('50','Crollon','13',242,213,4.68,'-4134','53984',24,80);
INSERT INTO "communes" VALUES('50','Le Mont-Saint-Michel','29',43,46,3.97,'-4274','54040',5,57);
INSERT INTO "communes" VALUES('50','Veys','09',401,358,14.88,'-3877','54795',0,32);
INSERT INTO "communes" VALUES('50','Gonfreville','27',160,153,9.04,'-4146','54710',3,33);
INSERT INTO "communes" VALUES('50','Servon','29',255,250,9.23,'-4172','54001',6,48);
INSERT INTO "communes" VALUES('50','Denneville','16',553,480,8.24,'-4441','54793',4,38);
INSERT INTO "communes" VALUES('50','Sainteny','09',811,785,21.63,'-4056','54709',2,26);
INSERT INTO "communes" VALUES('50','<NAME>','01',224,155,3.65,'-4028','54100',40,137);
INSERT INTO "communes" VALUES('50','Beuzeville-au-Plain','37',47,46,2.04,'-4025','54923',14,41);
INSERT INTO "communes" VALUES('50','Hérenguerville','23',182,128,2.71,'-4264','54419',25,56);
INSERT INTO "communes" VALUES('50','Saint-Germain-de-Varreville','37',119,119,5.81,'-3993','54931',1,40);
INSERT INTO "communes" VALUES('50','Bricqueville-la-Blouette','12',547,543,6.25,'-4239','54482',5,96);
INSERT INTO "communes" VALUES('50','Saint-Planchers','15',1347,1119,11.96,'-4291','54248',17,98);
INSERT INTO "communes" VALUES('50','Gouvets','45',268,265,11.01,'-3814','54370',74,277);
INSERT INTO "communes" VALUES('50','Trelly','23',668,498,11.77,'-4181','54400',11,112);
INSERT INTO "communes" VALUES('50','Regnéville-sur-Mer','23',831,794,8.5,'-4309','54468',5,43);
INSERT INTO "communes" VALUES('50','Graignes-Mesnil-Angot','34',793,618,18.35,'-3931','54709',0,37);
INSERT INTO "communes" VALUES('50','Tribehou','34',496,519,9.97,'-3978','54682',0,24);
INSERT INTO "communes" VALUES('50','Vesly','98',659,541,22.48,'-4268','54725',6,123);
INSERT INTO "communes" VALUES('50','Villebaudon','26',299,283,5.69,'-3892','54400',99,183);
INSERT INTO "communes" VALUES('50','Le Mesnil-Rainfray','19',244,237,11.47,'-3770','54074',125,252);
INSERT INTO "communes" VALUES('50','Quinéville','22',298,294,4.6,'-4037','55014',1,67);
INSERT INTO "communes" VALUES('50','Sartilly','42',1535,1265,11.53,'-4215','54169',35,119);
INSERT INTO "communes" VALUES('50','Dragey-Ronthon','42',799,615,15.17,'-4260','54124',6,115);
INSERT INTO "communes" VALUES('50','Saint-Sauveur-Lendelin','40',1692,1336,16.39,'-4167','54590',23,123);
INSERT INTO "communes" VALUES('50','Beuvrigny','45',139,95,6.77,'-3712','54409',60,216);
INSERT INTO "communes" VALUES('50','Carantilly','21',609,530,10.7,'-3974','54517',67,119);
INSERT INTO "communes" VALUES('50','Le Mesnil-Adelée','19',189,167,6.82,'-3791','54112',47,231);
INSERT INTO "communes" VALUES('50','<NAME>','07',585,522,20.56,'-4497','54947',18,127);
INSERT INTO "communes" VALUES('50','Geffosses','20',417,406,15.07,'-4328','54590',2,39);
INSERT INTO "communes" VALUES('50','Biéville','46',173,146,5.56,'-3583','54535',82,160);
INSERT INTO "communes" VALUES('50','La Lucerne-d''Outremer','17',833,736,14.48,'-4181','54205',31,146);
INSERT INTO "communes" VALUES('50','Lamberville','46',171,169,7.12,'-3606','54534',95,181);
INSERT INTO "communes" VALUES('50','Siouville-Hague','28',1104,994,6.37,'-4640','55065',5,99);
INSERT INTO "communes" VALUES('50','Gourfaleur','08',452,433,8.45,'-3832','54537',12,100);
INSERT INTO "communes" VALUES('50','Appeville','16',205,222,13.2,'-4088','54802',0,34);
INSERT INTO "communes" VALUES('50','Le Hommet-d''Arthenay','34',433,327,14.85,'-3916','54656',0,54);
INSERT INTO "communes" VALUES('50','Orval','23',864,812,12.54,'-4231','54460',4,88);
INSERT INTO "communes" VALUES('50','Montviron','42',344,265,5.91,'-4174','54153',27,121);
INSERT INTO "communes" VALUES('50','Montcuit','40',197,175,4.79,'-4087','54579',40,142);
INSERT INTO "communes" VALUES('50','Nay','27',80,73,2.51,'-4122','54711',2,13);
INSERT INTO "communes" VALUES('50','Guéhébert','10',115,135,6.29,'-4122','54411',25,121);
INSERT INTO "communes" VALUES('50','Tessy-sur-Vire','45',1454,1433,15.9,'-3775','54416',34,210);
INSERT INTO "communes" VALUES('50','<NAME>','36',431,374,5.04,'-4221','54535',60,139);
INSERT INTO "communes" VALUES('50','<NAME>','40',605,556,14.57,'-4048','54549',38,147);
INSERT INTO "communes" VALUES('50','Montrabot','46',80,87,3.86,'-3586','54565',77,191);
INSERT INTO "communes" VALUES('50','Blainville-sur-Mer','36',1576,1315,11.6,'-4355','54518',1,67);
INSERT INTO "communes" VALUES('50','Montabot','26',291,272,11.56,'-3846','54372',85,272);
INSERT INTO "communes" VALUES('50','<NAME>','21',655,628,15,'-3946','54586',17,112);
INSERT INTO "communes" VALUES('50','Hauteville-la-Guichard','40',454,373,11.98,'-4042','54585',11,111);
INSERT INTO "communes" VALUES('50','Montchaton','23',333,333,6.5,'-4261','54454',5,61);
INSERT INTO "communes" VALUES('50','<NAME>','40',347,274,6.67,'-4197','54585',33,93);
INSERT INTO "communes" VALUES('50','Saint-Georges-Montcocq','52',829,896,8.94,'-3811','54587',7,126);
INSERT INTO "communes" VALUES('50','Hautteville-Bocage','41',130,88,4.22,'-4223','54917',10,39);
INSERT INTO "communes" VALUES('50','Villiers-Fossard','31',558,465,8.52,'-3774','54619',20,133);
INSERT INTO "communes" VALUES('50','Torigni-sur-Vire','46',2377,2579,3.01,'-3684','54484',53,139);
INSERT INTO "communes" VALUES('50','Le Theil','38',671,558,13.81,'-4232','55121',47,132);
INSERT INTO "communes" VALUES('50','Servigny','36',211,165,3.95,'-4234','54549',49,98);
INSERT INTO "communes" VALUES('50','Saint-Rémy-des-Landes','16',208,217,8.3,'-4437','54779',4,39);
INSERT INTO "communes" VALUES('50','Canteloup','38',195,174,4.28,'-4098','55162',55,124);
INSERT INTO "communes" VALUES('50','<NAME>','14',94,118,4.13,'-4060','54361',37,171);
INSERT INTO "communes" VALUES('50','Gouville-sur-Mer','36',2042,1685,13.24,'-4352','54553',0,46);
INSERT INTO "communes" VALUES('50','Gorges','27',360,356,22.67,'-4159','54730',1,38);
INSERT INTO "communes" VALUES('50','Saint-Maurice-en-Cotentin','03',288,231,7.46,'-4491','54878',34,126);
INSERT INTO "communes" VALUES('50','Poilley','13',869,668,12.65,'-4052','54020',5,72);
INSERT INTO "communes" VALUES('50','<NAME>','40',286,261,4.98,'-4095','54593',32,121);
INSERT INTO "communes" VALUES('50','Sainte-Croix-Hague','04',752,608,9.84,'-4566','55154',60,182);
INSERT INTO "communes" VALUES('50','Saint-Georges-de-Bohon','09',407,427,13.96,'-4006','54723',0,25);
INSERT INTO "communes" VALUES('50','Maupertuis','26',135,127,5.41,'-3931','54394',104,171);
INSERT INTO "communes" VALUES('50','<NAME>','35',48,47,1.94,'-3763','54599',60,137);
INSERT INTO "communes" VALUES('50','Sotteville','28',464,347,6.13,'-4544','55043',55,138);
INSERT INTO "communes" VALUES('50','Parigny','32',1832,1708,11.62,'-3794','53995',59,117);
INSERT INTO "communes" VALUES('50','Beauchamps','17',382,354,4.1,'-4106','54258',52,136);
INSERT INTO "communes" VALUES('50','Houesville','37',310,223,5.38,'-4027','54834',2,26);
INSERT INTO "communes" VALUES('50','<NAME>','19',163,161,5.8,'-3739','54051',92,212);
INSERT INTO "communes" VALUES('50','Sainte-Geneviève','30',313,293,4.95,'-4054','55174',9,60);
INSERT INTO "communes" VALUES('50','Quibou','08',918,817,17.15,'-3929','54520',46,114);
INSERT INTO "communes" VALUES('50','Juilley','13',598,474,11.23,'-4089','53999',25,86);
INSERT INTO "communes" VALUES('50','Céaux','13',444,379,8.39,'-4138','54035',5,71);
INSERT INTO "communes" VALUES('50','<NAME>','17',224,176,8.5,'-4062','54174',80,182);
INSERT INTO "communes" VALUES('50','Camprond','40',386,318,6.27,'-4094','54543',70,178);
INSERT INTO "communes" VALUES('50','Macey','29',114,98,5.87,'-4191','53957',16,74);
INSERT INTO "communes" VALUES('50','Chérencé-le-Roussel','19',307,330,10.95,'-3726','54121',61,290);
INSERT INTO "communes" VALUES('50','Brucheville','37',143,147,13.33,'-3935','54859',0,21);
INSERT INTO "communes" VALUES('50','Cerisy-la-Salle','10',1018,936,16.86,'-4021','54473',58,169);
INSERT INTO "communes" VALUES('50','Saussey','12',502,509,8.89,'-4189','54455',10,108);
INSERT INTO "communes" VALUES('50','Millières','20',736,562,20.27,'-4217','54651',7,53);
INSERT INTO "communes" VALUES('50','Urville-Nacqueville','04',2183,2228,11.58,'-4528','55193',0,148);
INSERT INTO "communes" VALUES('50','<NAME>','16',1662,1878,5.25,'-4310','54767',29,94);
INSERT INTO "communes" VALUES('50','Pontorson','29',4114,4109,43.01,'-4271','53948',5,73);
INSERT INTO "communes" VALUES('50','Airel','31',531,485,10.17,'-3792','54682',1,44);
INSERT INTO "communes" VALUES('50','Acqueville','04',650,650,5.79,'-4540','55122',72,178);
INSERT INTO "communes" VALUES('50','Sainte-Cécile','48',814,728,11.29,'-3918','54262',112,226);
INSERT INTO "communes" VALUES('50','Carquebut','37',301,296,8.54,'-4074','54859',2,34);
INSERT INTO "communes" VALUES('50','Agneaux','52',4020,4468,6.5,'-3830','54574',7,86);
INSERT INTO "communes" VALUES('50','Réville','30',1179,1174,10.55,'-3994','55132',0,16);
INSERT INTO "communes" VALUES('50','Portbail','03',1656,1675,19.56,'-4480','54817',2,90);
INSERT INTO "communes" VALUES('50','La Glacerie','51',5501,5403,18.7,'-4378','55127',5,178);
INSERT INTO "communes" VALUES('50','Saint-Vigor-des-Monts','45',295,285,15.74,'-3785','54345',50,277);
INSERT INTO "communes" VALUES('50','Vierville','37',39,41,4.1,'-3981','54845',2,23);
INSERT INTO "communes" VALUES('50','Vains','01',724,668,8.58,'-4165','54091',5,39);
INSERT INTO "communes" VALUES('50','Saint-Martin-des-Champs','01',2223,2095,6.49,'-4075','54077',8,111);
INSERT INTO "communes" VALUES('50','Le Mesnil-au-Val','51',676,556,13.34,'-4290','55119',73,178);
INSERT INTO "communes" VALUES('50','Beaumont-Hague','04',1484,1384,7.9,'-4637','55182',5,179);
INSERT INTO "communes" VALUES('50','Cérences','06',1804,1758,26.04,'-4191','54352',14,115);
INSERT INTO "communes" VALUES('50','Orglandes','41',338,310,9.26,'-4206','54913',5,38);
INSERT INTO "communes" VALUES('50','<NAME>','01',1853,1574,11.1,'-4124','54070',4,111);
INSERT INTO "communes" VALUES('50','Saint-Côme-du-Mont','09',534,462,12.91,'-4010','54818',0,32);
INSERT INTO "communes" VALUES('50','Blosville','37',268,206,4.22,'-4030','54859',2,38);
INSERT INTO "communes" VALUES('50','Hébécrevon','21',1138,969,13.39,'-3892','54585',7,108);
INSERT INTO "communes" VALUES('50','Saint-Pierre-de-Coutances','12',410,318,4.04,'-4206','54484',11,125);
INSERT INTO "communes" VALUES('50','Vessey','29',411,398,12.59,'-4187','53917',19,87);
INSERT INTO "communes" VALUES('50','Saint-Martin-d''Audouville','22',125,130,3.64,'-4109','55032',15,56);
INSERT INTO "communes" VALUES('50','Saint-Jacques-de-Néhou','41',534,412,21.49,'-4388','54909',7,100);
INSERT INTO "communes" VALUES('50','<NAME>','26',117,122,5.39,'-3961','54414',100,141);
INSERT INTO "communes" VALUES('50','Boutteville','37',57,62,1.82,'-3995','54877',3,38);
INSERT INTO "communes" VALUES('50','<NAME>','45',266,214,5.58,'-3816','54459',65,161);
INSERT INTO "communes" VALUES('50','Saint-Pierre-d''Arthéglise','03',151,128,5.36,'-4478','54905',29,141);
INSERT INTO "communes" VALUES('50','Quettreville-sur-Sienne','23',1438,1234,16.14,'-4227','54411',8,68);
INSERT INTO "communes" VALUES('50','Précorbin','46',522,428,7.21,'-3665','54540',49,216);
INSERT INTO "communes" VALUES('50','Hudimesnil','06',866,713,18.68,'-4254','54292',28,117);
INSERT INTO "communes" VALUES('50','<NAME>','52',506,441,4.74,'-3803','54609',65,137);
INSERT INTO "communes" VALUES('50','Gonneville','38',874,852,15.36,'-4225','55154',52,156);
INSERT INTO "communes" VALUES('50','Notre-Dame-d''Elle','31',130,122,2.85,'-3662','54568',114,195);
INSERT INTO "communes" VALUES('50','Gourbesville','37',173,156,8.18,'-4163','54912',3,31);
INSERT INTO "communes" VALUES('50','Nouainville','50',448,528,3.81,'-4465','55138',45,150);
INSERT INTO "communes" VALUES('50','Chérencé-le-Héron','48',378,409,9.54,'-3926','54225',129,226);
INSERT INTO "communes" VALUES('50','Brix','47',2067,1927,32.16,'-4350','55050',39,176);
INSERT INTO "communes" VALUES('50','Nicorps','12',422,377,5.63,'-4175','54474',15,108);
INSERT INTO "communes" VALUES('50','Lingeard','39',85,86,3.65,'-3736','54154',110,287);
INSERT INTO "communes" VALUES('50','Angoville-au-Plain','37',51,53,5.68,'-3989','54832',2,32);
INSERT INTO "communes" VALUES('50','Martigny','32',317,318,8.89,'-3824','54016',69,131);
INSERT INTO "communes" VALUES('50','<NAME>','44',1284,1376,30.45,'-3566','53932',103,222);
INSERT INTO "communes" VALUES('50','Couville','25',970,820,8.6,'-4469','55060',45,130);
INSERT INTO "communes" VALUES('50','Saint-Germain-sur-Ay','20',897,797,14.52,'-4366','54706',0,39);
INSERT INTO "communes" VALUES('50','Saint-Symphorien-des-Monts','44',142,153,6.81,'-3710','53937',117,222);
INSERT INTO "communes" VALUES('50','Beauvoir','29',423,427,14.29,'-4268','53997',5,40);
INSERT INTO "communes" VALUES('50','Remilly-sur-Lozon','21',660,557,9.56,'-3992','54645',1,45);
INSERT INTO "communes" VALUES('50','Saint-Senier-sous-Avranches','01',1282,967,8.62,'-4087','54094',7,126);
INSERT INTO "communes" VALUES('50','Maupertus-sur-Mer','38',256,270,3.42,'-4245','55175',0,152);
INSERT INTO "communes" VALUES('50','Villiers-le-Pré','33',192,196,7.94,'-4150','53936',48,92);
INSERT INTO "communes" VALUES('50','<NAME>','06',155,152,5.96,'-4166','54385',14,117);
INSERT INTO "communes" VALUES('50','Grimesnil','14',63,51,2.61,'-4096','54393',45,118);
INSERT INTO "communes" VALUES('50','<NAME>','06',228,177,3.23,'-4186','54299',54,121);
INSERT INTO "communes" VALUES('50','Montfarville','30',800,859,5.4,'-4007','55172',0,28);
INSERT INTO "communes" VALUES('50','Vergoncey','33',211,210,7.73,'-4151','53958',16,87);
INSERT INTO "communes" VALUES('50','Audouville-la-Hubert','37',57,83,6.4,'-3975','54901',1,22);
INSERT INTO "communes" VALUES('50','Fermanville','38',1401,1418,11.6,'-4196','55208',0,136);
INSERT INTO "communes" VALUES('50','Saint-Maur-des-Bois','39',131,138,4.97,'-3882','54247',129,239);
INSERT INTO "communes" VALUES('51','Bouzy','03',945,995,6.26,'2012','54533',103,268);
INSERT INTO "communes" VALUES('51','Maisons-en-Champagne','34',500,414,29.14,'2400','54166',97,212);
INSERT INTO "communes" VALUES('51','Vincelles','09',339,319,3.55,'1450','54546',62,231);
INSERT INTO "communes" VALUES('51','Bignicourt-sur-Saulx','28',176,172,11.01,'2709','54184',109,130);
INSERT INTO "communes" VALUES('51','Étréchy','29',123,117,6.64,'1785','54318',153,206);
INSERT INTO "communes" VALUES('51','Fagnières','36',4420,5046,19.48,'2202','54404',77,122);
INSERT INTO "communes" VALUES('51','Montbré','30',261,259,3.08,'1894','54659',103,165);
INSERT INTO "communes" VALUES('51','Saint-Martin-aux-Champs','10',97,81,7.2,'2391','54247',88,165);
INSERT INTO "communes" VALUES('51','Boissy-le-Repos','17',203,180,15.3,'1457','54275',130,226);
INSERT INTO "communes" VALUES('51','Humbauville','26',76,75,16.85,'2310','54065',129,195);
INSERT INTO "communes" VALUES('51','Trois-Puits','40',150,146,2.14,'1892','54674',91,142);
INSERT INTO "communes" VALUES('51','Remicourt','08',64,70,9.37,'2821','54390',160,197);
INSERT INTO "communes" VALUES('51','Saint-Brice-Courcelles','41',3409,3528,4.16,'1832','54735',71,88);
INSERT INTO "communes" VALUES('51','Ludes','30',629,656,12.22,'1936','54616',93,279);
INSERT INTO "communes" VALUES('51','Montigny-sur-Vesle','14',477,395,9.46,'1628','54792',64,202);
INSERT INTO "communes" VALUES('51','Sermiers','30',558,572,18.23,'1832','54621',118,273);
INSERT INTO "communes" VALUES('51','Villers-Franqueux','05',317,281,3.29,'1786','54809',83,188);
INSERT INTO "communes" VALUES('51','Bannes','13',268,212,23.33,'1758','54225',125,167);
INSERT INTO "communes" VALUES('51','Sillery','30',1614,1655,9.2,'1995','54665',83,142);
INSERT INTO "communes" VALUES('51','Villers-le-Château','10',255,254,20.94,'2146','54401',79,141);
INSERT INTO "communes" VALUES('51','Braux-Sainte-Cohière','23',88,71,6.21,'2769','54547',141,182);
INSERT INTO "communes" VALUES('51','Aulnay-l''Aître','33',139,122,8.36,'2471','54248',94,182);
INSERT INTO "communes" VALUES('51','Sogny-en-l''Angle','15',41,57,6.66,'2739','54236',112,121);
INSERT INTO "communes" VALUES('51','Bazancourt','05',1958,1941,11.64,'2037','54848',71,129);
INSERT INTO "communes" VALUES('51','Voipreux','29',213,181,4.32,'1893','54343',97,121);
INSERT INTO "communes" VALUES('51','Courtémont','23',66,64,10.57,'2718','54592',128,201);
INSERT INTO "communes" VALUES('51','Giffaumont-Champaubert','24',257,234,28.16,'2685','53950',120,160);
INSERT INTO "communes" VALUES('51','Chantemerle','12',53,36,8.51,'1470','54014',98,208);
INSERT INTO "communes" VALUES('51','Sacy','31',380,344,5.56,'1791','54664',89,259);
INSERT INTO "communes" VALUES('51','Bétheny','22',6445,5937,19.9,'1912','54761',82,141);
INSERT INTO "communes" VALUES('51','Saint-Mard-lès-Rouffy','29',166,91,6.9,'1978','54380',84,108);
INSERT INTO "communes" VALUES('51','Nuisement-sur-Coole','10',334,270,15.13,'2193','54309',89,153);
INSERT INTO "communes" VALUES('51','Charmont','15',222,231,22.79,'2812','54301',121,193);
INSERT INTO "communes" VALUES('51','<NAME>','17',191,157,12.39,'1248','54217',137,196);
INSERT INTO "communes" VALUES('51','Congy','18',259,288,17.47,'1657','54288',142,237);
INSERT INTO "communes" VALUES('51','Magneux','14',265,209,3.19,'1538','54785',63,182);
INSERT INTO "communes" VALUES('51','Francheville','16',219,169,9.43,'2450','54322',93,178);
INSERT INTO "communes" VALUES('51','Charmontois','08',127,151,14.65,'2958','54408',149,181);
INSERT INTO "communes" VALUES('51','Écury-sur-Coole','10',460,391,18.3,'2220','54328',82,142);
INSERT INTO "communes" VALUES('51','Dampierre-sur-Moivre','16',117,87,11.55,'2469','54327',98,207);
INSERT INTO "communes" VALUES('51','Bannay','18',18,27,7.06,'1541','54288',137,224);
INSERT INTO "communes" VALUES('51','Vassimont-et-Chapelaine','13',64,71,21.73,'2009','54183',140,177);
INSERT INTO "communes" VALUES('51','<NAME>-sur-Marne','33',713,652,22.05,'2429','54260',87,187);
INSERT INTO "communes" VALUES('51','Vitry-en-Perthois','33',870,793,17.49,'2543','54163',92,207);
INSERT INTO "communes" VALUES('51','Allemant','25',176,168,15.77,'1627','54179',113,230);
INSERT INTO "communes" VALUES('51','Châtelraould-Saint-Louvent','24',241,229,16.91,'2455','54087',103,223);
INSERT INTO "communes" VALUES('51','Barbonne-Fayel','25',490,493,24.35,'1511','54064',85,215);
INSERT INTO "communes" VALUES('51','Chaumuzy','31',357,315,19.94,'1697','54639',111,264);
INSERT INTO "communes" VALUES('51','Queudes','25',89,71,10.06,'1581','54063',82,116);
INSERT INTO "communes" VALUES('51','Montgenost','12',156,116,8.4,'1398','53997',90,206);
INSERT INTO "communes" VALUES('51','Mancy','02',279,250,3.57,'1774','54425',98,236);
INSERT INTO "communes" VALUES('51','Saint-Ouen-Domprot','26',202,206,37.28,'2302','54010',113,207);
INSERT INTO "communes" VALUES('51','Outines','24',150,134,15.42,'2571','53949',121,142);
INSERT INTO "communes" VALUES('51','Vanault-les-Dames','15',405,332,19.97,'2703','54270',114,163);
INSERT INTO "communes" VALUES('51','Morsains','17',116,106,14.33,'1333','54219',149,217);
INSERT INTO "communes" VALUES('51','Chambrecy','31',142,74,6.12,'1651','54648',113,220);
INSERT INTO "communes" VALUES('51','Pouillon','05',467,464,2.78,'1790','54794',111,194);
INSERT INTO "communes" VALUES('51','Pourcy','07',171,173,8.35,'1754','54619',138,263);
INSERT INTO "communes" VALUES('51','Marolles','33',883,531,4.38,'2543','54131',100,114);
INSERT INTO "communes" VALUES('51','Cormoyeux','03',118,113,2.17,'1753','54566',145,264);
INSERT INTO "communes" VALUES('51','Drouilly','34',132,120,2.43,'2428','54191',92,136);
INSERT INTO "communes" VALUES('51','Somme-Vesle','16',425,226,35.31,'2506','54428',146,209);
INSERT INTO "communes" VALUES('51','Trois-Fontaines-l''Abbaye','28',221,245,43.71,'2903','54131',143,234);
INSERT INTO "communes" VALUES('51','Sommepy-Tahure','32',618,540,68.24,'2468','54724',123,211);
INSERT INTO "communes" VALUES('51','Corfélix','17',105,69,8.27,'1513','54263',137,211);
INSERT INTO "communes" VALUES('51','Vert-Toulon','29',298,307,22.04,'1750','54271',139,241);
INSERT INTO "communes" VALUES('51','Reims','99',179992,187181,46.9,'1880','54739',74,137);
INSERT INTO "communes" VALUES('51','Épernay','97',24035,25829,22.69,'1803','54489',68,251);
INSERT INTO "communes" VALUES('51','Somme-Bionne','23',78,54,9.21,'2653','54549',143,196);
INSERT INTO "communes" VALUES('51','Dommartin-sous-Hans','23',51,55,6.49,'2721','54585',132,203);
INSERT INTO "communes" VALUES('51','Coolus','36',213,226,13.18,'2242','54360',82,137);
INSERT INTO "communes" VALUES('51','<NAME>','02',1208,1077,7.91,'1873','54385',103,246);
INSERT INTO "communes" VALUES('51','Braux-Saint-Remy','23',93,74,9.57,'2807','54469',151,192);
INSERT INTO "communes" VALUES('51','Pargny-lès-Reims','31',366,340,3.62,'1766','54688',103,203);
INSERT INTO "communes" VALUES('51','Cuperly','27',217,173,20.92,'2328','54514',117,170);
INSERT INTO "communes" VALUES('51','Brouillet','31',93,86,4.58,'1558','54695',94,237);
INSERT INTO "communes" VALUES('51','Breuvery-sur-Coole','10',204,200,10.06,'2196','54290',92,144);
INSERT INTO "communes" VALUES('51','Montmirail','17',3795,3783,48.82,'1338','54301',112,224);
INSERT INTO "communes" VALUES('51','Saint-Masmes','04',455,523,6.58,'2140','54791',83,143);
INSERT INTO "communes" VALUES('51','Vouillers','28',229,187,8.28,'2775','54091',129,151);
INSERT INTO "communes" VALUES('51','Cuchery','07',421,351,7.03,'1652','54590',109,249);
INSERT INTO "communes" VALUES('51','Sogny-aux-Moulins','10',121,119,6.69,'2289','54335',82,138);
INSERT INTO "communes" VALUES('51','Rouvroy-Ripont','32',7,2,11.77,'2661','54695',123,192);
INSERT INTO "communes" VALUES('51','Ognes','13',68,72,7.79,'1742','54111',91,116);
INSERT INTO "communes" VALUES('51','Vandières','07',336,321,13.2,'1557','54564',63,236);
INSERT INTO "communes" VALUES('51','Écueil','31',317,365,7.03,'1796','54651',98,266);
INSERT INTO "communes" VALUES('51','Mareuil-sur-Ay','03',1225,1216,11.48,'1883','54498',68,190);
INSERT INTO "communes" VALUES('51','<NAME>','18',91,66,8.55,'1615','54347',216,237);
INSERT INTO "communes" VALUES('51','Moussy','37',764,731,2.81,'1761','54461',86,231);
INSERT INTO "communes" VALUES('51','Pontfaverger-Moronvilliers','04',1570,1376,31.52,'2203','54774',89,240);
INSERT INTO "communes" VALUES('51','Pévy','14',206,225,7.4,'1674','54790',87,214);
INSERT INTO "communes" VALUES('51','Thibie','10',263,280,10.46,'2088','54366',93,139);
INSERT INTO "communes" VALUES('51','Bréban','26',90,91,10.57,'2298','53976',108,171);
INSERT INTO "communes" VALUES('51','Arrigny','24',266,256,16.08,'2634','54026',109,141);
INSERT INTO "communes" VALUES('51','Granges-sur-Aube','01',187,124,8.06,'1684','53980',73,96);
INSERT INTO "communes" VALUES('51','Dampierre-le-Château','08',99,116,11.13,'2732','54455',149,210);
INSERT INTO "communes" VALUES('51','Val-de-Vesle','30',778,730,37.15,'2095','54639',87,158);
INSERT INTO "communes" VALUES('51','Courtisols','16',2552,2582,65.62,'2421','54429',105,204);
INSERT INTO "communes" VALUES('51','Montépreux','13',40,36,15.41,'2002','54125',144,204);
INSERT INTO "communes" VALUES('51','Baconnes','30',292,170,20.86,'2224','54622',111,166);
INSERT INTO "communes" VALUES('51','Marcilly-sur-Seine','01',630,650,10.01,'1525','53952',67,115);
INSERT INTO "communes" VALUES('51','Écury-le-Repos','29',67,81,9.96,'1884','54230',122,167);
INSERT INTO "communes" VALUES('51','Le Meix-Saint-Epoing','12',251,219,11.29,'1458','54116',155,214);
INSERT INTO "communes" VALUES('51','<NAME>','27',332,290,23.9,'2405','54500',123,177);
INSERT INTO "communes" VALUES('51','Nesle-la-Reposte','12',88,111,10.64,'1354','54035',104,197);
INSERT INTO "communes" VALUES('51','Lignon','24',103,86,7.5,'2438','53984',117,167);
INSERT INTO "communes" VALUES('51','Potangis','12',90,90,8.87,'1453','53986',75,139);
INSERT INTO "communes" VALUES('51','Norrois','28',173,138,4.14,'2543','54078',103,112);
INSERT INTO "communes" VALUES('51','Olizy','07',154,119,4.57,'1579','54608',120,243);
INSERT INTO "communes" VALUES('51','Saint-Martin-sur-le-Pré','35',772,881,11.89,'2224','54419',78,148);
INSERT INTO "communes" VALUES('51','Hans','23',150,133,19.5,'2680','54566',134,210);
INSERT INTO "communes" VALUES('51','Somme-Suippe','27',460,363,31.51,'2493','54573',139,205);
INSERT INTO "communes" VALUES('51','Trépail','30',433,462,8.37,'2050','54563',120,286);
INSERT INTO "communes" VALUES('51','Sainte-Gemme','07',141,121,7.25,'1482','54601',93,226);
INSERT INTO "communes" VALUES('51','Villers-Allerand','30',844,799,12.3,'1876','54629',109,274);
INSERT INTO "communes" VALUES('51','Heiltz-l''Évêque','15',298,285,9.43,'2677','54201',103,114);
INSERT INTO "communes" VALUES('51','Fèrebrianges','18',184,159,7.19,'1676','54300',145,247);
INSERT INTO "communes" VALUES('51','Sarcy','31',249,239,6.9,'1654','54674',100,197);
INSERT INTO "communes" VALUES('51','Loisy-sur-Marne','34',956,893,14.07,'2454','54176',92,173);
INSERT INTO "communes" VALUES('51','Vandeuil','14',198,212,5.35,'1618','54755',67,228);
INSERT INTO "communes" VALUES('51','Matignicourt-Goncourt','28',120,120,9.25,'2605','54085',107,117);
INSERT INTO "communes" VALUES('51','Bligny','31',109,89,2.59,'1693','54661',108,225);
INSERT INTO "communes" VALUES('51','Saint-Étienne-sur-Suippe','05',283,255,7.74,'1955','54874',65,108);
INSERT INTO "communes" VALUES('51','Puisieulx','30',366,344,9.07,'1974','54659',81,148);
INSERT INTO "communes" VALUES('51','Auménancourt','05',941,696,12.82,'1925','54872',61,95);
INSERT INTO "communes" VALUES('51','Passavant-en-Argonne','23',219,188,7.24,'2964','54471',146,250);
INSERT INTO "communes" VALUES('51','Serzy-et-Prin','31',180,198,7.36,'1589','54722',77,201);
INSERT INTO "communes" VALUES('51','Vauchamps','17',343,257,12.88,'1421','54312',201,231);
INSERT INTO "communes" VALUES('51','Champlat-et-Boujacourt','07',148,121,6.36,'1663','54615',138,248);
INSERT INTO "communes" VALUES('51','Matougues','10',668,643,13.77,'2117','54438',74,114);
INSERT INTO "communes" VALUES('51','Vouzy','29',319,254,9.44,'1971','54362',87,131);
INSERT INTO "communes" VALUES('51','Hermonville','14',1351,1245,13.3,'1747','54817',73,217);
INSERT INTO "communes" VALUES('51','Saint-Saturnin','01',58,45,7.96,'1740','54014',78,93);
INSERT INTO "communes" VALUES('51','Mourmelon-le-Grand','27',5048,4654,23.21,'2253','54601',104,147);
INSERT INTO "communes" VALUES('51','Muizon','31',2209,2344,7.15,'1727','54749',67,111);
INSERT INTO "communes" VALUES('51','<NAME>','01',87,105,15.04,'1662','54030',75,106);
INSERT INTO "communes" VALUES('51','Vitry-le-François','98',13384,16725,6.45,'2498','54139',92,112);
INSERT INTO "communes" VALUES('51','Dommartin-Varimont','08',140,125,23.6,'2717','54420',152,227);
INSERT INTO "communes" VALUES('51','Fontaine-en-Dormois','32',23,21,5.29,'2646','54708',122,194);
INSERT INTO "communes" VALUES('51','Saint-Imoges','03',297,240,17.13,'1821','54567',252,277);
INSERT INTO "communes" VALUES('51','Sept-Saulx','30',579,510,18.3,'2130','54610',91,151);
INSERT INTO "communes" VALUES('51','Ablancourt','33',151,172,7.07,'2428','54237',89,177);
INSERT INTO "communes" VALUES('51','Murs-Verdey','25',318,279,13.18,'1491','54141',161,213);
INSERT INTO "communes" VALUES('51','Vaudemange','27',298,207,13.12,'2098','54547',90,153);
INSERT INTO "communes" VALUES('51','Élise-Daucourt','23',107,104,15.32,'2811','54495',142,202);
INSERT INTO "communes" VALUES('51','Épense','08',110,86,11.32,'2774','54412',162,227);
INSERT INTO "communes" VALUES('51','Clamanges','29',232,188,23.59,'1941','54253',113,162);
INSERT INTO "communes" VALUES('51','Ormes','19',453,389,6.31,'1802','54709',80,116);
INSERT INTO "communes" VALUES('51','Blesme','28',198,171,6.7,'2709','54139',111,137);
INSERT INTO "communes" VALUES('51','Bouy','27',502,420,22.46,'2236','54540',104,152);
INSERT INTO "communes" VALUES('51','Saint-Lumier-la-Populeuse','28',36,32,2.38,'2730','54139',114,138);
INSERT INTO "communes" VALUES('51','Chaudefontaine','23',327,312,12.98,'2814','54555',132,221);
INSERT INTO "communes" VALUES('51','<NAME>','12',324,213,13.34,'1416','54159',172,211);
INSERT INTO "communes" VALUES('51','Vienne-la-Ville','32',181,176,7.48,'2804','54631',121,171);
INSERT INTO "communes" VALUES('51','Saint-Loup','25',75,71,6.88,'1638','54153',103,196);
INSERT INTO "communes" VALUES('51','Saint-Gilles','14',273,165,6.37,'1488','54756',62,170);
INSERT INTO "communes" VALUES('51','Marsangis','01',53,57,6.74,'1666','54006',74,91);
INSERT INTO "communes" VALUES('51','Baudement','01',120,112,8.57,'1600','53973',68,101);
INSERT INTO "communes" VALUES('51','Cumières','03',833,864,2.99,'1767','54525',66,215);
INSERT INTO "communes" VALUES('51','Ambonnay','03',919,937,11.8,'2040','54530',86,282);
INSERT INTO "communes" VALUES('51','Saint-Quentin-les-Marais','33',131,97,6.56,'2563','54201',113,187);
INSERT INTO "communes" VALUES('51','Châlons-en-Champagne','96',45299,47338,26.05,'2253','54396',79,153);
INSERT INTO "communes" VALUES('51','Binarville','32',106,124,16.61,'2842','54711',120,234);
INSERT INTO "communes" VALUES('51','La Ville-sous-Orbais','18',50,38,11.05,'1491','54402',108,235);
INSERT INTO "communes" VALUES('51','Saint-Jean-devant-Possesse','15',47,36,5.33,'2734','54302',127,163);
INSERT INTO "communes" VALUES('51','Merfy','05',641,649,6.69,'1791','54774',71,199);
INSERT INTO "communes" VALUES('51','La Celle-sous-Chantemerle','01',164,136,12.03,'1490','54015',79,208);
INSERT INTO "communes" VALUES('51','Bisseuil','03',647,631,10.03,'1947','54495',69,201);
INSERT INTO "communes" VALUES('51','La Chapelle-Felcourt','23',63,73,9.58,'2687','54495',147,202);
INSERT INTO "communes" VALUES('51','Villeneuve-la-Lionne','12',302,246,15.27,'1243','54188',125,192);
INSERT INTO "communes" VALUES('51','Esternay','12',1806,1594,31.98,'1359','54147',142,209);
INSERT INTO "communes" VALUES('51','Merlaut','33',248,224,5.04,'2589','54179',97,166);
INSERT INTO "communes" VALUES('51','Blaise-sous-Arzillières','24',336,376,6.89,'2497','54080',100,161);
INSERT INTO "communes" VALUES('51','Trécon','29',83,69,12.45,'1940','54300',103,143);
INSERT INTO "communes" VALUES('51','Thil','05',292,242,2.11,'1807','54795',91,133);
INSERT INTO "communes" VALUES('51','Lagery','31',191,162,9.34,'1565','54677',106,246);
INSERT INTO "communes" VALUES('51','Courcy','05',1286,1150,15.5,'1851','54804',75,161);
INSERT INTO "communes" VALUES('51','Moslins','02',294,230,11.72,'1766','54409',124,246);
INSERT INTO "communes" VALUES('51','Cormicy','05',1415,1062,24.27,'1732','54857',51,197);
INSERT INTO "communes" VALUES('51','Branscourt','31',252,260,3.72,'1650','54745',71,195);
INSERT INTO "communes" VALUES('51','Romigny','31',198,215,11.35,'1591','54636',130,249);
INSERT INTO "communes" VALUES('51','Maffrécourt','23',59,57,6.74,'2757','54575',137,178);
INSERT INTO "communes" VALUES('51','Cherville','10',93,91,3.76,'2030','54465',73,90);
INSERT INTO "communes" VALUES('51','Tilloy-et-Bellay','08',224,234,19.34,'2530','54464',156,198);
INSERT INTO "communes" VALUES('51','Saint-Martin-d''Ablois','37',1484,1401,21.88,'1701','54458',110,241);
INSERT INTO "communes" VALUES('51','Sarry','16',2031,2085,20.01,'2300','54353',81,152);
INSERT INTO "communes" VALUES('51','Mareuil-en-Brie','18',248,232,8.89,'1563','54398',145,233);
INSERT INTO "communes" VALUES('51','Mesneux','31',839,861,4.26,'1805','54687',85,117);
INSERT INTO "communes" VALUES('51','Orbais-l''Abbaye','18',575,567,16.03,'1513','54389',122,235);
INSERT INTO "communes" VALUES('51','Drosnay','24',181,174,18.62,'2530','53972',114,146);
INSERT INTO "communes" VALUES('51','Arcis-le-Ponsart','14',271,261,15.43,'1508','54706',100,248);
INSERT INTO "communes" VALUES('51','L''Épine','16',621,649,30.51,'2370','54419',100,171);
INSERT INTO "communes" VALUES('51','Linthes','25',119,124,9.03,'1679','54145',97,156);
INSERT INTO "communes" VALUES('51','Champfleury','30',534,454,4.02,'1867','54665',88,144);
INSERT INTO "communes" VALUES('51','Conflans-sur-Seine','01',678,666,6.14,'1492','53945',66,92);
INSERT INTO "communes" VALUES('51','Sermaize-les-Bains','28',2104,2176,17.69,'2861','54204',119,192);
INSERT INTO "communes" VALUES('51','Baslieux-sous-Châtillon','07',187,173,5.88,'1625','54581',90,243);
INSERT INTO "communes" VALUES('51','Petites-Loges','30',465,416,4.87,'2101','54598',94,161);
INSERT INTO "communes" VALUES('51','Trigny','14',537,528,12.21,'1732','54781',68,215);
INSERT INTO "communes" VALUES('51','Reims-la-Brûlée','28',231,181,6.51,'2591','54132',103,124);
INSERT INTO "communes" VALUES('51','Thillois','19',346,192,6.35,'1797','54729',70,111);
INSERT INTO "communes" VALUES('51','Fontaine-Denis-Nuisy','25',243,259,13.17,'1500','54029',89,216);
INSERT INTO "communes" VALUES('51','Minaucourt-le-Mesnil-lès-Hurlus','32',70,67,23.04,'2643','54634',126,198);
INSERT INTO "communes" VALUES('51','Cormontreuil','40',6082,6402,4.62,'1906','54692',78,146);
INSERT INTO "communes" VALUES('51','Dampierre-au-Temple','27',262,238,10.26,'2281','54498',114,152);
INSERT INTO "communes" VALUES('51','Livry-Louvercy','27',952,797,30.74,'2190','54571',96,140);
INSERT INTO "communes" VALUES('51','Mourmelon-le-Petit','27',751,759,12.19,'2192','54589',96,151);
INSERT INTO "communes" VALUES('51','Châtrices','23',33,39,19.53,'2891','54487',136,251);
INSERT INTO "communes" VALUES('51','Ville-en-Selve','30',275,282,8.84,'1939','54585',157,276);
INSERT INTO "communes" VALUES('51','Selles','04',359,251,11.34,'2166','54785',87,178);
INSERT INTO "communes" VALUES('51','Auve','08',253,219,23.3,'2620','54482',152,202);
INSERT INTO "communes" VALUES('51','Nesle-le-Repons','09',158,114,5.07,'1527','54499',116,238);
INSERT INTO "communes" VALUES('51','Herpont','08',121,128,23,'2661','54443',152,223);
INSERT INTO "communes" VALUES('51','Aougny','31',101,57,7.47,'1543','54645',158,241);
INSERT INTO "communes" VALUES('51','Saint-Vrain','28',210,217,11.57,'2741','54105',126,154);
INSERT INTO "communes" VALUES('51','Vaudesincourt','04',119,116,12.64,'2300','54690',107,206);
INSERT INTO "communes" VALUES('51','Saint-Gibrien','36',474,370,4.04,'2182','54415',77,106);
INSERT INTO "communes" VALUES('51','Champvoisy','09',264,174,9.2,'1444','54589',120,229);
INSERT INTO "communes" VALUES('51','Recy','35',1041,908,14.38,'2195','54433',76,147);
INSERT INTO "communes" VALUES('51','Broussy-le-Petit','25',130,135,11.62,'1655','54213',138,178);
INSERT INTO "communes" VALUES('51','Fère-Champenoise','13',2305,2294,65.89,'1838','54171',104,169);
INSERT INTO "communes" VALUES('51','Tauxières-Mutry','03',278,249,10.17,'1963','54546',93,263);
INSERT INTO "communes" VALUES('51','Dizy','03',1621,1832,3.23,'1811','54517',69,250);
INSERT INTO "communes" VALUES('51','Chigny-les-Roses','30',522,530,4.38,'1918','54618',116,277);
INSERT INTO "communes" VALUES('51','La Villeneuve-lès-Charleville','17',119,89,11.17,'1509','54231',192,221);
INSERT INTO "communes" VALUES('51','Dommartin-Lettrée','26',155,155,32.67,'2180','54185',132,201);
INSERT INTO "communes" VALUES('51','Rieux','17',177,160,11.56,'1293','54279',124,213);
INSERT INTO "communes" VALUES('51','Prosnes','04',530,422,32.79,'2173','54658',98,257);
INSERT INTO "communes" VALUES('51','Champillon','03',521,534,1.46,'1824','54539',112,268);
INSERT INTO "communes" VALUES('51','Morangis','02',312,220,8.65,'1757','54414',140,246);
INSERT INTO "communes" VALUES('51','Maurupt-le-Montois','28',572,549,18.12,'2791','54166',122,173);
INSERT INTO "communes" VALUES('51','Courmas','31',170,192,2.87,'1747','54655',158,253);
INSERT INTO "communes" VALUES('51','Broussy-le-Grand','13',309,257,21.31,'1714','54208',118,221);
INSERT INTO "communes" VALUES('51','Bouchy-Saint-Genest','12',176,161,19.69,'1302','54055',149,207);
INSERT INTO "communes" VALUES('51','Essarts-lès-Sézanne','12',283,233,16.79,'1461','54170',189,218);
INSERT INTO "communes" VALUES('51','Mutigny','03',226,190,3.75,'1877','54518',143,265);
INSERT INTO "communes" VALUES('51','Saint-Remy-en-Bouzemont-Saint-Genest-et-Isson','24',573,592,21.85,'2566','54033',107,136);
INSERT INTO "communes" VALUES('51','Luxémont-et-Villotte','33',450,437,9.19,'2552','54107',103,123);
INSERT INTO "communes" VALUES('51','Prouilly','14',588,555,10.19,'1682','54777',65,207);
INSERT INTO "communes" VALUES('51','Saint-Souplet-sur-Py','04',149,136,21.2,'2365','54707',107,189);
INSERT INTO "communes" VALUES('51','Bassuet','15',265,348,8.42,'2590','54220',117,206);
INSERT INTO "communes" VALUES('51','Sainte-Menehould','23',4464,4971,57.11,'2845','54545',132,261);
INSERT INTO "communes" VALUES('51','Cheminon','28',633,640,27.6,'2852','54152',127,202);
INSERT INTO "communes" VALUES('51','Noirlieu','08',118,124,13.73,'2749','54384',164,227);
INSERT INTO "communes" VALUES('51','Cuis','02',409,436,8.27,'1811','54441',87,242);
INSERT INTO "communes" VALUES('51','Courjeonnet','18',56,61,5.55,'1664','54255',139,210);
INSERT INTO "communes" VALUES('51','Avenay-Val-d''Or','03',911,1026,12.49,'1899','54521',73,256);
INSERT INTO "communes" VALUES('51','Champaubert','18',135,127,12.75,'1599','54310',216,236);
INSERT INTO "communes" VALUES('51','Saint-Mard-sur-Auve','08',54,67,10.1,'2656','54484',147,192);
INSERT INTO "communes" VALUES('51','Saint-Hilaire-au-Temple','27',290,237,6.15,'2276','54508',113,151);
INSERT INTO "communes" VALUES('51','Verneuil','09',835,784,13.14,'1485','54555',62,232);
INSERT INTO "communes" VALUES('51','Warmeriville','05',2128,2158,23.25,'2095','54834',76,151);
INSERT INTO "communes" VALUES('51','Givry-en-Argonne','08',457,491,7.66,'2835','54389',158,185);
INSERT INTO "communes" VALUES('51','Corrobert','17',185,162,14.26,'1409','54351',175,226);
INSERT INTO "communes" VALUES('51','Moncetz-Longevas','16',554,528,7.24,'2323','54342',83,147);
INSERT INTO "communes" VALUES('51','Sézanne','25',5264,5588,22.82,'1540','54132',104,214);
INSERT INTO "communes" VALUES('51','Isles-sur-Suippe','05',797,662,12.39,'2071','54841',74,136);
INSERT INTO "communes" VALUES('51','Athis','10',823,758,16.88,'1991','54463',70,97);
INSERT INTO "communes" VALUES('51','Sommesous','26',469,401,37.04,'2067','54154',154,205);
INSERT INTO "communes" VALUES('51','Bussy-Lettrée','10',324,240,33.48,'2138','54228',122,177);
INSERT INTO "communes" VALUES('51','Saint-Martin-l''Heureux','04',74,90,13.66,'2299','54722',101,242);
INSERT INTO "communes" VALUES('51','Cernon','10',137,120,16.1,'2230','54267',102,152);
INSERT INTO "communes" VALUES('51','Aigny','35',239,189,11.24,'2080','54484',72,127);
INSERT INTO "communes" VALUES('51','Villeneuve-Renneville-Chevigny','29',311,298,17.17,'1917','54354',90,131);
INSERT INTO "communes" VALUES('51','Leuvrigny','09',321,325,8,'1579','54521',80,239);
INSERT INTO "communes" VALUES('51','Val-de-Vière','15',124,130,19.25,'2663','54236',109,215);
INSERT INTO "communes" VALUES('51','Pierry','37',1174,1395,5.16,'1778','54466',79,215);
INSERT INTO "communes" VALUES('51','Valmy','23',287,290,24.28,'2708','54538',140,213);
INSERT INTO "communes" VALUES('51','Villers-aux-Bois','02',287,225,5.11,'1777','54371',187,245);
INSERT INTO "communes" VALUES('51','Brimont','05',443,455,12.61,'1876','54823',79,170);
INSERT INTO "communes" VALUES('51','Corribert','18',56,50,9.71,'1590','54381',151,234);
INSERT INTO "communes" VALUES('51','Brugny-Vaudancourt','02',450,389,19.87,'1722','54444',106,243);
INSERT INTO "communes" VALUES('51','Plivot','02',763,635,12.6,'1926','54464',69,99);
INSERT INTO "communes" VALUES('51','Moiremont','23',212,200,16.98,'2834','54592',125,222);
INSERT INTO "communes" VALUES('51','Vanault-le-Châtel','15',181,155,34.78,'2654','54294',128,232);
INSERT INTO "communes" VALUES('51','Chapelaine','26',56,37,9.19,'2401','53977',116,172);
INSERT INTO "communes" VALUES('51','Germinon','29',135,112,19.61,'2020','54308',97,162);
INSERT INTO "communes" VALUES('51','Œuilly','09',626,583,9.3,'1619','54526',63,242);
INSERT INTO "communes" VALUES('51','Anglure','01',848,863,8.05,'1642','53983',71,82);
INSERT INTO "communes" VALUES('51','Vouarces','01',63,63,5.96,'1734','53991',75,94);
INSERT INTO "communes" VALUES('51','Belval-sous-Châtillon','07',176,157,7.15,'1684','54583',129,255);
INSERT INTO "communes" VALUES('51','Boursault','09',461,500,16.45,'1676','54512',67,247);
INSERT INTO "communes" VALUES('51','Poilly','31',91,96,4.45,'1649','54685',92,217);
INSERT INTO "communes" VALUES('51','Soudron','10',320,296,43.02,'2070','54266',107,169);
INSERT INTO "communes" VALUES('51','Moivre','16',50,56,21.84,'2581','54360',118,227);
INSERT INTO "communes" VALUES('51','Villers-Marmery','30',555,603,10.73,'2067','54595',101,287);
INSERT INTO "communes" VALUES('51','Saint-Jean-sur-Tourbe','23',109,109,17.04,'2604','54586',139,194);
INSERT INTO "communes" VALUES('51','Saint-Quentin-sur-Coole','10',62,59,8.79,'2213','54282',97,143);
INSERT INTO "communes" VALUES('51','Bassu','15',127,130,10.29,'2618','54259',131,232);
INSERT INTO "communes" VALUES('51','Cramant','02',893,920,5.37,'1837','54431',105,246);
INSERT INTO "communes" VALUES('51','Binson-et-Orquigny','07',185,185,3.39,'1611','54548',66,242);
INSERT INTO "communes" VALUES('51','Fromentières','17',393,282,8.88,'1521','54321',209,228);
INSERT INTO "communes" VALUES('51','Soulières','29',131,130,6.04,'1768','54340',168,252);
INSERT INTO "communes" VALUES('51','Chéniers','10',116,73,15.58,'2119','54317',109,167);
INSERT INTO "communes" VALUES('51','Possesse','15',188,145,35.87,'2742','54320',127,193);
INSERT INTO "communes" VALUES('51','Frignicourt','33',1803,1724,9.7,'2503','54112',98,114);
INSERT INTO "communes" VALUES('51','Bezannes','38',1425,1302,8.01,'1836','54693',79,118);
INSERT INTO "communes" VALUES('51','Saint-Chéron','24',76,80,9.16,'2471','54040',118,197);
INSERT INTO "communes" VALUES('51','Janvilliers','17',134,105,8.74,'1458','54327',208,236);
INSERT INTO "communes" VALUES('51','Écollemont','24',65,49,2.81,'2662','54024',114,142);
INSERT INTO "communes" VALUES('51','Arzillières-Neuville','24',364,312,12.23,'2502','54050',104,161);
INSERT INTO "communes" VALUES('51','Vernancourt','15',75,78,8.98,'2762','54286',118,152);
INSERT INTO "communes" VALUES('51','Mécringes','17',155,141,10.68,'1302','54296',112,215);
INSERT INTO "communes" VALUES('51','Bethon','12',280,275,15.23,'1420','54014',87,206);
INSERT INTO "communes" VALUES('51','Faux-Fresnay','13',341,319,27.26,'1779','54056',81,130);
INSERT INTO "communes" VALUES('51','Vienne-le-Château','32',562,625,51.36,'2835','54657',121,259);
INSERT INTO "communes" VALUES('51','Passy-Grigny','07',380,375,11.99,'1491','54585',80,224);
INSERT INTO "communes" VALUES('51','Tours-sur-Marne','03',1352,1208,23.51,'1981','54499',71,192);
INSERT INTO "communes" VALUES('51','Songy','34',273,278,15.06,'2404','54225',89,166);
INSERT INTO "communes" VALUES('51','Essarts-le-Vicomte','12',148,118,11.29,'1354','54067',167,202);
INSERT INTO "communes" VALUES('51','Vitry-la-Ville','10',363,341,9.24,'2358','54269',86,163);
INSERT INTO "communes" VALUES('51','Dormans','09',2906,3120,22.58,'1448','54529',62,250);
INSERT INTO "communes" VALUES('51','Villeneuve-Saint-Vistre-et-Villevotte','25',128,121,9.51,'1581','54038',76,115);
INSERT INTO "communes" VALUES('51','Tinqueux','19',10300,10079,4.15,'1838','54722',72,104);
INSERT INTO "communes" VALUES('51','Coizard-Joches','18',84,106,10.78,'1699','54253',138,231);
INSERT INTO "communes" VALUES('51','Jâlons','10',576,552,10.35,'2054','54456',72,93);
INSERT INTO "communes" VALUES('51','Gaye','25',568,560,21.13,'1629','54092',90,109);
INSERT INTO "communes" VALUES('51','Vauciennes','37',294,339,5.08,'1719','54500',67,247);
INSERT INTO "communes" VALUES('51','Changy','15',111,143,6.26,'2602','54193',102,158);
INSERT INTO "communes" VALUES('51','Sivry-Ante','08',186,187,21.6,'2814','54445',147,192);
INSERT INTO "communes" VALUES('51','Brusson','28',213,174,4.86,'2630','54166',104,112);
INSERT INTO "communes" VALUES('51','Champigneul-Champagne','10',286,241,29.66,'2035','54413',76,125);
INSERT INTO "communes" VALUES('51','Gourgançon','13',165,149,29.15,'1873','54099',103,165);
INSERT INTO "communes" VALUES('51','Bignicourt-sur-Marne','33',374,374,2.83,'2525','54091',100,108);
INSERT INTO "communes" VALUES('51','Villevenard','18',196,216,13.28,'1624','54253',137,230);
INSERT INTO "communes" VALUES('51','Venteuil','37',587,558,6.25,'1672','54536',67,259);
INSERT INTO "communes" VALUES('51','Villiers-aux-Corneilles','01',90,81,5.88,'1491','53973',68,126);
INSERT INTO "communes" VALUES('51','Romain','14',322,324,8.46,'1593','54812',64,193);
INSERT INTO "communes" VALUES('51','Tramery','31',149,105,3.56,'1631','54694',90,188);
INSERT INTO "communes" VALUES('51','Saron-sur-Aube','01',292,254,16.43,'1549','53965',67,112);
INSERT INTO "communes" VALUES('51','Cheppes-la-Prairie','10',178,179,20.02,'2374','54259',87,172);
INSERT INTO "communes" VALUES('51','Courville','14',464,356,11.94,'1512','54742',67,200);
INSERT INTO "communes" VALUES('51','Favresse','28',186,172,10.31,'2663','54131',106,134);
INSERT INTO "communes" VALUES('51','Clesles','01',588,477,13.26,'1661','53926',73,85);
INSERT INTO "communes" VALUES('51','Linthelles','25',115,130,11.02,'1651','54130',95,123);
INSERT INTO "communes" VALUES('51','<NAME>','35',620,531,24.41,'2201','54479',83,143);
INSERT INTO "communes" VALUES('51','Saint-Utin','26',79,89,10.17,'2407','53945',113,171);
INSERT INTO "communes" VALUES('51','Aubilly','31',49,53,3.16,'1691','54681',103,183);
INSERT INTO "communes" VALUES('51','Escardes','12',85,73,14.49,'1307','54108',163,205);
INSERT INTO "communes" VALUES('51','Aubérive','04',232,182,27.5,'2311','54671',109,161);
INSERT INTO "communes" VALUES('51','Chaltrait','18',74,87,6.69,'1733','54367',183,247);
INSERT INTO "communes" VALUES('51','Pocancy','29',159,178,26.93,'2011','54386',80,129);
INSERT INTO "communes" VALUES('51','Connantre','13',1053,1107,28.55,'1761','54139',93,147);
INSERT INTO "communes" VALUES('51','Villers-en-Argonne','23',231,234,9.57,'2886','54467',142,186);
INSERT INTO "communes" VALUES('51','Compertrix','36',1338,1074,4.76,'2238','54377',81,129);
INSERT INTO "communes" VALUES('51','Vadenay','27',275,203,19.65,'2293','54524',109,157);
INSERT INTO "communes" VALUES('51','Malmy','32',27,34,4.83,'2749','54640',120,170);
INSERT INTO "communes" VALUES('51','Gizaucourt','23',104,109,7.79,'2719','54503',143,197);
INSERT INTO "communes" VALUES('51','Saint-Hilaire-le-Grand','27',341,309,42.39,'2363','54635',112,173);
INSERT INTO "communes" VALUES('51','Festigny','09',389,405,25.63,'1566','54502',87,246);
INSERT INTO "communes" VALUES('51','Bétheniville','04',1161,851,17.74,'2256','54770',93,143);
INSERT INTO "communes" VALUES('51','<NAME>','08',56,40,6.24,'2926','54450',147,176);
INSERT INTO "communes" VALUES('51','Cloyes-sur-Marne','28',122,115,6.29,'2557','54070',105,114);
INSERT INTO "communes" VALUES('51','Servon-Melzicourt','32',119,114,25.78,'2782','54684',116,200);
INSERT INTO "communes" VALUES('51','Bussy-le-Repos','15',127,106,22.64,'2691','54332',134,237);
INSERT INTO "communes" VALUES('51','Saint-Jean-sur-Moivre','16',201,125,15.07,'2496','54338',103,214);
INSERT INTO "communes" VALUES('51','Thiéblemont-Farémont','28',516,601,9.25,'2660','54100',115,132);
INSERT INTO "communes" VALUES('51','Marson','16',285,296,30.76,'2434','54347',99,200);
INSERT INTO "communes" VALUES('51','Witry-lès-Reims','05',4749,4625,16.49,'1983','54770',88,186);
INSERT INTO "communes" VALUES('51','Crugny','14',594,575,12.46,'1558','54727',72,236);
INSERT INTO "communes" VALUES('51','Courtagnon','07',56,45,3.95,'1788','54605',156,263);
INSERT INTO "communes" VALUES('51','Plichancourt','28',212,143,5.89,'2598','54163',101,111);
INSERT INTO "communes" VALUES('51','Courdemanges','34',403,447,19.16,'2450','54106',98,214);
INSERT INTO "communes" VALUES('51','Sainte-Marie-à-Py','27',193,214,26.92,'2406','54710',115,211);
INSERT INTO "communes" VALUES('51','Argers','23',112,73,6.97,'2798','54521',136,188);
INSERT INTO "communes" VALUES('51','Mailly-Champagne','30',724,711,10.06,'1973','54618',98,283);
INSERT INTO "communes" VALUES('51','Bourgogne','05',1032,887,14.38,'1927','54833',64,103);
INSERT INTO "communes" VALUES('51','Couvrot','33',833,943,8.05,'2483','54177',92,208);
INSERT INTO "communes" VALUES('51','Corbeil','26',97,104,9.72,'2322','53975',117,171);
INSERT INTO "communes" VALUES('51','Pargny-sur-Saulx','28',1969,2175,12.44,'2779','54188',115,166);
INSERT INTO "communes" VALUES('51','Moncetz-l''Abbaye','28',104,109,6.95,'2576','54055',107,121);
INSERT INTO "communes" VALUES('51','Germaine','03',527,500,14.87,'1882','54572',123,274);
INSERT INTO "communes" VALUES('51','Aulnay-sur-Marne','10',228,213,9.07,'2075','54453',74,100);
INSERT INTO "communes" VALUES('51','Pogny','16',879,635,14.05,'2384','54287',85,172);
INSERT INTO "communes" VALUES('51','<NAME>','16',70,49,17.71,'2562','54346',114,225);
INSERT INTO "communes" VALUES('51','Courthiézy','09',330,311,5.89,'1401','54503',62,243);
INSERT INTO "communes" VALUES('51','Rouffy','29',98,94,5.69,'1961','54372',87,111);
INSERT INTO "communes" VALUES('51','Mairy-sur-Marne','10',565,564,20.78,'2303','54314',82,153);
INSERT INTO "communes" VALUES('51','Hauteville','24',228,188,10.78,'2704','54042',116,149);
INSERT INTO "communes" VALUES('51','Villers-le-Sec','15',101,95,5.8,'2797','54237',117,142);
INSERT INTO "communes" VALUES('51','<NAME>','09',407,341,16.01,'1456','54417',93,251);
INSERT INTO "communes" VALUES('51','Huiron','34',322,270,13.28,'2450','54114',98,208);
INSERT INTO "communes" VALUES('51','Haussimont','13',155,174,17.63,'2033','54165',150,191);
INSERT INTO "communes" VALUES('51','Oyes','25',80,88,7.69,'1611','54230',138,219);
INSERT INTO "communes" VALUES('51','Wargemoulin-Hurlus','32',49,43,15.17,'2625','54618',131,204);
INSERT INTO "communes" VALUES('51','Grauves','02',673,639,7.84,'1809','54415',122,244);
INSERT INTO "communes" VALUES('51','Vavray-le-Grand','15',169,192,7,'2634','54221',103,201);
INSERT INTO "communes" VALUES('51','Igny-Comblizy','09',443,370,40.74,'1529','54465',140,256);
INSERT INTO "communes" VALUES('51','Coupetz','10',83,65,10.65,'2251','54245',109,178);
INSERT INTO "communes" VALUES('51','Baye','18',393,393,17.98,'1586','54283',141,232);
INSERT INTO "communes" VALUES('51','Reuil','07',304,305,5.36,'1626','54536',66,254);
INSERT INTO "communes" VALUES('51','Vertus','29',2536,2512,35.68,'1852','54338',98,247);
INSERT INTO "communes" VALUES('51','Saint-Just-Sauvage','01',1539,1392,17.74,'1609','53949',69,80);
INSERT INTO "communes" VALUES('51','Outrepont','15',107,85,3.72,'2606','54186',100,140);
INSERT INTO "communes" VALUES('51','Étoges','18',367,261,14.57,'1687','54311',153,243);
INSERT INTO "communes" VALUES('51','Fleury-la-Rivière','37',496,517,7.98,'1718','54552',103,264);
INSERT INTO "communes" VALUES('51','Larzicourt','28',303,283,16.86,'2640','54040',109,142);
INSERT INTO "communes" VALUES('51','Vésigneul-sur-Marne','16',271,216,7.86,'2359','54302',85,151);
INSERT INTO "communes" VALUES('51','Virginy','32',85,79,12.28,'2693','54640',122,200);
INSERT INTO "communes" VALUES('51','Omey','16',243,256,3.94,'2397','54277',86,173);
INSERT INTO "communes" VALUES('51','Givry-lès-Loisy','29',84,84,5.05,'1749','54325',154,249);
INSERT INTO "communes" VALUES('51','Togny-aux-Bœufs','10',134,161,9.98,'2342','54281',85,161);
INSERT INTO "communes" VALUES('51','Étrepy','28',136,141,7.63,'2744','54183',112,133);
INSERT INTO "communes" VALUES('51','Éclaires','08',94,79,10.96,'2962','54445',148,220);
INSERT INTO "communes" VALUES('51','Charleville','17',272,158,17.67,'1479','54236',188,216);
INSERT INTO "communes" VALUES('51','Saint-Germain-la-Ville','16',577,527,11.74,'2344','54315',83,153);
INSERT INTO "communes" VALUES('51','Mardeuil','37',1536,1518,9.19,'1771','54505',66,210);
INSERT INTO "communes" VALUES('51','Dompremy','28',135,93,3.65,'2671','54143',107,129);
INSERT INTO "communes" VALUES('51','Fresne-lès-Reims','05',431,407,12.46,'1958','54820',77,115);
INSERT INTO "communes" VALUES('51','Neuvy','12',226,158,17.11,'1314','54162',137,204);
INSERT INTO "communes" VALUES('51','Marfaux','31',155,148,6.75,'1730','54630',127,266);
INSERT INTO "communes" VALUES('51','Troissy','09',836,820,15.46,'1526','54535',62,253);
INSERT INTO "communes" VALUES('51','<NAME>','28',86,91,6.77,'2682','54179',107,122);
INSERT INTO "communes" VALUES('51','Berzieux','32',72,83,11.67,'2734','54627',128,201);
INSERT INTO "communes" VALUES('51','La Neuville-aux-Bois','08',155,162,14.48,'2834','54410',153,183);
INSERT INTO "communes" VALUES('51','Châlons-sur-Vesle','14',160,161,4.45,'1756','54766',69,136);
INSERT INTO "communes" VALUES('51','Blacy','34',664,580,17.26,'2463','54142',93,215);
INSERT INTO "communes" VALUES('51','Juvigny','35',1000,848,21.37,'2141','54467',74,127);
INSERT INTO "communes" VALUES('51','Heutrégiville','05',414,393,11.62,'2139','54806',81,162);
INSERT INTO "communes" VALUES('51','Angluzelles-et-Courcelles','13',138,142,13.7,'1714','54066',83,112);
INSERT INTO "communes" VALUES('51','Oger','02',575,554,15.06,'1862','54398',96,246);
INSERT INTO "communes" VALUES('51','Coole','26',141,156,29.92,'2284','54157',135,228);
INSERT INTO "communes" VALUES('51','Magenta','03',1749,1918,0.97,'1810','54502',68,70);
INSERT INTO "communes" VALUES('51','Bussy-le-Château','27',164,179,23.93,'2450','54515',129,180);
INSERT INTO "communes" VALUES('51','Champigny','41',1345,944,4.49,'1816','54741',71,113);
INSERT INTO "communes" VALUES('51','<NAME>','07',157,162,1.64,'1673','54604',200,246);
INSERT INTO "communes" VALUES('51','Saint-Mard-sur-le-Mont','08',124,104,13.69,'2791','54358',150,198);
INSERT INTO "communes" VALUES('51','Soudé','26',162,144,31.94,'2194','54155',149,230);
INSERT INTO "communes" VALUES('51','Cernay-lès-Reims','04',1316,1208,16.49,'1963','54738',96,217);
INSERT INTO "communes" VALUES('51','Rilly-la-Montagne','30',1039,1072,8.87,'1899','54628',109,276);
INSERT INTO "communes" VALUES('51','Joiselle','12',82,88,9.76,'1311','54190',130,193);
INSERT INTO "communes" VALUES('51','Ville-Dommange','31',419,461,3.4,'1775','54668',99,252);
INSERT INTO "communes" VALUES('51','Oiry','02',880,943,10.76,'1904','54471',69,127);
INSERT INTO "communes" VALUES('51','Soizy-aux-Bois','17',158,123,7.28,'1549','54233',166,221);
INSERT INTO "communes" VALUES('51','Heiltz-le-Maurupt','15',402,382,16.27,'2754','54215',113,132);
INSERT INTO "communes" VALUES('51','Ambrières','24',220,224,10.07,'2779','54038',120,153);
INSERT INTO "communes" VALUES('51','Ventelay','14',254,216,14.74,'1625','54824',77,206);
INSERT INTO "communes" VALUES('51','Villeseneux','29',224,126,25.86,'2011','54268',102,162);
INSERT INTO "communes" VALUES('51','Boult-sur-Suippe','05',1645,1352,19.75,'2010','54856',66,116);
INSERT INTO "communes" VALUES('51','Brandonvillers','24',159,126,11.69,'2469','53991',113,177);
INSERT INTO "communes" VALUES('51','Dontrien','04',207,194,12.66,'2306','54710',104,172);
INSERT INTO "communes" VALUES('51','Saint-Thierry','05',627,572,7.59,'1808','54782',72,145);
INSERT INTO "communes" VALUES('51','Pomacle','05',386,315,11.19,'2012','54817',80,116);
INSERT INTO "communes" VALUES('51','Bouvancourt','14',198,157,12.91,'1664','54820',85,216);
INSERT INTO "communes" VALUES('51','Châtillon-sur-Marne','07',713,843,11.69,'1579','54555',63,245);
INSERT INTO "communes" VALUES('51','Cauroy-lès-Hermonville','05',474,373,10.27,'1764','54832',61,217);
INSERT INTO "communes" VALUES('51','Chichey','25',161,159,7.4,'1578','54099',88,121);
INSERT INTO "communes" VALUES('51','Chamery','30',389,400,5.27,'1798','54635',114,268);
INSERT INTO "communes" VALUES('51','Bagneux','01',492,458,13.8,'1657','53953',71,84);
INSERT INTO "communes" VALUES('51','Bergères-lès-Vertus','29',569,540,18.28,'1852','54311',102,238);
INSERT INTO "communes" VALUES('51','Courgivaux','12',283,256,10.72,'1280','54125',148,199);
INSERT INTO "communes" VALUES('51','Berméricourt','05',153,122,8.01,'1839','54842',69,93);
INSERT INTO "communes" VALUES('51','Jonchery-sur-Vesle','14',1970,1830,3.2,'1642','54763',65,145);
INSERT INTO "communes" VALUES('51','Janvry','31',128,122,1.94,'1710','54717',99,211);
INSERT INTO "communes" VALUES('51','Vrigny','31',213,210,4.46,'1752','54704',92,238);
INSERT INTO "communes" VALUES('51','Taissy','40',2317,2352,11.53,'1953','54683',79,168);
INSERT INTO "communes" VALUES('51','Unchair','14',158,151,3.73,'1568','54767',85,194);
INSERT INTO "communes" VALUES('51','Ville-sur-Tourbe','32',218,187,11.13,'2719','54652',116,156);
INSERT INTO "communes" VALUES('51','Voilemont','23',47,44,5.81,'2735','54498',142,197);
INSERT INTO "communes" VALUES('51','Baslieux-lès-Fismes','14',297,188,5.62,'1530','54805',60,193);
INSERT INTO "communes" VALUES('51','Isle-sur-Marne','28',111,62,5.47,'2613','54045',108,116);
INSERT INTO "communes" VALUES('51','Souain-Perthes-lès-Hurlus','27',212,193,53.12,'2452','54649',128,202);
INSERT INTO "communes" VALUES('51','Courcelles-Sapicourt','31',345,186,3.86,'1675','54735',67,203);
INSERT INTO "communes" VALUES('51','Nanteuil-la-Forêt','07',233,176,14.55,'1762','54589',148,272);
INSERT INTO "communes" VALUES('51','Glannes','34',167,149,13.1,'2449','54120',97,212);
INSERT INTO "communes" VALUES('51','Ponthion','28',113,113,7.26,'2639','54176',102,119);
INSERT INTO "communes" VALUES('51','Heiltz-le-Hutier','28',228,145,10.84,'2701','54098',120,138);
INSERT INTO "communes" VALUES('51','Orconte','28',425,456,13.65,'2666','54077',114,123);
INSERT INTO "communes" VALUES('51','Caurel','05',645,604,9.79,'2018','54782',89,156);
INSERT INTO "communes" VALUES('51','Reuves','25',63,68,6.4,'1628','54217',139,215);
INSERT INTO "communes" VALUES('51','Fismes','14',5391,5306,16.75,'1493','54786',57,179);
INSERT INTO "communes" VALUES('51','Lisse-en-Champagne','33',124,99,8.29,'2562','54237',115,231);
INSERT INTO "communes" VALUES('51','Saint-Memmie','43',5319,5669,12.64,'2274','54392',82,143);
INSERT INTO "communes" VALUES('51','Loisy-en-Brie','29',192,189,15.09,'1739','54315',151,252);
INSERT INTO "communes" VALUES('51','Allemanche-Launay-et-Soyer','01',113,117,15.24,'1613','54005',73,100);
INSERT INTO "communes" VALUES('51','Jonquery','07',93,78,4.34,'1615','54606',114,241);
INSERT INTO "communes" VALUES('51','Marigny','13',104,103,11.73,'1700','54071',81,103);
INSERT INTO "communes" VALUES('51','Louvois','03',331,360,12.17,'1977','54557',109,281);
INSERT INTO "communes" VALUES('51','Beine-Nauroy','04',1047,818,42.68,'2090','54722',103,225);
INSERT INTO "communes" VALUES('51','Nogent-l''Abbesse','04',575,446,10.16,'2023','54726',105,260);
INSERT INTO "communes" VALUES('51','Germigny','31',189,207,2.39,'1699','54716',102,207);
INSERT INTO "communes" VALUES('51','Sapignicourt','28',357,322,4.82,'2752','54057',120,128);
INSERT INTO "communes" VALUES('51','Laval-sur-Tourbe','23',56,53,14.58,'2610','54598',134,202);
INSERT INTO "communes" VALUES('51','Ay','03',4079,4312,10.43,'1852','54506',68,267);
INSERT INTO "communes" VALUES('51','Lhéry','31',79,75,6.08,'1584','54677',120,229);
INSERT INTO "communes" VALUES('51','Monthelon','02',371,358,2.66,'1776','54437',84,236);
INSERT INTO "communes" VALUES('51','Savigny-sur-Ardres','31',260,259,8.95,'1605','54716',82,232);
INSERT INTO "communes" VALUES('51','Écriennes','28',158,142,6.36,'2608','54102',110,127);
INSERT INTO "communes" VALUES('51','Faverolles-et-Coëmy','31',521,462,5.48,'1618','54706',83,193);
INSERT INTO "communes" VALUES('51','Alliancelles','15',143,132,6.93,'2829','54233',118,149);
INSERT INTO "communes" VALUES('51','Vinay','37',555,463,3.09,'1736','54456',89,230);
INSERT INTO "communes" VALUES('51','Chavot-Courcourt','02',378,369,4.42,'1770','54449',102,241);
INSERT INTO "communes" VALUES('51','La Neuville-au-Pont','23',571,580,15.11,'2801','54582',125,182);
INSERT INTO "communes" VALUES('51','Châtillon-sur-Broué','24',68,60,6.63,'2630','53940',121,141);
INSERT INTO "communes" VALUES('51','Massiges','32',50,55,8.19,'2682','54652',124,198);
INSERT INTO "communes" VALUES('51','Saint-Étienne-au-Temple','35',649,456,11.94,'2319','54472',121,151);
INSERT INTO "communes" VALUES('51','Flavigny','02',188,193,7.98,'1914','54417',87,106);
INSERT INTO "communes" VALUES('51','Courcemain','13',128,112,9.96,'1759','54019',78,112);
INSERT INTO "communes" VALUES('51','Verzy','30',1056,1057,13.37,'2030','54607',98,288);
INSERT INTO "communes" VALUES('51','Vraux','35',473,391,12.8,'2112','54476',73,116);
INSERT INTO "communes" VALUES('51','Prunay','04',968,854,18.41,'2053','54663',86,160);
INSERT INTO "communes" VALUES('51','Verrières','23',413,401,5.8,'2857','54517',135,183);
INSERT INTO "communes" VALUES('51','Verzenay','30',1061,1093,10.62,'2010','54621',86,283);
INSERT INTO "communes" VALUES('51','Euvy','13',77,101,14.43,'1881','54133',106,172);
INSERT INTO "communes" VALUES('51','Chaintrix-Bierges','29',288,227,10.31,'1967','54335',89,127);
INSERT INTO "communes" VALUES('51','Somme-Yèvre','08',110,113,21.57,'2693','54390',163,228);
INSERT INTO "communes" VALUES('51','Villers-aux-Nœuds','30',170,185,6.44,'1844','54660',89,151);
INSERT INTO "communes" VALUES('51','<NAME>','18',267,262,14.49,'1619','54410',180,243);
INSERT INTO "communes" VALUES('51','Péas','25',68,71,7.69,'1602','54159',108,202);
INSERT INTO "communes" VALUES('51','La Croix-en-Champagne','23',71,79,16.58,'2568','54519',167,205);
INSERT INTO "communes" VALUES('51','Anthenay','07',76,52,6.64,'1553','54602',111,233);
INSERT INTO "communes" VALUES('51','Poix','16',80,99,14.72,'2543','54403',159,211);
INSERT INTO "communes" VALUES('51','Avize','02',1719,1618,7.62,'1859','54413',100,246);
INSERT INTO "communes" VALUES('51','Istres-et-Bury','02',93,81,5.15,'1948','54428',81,97);
INSERT INTO "communes" VALUES('51','Gueux','31',1745,1426,8.86,'1746','54722',77,210);
INSERT INTO "communes" VALUES('51','Contault','08',71,65,9.62,'2729','54349',136,230);
INSERT INTO "communes" VALUES('51','Mareuil-le-Port','09',1198,1317,8.96,'1564','54536',63,224);
INSERT INTO "communes" VALUES('51','Thaas','13',110,92,10.47,'1714','54054',78,93);
INSERT INTO "communes" VALUES('51','Talus-Saint-Prix','18',108,84,6.2,'1566','54258',137,221);
INSERT INTO "communes" VALUES('51','Châtillon-sur-Morin','12',190,163,18.05,'1381','54126',150,206);
INSERT INTO "communes" VALUES('51','Haussignémont','28',312,205,2.78,'2681','54131',112,134);
INSERT INTO "communes" VALUES('51','Suizy-le-Franc','18',120,92,6.05,'1555','54392',137,236);
INSERT INTO "communes" VALUES('51','Ville-en-Tardenois','31',605,553,11.2,'1626','54646',121,239);
INSERT INTO "communes" VALUES('51','Florent-en-Argonne','23',250,237,12.29,'2908','54595',144,253);
INSERT INTO "communes" VALUES('51','Damery','37',1507,1371,15.44,'1712','54524',67,262);
INSERT INTO "communes" VALUES('51','<NAME>','17',90,97,14.89,'1503','54279',132,232);
INSERT INTO "communes" VALUES('51','<NAME>','08',56,88,10.7,'2852','54375',160,192);
INSERT INTO "communes" VALUES('51','Hourges','14',87,69,4.34,'1592','54758',84,228);
INSERT INTO "communes" VALUES('51','Courlandon','14',288,249,3.4,'1554','54793',62,175);
INSERT INTO "communes" VALUES('51','Saint-Lumier-en-Champagne','33',237,196,8.56,'2545','54217',109,194);
INSERT INTO "communes" VALUES('51','Saint-Remy-sur-Bussy','08',348,301,34.65,'2494','54507',138,192);
INSERT INTO "communes" VALUES('51','Lachy','25',319,314,16.89,'1523','54188',173,217);
INSERT INTO "communes" VALUES('51','Mondement-Montgivroux','25',44,48,7.37,'1601','54208',144,218);
INSERT INTO "communes" VALUES('51','Grandes-Loges','35',273,233,12.82,'2174','54517',87,140);
INSERT INTO "communes" VALUES('51','Loivre','05',1143,1094,10.24,'1826','54829',63,116);
INSERT INTO "communes" VALUES('51','Esclavolles-Lurey','01',575,548,9.47,'1468','53947',66,130);
INSERT INTO "communes" VALUES('51','Rosnay','31',300,275,5.54,'1694','54726',82,204);
INSERT INTO "communes" VALUES('51','Gionges','02',168,128,10.75,'1826','54373',189,247);
INSERT INTO "communes" VALUES('51','Saint-Euphraise-et-Clairizet','31',216,183,4.91,'1722','54681',114,235);
INSERT INTO "communes" VALUES('51','Pleurs','25',854,716,16.72,'1705','54101',86,106);
INSERT INTO "communes" VALUES('51','Treslon','31',192,173,3.97,'1651','54712',97,197);
INSERT INTO "communes" VALUES('51','Saint-Thomas-en-Argonne','32',41,51,4.43,'2810','54651',120,187);
INSERT INTO "communes" VALUES('51','Chenay','14',268,304,3.89,'1769','54776',92,202);
INSERT INTO "communes" VALUES('51','Landricourt','24',150,159,5.88,'2749','54018',120,148);
INSERT INTO "communes" VALUES('51','Pringy','34',447,410,15.34,'2422','54201',90,181);
INSERT INTO "communes" VALUES('51','Vauclerc','28',491,455,6.09,'2581','54121',106,127);
INSERT INTO "communes" VALUES('51','Bettancourt-la-Longue','15',87,72,6.09,'2835','54254',126,189);
INSERT INTO "communes" VALUES('51','Verdon','17',182,127,11.39,'1427','54388',125,231);
INSERT INTO "communes" VALUES('51','Pierre-Morains','29',95,103,13.44,'1873','54262',130,166);
INSERT INTO "communes" VALUES('51','Coupéville','16',187,147,30.42,'2544','54345',106,214);
INSERT INTO "communes" VALUES('51','Vélye','29',155,76,10.68,'1988','54319',94,137);
INSERT INTO "communes" VALUES('51','<NAME>','18',52,46,14.54,'1550','54344',205,236);
INSERT INTO "communes" VALUES('51','Chepy','16',413,337,8.68,'2332','54332',82,148);
INSERT INTO "communes" VALUES('51','Vatry','10',111,102,8.39,'2120','54247',114,159);
INSERT INTO "communes" VALUES('51','Beaunay','18',95,114,3.53,'1712','54316',156,244);
INSERT INTO "communes" VALUES('51','Montmort-Lucy','18',589,589,29.17,'1636','54361',157,246);
INSERT INTO "communes" VALUES('51','Saint-Remy-sous-Broyes','25',99,81,7.75,'1597','54113',98,142);
INSERT INTO "communes" VALUES('51','Cuisles','07',141,0,2.77,'1596','54590',98,232);
INSERT INTO "communes" VALUES('51','Jussecourt-Minecourt','15',205,190,8.92,'2724','54211',110,118);
INSERT INTO "communes" VALUES('51','Saint-Amand-sur-Fion','33',1058,843,28.4,'2525','54234',99,225);
INSERT INTO "communes" VALUES('51','Val-des-Marais','29',573,490,39.85,'1808','54272',129,237);
INSERT INTO "communes" VALUES('51','Réveillon','12',107,109,6.72,'1243','54169',159,201);
INSERT INTO "communes" VALUES('51','Issé','35',129,88,10.81,'2076','54518',76,132);
INSERT INTO "communes" VALUES('51','Villers-sous-Châtillon','07',225,181,4.84,'1624','54550',95,255);
INSERT INTO "communes" VALUES('51','Vroil','15',120,128,10.34,'2862','54269',128,188);
INSERT INTO "communes" VALUES('51','Vavray-le-Petit','15',66,61,5.39,'2641','54228',108,208);
INSERT INTO "communes" VALUES('51','Romery','03',179,153,2.07,'1754','54552',120,240);
INSERT INTO "communes" VALUES('51','Margerie-Hancourt','24',204,207,21.87,'2429','53950',114,172);
INSERT INTO "communes" VALUES('51','<NAME>','17',524,421,26.09,'1394','54239',173,221);
INSERT INTO "communes" VALUES('51','Faux-Vésigneul','10',238,232,39.42,'2293','54200',114,212);
INSERT INTO "communes" VALUES('51','Bergères-sous-Montmirail','17',135,130,10.52,'1394','54272',127,227);
INSERT INTO "communes" VALUES('51','Soulanges','33',481,447,12.37,'2443','54212',88,201);
INSERT INTO "communes" VALUES('51','Fontaine-sur-Ay','03',339,237,7.72,'1929','54536',87,271);
INSERT INTO "communes" VALUES('51','Billy-le-Grand','27',110,99,7.26,'2104','54565',104,200);
INSERT INTO "communes" VALUES('51','<NAME>','26',194,175,19.41,'2312','54043',122,225);
INSERT INTO "communes" VALUES('51','Beaumont-sur-Vesle','30',713,744,5.69,'2055','54638',86,119);
INSERT INTO "communes" VALUES('51','Condé-sur-Marne','35',713,597,12.34,'2048','54495',72,122);
INSERT INTO "communes" VALUES('51','Coulommes-la-Montagne','31',223,223,2.7,'1749','54695',104,242);
INSERT INTO "communes" VALUES('51','Tréfols','17',127,159,14.39,'1291','54209',135,213);
INSERT INTO "communes" VALUES('51','Lenharrée','13',103,108,17.75,'1976','54196',133,174);
INSERT INTO "communes" VALUES('51','Broyes','25',373,373,15.24,'1588','54176',127,228);
INSERT INTO "communes" VALUES('51','Gigny-Bussy','24',242,243,22.45,'2482','54007',111,177);
INSERT INTO "communes" VALUES('51','Sompuis','26',266,295,43.82,'2269','54091',139,230);
INSERT INTO "communes" VALUES('51','Cernay-en-Dormois','32',148,127,24.82,'2700','54696',115,198);
INSERT INTO "communes" VALUES('51','Margny','18',107,118,10.53,'1453','54367',185,231);
INSERT INTO "communes" VALUES('51','Rapsécourt','08',34,30,7.23,'2731','54471',147,207);
INSERT INTO "communes" VALUES('51','Scrupt','28',128,125,11.46,'2720','54131',119,149);
INSERT INTO "communes" VALUES('51','Saint-Quentin-le-Verger','01',122,114,10.63,'1570','54017',75,117);
INSERT INTO "communes" VALUES('51','Dommartin-Dampierre','23',73,70,8.27,'2767','54526',137,185);
INSERT INTO "communes" VALUES('51','Vindey','25',128,123,7.94,'1527','54110',101,210);
INSERT INTO "communes" VALUES('51','Époye','04',450,393,15.35,'2114','54766',89,126);
INSERT INTO "communes" VALUES('51','Saint-Léonard','40',94,77,3.04,'1955','54690',80,89);
INSERT INTO "communes" VALUES('51','Corroy','13',149,142,19.97,'1783','54114',95,132);
INSERT INTO "communes" VALUES('51','Mont-sur-Courville','14',132,99,5.94,'1494','54733',75,173);
INSERT INTO "communes" VALUES('51','Hautvillers','03',775,858,11.77,'1786','54538',68,274);
INSERT INTO "communes" VALUES('51','Connantray-Vaurefroy','13',187,159,28.83,'1917','54164',126,182);
INSERT INTO "communes" VALUES('51','Rivières-Henruel','24',176,185,11.97,'2475','54060',107,204);
INSERT INTO "communes" VALUES('51','Champguyon','12',264,210,16.63,'1339','54196',159,214);
INSERT INTO "communes" VALUES('51','Berru','04',501,454,13.65,'2017','54747',109,262);
INSERT INTO "communes" VALUES('51','Breuil','14',326,230,6.46,'1589','54790',63,172);
INSERT INTO "communes" VALUES('51','Gratreuil','32',28,34,4.77,'2623','54718',119,194);
INSERT INTO "communes" VALUES('51','Jonchery-sur-Suippe','27',169,159,24.74,'2376','54621',120,158);
INSERT INTO "communes" VALUES('51','Belval-en-Argonne','08',50,47,12.17,'2964','54388',152,192);
INSERT INTO "communes" VALUES('51','Bouilly','31',169,152,5.64,'1725','54665',130,239);
INSERT INTO "communes" VALUES('51','Saudoy','25',367,317,12.66,'1533','54090',98,212);
INSERT INTO "communes" VALUES('51','Sainte-Marie-du-Lac-Nuisement','24',254,227,17.35,'2711','54006',117,147);
INSERT INTO "communes" VALUES('51','<NAME>','08',112,103,13.78,'2834','54424',148,185);
INSERT INTO "communes" VALUES('51','Lavannes','05',603,446,17.77,'2038','54793',84,142);
INSERT INTO "communes" VALUES('51','Chouilly','37',999,871,16.12,'1864','54473',68,240);
INSERT INTO "communes" VALUES('51','Saint-Hilaire-le-Petit','04',293,263,22.76,'2281','54749',97,187);
INSERT INTO "communes" VALUES('51','La Forestière','12',246,204,22.67,'1396','54064',171,209);
INSERT INTO "communes" VALUES('51','Somme-Tourbe','23',150,148,19.39,'2591','54557',147,193);
INSERT INTO "communes" VALUES('51','Saint-Eulien','28',454,324,8.06,'2828','54093',131,174);
INSERT INTO "communes" VALUES('51','Bouleuse','31',173,165,4.11,'1671','54694',97,200);
INSERT INTO "communes" VALUES('51','Méry-Prémecy','31',62,63,5.11,'1694','54695',105,238);
INSERT INTO "communes" VALUES('51','Jouy-lès-Reims','31',198,176,1.86,'1769','54684',105,207);
INSERT INTO "communes" VALUES('51','Suippes','27',3977,3510,42.25,'2439','54589',129,196);
INSERT INTO "communes" VALUES('51','Saint-Pierre','10',301,234,10.27,'2119','54385',86,126);
INSERT INTO "communes" VALUES('51','Saint-Bon','12',110,64,8,'1250','54087',159,203);
INSERT INTO "communes" VALUES('51','Somsois','26',184,233,21.31,'2408','53996',115,210);
INSERT INTO "communes" VALUES('52','Doulevant-le-Château','11',419,447,22.14,'2873','53753',194,325);
INSERT INTO "communes" VALUES('52','Dammartin-sur-Meuse','19',226,194,15.58,'3600','53309',346,410);
INSERT INTO "communes" VALUES('52','Saudron','22',35,40,9.06,'3325','53880',316,397);
INSERT INTO "communes" VALUES('52','Aizanville','06',29,25,3.5,'2843','53453',205,298);
INSERT INTO "communes" VALUES('52','Loges','12',131,129,10.79,'3505','53094',262,372);
INSERT INTO "communes" VALUES('52','Tornay','12',37,51,7.3,'3633','53001',250,377);
INSERT INTO "communes" VALUES('52','Plesnoy','26',105,102,9.03,'3513','53213',299,451);
INSERT INTO "communes" VALUES('52','Lafauche','24',87,109,5.16,'3515','53663',320,430);
INSERT INTO "communes" VALUES('52','Pierremont-sur-Amance','15',168,179,16.27,'3691','53110',232,366);
INSERT INTO "communes" VALUES('52','Gillancourt','14',120,118,15.09,'2951','53512',265,378);
INSERT INTO "communes" VALUES('52','Genevrières','12',146,170,12.95,'3633','53024',265,345);
INSERT INTO "communes" VALUES('52','Audeloncourt','09',95,99,11.6,'3538','53455',314,469);
INSERT INTO "communes" VALUES('52','Leschères-sur-le-Blaiseron','11',96,94,14.93,'3003','53708',246,388);
INSERT INTO "communes" VALUES('52','Aujeurres','17',77,56,12.94,'3163','53046',408,509);
INSERT INTO "communes" VALUES('52','Guindrecourt-sur-Blaise','27',44,31,5.52,'2930','53663',238,387);
INSERT INTO "communes" VALUES('52','Breuvannes-en-Bassigny','09',710,748,48.55,'3636','53438',314,447);
INSERT INTO "communes" VALUES('52','Noidant-Chatenoy','17',90,102,5.21,'3378','53105',339,468);
INSERT INTO "communes" VALUES('52','Montcharvot','04',37,36,3.52,'3771','53224',279,424);
INSERT INTO "communes" VALUES('52','Heuilley-le-Grand','17',197,190,12.22,'3394','53060',288,355);
INSERT INTO "communes" VALUES('52','Villeneuve','19',69,87,5.15,'3526','53377',324,380);
INSERT INTO "communes" VALUES('52','Palaiseul','17',60,60,4.98,'3417','53077',294,353);
INSERT INTO "communes" VALUES('52','Larivière-Arnoncourt','04',165,157,20.32,'3756','53359',279,493);
INSERT INTO "communes" VALUES('52','Rivières-le-Bois','17',70,74,7.14,'3450','53042',261,372);
INSERT INTO "communes" VALUES('52','Sailly','22',42,45,12.49,'3263','53816',241,392);
INSERT INTO "communes" VALUES('52','Narcy','08',244,248,11.12,'3055','53982',171,291);
INSERT INTO "communes" VALUES('52','Robert-Magny-Laneuville-à-Rémy','18',249,235,25.38,'2789','53846',134,192);
INSERT INTO "communes" VALUES('52','Neuvelle-lès-Voisey','15',90,120,5.65,'3838','53186',225,378);
INSERT INTO "communes" VALUES('52','Lamothe-en-Blaisy','14',78,65,10.21,'2898','53601',262,339);
INSERT INTO "communes" VALUES('52','Champigny-sous-Varennes','26',125,103,5.84,'3675','53186',238,352);
INSERT INTO "communes" VALUES('52','Manois','24',473,501,10.36,'3362','53640',256,387);
INSERT INTO "communes" VALUES('52','Ambonville','11',73,78,14.47,'2977','53680',261,402);
INSERT INTO "communes" VALUES('52','Sarcey','21',113,94,7.22,'3298','53396',300,446);
INSERT INTO "communes" VALUES('52','Vals-des-Tilles','03',165,161,36.89,'3038','53004',329,504);
INSERT INTO "communes" VALUES('52','Bonnecourt','20',129,121,10.88,'3487','53281',364,450);
INSERT INTO "communes" VALUES('52','Lezéville','22',110,107,25.72,'3393','53810',307,423);
INSERT INTO "communes" VALUES('52','Villars-en-Azois','06',75,76,19.52,'2675','53408',215,371);
INSERT INTO "communes" VALUES('52','Lecey','20',220,204,7.85,'3449','53181',346,427);
INSERT INTO "communes" VALUES('52','Romain-sur-Meuse','05',124,147,16.44,'3553','53526',329,489);
INSERT INTO "communes" VALUES('52','Charmes-en-l''Angle','11',7,6,7.36,'2962','53749',221,347);
INSERT INTO "communes" VALUES('52','Louze','18',312,308,20.65,'2646','53815',121,161);
INSERT INTO "communes" VALUES('52','Reynel','01',126,162,18.61,'3335','53661',244,411);
INSERT INTO "communes" VALUES('52','Aulnoy-sur-Aube','03',56,47,9.31,'2996','53148',297,446);
INSERT INTO "communes" VALUES('52','Arbot','03',69,83,13.15,'2970','53167',292,429);
INSERT INTO "communes" VALUES('52','Coiffy-le-Haut','04',120,132,9.65,'3737','53232',248,426);
INSERT INTO "communes" VALUES('52','Rochetaillée','03',151,147,27.95,'3088','53180',318,483);
INSERT INTO "communes" VALUES('52','Cusey','23',252,233,23.22,'3339','52924',242,340);
INSERT INTO "communes" VALUES('52','Donjeux','10',376,405,12.84,'3132','53738',194,322);
INSERT INTO "communes" VALUES('52','Sommevoire','18',752,774,32.68,'2783','53791',139,235);
INSERT INTO "communes" VALUES('52','Courcelles-en-Montagne','16',88,77,15.16,'3207','53152',374,497);
INSERT INTO "communes" VALUES('52','Autigny-le-Grand','13',160,210,3.59,'3110','53859',172,326);
INSERT INTO "communes" VALUES('52','<NAME>','17',306,276,7.19,'3419','53101',283,467);
INSERT INTO "communes" VALUES('52','Leffonds','02',321,285,36.24,'3140','53304',312,437);
INSERT INTO "communes" VALUES('52','Charmes','20',152,124,6.04,'3349','53245',321,456);
INSERT INTO "communes" VALUES('52','Esnouveaux','21',334,337,16.87,'3349','53475',314,440);
INSERT INTO "communes" VALUES('52','Vesaignes-sous-Lafauche','24',128,146,13.78,'3442','53645',303,448);
INSERT INTO "communes" VALUES('52','Rouécourt','10',58,58,7.82,'3036','53695',227,390);
INSERT INTO "communes" VALUES('52','Valcourt','31',604,744,3.77,'2853','54018',128,178);
INSERT INTO "communes" VALUES('52','Bourmont','05',516,532,16.07,'3614','53549',303,493);
INSERT INTO "communes" VALUES('52','Châteauvillain','06',1665,1709,106.37,'2864','53371',213,359);
INSERT INTO "communes" VALUES('52','Darmannes','01',262,162,18.15,'3199','53520',270,382);
INSERT INTO "communes" VALUES('52','Ozières','05',58,53,9.62,'3482','53527',372,472);
INSERT INTO "communes" VALUES('52','Clefmont','09',212,221,19.33,'3527','53440',315,478);
INSERT INTO "communes" VALUES('52','Neuville-au-Pont','31',179,193,4.09,'2801','54033',123,171);
INSERT INTO "communes" VALUES('52','Pont-la-Ville','06',149,140,10.23,'2837','53425',209,344);
INSERT INTO "communes" VALUES('52','Longchamp','09',74,65,6.11,'3448','53476',368,453);
INSERT INTO "communes" VALUES('52','Saint-Broingt-le-Bois','17',84,55,4.49,'3427','53037',264,372);
INSERT INTO "communes" VALUES('52','Bourbonne-les-Bains','04',2230,2496,64.93,'3792','53282',245,444);
INSERT INTO "communes" VALUES('52','Trémilly','11',88,0,10.72,'2717','53741',154,206);
INSERT INTO "communes" VALUES('52','Chancenay','30',1058,1146,9.86,'2945','54078',151,212);
INSERT INTO "communes" VALUES('52','Montsaugeon','23',65,77,6.32,'3303','52962',266,370);
INSERT INTO "communes" VALUES('52','Villegusien-le-Lac','17',721,669,29.94,'3315','53040',279,460);
INSERT INTO "communes" VALUES('52','Vaux-sur-Saint-Urbain','10',68,43,6.4,'3191','53750',203,371);
INSERT INTO "communes" VALUES('52','Vaux-sous-Aubigny','23',697,705,14.71,'3279','52953',264,424);
INSERT INTO "communes" VALUES('52','Chamouilley','32',848,880,7.81,'3008','54007',147,239);
INSERT INTO "communes" VALUES('52','Joinville','13',3635,4385,18.94,'3113','53825',181,350);
INSERT INTO "communes" VALUES('52','Poinson-lès-Fayl','12',227,161,12.43,'3642','53059',275,362);
INSERT INTO "communes" VALUES('52','Vaux-sur-Blaise','28',400,441,7.19,'2927','53857',169,232);
INSERT INTO "communes" VALUES('52','Coiffy-le-Bas','26',100,131,11.32,'3712','53238',246,423);
INSERT INTO "communes" VALUES('52','Thilleux','18',87,90,9.71,'2739','53821',133,174);
INSERT INTO "communes" VALUES('52','Vroncourt-la-Côte','05',20,25,4.19,'3526','53498',331,459);
INSERT INTO "communes" VALUES('52','Vivey','03',62,54,13.05,'3033','53037',365,488);
INSERT INTO "communes" VALUES('52','Semoutiers-Montsaon','29',911,558,27.4,'3023','53399',270,347);
INSERT INTO "communes" VALUES('52','Brachay','11',60,63,7.4,'2991','53751',225,339);
INSERT INTO "communes" VALUES('52','Sarrey','19',383,337,14.21,'3433','53338',339,489);
INSERT INTO "communes" VALUES('52','Aigremont','04',23,18,4.87,'3756','53352',289,457);
INSERT INTO "communes" VALUES('52','Bouzancourt','11',65,72,11.75,'2903','53683',227,381);
INSERT INTO "communes" VALUES('52','Maizières','08',170,168,11.7,'3034','53881',205,312);
INSERT INTO "communes" VALUES('52','Is-en-Bassigny','21',585,600,19.37,'3456','53369',364,467);
INSERT INTO "communes" VALUES('52','Curel','13',428,424,7.63,'3111','53880',171,332);
INSERT INTO "communes" VALUES('52','Germainvilliers','05',99,88,6.6,'3676','53463',330,420);
INSERT INTO "communes" VALUES('52','Voillecomte','28',470,471,14.44,'2809','53896',132,182);
INSERT INTO "communes" VALUES('52','Melay','04',291,282,13.95,'3862','53213',222,364);
INSERT INTO "communes" VALUES('52','Verseilles-le-Bas','17',102,104,1.58,'3283','53070',310,431);
INSERT INTO "communes" VALUES('52','Mathons','13',60,52,13.4,'3008','53798',242,349);
INSERT INTO "communes" VALUES('52','Nijon','05',75,69,7.71,'3671','53548',315,483);
INSERT INTO "communes" VALUES('52','Giey-sur-Aujon','02',157,145,30.42,'3037','53229',280,427);
INSERT INTO "communes" VALUES('52','Chassigny','23',241,267,15.89,'3380','53013',290,373);
INSERT INTO "communes" VALUES('52','Ormoy-lès-Sexfontaines','27',42,50,5.53,'3034','53578',272,384);
INSERT INTO "communes" VALUES('52','Wassy','28',2980,3299,33.82,'2901','53888',144,232);
INSERT INTO "communes" VALUES('52','Ormancey','16',81,78,17.11,'3162','53230',358,452);
INSERT INTO "communes" VALUES('52','Pansey','22',85,67,8.96,'3279','53857',292,390);
INSERT INTO "communes" VALUES('52','Épizon','22',144,114,23.11,'3348','53754',285,422);
INSERT INTO "communes" VALUES('52','Roches-sur-Marne','32',580,624,7.87,'3001','54007',147,215);
INSERT INTO "communes" VALUES('52','Orbigny-au-Mont','20',155,162,9.35,'3461','53202',353,441);
INSERT INTO "communes" VALUES('52','Longeville-sur-la-Laines','18',462,418,15.6,'2610','53839',114,160);
INSERT INTO "communes" VALUES('52','Celles-en-Bassigny','26',73,81,8.92,'3562','53239',263,372);
INSERT INTO "communes" VALUES('52','Autigny-le-Petit','13',54,56,2.53,'3110','53869',172,326);
INSERT INTO "communes" VALUES('52','Thonnance-les-Moulins','22',119,107,21.5,'3286','53789',257,391);
INSERT INTO "communes" VALUES('52','Condes','07',291,284,5.08,'3121','53493',242,331);
INSERT INTO "communes" VALUES('52','Soulaucourt-sur-Mouzon','05',106,92,9.2,'3714','53554',315,504);
INSERT INTO "communes" VALUES('52','Perrancey-les-Vieux-Moulins','16',284,262,17.26,'3259','53182',357,463);
INSERT INTO "communes" VALUES('52','Marcilly-en-Bassigny','26',224,234,19.56,'3540','53217',254,368);
INSERT INTO "communes" VALUES('52','Dommartin-le-Franc','28',218,258,10.03,'2916','53808',166,279);
INSERT INTO "communes" VALUES('52','Violot','17',84,94,4.27,'3449','53071',264,356);
INSERT INTO "communes" VALUES('52','Roches-Bettaincourt','10',629,596,41.38,'3239','53673',220,389);
INSERT INTO "communes" VALUES('52','Mennouveaux','09',69,71,7.8,'3421','53452',345,439);
INSERT INTO "communes" VALUES('52','Bugnières','02',151,110,18.29,'3072','53271',326,406);
INSERT INTO "communes" VALUES('52','Noidant-le-Rocheux','16',206,195,16.49,'3242','53144',377,455);
INSERT INTO "communes" VALUES('52','Noncourt-sur-le-Rongeant','22',170,194,9.31,'3230','53799',221,394);
INSERT INTO "communes" VALUES('52','Verseilles-le-Haut','17',45,13,2.83,'3290','53078',309,452);
INSERT INTO "communes" VALUES('52','Foulain','29',748,737,26.28,'3196','53377',274,412);
INSERT INTO "communes" VALUES('52','Paroy-sur-Saulx','22',45,44,7.47,'3244','53903',277,376);
INSERT INTO "communes" VALUES('52','Balesmes-sur-Marne','16',255,247,12.67,'3374','53135',348,472);
INSERT INTO "communes" VALUES('52','Buxières-lès-Clefmont','09',23,18,5.92,'3471','53438',388,467);
INSERT INTO "communes" VALUES('52','Saint-Thiébault','05',278,279,0.61,'3603','53557',307,340);
INSERT INTO "communes" VALUES('52','Jonchery','07',1021,787,28.98,'3055','53484',252,384);
INSERT INTO "communes" VALUES('52','Fresnes-sur-Apance','04',165,170,16.47,'3887','53268',238,393);
INSERT INTO "communes" VALUES('52','Maranville','14',457,490,12.42,'2811','53483',195,350);
INSERT INTO "communes" VALUES('52','Neuilly-l''Évêque','20',639,637,23.76,'3449','53241',338,481);
INSERT INTO "communes" VALUES('52','Germaines','03',31,34,8.69,'2995','53110',335,455);
INSERT INTO "communes" VALUES('52','Gilley','12',71,65,10.58,'3666','52990',233,378);
INSERT INTO "communes" VALUES('52','Chantraines','01',224,178,10.42,'3234','53577',277,380);
INSERT INTO "communes" VALUES('52','Bize','15',84,71,2.09,'3663','53154',232,322);
INSERT INTO "communes" VALUES('52','Ville-aux-Bois','07',219,198,13.44,'3212','53439',307,427);
INSERT INTO "communes" VALUES('52','Attancourt','28',236,241,10.02,'2881','53918',149,211);
INSERT INTO "communes" VALUES('52','Biesles','21',1404,1425,23.84,'3288','53428',329,444);
INSERT INTO "communes" VALUES('52','Cirfontaines-en-Azois','06',202,190,11.61,'2819','53455',203,362);
INSERT INTO "communes" VALUES('52','Neuilly-sur-Suize','29',332,368,14.67,'3125','53390',297,383);
INSERT INTO "communes" VALUES('52','Torcenay','12',536,545,8.49,'3476','53128',279,409);
INSERT INTO "communes" VALUES('52','Colmier-le-Bas','03',21,31,5.95,'2906','53080',308,446);
INSERT INTO "communes" VALUES('52','Chatonrupt-Sommermont','13',331,321,16.66,'3098','53875',172,315);
INSERT INTO "communes" VALUES('52','Vraincourt','27',94,92,3.48,'3098','53602',225,290);
INSERT INTO "communes" VALUES('52','Oudincourt','27',163,148,7.44,'3063','53584',238,387);
INSERT INTO "communes" VALUES('52','Juzennecourt','14',207,177,11.87,'2936','53538',295,391);
INSERT INTO "communes" VALUES('52','Rouvroy-sur-Marne','10',366,348,8.41,'3123','53731',197,382);
INSERT INTO "communes" VALUES('52','Chalvraines','24',205,228,26.35,'3491','53601',358,470);
INSERT INTO "communes" VALUES('52','Semilly','24',94,109,14.6,'3469','53621',322,408);
INSERT INTO "communes" VALUES('52','Vauxbons','16',60,47,12.48,'3132','53204',319,461);
INSERT INTO "communes" VALUES('52','Lachapelle-en-Blaisy','14',76,87,16.53,'2923','53557',270,377);
INSERT INTO "communes" VALUES('52','Changey','20',283,220,6.67,'3388','53252',338,478);
INSERT INTO "communes" VALUES('52','Andelot-Blancheville','01',908,1004,33.18,'3291','53604',235,376);
INSERT INTO "communes" VALUES('52','Nully','11',177,301,17.81,'2744','53740',157,257);
INSERT INTO "communes" VALUES('52','Thonnance-lès-Joinville','13',810,859,11.33,'3151','53839',180,365);
INSERT INTO "communes" VALUES('52','Arnancourt','11',108,128,9.31,'2871','53725',209,315);
INSERT INTO "communes" VALUES('52','Chanoy','16',150,107,2.1,'3276','53249',312,428);
INSERT INTO "communes" VALUES('52','Doncourt-sur-Meuse','05',52,44,5.93,'3595','53498',313,426);
INSERT INTO "communes" VALUES('52','Germisay','22',21,27,6.73,'3356','53775',335,421);
INSERT INTO "communes" VALUES('52','Vitry-lès-Nogent','21',184,118,7.95,'3344','53325',329,455);
INSERT INTO "communes" VALUES('52','Latrecey-Ormoy-sur-Aube','06',320,341,46.27,'2800','53315',213,362);
INSERT INTO "communes" VALUES('52','Aillianville','24',164,185,23.63,'3491','53714',355,436);
INSERT INTO "communes" VALUES('52','Maizières-sur-Amance','15',107,123,7.97,'3638','53141',232,327);
INSERT INTO "communes" VALUES('52','Celsoy','20',108,94,5.42,'3491','53179',309,428);
INSERT INTO "communes" VALUES('52','Rouvres-sur-Aube','03',100,102,20.18,'2953','53175',277,429);
INSERT INTO "communes" VALUES('52','Saint-Vallier-sur-Marne','16',181,138,6.64,'3397','53151',343,428);
INSERT INTO "communes" VALUES('52','Choilley-Dardenay','23',173,139,17.56,'3352','52960',251,372);
INSERT INTO "communes" VALUES('52','Riaucourt','07',456,446,10.71,'3128','53529',236,331);
INSERT INTO "communes" VALUES('52','Rangecourt','09',78,78,6.81,'3498','53382',329,424);
INSERT INTO "communes" VALUES('52','Blessonville','06',223,190,9.76,'2969','53398',270,334);
INSERT INTO "communes" VALUES('52','Brethenay','07',385,371,8.84,'3110','53506',242,329);
INSERT INTO "communes" VALUES('52','Valleroy','12',35,29,3.43,'3691','52999',249,330);
INSERT INTO "communes" VALUES('52','Bassoncourt','09',66,73,6.49,'3581','53408',318,426);
INSERT INTO "communes" VALUES('52','Peigney','16',341,348,8.22,'3357','53199',328,421);
INSERT INTO "communes" VALUES('52','Thivet','21',278,322,15.37,'3278','53324',296,466);
INSERT INTO "communes" VALUES('52','Magneux','28',157,163,5.8,'2965','53904',181,244);
INSERT INTO "communes" VALUES('52','Rolampont','20',1604,1507,49.1,'3278','53278',299,462);
INSERT INTO "communes" VALUES('52','Coublanc','23',129,125,19.19,'3470','52991',237,367);
INSERT INTO "communes" VALUES('52','Blumeray','11',106,108,14.68,'2802','53739',188,294);
INSERT INTO "communes" VALUES('52','Serqueux','04',466,465,25.63,'3778','53323',269,485);
INSERT INTO "communes" VALUES('52','Malaincourt-sur-Meuse','05',58,52,3.83,'3624','53504',328,502);
INSERT INTO "communes" VALUES('52','Marnay-sur-Marne','21',300,263,10.62,'3222','53345',288,414);
INSERT INTO "communes" VALUES('52','Dancevoir','02',229,234,25.58,'2820','53253',245,349);
INSERT INTO "communes" VALUES('52','Vesaignes-sur-Marne','21',118,133,8.45,'3252','53335',292,441);
INSERT INTO "communes" VALUES('52','Flammerécourt','11',67,62,10.52,'3005','53736',238,385);
INSERT INTO "communes" VALUES('52','Grenant','12',150,151,12.94,'3518','53010',242,385);
INSERT INTO "communes" VALUES('52','Longeau-Percey','17',720,679,7.48,'3305','53075',299,403);
INSERT INTO "communes" VALUES('52','Mardor','16',67,54,7.44,'3187','53209',374,460);
INSERT INTO "communes" VALUES('52','Saulles','12',56,48,17.18,'3537','53011',247,386);
INSERT INTO "communes" VALUES('52','Arc-en-Barrois','02',769,898,50.44,'2970','53276',262,401);
INSERT INTO "communes" VALUES('52','Signéville','01',100,86,8.08,'3263','53629',232,365);
INSERT INTO "communes" VALUES('52','Guindrecourt-aux-Ormes','13',84,94,9.07,'2998','53844',203,302);
INSERT INTO "communes" VALUES('52','<NAME>','27',27,23,2.83,'3019','53643',319,357);
INSERT INTO "communes" VALUES('52','Chatenay-Mâcheron','16',112,119,6.1,'3406','53162',333,407);
INSERT INTO "communes" VALUES('52','Prez-sous-Lafauche','24',347,337,22.59,'3506','53652',320,433);
INSERT INTO "communes" VALUES('52','Rivière-les-Fosses','23',221,214,17.94,'3218','52954',285,469);
INSERT INTO "communes" VALUES('52','Guyonvelle','15',115,120,5.34,'3746','53171',244,413);
INSERT INTO "communes" VALUES('52','Humberville','24',64,65,6.44,'3380','53650',269,411);
INSERT INTO "communes" VALUES('52','Mirbel','27',50,47,6.08,'3008','53655',274,391);
INSERT INTO "communes" VALUES('52','Vitry-en-Montagne','03',35,41,9.53,'3056','53141',315,475);
INSERT INTO "communes" VALUES('52','Blécourt','13',110,118,7.25,'3052','53756',250,372);
INSERT INTO "communes" VALUES('52','Coupray','02',172,160,12.1,'2896','53307',245,322);
INSERT INTO "communes" VALUES('52','Bologne','27',1877,1943,31.26,'3116','53558',227,376);
INSERT INTO "communes" VALUES('52','Allichamps','28',402,371,2.74,'2840','53956',137,165);
INSERT INTO "communes" VALUES('52','Mandres-la-Côte','21',542,417,11.3,'3332','53403',368,447);
INSERT INTO "communes" VALUES('52','Pisseloup','15',44,54,3.19,'3782','53142',226,356);
INSERT INTO "communes" VALUES('52','Nogent','21',3985,4344,54.63,'3343','53366',302,467);
INSERT INTO "communes" VALUES('52','Sommancourt','28',62,54,5.73,'2997','53893',198,267);
INSERT INTO "communes" VALUES('52','Hallignicourt','31',294,288,11.86,'2815','54048',124,141);
INSERT INTO "communes" VALUES('52','Aingoulaincourt','22',13,10,5.1,'3277','53840',303,386);
INSERT INTO "communes" VALUES('52','Belmont','12',50,47,7.47,'3566','53026',251,375);
INSERT INTO "communes" VALUES('52','Fayl-Billot','12',1436,1423,42.9,'3627','53091',234,387);
INSERT INTO "communes" VALUES('52','Bayard-sur-Marne','08',1453,1518,15.39,'3044','53949',156,272);
INSERT INTO "communes" VALUES('52','Puellemontier','18',218,172,15.22,'2626','53883',115,148);
INSERT INTO "communes" VALUES('52','Aubepierre-sur-Aube','02',188,213,43.1,'2887','53239',262,398);
INSERT INTO "communes" VALUES('52','Prauthoy','23',505,514,12.3,'3285','52978',279,414);
INSERT INTO "communes" VALUES('52','Fays','28',79,80,5.98,'2998','53860',207,290);
INSERT INTO "communes" VALUES('52','Champigneulles-en-Bassigny','05',56,58,6.82,'3675','53480',322,428);
INSERT INTO "communes" VALUES('52','Mussey-sur-Marne','10',338,340,9.92,'3125','53755',192,368);
INSERT INTO "communes" VALUES('52','Hâcourt','05',35,33,2.94,'3596','53515',313,486);
INSERT INTO "communes" VALUES('52','Humbécourt','31',774,661,20.84,'2850','53981',136,178);
INSERT INTO "communes" VALUES('52','Champsevraine','12',806,902,40.77,'3570','53052',250,385);
INSERT INTO "communes" VALUES('52','Louvières','21',102,125,8.62,'3271','53372',291,438);
INSERT INTO "communes" VALUES('52','Perthes','31',558,617,13.08,'2763','54062',121,134);
INSERT INTO "communes" VALUES('52','Poiseul','20',75,79,4.58,'3504','53246',358,448);
INSERT INTO "communes" VALUES('52','Bourdons-sur-Rognon','01',274,294,39.45,'3348','53519',267,426);
INSERT INTO "communes" VALUES('52','Éclaron-Braucourt-Sainte-Livière','31',2015,1850,54.24,'2811','53990',126,171);
INSERT INTO "communes" VALUES('52','<NAME>','23',374,315,32.48,'3196','52987',290,491);
INSERT INTO "communes" VALUES('52','Louvemont','28',739,742,20.98,'2858','53946',139,197);
INSERT INTO "communes" VALUES('52','Dommarien','23',159,114,17.75,'3345','52986',267,355);
INSERT INTO "communes" VALUES('52','Germay','22',47,61,11.96,'3356','53789',319,427);
INSERT INTO "communes" VALUES('52','Parnoy-en-Bassigny','04',298,309,40.75,'3675','53342',279,451);
INSERT INTO "communes" VALUES('52','Pautaines-Augeville','10',21,27,14.42,'3309','53725',252,398);
INSERT INTO "communes" VALUES('52','Saint-Loup-sur-Aujon','03',167,144,19.33,'3059','53210',300,448);
INSERT INTO "communes" VALUES('52','Saint-Martin-lès-Langres','16',95,53,3.64,'3252','53210',328,424);
INSERT INTO "communes" VALUES('52','Forcey','01',87,71,5.28,'3356','53500',303,431);
INSERT INTO "communes" VALUES('52','Voisines','16',90,93,19.08,'3163','53177',362,485);
INSERT INTO "communes" VALUES('52','Colombey-les-Deux-Églises','14',672,649,73.63,'2832','53581',239,395);
INSERT INTO "communes" VALUES('52','Perrogney-les-Fontaines','17',107,121,14.79,'3180','53124',420,516);
INSERT INTO "communes" VALUES('52','Ferrière-et-Lafolie','13',45,48,7.93,'3057','53769',248,354);
INSERT INTO "communes" VALUES('52','Bay-sur-Aube','03',53,54,9.75,'3030','53135',307,446);
INSERT INTO "communes" VALUES('52','Orquevaux','24',79,91,15.7,'3402','53668',288,432);
INSERT INTO "communes" VALUES('52','Chalancey','23',121,132,13.49,'3115','52975',341,478);
INSERT INTO "communes" VALUES('52','Damrémont','04',217,187,4.84,'3671','53281',310,437);
INSERT INTO "communes" VALUES('52','Cour-l''Évêque','02',182,212,18.95,'2932','53297',252,344);
INSERT INTO "communes" VALUES('52','Bettancourt-la-Ferrée','30',1794,2042,5.38,'2930','54059',143,197);
INSERT INTO "communes" VALUES('52','Chaumont','85',23011,25977,55.26,'3113','53457',247,416);
INSERT INTO "communes" VALUES('52','Maâtz','23',83,94,10.84,'3459','53002',245,362);
INSERT INTO "communes" VALUES('52','Viéville','27',338,257,11.18,'3108','53599',225,387);
INSERT INTO "communes" VALUES('52','Montier-en-Der','18',2088,2014,27.79,'2704','53864',120,160);
INSERT INTO "communes" VALUES('52','Villars-Santenoge','03',97,115,19.95,'2950','53044',328,487);
INSERT INTO "communes" VALUES('52','Saint-Blin','24',396,388,22.33,'3418','53635',275,430);
INSERT INTO "communes" VALUES('52','Orges','06',407,383,17.52,'2879','53423',209,332);
INSERT INTO "communes" VALUES('52','Val-de-Meuse','19',1918,2211,92.56,'3513','53333',308,458);
INSERT INTO "communes" VALUES('52','Sommerécourt','05',81,76,7.66,'3693','53584',312,465);
INSERT INTO "communes" VALUES('52','Annéville-la-Prairie','27',68,84,5.22,'3053','53552',243,354);
INSERT INTO "communes" VALUES('52','Curmont','14',16,11,2.94,'2909','53622',257,331);
INSERT INTO "communes" VALUES('52','Poulangy','21',385,417,17.39,'3242','53380',282,439);
INSERT INTO "communes" VALUES('52','Saint-Urbain-Maconcourt','10',648,659,25.85,'3162','53778',187,377);
INSERT INTO "communes" VALUES('52','Rennepont','14',165,190,11.98,'2798','53498',192,334);
INSERT INTO "communes" VALUES('52','Orbigny-au-Val','20',96,97,7.55,'3439','53204',346,427);
INSERT INTO "communes" VALUES('52','Lavernoy','26',87,78,4.5,'3589','53244',282,386);
INSERT INTO "communes" VALUES('52','Aprey','17',188,188,15.72,'3207','53073',341,522);
INSERT INTO "communes" VALUES('52','Autreville-sur-la-Renne','14',394,471,41.76,'2936','53464',222,380);
INSERT INTO "communes" VALUES('52','Brousseval','28',734,831,6.01,'2923','53879',165,237);
INSERT INTO "communes" VALUES('52','Daillancourt','27',80,84,7.91,'2907','53670',232,357);
INSERT INTO "communes" VALUES('52','Mertrud','11',207,183,12.06,'2837','53801',152,216);
INSERT INTO "communes" VALUES('52','Chaumont-la-Ville','05',125,112,11.22,'3682','53495',319,438);
INSERT INTO "communes" VALUES('52','Liffol-le-Petit','24',335,355,25.72,'3544','53664',310,430);
INSERT INTO "communes" VALUES('52','Dinteville','06',53,64,15.46,'2733','53369',205,358);
INSERT INTO "communes" VALUES('52','Beurville','11',102,111,22.92,'2774','53688',200,336);
INSERT INTO "communes" VALUES('52','Brennes','17',123,149,9.88,'3270','53107',329,462);
INSERT INTO "communes" VALUES('52','Rachecourt-sur-Marne','08',824,760,5.65,'3072','53918',162,282);
INSERT INTO "communes" VALUES('52','Verbiesles','29',291,320,11.36,'3165','53411',267,395);
INSERT INTO "communes" VALUES('52','Le Châtelet-sur-Meuse','04',155,187,21.31,'3657','53314',279,435);
INSERT INTO "communes" VALUES('52','Chauffourt','19',210,205,9.63,'3439','53305',360,513);
INSERT INTO "communes" VALUES('52','Marac','16',226,193,21.92,'3177','53252',344,444);
INSERT INTO "communes" VALUES('52','Millières','09',127,125,14.09,'3428','53484',345,457);
INSERT INTO "communes" VALUES('52','Ternat','03',56,46,7.91,'3100','53229',330,452);
INSERT INTO "communes" VALUES('52','Richebourg','02',270,284,21.2,'3026','53357',304,368);
INSERT INTO "communes" VALUES('52','Levécourt','05',97,107,6.7,'3583','53488',313,410);
INSERT INTO "communes" VALUES('52','Luzy-sur-Marne','29',265,320,16.11,'3165','53397',270,412);
INSERT INTO "communes" VALUES('52','Bourg-Sainte-Marie','05',97,110,9.19,'3577','53533',311,471);
INSERT INTO "communes" VALUES('52','Troisfontaines-la-Ville','28',411,388,37.88,'2992','53933',152,276);
INSERT INTO "communes" VALUES('52','Huilliécourt','05',127,143,8.87,'3568','53512',313,489);
INSERT INTO "communes" VALUES('52','Busson','24',40,36,9.88,'3359','53696',265,413);
INSERT INTO "communes" VALUES('52','Villiers-sur-Suize','02',251,242,17.55,'3178','53312',321,442);
INSERT INTO "communes" VALUES('52','Charmes-la-Grande','11',163,172,11.43,'2952','53760',209,321);
INSERT INTO "communes" VALUES('52','Outremécourt','05',88,102,9.1,'3719','53581',312,498);
INSERT INTO "communes" VALUES('52','Humes-Jorquenay','16',578,601,15.64,'3295','53226',313,452);
INSERT INTO "communes" VALUES('52','Villiers-en-Lieu','31',1580,1481,12.9,'2848','54075',133,177);
INSERT INTO "communes" VALUES('52','Bannes','20',398,392,9.16,'3401','53226',337,424);
INSERT INTO "communes" VALUES('52','Gudmont-Villiers','10',353,355,16.77,'3112','53715',200,387);
INSERT INTO "communes" VALUES('52','Cohons','17',265,247,12.55,'3343','53097',314,469);
INSERT INTO "communes" VALUES('52','Vecqueville','13',610,701,5.22,'3115','53843',175,334);
INSERT INTO "communes" VALUES('52','Morionvilliers','24',29,24,6.88,'3418','53744',344,415);
INSERT INTO "communes" VALUES('52','Faverolles','16',118,119,17.28,'3193','53276',335,462);
INSERT INTO "communes" VALUES('52','Rimaucourt','01',728,753,20.26,'3328','53613',237,382);
INSERT INTO "communes" VALUES('52','Dampierre','20',362,371,16.39,'3398','53282',342,512);
INSERT INTO "communes" VALUES('52','Domremy-Landéville','10',89,80,18.64,'3238','53734',242,368);
INSERT INTO "communes" VALUES('52','Champigny-lès-Langres','16',414,443,6.35,'3344','53215',327,420);
INSERT INTO "communes" VALUES('52','Valleret','28',50,68,4.76,'2961','53875',183,263);
INSERT INTO "communes" VALUES('52','Échenay','22',87,102,9.44,'3304','53848',298,372);
INSERT INTO "communes" VALUES('52','Rizaucourt-Buchey','14',118,132,15.07,'2810','53643',232,381);
INSERT INTO "communes" VALUES('52','Domblain','28',95,92,5.33,'2952','53856',180,260);
INSERT INTO "communes" VALUES('52','Ville-en-Blaisois','28',172,155,6.89,'2914','53822',163,228);
INSERT INTO "communes" VALUES('52','Chambroncourt','24',39,41,10.18,'3409','53726',354,408);
INSERT INTO "communes" VALUES('52','Terre-Natale','26',300,441,23.37,'3650','53218',240,422);
INSERT INTO "communes" VALUES('52','Morancourt','28',142,99,13.92,'2962','53813',212,302);
INSERT INTO "communes" VALUES('52','Frampas','18',162,152,10.22,'2761','53910',129,173);
INSERT INTO "communes" VALUES('52','Annonville','22',30,34,6.19,'3259','53760',263,353);
INSERT INTO "communes" VALUES('52','Planrupt','18',315,244,8.33,'2719','53898',123,161);
INSERT INTO "communes" VALUES('52','Droyes','18',416,333,25.23,'2624','53903',118,157);
INSERT INTO "communes" VALUES('52','Effincourt','22',73,89,12.31,'3257','53884',282,386);
INSERT INTO "communes" VALUES('52','Soncourt-sur-Marne','27',411,339,13.63,'3086','53614',222,391);
INSERT INTO "communes" VALUES('52','Leurville','24',93,101,10.44,'3386','53698',370,416);
INSERT INTO "communes" VALUES('52','Vouécourt','27',220,207,13.42,'3111','53630',217,404);
INSERT INTO "communes" VALUES('52','Haute-Amance','26',990,1018,46.33,'3572','53158',242,417);
INSERT INTO "communes" VALUES('52','Suzannecourt','13',340,340,4.6,'3148','53827',185,365);
INSERT INTO "communes" VALUES('52','Rachecourt-Suzémont','28',111,93,3.57,'2920','53841',176,240);
INSERT INTO "communes" VALUES('52','Montreuil-sur-Blaise','28',154,165,1.36,'2920','53863',168,216);
INSERT INTO "communes" VALUES('52','Buxières-lès-Villiers','29',228,197,4.97,'3000','53451',267,381);
INSERT INTO "communes" VALUES('52','Meures','14',112,112,8.17,'3032','53548',252,392);
INSERT INTO "communes" VALUES('52','Cirey-sur-Blaise','11',107,108,16.44,'2893','53702',216,328);
INSERT INTO "communes" VALUES('52','Saint-Ciergues','16',178,158,12.45,'3242','53205',329,457);
INSERT INTO "communes" VALUES('52','Moëslains','31',440,530,1.62,'2843','54023',125,157);
INSERT INTO "communes" VALUES('52','Mareilles','01',142,116,22.28,'3252','53538',270,387);
INSERT INTO "communes" VALUES('52','Rançonnières','26',113,109,8.35,'3580','53263',309,395);
INSERT INTO "communes" VALUES('52','Velles','15',82,94,4.29,'3763','53147',228,334);
INSERT INTO "communes" VALUES('52','Rougeux','12',126,141,9.82,'3605','53123',237,368);
INSERT INTO "communes" VALUES('52','Chatenay-Vaudin','20',62,58,3.72,'3455','53170',354,416);
INSERT INTO "communes" VALUES('52','Bourg','17',148,151,7.23,'3305','53105',317,463);
INSERT INTO "communes" VALUES('52','Chamarandes-Choignes','07',1054,1022,18.8,'3149','53453',252,407);
INSERT INTO "communes" VALUES('52','Nomécourt','13',97,91,10.77,'3041','53820',234,328);
INSERT INTO "communes" VALUES('52','Lanty-sur-Aube','06',132,146,22.42,'2704','53360',208,353);
INSERT INTO "communes" VALUES('52','Beauchemin','20',105,109,11.92,'3227','53228',333,448);
INSERT INTO "communes" VALUES('52','Doulevant-le-Petit','28',49,36,3.03,'2912','53831',177,216);
INSERT INTO "communes" VALUES('52','Vicq','26',165,195,13.72,'3627','53249',257,404);
INSERT INTO "communes" VALUES('52','Ceffonds','18',636,587,36.52,'2696','53856',119,173);
INSERT INTO "communes" VALUES('52','Praslay','03',68,58,11.28,'3076','53045',353,486);
INSERT INTO "communes" VALUES('52','Arbigny-sous-Varennes','26',80,99,9.84,'3640','53177',235,354);
INSERT INTO "communes" VALUES('52','Doulaincourt-Saucourt','10',943,1005,43.86,'3189','53692',207,389);
INSERT INTO "communes" VALUES('52','Langres','16',8082,9586,22.33,'3329','53181',327,475);
INSERT INTO "communes" VALUES('52','Poinsenot','03',53,38,7.26,'2962','53014',370,494);
INSERT INTO "communes" VALUES('52','Grandchamp','23',84,64,4.78,'3461','53026',251,350);
INSERT INTO "communes" VALUES('52','Chalindrey','17',2587,2690,20.05,'3434','53114',274,471);
INSERT INTO "communes" VALUES('52','Saint-Dizier','86',25526,30836,47.69,'2902','54042',123,205);
INSERT INTO "communes" VALUES('52','Fronville','13',332,288,11.08,'3129','53782',187,363);
INSERT INTO "communes" VALUES('52','Cerisières','10',95,92,10.02,'3048','53675',210,403);
INSERT INTO "communes" VALUES('52','Cuves','09',24,19,5.4,'3445','53438',363,441);
INSERT INTO "communes" VALUES('52','Noyers','09',72,96,7.29,'3499','53401',332,474);
INSERT INTO "communes" VALUES('52','Lamancine','27',126,106,4.48,'3088','53566',233,310);
INSERT INTO "communes" VALUES('52','Dommartin-le-Saint-Père','11',288,275,14.88,'2872','53771',172,274);
INSERT INTO "communes" VALUES('52','Chaudenay','12',303,299,4.6,'3516','53138',276,393);
INSERT INTO "communes" VALUES('52','Eurville-Bienville','08',2029,2083,20.73,'3000','53983',152,242);
INSERT INTO "communes" VALUES('52','Vignes-la-Côte','01',51,58,3.1,'3299','53632',235,354);
INSERT INTO "communes" VALUES('52','Villiers-lès-Aprey','17',38,38,7.39,'3195','53055',338,461);
INSERT INTO "communes" VALUES('52','Leuchey','17',75,47,5.48,'3196','53031',352,482);
INSERT INTO "communes" VALUES('52','Ninville','21',85,81,9.03,'3445','53416',364,458);
INSERT INTO "communes" VALUES('52','Osne-le-Val','08',277,299,26.92,'3173','53884',191,375);
INSERT INTO "communes" VALUES('52','Enfonvelle','04',78,104,12.4,'3920','53252',237,332);
INSERT INTO "communes" VALUES('52','Merrey','09',138,137,6.84,'3616','53394',338,421);
INSERT INTO "communes" VALUES('52','Frécourt','20',96,87,6.22,'3467','53280',371,473);
INSERT INTO "communes" VALUES('52','Thol-lès-Millières','09',38,37,6.91,'3495','53496',368,474);
INSERT INTO "communes" VALUES('52','Savigny','12',56,59,6.19,'3678','53017',271,333);
INSERT INTO "communes" VALUES('52','Pressigny','12',201,233,22.61,'3697','53053',273,383);
INSERT INTO "communes" VALUES('52','Andilly-en-Bassigny','20',113,104,8.42,'3543','53248',310,452);
INSERT INTO "communes" VALUES('52','Brainville-sur-Meuse','05',82,83,5.93,'3610','53531',310,496);
INSERT INTO "communes" VALUES('52','Voisey','15',337,386,31.6,'3828','53205',222,427);
INSERT INTO "communes" VALUES('52','Isômes','23',147,103,10.63,'3297','52940',256,321);
INSERT INTO "communes" VALUES('52','Illoud','05',255,322,13.85,'3581','53566',313,471);
INSERT INTO "communes" VALUES('52','Aubérive','03',196,206,70.64,'3028','53097',325,504);
INSERT INTO "communes" VALUES('52','Poinson-lès-Nogent','21',151,145,10.67,'3369','53328',338,473);
INSERT INTO "communes" VALUES('52','Courcelles-sur-Blaise','11',120,119,5.67,'2894','53795',189,250);
INSERT INTO "communes" VALUES('52','Blaisy','14',76,64,5.62,'2955','53526',299,360);
INSERT INTO "communes" VALUES('52','Vaudrecourt','05',33,45,2.6,'3681','53563',315,477);
INSERT INTO "communes" VALUES('52','Maisoncelles','09',54,62,4.2,'3547','53480',314,430);
INSERT INTO "communes" VALUES('52','Bricon','06',459,456,9.51,'2935','53423',245,332);
INSERT INTO "communes" VALUES('52','Treix','07',248,226,15.46,'3167','53496',301,403);
INSERT INTO "communes" VALUES('52','Sexfontaines','14',125,95,20.77,'3003','53557',283,402);
INSERT INTO "communes" VALUES('52','Fontaines-sur-Marne','08',159,126,6.47,'3073','53939',162,309);
INSERT INTO "communes" VALUES('52','Anrosey','15',153,141,11.04,'3707','53151',232,369);
INSERT INTO "communes" VALUES('52','Vignory','27',278,306,19.46,'3074','53642',217,389);
INSERT INTO "communes" VALUES('52','Montheries','14',72,67,16.22,'2859','53520',210,343);
INSERT INTO "communes" VALUES('52','Vaudrémont','14',116,96,10.39,'2854','53476',207,347);
INSERT INTO "communes" VALUES('52','Chevillon','08',1406,1457,36.9,'3105','53921',162,354);
INSERT INTO "communes" VALUES('52','Froncles','27',1597,1760,20.05,'3122','53666',207,376);
INSERT INTO "communes" VALUES('52','Marbéville','27',113,101,17.71,'2985','53641',274,381);
INSERT INTO "communes" VALUES('52','Clinchamp','05',95,117,16.07,'3468','53547',320,449);
INSERT INTO "communes" VALUES('52','Baissey','17',203,200,9.97,'3238','53058',310,472);
INSERT INTO "communes" VALUES('52','Cirey-lès-Mareilles','01',128,101,14.59,'3276','53554',251,397);
INSERT INTO "communes" VALUES('52','Soyers','15',76,90,6.05,'3730','53188',243,423);
INSERT INTO "communes" VALUES('52','Briaucourt','01',195,201,9.47,'3169','53565',240,367);
INSERT INTO "communes" VALUES('52','Laneuvelle','26',64,101,11.03,'3705','53249',265,430);
INSERT INTO "communes" VALUES('52','Orcevaux','17',120,98,4.22,'3261','53083',321,458);
INSERT INTO "communes" VALUES('52','Rupt','13',331,306,6.53,'3115','53804',185,344);
INSERT INTO "communes" VALUES('52','Lanques-sur-Rognon','21',219,189,13.12,'3370','53430',329,436);
INSERT INTO "communes" VALUES('52','Cirfontaines-en-Ornois','22',78,81,13.95,'3390','53839',323,423);
INSERT INTO "communes" VALUES('52','Ageville','21',312,292,19.55,'3354','53456',322,449);
INSERT INTO "communes" VALUES('52','Saints-Geosmes','16',972,864,14.94,'3323','53147',373,476);
INSERT INTO "communes" VALUES('52','Villiers-le-Sec','29',705,560,15.71,'3029','53451',274,322);
INSERT INTO "communes" VALUES('52','Perrusse','09',43,44,5.61,'3494','53441',402,472);
INSERT INTO "communes" VALUES('52','Saint-Maurice','16',123,143,3.55,'3414','53162',346,407);
INSERT INTO "communes" VALUES('52','Montot-sur-Rognon','01',113,116,7.84,'3280','53640',230,363);
INSERT INTO "communes" VALUES('52','Poissons','22',736,748,15.48,'3204','53803',202,390);
INSERT INTO "communes" VALUES('52','Flagey','17',86,64,8.32,'3243','53091',360,462);
INSERT INTO "communes" VALUES('52','Braux-le-Châtel','06',141,129,10.62,'2898','53444',223,343);
INSERT INTO "communes" VALUES('52','Heuilley-Cotton','17',277,269,10.09,'3365','53081',305,418);
INSERT INTO "communes" VALUES('52','Harréville-les-Chanteurs','05',279,303,15.76,'3660','53628',295,450);
INSERT INTO "communes" VALUES('52','Vesvres-sous-Chalancey','23',55,53,7.22,'3147','52993',363,491);
INSERT INTO "communes" VALUES('52','Occey','23',148,146,16.87,'3267','52902',264,338);
INSERT INTO "communes" VALUES('52','Goncourt','05',292,317,18.77,'3635','53600',300,450);
INSERT INTO "communes" VALUES('52','Laferté-sur-Aube','06',367,375,32.54,'2718','53442',196,359);
INSERT INTO "communes" VALUES('52','Voncourt','12',18,28,3.5,'3706','53016',257,342);
INSERT INTO "communes" VALUES('52','Colmier-le-Haut','03',68,67,19.35,'2921','53090',327,462);
INSERT INTO "communes" VALUES('52','Saint-Broingt-les-Fosses','23',221,152,12.37,'3262','53015',309,473);
INSERT INTO "communes" VALUES('52','Mouilleron','03',33,25,5.19,'3081','52991',345,465);
INSERT INTO "communes" VALUES('52','Silvarouvres','06',47,54,19.41,'2721','53401',200,355);
INSERT INTO "communes" VALUES('52','Vaillant','23',71,59,7.5,'3129','53011',404,513);
INSERT INTO "communes" VALUES('52','Euffigneix','07',294,298,9,'3009','53478',270,381);
INSERT INTO "communes" VALUES('52','Culmont','16',570,561,8.29,'3449','53135',302,414);
INSERT INTO "communes" VALUES('52','Baudrecourt','11',118,105,8.78,'2917','53773',195,291);
INSERT INTO "communes" VALUES('52','Bailly-aux-Forges','28',132,125,10.51,'2864','53847',158,211);
INSERT INTO "communes" VALUES('52','Ecot-la-Combe','01',48,25,20.93,'3384','53565',285,423);
INSERT INTO "communes" VALUES('52','Graffigny-Chemin','05',211,213,17.27,'3658','53521',322,500);
INSERT INTO "communes" VALUES('52','Choiseul','09',95,81,8.63,'3590','53398',328,408);
INSERT INTO "communes" VALUES('52','Laferté-sur-Amance','15',111,151,7.97,'3733','53148',229,358);
INSERT INTO "communes" VALUES('52','Consigny','01',67,76,10.95,'3422','53519',318,451);
INSERT INTO "communes" VALUES('52','Poinson-lès-Grancey','03',60,62,11.68,'2943','53008',369,489);
INSERT INTO "communes" VALUES('52','Rouelles','03',37,27,6.62,'3059','53116',317,469);
INSERT INTO "communes" VALUES('52','Gillaumé','22',38,26,5.21,'3333','53857',315,395);
INSERT INTO "communes" VALUES('52','Rochefort-sur-la-Côte','01',65,61,5.18,'3186','53578',277,376);
INSERT INTO "communes" VALUES('52','Montreuil-sur-Thonnance','22',68,83,8.09,'3222','53844',234,390);
INSERT INTO "communes" VALUES('52','Daillecourt','09',82,90,7.37,'3520','53418',324,465);
INSERT INTO "communes" VALUES('52','Farincourt','12',51,51,5.08,'3716','52999',240,360);
INSERT INTO "communes" VALUES('53','Château-Gontier','97',11585,11128,28.03,'-3377','53143',26,99);
INSERT INTO "communes" VALUES('53','Marcillé-la-Ville','20',798,741,26.96,'-3145','53674',124,327);
INSERT INTO "communes" VALUES('53','Launay-Villiers','19',395,350,9.05,'-3717','53482',107,172);
INSERT INTO "communes" VALUES('53','Montigné-le-Brillant','32',1272,1089,18.05,'-3502','53342',47,117);
INSERT INTO "communes" VALUES('53','Coudray','04',856,641,11.01,'-3312','53101',27,83);
INSERT INTO "communes" VALUES('53','Craon','09',4556,4661,24.56,'-3651','53165',32,83);
INSERT INTO "communes" VALUES('53','Daon','04',484,441,17.93,'-3306','53056',19,81);
INSERT INTO "communes" VALUES('53','Bazougers','22',1036,933,31.72,'-3241','53352',52,108);
INSERT INTO "communes" VALUES('53','<NAME>','08',180,161,6.65,'-2926','53898',149,240);
INSERT INTO "communes" VALUES('53','Saint-Cyr-en-Pail','24',461,441,20.65,'-2867','53823',179,376);
INSERT INTO "communes" VALUES('53','Renazé','25',2671,2792,16.72,'-3772','53104',20,108);
INSERT INTO "communes" VALUES('53','Saint-Germain-le-Fouilloux','17',1024,672,15.48,'-3473','53485',55,146);
INSERT INTO "communes" VALUES('53','Fougerolles-du-Plessis','15',1352,1567,33.29,'-3678','53860',128,232);
INSERT INTO "communes" VALUES('53','<NAME>','01',491,420,10.7,'-3270','53744',87,164);
INSERT INTO "communes" VALUES('53','<NAME>','15',316,396,17.84,'-3668','53832',140,249);
INSERT INTO "communes" VALUES('53','Juvigné','05',1434,1343,62.16,'-3745','53589',113,224);
INSERT INTO "communes" VALUES('53','Charchigné','14',511,396,14.91,'-3050','53797',163,257);
INSERT INTO "communes" VALUES('53','Placé','21',333,328,25.25,'-3459','53615',108,201);
INSERT INTO "communes" VALUES('53','Levaré','12',313,358,11.53,'-3612','53798',183,246);
INSERT INTO "communes" VALUES('53','Saint-Pierre-des-Landes','05',977,947,40.9,'-3738','53638',113,219);
INSERT INTO "communes" VALUES('53','<NAME>','14',431,422,25.28,'-3016','53756',153,321);
INSERT INTO "communes" VALUES('53','Loupfougères','27',412,368,18.76,'-2984','53709',154,299);
INSERT INTO "communes" VALUES('53','Saint-Aubin-du-Désert','27',291,236,12.83,'-2811','53671',120,227);
INSERT INTO "communes" VALUES('53','Ravigny','24',213,201,6.54,'-2665','53830',170,350);
INSERT INTO "communes" VALUES('53','Senonnes','25',352,325,13.13,'-3932','53110',67,104);
INSERT INTO "communes" VALUES('53','Saint-Germain-le-Guillaume','05',480,405,13.23,'-3513','53562',73,168);
INSERT INTO "communes" VALUES('53','Saint-Hilaire-du-Maine','05',833,664,31.06,'-3629','53585',97,224);
INSERT INTO "communes" VALUES('53','Martigné-sur-Mayenne','20',1653,1308,31.61,'-3333','53549',72,165);
INSERT INTO "communes" VALUES('53','Ballots','25',1279,1036,36.01,'-3759','53217',48,93);
INSERT INTO "communes" VALUES('53','Landivy','15',1172,1287,28.54,'-3744','53866',92,231);
INSERT INTO "communes" VALUES('53','Thubœuf','16',296,231,13.88,'-3097','53891',114,165);
INSERT INTO "communes" VALUES('53','La Bigottière','05',449,331,18.4,'-3484','53576',93,183);
INSERT INTO "communes" VALUES('53','Chantrigné','01',605,587,18.62,'-3226','53795',97,285);
INSERT INTO "communes" VALUES('53','Alexain','21',564,402,16.24,'-3449','53588',72,167);
INSERT INTO "communes" VALUES('53','<NAME>','19',534,550,6.23,'-3725','53414',135,192);
INSERT INTO "communes" VALUES('53','Sainte-Gemmes-le-Robert','11',850,780,35.62,'-3011','53552',99,357);
INSERT INTO "communes" VALUES('53','Laigné','06',862,675,21.54,'-3505','53158',45,94);
INSERT INTO "communes" VALUES('53','Izé','03',495,478,28.15,'-2937','53588',217,354);
INSERT INTO "communes" VALUES('53','Méral','07',1089,912,29.5,'-3686','53290',59,102);
INSERT INTO "communes" VALUES('53','Meslay-du-Maine','22',2749,2616,24.18,'-3213','53279',63,112);
INSERT INTO "communes" VALUES('53','Marigné-Peuton','06',556,486,16.61,'-3499','53188',57,101);
INSERT INTO "communes" VALUES('53','Sacé','20',449,320,12.46,'-3389','53540',62,142);
INSERT INTO "communes" VALUES('53','La Selle-Craonnaise','09',932,882,29.17,'-3754','53159',41,107);
INSERT INTO "communes" VALUES('53','La Bazouge-des-Alleux','20',454,262,18.1,'-3274','53537',76,146);
INSERT INTO "communes" VALUES('53','Port-Brillet','19',1910,1817,8.1,'-3676','53458',98,154);
INSERT INTO "communes" VALUES('53','Saint-Mars-sur-la-Futaie','15',621,623,21.45,'-3724','53814',135,252);
INSERT INTO "communes" VALUES('53','Saint-Jean-sur-Erve','26',479,421,25.39,'-3031','53372',58,119);
INSERT INTO "communes" VALUES('53','Ampoigné','06',558,421,21.12,'-3513','53123',47,92);
INSERT INTO "communes" VALUES('53','Saint-Poix','07',398,385,7.38,'-3755','53295',72,102);
INSERT INTO "communes" VALUES('53','Saint-Pierre-la-Cour','19',1971,1640,15.69,'-3736','53461',93,168);
INSERT INTO "communes" VALUES('53','Soucé','01',187,180,6.67,'-3334','53860',101,154);
INSERT INTO "communes" VALUES('53','Saint-Céneré','23',448,458,18.89,'-3257','53469',62,128);
INSERT INTO "communes" VALUES('53','Saint-Michel-de-la-Roë','25',249,210,13.22,'-3849','53200',57,107);
INSERT INTO "communes" VALUES('53','Saint-Georges-sur-Erve','11',409,341,20.17,'-2927','53520',129,326);
INSERT INTO "communes" VALUES('53','Cossé-le-Vivien','07',2938,2713,44.41,'-3609','53273',50,104);
INSERT INTO "communes" VALUES('53','Saint-Charles-la-Forêt','13',220,190,10.61,'-3213','53241',89,121);
INSERT INTO "communes" VALUES('53','Saint-Ouën-des-Vallons','23',200,174,7.38,'-3206','53520',82,128);
INSERT INTO "communes" VALUES('53','Trans','03',231,238,15.43,'-2939','53638',198,299);
INSERT INTO "communes" VALUES('53','Saint-Denis-de-Gastines','10',1687,1683,48.01,'-3549','53713',128,247);
INSERT INTO "communes" VALUES('53','Saint-Ouën-des-Toits','19',1685,1435,21.26,'-3601','53487',118,181);
INSERT INTO "communes" VALUES('53','Aron','20',1756,1552,32.85,'-3216','53664',103,160);
INSERT INTO "communes" VALUES('53','Astillé','32',791,547,20.73,'-3542','53292',73,111);
INSERT INTO "communes" VALUES('53','Saint-Christophe-du-Luat','11',774,553,19.12,'-3108','53482',74,137);
INSERT INTO "communes" VALUES('53','Pré-en-Pail','24',2032,2140,44.73,'-2819','53844',174,416);
INSERT INTO "communes" VALUES('53','Saint-Martin-de-Connée','03',410,420,19.49,'-2840','53571',159,321);
INSERT INTO "communes" VALUES('53','Ruillé-le-Gravelais','19',864,619,16.94,'-3657','53396',90,191);
INSERT INTO "communes" VALUES('53','Le Genest-Saint-Isle','19',2050,1908,18.59,'-3584','53443',82,166);
INSERT INTO "communes" VALUES('53','Saint-Quentin-les-Anges','09',403,376,17.81,'-3581','53081',32,90);
INSERT INTO "communes" VALUES('53','Origne','06',412,278,10.05,'-3407','53281',32,108);
INSERT INTO "communes" VALUES('53','Changé','17',5509,4912,34.68,'-3475','53444',45,159);
INSERT INTO "communes" VALUES('53','Gesvres','27',534,544,21.78,'-2759','53743',145,301);
INSERT INTO "communes" VALUES('53','Torcé-Viviers-en-Charnie','26',731,739,48.77,'-2887','53443',114,286);
INSERT INTO "communes" VALUES('53','Sainte-Marie-du-Bois','16',236,210,11.34,'-3130','53851',128,246);
INSERT INTO "communes" VALUES('53','Denazé','09',157,148,9.3,'-3581','53206',52,104);
INSERT INTO "communes" VALUES('53','Boulay-les-Ifs','24',161,168,9.05,'-2743','53800',190,393);
INSERT INTO "communes" VALUES('53','Bannes','22',136,119,8.32,'-2987','53313',58,102);
INSERT INTO "communes" VALUES('53','La Brûlatte','19',706,606,15.24,'-3655','53428',92,191);
INSERT INTO "communes" VALUES('53','Cuillé','07',967,849,21.66,'-3839','53301',57,103);
INSERT INTO "communes" VALUES('53','Villaines-la-Juhel','27',3072,3180,28.9,'-2907','53716',155,238);
INSERT INTO "communes" VALUES('53','La Bazoge-Montpinçon','20',908,525,8.44,'-3235','53642',99,144);
INSERT INTO "communes" VALUES('53','Sainte-Suzanne','26',975,1020,23.14,'-2988','53442',86,220);
INSERT INTO "communes" VALUES('53','Brécé','12',827,832,35.27,'-3473','53776',116,211);
INSERT INTO "communes" VALUES('53','Saint-Thomas-de-Courceriers','03',223,247,12.95,'-2891','53638',142,330);
INSERT INTO "communes" VALUES('53','Saint-Michel-de-Feins','04',170,136,6.75,'-3229','53086',50,86);
INSERT INTO "communes" VALUES('53','Colombiers-du-Plessis','12',449,514,21.97,'-3530','53769',152,242);
INSERT INTO "communes" VALUES('53','La Chapelle-Craonnaise','07',325,266,10.32,'-3613','53221',47,96);
INSERT INTO "communes" VALUES('53','Soulgé-sur-Ouette','23',1105,971,22.94,'-3229','53400',74,124);
INSERT INTO "communes" VALUES('53','Saint-Loup-du-Dorat','13',333,331,8.29,'-3059','53212',36,72);
INSERT INTO "communes" VALUES('53','Athée','09',517,488,17.23,'-3652','53208',39,88);
INSERT INTO "communes" VALUES('53','Préaux','13',173,156,9.58,'-3114','53262',47,82);
INSERT INTO "communes" VALUES('53','Ballée','13',727,665,14.19,'-3058','53258',37,88);
INSERT INTO "communes" VALUES('53','Couesmes-Vaucé','01',390,384,19.13,'-3385','53835',100,206);
INSERT INTO "communes" VALUES('53','Ruillé-Froid-Fonds','13',501,436,23.56,'-3310','53223',58,119);
INSERT INTO "communes" VALUES('53','Champfrémont','24',316,247,13.13,'-2697','53808',172,400);
INSERT INTO "communes" VALUES('53','Forcé','02',1001,870,4.94,'-3373','53370',43,103);
INSERT INTO "communes" VALUES('53','Saint-Laurent-des-Mortiers','04',194,188,10.06,'-3204','53080',41,82);
INSERT INTO "communes" VALUES('53','Parné-sur-Roc','02',1263,936,23.74,'-3339','53340',38,106);
INSERT INTO "communes" VALUES('53','Beaumont-Pied-de-Bœuf','13',204,190,13.31,'-3076','53228',38,89);
INSERT INTO "communes" VALUES('53','Saint-Berthevin-la-Tannière','15',384,384,17.64,'-3648','53779',164,246);
INSERT INTO "communes" VALUES('53','Longuefuye','04',336,274,14.32,'-3278','53185',52,116);
INSERT INTO "communes" VALUES('53','Fontaine-Couverte','25',391,388,21.65,'-3866','53231',59,102);
INSERT INTO "communes" VALUES('53','La Boissière','09',127,111,6.32,'-3688','53091',34,98);
INSERT INTO "communes" VALUES('53','<NAME>','14',467,481,17.36,'-3051','53759',163,296);
INSERT INTO "communes" VALUES('53','Saint-Erblon','25',166,166,5.68,'-3893','53097',65,106);
INSERT INTO "communes" VALUES('53','Le Bignon-du-Maine','22',328,305,14.29,'-3274','53278',68,114);
INSERT INTO "communes" VALUES('53','Oisseau','21',1180,1100,30.75,'-3341','53730',98,190);
INSERT INTO "communes" VALUES('53','Saint-Brice','13',536,457,13.23,'-3085','53178',33,96);
INSERT INTO "communes" VALUES('53','Saint-Julien-du-Terroux','16',271,232,11.29,'-3051','53866',119,176);
INSERT INTO "communes" VALUES('53','Ahuillé','32',1839,1379,29.87,'-3563','53355',63,130);
INSERT INTO "communes" VALUES('53','Mée','09',203,171,8.75,'-3552','53108',35,81);
INSERT INTO "communes" VALUES('53','Larchamp','10',1052,1019,40.17,'-3705','53736',127,249);
INSERT INTO "communes" VALUES('53','Bouessay','13',766,564,9.34,'-3033','53196',27,70);
INSERT INTO "communes" VALUES('53','Averton','27',615,603,40.62,'-2845','53703',124,292);
INSERT INTO "communes" VALUES('53','Courbeveille','32',657,488,18.02,'-3582','53325',77,116);
INSERT INTO "communes" VALUES('53','Chérancé','09',168,166,8.73,'-3636','53106',30,83);
INSERT INTO "communes" VALUES('53','Saint-Aignan-de-Couptrain','08',390,360,17.42,'-2933','53840',136,212);
INSERT INTO "communes" VALUES('53','Chammes','26',334,330,21.06,'-3016','53419',73,132);
INSERT INTO "communes" VALUES('53','Belgeard','20',553,335,13.01,'-3206','53615',114,162);
INSERT INTO "communes" VALUES('53','Bais','03',1275,1485,26.23,'-3002','53615',155,337);
INSERT INTO "communes" VALUES('53','Bouère','13',1034,906,42.54,'-3128','53182',41,117);
INSERT INTO "communes" VALUES('53','Loiron','19',1486,1270,22.92,'-3635','53399',88,172);
INSERT INTO "communes" VALUES('53','Saint-Jean-sur-Mayenne','17',1526,1195,17.81,'-3432','53481',47,138);
INSERT INTO "communes" VALUES('53','Parigné-sur-Braye','21',736,623,9.88,'-3321','53684',98,173);
INSERT INTO "communes" VALUES('53','<NAME>','25',340,333,19.02,'-3920','53145',74,112);
INSERT INTO "communes" VALUES('53','Montenay','10',1387,1400,37.2,'-3588','53654',94,208);
INSERT INTO "communes" VALUES('53','Ernée','10',5791,5700,36.53,'-3632','53663',107,200);
INSERT INTO "communes" VALUES('53','Saint-Pierre-sur-Orthe','03',476,533,31.66,'-2827','53568',122,301);
INSERT INTO "communes" VALUES('53','Argentré','02',2681,2325,36.77,'-3309','53427',55,128);
INSERT INTO "communes" VALUES('53','Saulges','22',303,334,21.81,'-3047','53314',47,112);
INSERT INTO "communes" VALUES('53','Javron-les-Chapelles','08',1452,1512,38.13,'-2971','53797',133,251);
INSERT INTO "communes" VALUES('53','<NAME>','25',250,241,8.76,'-3831','53217',52,101);
INSERT INTO "communes" VALUES('53','Madré','08',355,352,17.55,'-3018','53864',122,189);
INSERT INTO "communes" VALUES('53','Saint-Ellier-du-Maine','15',536,466,17.49,'-3759','53778',149,226);
INSERT INTO "communes" VALUES('53','Louverné','02',3946,2911,20.58,'-3394','53470',58,138);
INSERT INTO "communes" VALUES('53','Peuton','07',223,211,10.58,'-3509','53206',57,103);
INSERT INTO "communes" VALUES('53','Argenton-Notre-Dame','04',208,181,6.77,'-3250','53089',33,82);
INSERT INTO "communes" VALUES('53','Chailland','05',1185,1135,35.86,'-3566','53582',79,181);
INSERT INTO "communes" VALUES('53','Saint-Baudelle','21',1186,1005,7.17,'-3303','53646',82,159);
INSERT INTO "communes" VALUES('53','Gastines','07',188,162,8.85,'-3822','53280',65,93);
INSERT INTO "communes" VALUES('53','Cosmes','07',316,273,13.68,'-3575','53245',58,107);
INSERT INTO "communes" VALUES('53','Ménil','31',961,785,28.7,'-3347','53084',19,83);
INSERT INTO "communes" VALUES('53','Villepail','27',195,205,15.7,'-2893','53774',168,383);
INSERT INTO "communes" VALUES('53','Voutré','11',888,821,18.57,'-2919','53485',117,326);
INSERT INTO "communes" VALUES('53','Deux-Évailles','23',209,153,11.93,'-3181','53546',92,130);
INSERT INTO "communes" VALUES('53','Livet','11',148,111,11.16,'-3109','53453',88,137);
INSERT INTO "communes" VALUES('53','Saint-Berthevin','32',7277,6851,32.11,'-3514','53409',62,149);
INSERT INTO "communes" VALUES('53','Cossé-en-Champagne','22',330,284,20.88,'-2967','53292',47,101);
INSERT INTO "communes" VALUES('53','Gennes-sur-Glaize','04',984,790,25.97,'-3272','53171',53,98);
INSERT INTO "communes" VALUES('53','Quelaines-Saint-Gault','07',1962,1740,42.25,'-3488','53250',40,108);
INSERT INTO "communes" VALUES('53','Azé','31',3256,2998,29.67,'-3357','53135',22,87);
INSERT INTO "communes" VALUES('53','La Bazouge-de-Chemeré','22',521,444,24.84,'-3138','53334',58,112);
INSERT INTO "communes" VALUES('53','Montourtier','23',352,304,19.09,'-3208','53560',97,151);
INSERT INTO "communes" VALUES('53','Désertines','15',525,539,26.03,'-3559','53854',157,234);
INSERT INTO "communes" VALUES('53','Crennes-sur-Fraubée','27',208,178,12.77,'-2906','53754',179,372);
INSERT INTO "communes" VALUES('53','Saint-Aubin-Fosse-Louvain','12',232,252,14.37,'-3520','53849',153,207);
INSERT INTO "communes" VALUES('53','Brée','23',536,459,16.41,'-3173','53501',72,125);
INSERT INTO "communes" VALUES('53','Ambrières-les-Vallées','01',2787,2902,38.78,'-3297','53780',95,162);
INSERT INTO "communes" VALUES('53','Saint-Fraimbault-de-Prières','20',1016,904,16.85,'-3242','53722',87,155);
INSERT INTO "communes" VALUES('53','Champgenéteux','03',570,556,25.11,'-2998','53657',142,277);
INSERT INTO "communes" VALUES('53','Couptrain','08',155,160,0.71,'-2922','53871',153,194);
INSERT INTO "communes" VALUES('53','Le Bourgneuf-la-Forêt','19',1797,1539,28.6,'-3673','53516',110,201);
INSERT INTO "communes" VALUES('53','Thorigné-en-Charnie','26',189,159,17.57,'-2994','53334',57,114);
INSERT INTO "communes" VALUES('53','Saint-Fort','31',1532,1568,10.79,'-3398','53109',22,88);
INSERT INTO "communes" VALUES('53','Chevaigné-du-Maine','08',191,206,13.05,'-3027','53819',137,227);
INSERT INTO "communes" VALUES('53','Chemazé','06',1360,1026,38.54,'-3457','53097',38,91);
INSERT INTO "communes" VALUES('53','Mayenne','99',13299,13710,19.88,'-3278','53670',82,159);
INSERT INTO "communes" VALUES('53','Saint-Germain-de-Coulamer','27',401,393,17.72,'-2787','53626',113,256);
INSERT INTO "communes" VALUES('53','La Chapelle-au-Riboul','14',514,446,13.1,'-3078','53687',137,255);
INSERT INTO "communes" VALUES('53','Saint-Pierre-des-Nids','24',1932,1711,37.34,'-2707','53777',106,272);
INSERT INTO "communes" VALUES('53','Moulay','20',993,908,8.66,'-3294','53636',80,138);
INSERT INTO "communes" VALUES('53','Lignières-Orgères','08',710,730,40.89,'-2826','53936',205,360);
INSERT INTO "communes" VALUES('53','Châtres-la-Forêt','11',798,642,13.6,'-3076','53482',82,129);
INSERT INTO "communes" VALUES('53','Carelles','12',283,322,13.23,'-3601','53758',169,255);
INSERT INTO "communes" VALUES('53','Gorron','12',2772,2893,14.32,'-3499','53791',147,208);
INSERT INTO "communes" VALUES('53','Vimarcé','11',227,236,20.77,'-2834','53551',135,302);
INSERT INTO "communes" VALUES('53','Lesbois','12',197,203,5.99,'-3490','53823',158,212);
INSERT INTO "communes" VALUES('53','Mézangers','11',702,555,29.34,'-3077','53546',84,138);
INSERT INTO "communes" VALUES('53','<NAME>-Brétignolles','16',234,212,9.31,'-3176','53854',104,212);
INSERT INTO "communes" VALUES('53','Laubrières','07',315,248,8.31,'-3801','53269',59,96);
INSERT INTO "communes" VALUES('53','Villiers-Charlemagne','13',1061,860,27.57,'-3347','53247',32,113);
INSERT INTO "communes" VALUES('53','Bouchamps-lès-Craon','09',567,514,18.15,'-3699','53127',31,104);
INSERT INTO "communes" VALUES('53','Saint-Denis-d''Anjou','04',1519,1334,41.89,'-3086','53101',20,103);
INSERT INTO "communes" VALUES('53','Saint-Germain-d''Anxure','21',328,275,10.35,'-3413','53579',67,134);
INSERT INTO "communes" VALUES('53','Olivet','19',425,381,9.97,'-3616','53468',92,165);
INSERT INTO "communes" VALUES('53','Gesnes','23',223,174,11.21,'-3246','53497',67,123);
INSERT INTO "communes" VALUES('53','Hambers','03',601,549,25.93,'-3061','53616',112,291);
INSERT INTO "communes" VALUES('53','Vieuvy','12',124,115,7.11,'-3556','53829',172,220);
INSERT INTO "communes" VALUES('53','Grazay','20',605,494,16.97,'-3132','53656',128,216);
INSERT INTO "communes" VALUES('53','Saint-Sulpice','06',229,189,8.17,'-3391','53223',27,93);
INSERT INTO "communes" VALUES('53','Saint-Léger','26',286,215,17.22,'-3102','53425',89,135);
INSERT INTO "communes" VALUES('53','Neuilly-le-Vendin','08',386,426,14.6,'-2973','53884',127,223);
INSERT INTO "communes" VALUES('53','Saint-Pierre-sur-Erve','26',137,151,9.74,'-3033','53342',57,116);
INSERT INTO "communes" VALUES('53','L''Huisserie','32',4088,3590,14.72,'-3450','53360',37,118);
INSERT INTO "communes" VALUES('53','Montreuil-Poulay','14',403,414,16.24,'-3178','53758',119,296);
INSERT INTO "communes" VALUES('53','Lassay-les-Châteaux','16',2423,2532,57.63,'-3147','53819',98,270);
INSERT INTO "communes" VALUES('53','Saint-Saturnin-du-Limet','25',513,544,10.7,'-3783','53124',52,107);
INSERT INTO "communes" VALUES('53','Montjean','19',987,797,19.75,'-3662','53340',73,121);
INSERT INTO "communes" VALUES('53','Saint-Cyr-le-Gravelais','19',543,474,19.82,'-3737','53372',82,177);
INSERT INTO "communes" VALUES('53','La Chapelle-Anthenaise','02',933,657,19.89,'-3348','53470',77,147);
INSERT INTO "communes" VALUES('53','Saint-Georges-le-Fléchard','22',382,236,8.44,'-3163','53374',70,112);
INSERT INTO "communes" VALUES('53','Brains-sur-les-Marches','25',228,228,7.68,'-3909','53207',72,109);
INSERT INTO "communes" VALUES('53','Saint-Denis-du-Maine','22',432,308,14.55,'-3182','53296',52,98);
INSERT INTO "communes" VALUES('53','<NAME>','13',312,255,12.92,'-3168','53247',48,112);
INSERT INTO "communes" VALUES('53','Chémeré-le-Roi','22',453,402,15.18,'-3086','53309',47,111);
INSERT INTO "communes" VALUES('53','Contest','21',913,765,22.96,'-3325','53625',77,152);
INSERT INTO "communes" VALUES('53','Livré-la-Touche','09',760,788,30.08,'-3686','53201',39,90);
INSERT INTO "communes" VALUES('53','Loigné-sur-Mayenne','06',879,704,20.5,'-3428','53192',27,104);
INSERT INTO "communes" VALUES('53','Saint-Mars-sur-Colmont','12',438,435,16.39,'-3371','53750',108,202);
INSERT INTO "communes" VALUES('53','Rennes-en-Grenouilles','16',113,105,7.86,'-3165','53881',110,210);
INSERT INTO "communes" VALUES('53','Grez-en-Bouère','13',1005,923,27.29,'-3177','53193',64,122);
INSERT INTO "communes" VALUES('53','Saint-Martin-du-Limet','09',491,493,12.36,'-3730','53128',43,106);
INSERT INTO "communes" VALUES('53','<NAME>','05',671,547,19.91,'-3769','53561',91,188);
INSERT INTO "communes" VALUES('53','Saint-Samson','24',427,334,13.49,'-2807','53869',189,318);
INSERT INTO "communes" VALUES('53','Bierné','04',673,633,24.15,'-3200','53123',52,101);
INSERT INTO "communes" VALUES('53','Arquenay','22',631,510,25.25,'-3229','53319',68,107);
INSERT INTO "communes" VALUES('53','Pommerieux','09',688,589,23.2,'-3594','53137',37,83);
INSERT INTO "communes" VALUES('53','Châtelain','04',488,403,13.91,'-3258','53121',34,91);
INSERT INTO "communes" VALUES('53','Hardanges','14',204,245,18.48,'-3043','53707',149,327);
INSERT INTO "communes" VALUES('53','Courcité','27',909,992,30.69,'-2873','53673',153,269);
INSERT INTO "communes" VALUES('53','Assé-le-Bérenger','11',418,329,11.68,'-2952','53506',122,290);
INSERT INTO "communes" VALUES('53','Hercé','12',330,335,10.2,'-3544','53798',154,242);
INSERT INTO "communes" VALUES('53','Montflours','02',236,204,7.93,'-3411','53523',52,138);
INSERT INTO "communes" VALUES('53','<NAME>','01',532,514,21.9,'-3374','53811',98,190);
INSERT INTO "communes" VALUES('53','<NAME>','14',768,734,23.27,'-3108','53774',174,301);
INSERT INTO "communes" VALUES('53','Vaiges','26',1155,1070,36.26,'-3125','53379',67,126);
INSERT INTO "communes" VALUES('53','Louvigné','02',1057,667,12.56,'-3296','53397',52,103);
INSERT INTO "communes" VALUES('53','Saint-Loup-du-Gast','01',361,305,9.98,'-3247','53761',95,162);
INSERT INTO "communes" VALUES('53','Simplé','07',373,256,9.1,'-3542','53208',50,97);
INSERT INTO "communes" VALUES('53','Châtillon-sur-Colmont','12',1026,943,39.62,'-3420','53710',110,231);
INSERT INTO "communes" VALUES('53','Blandouet','26',203,157,11.33,'-2961','53390',88,225);
INSERT INTO "communes" VALUES('53','Épineux-le-Seguin','22',229,172,9.48,'-2997','53269',37,91);
INSERT INTO "communes" VALUES('53','Pontmain','15',870,893,7.17,'-3772','53821',134,210);
INSERT INTO "communes" VALUES('53','Fromentières','31',811,674,22.06,'-3335','53183',27,96);
INSERT INTO "communes" VALUES('53','Évron','11',7148,7285,35.52,'-3043','53506',82,200);
INSERT INTO "communes" VALUES('53','Bonchamp-lès-Laval','02',5842,4792,27.51,'-3375','53416',47,113);
INSERT INTO "communes" VALUES('53','Andouillé','05',2261,2047,36.54,'-3468','53529',52,155);
INSERT INTO "communes" VALUES('53','Neau','11',697,712,12.65,'-3124','53507',65,114);
INSERT INTO "communes" VALUES('53','Montaudin','15',900,913,21.66,'-3694','53762',150,227);
INSERT INTO "communes" VALUES('53','Saint-Georges-Buttavent','21',1394,1390,36.87,'-3367','53678',95,221);
INSERT INTO "communes" VALUES('53','Bourgon','19',621,588,20.97,'-3781','53519',88,188);
INSERT INTO "communes" VALUES('53','Jublains','03',682,698,36.01,'-3146','53618',104,190);
INSERT INTO "communes" VALUES('53','Châlons-du-Maine','02',641,422,9.66,'-3311','53515',99,152);
INSERT INTO "communes" VALUES('53','Beaulieu-sur-Oudon','19',509,401,19.73,'-3700','53338',67,140);
INSERT INTO "communes" VALUES('53','Niafles','09',316,288,8,'-3709','53163',37,89);
INSERT INTO "communes" VALUES('53','Vautorte','10',584,576,23.64,'-3521','53667',114,221);
INSERT INTO "communes" VALUES('53','Champéon','14',598,512,21.15,'-3171','53741',114,292);
INSERT INTO "communes" VALUES('53','Congrier','25',924,1037,24.28,'-3837','53122',56,106);
INSERT INTO "communes" VALUES('53','Montsûrs','23',2107,2019,10.85,'-3211','53483',67,131);
INSERT INTO "communes" VALUES('53','Saint-Aignan-sur-Roë','25',868,927,18.19,'-3860','53156',69,112);
INSERT INTO "communes" VALUES('53','Laval','98',50940,50956,34.22,'-3452','53414',42,122);
INSERT INTO "communes" VALUES('53','La Baconnière','05',1606,1195,27.36,'-3588','53537',83,199);
INSERT INTO "communes" VALUES('53','Maisoncelles-du-Maine','22',515,399,15.83,'-3320','53294',38,112);
INSERT INTO "communes" VALUES('53','Saint-Calais-du-Désert','08',384,318,17.2,'-2886','53872',153,288);
INSERT INTO "communes" VALUES('53','La Cropte','22',221,239,14.15,'-3144','53287',51,87);
INSERT INTO "communes" VALUES('53','Commer','20',1240,1091,22.88,'-3285','53601',77,162);
INSERT INTO "communes" VALUES('53','La Chapelle-Rainsouin','23',393,234,18.05,'-3174','53443',73,138);
INSERT INTO "communes" VALUES('53','La Pellerine','10',300,291,8.18,'-3764','53683',158,236);
INSERT INTO "communes" VALUES('53','Houssay','06',431,362,14.26,'-3414','53238',32,107);
INSERT INTO "communes" VALUES('53','Nuillé-sur-Vicoin','32',1226,1049,23.59,'-3467','53317',37,108);
INSERT INTO "communes" VALUES('53','Entrammes','28',2202,1847,26.16,'-3389','53329',33,108);
INSERT INTO "communes" VALUES('53','Saint-Mars-du-Désert','27',201,179,11.87,'-2772','53660',107,219);
INSERT INTO "communes" VALUES('54','Bertrambois','09',357,403,18.46,'5166','54006',294,675);
INSERT INTO "communes" VALUES('54','Roville-devant-Bayon','14',810,680,4.43,'4395','53851',243,342);
INSERT INTO "communes" VALUES('54','Millery','24',637,488,7.48,'4215','54241',183,392);
INSERT INTO "communes" VALUES('54','Norroy-le-Sec','11',412,370,13.77,'3860','54756',250,312);
INSERT INTO "communes" VALUES('54','Gerbéviller','13',1365,1406,23.94,'4637','53884',224,317);
INSERT INTO "communes" VALUES('54','Fillières','37',479,395,14.21,'3897','54893',265,410);
INSERT INTO "communes" VALUES('54','Haigneville','05',56,39,2.85,'4452','53874',249,406);
INSERT INTO "communes" VALUES('54','Rehainviller','13',968,881,5.64,'4591','53957',217,273);
INSERT INTO "communes" VALUES('54','Jœuf','07',6829,7449,3.18,'4080','54700',173,287);
INSERT INTO "communes" VALUES('54','Piennes','02',2469,2407,4.67,'3833','54785',277,326);
INSERT INTO "communes" VALUES('54','Beuvezin','10',120,125,7.72,'4025','53755',343,495);
INSERT INTO "communes" VALUES('54','Merviller','03',379,350,12.4,'4931','53869',258,386);
INSERT INTO "communes" VALUES('54','Manoncourt-en-Vermois','25',337,248,6.68,'4367','54001',231,335);
INSERT INTO "communes" VALUES('54','Ville-au-Val','24',177,147,5.79,'4205','54276',195,377);
INSERT INTO "communes" VALUES('54','Blamont','06',1143,1261,7.41,'5006','53989',254,336);
INSERT INTO "communes" VALUES('54','Bruville','11',218,186,10.81,'3977','54590',205,301);
INSERT INTO "communes" VALUES('54','Royaumeix','12',342,280,21.57,'3926','54198',224,257);
INSERT INTO "communes" VALUES('54','Uruffe','10',378,326,13.05,'3786','53966',257,401);
INSERT INTO "communes" VALUES('54','Deneuvre','03',534,571,9.7,'4888','53826',262,377);
INSERT INTO "communes" VALUES('54','Haucourt-Moulaine','30',3100,2985,7.42,'3855','54989',275,391);
INSERT INTO "communes" VALUES('54','Saint-Jean-lès-Longuyon','15',400,363,4.21,'3476','54949',198,313);
INSERT INTO "communes" VALUES('54','Clérey-sur-Brenon','29',60,68,4.42,'4223','53898',233,285);
INSERT INTO "communes" VALUES('54','Tomblaine','40',7723,7842,5.55,'4306','54095',193,241);
INSERT INTO "communes" VALUES('54','Gondrecourt-Aix','11',180,146,12.28,'3814','54717',242,276);
INSERT INTO "communes" VALUES('54','Dommartemont','35',645,630,1.32,'4308','54126',240,375);
INSERT INTO "communes" VALUES('54','Hagéville','08',124,86,8.94,'3917','54480',210,272);
INSERT INTO "communes" VALUES('54','Xirocourt','14',454,406,11.32,'4262','53812',239,365);
INSERT INTO "communes" VALUES('54','Gémonville','10',79,91,9.03,'3942','53794',331,428);
INSERT INTO "communes" VALUES('54','Froville','05',121,123,5.89,'4464','53855',249,307);
INSERT INTO "communes" VALUES('54','Vannes-le-Châtel','10',573,518,17.3,'3825','53940',267,432);
INSERT INTO "communes" VALUES('54','Moncel-sur-Seille','43',486,480,12.41,'4539','54184',195,283);
INSERT INTO "communes" VALUES('54','Loromontzey','05',82,72,7.68,'4490','53817',262,341);
INSERT INTO "communes" VALUES('54','Francheville','12',290,285,10.94,'3994','54154',203,238);
INSERT INTO "communes" VALUES('54','Domèvre-en-Haye','12',446,353,8.46,'3992','54242',210,316);
INSERT INTO "communes" VALUES('54','Crézilles','28',256,224,9.53,'3937','53983',230,288);
INSERT INTO "communes" VALUES('54','Lebeuville','14',172,153,6.22,'4343','53816',280,376);
INSERT INTO "communes" VALUES('54','Thiébauménil','18',395,360,3.87,'4762','53977',232,293);
INSERT INTO "communes" VALUES('54','Seicheprey','26',118,81,8.35,'3838','54300',229,303);
INSERT INTO "communes" VALUES('54','Parey-Saint-Césaire','29',224,198,5.67,'4145','53924',249,298);
INSERT INTO "communes" VALUES('54','Domèvre-sur-Vezouze','06',291,232,14.78,'4966','53957',246,317);
INSERT INTO "communes" VALUES('54','Petitmont','09',364,358,17.6,'5133','53953',291,690);
INSERT INTO "communes" VALUES('54','Lay-Saint-Christophe','42',2541,2623,11.59,'4293','54165',180,380);
INSERT INTO "communes" VALUES('54','Vandeléville','10',206,202,9.86,'4064','53808',293,485);
INSERT INTO "communes" VALUES('54','Moineville','31',1106,879,8.12,'4008','54674',180,248);
INSERT INTO "communes" VALUES('54','Favières','10',602,501,29.5,'4020','53848',308,471);
INSERT INTO "communes" VALUES('54','Marthemont','29',44,33,2.17,'4116','53955',260,437);
INSERT INTO "communes" VALUES('54','Forcelles-sous-Gugney','29',93,94,5.37,'4157','53775',292,451);
INSERT INTO "communes" VALUES('54','Pulligny','29',1227,1171,9.3,'4227','53936',225,340);
INSERT INTO "communes" VALUES('54','Germiny','10',197,180,11.85,'4067','53942',294,443);
INSERT INTO "communes" VALUES('54','Saint-Sauveur','09',48,51,19.16,'5152','53926',315,715);
INSERT INTO "communes" VALUES('54','Hériménil','18',954,810,12.48,'4626','53963',222,293);
INSERT INTO "communes" VALUES('54','Hamonville','12',98,122,6.66,'3864','54253',234,267);
INSERT INTO "communes" VALUES('54','Vaucourt','06',71,63,6.29,'4840','54077',230,296);
INSERT INTO "communes" VALUES('54','Abbéville-lès-Conflans','11',231,244,7.73,'3898','54664',196,230);
INSERT INTO "communes" VALUES('54','Tonnoy','25',740,638,12.35,'4349','53947',229,369);
INSERT INTO "communes" VALUES('54','Juvrecourt','01',67,54,6.11,'4699','54159',221,315);
INSERT INTO "communes" VALUES('54','Velaine-en-Haye','12',1435,1498,17.87,'4094','54114',240,346);
INSERT INTO "communes" VALUES('54','Thézey-Saint-Martin','23',201,188,7.95,'4399','54335',185,263);
INSERT INTO "communes" VALUES('54','Haudonville','13',88,80,7.46,'4627','53889',224,277);
INSERT INTO "communes" VALUES('54','Bezaumont','24',249,249,4.26,'4194','54281',179,376);
INSERT INTO "communes" VALUES('54','Nonhigny','06',113,99,5.75,'5049','53945',266,329);
INSERT INTO "communes" VALUES('54','Herserange','30',4462,4328,3.54,'3831','55020',258,445);
INSERT INTO "communes" VALUES('54','Franconville','13',52,43,4.56,'4573','53889',234,282);
INSERT INTO "communes" VALUES('54','Landremont','24',136,126,5.52,'4225','54277',205,382);
INSERT INTO "communes" VALUES('54','Flin','03',383,374,11.64,'4798','53886',246,317);
INSERT INTO "communes" VALUES('54','Vaudeville','14',189,173,9.05,'4294','53843',238,362);
INSERT INTO "communes" VALUES('54','Bazailles','37',163,196,4.23,'3810','54898',259,352);
INSERT INTO "communes" VALUES('54','Viéville-en-Haye','26',167,150,8.54,'3989','54381',270,357);
INSERT INTO "communes" VALUES('54','Chambley-Bussières','08',641,428,19.25,'3958','54498',222,312);
INSERT INTO "communes" VALUES('54','Sanzey','27',135,138,3.58,'3891','54191',223,239);
INSERT INTO "communes" VALUES('54','Thiaville-sur-Meurthe','03',479,537,4.47,'4969','53792',273,365);
INSERT INTO "communes" VALUES('54','Bernécourt','12',169,181,9.38,'3897','54270',240,295);
INSERT INTO "communes" VALUES('54','Landres','02',886,930,8.04,'3854','54802',280,346);
INSERT INTO "communes" VALUES('54','Erbéviller-sur-Amezule','40',89,56,4.45,'4498','54144',238,305);
INSERT INTO "communes" VALUES('54','Montreux','06',60,61,3.69,'5051','53929',277,345);
INSERT INTO "communes" VALUES('54','Pannes','26',185,146,8.37,'3851','54370',210,249);
INSERT INTO "communes" VALUES('54','Écrouves','27',4245,3670,10.3,'3893','54089',212,385);
INSERT INTO "communes" VALUES('54','Montauville','41',1167,1093,16.19,'4093','54334',193,376);
INSERT INTO "communes" VALUES('54','Phlin','23',43,38,3.7,'4378','54347',184,273);
INSERT INTO "communes" VALUES('54','Tramont-Lassus','10',83,82,5.76,'4028','53774',390,499);
INSERT INTO "communes" VALUES('54','Barisey-au-Plain','10',378,328,10.85,'3897','53917',274,332);
INSERT INTO "communes" VALUES('54','Xousse','06',121,113,6.13,'4859','54063',236,306);
INSERT INTO "communes" VALUES('54','Hussigny-Godbrange','30',3390,3076,15.37,'3931','54992',275,445);
INSERT INTO "communes" VALUES('54','Choloy-Ménillot','28',709,695,11.95,'3869','54069',226,412);
INSERT INTO "communes" VALUES('54','Trondes','27',532,497,12.64,'3818','54129',237,368);
INSERT INTO "communes" VALUES('54','Val-et-Châtillon','09',656,696,18.57,'5144','53954',295,670);
INSERT INTO "communes" VALUES('54','Dommarie-Eulmont','29',78,76,5.52,'4101','53812',291,492);
INSERT INTO "communes" VALUES('54','Malzéville','42',8094,7712,7.53,'4277','54123',187,384);
INSERT INTO "communes" VALUES('54','Épiez-sur-Chiers','15',186,165,5.19,'3520','54991',189,360);
INSERT INTO "communes" VALUES('54','Boucq','27',384,334,22.66,'3806','54164',231,388);
INSERT INTO "communes" VALUES('54','Messein','33',1822,1500,5.14,'4224','54013',216,417);
INSERT INTO "communes" VALUES('54','Avricourt','06',409,443,2.25,'4966','54050',277,336);
INSERT INTO "communes" VALUES('54','Mont-Saint-Martin','32',8117,8238,8.8,'3825','55045',260,398);
INSERT INTO "communes" VALUES('54','Grosrouvres','12',53,46,4.61,'3893','54256',230,260);
INSERT INTO "communes" VALUES('54','Longlaville','30',2450,2377,3.21,'3847','55038',255,391);
INSERT INTO "communes" VALUES('54','Pulnoy','43',4486,4757,3.74,'4357','54112',210,305);
INSERT INTO "communes" VALUES('54','Anthelupt','17',447,427,7.82,'4530','54011',221,313);
INSERT INTO "communes" VALUES('54','Pulney','10',67,49,4.4,'4108','53776',319,510);
INSERT INTO "communes" VALUES('54','Ancerviller','06',254,241,12.34,'4998','53925',277,335);
INSERT INTO "communes" VALUES('54','Diarville','14',499,436,11.03,'4217','53772',260,354);
INSERT INTO "communes" VALUES('54','Gondreville','27',2809,2218,25.03,'4027','54104',196,330);
INSERT INTO "communes" VALUES('54','Houdemont','38',2368,2367,3.62,'4265','54051',226,408);
INSERT INTO "communes" VALUES('54','Azelot','25',416,360,4.75,'4330','53988',228,337);
INSERT INTO "communes" VALUES('54','Gézoncourt','12',173,132,5.34,'4065','54264',205,305);
INSERT INTO "communes" VALUES('54','Deuxville','17',408,365,7.23,'4576','54020',225,340);
INSERT INTO "communes" VALUES('54','Allain','10',476,388,16.48,'3971','53944',259,381);
INSERT INTO "communes" VALUES('54','Anderny','02',289,222,9.62,'3940','54817',259,356);
INSERT INTO "communes" VALUES('54','Burthecourt-aux-Chênes','25',92,101,5.59,'4347','53983',228,350);
INSERT INTO "communes" VALUES('54','Barisey-la-Côte','10',201,162,3.87,'3895','53937',264,418);
INSERT INTO "communes" VALUES('54','Serres','17',256,251,15.55,'4584','54100',215,324);
INSERT INTO "communes" VALUES('54','Minorville','12',228,174,12.65,'3949','54241',226,253);
INSERT INTO "communes" VALUES('54','Omelmont','29',167,168,4.69,'4195','53890',265,307);
INSERT INTO "communes" VALUES('54','Batilly','31',1276,1129,6.37,'4034','54637',208,302);
INSERT INTO "communes" VALUES('54','Méhoncourt','05',256,207,7.87,'4488','53901',262,358);
INSERT INTO "communes" VALUES('54','Tanconville','09',93,102,4.09,'5108','54006',288,361);
INSERT INTO "communes" VALUES('54','Neufmaisons','04',236,177,21.63,'5013','53843',271,534);
INSERT INTO "communes" VALUES('54','Bicqueley','28',936,792,16.82,'3973','54029',207,338);
INSERT INTO "communes" VALUES('54','Leménil-Mitry','14',3,2,3.43,'4351','53836',280,360);
INSERT INTO "communes" VALUES('54','Laneuveville-devant-Nancy','40',6012,5072,12.47,'4328','54061',195,258);
INSERT INTO "communes" VALUES('54','Preutin-Higny','02',147,132,7.02,'3839','54827',272,367);
INSERT INTO "communes" VALUES('54','Sancy','02',349,327,13.19,'3987','54831',254,358);
INSERT INTO "communes" VALUES('54','Dampvitoux','08',65,72,9.19,'3896','54459',209,253);
INSERT INTO "communes" VALUES('54','Saint-Nicolas-de-Port','25',7697,7506,8.23,'4406','54034',201,292);
INSERT INTO "communes" VALUES('54','Varangéville','40',3953,4240,12.04,'4419','54038',197,323);
INSERT INTO "communes" VALUES('54','Jarville-la-Malgrange','38',9385,9751,2.43,'4299','54077',195,242);
INSERT INTO "communes" VALUES('54','Vennezey','13',47,45,3.43,'4591','53827',267,303);
INSERT INTO "communes" VALUES('54','Faulx','23',1319,1171,17.2,'4290','54215',215,412);
INSERT INTO "communes" VALUES('54','Étreval','29',64,52,2.37,'4128','53839',265,328);
INSERT INTO "communes" VALUES('54','Boncourt','11',189,194,6.73,'3880','54632',186,226);
INSERT INTO "communes" VALUES('54','Gélaucourt','10',58,45,2.26,'4059','53839',295,395);
INSERT INTO "communes" VALUES('54','Vroncourt','29',257,130,4.16,'4160','53850',289,337);
INSERT INTO "communes" VALUES('54','Doncourt-lès-Longuyon','15',290,241,5.62,'3751','54932',265,366);
INSERT INTO "communes" VALUES('54','Pierreville','29',325,302,2.87,'4206','53943',225,300);
INSERT INTO "communes" VALUES('54','Labry','11',1679,1578,5.95,'3938','54636',186,228);
INSERT INTO "communes" VALUES('54','Blénod-lès-Pont-à-Mousson','41',4374,4894,9.58,'4123','54315',179,331);
INSERT INTO "communes" VALUES('54','Baslieux','37',574,532,10.17,'3803','54926',244,392);
INSERT INTO "communes" VALUES('54','Magnières','13',342,313,11.58,'4699','53828',242,334);
INSERT INTO "communes" VALUES('54','Damelevières','05',3048,2810,8.12,'4501','53952',207,264);
INSERT INTO "communes" VALUES('54','Jouaville','31',318,262,11.32,'4020','54623',205,322);
INSERT INTO "communes" VALUES('54','Frémonville','06',196,187,13.65,'5056','53995',264,364);
INSERT INTO "communes" VALUES('54','Laronxe','18',388,390,6.83,'4742','53934',234,281);
INSERT INTO "communes" VALUES('54','Saint-Martin','06',74,55,4.87,'4907','53965',241,301);
INSERT INTO "communes" VALUES('54','Dieulouard','41',4558,4771,17.69,'4148','54266',177,307);
INSERT INTO "communes" VALUES('54','Dommartin-la-Chaussée','26',41,36,2.71,'3917','54457',224,262);
INSERT INTO "communes" VALUES('54','Vaudémont','29',80,63,5.76,'4133','53797',329,541);
INSERT INTO "communes" VALUES('54','Bouxières-aux-Dames','42',4101,4123,4.11,'4251','54169',180,361);
INSERT INTO "communes" VALUES('54','Rouves','23',102,86,3.69,'4299','54332',180,216);
INSERT INTO "communes" VALUES('54','Jolivet','18',869,836,7.2,'4634','54006',221,295);
INSERT INTO "communes" VALUES('54','Saffais','25',128,95,4.04,'4417','53951',240,353);
INSERT INTO "communes" VALUES('54','Jarny','11',8519,8373,15.6,'3934','54621',185,236);
INSERT INTO "communes" VALUES('54','Reherrey','03',128,125,5.87,'4923','53899',255,316);
INSERT INTO "communes" VALUES('54','Réclonville','06',74,77,2.96,'4879','53934',247,312);
INSERT INTO "communes" VALUES('54','Mandres-aux-Quatre-Tours','12',183,170,10.24,'3847','54267',236,288);
INSERT INTO "communes" VALUES('54','Marbache','34',1776,1716,10.63,'4184','54219',182,361);
INSERT INTO "communes" VALUES('54','Moyen','13',527,502,23.57,'4703','53871',236,347);
INSERT INTO "communes" VALUES('54','Villers-sous-Prény','41',344,342,6.17,'4069','54382',192,364);
INSERT INTO "communes" VALUES('54','Lesménils','24',485,471,10.84,'4180','54368',177,356);
INSERT INTO "communes" VALUES('54','Morfontaine','37',1125,909,11.42,'3857','54938',275,404);
INSERT INTO "communes" VALUES('54','Maizières','33',930,801,15.63,'4139','53983',229,397);
INSERT INTO "communes" VALUES('54','Domptail-en-l''Air','05',66,51,3.13,'4434','53905',249,401);
INSERT INTO "communes" VALUES('54','Gondrexon','06',33,28,2.49,'4926','54006',255,290);
INSERT INTO "communes" VALUES('54','Borville','05',96,75,4.71,'4507','53832',262,342);
INSERT INTO "communes" VALUES('54','Malavillers','02',148,134,4.37,'3925','54840',313,379);
INSERT INTO "communes" VALUES('54','Hannonville-Suzémont','11',289,241,8.68,'3886','54554',197,232);
INSERT INTO "communes" VALUES('54','Houdelmont','29',239,191,3.85,'4170','53927',238,309);
INSERT INTO "communes" VALUES('54','Foug','27',2767,2739,25.49,'3833','54094',231,396);
INSERT INTO "communes" VALUES('54','Drouville','17',171,154,7.12,'4524','54079',226,303);
INSERT INTO "communes" VALUES('54','Dommartin-sous-Amance','42',257,291,4.03,'4354','54157',206,350);
INSERT INTO "communes" VALUES('54','Arnaville','26',605,609,5.22,'4104','54457',171,354);
INSERT INTO "communes" VALUES('54','Euvezin','26',101,83,11.28,'3890','54360',208,328);
INSERT INTO "communes" VALUES('54','Selaincourt','10',192,182,10.86,'4034','53889',292,436);
INSERT INTO "communes" VALUES('54','Buissoncourt','40',269,189,6.91,'4453','54086',210,258);
INSERT INTO "communes" VALUES('54','Veney','03',57,42,3.45,'4974','53852',274,386);
INSERT INTO "communes" VALUES('54','Sexey-aux-Forges','28',658,609,14.08,'4123','54025',211,352);
INSERT INTO "communes" VALUES('54','Maidières','41',1526,1375,1.81,'4113','54333',182,305);
INSERT INTO "communes" VALUES('54','Athienville','01',165,173,12.96,'4615','54129',212,335);
INSERT INTO "communes" VALUES('54','Martincourt','12',95,76,10.66,'4011','54274',209,325);
INSERT INTO "communes" VALUES('54','Valhey','17',167,158,6.23,'4616','54088',224,320);
INSERT INTO "communes" VALUES('54','Saulxures-lès-Vannes','10',354,378,18.04,'3856','53918',271,427);
INSERT INTO "communes" VALUES('54','Saulxures-lès-Nancy','43',3884,4040,7.05,'4345','54099',206,305);
INSERT INTO "communes" VALUES('54','Saint-Boingt','05',77,81,8.14,'4557','53812',267,345);
INSERT INTO "communes" VALUES('54','Rosières-aux-Salines','25',2866,2839,26.95,'4441','53991',202,336);
INSERT INTO "communes" VALUES('54','Villerupt','37',9421,9680,6.56,'3991','54966',309,442);
INSERT INTO "communes" VALUES('54','Lay-Saint-Remy','27',346,355,3.8,'3806','54089',246,335);
INSERT INTO "communes" VALUES('54','Laître-sous-Amance','42',363,389,5.11,'4376','54163',211,314);
INSERT INTO "communes" VALUES('54','Errouville','02',786,725,5.13,'3962','54907',327,422);
INSERT INTO "communes" VALUES('54','Barbonville','05',423,335,10.81,'4453','53949',209,335);
INSERT INTO "communes" VALUES('54','Autrepierre','06',123,108,7.75,'4961','54013',254,346);
INSERT INTO "communes" VALUES('54','Halloville','06',64,59,3.93,'5027','53949',262,333);
INSERT INTO "communes" VALUES('54','Saint-Maurice-aux-Forges','04',88,68,3.3,'5012','53901',278,320);
INSERT INTO "communes" VALUES('54','Eulmont','42',997,980,7.97,'4320','54167',202,397);
INSERT INTO "communes" VALUES('54','Lalœuf','29',304,233,10.88,'4084','53850',279,405);
INSERT INTO "communes" VALUES('54','Sommerviller','17',905,954,3.81,'4489','54035',207,320);
INSERT INTO "communes" VALUES('54','Nomeny','23',1168,1081,17.79,'4321','54322',179,340);
INSERT INTO "communes" VALUES('54','Arraye-et-Han','23',331,332,10.34,'4394','54267',189,228);
INSERT INTO "communes" VALUES('54','Rozelieures','05',183,139,9.38,'4553','53834',263,363);
INSERT INTO "communes" VALUES('54','Rembercourt-sur-Mad','26',186,190,5.04,'3963','54430',192,322);
INSERT INTO "communes" VALUES('54','Goviller','29',393,354,12.12,'4082','53886',272,439);
INSERT INTO "communes" VALUES('54','Vallois','13',148,144,7.27,'4679','53847',237,327);
INSERT INTO "communes" VALUES('54','Waville','08',444,386,11.43,'4014','54456',187,340);
INSERT INTO "communes" VALUES('54','Crévic','17',943,917,10.69,'4519','54043',205,315);
INSERT INTO "communes" VALUES('54','Bainville-sur-Madon','33',1349,1170,5.88,'4175','53986',220,415);
INSERT INTO "communes" VALUES('54','Bathelémont','01',60,65,6.6,'4654','54102',227,335);
INSERT INTO "communes" VALUES('54','Sornéville','43',366,253,9.22,'4533','54164',203,307);
INSERT INTO "communes" VALUES('54','Frouard','34',6693,6996,12.96,'4214','54179',182,367);
INSERT INTO "communes" VALUES('54','Landécourt','05',94,81,5.82,'4533','53889',235,344);
INSERT INTO "communes" VALUES('54','Villey-Saint-Étienne','12',1077,1053,17.29,'4046','54145',192,253);
INSERT INTO "communes" VALUES('54','Thiaucourt-Regniéville','26',1239,1040,19.01,'3922','54394',202,347);
INSERT INTO "communes" VALUES('54','Bauzemont','17',158,129,6.32,'4657','54081',216,287);
INSERT INTO "communes" VALUES('54','Xammes','26',120,121,8.16,'3909','54416',208,280);
INSERT INTO "communes" VALUES('54','Gogney','06',47,65,8.8,'5024','54015',267,362);
INSERT INTO "communes" VALUES('54','Beaumont','12',68,63,3.11,'3834','54280',240,291);
INSERT INTO "communes" VALUES('54','Praye','29',268,215,8.72,'4188','53816',275,395);
INSERT INTO "communes" VALUES('54','Vilcey-sur-Trey','26',150,155,13.17,'4041','54371',216,362);
INSERT INTO "communes" VALUES('54','Vittonville','24',132,111,4.03,'4135','54407',172,398);
INSERT INTO "communes" VALUES('54','Flainval','17',208,160,3.61,'4514','54021',218,312);
INSERT INTO "communes" VALUES('54','Raucourt','23',202,168,5.06,'4313','54364',199,251);
INSERT INTO "communes" VALUES('54','Bouxières-sous-Froidmont','24',280,265,7.71,'4172','54395',179,394);
INSERT INTO "communes" VALUES('54','Charey','26',74,64,9.31,'3937','54446',205,312);
INSERT INTO "communes" VALUES('54','Prény','41',374,339,15.09,'4067','54420',185,378);
INSERT INTO "communes" VALUES('54','Réméréville','40',522,408,13.46,'4503','54117',218,304);
INSERT INTO "communes" VALUES('54','Badonviller','04',1637,1513,21.95,'5063','53889',284,524);
INSERT INTO "communes" VALUES('54','Limey-Remenauville','26',211,209,18.33,'3954','54318',235,340);
INSERT INTO "communes" VALUES('54','Bénaménil','18',545,498,9.38,'4819','53967',232,313);
INSERT INTO "communes" VALUES('54','Cons-la-Grandville','15',579,608,8.25,'3738','54983',228,388);
INSERT INTO "communes" VALUES('54','Crantenoy','14',130,106,5.28,'4322','53853',275,340);
INSERT INTO "communes" VALUES('54','Leintrey','06',161,136,15.44,'4890','54026',247,313);
INSERT INTO "communes" VALUES('54','Sivry','23',254,211,5.91,'4293','54257',236,398);
INSERT INTO "communes" VALUES('54','Mont-Bonvillers','02',1009,953,7.44,'3887','54808',270,361);
INSERT INTO "communes" VALUES('54','Cerville','40',586,547,8.19,'4418','54107',216,289);
INSERT INTO "communes" VALUES('54','Cutry','32',966,902,5.97,'3784','54982',242,393);
INSERT INTO "communes" VALUES('54','Fontenoy-la-Joûte','03',289,281,10.89,'4803','53839',268,352);
INSERT INTO "communes" VALUES('54','Bettainvillers','02',240,155,4.53,'3965','54778',228,293);
INSERT INTO "communes" VALUES('54','Manoncourt-en-Woëvre','12',229,203,10.56,'3987','54203',212,311);
INSERT INTO "communes" VALUES('54','Barbas','06',152,145,7.33,'5011','53970',257,318);
INSERT INTO "communes" VALUES('54','Rogéville','12',171,120,6.94,'4049','54244',208,316);
INSERT INTO "communes" VALUES('54','Battigny','10',106,91,6.41,'4048','53831',296,469);
INSERT INTO "communes" VALUES('54','Giriviller','13',75,39,7.71,'4613','53826',274,347);
INSERT INTO "communes" VALUES('54','Richardménil','25',2487,2885,7.17,'4259','53994',222,315);
INSERT INTO "communes" VALUES('54','Létricourt','23',233,179,7.38,'4398','54306',187,238);
INSERT INTO "communes" VALUES('54','Saint-Baussant','26',70,59,8.92,'3840','54325',217,297);
INSERT INTO "communes" VALUES('54','Mercy-le-Bas','02',1359,1326,8.23,'3795','54871',242,318);
INSERT INTO "communes" VALUES('54','Agincourt','42',426,396,4.17,'4334','54148',204,322);
INSERT INTO "communes" VALUES('54','Allamps','10',511,511,7.21,'3859','53942',270,422);
INSERT INTO "communes" VALUES('54','Xivry-Circourt','02',264,296,12.04,'3811','54839',259,333);
INSERT INTO "communes" VALUES('54','Jeandelaincourt','23',784,666,4.47,'4339','54270',192,397);
INSERT INTO "communes" VALUES('54','Bouillonville','26',127,91,5.32,'3895','54383',205,264);
INSERT INTO "communes" VALUES('54','Longwy','16',14420,14515,5.34,'3804','55022',250,396);
INSERT INTO "communes" VALUES('54','Joudreville','02',1201,1069,5.58,'3823','54762',251,312);
INSERT INTO "communes" VALUES('54','Seranville','13',99,91,5.37,'4645','53842',270,338);
INSERT INTO "communes" VALUES('54','Armaucourt','23',213,234,3.72,'4407','54241',192,222);
INSERT INTO "communes" VALUES('54','Mance','07',608,583,7.39,'3977','54743',208,291);
INSERT INTO "communes" VALUES('54','Brouville','03',125,124,9.7,'4904','53887',258,343);
INSERT INTO "communes" VALUES('54','Neuviller-sur-Moselle','14',249,252,6.71,'4390','53881',239,360);
INSERT INTO "communes" VALUES('54','Saint-Max','35',9930,10951,1.85,'4300','54112',193,342);
INSERT INTO "communes" VALUES('54','Einvaux','05',327,284,7.38,'4511','53878',255,348);
INSERT INTO "communes" VALUES('54','Olley','11',252,212,9.48,'3807','54628',189,223);
INSERT INTO "communes" VALUES('54','Champenoux','43',1208,1126,10.99,'4458','54159',220,274);
INSERT INTO "communes" VALUES('54','Béchamps','11',84,79,9.28,'3780','54679',203,272);
INSERT INTO "communes" VALUES('54','Xeuilley','29',771,756,7.37,'4180','53963',222,281);
INSERT INTO "communes" VALUES('54','Xures','01',126,122,6.98,'4799','54100',225,280);
INSERT INTO "communes" VALUES('54','Boismont','37',470,455,5.43,'3781','54896',233,350);
INSERT INTO "communes" VALUES('54','Nancy','98',105421,103552,15.01,'4274','54103',188,353);
INSERT INTO "communes" VALUES('54','Belleau','23',829,723,20.38,'4272','54256',179,397);
INSERT INTO "communes" VALUES('54','Lucey','27',580,579,10.7,'3889','54135',222,395);
INSERT INTO "communes" VALUES('54','Leyr','23',956,865,10.74,'4365','54226',199,415);
INSERT INTO "communes" VALUES('54','Clémery','23',517,403,9.45,'4277','54327',179,226);
INSERT INTO "communes" VALUES('54','Port-sur-Seille','24',234,193,6.37,'4252','54336',177,228);
INSERT INTO "communes" VALUES('54','Parux','09',80,65,4.38,'5095','53932',279,403);
INSERT INTO "communes" VALUES('54','Tramont-Saint-André','10',54,42,6.88,'3987','53786',352,466);
INSERT INTO "communes" VALUES('54','Ochey','28',475,324,18.06,'4007','53980',234,345);
INSERT INTO "communes" VALUES('54','Aingeray','27',544,637,12.79,'4072','54154',192,289);
INSERT INTO "communes" VALUES('54','Montigny','03',133,131,6.11,'4959','53907',263,317);
INSERT INTO "communes" VALUES('54','Gripport','14',251,217,5.74,'4351','53794',255,389);
INSERT INTO "communes" VALUES('54','Pexonne','04',411,411,13.43,'5032','53870',273,522);
INSERT INTO "communes" VALUES('54','Réchicourt-la-Petite','01',78,73,5.5,'4718','54132',228,313);
INSERT INTO "communes" VALUES('54','Petit-Failly','15',82,76,8.12,'3506','54933',204,313);
INSERT INTO "communes" VALUES('54','Fléville-devant-Nancy','40',2360,2626,7.4,'4297','54028',206,281);
INSERT INTO "communes" VALUES('54','Mattexey','13',69,65,4.97,'4644','53826',270,337);
INSERT INTO "communes" VALUES('54','Villers-la-Chèvre','15',563,488,4.02,'3730','55005',312,380);
INSERT INTO "communes" VALUES('54','Vitrey','29',226,171,11.54,'4122','53874',260,350);
INSERT INTO "communes" VALUES('54','Hudiviller','17',316,293,2.99,'4510','54003',230,307);
INSERT INTO "communes" VALUES('54','Fresnois-la-Montagne','15',423,380,8.59,'3677','54994',280,397);
INSERT INTO "communes" VALUES('54','Vigneulles','05',273,209,5.57,'4438','53956',207,335);
INSERT INTO "communes" VALUES('54','Moutiers','31',1748,1929,6.82,'4030','54705',180,273);
INSERT INTO "communes" VALUES('54','Charmes-la-Côte','28',319,312,6.23,'3879','54028',224,409);
INSERT INTO "communes" VALUES('54','Noviant-aux-Prés','12',260,177,11.19,'3939','54267',220,314);
INSERT INTO "communes" VALUES('54','Moriviller','13',101,81,7.24,'4561','53864',248,344);
INSERT INTO "communes" VALUES('54','Lupcourt','25',416,278,6.94,'4332','54013',226,322);
INSERT INTO "communes" VALUES('54','Arracourt','01',246,234,17.41,'4663','54137',215,335);
INSERT INTO "communes" VALUES('54','Crépey','10',348,272,20.9,'4039','53920',297,434);
INSERT INTO "communes" VALUES('54','Crion','18',84,101,8.08,'4656','54045',227,292);
INSERT INTO "communes" VALUES('54','Chaudeney-sur-Moselle','28',684,661,8.34,'3965','54057',202,311);
INSERT INTO "communes" VALUES('54','Pierrepont','15',902,984,7.02,'3750','54906',227,336);
INSERT INTO "communes" VALUES('54','Jaulny','26',263,221,8.25,'3945','54412',194,318);
INSERT INTO "communes" VALUES('54','Bertrichamps','03',1077,1062,19.66,'4952','53810',266,422);
INSERT INTO "communes" VALUES('54','Anoux','07',277,287,9.88,'3924','54751',227,275);
INSERT INTO "communes" VALUES('54','Hablainville','03',215,191,7.59,'4880','53908',262,347);
INSERT INTO "communes" VALUES('54','Friauville','11',390,265,6.34,'3894','54606',187,221);
INSERT INTO "communes" VALUES('54','Gorcy','32',2429,2123,4.1,'3720','55039',235,385);
INSERT INTO "communes" VALUES('54','Hoéville','17',178,124,8.54,'4553','54119',218,328);
INSERT INTO "communes" VALUES('54','Blainville-sur-l''Eau','05',4013,3789,11.74,'4522','53951',212,288);
INSERT INTO "communes" VALUES('54','Sainte-Geneviève','24',188,157,7.14,'4199','54300',197,376);
INSERT INTO "communes" VALUES('54','Mont-l''Étroit','10',107,88,6.42,'3831','53887',286,427);
INSERT INTO "communes" VALUES('54','Belleville','24',1474,1281,10.22,'4179','54243',182,333);
INSERT INTO "communes" VALUES('54','Angomont','04',101,90,17.28,'5122','53907',338,660);
INSERT INTO "communes" VALUES('54','Bouxières-aux-Chênes','42',1402,1310,19.85,'4360','54191',212,408);
INSERT INTO "communes" VALUES('54','Mont-le-Vignoble','28',391,358,4.12,'3893','54015',223,395);
INSERT INTO "communes" VALUES('54','Custines','42',2950,2998,11.76,'4229','54213',182,395);
INSERT INTO "communes" VALUES('54','Tellancourt','15',571,523,3.76,'3663','55009',335,403);
INSERT INTO "communes" VALUES('54','Tremblecourt','12',197,152,6.08,'4004','54228',223,316);
INSERT INTO "communes" VALUES('54','Chenières','32',619,531,8.5,'3810','54968',274,398);
INSERT INTO "communes" VALUES('54','Thorey-Lyautey','29',133,118,6.19,'4102','53826',274,357);
INSERT INTO "communes" VALUES('54','Saint-Supplet','02',167,155,7.43,'3776','54869',243,323);
INSERT INTO "communes" VALUES('54','Mignéville','03',176,179,6.44,'4936','53925',252,307);
INSERT INTO "communes" VALUES('54','Chaligny','33',3086,2955,13.32,'4163','54027',215,419);
INSERT INTO "communes" VALUES('54','Essey-la-Côte','13',88,79,6.6,'4590','53805',280,415);
INSERT INTO "communes" VALUES('54','Ferrières','25',287,240,6.25,'4397','53950',254,361);
INSERT INTO "communes" VALUES('54','Chaouilley','29',116,91,5.12,'4146','53821',289,401);
INSERT INTO "communes" VALUES('54','Raville-sur-Sânon','17',103,94,3.35,'4623','54057',217,274);
INSERT INTO "communes" VALUES('54','Hatrize','31',833,684,7.4,'3968','54658',182,236);
INSERT INTO "communes" VALUES('54','Fey-en-Haye','41',74,64,7.05,'4028','54337',280,375);
INSERT INTO "communes" VALUES('54','Laneuveville-aux-Bois','18',307,304,19.04,'4793','54013',232,303);
INSERT INTO "communes" VALUES('54','Remoncourt','06',40,39,6.68,'4889','54066',237,283);
INSERT INTO "communes" VALUES('54','Othe','15',31,32,2.97,'3451','54995',188,310);
INSERT INTO "communes" VALUES('54','Saint-Ail','31',360,328,7.38,'4066','54646',229,328);
INSERT INTO "communes" VALUES('54','Lorey','05',99,72,5.18,'4410','53887',239,385);
INSERT INTO "communes" VALUES('54','Giraumont','11',1237,1173,7.63,'3975','54635',183,235);
INSERT INTO "communes" VALUES('54','Baccarat','03',4656,4744,13.53,'4890','53832',257,365);
INSERT INTO "communes" VALUES('54','Bonviller','17',185,173,5.04,'4623','54037',225,294);
INSERT INTO "communes" VALUES('54','Bey-sur-Seille','23',158,167,5.53,'4451','54227',195,243);
INSERT INTO "communes" VALUES('54','Saint-Germain','05',151,146,7.68,'4447','53812',268,362);
INSERT INTO "communes" VALUES('54','Morville-sur-Seille','24',130,103,5.34,'4244','54352',177,236);
INSERT INTO "communes" VALUES('54','Grand-Failly','15',318,294,21.87,'3531','54912',197,313);
INSERT INTO "communes" VALUES('54','Pierre-la-Treiche','28',535,606,12.85,'3993','54048',206,350);
INSERT INTO "communes" VALUES('54','Lemainville','14',348,318,4.75,'4292','53893',232,298);
INSERT INTO "communes" VALUES('54','Saulnes','30',2350,2455,4,'3877','55036',275,398);
INSERT INTO "communes" VALUES('54','Saint-Mard','05',98,83,2.95,'4410','53895',237,346);
INSERT INTO "communes" VALUES('54','Tiercelet','37',660,503,7.68,'3942','54958',360,432);
INSERT INTO "communes" VALUES('54','Flirey','26',180,173,15.77,'3901','54306',256,332);
INSERT INTO "communes" VALUES('54','Beuveille','15',735,520,11.9,'3726','54924',217,333);
INSERT INTO "communes" VALUES('54','Saulxerotte','10',84,80,3.15,'4009','53855',318,403);
INSERT INTO "communes" VALUES('54','Mexy','30',2225,1996,4.9,'3829','55001',267,393);
INSERT INTO "communes" VALUES('54','Bagneux','10',155,132,8.6,'3940','53954',243,306);
INSERT INTO "communes" VALUES('54','Lanfroicourt','23',118,127,6.19,'4438','54233',194,243);
INSERT INTO "communes" VALUES('54','Saint-Clément','18',857,833,16.47,'4740','53924',234,324);
INSERT INTO "communes" VALUES('54','Onville','08',539,524,9.27,'4037','54464',182,365);
INSERT INTO "communes" VALUES('54','Laix','37',205,203,7.55,'3826','54941',275,397);
INSERT INTO "communes" VALUES('54','Thil','37',1616,1574,3.32,'3969','54970',340,431);
INSERT INTO "communes" VALUES('54','Bionville','04',131,123,12.14,'5193','53871',325,730);
INSERT INTO "communes" VALUES('54','Ménil-la-Tour','27',313,300,8.82,'3919','54185',221,252);
INSERT INTO "communes" VALUES('54','Villers-lès-Moivrons','23',135,79,2.85,'4350','54238',208,420);
INSERT INTO "communes" VALUES('54','Mairy-Mainville','02',574,477,12.42,'3913','54782',237,325);
INSERT INTO "communes" VALUES('54','Fontenoy-sur-Moselle','27',366,195,5.54,'4049','54124',192,264);
INSERT INTO "communes" VALUES('54','Bures','01',71,51,5.74,'4711','54105',227,315);
INSERT INTO "communes" VALUES('54','Murville','02',244,204,5.57,'3877','54820',305,366);
INSERT INTO "communes" VALUES('54','Doncourt-lès-Conflans','11',1199,960,7.34,'3997','54605',202,282);
INSERT INTO "communes" VALUES('54','Bréménil','04',127,143,5.6,'5091','53915',306,425);
INSERT INTO "communes" VALUES('54','Glonville','03',347,316,18.58,'4837','53860',251,353);
INSERT INTO "communes" VALUES('54','Einville-au-Jard','17',1238,1261,16.98,'4612','54061',216,324);
INSERT INTO "communes" VALUES('54','Rosières-en-Haye','12',237,259,10.74,'4071','54214',235,306);
INSERT INTO "communes" VALUES('54','Mancieulles','07',1719,1420,4.39,'3951','54760',218,291);
INSERT INTO "communes" VALUES('54','Cirey-sur-Vezouze','09',1733,1788,16.39,'5123','53979',273,393);
INSERT INTO "communes" VALUES('54','Conflans-en-Jarnisy','11',2413,2500,8.71,'3911','54631',185,226);
INSERT INTO "communes" VALUES('54','Ogéviller','06',299,289,3.54,'4877','53941',241,282);
INSERT INTO "communes" VALUES('54','Sainte-Pôle','04',204,177,5.69,'4986','53900',272,313);
INSERT INTO "communes" VALUES('54','Frôlois','29',683,560,9.4,'4211','53961',222,327);
INSERT INTO "communes" VALUES('54','Thuilley-aux-Groseilles','10',479,219,9.12,'4040','53971',268,382);
INSERT INTO "communes" VALUES('54','Bulligny','28',501,462,10.49,'3904','53975',249,425);
INSERT INTO "communes" VALUES('54','Vaxainville','03',86,76,3.59,'4908','53907',252,320);
INSERT INTO "communes" VALUES('54','Velle-sur-Moselle','05',307,269,4.47,'4378','53922',234,336);
INSERT INTO "communes" VALUES('54','Jevoncourt','14',80,64,3.29,'4257','53794',246,321);
INSERT INTO "communes" VALUES('54','Pettonville','03',59,43,2.92,'4895','53921',252,300);
INSERT INTO "communes" VALUES('54','Marainviller','18',702,654,16.99,'4738','53988',227,282);
INSERT INTO "communes" VALUES('54','Loisy','24',322,339,5.58,'4177','54296',179,379);
INSERT INTO "communes" VALUES('54','Fraisnes-en-Saintois','29',110,81,6.39,'4134','53751',291,515);
INSERT INTO "communes" VALUES('54','Remenoville','13',156,154,8.46,'4597','53848',249,363);
INSERT INTO "communes" VALUES('54','Pompey','34',4993,5224,8.13,'4212','54187',185,358);
INSERT INTO "communes" VALUES('54','Amance','42',333,296,13.5,'4381','54171',214,405);
INSERT INTO "communes" VALUES('54','Manonviller','18',165,149,6.98,'4794','53981',232,318);
INSERT INTO "communes" VALUES('54','Atton','24',780,640,15.38,'4171','54323',178,280);
INSERT INTO "communes" VALUES('54','Domgermain','28',1302,1083,13.09,'3877','54047',219,414);
INSERT INTO "communes" VALUES('54','Fenneviller','04',100,105,2.99,'5050','53875',290,432);
INSERT INTO "communes" VALUES('54','Emberménil','06',270,215,14.39,'4844','54032',234,313);
INSERT INTO "communes" VALUES('54','Saint-Firmin','14',279,233,6.67,'4218','53799',259,311);
INSERT INTO "communes" VALUES('54','Xonville','08',136,99,7.27,'3902','54506',213,251);
INSERT INTO "communes" VALUES('54','Dommartin-lès-Toul','27',2024,1643,6.87,'3968','54078',201,295);
INSERT INTO "communes" VALUES('54','Mazerulles','43',242,258,6.38,'4494','54177',202,283);
INSERT INTO "communes" VALUES('54','Mont-sur-Meurthe','13',1119,946,9.51,'4562','53950',216,277);
INSERT INTO "communes" VALUES('54','Norroy-lès-Pont-à-Mousson','41',1240,1048,5.89,'4102','54371',177,375);
INSERT INTO "communes" VALUES('54','Voinémont','14',352,316,4.11,'4251','53912',229,314);
INSERT INTO "communes" VALUES('54','Jezainville','41',929,889,18.19,'4116','54301',183,352);
INSERT INTO "communes" VALUES('54','Sionviller','18',117,117,6.74,'4660','54038',239,297);
INSERT INTO "communes" VALUES('54','Lexy','32',3067,2990,5.99,'3773','55001',239,380);
INSERT INTO "communes" VALUES('54','Villey-le-Sec','28',416,340,6.4,'4045','54066',207,340);
INSERT INTO "communes" VALUES('54','Chapelle','03',253,237,10.17,'4948','53799',269,397);
INSERT INTO "communes" VALUES('54','Joppécourt','02',145,139,6.98,'3843','54876',259,360);
INSERT INTO "communes" VALUES('54','Romain','05',59,51,3.15,'4470','53907',260,355);
INSERT INTO "communes" VALUES('54','Harbouey','06',106,94,10.14,'5055','53967',261,313);
INSERT INTO "communes" VALUES('54','Saint-Pancré','15',315,284,6.13,'3680','55033',230,400);
INSERT INTO "communes" VALUES('54','Croismare','18',618,596,15.7,'4704','53999',224,293);
INSERT INTO "communes" VALUES('54','Ugny','15',743,444,9.14,'3735','54968',227,398);
INSERT INTO "communes" VALUES('54','Moncel-lès-Lunéville','18',524,391,21.94,'4658','53971',223,272);
INSERT INTO "communes" VALUES('54','Allondrelle-la-Malmaison','15',619,519,13.61,'3585','55012',230,396);
INSERT INTO "communes" VALUES('54','Vitrimont','17',380,356,11.85,'4559','54001',217,331);
INSERT INTO "communes" VALUES('54','Allamont','11',136,109,9.06,'3806','54581',190,219);
INSERT INTO "communes" VALUES('54','Villecey-sur-Mad','08',320,248,7.41,'4025','54452',188,361);
INSERT INTO "communes" VALUES('54','Ludres','38',6463,6821,8.18,'4250','54024',237,420);
INSERT INTO "communes" VALUES('54','Saint-Julien-lès-Gorze','08',162,146,10.38,'3960','54460',208,320);
INSERT INTO "communes" VALUES('54','Mâron','33',839,828,19.1,'4123','54039',211,404);
INSERT INTO "communes" VALUES('54','Champey-sur-Moselle','24',347,323,2.42,'4135','54397',173,394);
INSERT INTO "communes" VALUES('54','Repaix','06',81,84,4.86,'4996','54009',279,353);
INSERT INTO "communes" VALUES('54','Montigny-sur-Chiers','15',477,443,9.36,'3703','54978',217,351);
INSERT INTO "communes" VALUES('54','Chazelles-sur-Albe','06',32,49,3.39,'4936','53989',251,286);
INSERT INTO "communes" VALUES('54','Ansauville','12',86,79,6.97,'3878','54247',232,250);
INSERT INTO "communes" VALUES('54','Flavigny-sur-Moselle','25',1746,1639,17.3,'4279','53966',222,359);
INSERT INTO "communes" VALUES('54','Fléville-Lixières','11',280,245,14.38,'3874','54717',211,276);
INSERT INTO "communes" VALUES('54','Pont-Saint-Vincent','33',1968,2054,6.66,'4179','54006',216,412);
INSERT INTO "communes" VALUES('54','Jaillon','12',353,302,7.47,'4035','54174',197,277);
INSERT INTO "communes" VALUES('54','Moivrons','23',461,326,6,'4347','54248',212,403);
INSERT INTO "communes" VALUES('54','Benney','14',617,517,18.48,'4314','53903',230,374);
INSERT INTO "communes" VALUES('54','Ville-Houdlémont','32',635,531,6.09,'3680','55050',222,394);
INSERT INTO "communes" VALUES('54','Saint-Marcel','11',139,147,11.35,'4019','54580',250,314);
INSERT INTO "communes" VALUES('54','Igney','06',116,127,4.71,'4975','54038',296,354);
INSERT INTO "communes" VALUES('54','Serrouville','02',647,525,15.57,'3946','54887',280,398);
INSERT INTO "communes" VALUES('54','Mailly-sur-Seille','23',258,219,6.4,'4343','54345',184,283);
INSERT INTO "communes" VALUES('54','Herbéviller','06',219,207,8.12,'4908','53952',241,286);
INSERT INTO "communes" VALUES('54','Réhon','32',3719,3203,3.73,'3798','55002',250,371);
INSERT INTO "communes" VALUES('54','Laneuveville-devant-Bayon','14',245,196,5.75,'4366','53857',264,367);
INSERT INTO "communes" VALUES('54','Longuyon','15',5577,5866,29.7,'3627','54941',203,389);
INSERT INTO "communes" VALUES('54','Thélod','29',265,258,10.76,'4121','53940',243,446);
INSERT INTO "communes" VALUES('54','Lubey','07',220,152,3.93,'3910','54716',204,242);
INSERT INTO "communes" VALUES('54','Puxe','11',112,104,5.89,'3840','54618',186,217);
INSERT INTO "communes" VALUES('54','Lironville','26',115,84,8.99,'3968','54298',217,319);
INSERT INTO "communes" VALUES('54','Bralleville','14',182,163,4.39,'4283','53783',247,351);
INSERT INTO "communes" VALUES('54','Charency-Vezin','15',658,561,14.79,'3527','54981',192,365);
INSERT INTO "communes" VALUES('54','Pont-à-Mousson','24',14505,14611,21.6,'4131','54338',172,382);
INSERT INTO "communes" VALUES('54','Avrainville','12',223,171,9.73,'4001','54192',207,302);
INSERT INTO "communes" VALUES('54','Mangonville','14',228,232,3.85,'4392','53840',247,365);
INSERT INTO "communes" VALUES('54','Colmey','15',293,245,9.9,'3579','54953',197,352);
INSERT INTO "communes" VALUES('54','Verdenal','06',152,119,6.54,'4972','53982',251,330);
INSERT INTO "communes" VALUES('54','Brémoncourt','05',157,147,5.24,'4462','53876',268,403);
INSERT INTO "communes" VALUES('54','Blémerey','06',61,58,3.82,'4886','53981',242,287);
INSERT INTO "communes" VALUES('54','Tantonville','14',652,599,8.09,'4225','53855',246,327);
INSERT INTO "communes" VALUES('54','Viterne','29',721,663,23.17,'4107','53987',250,443);
INSERT INTO "communes" VALUES('54','Baroches','07',373,348,13.28,'3951','54700',192,253);
INSERT INTO "communes" VALUES('54','Vézelise','29',1495,1337,5.35,'4168','53874',245,313);
INSERT INTO "communes" VALUES('54','Champigneulles','34',6920,7167,23.99,'4253','54148',186,364);
INSERT INTO "communes" VALUES('54','Chenicourt','23',222,191,3.75,'4393','54286',187,230);
INSERT INTO "communes" VALUES('54','Bréhain-la-Ville','37',298,227,10.08,'3939','54931',339,441);
INSERT INTO "communes" VALUES('54','Ormes-et-Ville','14',245,178,12.49,'4296','53875',234,333);
INSERT INTO "communes" VALUES('54','Griscourt','12',123,119,3.74,'4085','54259',197,281);
INSERT INTO "communes" VALUES('54','Saint-Rémy-aux-Bois','05',72,66,9.76,'4507','53796',263,341);
INSERT INTO "communes" VALUES('54','Beuvillers','02',349,307,5.95,'3976','54871',332,391);
INSERT INTO "communes" VALUES('54','They-sous-Vaudemont','29',13,11,1.7,'4136','53783',331,489);
INSERT INTO "communes" VALUES('54','Parroy','01',162,198,17.65,'4738','54092',222,303);
INSERT INTO "communes" VALUES('54','Gugney','29',80,54,2.93,'4140','53776',316,520);
INSERT INTO "communes" VALUES('54','Trieux','02',2065,1852,8.62,'4000','54805',245,320);
INSERT INTO "communes" VALUES('54','Aboncourt','10',112,123,6.93,'4034','53731',324,476);
INSERT INTO "communes" VALUES('54','Fréménil','06',203,147,3.04,'4862','53961',240,264);
INSERT INTO "communes" VALUES('54','Virecourt','05',455,454,5.06,'4426','53847',244,336);
INSERT INTO "communes" VALUES('54','Chanteheux','18',2009,1600,5.79,'4660','54000',222,249);
INSERT INTO "communes" VALUES('54','Manonville','12',242,206,9.43,'3972','54256',218,307);
INSERT INTO "communes" VALUES('54','Briey','07',5579,4856,27.13,'4003','54721',174,323);
INSERT INTO "communes" VALUES('54','Bratte','23',39,42,3.28,'4310','54238',260,405);
INSERT INTO "communes" VALUES('54','Moutrot','28',303,246,7.26,'3952','54004',220,272);
INSERT INTO "communes" VALUES('54','Bouzanville','14',67,65,5.82,'4184','53749',284,326);
INSERT INTO "communes" VALUES('54','Lantéfontaine','07',770,685,8.06,'3969','54722',213,261);
INSERT INTO "communes" VALUES('54','Bruley','27',600,586,6.25,'3904','54119',218,386);
INSERT INTO "communes" VALUES('54','Brin-sur-Seille','42',653,577,11.71,'4465','54199',193,263);
INSERT INTO "communes" VALUES('54','Saint-Remimont','14',335,338,6.79,'4348','53887',238,350);
INSERT INTO "communes" VALUES('54','Autrey','29',174,152,6.16,'4215','53925',226,310);
INSERT INTO "communes" VALUES('54','Avril','07',960,579,20.02,'4030','54764',200,332);
INSERT INTO "communes" VALUES('54','Gélacourt','03',161,149,4.78,'4884','53868',258,329);
INSERT INTO "communes" VALUES('54','Bayonville-sur-Mad','26',322,304,9.39,'4059','54461',181,366);
INSERT INTO "communes" VALUES('54','Mamey','12',325,223,7.56,'4025','54309',229,354);
INSERT INTO "communes" VALUES('54','Xermaménil','13',566,423,10.84,'4585','53925',218,293);
INSERT INTO "communes" VALUES('54','Affléville','11',200,196,9.42,'3807','54745',237,286);
INSERT INTO "communes" VALUES('54','Coincourt','01',157,114,7.99,'4750','54111',228,295);
INSERT INTO "communes" VALUES('54','Houdreville','29',436,368,10.37,'4186','53896',233,319);
INSERT INTO "communes" VALUES('54','Blénod-lès-Toul','28',1042,958,17.6,'3885','53999',229,432);
INSERT INTO "communes" VALUES('54','Velaine-sous-Amance','43',278,273,6.48,'4429','54126',222,288);
INSERT INTO "communes" VALUES('54','Neuviller-lès-Badonviller','04',91,80,5.75,'5041','53908',289,341);
INSERT INTO "communes" VALUES('54','Germonville','14',98,104,5.21,'4306','53786',283,382);
INSERT INTO "communes" VALUES('54','Ceintrey','14',824,740,11,'4254','53917',229,376);
INSERT INTO "communes" VALUES('54','Vého','06',119,75,7.74,'4860','53996',247,305);
INSERT INTO "communes" VALUES('54','Crévéchamps','14',334,304,4.86,'4365','53915',235,337);
INSERT INTO "communes" VALUES('54','Heillecourt','38',5774,6183,3.65,'4286','54058',211,260);
INSERT INTO "communes" VALUES('54','Housséville','14',180,156,5.33,'4201','53785',275,320);
INSERT INTO "communes" VALUES('54','Lenoncourt','40',592,433,11.53,'4408','54074',204,275);
INSERT INTO "communes" VALUES('54','Puxieux','08',246,179,5.67,'3946','54530',223,276);
INSERT INTO "communes" VALUES('54','Lunéville','97',19740,20188,16.34,'4628','53988',217,321);
INSERT INTO "communes" VALUES('54','Sponville','08',115,136,7.2,'3885','54525',199,235);
INSERT INTO "communes" VALUES('54','Haroué','14',418,434,4.14,'4268','53854',239,314);
INSERT INTO "communes" VALUES('54','Essey-et-Maizerais','26',391,370,13.02,'3860','54355',213,286);
INSERT INTO "communes" VALUES('54','Clayeures','05',194,153,9.21,'4522','53858',252,351);
INSERT INTO "communes" VALUES('54','Gerbécourt-et-Haplemont','14',223,215,5.26,'4252','53877',234,298);
INSERT INTO "communes" VALUES('54','Villacourt','05',470,457,14.1,'4458','53840',254,359);
INSERT INTO "communes" VALUES('54','Essey-lès-Nancy','35',8450,7302,5.75,'4317','54118',199,363);
INSERT INTO "communes" VALUES('54','Seichamps','43',4981,5473,4.3,'4366','54129',212,275);
INSERT INTO "communes" VALUES('54','Lagney','27',490,413,14.34,'3892','54148',224,300);
INSERT INTO "communes" VALUES('54','Maxéville','34',9561,8973,5.63,'4252','54124',189,365);
INSERT INTO "communes" VALUES('54','Ville-sur-Yron','11',301,293,11.3,'3922','54576',190,252);
INSERT INTO "communes" VALUES('54','Vandœuvre-lès-Nancy','96',30974,32031,9.46,'4257','54062',214,402);
INSERT INTO "communes" VALUES('54','Ognéville','29',122,116,4.12,'4144','53861',253,328);
INSERT INTO "communes" VALUES('54','Crusnes','02',1622,1600,6.06,'3977','54927',350,436);
INSERT INTO "communes" VALUES('54','Tramont-Émy','10',34,47,3.91,'4011','53786',378,470);
INSERT INTO "communes" VALUES('54','Auboué','31',2589,2808,4.54,'4045','54680',177,266);
INSERT INTO "communes" VALUES('54','Reillon','06',60,72,4.39,'4896','53998',247,292);
INSERT INTO "communes" VALUES('54','Jeandelize','11',379,378,6.75,'3836','54625',187,215);
INSERT INTO "communes" VALUES('54','Neuves-Maisons','33',7162,6844,4.44,'4186','54018',217,360);
INSERT INTO "communes" VALUES('54','Grimonviller','10',97,82,4.78,'4078','53762',337,495);
INSERT INTO "communes" VALUES('54','Raon-lès-Leau','04',40,27,1.31,'5286','53904',411,550);
INSERT INTO "communes" VALUES('54','Laneuvelotte','43',408,338,9.13,'4396','54143',214,283);
INSERT INTO "communes" VALUES('54','Charmois','05',157,183,5.41,'4496','53933',230,288);
INSERT INTO "communes" VALUES('54','Dombasle-sur-Meurthe','25',10028,8946,11.21,'4459','54028',203,320);
INSERT INTO "communes" VALUES('54','Affracourt','14',103,113,5.56,'4259','53846',239,327);
INSERT INTO "communes" VALUES('54','Bienville-la-Petite','17',28,27,1.83,'4636','54042',224,280);
INSERT INTO "communes" VALUES('54','Dolcourt','10',92,92,6.19,'4045','53878',283,432);
INSERT INTO "communes" VALUES('54','Autreville-sur-Moselle','24',267,247,4.49,'4199','54248',180,377);
INSERT INTO "communes" VALUES('54','Villette','15',198,212,4.63,'3566','54972',197,352);
INSERT INTO "communes" VALUES('54','Vandelainville','26',144,152,1.36,'4044','54463',182,366);
INSERT INTO "communes" VALUES('54','Hammeville','29',168,149,5.45,'4144','53888',247,317);
INSERT INTO "communes" VALUES('54','Méréville','33',1390,1348,8.43,'4240','53991',218,343);
INSERT INTO "communes" VALUES('54','Brainville','11',160,114,9.92,'3854','54588',189,216);
INSERT INTO "communes" VALUES('54','Toul','99',15693,16851,30.59,'3950','54083',200,400);
INSERT INTO "communes" VALUES('54','Mouacourt','01',87,78,8.5,'4767','54087',223,278);
INSERT INTO "communes" VALUES('54','Vathiménil','13',329,254,12.3,'4763','53898',237,311);
INSERT INTO "communes" VALUES('54','Chavigny','33',1758,1600,6.69,'4208','54033',248,418);
INSERT INTO "communes" VALUES('54','Courbesseaux','17',270,190,6.32,'4510','54099',217,293);
INSERT INTO "communes" VALUES('54','Villers-lès-Nancy','39',14341,15684,9.95,'4242','54081',224,381);
INSERT INTO "communes" VALUES('54','Mousson','24',121,143,5.73,'4158','54339',204,380);
INSERT INTO "communes" VALUES('54','Thumeréville','11',98,86,7.89,'3844','54668',197,233);
INSERT INTO "communes" VALUES('54','Montenoy','23',396,360,3.98,'4326','54217',252,417);
INSERT INTO "communes" VALUES('54','Éply','23',305,247,11.17,'4271','54355',177,238);
INSERT INTO "communes" VALUES('54','Gibeaumeix','10',157,136,7.8,'3773','53980',252,397);
INSERT INTO "communes" VALUES('54','Tronville','08',213,192,7,'3981','54539',245,286);
INSERT INTO "communes" VALUES('54','Andilly','12',289,215,7.12,'3938','54184',213,254);
INSERT INTO "communes" VALUES('54','Villers-en-Haye','12',180,181,7.29,'4084','54253',201,316);
INSERT INTO "communes" VALUES('54','Mars-la-Tour','08',968,853,12.64,'3944','54554',197,263);
INSERT INTO "communes" VALUES('54','Bouvron','27',244,194,10,'3937','54157',209,247);
INSERT INTO "communes" VALUES('54','Saxon-Sion','29',70,80,6.25,'4158','53806',302,528);
INSERT INTO "communes" VALUES('54','Vaudigny','14',56,41,3.94,'4291','53820',239,364);
INSERT INTO "communes" VALUES('54','Quevilloncourt','29',113,86,2.92,'4181','53858',267,327);
INSERT INTO "communes" VALUES('54','Bainville-aux-Miroirs','14',349,316,6.76,'4378','53821',250,366);
INSERT INTO "communes" VALUES('54','Chenevières','18',451,490,4.54,'4771','53910',242,284);
INSERT INTO "communes" VALUES('54','Sexey-les-Bois','27',366,316,6.81,'4092','54129',220,287);
INSERT INTO "communes" VALUES('54','Domprix','02',65,59,7.7,'3802','54812',270,327);
INSERT INTO "communes" VALUES('54','Laneuveville-derrière-Foug','27',136,142,1.13,'3853','54122',267,366);
INSERT INTO "communes" VALUES('54','Azerailles','03',861,819,14,'4842','53876',249,339);
INSERT INTO "communes" VALUES('54','Abaucourt','23',298,310,7.8,'4357','54330',182,235);
INSERT INTO "communes" VALUES('54','Amenoncourt','06',90,96,7.23,'4947','54031',259,350);
INSERT INTO "communes" VALUES('54','Ville-au-Montois','37',267,263,12.33,'3828','54902',260,387);
INSERT INTO "communes" VALUES('54','Ozerailles','11',157,134,6.32,'3893','54701',202,236);
INSERT INTO "communes" VALUES('54','Villers-le-Rond','15',95,74,4.45,'3503','54961',196,316);
INSERT INTO "communes" VALUES('54','Liverdun','12',6003,6393,25.23,'4139','54167',187,340);
INSERT INTO "communes" VALUES('54','Maixe','17',432,394,9.33,'4559','54050',213,314);
INSERT INTO "communes" VALUES('54','Avillers','02',94,79,5.16,'3777','54804',247,312);
INSERT INTO "communes" VALUES('54','Haraucourt','40',703,644,12.48,'4474','54068',211,321);
INSERT INTO "communes" VALUES('54','Tucquegnieux','02',2575,2719,9.16,'3940','54781',228,310);
INSERT INTO "communes" VALUES('54','Mouaville','11',109,58,8.44,'3816','54678',207,265);
INSERT INTO "communes" VALUES('54','Pagny-sur-Moselle','41',4041,4088,11.2,'4094','54426',171,360);
INSERT INTO "communes" VALUES('54','Vandières','41',929,969,12.35,'4111','54394',172,375);
INSERT INTO "communes" VALUES('54','Saizerais','34',1519,1241,14.44,'4119','54212',203,301);
INSERT INTO "communes" VALUES('54','Domjevin','06',243,267,10.28,'4845','53974',237,293);
INSERT INTO "communes" VALUES('54','Bayon','05',1566,1405,6.05,'4421','53861',242,397);
INSERT INTO "communes" VALUES('54','Homécourt','31',6322,6814,4.44,'4062','54692',175,282);
INSERT INTO "communes" VALUES('54','Cosnes-et-Romain','32',2621,2088,16.23,'3750','55022',262,400);
INSERT INTO "communes" VALUES('54','Villers-la-Montagne','37',1449,1323,18.12,'3872','54968',295,423);
INSERT INTO "communes" VALUES('54','Viviers-sur-Chiers','15',668,608,16.24,'3663','54970',211,382);
INSERT INTO "communes" VALUES('54','Forcelles-Saint-Gorgon','29',147,143,5.36,'4183','53841',288,338);
INSERT INTO "communes" VALUES('54','Ville-en-Vermois','25',595,606,10.53,'4353','54016',208,288);
INSERT INTO "communes" VALUES('54','Gye','28',195,187,6.51,'3932','54022',214,252);
INSERT INTO "communes" VALUES('54','Lamath','13',184,182,5.6,'4570','53922',220,280);
INSERT INTO "communes" VALUES('54','Colombey-les-Belles','10',1378,1283,17.59,'3956','53920',282,406);
INSERT INTO "communes" VALUES('54','Fécocourt','10',115,102,7.86,'4080','53783',305,499);
INSERT INTO "communes" VALUES('54','Courcelles','10',107,101,4.31,'4112','53748',312,400);
INSERT INTO "communes" VALUES('54','Valleroy','31',2453,2296,12.26,'3999','54680',181,252);
INSERT INTO "communes" VALUES('54','Vacqueville','03',256,240,9.96,'4975','53868',264,386);
INSERT INTO "communes" VALUES('54','Pagney-derrière-Barine','27',571,565,6.13,'3897','54104',219,377);
INSERT INTO "communes" VALUES('54','Malleloy','23',926,877,4.06,'4251','54217',203,393);
INSERT INTO "communes" VALUES('54','Pierre-Percée','04',103,95,9.93,'5106','53854',301,570);
INSERT INTO "communes" VALUES('54','Gellenoncourt','40',67,35,3.61,'4500','54086',217,269);
INSERT INTO "communes" VALUES('54','Coyviller','25',138,130,4.53,'4384','53986',235,351);
INSERT INTO "communes" VALUES('54','Audun-le-Roman','02',2467,2058,7.57,'3955','54856',320,396);
INSERT INTO "communes" VALUES('54','Laxou','39',14812,15286,15.94,'4239','54095',213,371);
INSERT INTO "communes" VALUES('54','Hénaménil','18',169,191,14.21,'4691','54079',218,302);
INSERT INTO "communes" VALUES('54','Haussonville','05',321,282,11.18,'4432','53921',237,356);
INSERT INTO "communes" VALUES('54','Bezange-la-Grande','01',169,182,17.24,'4597','54162',203,311);
INSERT INTO "communes" VALUES('54','Han-devant-Pierrepont','15',133,115,4.96,'3745','54886',234,323);
INSERT INTO "communes" VALUES('54','Art-sur-Meurthe','40',1292,1109,11.47,'4365','54062',195,268);
INSERT INTO "communes" VALUES('54','Fraimbois','13',346,279,15.02,'4672','53922',231,293);
INSERT INTO "communes" VALUES('54','Mercy-le-Haut','02',247,274,13.35,'3877','54853',298,377);
INSERT INTO "communes" VALUES('54','Buriville','06',71,40,11.44,'4857','53932',249,326);
INSERT INTO "communes" VALUES('55','Rigny-Saint-Martin','24',58,60,16.11,'3753','54012',247,421);
INSERT INTO "communes" VALUES('55','Montfaucon-d''Argonne','12',362,317,23.61,'3106','54746',198,338);
INSERT INTO "communes" VALUES('55','Vassincourt','16',284,265,7.94,'2992','54226',141,193);
INSERT INTO "communes" VALUES('55','Saulmory-et-Villefranche','07',107,102,6.85,'3155','54927',167,200);
INSERT INTO "communes" VALUES('55','Saint-Julien-sous-les-Côtes','05',127,139,4.95,'3641','54242',239,373);
INSERT INTO "communes" VALUES('55','Apremont-la-Forêt','17',402,336,32.89,'3669','54284',231,383);
INSERT INTO "communes" VALUES('55','Éton','19',214,189,11.11,'3714','54750',225,260);
INSERT INTO "communes" VALUES('55','Sorcy-Saint-Martin','28',1005,953,21.72,'3663','54124',231,364);
INSERT INTO "communes" VALUES('55','Gussainville','08',34,19,10.48,'3714','54634',190,218);
INSERT INTO "communes" VALUES('55','Han-lès-Juvigny','14',105,80,5.44,'3328','54979',177,308);
INSERT INTO "communes" VALUES('55','Dun-sur-Meuse','07',720,752,6.41,'3163','54873',170,282);
INSERT INTO "communes" VALUES('55','Vigneul-sous-Montmédy','14',99,89,4.63,'3327','55009',176,290);
INSERT INTO "communes" VALUES('55','Regnéville-sur-Meuse','12',45,36,3.81,'3321','54726',180,255);
INSERT INTO "communes" VALUES('55','Baudonvilliers','01',417,461,3.07,'2978','54098',172,217);
INSERT INTO "communes" VALUES('55','Raival','25',269,224,19.22,'3257','54301',241,337);
INSERT INTO "communes" VALUES('55','Harville','09',111,114,5.54,'3768','54554',200,226);
INSERT INTO "communes" VALUES('55','Loupmont','17',86,88,10.33,'3708','54301',233,383);
INSERT INTO "communes" VALUES('55','Taillancourt','24',148,121,11.09,'3731','53923',257,422);
INSERT INTO "communes" VALUES('55','Levoncourt','15',53,41,7.8,'3350','54248',277,369);
INSERT INTO "communes" VALUES('55','Couvertpuis','13',88,90,8.87,'3295','53980',257,344);
INSERT INTO "communes" VALUES('55','Grimaucourt-près-Sampigny','05',102,91,9.27,'3480','54214',236,368);
INSERT INTO "communes" VALUES('55','Mandres-en-Barrois','13',128,148,17.71,'3393','53880',318,400);
INSERT INTO "communes" VALUES('55','Pillon','19',234,193,15.41,'3599','54862',217,270);
INSERT INTO "communes" VALUES('55','Juvigny-sur-Loison','14',265,251,16.42,'3338','54963',178,301);
INSERT INTO "communes" VALUES('55','Gremilly','06',26,31,17.81,'3489','54752',208,303);
INSERT INTO "communes" VALUES('55','Chauvoncourt','17',483,460,10.04,'3541','54335',214,349);
INSERT INTO "communes" VALUES('55','<NAME>','13',236,219,5.42,'3215','54019',232,286);
INSERT INTO "communes" VALUES('55','Nançois-le-Grand','05',59,60,9.25,'3384','54130',255,387);
INSERT INTO "communes" VALUES('55','Rouvrois-sur-Meuse','17',184,179,6.13,'3535','54384',211,291);
INSERT INTO "communes" VALUES('55','Behonne','25',670,772,9.17,'3161','54215',190,303);
INSERT INTO "communes" VALUES('55','Buxières-sous-les-Côtes','27',276,277,26.72,'3706','54351',226,398);
INSERT INTO "communes" VALUES('55','Bantheville','12',131,140,14.28,'3058','54838',194,277);
INSERT INTO "communes" VALUES('55','Kœur-la-Grande','15',171,158,12.32,'3495','54287',217,355);
INSERT INTO "communes" VALUES('55','Brieulles-sur-Meuse','07',331,324,24.05,'3161','54818',174,298);
INSERT INTO "communes" VALUES('55','Houdelaincourt','10',361,345,16.07,'3485','53943',277,402);
INSERT INTO "communes" VALUES('55','Ville-devant-Chaumont','06',56,59,4.21,'3434','54771',229,323);
INSERT INTO "communes" VALUES('55','Amanty','10',45,47,11.17,'3639','53909',295,426);
INSERT INTO "communes" VALUES('55','Saulx-lès-Champlon','09',133,124,7.81,'3686','54524',211,238);
INSERT INTO "communes" VALUES('55','Écouviez','14',522,501,4.3,'3470','55030',187,340);
INSERT INTO "communes" VALUES('55','Robert-Espagne','29',824,835,7.33,'2995','54160',155,233);
INSERT INTO "communes" VALUES('55','Boncourt-sur-Meuse','05',315,345,10.84,'3595','54225',225,379);
INSERT INTO "communes" VALUES('55','Laneuville-au-Rupt','28',188,146,13.23,'3611','54116',238,362);
INSERT INTO "communes" VALUES('55','Beausite','21',280,279,25.41,'3173','54409',219,336);
INSERT INTO "communes" VALUES('55','Iré-le-Sec','14',160,132,8.31,'3390','54974',220,331);
INSERT INTO "communes" VALUES('55','Érize-la-Petite','23',68,63,7.18,'3228','54354',234,326);
INSERT INTO "communes" VALUES('55','<NAME>','04',78,74,0.92,'2939','54591',153,216);
INSERT INTO "communes" VALUES('55','Rambucourt','17',190,129,14.86,'3802','54271',224,274);
INSERT INTO "communes" VALUES('55','Velaines','11',923,980,10.71,'3294','54115',213,364);
INSERT INTO "communes" VALUES('55','Bouconville-sur-Madt','17',105,84,6.98,'3757','54270',225,246);
INSERT INTO "communes" VALUES('55','Dieue-sur-Meuse','26',1398,1417,15.78,'3428','54523',199,361);
INSERT INTO "communes" VALUES('55','Rumont','25',97,87,6.31,'3267','54258',294,366);
INSERT INTO "communes" VALUES('55','Lissey','06',135,135,9.97,'3345','54858',191,386);
INSERT INTO "communes" VALUES('55','Cléry-le-Petit','07',191,205,4.58,'3159','54853',172,273);
INSERT INTO "communes" VALUES('55','Samogneux','03',76,41,6.16,'3335','54728',181,318);
INSERT INTO "communes" VALUES('55','Haironville','01',615,572,9.79,'3053','54096',172,254);
INSERT INTO "communes" VALUES('55','Hévilliers','13',134,142,10.6,'3328','54002',270,346);
INSERT INTO "communes" VALUES('55','Chattancourt','03',168,180,10.36,'3257','54686',185,283);
INSERT INTO "communes" VALUES('55','Champougny','24',107,80,5.91,'3731','53938',254,383);
INSERT INTO "communes" VALUES('55','Velosnes','14',159,146,4.37,'3465','55007',184,315);
INSERT INTO "communes" VALUES('55','Gondrecourt-le-Château','10',1198,1378,51.33,'3523','53904',287,428);
INSERT INTO "communes" VALUES('55','Badonvilliers-Gérauvilliers','10',140,131,21.03,'3610','53944',309,401);
INSERT INTO "communes" VALUES('55','Chassey-Beaupré','10',119,138,14.11,'3440','53843',315,413);
INSERT INTO "communes" VALUES('55','Julvécourt','18',68,77,8.7,'3171','54515',230,297);
INSERT INTO "communes" VALUES('55','Baudignécourt','10',77,97,6.28,'3472','53967',273,393);
INSERT INTO "communes" VALUES('55','Laimont','16',451,439,10.77,'3007','54261',147,195);
INSERT INTO "communes" VALUES('55','Nixéville-Blercourt','18',448,422,19.54,'3264','54567',220,347);
INSERT INTO "communes" VALUES('55','Géry','25',58,65,4.8,'3287','54201',260,376);
INSERT INTO "communes" VALUES('55','Moulainville','08',147,103,11.15,'3510','54625',225,373);
INSERT INTO "communes" VALUES('55','Champneuville','03',118,105,11.99,'3322','54708',181,337);
INSERT INTO "communes" VALUES('55','Moulotte','09',118,78,5.53,'3781','54557',197,221);
INSERT INTO "communes" VALUES('55','Vallée','15',96,82,12.58,'3341','54238',291,383);
INSERT INTO "communes" VALUES('55','Herméville-en-Woëvre','08',236,231,14.64,'3618','54643',199,223);
INSERT INTO "communes" VALUES('55','Osches','18',51,44,9.14,'3241','54496',266,336);
INSERT INTO "communes" VALUES('55','Heudicourt-sous-les-Côtes','27',182,188,13.56,'3735','54369',226,386);
INSERT INTO "communes" VALUES('55','Buzy-Darmont','08',568,558,12.38,'3749','54633',190,226);
INSERT INTO "communes" VALUES('55','Ambly-sur-Meuse','26',248,255,6.34,'3451','54466',204,273);
INSERT INTO "communes" VALUES('55','<NAME>','04',54,72,7.32,'2929','54603',147,270);
INSERT INTO "communes" VALUES('55','Bonzée','09',364,350,21.14,'3618','54552',228,391);
INSERT INTO "communes" VALUES('55','Stainville','01',409,376,20.87,'3165','54060',197,321);
INSERT INTO "communes" VALUES('55','Trémont-sur-Saulx','29',649,610,11.9,'3021','54165',157,248);
INSERT INTO "communes" VALUES('55','Verneuil-Petit','14',136,80,3.99,'3420','55048',200,350);
INSERT INTO "communes" VALUES('55','Remoiville','14',152,151,9.7,'3360','54937',187,280);
INSERT INTO "communes" VALUES('55','Naives-en-Blois','28',166,116,15.7,'3568','54068',262,383);
INSERT INTO "communes" VALUES('55','Cumières-le-Mort-Homme','03',0,0,6.11,'3271','54703',185,287);
INSERT INTO "communes" VALUES('55','Sommelonne','01',493,479,10.22,'3001','54079',165,230);
INSERT INTO "communes" VALUES('55','Consenvoye','12',288,286,15.85,'3277','54764',179,382);
INSERT INTO "communes" VALUES('55','Fouchères-aux-Bois','13',143,135,5.57,'3234','54026',240,322);
INSERT INTO "communes" VALUES('55','Rupt-sur-Othain','06',56,48,5.53,'3507','54911',207,281);
INSERT INTO "communes" VALUES('55','Ancerville','01',2770,2725,21.58,'2981','54040',147,251);
INSERT INTO "communes" VALUES('55','Arrancy-sur-Crusne','19',479,321,20.16,'3691','54904',216,309);
INSERT INTO "communes" VALUES('55','Chardogne','25',296,284,12.82,'3099','54249',179,273);
INSERT INTO "communes" VALUES('55','Ippécourt','21',97,93,10.62,'3194','54484',244,306);
INSERT INTO "communes" VALUES('55','Troyon','17',245,212,13.07,'3475','54448',206,319);
INSERT INTO "communes" VALUES('55','Sampigny','15',735,786,20.53,'3527','54250',221,350);
INSERT INTO "communes" VALUES('55','Latour-en-Woëvre','09',74,65,6.74,'3865','54542',196,219);
INSERT INTO "communes" VALUES('55','Réville-aux-Bois','06',122,127,11.03,'3356','54830',209,378);
INSERT INTO "communes" VALUES('55','Baudrémont','15',54,50,6.81,'3390','54266',268,352);
INSERT INTO "communes" VALUES('55','Rouvrois-sur-Othain','19',200,190,12.22,'3661','54865',218,301);
INSERT INTO "communes" VALUES('55','Louppy-le-Château','23',164,171,18.76,'3044','54297',163,232);
INSERT INTO "communes" VALUES('55','Cléry-le-Grand','07',78,70,7.18,'3132','54848',179,298);
INSERT INTO "communes" VALUES('55','Boureuilles','22',126,118,21.33,'3007','54663',138,283);
INSERT INTO "communes" VALUES('55','Merles-sur-Loison','06',166,143,11.45,'3493','54865',197,223);
INSERT INTO "communes" VALUES('55','Thillombois','15',37,35,13.03,'3404','54396',234,352);
INSERT INTO "communes" VALUES('55','Resson','25',411,416,8.4,'3214','54188',209,341);
INSERT INTO "communes" VALUES('55','Brizeaux','21',50,53,8.33,'3023','54451',159,250);
INSERT INTO "communes" VALUES('55','Bazeilles-sur-Othain','14',108,91,7.66,'3435','54996',187,337);
INSERT INTO "communes" VALUES('55','Saulvaux','28',123,115,22.42,'3491','54121',270,402);
INSERT INTO "communes" VALUES('55','Loison','19',99,80,14.18,'3640','54790',209,253);
INSERT INTO "communes" VALUES('55','Nantois','11',93,109,6.05,'3350','54042',234,342);
INSERT INTO "communes" VALUES('55','Seuzey','27',88,87,4.61,'3579','54430',234,340);
INSERT INTO "communes" VALUES('55','Monthairons','18',381,387,12.22,'3416','54500',201,319);
INSERT INTO "communes" VALUES('55','Pretz-en-Argonne','21',66,54,9.89,'3122','54396',207,257);
INSERT INTO "communes" VALUES('55','Lachalade','22',61,56,19.45,'2914','54630',137,273);
INSERT INTO "communes" VALUES('55','Neuville-lès-Vaucouleurs','24',189,145,8.35,'3707','53975',250,386);
INSERT INTO "communes" VALUES('55','Villécloye','14',243,225,7.18,'3401','55012',182,319);
INSERT INTO "communes" VALUES('55','Vadelaincourt','18',66,59,5.44,'3252','54524',248,325);
INSERT INTO "communes" VALUES('55','Doulcon','07',448,451,8.57,'3148','54868',171,305);
INSERT INTO "communes" VALUES('55','Ménil-la-Horgne','28',158,133,16.56,'3546','54115',260,412);
INSERT INTO "communes" VALUES('55','Ville-en-Woëvre','09',134,158,14.18,'3656','54589',202,246);
INSERT INTO "communes" VALUES('55','Fains-Véel','02',2255,2292,18.3,'3099','54211',170,272);
INSERT INTO "communes" VALUES('55','Senon','19',311,228,19.89,'3672','54754',206,260);
INSERT INTO "communes" VALUES('55','Maucourt-sur-Orne','08',60,44,6.43,'3525','54721',212,253);
INSERT INTO "communes" VALUES('55','Louppy-sur-Loison','14',122,122,14.36,'3346','54938',182,275);
INSERT INTO "communes" VALUES('55','Amel-sur-l''Étang','19',175,150,14.74,'3680','54741',205,256);
INSERT INTO "communes" VALUES('55','Braquis','08',94,85,4.95,'3656','54617',199,222);
INSERT INTO "communes" VALUES('55','Verdun','93',18513,19624,31.03,'3385','54622',194,330);
INSERT INTO "communes" VALUES('55','Lanhères','08',65,63,4.6,'3752','54673',200,240);
INSERT INTO "communes" VALUES('55','Vouthon-Haut','10',72,81,13.23,'3645','53863',308,441);
INSERT INTO "communes" VALUES('55','Landrecourt-Lempire','18',193,176,14.63,'3347','54560',209,326);
INSERT INTO "communes" VALUES('55','Lahayville','17',31,23,3.96,'3828','54320',222,246);
INSERT INTO "communes" VALUES('55','Pareid','09',119,79,7.02,'3754','54576',197,225);
INSERT INTO "communes" VALUES('55','Commercy','05',6340,6322,35.37,'3617','54183',225,382);
INSERT INTO "communes" VALUES('55','Belrain','15',45,31,8.31,'3300','54293',258,352);
INSERT INTO "communes" VALUES('55','Béthincourt','03',29,36,13.32,'3216','54725',193,282);
INSERT INTO "communes" VALUES('55','Burey-en-Vaux','24',142,114,6.47,'3703','53959',251,396);
INSERT INTO "communes" VALUES('55','Septsarges','12',50,61,8.86,'3145','54756',208,304);
INSERT INTO "communes" VALUES('55','Ribeaucourt','13',108,92,12.54,'3353','53938',292,387);
INSERT INTO "communes" VALUES('55','Maizey','17',180,175,14.91,'3528','54361',212,393);
INSERT INTO "communes" VALUES('55','Bovée-sur-Barboure','28',132,121,13.37,'3528','54049',294,393);
INSERT INTO "communes" VALUES('55','Fresnes-au-Mont','15',149,93,15.89,'3450','54330',230,355);
INSERT INTO "communes" VALUES('55','Boinville-en-Woëvre','08',70,66,5.65,'3706','54650',194,221);
INSERT INTO "communes" VALUES('55','Lisle-en-Barrois','23',33,50,28.94,'3099','54329',154,257);
INSERT INTO "communes" VALUES('55','Tilly-sur-Meuse','18',275,222,13.69,'3448','54451',204,352);
INSERT INTO "communes" VALUES('55','Cousances-lès-Triconville','05',144,122,18.27,'3389','54183',263,382);
INSERT INTO "communes" VALUES('55','Ménil-aux-Bois','15',42,40,6.71,'3453','54228',256,357);
INSERT INTO "communes" VALUES('55','Rembercourt-Sommaisne','23',325,313,22.32,'3158','54345',223,307);
INSERT INTO "communes" VALUES('55','Mont-devant-Sassey','07',120,125,8.22,'3145','54901',170,319);
INSERT INTO "communes" VALUES('55','Muzeray','19',129,87,8.24,'3652','54821',222,273);
INSERT INTO "communes" VALUES('55','Stenay','20',2779,2966,27.16,'3166','54989',163,303);
INSERT INTO "communes" VALUES('55','Lachaussée','27',263,256,27.19,'3869','54486',203,238);
INSERT INTO "communes" VALUES('55','Ville-devant-Belrain','15',28,23,6.12,'3335','54300',252,331);
INSERT INTO "communes" VALUES('55','Bure','13',91,85,18.39,'3356','53894',298,399);
INSERT INTO "communes" VALUES('55','Montigny-lès-Vaucouleurs','24',76,76,11.83,'3661','53986',280,381);
INSERT INTO "communes" VALUES('55','Fleury-devant-Douaumont','03',0,0,10.27,'3442','54661',227,390);
INSERT INTO "communes" VALUES('55','Mécrin','05',238,228,10.19,'3551','54250',222,358);
INSERT INTO "communes" VALUES('55','Horville-en-Ornois','10',65,51,7.62,'3478','53879',301,390);
INSERT INTO "communes" VALUES('55','Manheulles','09',153,146,10.45,'3623','54569',210,257);
INSERT INTO "communes" VALUES('55','Vaucouleurs','24',2054,2293,39.35,'3698','54002',242,372);
INSERT INTO "communes" VALUES('55','Méligny-le-Petit','28',74,58,8.39,'3477','54066',276,397);
INSERT INTO "communes" VALUES('55','Vaubecourt','23',322,261,22.62,'3084','54372',169,263);
INSERT INTO "communes" VALUES('55','Azannes-et-Soumazannes','06',159,170,18.11,'3478','54768',208,354);
INSERT INTO "communes" VALUES('55','Froidos','04',92,85,8.74,'3096','54512',195,295);
INSERT INTO "communes" VALUES('55','Grimaucourt-en-Woëvre','08',106,67,5.69,'3577','54638',211,229);
INSERT INTO "communes" VALUES('55','Doncourt-aux-Templiers','09',73,68,6.18,'3756','54509',206,225);
INSERT INTO "communes" VALUES('55','Romagne-sous-Montfaucon','12',191,165,15.7,'3051','54813',195,287);
INSERT INTO "communes" VALUES('55','Villotte-sur-Aire','15',178,209,13.96,'3339','54288',257,362);
INSERT INTO "communes" VALUES('55','Haumont-près-Samogneux','03',0,0,10.81,'3351','54748',194,355);
INSERT INTO "communes" VALUES('55','Han-sur-Meuse','17',269,248,17.22,'3558','54296',219,374);
INSERT INTO "communes" VALUES('55','Baulny','22',15,22,3.91,'2975','54736',140,221);
INSERT INTO "communes" VALUES('55','Bras-sur-Meuse','03',705,549,13.69,'3378','54678',189,360);
INSERT INTO "communes" VALUES('55','Futeau','04',162,153,1.73,'2962','54531',165,211);
INSERT INTO "communes" VALUES('55','Montplonne','01',164,161,20.68,'3150','54101',198,335);
INSERT INTO "communes" VALUES('55','Rarécourt','04',223,206,15.41,'3097','54530',191,302);
INSERT INTO "communes" VALUES('55','Génicourt-sur-Meuse','26',275,233,7.99,'3445','54484',203,360);
INSERT INTO "communes" VALUES('55','Woël','09',173,208,13.21,'3770','54488',207,237);
INSERT INTO "communes" VALUES('55','Thillot','09',256,158,3.65,'3702','54474',226,402);
INSERT INTO "communes" VALUES('55','Romagne-sous-les-Côtes','06',112,102,14.19,'3482','54804',206,361);
INSERT INTO "communes" VALUES('55','Beney-en-Woëvre','27',155,133,17.2,'3877','54402',218,267);
INSERT INTO "communes" VALUES('55','Autrécourt-sur-Aire','21',130,110,10.85,'3113','54484',202,281);
INSERT INTO "communes" VALUES('55','Villers-sur-Meuse','18',263,206,7.3,'3424','54466',202,321);
INSERT INTO "communes" VALUES('55','Eix','08',248,223,12.06,'3512','54644',228,366);
INSERT INTO "communes" VALUES('55','Ville-sur-Saulx','01',308,305,4.07,'3025','54126',172,242);
INSERT INTO "communes" VALUES('55','Richecourt','17',66,43,6.23,'3805','54311',223,243);
INSERT INTO "communes" VALUES('55','Mauvages','10',271,236,21.11,'3575','53994',275,402);
INSERT INTO "communes" VALUES('55','Pierrefitte-sur-Aire','15',271,266,17.56,'3326','54332',247,347);
INSERT INTO "communes" VALUES('55','Brauvilliers','13',172,150,9.26,'3126','53978',219,318);
INSERT INTO "communes" VALUES('55','Rupt-devant-Saint-Mihiel','15',52,53,6.32,'3410','54314',257,347);
INSERT INTO "communes" VALUES('55','Villers-aux-Vents','16',137,105,6.14,'2977','54285',150,193);
INSERT INTO "communes" VALUES('55','Belleville-sur-Meuse','03',3203,3137,10.16,'3382','54640',191,376);
INSERT INTO "communes" VALUES('55','Moirey-Flabas-Crépion','06',133,113,14.62,'3407','54785',211,362);
INSERT INTO "communes" VALUES('55','Naives-Rosières','25',824,887,15.93,'3199','54217',205,347);
INSERT INTO "communes" VALUES('55','Fontaines-Saint-Clair','07',51,41,6.23,'3221','54854',195,343);
INSERT INTO "communes" VALUES('55','Martincourt-sur-Meuse','20',65,63,5.96,'3151','55037',162,316);
INSERT INTO "communes" VALUES('55','Blanzée','08',20,18,3.39,'3557','54622',220,259);
INSERT INTO "communes" VALUES('55','Broussey-en-Blois','28',59,62,11.04,'3569','54043',266,416);
INSERT INTO "communes" VALUES('55','Pintheville','09',93,50,5.18,'3699','54567',200,231);
INSERT INTO "communes" VALUES('55','Wiseppe','20',115,97,5.69,'3152','54952',166,208);
INSERT INTO "communes" VALUES('55','Marre','03',165,152,10.2,'3295','54679',184,310);
INSERT INTO "communes" VALUES('55','Contrisson','16',745,686,11.82,'2910','54225',130,181);
INSERT INTO "communes" VALUES('55','Dommary-Baroncourt','19',824,714,12.49,'3741','54762',235,291);
INSERT INTO "communes" VALUES('55','Montigny-devant-Sassey','07',133,181,9.72,'3128','54925',178,322);
INSERT INTO "communes" VALUES('55','Saint-Jean-lès-Buzy','08',322,239,10.34,'3769','54629',190,231);
INSERT INTO "communes" VALUES('55','Villers-lès-Mangiennes','19',77,78,8.23,'3520','54859',199,258);
INSERT INTO "communes" VALUES('55','Liny-devant-Dun','07',190,181,10.9,'3179','54839',172,282);
INSERT INTO "communes" VALUES('55','Euville','05',1707,1419,29.76,'3655','54165',226,366);
INSERT INTO "communes" VALUES('55','Étraye','06',43,55,7.99,'3372','54815',216,373);
INSERT INTO "communes" VALUES('55','Sassey-sur-Meuse','07',108,99,4.33,'3169','54904',169,297);
INSERT INTO "communes" VALUES('55','Saudrupt','01',202,202,7.78,'3034','54111',172,246);
INSERT INTO "communes" VALUES('55','Esnes-en-Argonne','22',130,113,14.76,'3194','54675',205,311);
INSERT INTO "communes" VALUES('55','Épinonville','12',77,76,14.06,'3048','54752',178,272);
INSERT INTO "communes" VALUES('55','Abainville','10',298,318,13.67,'3509','53924',282,388);
INSERT INTO "communes" VALUES('55','Bezonvaux','03',0,0,9.23,'3479','54708',226,367);
INSERT INTO "communes" VALUES('55','Lion-devant-Dun','07',173,152,15.51,'3214','54901',171,340);
INSERT INTO "communes" VALUES('55','Warcq','08',215,144,4.99,'3684','54659',195,220);
INSERT INTO "communes" VALUES('55','Trésauvaux','09',86,65,3.95,'3633','54531',224,368);
INSERT INTO "communes" VALUES('55','Maxey-sur-Vaise','24',306,328,10.9,'3700','53932',252,409);
INSERT INTO "communes" VALUES('55','Saint-Aubin-sur-Aire','05',171,156,14.17,'3451','54118',273,392);
INSERT INTO "communes" VALUES('55','Maizeray','09',35,34,3.87,'3738','54558',208,225);
INSERT INTO "communes" VALUES('55','Geville','05',602,488,33.1,'3730','54190',233,400);
INSERT INTO "communes" VALUES('55','Biencourt-sur-Orge','13',134,165,12.38,'3346','53959',276,369);
INSERT INTO "communes" VALUES('55','Rupt-aux-Nonains','01',363,353,20.4,'3086','54079',173,271);
INSERT INTO "communes" VALUES('55','Épiez-sur-Meuse','24',34,43,8.19,'3670','53939',274,410);
INSERT INTO "communes" VALUES('55','Remennecourt','16',64,70,2.74,'2870','54224',124,133);
INSERT INTO "communes" VALUES('55','Ranzières','17',70,70,14.09,'3507','54465',215,360);
INSERT INTO "communes" VALUES('55','Saint-Germain-sur-Meuse','24',265,241,7.67,'3726','54055',240,395);
INSERT INTO "communes" VALUES('55','Montzéville','03',171,165,17.65,'3205','54657',209,322);
INSERT INTO "communes" VALUES('55','Void-Vacon','28',1668,1574,35.58,'3646','54098',231,374);
INSERT INTO "communes" VALUES('55','Thonnelle','14',152,139,6.09,'3362','55058',187,326);
INSERT INTO "communes" VALUES('55','Mangiennes','19',396,351,18.21,'3546','54839',200,263);
INSERT INTO "communes" VALUES('55','Saint-Joire','10',245,278,18.32,'3422','53997',257,385);
INSERT INTO "communes" VALUES('55','Guerpont','11',253,300,6.12,'3244','54145',200,352);
INSERT INTO "communes" VALUES('55','Jonville-en-Woëvre','27',141,119,10.81,'3833','54519',201,231);
INSERT INTO "communes" VALUES('55','Hennemont','09',129,132,10.82,'3699','54593',195,236);
INSERT INTO "communes" VALUES('55','Èvres','21',86,94,11.65,'3097','54425',186,246);
INSERT INTO "communes" VALUES('55','Juvigny-en-Perthois','01',134,143,6.36,'3131','53998',232,297);
INSERT INTO "communes" VALUES('55','Cesse','20',130,128,5.3,'3135','55014',163,217);
INSERT INTO "communes" VALUES('55','Lamorville','27',284,292,34.93,'3602','54399',222,408);
INSERT INTO "communes" VALUES('55','Rouvres-en-Woëvre','08',771,414,16.74,'3725','54688',203,259);
INSERT INTO "communes" VALUES('55','Rambluzin-et-Benoite-Vaux','18',87,99,18.42,'3332','54442',227,337);
INSERT INTO "communes" VALUES('55','Nubécourt','21',277,281,27.52,'3154','54443',207,297);
INSERT INTO "communes" VALUES('55','Avillers-Sainte-Croix','09',63,70,5.5,'3737','54480',212,239);
INSERT INTO "communes" VALUES('55','Belrupt-en-Verdunois','26',481,467,9.4,'3450','54602',220,371);
INSERT INTO "communes" VALUES('55','Breux','14',267,178,12.99,'3393','55093',203,321);
INSERT INTO "communes" VALUES('55','Haudainville','26',962,879,11.1,'3429','54585',196,363);
INSERT INTO "communes" VALUES('55','Riaville','09',45,44,3.36,'3702','54558',215,229);
INSERT INTO "communes" VALUES('55','Montbras','24',26,26,5.4,'3730','53920',257,330);
INSERT INTO "communes" VALUES('55','Lacroix-sur-Meuse','17',715,599,21.15,'3528','54415',210,359);
INSERT INTO "communes" VALUES('55','Laheycourt','23',384,373,18,'2985','54323',156,204);
INSERT INTO "communes" VALUES('55','Béthelainville','03',191,177,11.94,'3220','54630',232,343);
INSERT INTO "communes" VALUES('55','Ancemont','18',599,587,13.3,'3411','54523',199,330);
INSERT INTO "communes" VALUES('55','Neuvilly-en-Argonne','04',210,198,18.32,'3025','54624',147,288);
INSERT INTO "communes" VALUES('55','Vaux-devant-Damloup','03',70,65,6.56,'3484','54679',244,361);
INSERT INTO "communes" VALUES('55','Pagny-sur-Meuse','28',992,906,18.81,'3757','54097',235,374);
INSERT INTO "communes" VALUES('55','Bonnet','10',215,198,29.06,'3445','53914',292,408);
INSERT INTO "communes" VALUES('55','Mouzay','20',741,756,35.73,'3200','54958',164,277);
INSERT INTO "communes" VALUES('55','Vouthon-Bas','10',62,72,7.22,'3635','53870',305,427);
INSERT INTO "communes" VALUES('55','Chaillon','27',96,106,11.54,'3670','54386',239,393);
INSERT INTO "communes" VALUES('55','Sommedieue','26',935,980,33.63,'3474','54539',215,392);
INSERT INTO "communes" VALUES('55','Érize-la-Brûlée','25',178,193,10.82,'3274','54278',278,363);
INSERT INTO "communes" VALUES('55','Érize-Saint-Dizier','25',197,179,12.49,'3275','54236',290,371);
INSERT INTO "communes" VALUES('55','Brabant-le-Roi','16',237,235,11.08,'2940','54273',137,187);
INSERT INTO "communes" VALUES('55','Thonne-le-Thil','14',282,256,11.38,'3347','55079',197,361);
INSERT INTO "communes" VALUES('55','Montblainville','22',66,63,12.06,'2973','54720',140,256);
INSERT INTO "communes" VALUES('55','Goussaincourt','24',114,104,10.33,'3725','53872',263,411);
INSERT INTO "communes" VALUES('55','Rancourt-sur-Ornain','16',210,213,9.99,'2864','54251',124,138);
INSERT INTO "communes" VALUES('55','Parfondrupt','08',52,52,8.53,'3768','54619',191,230);
INSERT INTO "communes" VALUES('55','Saint-Pierrevillers','19',160,140,11.12,'3719','54864',242,315);
INSERT INTO "communes" VALUES('55','Troussey','28',420,318,17.23,'3739','54114',235,350);
INSERT INTO "communes" VALUES('55','Watronville','09',109,103,6.39,'3561','54597',215,363);
INSERT INTO "communes" VALUES('55','Baâlon','20',263,267,14.76,'3226','54987',186,278);
INSERT INTO "communes" VALUES('55','Louvemont-Côte-du-Poivre','03',0,0,8.25,'3402','54709',214,375);
INSERT INTO "communes" VALUES('55','Halles-sous-les-Côtes','20',153,123,5.51,'3093','54944',174,317);
INSERT INTO "communes" VALUES('55','Tannois','11',397,424,13.34,'3215','54140',194,354);
INSERT INTO "communes" VALUES('55','Givrauval','11',326,276,9.69,'3320','54068',224,359);
INSERT INTO "communes" VALUES('55','Ménil-sur-Saulx','13',271,214,12.03,'3201','54031',214,291);
INSERT INTO "communes" VALUES('55','Foameix-Ornel','08',195,193,11.07,'3633','54704',200,223);
INSERT INTO "communes" VALUES('55','Morley','13',202,202,24.75,'3234','53976',238,342);
INSERT INTO "communes" VALUES('55','Gesnes-en-Argonne','12',48,52,7.06,'3026','54785',165,254);
INSERT INTO "communes" VALUES('55','Courcelles-en-Barrois','15',32,38,7.27,'3450','54250',268,357);
INSERT INTO "communes" VALUES('55','Varnéville','17',53,65,6.44,'3687','54302',235,382);
INSERT INTO "communes" VALUES('55','Beauclair','20',83,85,4.84,'3087','54953',174,308);
INSERT INTO "communes" VALUES('55','Bréhéville','06',182,206,18.33,'3325','54869',192,387);
INSERT INTO "communes" VALUES('55','Beaufort-en-Argonne','20',153,170,11.09,'3085','54969',175,245);
INSERT INTO "communes" VALUES('55','Lamouilly','20',105,97,4.76,'3219','55053',167,281);
INSERT INTO "communes" VALUES('55','Foucaucourt-sur-Thabas','21',56,64,9.92,'3071','54443',175,231);
INSERT INTO "communes" VALUES('55','Inor','20',204,204,6.46,'3140','55052',161,326);
INSERT INTO "communes" VALUES('55','Nepvant','20',58,64,5.15,'3207','55043',167,283);
INSERT INTO "communes" VALUES('55','Boviolles','28',108,91,8.13,'3423','54053',241,395);
INSERT INTO "communes" VALUES('55','Chauvency-Saint-Hubert','14',257,208,10.76,'3288','55038',172,342);
INSERT INTO "communes" VALUES('55','Cuisy','12',47,46,5.56,'3158','54742',209,304);
INSERT INTO "communes" VALUES('55','Bouligny','19',2727,2816,10.99,'3784','54769',238,316);
INSERT INTO "communes" VALUES('55','Tréveray','10',635,742,17.18,'3401','54011',248,385);
INSERT INTO "communes" VALUES('55','Bazincourt-sur-Saulx','01',151,166,10.34,'3114','54084',183,302);
INSERT INTO "communes" VALUES('55','Nant-le-Grand','11',63,66,11.26,'3210','54087',233,351);
INSERT INTO "communes" VALUES('55','Ugny-sur-Meuse','24',99,119,4.29,'3741','54044',240,305);
INSERT INTO "communes" VALUES('55','Cierges-sous-Montfaucon','12',58,53,9.15,'3063','54775',205,266);
INSERT INTO "communes" VALUES('55','Villeroy-sur-Méholle','28',37,28,6.47,'3597','54015',265,404);
INSERT INTO "communes" VALUES('55','Lemmes','18',230,187,11.05,'3277','54519',238,320);
INSERT INTO "communes" VALUES('55','Neuville-en-Verdunois','15',74,66,13.44,'3291','54382',238,325);
INSERT INTO "communes" VALUES('55','Beaulieu-en-Argonne','21',37,30,29.56,'3034','54480',146,301);
INSERT INTO "communes" VALUES('55','Sivry-la-Perche','30',256,271,12.17,'3237','54605',228,352);
INSERT INTO "communes" VALUES('55','Delouze-Rosières','10',130,137,15.08,'3539','53960',295,405);
INSERT INTO "communes" VALUES('55','Pagny-la-Blanche-Côte','24',248,222,12.43,'3760','53934',257,392);
INSERT INTO "communes" VALUES('55','Bar-le-Duc','92',15898,16939,23.62,'3145','54191',175,327);
INSERT INTO "communes" VALUES('55','Fromeréville-les-Vallons','03',234,228,20.3,'3278','54621',204,322);
INSERT INTO "communes" VALUES('55','Chaumont-devant-Damvillers','06',49,35,5.35,'3432','54786',218,329);
INSERT INTO "communes" VALUES('55','Châtillon-sous-les-Côtes','08',164,116,10.68,'3541','54606',224,381);
INSERT INTO "communes" VALUES('55','Damloup','08',150,131,5.28,'3505','54668',220,357);
INSERT INTO "communes" VALUES('55','Thonne-les-Près','14',141,164,5.42,'3349','55030',176,334);
INSERT INTO "communes" VALUES('55','Nettancourt','16',276,284,11.45,'2896','54306',135,187);
INSERT INTO "communes" VALUES('55','Sauvoy','28',62,68,7.82,'3630','54042',252,363);
INSERT INTO "communes" VALUES('55','Abaucourt-Hautecourt','08',99,114,9.68,'3559','54663',210,251);
INSERT INTO "communes" VALUES('55','Verneuil-Grand','14',219,201,6.21,'3423','55030',184,348);
INSERT INTO "communes" VALUES('55','Montsec','17',86,68,5.95,'3760','54323',226,376);
INSERT INTO "communes" VALUES('55','Mogeville','08',74,79,6.37,'3548','54714',211,237);
INSERT INTO "communes" VALUES('55','Sommeilles','23',200,186,18.81,'2907','54336',150,193);
INSERT INTO "communes" VALUES('55','Brabant-sur-Meuse','12',138,90,6.9,'3305','54748',180,337);
INSERT INTO "communes" VALUES('55','Brocourt-en-Argonne','04',47,0,6.71,'3144','54572',208,297);
INSERT INTO "communes" VALUES('55','Ville-sur-Cousances','18',111,108,9.59,'3154','54536',219,297);
INSERT INTO "communes" VALUES('55','Delut','06',105,92,9.18,'3439','54898',190,277);
INSERT INTO "communes" VALUES('55','Courouvre','15',36,62,8.66,'3355','54375',263,331);
INSERT INTO "communes" VALUES('55','Belleray','31',432,439,5.1,'3403','54591',196,298);
INSERT INTO "communes" VALUES('55','Duzey','19',49,38,5.77,'3663','54846',221,278);
INSERT INTO "communes" VALUES('55','Aubréville','04',409,382,28.99,'3050','54604',174,301);
INSERT INTO "communes" VALUES('55','Clermont-en-Argonne','04',1567,1767,66.94,'3038','54562',163,303);
INSERT INTO "communes" VALUES('55','Sepvigny','24',81,82,6.31,'3719','53954',252,382);
INSERT INTO "communes" VALUES('55','Laneuville-sur-Meuse','20',432,425,22.82,'3142','54991',162,246);
INSERT INTO "communes" VALUES('55','Dugny-sur-Meuse','31',1321,1280,19.25,'3387','54561',185,328);
INSERT INTO "communes" VALUES('55','Bislée','17',61,69,4.96,'3509','54299',217,311);
INSERT INTO "communes" VALUES('55','Olizy-sur-Chiers','20',191,179,9.22,'3205','55062',166,342);
INSERT INTO "communes" VALUES('55','Quincy-Landzécourt','14',146,161,12.48,'3289','54993',175,290);
INSERT INTO "communes" VALUES('55','Herbeuville','09',180,148,6.71,'3667','54495',221,392);
INSERT INTO "communes" VALUES('55','Charpentry','22',25,32,4.41,'2993','54731',147,226);
INSERT INTO "communes" VALUES('55','Fromezey','08',53,68,5.96,'3607','54682',203,230);
INSERT INTO "communes" VALUES('55','Vittarville','06',87,80,8.15,'3418','54883',190,236);
INSERT INTO "communes" VALUES('55','Girauvoisin','05',75,75,5.06,'3657','54227',237,370);
INSERT INTO "communes" VALUES('55','Peuvillers','06',64,50,4.86,'3397','54856',194,216);
INSERT INTO "communes" VALUES('55','Murvaux','07',148,145,14.21,'3232','54880',189,357);
INSERT INTO "communes" VALUES('55','Malancourt','22',86,86,16.52,'3159','54713',209,297);
INSERT INTO "communes" VALUES('55','Damvillers','06',655,628,18.33,'3404','54825',197,353);
INSERT INTO "communes" VALUES('55','Charny-sur-Meuse','03',560,464,12.62,'3363','54675',185,293);
INSERT INTO "communes" VALUES('55','Combles-en-Barrois','29',863,799,10.26,'3089','54168',199,279);
INSERT INTO "communes" VALUES('55','Andernay','16',244,228,4.32,'2909','54213',131,185);
INSERT INTO "communes" VALUES('55','Courcelles-sur-Aire','23',37,57,11.93,'3229','54374',226,331);
INSERT INTO "communes" VALUES('55','Sivry-sur-Meuse','12',376,343,22.24,'3258','54802',177,376);
INSERT INTO "communes" VALUES('55','Dannevoux','12',215,206,14.4,'3221','54787',177,297);
INSERT INTO "communes" VALUES('55','Lisle-en-Rigault','01',530,532,10.54,'3012','54131',162,236);
INSERT INTO "communes" VALUES('55','Saint-Hilaire-en-Woëvre','09',192,145,11.12,'3742','54535',202,226);
INSERT INTO "communes" VALUES('55','Erneville-aux-Bois','05',175,175,28.05,'3419','54158',269,383);
INSERT INTO "communes" VALUES('55','Lérouville','05',1487,1389,14.38,'3564','54213',225,372);
INSERT INTO "communes" VALUES('55','Moulins-Saint-Hubert','20',174,158,8.14,'3099','55087',172,343);
INSERT INTO "communes" VALUES('55','Dombras','06',139,146,11.27,'3469','54879',192,249);
INSERT INTO "communes" VALUES('55','Jametz','14',263,243,17.44,'3383','54923',187,281);
INSERT INTO "communes" VALUES('55','Vavincourt','25',488,421,15.93,'3191','54249',200,327);
INSERT INTO "communes" VALUES('55','Cunel','12',14,18,4.69,'3089','54818',224,301);
INSERT INTO "communes" VALUES('55','Xivray-et-Marvoisin','17',89,108,14.45,'3786','54294',222,253);
INSERT INTO "communes" VALUES('55','Tronville-en-Barrois','11',1568,2036,12.64,'3269','54134',204,353);
INSERT INTO "communes" VALUES('55','Mouilly','09',108,108,10.96,'3552','54501',257,382);
INSERT INTO "communes" VALUES('55','Morgemoulin','08',104,95,6.85,'3605','54705',205,227);
INSERT INTO "communes" VALUES('55','Vignot','05',1317,1275,16.02,'3636','54193',225,377);
INSERT INTO "communes" VALUES('55','Woimbey','15',107,106,15.3,'3478','54418',210,327);
INSERT INTO "communes" VALUES('55','Ligny-en-Barrois','11',4307,5036,32.26,'3319','54099',217,386);
INSERT INTO "communes" VALUES('55','Bannoncourt','15',173,195,8.72,'3514','54399',210,329);
INSERT INTO "communes" VALUES('55','Frémeréville-sous-les-Côtes','05',108,75,6.44,'3687','54223',233,375);
INSERT INTO "communes" VALUES('55','Étain','08',3808,3711,19.64,'3666','54681',196,236);
INSERT INTO "communes" VALUES('55','Brandeville','06',170,141,12.14,'3297','54880',193,377);
INSERT INTO "communes" VALUES('55','Sorbey','19',234,166,12.42,'3603','54884',213,322);
INSERT INTO "communes" VALUES('55','Montiers-sur-Saulx','13',450,454,44.55,'3257','53926',256,398);
INSERT INTO "communes" VALUES('55','Montmédy','14',2359,2260,23.49,'3366','55022',177,336);
INSERT INTO "communes" VALUES('55','Savonnières-devant-Bar','29',482,546,5.16,'3156','54173',182,326);
INSERT INTO "communes" VALUES('55','Billy-sous-Mangiennes','19',394,298,24.66,'3599','54814',202,250);
INSERT INTO "communes" VALUES('55','Willeroncourt','11',129,119,7.89,'3366','54129',237,386);
INSERT INTO "communes" VALUES('55','Cousances-les-Forges','01',1706,1716,18.13,'3053','54012',157,263);
INSERT INTO "communes" VALUES('55','Lavincourt','01',75,61,4.7,'3128','54069',191,280);
INSERT INTO "communes" VALUES('55','Sauvigny','24',262,220,17.51,'3755','53887',262,423);
INSERT INTO "communes" VALUES('55','Souilly','18',360,273,26.59,'3277','54476',242,344);
INSERT INTO "communes" VALUES('55','Nant-le-Petit','11',84,91,9.02,'3198','54061',214,331);
INSERT INTO "communes" VALUES('55','Loisey-Culey','11',453,461,24.48,'3276','54184',218,379);
INSERT INTO "communes" VALUES('55','Dieppe-sous-Douaumont','08',180,150,15.06,'3526','54689',212,269);
INSERT INTO "communes" VALUES('55','Savonnières-en-Perthois','01',460,461,10.07,'3106','54006',215,282);
INSERT INTO "communes" VALUES('55','Villers-le-Sec','13',135,133,6.99,'3289','54023',282,334);
INSERT INTO "communes" VALUES('55','Villers-sous-Pareid','09',64,72,6.12,'3775','54583',200,226);
INSERT INTO "communes" VALUES('55','Moranville','08',132,98,6.8,'3566','54638',212,246);
INSERT INTO "communes" VALUES('55','Milly-sur-Bradon','07',173,145,10.4,'3190','54886',169,338);
INSERT INTO "communes" VALUES('55','Saint-Amand-sur-Ornain','11',69,83,6.06,'3389','54030',244,386);
INSERT INTO "communes" VALUES('55','Naix-aux-Forges','11',212,204,6.32,'3378','54041',234,359);
INSERT INTO "communes" VALUES('55','Seigneulles','25',192,195,11.7,'3223','54279',237,322);
INSERT INTO "communes" VALUES('55','Pont-sur-Meuse','05',143,146,3.63,'3568','54224',224,332);
INSERT INTO "communes" VALUES('55','Ornes','03',6,6,18.52,'3484','54726',209,372);
INSERT INTO "communes" VALUES('55','Valbois','27',104,97,17.09,'3645','54371',242,388);
INSERT INTO "communes" VALUES('55','Gercourt-et-Drillancourt','12',142,133,13.6,'3224','54761',180,276);
INSERT INTO "communes" VALUES('55','Éparges','09',75,58,9.52,'3619','54517',255,382);
INSERT INTO "communes" VALUES('55','Nantillois','12',63,73,7.66,'3114','54777',208,275);
INSERT INTO "communes" VALUES('55','Demange-aux-Eaux','10',545,544,24.86,'3469','53980',267,396);
INSERT INTO "communes" VALUES('55','Saint-Laurent-sur-Othain','19',496,370,16.79,'3544','54884',197,286);
INSERT INTO "communes" VALUES('55','Villotte-devant-Louppy','23',153,170,11.23,'3045','54317',165,232);
INSERT INTO "communes" VALUES('55','Vacherauville','03',125,119,7.29,'3359','54690',185,335);
INSERT INTO "communes" VALUES('55','Labeuville','09',140,88,9.58,'3840','54552',195,221);
INSERT INTO "communes" VALUES('55','Vaudeville-le-Haut','10',69,54,9.71,'3628','53833',300,451);
INSERT INTO "communes" VALUES('55','Thierville-sur-Meuse','03',3071,2746,12.09,'3352','54635',191,322);
INSERT INTO "communes" VALUES('55','Hannonville-sous-les-Côtes','09',632,534,15.71,'3691','54489',214,401);
INSERT INTO "communes" VALUES('55','Aulnois-en-Perthois','01',490,420,10.75,'3103','54039',229,279);
INSERT INTO "communes" VALUES('55','Vadonville','05',255,239,5.21,'3542','54225',224,326);
INSERT INTO "communes" VALUES('55','Brillon-en-Barrois','01',596,606,11.35,'3065','54124',185,278);
INSERT INTO "communes" VALUES('55','Avocourt','22',122,107,14.66,'3118','54674',193,305);
INSERT INTO "communes" VALUES('55','Dompierre-aux-Bois','27',45,45,8.07,'3609','54439',253,382);
INSERT INTO "communes" VALUES('55','Gincrey','08',63,65,9.69,'3596','54717',209,233);
INSERT INTO "communes" VALUES('55','Nançois-sur-Ornain','11',388,421,7.98,'3293','54125',212,364);
INSERT INTO "communes" VALUES('55','Souhesmes-Rampont','18',328,310,21.8,'3239','54538',225,327);
INSERT INTO "communes" VALUES('55','Heippes','18',71,76,10.48,'3285','54438',265,347);
INSERT INTO "communes" VALUES('55','Fresnes-en-Woëvre','09',744,643,9.08,'3661','54552',208,238);
INSERT INTO "communes" VALUES('55','Rupt-en-Woëvre','26',305,305,17.05,'3502','54503',228,393);
INSERT INTO "communes" VALUES('55','Brabant-en-Argonne','04',104,0,7.79,'3112','54582',193,291);
INSERT INTO "communes" VALUES('55','Chalaines','24',327,299,8.1,'3716','54003',245,373);
INSERT INTO "communes" VALUES('55','Hauts-de-Chée','23',734,759,50.17,'3145','54297',184,301);
INSERT INTO "communes" VALUES('55','Beaumont-en-Verdunois','03',0,0,7.87,'3412','54732',233,372);
INSERT INTO "communes" VALUES('55','Longeville-en-Barrois','02',1205,1264,15.44,'3193','54159',187,337);
INSERT INTO "communes" VALUES('55','Lahaymeix','15',90,78,12.7,'3415','54377',240,353);
INSERT INTO "communes" VALUES('55','Silmont','11',185,196,3.83,'3233','54150',196,338);
INSERT INTO "communes" VALUES('55','Burey-la-Côte','24',83,73,4.29,'3736','53892',261,383);
INSERT INTO "communes" VALUES('55','Waly','21',62,64,6.2,'3078','54466',194,305);
INSERT INTO "communes" VALUES('55','Vauquois','22',22,26,8.14,'3040','54670',184,290);
INSERT INTO "communes" VALUES('55','Ronvaux','09',92,83,2.63,'3575','54589',217,362);
INSERT INTO "communes" VALUES('55','Lavoye','21',157,152,10.02,'3112','54495',197,275);
INSERT INTO "communes" VALUES('55','Paroches','17',396,358,10.24,'3530','54343',212,339);
INSERT INTO "communes" VALUES('55','Saint-Remy-la-Calonne','09',81,63,8.04,'3628','54497',273,384);
INSERT INTO "communes" VALUES('55','Islettes','04',846,816,5.55,'2963','54567',156,245);
INSERT INTO "communes" VALUES('55','Nouillonpont','19',243,189,10.12,'3671','54843',223,294);
INSERT INTO "communes" VALUES('55','Bouquemont','15',115,108,7.49,'3461','54434',209,348);
INSERT INTO "communes" VALUES('55','Dommartin-la-Montagne','09',67,47,6.77,'3635','54479',286,387);
INSERT INTO "communes" VALUES('55','Saint-André-en-Barrois','18',58,45,9.33,'3215','54460',241,326);
INSERT INTO "communes" VALUES('55','Ourches-sur-Meuse','28',195,168,10.35,'3743','54067',240,334);
INSERT INTO "communes" VALUES('55','Beurey-sur-Saulx','16',435,496,11.62,'2989','54176',148,235);
INSERT INTO "communes" VALUES('55','Avioth','14',131,113,6.5,'3394','55074',196,315);
INSERT INTO "communes" VALUES('55','Menaucourt','11',219,252,6.3,'3354','54056',227,376);
INSERT INTO "communes" VALUES('55','Chanteraine','11',205,236,22.4,'3371','54090',238,391);
INSERT INTO "communes" VALUES('55','Haudiomont','09',235,209,9.3,'3581','54573',219,393);
INSERT INTO "communes" VALUES('55','Méligny-le-Grand','28',97,89,11.52,'3506','54086',307,412);
INSERT INTO "communes" VALUES('55','Senoncourt-les-Maujouy','18',102,79,14.94,'3329','54509',219,343);
INSERT INTO "communes" VALUES('55','Dompcevrin','15',329,361,10.93,'3503','54369',212,358);
INSERT INTO "communes" VALUES('55','Thonne-la-Long','14',266,181,9.5,'3432','55068',207,349);
INSERT INTO "communes" VALUES('55','Longeaux','11',235,213,7.49,'3337','54052',228,347);
INSERT INTO "communes" VALUES('55','Véry','22',89,102,11.74,'3035','54721',165,251);
INSERT INTO "communes" VALUES('55','Wavrille','06',43,49,5.31,'3392','54808',210,361);
INSERT INTO "communes" VALUES('55','Broussey-Raulecourt','17',253,219,21.02,'3742','54250',228,254);
INSERT INTO "communes" VALUES('55','Saint-Mihiel','17',4620,5251,33,'3559','54322',215,388);
INSERT INTO "communes" VALUES('55','Revigny-sur-Ornain','16',3098,3660,19.32,'2945','54254',134,182);
INSERT INTO "communes" VALUES('55','Dombasle-en-Argonne','04',424,398,11.68,'3171','54597',207,318);
INSERT INTO "communes" VALUES('55','Kœur-la-Petite','15',299,297,20.33,'3509','54284',217,361);
INSERT INTO "communes" VALUES('55','Neuville-sur-Ornain','16',354,347,11.66,'3011','54247',149,199);
INSERT INTO "communes" VALUES('55','Mognéville','16',389,397,18.57,'2964','54204',136,216);
INSERT INTO "communes" VALUES('55','Noyers-Auzécourt','23',238,244,17.22,'2928','54316',140,191);
INSERT INTO "communes" VALUES('55','Val-d''Ornain','16',988,897,24.16,'3036','54224',159,249);
INSERT INTO "communes" VALUES('55','Nicey-sur-Aire','15',105,118,11.01,'3333','54317',252,347);
INSERT INTO "communes" VALUES('55','Dagonville','05',82,77,13.01,'3400','54213',284,387);
INSERT INTO "communes" VALUES('55','Villers-devant-Dun','07',60,84,7.97,'3082','54885',233,340);
INSERT INTO "communes" VALUES('55','Saint-Maurice-sous-les-Côtes','27',413,332,9.3,'3713','54462',227,408);
INSERT INTO "communes" VALUES('55','Spincourt','19',838,668,27.28,'3699','54810',225,318);
INSERT INTO "communes" VALUES('55','Marchéville-en-Woëvre','09',79,64,5.63,'3716','54544',207,225);
INSERT INTO "communes" VALUES('55','Flassigny','14',46,44,6.66,'3449','54970',193,337);
INSERT INTO "communes" VALUES('55','Vigneulles-lès-Hattonchâtel','27',1551,1369,62.59,'3741','54423',212,416);
INSERT INTO "communes" VALUES('55','Longchamps-sur-Aire','15',139,137,15.68,'3300','54344',238,346);
INSERT INTO "communes" VALUES('55','Roises','10',33,40,3.92,'3672','53839',286,398);
INSERT INTO "communes" VALUES('55','Forges-sur-Meuse','12',111,135,15.97,'3284','54736',180,287);
INSERT INTO "communes" VALUES('55','Autréville-Saint-Lambert','20',49,43,4.01,'3102','55069',166,343);
INSERT INTO "communes" VALUES('55','Brixey-aux-Chanoines','24',79,86,7.62,'3753','53860',263,412);
INSERT INTO "communes" VALUES('55','Luzy-Saint-Martin','20',105,109,7.35,'3133','55026',161,276);
INSERT INTO "communes" VALUES('55','Marson-sur-Barboure','28',48,48,5.9,'3453','54046',264,398);
INSERT INTO "communes" VALUES('55','Couvonges','16',152,112,4.56,'2988','54195',146,208);
INSERT INTO "communes" VALUES('55','Salmagne','11',310,311,16.73,'3320','54169',229,382);
INSERT INTO "communes" VALUES('55','Reffroy','28',66,58,9.41,'3476','54035',275,403);
INSERT INTO "communes" VALUES('55','Combres-sous-les-Côtes','09',114,119,5.06,'3653','54510',226,373);
INSERT INTO "communes" VALUES('55','Écurey-en-Verdunois','06',140,151,6.92,'3348','54848',202,387);
INSERT INTO "communes" VALUES('55','Nonsard-Lamarche','27',159,108,18.18,'3806','54368',214,237);
INSERT INTO "communes" VALUES('55','Dainville-Bertheléville','10',157,139,40.3,'3525','53823',302,441);
INSERT INTO "communes" VALUES('55','Vaux-lès-Palameix','27',47,27,10.52,'3558','54465',237,377);
INSERT INTO "communes" VALUES('55','Maulan','11',98,85,4.22,'3241','54077',262,347);
INSERT INTO "communes" VALUES('55','Dammarie-sur-Saulx','13',442,403,11.34,'3225','53993',237,316);
INSERT INTO "communes" VALUES('55','Brouennes','20',155,145,12.22,'3247','55019',167,296);
INSERT INTO "communes" VALUES('55','Cheppy','22',127,131,14.83,'3024','54702',155,239);
INSERT INTO "communes" VALUES('55','Gimécourt','15',37,29,10.12,'3369','54277',262,346);
INSERT INTO "communes" VALUES('55','Lignières-sur-Aire','15',47,60,9.3,'3384','54232',277,357);
INSERT INTO "communes" VALUES('55','Chaumont-sur-Aire','23',162,157,9.92,'3246','54363',232,313);
INSERT INTO "communes" VALUES('55','Varennes-en-Argonne','22',661,691,11.81,'2999','54698',144,264);
INSERT INTO "communes" VALUES('55','Rigny-la-Salle','24',387,323,10.28,'3738','54023',242,392);
INSERT INTO "communes" VALUES('55','Chonville-Malaumont','05',168,157,18.8,'3512','54167',239,374);
INSERT INTO "communes" VALUES('55','Récourt-le-Creux','18',75,81,14.43,'3393','54450',207,342);
INSERT INTO "communes" VALUES('55','Seuil-d''Argonne','21',503,495,25.44,'3028','54421',154,218);
INSERT INTO "communes" VALUES('55','Pouilly-sur-Meuse','20',210,182,11.83,'3080','55045',158,276);
INSERT INTO "communes" VALUES('55','Chauvency-le-Château','14',270,243,8.82,'3304','55021',172,327);
INSERT INTO "communes" VALUES('55','Marville','14',561,533,19.55,'3466','54947',197,313);
INSERT INTO "communes" VALUES('55','Vilosnes-Haraumont','07',204,212,15.41,'3217','54811',174,387);
INSERT INTO "communes" VALUES('55','Gouraincourt','19',48,36,5.45,'3696','54771',229,263);
INSERT INTO "communes" VALUES('55','Aincreville','07',85,84,9.11,'3094','54853',187,314);
INSERT INTO "communes" VALUES('55','Douaumont','03',8,6,6.14,'3439','54689',240,395);
INSERT INTO "communes" VALUES('55','Jouy-en-Argonne','04',55,58,6.3,'3207','54593',217,336);
INSERT INTO "communes" VALUES('55','Récicourt','04',168,304,13.7,'3134','54601',193,303);
INSERT INTO "communes" VALUES('55','Trois-Domaines','21',128,119,16.49,'3278','54408',237,343);
INSERT INTO "communes" VALUES('55','Domremy-la-Canne','19',32,32,3.09,'3730','54775',232,260);
INSERT INTO "communes" VALUES('55','Vaudoncourt','19',68,76,6.02,'3680','54797',226,255);
INSERT INTO "communes" VALUES('56','Peillac','01',1839,1662,24.57,'-5062','53015',0,82);
INSERT INTO "communes" VALUES('56','Beignon','13',1647,818,24.87,'-5008','53301',52,212);
INSERT INTO "communes" VALUES('56','Saint-Dolay','31',2305,1977,48.26,'-4990','52827',1,69);
INSERT INTO "communes" VALUES('56','Neulliac','05',1485,1475,30.99,'-5909','53475',54,147);
INSERT INTO "communes" VALUES('56','<NAME>','21',857,581,9.75,'-5272','52870',45,86);
INSERT INTO "communes" VALUES('56','Plouray','09',1107,1144,39.09,'-6360','53495',170,296);
INSERT INTO "communes" VALUES('56','<NAME>','06',1331,1069,16.63,'-5421','52989',60,151);
INSERT INTO "communes" VALUES('56','Moustoir-Ac','16',1754,1477,33.92,'-5746','53173',46,176);
INSERT INTO "communes" VALUES('56','Treffléan','06',2025,1445,18.26,'-5499','52980',20,147);
INSERT INTO "communes" VALUES('56','Melrand','03',1507,1525,40.39,'-6053','53311',32,161);
INSERT INTO "communes" VALUES('56','Limerzel','32',1306,1140,25.15,'-5211','52930',1,97);
INSERT INTO "communes" VALUES('56','Île-d''Arz','38',247,232,3.3,'-5710','52878',0,17);
INSERT INTO "communes" VALUES('56','Gestel','27',2594,2235,6.25,'-6423','53115',13,66);
INSERT INTO "communes" VALUES('56','La Chapelle-Neuve','16',734,720,21.87,'-5866','53183',35,149);
INSERT INTO "communes" VALUES('56','Théhillac','31',547,511,14.46,'-4948','52853',1,62);
INSERT INTO "communes" VALUES('56','Malansac','32',2064,1904,36.18,'-5146','52975',6,97);
INSERT INTO "communes" VALUES('56','Auray','02',12322,10899,6.91,'-5910','52964',0,43);
INSERT INTO "communes" VALUES('56','Augan','13',1460,1275,40.93,'-5127','53244',40,144);
INSERT INTO "communes" VALUES('56','<NAME>','37',1227,571,2.3,'-5479','52894',14,42);
INSERT INTO "communes" VALUES('56','Monterblanc','06',3077,1951,25.41,'-5576','53047',46,151);
INSERT INTO "communes" VALUES('56','Questembert','29',7391,5717,66.38,'-5322','52957',27,128);
INSERT INTO "communes" VALUES('56','Quéven','27',8798,8311,23.93,'-6391','53098',2,66);
INSERT INTO "communes" VALUES('56','<NAME>','30',1630,1530,6.2,'-5962','52873',0,31);
INSERT INTO "communes" VALUES('56','Molac','29',1346,1006,28.4,'-5301','53034',22,106);
INSERT INTO "communes" VALUES('56','Île-aux-Moines','38',629,613,3.2,'-5757','52885',-1,31);
INSERT INTO "communes" VALUES('56','<NAME>','08',2222,2275,16.48,'-4965','53072',4,98);
INSERT INTO "communes" VALUES('56','<NAME>','15',837,637,14.4,'-5375','53286',47,111);
INSERT INTO "communes" VALUES('56','Theix','37',6736,5024,47.13,'-5547','52921',2,107);
INSERT INTO "communes" VALUES('56','Bieuzy','03',755,713,18.98,'-6001','53314',37,176);
INSERT INTO "communes" VALUES('56','Sarzeau','35',7682,6157,60.23,'-5673','52808',0,42);
INSERT INTO "communes" VALUES('56','Férel','31',2996,2049,28.9,'-5200','52758',0,52);
INSERT INTO "communes" VALUES('56','Erdeven','04',3489,2522,30.64,'-6103','52936',0,36);
INSERT INTO "communes" VALUES('56','Locmalo','12',869,887,23.91,'-6137','53414',112,216);
INSERT INTO "communes" VALUES('56','Carnac','30',4295,4443,32.71,'-6016','52872',0,45);
INSERT INTO "communes" VALUES('56','Kerfourn','26',823,725,19.46,'-5744','53381',92,138);
INSERT INTO "communes" VALUES('56','Ploërdut','12',1234,1314,75.83,'-6250','53431',114,285);
INSERT INTO "communes" VALUES('56','Cléguérec','05',2915,2754,62.99,'-6008','53471',55,281);
INSERT INTO "communes" VALUES('56','Pleugriffet','33',1192,1124,38.49,'-5580','53322',40,129);
INSERT INTO "communes" VALUES('56','Kernascléden','12',422,353,9.26,'-6286','53340',89,163);
INSERT INTO "communes" VALUES('56','Helléan','15',341,306,7.87,'-5345','53301',30,89);
INSERT INTO "communes" VALUES('56','Saint-Abraham','19',546,457,6.72,'-5274','53173',15,87);
INSERT INTO "communes" VALUES('56','Saint-Gildas-de-Rhuys','35',1656,1434,15.28,'-5749','52778',0,42);
INSERT INTO "communes" VALUES('56','<NAME>','29',580,401,15.63,'-5375','53046',27,106);
INSERT INTO "communes" VALUES('56','Lanvaudan','24',714,725,18.3,'-6220','53222',19,158);
INSERT INTO "communes" VALUES('56','Trédion','06',1055,890,25.76,'-5477','53103',24,121);
INSERT INTO "communes" VALUES('56','Moréac','16',3783,2891,60.3,'-5731','53244',57,149);
INSERT INTO "communes" VALUES('56','Cournon','08',763,632,10.87,'-4935','53052',1,87);
INSERT INTO "communes" VALUES('56','Meslan','07',1344,1193,37.13,'-6409','53327',35,160);
INSERT INTO "communes" VALUES('56','Pontivy','26',13765,13501,24.85,'-5888','53410',48,192);
INSERT INTO "communes" VALUES('56','Lorient','98',57204,59224,17.48,'-6336','53051',0,46);
INSERT INTO "communes" VALUES('56','Merlevenez','28',3058,2294,17.67,'-6189','53041',1,40);
INSERT INTO "communes" VALUES('56','<NAME>','19',1305,1205,16.49,'-5288','53184',15,117);
INSERT INTO "communes" VALUES('56','Locmariaquer','02',1661,1366,10.99,'-5868','52855',0,19);
INSERT INTO "communes" VALUES('56','Saint-Congard','32',750,637,21.87,'-5171','53078',5,102);
INSERT INTO "communes" VALUES('56','<NAME>','26',2018,1847,16.05,'-5918','53381',46,184);
INSERT INTO "communes" VALUES('56','Carentoir','08',2761,2542,59.02,'-4967','53130',7,109);
INSERT INTO "communes" VALUES('56','Guiscriff','07',2344,2400,85.46,'-6646','53389',70,237);
INSERT INTO "communes" VALUES('56','Locmaria','22',806,705,20.55,'-6022','52549',0,73);
INSERT INTO "communes" VALUES('56','Saint-Perreux','01',1163,1041,6.23,'-4938','52966',1,49);
INSERT INTO "communes" VALUES('56','Berné','07',1538,1317,34.77,'-6365','53328',36,166);
INSERT INTO "communes" VALUES('56','Riantec','28',5097,4767,14.06,'-6274','53012',0,35);
INSERT INTO "communes" VALUES('56','Landaul','25',1998,1343,17.35,'-6014','53054',0,66);
INSERT INTO "communes" VALUES('56','Saint-Thuriau','26',1892,1847,21.47,'-5874','53352',48,129);
INSERT INTO "communes" VALUES('56','Quelneuc','08',552,486,13.85,'-4892','53137',7,95);
INSERT INTO "communes" VALUES('56','Guénin','03',1569,1225,28.71,'-5908','53230',32,152);
INSERT INTO "communes" VALUES('56','Locmaria-Grand-Champ','10',1382,732,14.06,'-5693','53064',52,139);
INSERT INTO "communes" VALUES('56','Saint-Brieuc-de-Mauron','20',358,331,14.35,'-5221','53433',52,113);
INSERT INTO "communes" VALUES('56','Gourin','09',4084,4467,74.72,'-6604','53488',83,301);
INSERT INTO "communes" VALUES('56','Mauron','20',3284,3198,67.23,'-5136','53425',47,130);
INSERT INTO "communes" VALUES('56','Billio','34',396,353,12.03,'-5521','53187',81,167);
INSERT INTO "communes" VALUES('56','Sérent','19',3004,2716,59.67,'-5380','53137',15,156);
INSERT INTO "communes" VALUES('56','Lizio','19',682,737,16.96,'-5403','53181',42,163);
INSERT INTO "communes" VALUES('56','Buléon','34',487,431,12.27,'-5570','53261',89,149);
INSERT INTO "communes" VALUES('56','Quily','15',340,239,5.39,'-5338','53212',19,133);
INSERT INTO "communes" VALUES('56','Bignan','34',2729,2548,45.84,'-5679','53199',53,181);
INSERT INTO "communes" VALUES('56','Saint-Malo-des-Trois-Fontaines','36',564,496,16.19,'-5342','53348',38,109);
INSERT INTO "communes" VALUES('56','Locmiquélic','28',4208,3949,3.58,'-6308','53028',0,24);
INSERT INTO "communes" VALUES('56','Réminiac','13',359,353,12.15,'-5080','53179',45,124);
INSERT INTO "communes" VALUES('56','Guémené-sur-Scorff','12',1204,1204,1.17,'-6155','53409',118,180);
INSERT INTO "communes" VALUES('56','Plumelec','34',2685,2337,58.36,'-5530','53153',27,165);
INSERT INTO "communes" VALUES('56','Fougerêts','08',946,793,19.91,'-5054','53045',2,101);
INSERT INTO "communes" VALUES('56','Baden','38',4137,3370,23.53,'-5841','52910',-1,43);
INSERT INTO "communes" VALUES('56','Port-Louis','28',2718,2807,1.07,'-6322','53007',0,14);
INSERT INTO "communes" VALUES('56','Malestroit','19',2488,2472,5.81,'-5244','53122',10,95);
INSERT INTO "communes" VALUES('56','Saint-Gorgon','01',336,346,5.69,'-5081','52944',40,92);
INSERT INTO "communes" VALUES('56','Sauzon','22',897,837,22.11,'-6177','52635',0,58);
INSERT INTO "communes" VALUES('56','Sainte-Anne-d''Auray','02',2433,1846,4.97,'-5878','53004',36,57);
INSERT INTO "communes" VALUES('56','Saint-Jean-Brévelay','34',2724,2368,41.83,'-5621','53161',42,164);
INSERT INTO "communes" VALUES('56','Vannes','99',52515,51759,32.3,'-5664','52950',0,56);
INSERT INTO "communes" VALUES('56','Le Saint','09',642,695,31.03,'-6554','53433',73,223);
INSERT INTO "communes" VALUES('56','Arradon','38',5378,4719,18.49,'-5733','52917',0,61);
INSERT INTO "communes" VALUES('56','Marzan','31',2004,1693,33.84,'-5178','52823',0,83);
INSERT INTO "communes" VALUES('56','Gourhel','23',590,401,2.83,'-5219','53264',62,101);
INSERT INTO "communes" VALUES('56','Guégon','15',2424,2394,53.52,'-5446','53264',27,162);
INSERT INTO "communes" VALUES('56','Séné','37',8682,7871,19.94,'-5637','52911',0,21);
INSERT INTO "communes" VALUES('56','Landévant','25',3257,2131,22.34,'-6065','53072',0,80);
INSERT INTO "communes" VALUES('56','Bréhan','33',2336,2314,51.65,'-5582','53401',45,158);
INSERT INTO "communes" VALUES('56','Saint-Marcel','19',1035,856,12.81,'-5284','53116',12,112);
INSERT INTO "communes" VALUES('56','Cléguer','27',3306,3059,32.15,'-6356','53171',2,107);
INSERT INTO "communes" VALUES('56','Loyat','23',1556,1442,41.52,'-5244','53322',32,130);
INSERT INTO "communes" VALUES('56','Guéhenno','34',794,730,23.33,'-5529','53214',58,155);
INSERT INTO "communes" VALUES('56','Caudan','27',6918,6745,42.63,'-6310','53121',2,84);
INSERT INTO "communes" VALUES('56','Damgan','21',1625,1328,10.16,'-5460','52800',0,20);
INSERT INTO "communes" VALUES('56','Tréhorenteuc','20',110,117,5.42,'-5138','53343',69,155);
INSERT INTO "communes" VALUES('56','Lanester','40',22219,21901,18.37,'-6306','53070',0,51);
INSERT INTO "communes" VALUES('56','Hennebont','14',15191,13410,18.57,'-6239','53116',0,82);
INSERT INTO "communes" VALUES('56','Saint-Caradec-Trégomel','12',480,443,16.12,'-6319','53375',99,197);
INSERT INTO "communes" VALUES('56','Glénac','08',881,810,13.7,'-4966','53030',2,87);
INSERT INTO "communes" VALUES('56','Lauzach','29',948,551,10.76,'-5423','52905',17,63);
INSERT INTO "communes" VALUES('56','Languidic','14',7318,6488,109.08,'-6105','53148',7,126);
INSERT INTO "communes" VALUES('56','Concoret','20',756,646,15.76,'-5047','53405',66,133);
INSERT INTO "communes" VALUES('56','Brandivy','10',1204,930,25.88,'-5868','53082',28,171);
INSERT INTO "communes" VALUES('56','Caden','32',1600,1483,38.1,'-5138','52923',1,91);
INSERT INTO "communes" VALUES('56','Saint-Gravé','32',740,647,15.75,'-5130','53029',2,91);
INSERT INTO "communes" VALUES('56','Ploeren','38',5786,3984,20.44,'-5781','52951',3,58);
INSERT INTO "communes" VALUES('56','<NAME>','36',716,815,12.7,'-5426','53441',67,145);
INSERT INTO "communes" VALUES('56','Meucon','10',2119,1268,5.73,'-5667','53019',45,132);
INSERT INTO "communes" VALUES('56','Pleucadeuc','29',1799,1483,34.56,'-5236','53066',7,99);
INSERT INTO "communes" VALUES('56','Saint-Allouestre','34',640,536,16.48,'-5622','53233',72,162);
INSERT INTO "communes" VALUES('56','Surzur','37',3720,2431,57.29,'-5518','52865',0,42);
INSERT INTO "communes" VALUES('56','<NAME>','12',714,736,15.88,'-6333','53406',123,255);
INSERT INTO "communes" VALUES('56','Ambon','21',1732,1268,38.04,'-5436','52838',0,57);
INSERT INTO "communes" VALUES('56','Île-d''Houat','30',251,335,2.91,'-5880','52656',0,42);
INSERT INTO "communes" VALUES('56','Caro','19',1169,1096,37.74,'-5173','53182',14,128);
INSERT INTO "communes" VALUES('56','Kergrist','05',648,660,29.66,'-5880','53496',79,166);
INSERT INTO "communes" VALUES('56','Arzon','35',2112,2046,8.93,'-5809','52831',0,36);
INSERT INTO "communes" VALUES('56','Béganne','01',1387,1317,35.5,'-5085','52885',0,87);
INSERT INTO "communes" VALUES('56','Ploemeur','42',17805,18301,39.72,'-6408','53040',-1,55);
INSERT INTO "communes" VALUES('56','<NAME>','31',761,795,0.43,'-5150','52798',0,58);
INSERT INTO "communes" VALUES('56','Pluméliau','03',3607,3091,67.72,'-5900','53286',33,152);
INSERT INTO "communes" VALUES('56','Nivillac','31',4066,3199,55.48,'-5132','52815',0,71);
INSERT INTO "communes" VALUES('56','Sulniac','06',3206,2209,27.92,'-5453','52973',16,146);
INSERT INTO "communes" VALUES('56','Radenac','33',989,825,21.65,'-5610','53292',72,131);
INSERT INTO "communes" VALUES('56','Bono','02',2176,1860,5.96,'-5874','52934',0,42);
INSERT INTO "communes" VALUES('56','Camoël','31',918,655,14.33,'-5257','52758',0,44);
INSERT INTO "communes" VALUES('56','Calan','24',957,720,12.29,'-6287','53195',57,114);
INSERT INTO "communes" VALUES('56','Locqueltas','10',1616,1214,19.46,'-5669','53063',53,144);
INSERT INTO "communes" VALUES('56','Missiriac','19',1078,916,13.47,'-5208','53151',9,96);
INSERT INTO "communes" VALUES('56','Campénéac','23',1811,1466,60.57,'-5145','53287',46,216);
INSERT INTO "communes" VALUES('56','Larmor-Plage','42',8334,8472,7.27,'-6356','53007',0,39);
INSERT INTO "communes" VALUES('56','<NAME>-Saint-André','19',936,863,9.93,'-5317','53183',16,123);
INSERT INTO "communes" VALUES('56','Larmor-Baden','38',810,955,3.93,'-5815','52875',0,26);
INSERT INTO "communes" VALUES('56','Saint-Malo-de-Beignon','13',484,386,3.49,'-4984','53288',50,153);
INSERT INTO "communes" VALUES('56','Brandérion','14',1232,955,6.03,'-6146','53104',8,79);
INSERT INTO "communes" VALUES('56','Réguiny','33',1813,1534,27.92,'-5647','53308',61,129);
INSERT INTO "communes" VALUES('56','Sainte-Hélène','28',1093,909,8.08,'-6157','53022',0,20);
INSERT INTO "communes" VALUES('56','Monteneuf','13',726,663,30.62,'-5051','53192',33,158);
INSERT INTO "communes" VALUES('56','Ruffiac','19',1413,1317,36.47,'-5132','53131',10,102);
INSERT INTO "communes" VALUES('56','Plouharnel','30',2038,1699,18.32,'-6054','52887',0,33);
INSERT INTO "communes" VALUES('56','Étel','04',2077,2138,1.74,'-6152','52953',0,17);
INSERT INTO "communes" VALUES('56','Montertelot','23',355,256,2.64,'-5287','53201',19,100);
INSERT INTO "communes" VALUES('56','Moustoir-Remungol','16',641,634,12.42,'-5821','53329',57,118);
INSERT INTO "communes" VALUES('56','Noyal-Pontivy','26',3726,3284,53.45,'-5798','53408',54,162);
INSERT INTO "communes" VALUES('56','Croixanvec','26',152,164,6.09,'-5784','53488',108,162);
INSERT INTO "communes" VALUES('56','Josselin','15',2501,2421,4.48,'-5427','53284',32,93);
INSERT INTO "communes" VALUES('56','Saint-Laurent-sur-Oust','32',372,271,3.88,'-5173','53105',7,97);
INSERT INTO "communes" VALUES('56','Plouay','24',5284,4764,67.33,'-6302','53239',13,164);
INSERT INTO "communes" VALUES('56','Saint-Gonnery','26',1072,943,16.29,'-5729','53471',70,166);
INSERT INTO "communes" VALUES('56','Saint-Nolff','06',3736,3296,25.92,'-5542','53004',19,147);
INSERT INTO "communes" VALUES('56','Saint-Philibert','02',1564,1258,7.05,'-5929','52874',0,26);
INSERT INTO "communes" VALUES('56','Le Tour-du-Parc','35',1130,742,9.3,'-5535','52806',0,17);
INSERT INTO "communes" VALUES('56','Bangor','22',932,742,25.54,'-6139','52572',0,58);
INSERT INTO "communes" VALUES('56','Saint-Gérand','26',1025,891,18.05,'-5805','53454',82,151);
INSERT INTO "communes" VALUES('56','<NAME>','08',731,502,7.79,'-4937','53093',5,52);
INSERT INTO "communes" VALUES('56','Lanouée','15',1690,1643,43.76,'-5465','53336',32,117);
INSERT INTO "communes" VALUES('56','Plougoumelen','02',2404,1764,21.3,'-5837','52947',0,56);
INSERT INTO "communes" VALUES('56','Taupont','23',2162,1905,29.17,'-5306','53287',22,91);
INSERT INTO "communes" VALUES('56','Billiers','21',918,696,5.87,'-5362','52813',0,29);
INSERT INTO "communes" VALUES('56','Inguiniel','24',2086,1890,51.4,'-6243','53307',49,171);
INSERT INTO "communes" VALUES('56','Priziac','07',1039,986,44.63,'-6384','53402',56,230);
INSERT INTO "communes" VALUES('56','Langonnet','09',1916,1917,85.4,'-6477','53451',104,292);
INSERT INTO "communes" VALUES('56','Séglien','05',726,709,38.36,'-6107','53452',123,248);
INSERT INTO "communes" VALUES('56','Gueltas','26',525,544,20.45,'-5702','53438',66,162);
INSERT INTO "communes" VALUES('56','Persquen','12',322,352,19.96,'-6148','53366',107,173);
INSERT INTO "communes" VALUES('56','Grand-Champ','10',4964,4243,67.34,'-5756','53065',28,167);
INSERT INTO "communes" VALUES('56','Rohan','33',1653,1521,23.43,'-5655','53410',60,150);
INSERT INTO "communes" VALUES('56','Lanvénégen','07',1214,1179,29.42,'-6531','53331',52,188);
INSERT INTO "communes" VALUES('56','Guidel','27',10359,9155,52.29,'-6472','53101',0,70);
INSERT INTO "communes" VALUES('56','Malguénac','05',1741,1658,38.45,'-5986','53423',73,222);
INSERT INTO "communes" VALUES('56','Guillac','15',1338,1091,21.83,'-5336','53234',19,91);
INSERT INTO "communes" VALUES('56','Bubry','24',2388,2351,69.09,'-6122','53293',40,177);
INSERT INTO "communes" VALUES('56','Saint-Aignan','05',660,629,27.33,'-5945','53535',67,275);
INSERT INTO "communes" VALUES('56','Sainte-Brigitte','05',166,166,17.74,'-6073','53514',120,286);
INSERT INTO "communes" VALUES('56','Pluneret','02',5149,3728,26.2,'-5882','52973',0,59);
INSERT INTO "communes" VALUES('56','Ploërmel','23',9067,7526,50.81,'-5260','53258',19,106);
INSERT INTO "communes" VALUES('56','<NAME>','37',730,551,4.89,'-5600','52873',-1,38);
INSERT INTO "communes" VALUES('56','Cruguel','15',633,595,17.17,'-5480','53198',52,166);
INSERT INTO "communes" VALUES('56','Saint-Pierre-Quiberon','30',2158,2167,7.54,'-6078','52801',0,26);
INSERT INTO "communes" VALUES('56','Gâvres','28',737,893,1.88,'-6322','52994',0,10);
INSERT INTO "communes" VALUES('56','Néant-sur-Yvel','20',988,852,32.3,'-5184','53348',37,150);
INSERT INTO "communes" VALUES('56','Inzinzac-Lochrist','14',6013,5399,44.67,'-6226','53160',2,111);
INSERT INTO "communes" VALUES('56','Plumelin','16',2514,1786,31.33,'-5805','53180',42,153);
INSERT INTO "communes" VALUES('56','Saint-Tugdual','12',401,399,19.97,'-6306','53443',140,276);
INSERT INTO "communes" VALUES('56','Guer','13',6193,5555,52.11,'-4952','53227',18,155);
INSERT INTO "communes" VALUES('56','Évriguet','36',179,187,4.98,'-5275','53421',67,112);
INSERT INTO "communes" VALUES('56','<NAME>','07',2866,2808,34.03,'-6475','53370',53,202);
INSERT INTO "communes" VALUES('56','Langoëlan','12',405,369,22.27,'-6189','53468',137,274);
INSERT INTO "communes" VALUES('56','Hœdic','30',119,118,2.08,'-5795','52600',0,22);
INSERT INTO "communes" VALUES('56','Brignac','20',187,223,13.12,'-5250','53467',68,126);
INSERT INTO "communes" VALUES('56','Quistinic','24',1407,1311,42.95,'-6078','53228',20,177);
INSERT INTO "communes" VALUES('56','Guern','26',1422,1400,47.01,'-6031','53367',67,188);
INSERT INTO "communes" VALUES('56','Lantillac','33',303,299,7.72,'-5542','53285',41,124);
INSERT INTO "communes" VALUES('56','Camors','25',2821,2353,37.09,'-5930','53164',27,137);
INSERT INTO "communes" VALUES('56','La Grée-Saint-Laurent','15',330,271,7.9,'-5373','53328',40,117);
INSERT INTO "communes" VALUES('56','Plescop','10',4696,3685,23.35,'-5714','52999',17,67);
INSERT INTO "communes" VALUES('56','Saint-Martin-sur-Oust','08',1276,1283,28.24,'-5101','53051',2,103);
INSERT INTO "communes" VALUES('56','Brech','25',6487,4496,40.86,'-5924','53023',0,66);
INSERT INTO "communes" VALUES('56','Saint-Nicolas-du-Tertre','19',458,457,12.93,'-5064','53115',22,107);
INSERT INTO "communes" VALUES('56','Pluherlin','32',1361,1096,35.4,'-5224','52996',13,101);
INSERT INTO "communes" VALUES('56','Rochefort-en-Terre','32',660,694,1.22,'-5192','53000',22,80);
INSERT INTO "communes" VALUES('56','Noyal-Muzillac','21',2480,1922,48.89,'-5326','52880',7,87);
INSERT INTO "communes" VALUES('56','Arzal','21',1443,916,23.44,'-5236','52796',0,62);
INSERT INTO "communes" VALUES('56','Guilliers','36',1334,1216,35.14,'-5269','53381',47,114);
INSERT INTO "communes" VALUES('56','<NAME>','22',2552,2462,17.43,'-6102','52607',0,58);
INSERT INTO "communes" VALUES('56','Saint-Armel','35',846,705,7.95,'-5608','52858',0,17);
INSERT INTO "communes" VALUES('56','Pluvigner','25',7006,5429,82.83,'-5941','53084',17,146);
INSERT INTO "communes" VALUES('56','Monterrein','19',387,308,7.01,'-5216','53201',59,126);
INSERT INTO "communes" VALUES('56','Saint-Léry','20',181,164,1.58,'-5103','53433',58,89);
INSERT INTO "communes" VALUES('56','Ménéac','36',1586,1688,68.22,'-5330','53488',68,208);
INSERT INTO "communes" VALUES('56','Plaudren','10',1617,1453,41.07,'-5588','53088',42,154);
INSERT INTO "communes" VALUES('56','Pont-Scorff','27',3211,2632,23.5,'-6377','53149',2,72);
INSERT INTO "communes" VALUES('56','Plouhinec','28',5003,4146,35.58,'-6208','52997',0,25);
INSERT INTO "communes" VALUES('56','Mohon','36',985,899,37.83,'-5403','53392',47,126);
INSERT INTO "communes" VALUES('56','Groix','11',2253,2285,14.82,'-6435','52932',0,48);
INSERT INTO "communes" VALUES('56','Locminé','16',4268,3429,4.86,'-5747','53207',69,153);
INSERT INTO "communes" VALUES('56','Saint-Jacut-les-Pins','01',1744,1561,22.81,'-5057','52984',2,88);
INSERT INTO "communes" VALUES('56','Pénestin','31',1900,1527,21.69,'-5345','52759',0,38);
INSERT INTO "communes" VALUES('56','Belz','04',3497,3287,15.67,'-6118','52973',0,33);
INSERT INTO "communes" VALUES('56','Baud','03',6010,4814,48.09,'-5950','53195',22,157);
INSERT INTO "communes" VALUES('56','Saint-Guyomard','19',1060,812,19.66,'-5389','53090',20,108);
INSERT INTO "communes" VALUES('56','Ploemel','04',2533,2047,25.16,'-6009','52945',5,53);
INSERT INTO "communes" VALUES('56','Plumergat','02',3552,2600,41.94,'-5837','53047',17,88);
INSERT INTO "communes" VALUES('56','Noyalo','37',777,666,4.93,'-5575','52900',0,22);
INSERT INTO "communes" VALUES('56','Bohal','19',832,501,8.45,'-5304','53090',17,90);
INSERT INTO "communes" VALUES('56','Quiberon','30',5058,5074,8.83,'-6063','52759',0,33);
INSERT INTO "communes" VALUES('56','Berric','29',1591,1027,21.45,'-5402','52925',24,122);
INSERT INTO "communes" VALUES('56','Larré','29',872,639,17.02,'-5392','53013',22,131);
INSERT INTO "communes" VALUES('56','Saint-Servant','15',778,811,22.4,'-5388','53239',22,163);
INSERT INTO "communes" VALUES('56','Saint-Jean-la-Poterie','01',1522,1331,8.44,'-4958','52929',1,81);
INSERT INTO "communes" VALUES('56','Tréal','08',659,670,19.28,'-5067','53155',27,101);
INSERT INTO "communes" VALUES('56','Locoal-Mendon','04',3149,2178,39.97,'-6046','53013',0,42);
INSERT INTO "communes" VALUES('56','Saint-Vincent-sur-Oust','01',1391,1096,15.66,'-4981','53000',1,60);
INSERT INTO "communes" VALUES('56','Elven','06',5310,3556,64.05,'-5474','53035',34,152);
INSERT INTO "communes" VALUES('56','Crach','02',3283,3029,30.54,'-5931','52908',0,44);
INSERT INTO "communes" VALUES('56','Saint-Avé','37',10450,8298,26.09,'-5634','52985',12,136);
INSERT INTO "communes" VALUES('56','Silfiac','05',454,445,22.46,'-6103','53499',175,276);
INSERT INTO "communes" VALUES('56','Forges','15',400,476,52.53,'-5537','53353',40,123);
INSERT INTO "communes" VALUES('56','Nostang','28',1380,1087,15.71,'-6138','53055',0,53);
INSERT INTO "communes" VALUES('56','Crédin','33',1500,1372,33.74,'-5670','53372',52,139);
INSERT INTO "communes" VALUES('56','Naizin','16',1714,1524,40.99,'-5742','53322',57,136);
INSERT INTO "communes" VALUES('56','Saint-Barthélemy','03',1166,1050,21.9,'-5980','53251',27,151);
INSERT INTO "communes" VALUES('56','Rieux','01',2904,2784,27.78,'-4937','52886',0,81);
INSERT INTO "communes" VALUES('56','Roudouallec','09',712,705,24.82,'-6726','53474',118,248);
INSERT INTO "communes" VALUES('56','Porcaro','13',671,509,15.73,'-5039','53233',30,154);
INSERT INTO "communes" VALUES('56','Muzillac','21',4694,3807,39.5,'-5353','52837',0,65);
INSERT INTO "communes" VALUES('56','Remungol','16',959,864,26.93,'-5817','53260',42,125);
INSERT INTO "communes" VALUES('56','Kervignac','28',5965,4111,39.56,'-6195','53070',0,70);
INSERT INTO "communes" VALUES('56','Colpo','10',2230,1810,26.48,'-5718','53133',52,156);
INSERT INTO "communes" VALUES('56','Lignol','12',910,857,38.43,'-6230','53375',93,187);
INSERT INTO "communes" VALUES('56','Péaule','29',2516,2209,39.25,'-5214','52869',0,92);
INSERT INTO "communes" VALUES('56','Allaire','01',3658,3188,41.74,'-4999','52930',1,88);
INSERT INTO "communes" VALUES('57','Attilloncourt','06',108,94,3.37,'4493','54207',195,293);
INSERT INTO "communes" VALUES('57','Berthelming','10',515,520,10.67,'5188','54240',231,282);
INSERT INTO "communes" VALUES('57','Juvelize','34',87,95,7.82,'4792','54182',202,257);
INSERT INTO "communes" VALUES('57','Aboncourt-sur-Seille','06',71,64,3.63,'4448','54240',195,290);
INSERT INTO "communes" VALUES('57','Ajoncourt','07',91,91,3.5,'4392','54272',187,227);
INSERT INTO "communes" VALUES('57','Roncourt','48',834,818,6.73,'4117','54670',249,357);
INSERT INTO "communes" VALUES('57','Arzviller','24',535,516,5.21,'5365','54133',273,354);
INSERT INTO "communes" VALUES('57','Guinzeling','01',76,65,4.83,'5007','54310',232,269);
INSERT INTO "communes" VALUES('57','Behren-lès-Forbach','47',8193,10073,5.54,'5109','54638',243,382);
INSERT INTO "communes" VALUES('57','Loutzviller','36',159,144,3.22,'5607','54608',240,357);
INSERT INTO "communes" VALUES('57','Haut-Clocher','29',339,322,11.44,'5182','54176',245,315);
INSERT INTO "communes" VALUES('57','Bazoncourt','23',494,469,13.21,'4478','54501',215,337);
INSERT INTO "communes" VALUES('57','Ippling','50',785,700,3.29,'5186','54562',208,298);
INSERT INTO "communes" VALUES('57','Blies-Ébersing','50',596,529,5.24,'5343','54583',201,326);
INSERT INTO "communes" VALUES('57','Henridorff','24',658,532,7.31,'5415','54148',215,367);
INSERT INTO "communes" VALUES('57','Val-de-Bride','08',626,645,11.12,'4846','54250',204,330);
INSERT INTO "communes" VALUES('57','Haute-Kontz','31',528,439,6.41,'4424','54948',145,286);
INSERT INTO "communes" VALUES('57','Xouaxange','29',342,363,5.16,'5178','54108',255,341);
INSERT INTO "communes" VALUES('57','Niderviller','29',1173,1066,10.78,'5301','54125',257,364);
INSERT INTO "communes" VALUES('57','Lidrezing','08',88,81,10.04,'4846','54315',242,346);
INSERT INTO "communes" VALUES('57','Maizières-lès-Vic','34',491,368,25.99,'4932','54132',217,299);
INSERT INTO "communes" VALUES('57','Beyren-lès-Sierck','05',482,426,9.28,'4416','54965',154,268);
INSERT INTO "communes" VALUES('57','Château-Salins','06',2422,2483,10.76,'4635','54246',201,331);
INSERT INTO "communes" VALUES('57','Voyer','16',430,401,4.48,'5270','54058',282,440);
INSERT INTO "communes" VALUES('57','Fribourg','25',170,160,17.42,'5022','54186',223,301);
INSERT INTO "communes" VALUES('57','Delme','07',989,729,5.09,'4506','54319',208,280);
INSERT INTO "communes" VALUES('57','Volmunster','36',864,896,14.91,'5577','54580',242,368);
INSERT INTO "communes" VALUES('57','Phalsbourg','24',4736,4500,13.15,'5469','54187',200,384);
INSERT INTO "communes" VALUES('57','Téterchen','03',729,609,8.75,'4693','54702',220,372);
INSERT INTO "communes" VALUES('57','Guebenhouse','50',405,392,4.46,'5118','54528',219,288);
INSERT INTO "communes" VALUES('57','Obergailbach','36',318,255,8.99,'5424','54576',234,387);
INSERT INTO "communes" VALUES('57','Guermange','25',92,111,17.64,'4972','54216',210,256);
INSERT INTO "communes" VALUES('57','Ottonville','03',409,383,15.71,'4650','54687',200,308);
INSERT INTO "communes" VALUES('57','Bourgaltroff','08',283,240,9.75,'4914','54299',217,312);
INSERT INTO "communes" VALUES('57','Bioncourt','06',314,305,8.21,'4473','54215',194,290);
INSERT INTO "communes" VALUES('57','Barst','41',563,483,5.79,'4996','54520',249,295);
INSERT INTO "communes" VALUES('57','Ley','34',108,106,6.13,'4800','54151',202,264);
INSERT INTO "communes" VALUES('57','Manom','38',2642,2725,10.39,'4279','54856',148,245);
INSERT INTO "communes" VALUES('57','Saint-Quirin','16',783,871,53.34,'5253','54011',282,897);
INSERT INTO "communes" VALUES('57','Givrycourt','01',101,98,2.77,'5090','54359',218,244);
INSERT INTO "communes" VALUES('57','Ibigny','25',97,89,4.77,'5070','54048',285,341);
INSERT INTO "communes" VALUES('57','Roussy-le-Village','05',1215,960,12.5,'4263','54952',190,259);
INSERT INTO "communes" VALUES('57','Féy','33',596,575,5.66,'4178','54478',191,361);
INSERT INTO "communes" VALUES('57','Saint-François-Lacroix','04',300,162,7.33,'4562','54827',228,296);
INSERT INTO "communes" VALUES('57','Foulcrey','25',191,180,12.34,'5023','54042',283,355);
INSERT INTO "communes" VALUES('57','Buchy','33',115,76,3.58,'4379','54422',250,305);
INSERT INTO "communes" VALUES('57','Beux','23',274,211,5.03,'4422','54444',233,315);
INSERT INTO "communes" VALUES('57','Marly','33',9707,10136,10.8,'4237','54512',167,201);
INSERT INTO "communes" VALUES('57','Hallering','09',115,102,3.55,'4684','54577',260,378);
INSERT INTO "communes" VALUES('57','Mécleuves','33',1162,1011,12.88,'4370','54492',192,292);
INSERT INTO "communes" VALUES('57','Villers-Stoncourt','23',239,165,10.57,'4533','54508',224,328);
INSERT INTO "communes" VALUES('57','Hauconcourt','43',542,569,7.9,'4281','54688',155,166);
INSERT INTO "communes" VALUES('57','Metzervisse','21',1826,1272,8.99,'4388','54795',173,256);
INSERT INTO "communes" VALUES('57','Stiring-Wendel','51',12438,13126,3.6,'5103','54667',205,254);
INSERT INTO "communes" VALUES('57','Troisfontaines','29',1319,1315,12.85,'5311','54077',275,446);
INSERT INTO "communes" VALUES('57','Richeval','25',136,114,4.92,'5082','54040',286,353);
INSERT INTO "communes" VALUES('57','Morhange','14',3772,4050,15.38,'4777','54360',221,305);
INSERT INTO "communes" VALUES('57','Vahl-lès-Bénestroff','01',126,117,8.97,'4944','54348',220,284);
INSERT INTO "communes" VALUES('57','Manderen','31',421,381,8.92,'4555','54945',216,416);
INSERT INTO "communes" VALUES('57','Tromborn','04',346,296,6.13,'4723','54731',305,385);
INSERT INTO "communes" VALUES('57','Oberdorff','04',361,374,4.22,'4731','54749',263,340);
INSERT INTO "communes" VALUES('57','Ennery','35',1715,1760,7.24,'4311','54696',154,228);
INSERT INTO "communes" VALUES('57','Bassing','08',131,142,6.3,'4961','54299',220,283);
INSERT INTO "communes" VALUES('57','Morville-sur-Nied','07',126,112,5.64,'4553','54386',227,271);
INSERT INTO "communes" VALUES('57','Laumesfeld','31',252,182,8.3,'4564','54854',234,306);
INSERT INTO "communes" VALUES('57','Brettnach','04',464,362,5.9,'4695','54731',228,335);
INSERT INTO "communes" VALUES('57','Rettel','31',740,684,6.89,'4434','54937',145,300);
INSERT INTO "communes" VALUES('57','Merschweiller','31',183,164,5.76,'4536','54958',185,431);
INSERT INTO "communes" VALUES('57','Yutz','38',16171,14676,13.97,'4280','54843',147,217);
INSERT INTO "communes" VALUES('57','Argancy','35',1310,1103,11.45,'4296','54662',158,210);
INSERT INTO "communes" VALUES('57','Danne-et-Quatre-Vents','24',598,522,7.2,'5509','54185',205,379);
INSERT INTO "communes" VALUES('57','Rémilly','23',2121,1810,18.94,'4507','54460',220,312);
INSERT INTO "communes" VALUES('57','Brouviller','24',432,389,11.24,'5357','54184',268,348);
INSERT INTO "communes" VALUES('57','Montois-la-Montagne','48',2364,2617,7.1,'4095','54686',174,330);
INSERT INTO "communes" VALUES('57','Vallerange','14',223,231,6.64,'4832','54389',236,295);
INSERT INTO "communes" VALUES('57','Cocheren','47',3496,3293,5.62,'5022','54604',200,340);
INSERT INTO "communes" VALUES('57','Colmen','04',216,209,4.82,'4672','54840',208,267);
INSERT INTO "communes" VALUES('57','Hilsprich','28',903,823,10.34,'5084','54459',215,253);
INSERT INTO "communes" VALUES('57','Baerenthal','02',762,704,39.19,'5756','54417',190,473);
INSERT INTO "communes" VALUES('57','Wiesviller','50',1031,959,8.83,'5364','54534',225,342);
INSERT INTO "communes" VALUES('57','Pettoncourt','06',291,260,4.9,'4520','54202',197,282);
INSERT INTO "communes" VALUES('57','Gros-Réderching','26',1314,1140,15.73,'5424','54520',256,376);
INSERT INTO "communes" VALUES('57','Bénestroff','01',533,516,9.56,'4914','54338',222,330);
INSERT INTO "communes" VALUES('57','Willerwald','28',1500,1223,6.31,'5220','54475',206,265);
INSERT INTO "communes" VALUES('57','Bréhain','07',103,75,3.59,'4668','54344',244,314);
INSERT INTO "communes" VALUES('57','Bellange','06',57,44,3.83,'4712','54335',217,327);
INSERT INTO "communes" VALUES('57','Nelling','28',289,238,7.4,'5034','54405',215,252);
INSERT INTO "communes" VALUES('57','Hannocourt','07',19,19,4.21,'4561','54342',231,270);
INSERT INTO "communes" VALUES('57','Cattenom','05',2660,2269,25.53,'4341','54896',148,237);
INSERT INTO "communes" VALUES('57','Mey','20',301,179,1.91,'4333','54596',179,250);
INSERT INTO "communes" VALUES('57','Bambiderstroff','09',1030,901,11.05,'4729','54559',269,405);
INSERT INTO "communes" VALUES('57','Morsbach','47',2581,2450,5.09,'5038','54630',197,320);
INSERT INTO "communes" VALUES('57','Rimling','36',561,494,13.26,'5475','54551',281,392);
INSERT INTO "communes" VALUES('57','Bisten-en-Lorraine','03',259,255,4.48,'4735','54625',235,390);
INSERT INTO "communes" VALUES('57','Vigny','33',308,306,5.83,'4345','54408',244,297);
INSERT INTO "communes" VALUES('57','Rolbing','36',279,250,5.97,'5670','54635',247,348);
INSERT INTO "communes" VALUES('57','Blies-Guersviller','50',600,661,3.6,'5286','54613',197,287);
INSERT INTO "communes" VALUES('57','Schwerdorff','04',448,391,9.42,'4710','54852',181,304);
INSERT INTO "communes" VALUES('57','Pournoy-la-Chétive','33',657,666,2.56,'4243','54467',171,197);
INSERT INTO "communes" VALUES('57','Boulange','11',2290,1777,12.78,'4018','54869',285,384);
INSERT INTO "communes" VALUES('57','Oron','07',104,111,5.37,'4603','54340',234,302);
INSERT INTO "communes" VALUES('57','Saint-Privat-la-Montagne','48',1668,1374,5.84,'4111','54655',280,342);
INSERT INTO "communes" VALUES('57','Saint-Jean-Kourtzerode','24',764,484,1.58,'5395','54174',270,338);
INSERT INTO "communes" VALUES('57','Donjeux','07',97,123,3.25,'4518','54309',219,275);
INSERT INTO "communes" VALUES('57','Boulay-Moselle','03',5070,4372,19.55,'4619','54648',202,365);
INSERT INTO "communes" VALUES('57','Ars-Laquenexy','23',937,741,6.25,'4372','54548',207,256);
INSERT INTO "communes" VALUES('57','Hultehouse','24',353,335,4.58,'5471','54133',205,463);
INSERT INTO "communes" VALUES('57','Wittring','50',806,822,8.09,'5344','54505',199,336);
INSERT INTO "communes" VALUES('57','Insviller','01',197,190,8.34,'5066','54320',218,259);
INSERT INTO "communes" VALUES('57','Lixheim','24',585,572,3.96,'5339','54195',268,336);
INSERT INTO "communes" VALUES('57','Arraincourt','09',130,114,4.74,'4662','54415',232,291);
INSERT INTO "communes" VALUES('57','Moncheux','33',149,120,7.35,'4444','54373',242,365);
INSERT INTO "communes" VALUES('57','Saint-Louis','24',683,701,9.28,'5390','54129',215,393);
INSERT INTO "communes" VALUES('57','Tragny','23',114,121,5.43,'4491','54399',230,284);
INSERT INTO "communes" VALUES('57','Petit-Réderching','26',1495,1562,11,'5519','54505',258,362);
INSERT INTO "communes" VALUES('57','Neunkirchen-lès-Bouzonville','04',338,295,3.8,'4687','54839',188,268);
INSERT INTO "communes" VALUES('57','Hanviller','02',248,217,8.66,'5692','54560',262,399);
INSERT INTO "communes" VALUES('57','Bébing','29',162,167,9.57,'5177','54125',258,324);
INSERT INTO "communes" VALUES('57','Varize','03',519,440,13.87,'4579','54594',205,347);
INSERT INTO "communes" VALUES('57','Florange','39',11454,10780,13.18,'4202','54802',153,232);
INSERT INTO "communes" VALUES('57','Berviller-en-Moselle','04',501,447,5.52,'4790','54746',207,362);
INSERT INTO "communes" VALUES('57','Tritteling-Redlach','09',511,402,6,'4750','54530',305,406);
INSERT INTO "communes" VALUES('57','Morville-lès-Vic','06',127,104,8.14,'4677','54239',220,317);
INSERT INTO "communes" VALUES('57','Waldhouse','36',391,381,6.58,'5700','54605',248,381);
INSERT INTO "communes" VALUES('57','Ranguevaux','15',774,797,10.17,'4132','54775',205,356);
INSERT INTO "communes" VALUES('57','Léning','01',301,210,6.49,'4967','54397',216,300);
INSERT INTO "communes" VALUES('57','Nitting','16',464,518,8.86,'5214','54079',263,340);
INSERT INTO "communes" VALUES('57','Bousbach','47',1125,949,5.91,'5125','54609',246,365);
INSERT INTO "communes" VALUES('57','Budling','21',174,157,5.73,'4466','54830',176,343);
INSERT INTO "communes" VALUES('57','Kœnigsmacker','21',2080,1892,18.4,'4378','54881',148,306);
INSERT INTO "communes" VALUES('57','Vitry-sur-Orne','22',2898,2336,7.61,'4191','54739',157,360);
INSERT INTO "communes" VALUES('57','Kirviller','28',147,103,2.54,'5163','54392',213,246);
INSERT INTO "communes" VALUES('57','Hestroff','04',440,410,7.43,'4554','54736',205,318);
INSERT INTO "communes" VALUES('57','Ritzing','31',136,146,6.15,'4583','54929',284,398);
INSERT INTO "communes" VALUES('57','Alzing','04',445,400,4.54,'4686','54755',214,313);
INSERT INTO "communes" VALUES('57','Rodemack','05',1103,804,9.96,'4333','54965',154,242);
INSERT INTO "communes" VALUES('57','Etting','26',760,776,7.06,'5380','54478',233,357);
INSERT INTO "communes" VALUES('57','Zoufftgen','05',872,609,16.7,'4218','54958',200,395);
INSERT INTO "communes" VALUES('57','Chanville','23',119,118,3.89,'4555','54492',233,310);
INSERT INTO "communes" VALUES('57','Porcelette','27',2570,2454,13.44,'4799','54618',213,342);
INSERT INTO "communes" VALUES('57','Saint-Hubert','35',214,197,16.04,'4440','54693',204,353);
INSERT INTO "communes" VALUES('57','Chémery-les-Deux','04',473,381,10.03,'4564','54777',209,284);
INSERT INTO "communes" VALUES('57','Berling','24',291,249,3.15,'5450','54223',220,308);
INSERT INTO "communes" VALUES('57','Goin','33',333,288,9.07,'4312','54430',184,270);
INSERT INTO "communes" VALUES('57','Gavisse','05',592,507,4.15,'4389','54925',148,180);
INSERT INTO "communes" VALUES('57','Viller','14',191,200,7.27,'4788','54428',251,331);
INSERT INTO "communes" VALUES('57','Antilly','35',122,107,4.74,'4349','54661',170,224);
INSERT INTO "communes" VALUES('57','Grémecey','06',102,111,9.04,'4521','54222',205,313);
INSERT INTO "communes" VALUES('57','Launstroff','31',258,224,7.81,'4622','54932',285,407);
INSERT INTO "communes" VALUES('57','Montbronn','26',1678,1668,14.99,'5526','54438',238,381);
INSERT INTO "communes" VALUES('57','Charly-Oradour','35',667,621,6.77,'4336','54638',177,245);
INSERT INTO "communes" VALUES('57','Sarraltroff','10',767,795,11.97,'5251','54193',235,326);
INSERT INTO "communes" VALUES('57','Soucht','26',1178,1187,10.75,'5554','54398',247,398);
INSERT INTO "communes" VALUES('57','Waldwisse','31',730,659,11.74,'4659','54904',247,374);
INSERT INTO "communes" VALUES('57','Romelfing','10',365,377,10.69,'5209','54256',227,307);
INSERT INTO "communes" VALUES('57','Montenach','31',431,410,9.19,'4493','54911',175,340);
INSERT INTO "communes" VALUES('57','Pierrevillers','48',1495,1346,5.83,'4183','54693',192,403);
INSERT INTO "communes" VALUES('57','<NAME>','37',4252,4275,1.59,'4238','54580',165,310);
INSERT INTO "communes" VALUES('57','Volstroff','21',1442,1367,12.22,'4358','54790',165,238);
INSERT INTO "communes" VALUES('57','Adaincourt','09',117,107,3.42,'4555','54450',221,273);
INSERT INTO "communes" VALUES('57','Veckersviller','10',275,255,4.79,'5381','54268',268,325);
INSERT INTO "communes" VALUES('57','Kuntzig','21',1153,1059,4.51,'4338','54829',161,200);
INSERT INTO "communes" VALUES('57','Luppy','23',516,483,16.26,'4453','54424',238,311);
INSERT INTO "communes" VALUES('57','Bibiche','04',440,356,12.52,'4601','54810',207,295);
INSERT INTO "communes" VALUES('57','Pournoy-la-Grasse','33',580,414,7.19,'4316','54461',172,246);
INSERT INTO "communes" VALUES('57','Amnéville','42',10100,9318,10.46,'4228','54734',157,366);
INSERT INTO "communes" VALUES('57','Marimont-lès-Bénestroff','01',46,45,3.99,'4941','54321',239,330);
INSERT INTO "communes" VALUES('57','Serémange-Erzange','15',4177,4036,3.75,'4171','54801',169,301);
INSERT INTO "communes" VALUES('57','Aulnois-sur-Seille','07',238,249,5.09,'4420','54299',187,272);
INSERT INTO "communes" VALUES('57','Elzange','21',779,701,4.01,'4387','54848',157,306);
INSERT INTO "communes" VALUES('57','Bouzonville','04',4132,4125,13.9,'4664','54769',192,310);
INSERT INTO "communes" VALUES('57','Gerbécourt','06',110,102,2.95,'4642','54280',206,354);
INSERT INTO "communes" VALUES('57','Ay-sur-Moselle','35',1540,1524,4.69,'4301','54715',154,182);
INSERT INTO "communes" VALUES('57','Charleville-sous-Bois','35',259,222,12.82,'4528','54655',215,347);
INSERT INTO "communes" VALUES('57','Mondelange','45',6009,5639,4.1,'4258','54736',154,162);
INSERT INTO "communes" VALUES('57','Uckange','39',6906,7891,5.56,'4243','54781',150,190);
INSERT INTO "communes" VALUES('57','Bettelainville','21',625,597,13.71,'4404','54708',198,301);
INSERT INTO "communes" VALUES('57','Haute-Vigneulles','09',429,407,9.53,'4690','54557',234,384);
INSERT INTO "communes" VALUES('57','Suisse','14',103,102,5.03,'4714','54407',233,297);
INSERT INTO "communes" VALUES('57','Schœneck','51',2794,2755,4.06,'5097','54689',207,281);
INSERT INTO "communes" VALUES('57','Zarbeling','08',67,58,3.87,'4834','54323',235,325);
INSERT INTO "communes" VALUES('57','Nouilly','35',501,417,2.4,'4356','54595',180,252);
INSERT INTO "communes" VALUES('57','Jussy','13',485,474,2.91,'4166','54557',165,345);
INSERT INTO "communes" VALUES('57','Forbach','98',21510,22784,16.32,'5070','54654',192,388);
INSERT INTO "communes" VALUES('57','Macheren','49',2920,2807,16.95,'4896','54555',217,332);
INSERT INTO "communes" VALUES('57','Montdidier','01',64,71,1.93,'4978','54366',234,307);
INSERT INTO "communes" VALUES('57','Villing','04',497,442,4.93,'4771','54757',240,366);
INSERT INTO "communes" VALUES('57','<NAME>-de-Guéblange','28',863,904,19.08,'5138','54422',211,261);
INSERT INTO "communes" VALUES('57','Saulny','48',1492,1166,9.8,'4188','54621',185,377);
INSERT INTO "communes" VALUES('57','Fèves','48',915,860,4.8,'4204','54662',167,373);
INSERT INTO "communes" VALUES('57','Servigny-lès-Sainte-Barbe','35',438,454,3.09,'4377','54610',205,281);
INSERT INTO "communes" VALUES('57','Courcelles-sur-Nied','23',973,895,5.06,'4412','54518',215,265);
INSERT INTO "communes" VALUES('57','Bronvaux','48',527,595,1.57,'4168','54663',215,354);
INSERT INTO "communes" VALUES('57','Rosselange','22',2897,3103,5.35,'4147','54732',164,331);
INSERT INTO "communes" VALUES('57','Rohrbach-lès-Bitche','26',2126,2113,13.28,'5476','54495',252,384);
INSERT INTO "communes" VALUES('57','Hargarten-aux-Mines','04',1145,1129,5.51,'4746','54694',210,354);
INSERT INTO "communes" VALUES('57','Woippy','37',13046,13758,14.58,'4239','54612',160,228);
INSERT INTO "communes" VALUES('57','Landange','16',248,199,4.85,'5136','54079',269,343);
INSERT INTO "communes" VALUES('57','Nousseviller-lès-Bitche','36',150,134,4.86,'5597','54559',265,374);
INSERT INTO "communes" VALUES('57','Francaltroff','01',758,678,12.46,'4957','54403',217,289);
INSERT INTO "communes" VALUES('57','Momerstroff','03',288,214,6.17,'4664','54626',275,372);
INSERT INTO "communes" VALUES('57','Wœlfling-lès-Sarreguemines','50',691,576,6.24,'5375','54539',270,357);
INSERT INTO "communes" VALUES('57','Moulins-lès-Metz','37',5110,4661,6.98,'4191','54563',165,196);
INSERT INTO "communes" VALUES('57','Boustroff','14',156,114,3.47,'4761','54445',254,301);
INSERT INTO "communes" VALUES('57','Tressange','11',1970,1984,9.36,'4050','54892',316,392);
INSERT INTO "communes" VALUES('57','Gondrexange','25',482,462,22.88,'5101','54094',266,319);
INSERT INTO "communes" VALUES('57','<NAME>','37',859,823,7.55,'4280','54632',161,167);
INSERT INTO "communes" VALUES('57','Lengelsheim','36',220,209,5.3,'5635','54565',265,388);
INSERT INTO "communes" VALUES('57','Schneckenbusch','29',301,269,2.12,'5268','54116',259,324);
INSERT INTO "communes" VALUES('57','Vry','35',547,439,15.08,'4437','54656',228,349);
INSERT INTO "communes" VALUES('57','Denting','03',245,207,9.67,'4664','54660',230,384);
INSERT INTO "communes" VALUES('57','Vic-sur-Seille','34',1344,1466,19.5,'4661','54203',195,315);
INSERT INTO "communes" VALUES('57','Freyming-Merlebach','41',13229,14457,9.06,'4958','54602',200,346);
INSERT INTO "communes" VALUES('57','Sainte-Ruffine','13',524,454,0.71,'4177','54561',166,226);
INSERT INTO "communes" VALUES('57','Lesse','07',192,183,8.34,'4631','54404',228,355);
INSERT INTO "communes" VALUES('57','Narbéfontaine','03',137,118,3.58,'4678','54602',284,376);
INSERT INTO "communes" VALUES('57','Rémering-lès-Puttelange','28',1135,835,9.24,'5114','54484',219,263);
INSERT INTO "communes" VALUES('57','Amelécourt','06',150,117,7.56,'4627','54266',202,365);
INSERT INTO "communes" VALUES('57','Barchain','29',109,99,1.7,'5140','54119',282,312);
INSERT INTO "communes" VALUES('57','Pontpierre','09',774,725,8.48,'4784','54491',243,345);
INSERT INTO "communes" VALUES('57','Siersthal','26',632,694,10.51,'5569','54493',258,403);
INSERT INTO "communes" VALUES('57','Hartzviller','29',918,871,4.14,'5278','54077',275,376);
INSERT INTO "communes" VALUES('57','Liéhon','33',107,129,5.38,'4357','54444',214,291);
INSERT INTO "communes" VALUES('57','Brouck','03',83,65,2.98,'4632','54589',283,357);
INSERT INTO "communes" VALUES('57','Orny','33',371,226,7.3,'4342','54469',210,271);
INSERT INTO "communes" VALUES('57','Évrange','05',232,175,2.25,'4288','55002',229,272);
INSERT INTO "communes" VALUES('57','Molring','01',9,17,3.26,'4983','54318',229,257);
INSERT INTO "communes" VALUES('57','Kerbach','51',1188,976,4.45,'5143','54629',231,360);
INSERT INTO "communes" VALUES('57','Flocourt','23',124,120,4.53,'4527','54414',226,273);
INSERT INTO "communes" VALUES('57','Manhoué','06',134,144,4.1,'4447','54251',190,271);
INSERT INTO "communes" VALUES('57','Illange','38',1979,2129,5.65,'4270','54809',147,215);
INSERT INTO "communes" VALUES('57','Rodalbe','01',204,183,10.57,'4851','54343',226,290);
INSERT INTO "communes" VALUES('57','Lezey','34',102,99,7.51,'4770','54169',200,262);
INSERT INTO "communes" VALUES('57','L''Hôpital','49',5434,5990,3.99,'4884','54620',220,300);
INSERT INTO "communes" VALUES('57','Waldweistroff','31',462,416,7.73,'4621','54844',224,291);
INSERT INTO "communes" VALUES('57','Burlioncourt','06',178,181,7.36,'4714','54290',207,307);
INSERT INTO "communes" VALUES('57','Tenteling','47',1008,996,7.19,'5113','54584',245,362);
INSERT INTO "communes" VALUES('57','Malling','31',557,512,4.42,'4400','54914',145,211);
INSERT INTO "communes" VALUES('57','Zimming','03',644,627,7.87,'4723','54584',285,411);
INSERT INTO "communes" VALUES('57','Alsting','51',2638,2662,5.73,'5180','54643',197,362);
INSERT INTO "communes" VALUES('57','Heining-lès-Bouzonville','04',489,491,6.03,'4725','54788',223,336);
INSERT INTO "communes" VALUES('57','Peltre','33',1801,1472,8.37,'4319','54528',179,246);
INSERT INTO "communes" VALUES('57','Holacourt','09',68,42,2.92,'4641','54414',228,262);
INSERT INTO "communes" VALUES('57','Plaine-de-Walsch','29',618,533,4.98,'5310','54101',238,414);
INSERT INTO "communes" VALUES('57','Kerprich-aux-Bois','29',141,131,6.45,'5137','54154',257,314);
INSERT INTO "communes" VALUES('57','Gosselming','10',618,536,10.15,'5185','54213',232,285);
INSERT INTO "communes" VALUES('57','Marthille','07',184,178,10.2,'4692','54361',249,359);
INSERT INTO "communes" VALUES('57','Jury','33',1129,979,3.17,'4352','54522',191,245);
INSERT INTO "communes" VALUES('57','Rozérieulles','13',1404,1325,6.58,'4161','54563',184,342);
INSERT INTO "communes" VALUES('57','Kappelkinger','28',399,402,8.58,'5081','54412',213,247);
INSERT INTO "communes" VALUES('57','Pontoy','33',413,448,10.12,'4386','54463',222,315);
INSERT INTO "communes" VALUES('57','Plesnois','48',775,707,3.11,'4188','54636',188,376);
INSERT INTO "communes" VALUES('57','Amanvillers','48',2163,1928,9.76,'4118','54630',245,362);
INSERT INTO "communes" VALUES('57','Fossieux','07',160,149,5.06,'4432','54280',189,258);
INSERT INTO "communes" VALUES('57','Cutting','08',111,148,5.62,'4998','54276',213,256);
INSERT INTO "communes" VALUES('57','Pévange','06',52,53,1.94,'4757','54342',222,259);
INSERT INTO "communes" VALUES('57','Metzing','47',630,537,6.45,'5136','54563',213,329);
INSERT INTO "communes" VALUES('57','Petit-Tenquin','14',228,198,4.88,'5028','54432',215,251);
INSERT INTO "communes" VALUES('57','Hellimer','14',621,486,10.42,'4992','54442',218,334);
INSERT INTO "communes" VALUES('57','Racrange','14',633,599,7.16,'4818','54359',229,283);
INSERT INTO "communes" VALUES('57','Puttelange-lès-Thionville','05',900,609,10.67,'4367','54983',165,258);
INSERT INTO "communes" VALUES('57','Vionville','13',175,146,9.65,'4013','54547',240,307);
INSERT INTO "communes" VALUES('57','Aube','23',260,203,5.31,'4447','54474',219,282);
INSERT INTO "communes" VALUES('57','Vantoux','20',923,808,2.45,'4327','54589',174,258);
INSERT INTO "communes" VALUES('57','Enchenberg','26',1241,1193,9.73,'5558','54460',252,408);
INSERT INTO "communes" VALUES('57','Saint-Jean-de-Bassel','10',332,338,10.05,'5171','54226',232,275);
INSERT INTO "communes" VALUES('57','Entrange','05',1316,1205,3.99,'4186','54903',186,416);
INSERT INTO "communes" VALUES('57','Metz','99',120738,123704,41.94,'4267','54578',162,256);
INSERT INTO "communes" VALUES('57','Russange','11',1074,1069,3.46,'4019','54979',294,415);
INSERT INTO "communes" VALUES('57','Chailly-lès-Ennery','35',348,272,7.29,'4332','54674',169,244);
INSERT INTO "communes" VALUES('57','Lindre-Basse','08',223,231,8.28,'4901','54225',205,248);
INSERT INTO "communes" VALUES('57','Maizeroy','23',339,286,8.73,'4505','54539',212,325);
INSERT INTO "communes" VALUES('57','Blanche-Église','08',139,117,6.89,'4818','54213',203,238);
INSERT INTO "communes" VALUES('57','Guébestroff','08',65,54,3.81,'4869','54257',209,333);
INSERT INTO "communes" VALUES('57','Vescheim','24',245,228,1.81,'5435','54218',237,295);
INSERT INTO "communes" VALUES('57','Thicourt','09',146,146,5.5,'4688','54432',234,336);
INSERT INTO "communes" VALUES('57','Wintersbourg','24',253,180,3.95,'5392','54207',254,334);
INSERT INTO "communes" VALUES('57','Oberstinzel','10',325,274,5.07,'5219','54216',232,323);
INSERT INTO "communes" VALUES('57','Diffembach-lès-Hellimer','14',375,310,5.79,'5006','54447',216,265);
INSERT INTO "communes" VALUES('57','Montoy-Flanville','23',1115,1164,6.32,'4382','54579',189,279);
INSERT INTO "communes" VALUES('57','Novéant-sur-Moselle','13',1961,1825,12.89,'4122','54469',168,371);
INSERT INTO "communes" VALUES('57','Hilbesheim','10',613,515,7.52,'5288','54196',257,337);
INSERT INTO "communes" VALUES('57','Pouilly','33',673,719,5.11,'4277','54501',169,223);
INSERT INTO "communes" VALUES('57','Sillegny','33',449,352,10.46,'4249','54431',172,237);
INSERT INTO "communes" VALUES('57','Lucy','07',207,200,7.36,'4593','54380',228,315);
INSERT INTO "communes" VALUES('57','Sanry-sur-Nied','23',321,343,4.81,'4453','54503',215,300);
INSERT INTO "communes" VALUES('57','Arry','13',500,407,6.88,'4135','54439',170,386);
INSERT INTO "communes" VALUES('57','Guébling','08',140,145,6.86,'4898','54293',216,333);
INSERT INTO "communes" VALUES('57','Juville','07',111,98,6.05,'4456','54367',252,392);
INSERT INTO "communes" VALUES('57','Vaxy','06',149,134,5.31,'4659','54287',206,337);
INSERT INTO "communes" VALUES('57','Puzieux','07',173,142,6.27,'4480','54325',207,401);
INSERT INTO "communes" VALUES('57','Alaincourt-la-Côte','07',143,91,4.17,'4450','54331',195,399);
INSERT INTO "communes" VALUES('57','Conthil','06',179,163,9.31,'4806','54325',219,320);
INSERT INTO "communes" VALUES('57','Hombourg-Haut','49',7440,9481,12.25,'4935','54584',209,354);
INSERT INTO "communes" VALUES('57','Angevillers','11',1270,1186,8.71,'4118','54875',315,418);
INSERT INTO "communes" VALUES('57','Frauenberg','50',547,568,2.75,'5323','54596',198,276);
INSERT INTO "communes" VALUES('57','Veckring','21',680,687,6.65,'4492','54821',185,349);
INSERT INTO "communes" VALUES('57','Rhodes','29',93,56,11.39,'5067','54177',257,283);
INSERT INTO "communes" VALUES('57','Gorze','13',1220,1393,17.94,'4069','54504',192,356);
INSERT INTO "communes" VALUES('57','Klang','21',244,236,4.19,'4482','54799',195,335);
INSERT INTO "communes" VALUES('57','Vergaville','08',566,545,13.17,'4897','54264',205,333);
INSERT INTO "communes" VALUES('57','Maizery','23',199,127,3.16,'4444','54562',230,291);
INSERT INTO "communes" VALUES('57','Jouy-aux-Arches','13',1561,1559,6.01,'4157','54513',165,314);
INSERT INTO "communes" VALUES('57','Harreberg','29',391,352,6.34,'5371','54073',259,505);
INSERT INTO "communes" VALUES('57','Rédange','11',984,827,5.5,'3981','54994',299,425);
INSERT INTO "communes" VALUES('57','Hommert','29',356,323,3.49,'5379','54086',250,461);
INSERT INTO "communes" VALUES('57','Clouange','22',3907,3642,3.01,'4178','54736',164,327);
INSERT INTO "communes" VALUES('57','Frémery','07',63,66,4.39,'4597','54355',228,280);
INSERT INTO "communes" VALUES('57','Secourt','33',209,185,7.31,'4387','54386',227,281);
INSERT INTO "communes" VALUES('57','Vœlfling-lès-Bouzonville','04',181,197,2.9,'4745','54769',237,322);
INSERT INTO "communes" VALUES('57','Hayange','15',15604,15225,12.21,'4139','54811',176,344);
INSERT INTO "communes" VALUES('57','Ommeray','34',108,110,10.12,'4834','54137',213,282);
INSERT INTO "communes" VALUES('57','Héming','16',499,458,3.69,'5144','54105',255,322);
INSERT INTO "communes" VALUES('57','Garde','34',188,199,22.26,'4854','54102',220,283);
INSERT INTO "communes" VALUES('57','Rémeling','31',315,260,6.47,'4612','54897',253,349);
INSERT INTO "communes" VALUES('57','Étangs','35',424,301,6.05,'4492','54603',207,304);
INSERT INTO "communes" VALUES('57','Talange','43',7515,7790,3.7,'4264','54707',154,184);
INSERT INTO "communes" VALUES('57','Silly-sur-Nied','23',679,734,4.54,'4470','54578',210,290);
INSERT INTO "communes" VALUES('57','Chenois','07',63,53,3.62,'4623','54399',226,311);
INSERT INTO "communes" VALUES('57','Lorquin','16',1310,1286,8.77,'5178','54077',260,341);
INSERT INTO "communes" VALUES('57','Berg-sur-Moselle','05',430,373,2.91,'4416','54923',145,227);
INSERT INTO "communes" VALUES('57','Fameck','45',12637,12638,12.45,'4192','54777',167,363);
INSERT INTO "communes" VALUES('57','Rémelfing','50',1448,1484,2.62,'5284','54546',195,263);
INSERT INTO "communes" VALUES('57','Avricourt','25',698,646,10.32,'4966','54056',240,334);
INSERT INTO "communes" VALUES('57','Marange-Zondrange','09',311,279,8.28,'4668','54569',239,374);
INSERT INTO "communes" VALUES('57','Arriance','09',228,226,6.98,'4622','54464',233,294);
INSERT INTO "communes" VALUES('57','Achen','26',1010,937,12.12,'5385','54493',225,336);
INSERT INTO "communes" VALUES('57','Schweyen','36',313,311,11.35,'5615','54621',236,361);
INSERT INTO "communes" VALUES('57','Holving','28',1259,1065,10.75,'5143','54457',214,263);
INSERT INTO "communes" VALUES('57','Petite-Rosselle','51',6593,6784,5.05,'5023','54680',190,313);
INSERT INTO "communes" VALUES('57','Tarquimpol','08',68,69,4.09,'4913','54205',210,243);
INSERT INTO "communes" VALUES('57','Riche','06',189,223,6.34,'4768','54323',213,270);
INSERT INTO "communes" VALUES('57','Hambach','50',2736,2500,17.6,'5222','54512',213,281);
INSERT INTO "communes" VALUES('57','Lessy','13',800,856,2.85,'4177','54578',183,344);
INSERT INTO "communes" VALUES('57','Failly','35',562,521,6.74,'4364','54621',187,304);
INSERT INTO "communes" VALUES('57','Diane-Capelle','29',224,216,6.07,'5108','54143',259,302);
INSERT INTO "communes" VALUES('57','Altviller','27',565,534,4.85,'4884','54525',246,310);
INSERT INTO "communes" VALUES('57','Condé-Northen','03',611,526,10.92,'4551','54616',204,290);
INSERT INTO "communes" VALUES('57','Rouhling','50',2035,1956,6.02,'5184','54597',241,344);
INSERT INTO "communes" VALUES('57','Ars-sur-Moselle','13',4846,4999,11.6,'4153','54531',165,344);
INSERT INTO "communes" VALUES('57','Hinckange','03',304,286,6.07,'4566','54656',200,302);
INSERT INTO "communes" VALUES('57','Fénétrange','10',732,820,14.49,'5204','54273',227,317);
INSERT INTO "communes" VALUES('57','Hangviller','24',281,286,4.52,'5436','54233',217,302);
INSERT INTO "communes" VALUES('57','Basse-Ham','21',2250,1883,10.05,'4340','54873',149,249);
INSERT INTO "communes" VALUES('57','Obervisse','03',158,126,4.4,'4721','54613',327,411);
INSERT INTO "communes" VALUES('57','Flétrange','09',901,734,6.07,'4692','54514',232,377);
INSERT INTO "communes" VALUES('57','Valmunster','03',93,94,3.14,'4634','54714',209,320);
INSERT INTO "communes" VALUES('57','Mondorff','05',575,446,3.84,'4371','55004',187,263);
INSERT INTO "communes" VALUES('57','Lommerange','11',285,313,7.97,'4036','54813',230,327);
INSERT INTO "communes" VALUES('57','Erstroff','14',209,177,5.05,'4932','54422',227,278);
INSERT INTO "communes" VALUES('57','Boust','05',1131,717,7.01,'4281','54927',166,259);
INSERT INTO "communes" VALUES('57','Honskirch','01',222,184,6.55,'5133','54379',213,252);
INSERT INTO "communes" VALUES('57','Havange','11',456,330,9.65,'4063','54876',308,367);
INSERT INTO "communes" VALUES('57','Raville','23',259,188,7.06,'4610','54548',215,310);
INSERT INTO "communes" VALUES('57','Foville','33',93,78,3.45,'4430','54351',214,357);
INSERT INTO "communes" VALUES('57','Guénange','21',7127,7125,8.35,'4290','54775',153,233);
INSERT INTO "communes" VALUES('57','Hombourg-Budange','21',511,405,15.44,'4454','54774',182,338);
INSERT INTO "communes" VALUES('57','Pange','23',930,780,8.57,'4467','54539',212,289);
INSERT INTO "communes" VALUES('57','Oudrenne','21',747,694,20.38,'4434','54867',167,310);
INSERT INTO "communes" VALUES('57','Langatte','29',529,427,12.97,'5160','54173',256,307);
INSERT INTO "communes" VALUES('57','Diebling','47',1647,1627,7.84,'5115','54565',225,340);
INSERT INTO "communes" VALUES('57','Nébing','01',371,370,7.36,'4971','54338',227,296);
INSERT INTO "communes" VALUES('57','Bousse','21',2910,2334,8.81,'4290','54755',150,234);
INSERT INTO "communes" VALUES('57','Lambach','26',547,563,5.54,'5581','54483',267,428);
INSERT INTO "communes" VALUES('57','Fontoy','11',3100,3147,16.88,'4065','54840',205,387);
INSERT INTO "communes" VALUES('57','Sarreinsming','50',1294,1247,6.98,'5302','54543',194,310);
INSERT INTO "communes" VALUES('57','Ogy','23',563,439,3.74,'4416','54561',242,281);
INSERT INTO "communes" VALUES('57','Frémestroff','14',295,303,5.51,'4938','54464',248,342);
INSERT INTO "communes" VALUES('57','Bliesbruck','50',1015,984,10.88,'5382','54573',202,362);
INSERT INTO "communes" VALUES('57','Thionville','97',41015,40863,49.86,'4258','54842',147,423);
INSERT INTO "communes" VALUES('57','Sailly-Achâtel','33',225,205,8.18,'4402','54376',214,308);
INSERT INTO "communes" VALUES('57','Teting-sur-Nied','09',1379,1178,9.83,'4808','54508',245,357);
INSERT INTO "communes" VALUES('57','Saint-Louis-lès-Bitche','02',534,633,4.53,'5574','54431',256,403);
INSERT INTO "communes" VALUES('57','Ernestviller','28',513,509,4.44,'5142','54519',225,276);
INSERT INTO "communes" VALUES('57','Sarrebourg','29',12565,13324,16.4,'5241','54150',244,325);
INSERT INTO "communes" VALUES('57','Obreck','06',52,40,3.24,'4728','54274',208,306);
INSERT INTO "communes" VALUES('57','Neufmoulins','16',38,37,1.93,'5145','54091',265,333);
INSERT INTO "communes" VALUES('57','Moncourt','34',83,74,6.74,'4779','54132',215,290);
INSERT INTO "communes" VALUES('57','Haraucourt-sur-Seille','06',117,125,8.08,'4742','54222',199,324);
INSERT INTO "communes" VALUES('57','Guinglange','09',299,237,10.38,'4655','54526',222,308);
INSERT INTO "communes" VALUES('57','Bourscheid','24',217,227,3.99,'5393','54191',279,332);
INSERT INTO "communes" VALUES('57','Éguelshardt','02',443,401,16.8,'5728','54465',234,400);
INSERT INTO "communes" VALUES('57','Flastroff','31',309,325,8.38,'4662','54852',214,307);
INSERT INTO "communes" VALUES('57','Languimberg','25',186,175,18.38,'5025','54162',238,304);
INSERT INTO "communes" VALUES('57','Réning','01',129,130,3.95,'5018','54395',215,261);
INSERT INTO "communes" VALUES('57','Tincry','07',181,133,8.47,'4526','54337',226,378);
INSERT INTO "communes" VALUES('57','Hagen','05',254,121,3.51,'4262','54999',238,290);
INSERT INTO "communes" VALUES('57','Belles-Forêts','10',251,238,26.57,'5062','54228',215,290);
INSERT INTO "communes" VALUES('57','Solgne','33',1060,992,7.29,'4398','54407',240,299);
INSERT INTO "communes" VALUES('57','Béchy','23',542,523,9.57,'4493','54429',234,311);
INSERT INTO "communes" VALUES('57','Burtoncourt','35',201,173,5.11,'4529','54694',219,343);
INSERT INTO "communes" VALUES('57','Scy-Chazelles','37',2726,2481,4.52,'4197','54571',165,360);
INSERT INTO "communes" VALUES('57','Inglange','21',397,256,5.72,'4402','54830',164,287);
INSERT INTO "communes" VALUES('57','Gréning','14',142,133,2.78,'5008','54414',220,250);
INSERT INTO "communes" VALUES('57','Ébersviller','04',865,658,14.07,'4518','54752',210,351);
INSERT INTO "communes" VALUES('57','Grindorff-Bizing','31',318,268,6.86,'4635','54864',230,298);
INSERT INTO "communes" VALUES('57','Hermelange','16',251,186,2.58,'5200','54088',255,334);
INSERT INTO "communes" VALUES('57','Guenviller','41',671,612,4.74,'4958','54563',264,361);
INSERT INTO "communes" VALUES('57','Réchicourt-le-Château','25',595,726,24.14,'5004','54072',242,333);
INSERT INTO "communes" VALUES('57','Donnelay','34',201,218,13.02,'4827','54169',206,259);
INSERT INTO "communes" VALUES('57','Niderhoff','16',297,289,5.3,'5189','54042',272,376);
INSERT INTO "communes" VALUES('57','Longeville-lès-Metz','37',3826,4017,2.71,'4221','54572',165,315);
INSERT INTO "communes" VALUES('57','Jallaucourt','07',162,138,8.41,'4500','54265',217,295);
INSERT INTO "communes" VALUES('57','Maxstadt','14',317,252,7.91,'4952','54494',259,308);
INSERT INTO "communes" VALUES('57','Henriville','41',719,764,3.95,'5019','54551',260,302);
INSERT INTO "communes" VALUES('57','Malaucourt-sur-Seille','07',141,143,7.17,'4469','54268',191,276);
INSERT INTO "communes" VALUES('57','Seingbouse','41',1907,1709,8.05,'4994','54571',260,348);
INSERT INTO "communes" VALUES('57','Bettviller','26',835,741,18.41,'5499','54533',252,376);
INSERT INTO "communes" VALUES('57','Sotzeling','06',22,29,3.66,'4777','54292',220,313);
INSERT INTO "communes" VALUES('57','Etzling','51',1136,1189,4.94,'5140','54643',265,386);
INSERT INTO "communes" VALUES('57','Zommange','08',36,35,6.34,'4965','54249',210,242);
INSERT INTO "communes" VALUES('57','Brulange','14',101,93,5.85,'4681','54412',232,354);
INSERT INTO "communes" VALUES('57','Coin-sur-Seille','33',294,277,3.31,'4250','54455',170,232);
INSERT INTO "communes" VALUES('57','Hottviller','36',595,646,8.36,'5585','54531',252,388);
INSERT INTO "communes" VALUES('57','Coincy','23',306,286,7.15,'4385','54566',194,259);
INSERT INTO "communes" VALUES('57','Saint-Jean-Rohrbach','28',1003,958,12.19,'5051','54472',219,271);
INSERT INTO "communes" VALUES('57','Adelange','09',227,208,5.81,'4750','54450',251,317);
INSERT INTO "communes" VALUES('57','Diesen','27',1092,1142,5.47,'4824','54642',213,270);
INSERT INTO "communes" VALUES('57','Rochonvillers','11',214,207,5.64,'4102','54905',321,412);
INSERT INTO "communes" VALUES('57','Coin-lès-Cuvry','33',721,669,6.65,'4244','54482',171,235);
INSERT INTO "communes" VALUES('57','Moyenvic','34',371,341,14.48,'4695','54197',198,317);
INSERT INTO "communes" VALUES('57','Neufvillage','01',38,50,0.61,'4938','54375',220,233);
INSERT INTO "communes" VALUES('57','Guerstling','04',422,344,4.42,'4714','54809',185,323);
INSERT INTO "communes" VALUES('57','Filstroff','04',869,784,16.76,'4671','54803',188,276);
INSERT INTO "communes" VALUES('57','Aumetz','11',2308,2218,10.35,'4009','54909',349,408);
INSERT INTO "communes" VALUES('57','Hagondange','43',9414,8668,5.5,'4257','54727',154,209);
INSERT INTO "communes" VALUES('57','Ormersviller','36',366,299,7.3,'5543','54594',242,376);
INSERT INTO "communes" VALUES('57','Rurange-lès-Thionville','21',2211,1630,8.87,'4329','54752',159,231);
INSERT INTO "communes" VALUES('57','Assenoncourt','25',138,119,16.69,'4955','54190',210,253);
INSERT INTO "communes" VALUES('57','Chicourt','07',87,98,5.52,'4631','54353',239,340);
INSERT INTO "communes" VALUES('57','Rustroff','31',546,513,3.23,'4484','54937',147,358);
INSERT INTO "communes" VALUES('57','Château-Rouge','04',223,179,4.32,'4734','54756',249,348);
INSERT INTO "communes" VALUES('57','Glatigny','35',280,254,6.23,'4442','54607',215,298);
INSERT INTO "communes" VALUES('57','Spicheren','51',3212,3288,8.11,'5146','54658',220,357);
INSERT INTO "communes" VALUES('57','Achain','06',83,94,4.79,'4728','54349',227,330);
INSERT INTO "communes" VALUES('57','Meisenthal','02',716,766,6.36,'5573','54406',255,431);
INSERT INTO "communes" VALUES('57','Apach','31',983,814,3.35,'4487','54954',145,365);
INSERT INTO "communes" VALUES('57','Bettange','03',214,179,3.73,'4606','54707',197,260);
INSERT INTO "communes" VALUES('57','Laquenexy','23',1020,941,9.09,'4417','54531',215,270);
INSERT INTO "communes" VALUES('57','Terville','38',6445,6475,3.83,'4219','54827',155,188);
INSERT INTO "communes" VALUES('57','Menskirch','04',155,141,4.48,'4543','54799',219,280);
INSERT INTO "communes" VALUES('57','Dalem','04',660,575,7.32,'4749','54712',206,355);
INSERT INTO "communes" VALUES('57','Kemplich','21',158,119,5.54,'4506','54812',228,350);
INSERT INTO "communes" VALUES('57','Wuisse','06',62,77,14.56,'4794','54279',216,331);
INSERT INTO "communes" VALUES('57','Puttelange-aux-Lacs','28',3147,3103,16.66,'5105','54503',220,277);
INSERT INTO "communes" VALUES('57','Azoudange','25',118,106,15.73,'4972','54155',217,302);
INSERT INTO "communes" VALUES('57','Flévy','35',570,495,11.58,'4343','54708',172,259);
INSERT INTO "communes" VALUES('57','Bermering','01',240,223,5.73,'4858','54368',229,282);
INSERT INTO "communes" VALUES('57','Mégange','03',182,154,4.96,'4554','54687',205,330);
INSERT INTO "communes" VALUES('57','Hundling','50',1358,1373,6.63,'5161','54563',209,321);
INSERT INTO "communes" VALUES('57','Moyeuvre-Grande','22',7939,8992,9.59,'4121','54725',168,330);
INSERT INTO "communes" VALUES('57','Bannay','03',83,71,4.11,'4590','54586',212,327);
INSERT INTO "communes" VALUES('57','Lixing-lès-Rouhling','50',930,828,4.22,'5175','54615',210,343);
INSERT INTO "communes" VALUES('57','Lutzelbourg','24',625,695,5.84,'5461','54149',205,397);
INSERT INTO "communes" VALUES('57','Château-Bréhain','07',76,82,6.11,'4654','54338',238,335);
INSERT INTO "communes" VALUES('57','Munster','01',222,197,6.6,'5077','54351',217,248);
INSERT INTO "communes" VALUES('57','Bacourt','07',117,109,3.89,'4522','54363',237,357);
INSERT INTO "communes" VALUES('57','Carling','49',3655,3736,2.67,'4866','54630',228,267);
INSERT INTO "communes" VALUES('57','Postroff','10',208,181,5,'5270','54279',227,334);
INSERT INTO "communes" VALUES('57','Faulquemont','09',5549,5479,18.79,'4736','54490',241,401);
INSERT INTO "communes" VALUES('57','Garrebourg','24',523,496,8.34,'5440','54124',215,491);
INSERT INTO "communes" VALUES('57','Farschviller','47',1513,1378,11.25,'5064','54548',232,291);
INSERT INTO "communes" VALUES('57','Laneuveville-lès-Lorquin','16',97,73,2.24,'5184','54060',267,354);
INSERT INTO "communes" VALUES('57','Dieuze','08',3780,3608,9.35,'4870','54236',205,245);
INSERT INTO "communes" VALUES('57','Betting','41',881,904,4.45,'4978','54587',204,360);
INSERT INTO "communes" VALUES('57','Liederschiedt','02',133,132,5.99,'5736','54579',257,422);
INSERT INTO "communes" VALUES('57','Hattigny','16',211,160,13.14,'5143','54035',291,372);
INSERT INTO "communes" VALUES('57','Liocourt','07',144,125,3.17,'4452','54345',253,398);
INSERT INTO "communes" VALUES('57','Han-sur-Nied','09',241,210,2.02,'4556','54434',223,252);
INSERT INTO "communes" VALUES('57','Folkling','47',1358,1390,11.87,'5064','54608',233,373);
INSERT INTO "communes" VALUES('57','Rémelfang','04',125,154,3.3,'4637','54745',195,301);
INSERT INTO "communes" VALUES('57','Mittelbronn','24',665,639,7.71,'5431','54189',249,347);
INSERT INTO "communes" VALUES('57','Philippsbourg','02',596,531,23.71,'5812','54426',205,510);
INSERT INTO "communes" VALUES('57','Cappel','41',701,722,5.97,'5015','54525',232,301);
INSERT INTO "communes" VALUES('57','Noisseville','35',1017,935,2.6,'4374','54594',183,254);
INSERT INTO "communes" VALUES('57','Norroy-le-Veneur','48',1068,902,8.45,'4185','54647',167,370);
INSERT INTO "communes" VALUES('57','Vittoncourt','09',393,283,9.51,'4548','54467',221,277);
INSERT INTO "communes" VALUES('57','Grosbliederstroff','50',3302,3333,13.07,'5212','54618',189,357);
INSERT INTO "communes" VALUES('57','Hérange','24',111,117,2.73,'5370','54195',274,334);
INSERT INTO "communes" VALUES('57','Walschbronn','36',524,525,10.11,'5716','54610',247,387);
INSERT INTO "communes" VALUES('57','Destry','14',90,82,6.93,'4720','54382',237,307);
INSERT INTO "communes" VALUES('57','Laning','14',550,591,6.71,'4932','54483',248,331);
INSERT INTO "communes" VALUES('57','Gomelange','03',559,404,9.4,'4593','54714',197,260);
INSERT INTO "communes" VALUES('57','Bousseviller','36',137,150,4.01,'5697','54579',257,384);
INSERT INTO "communes" VALUES('57','Brouderdorff','29',928,732,4.75,'5294','54110',266,355);
INSERT INTO "communes" VALUES('57','Helstroff','03',472,348,7.91,'4598','54614',215,359);
INSERT INTO "communes" VALUES('57','Kirschnaumen','31',469,433,19.93,'4553','54886',255,351);
INSERT INTO "communes" VALUES('57','Roupeldange','03',378,376,2.52,'4591','54675',198,242);
INSERT INTO "communes" VALUES('57','Bourdonnay','34',260,239,17.4,'4880','54133',217,283);
INSERT INTO "communes" VALUES('57','Chieulles','20',386,350,2.61,'4325','54621',162,223);
INSERT INTO "communes" VALUES('57','Courcelles-Chaussy','23',3041,2391,19.02,'4520','54566',207,307);
INSERT INTO "communes" VALUES('57','Rémering','04',458,484,4.94,'4769','54739',217,377);
INSERT INTO "communes" VALUES('57','Malroy','35',386,339,3.54,'4306','54640',160,205);
INSERT INTO "communes" VALUES('57','Salonnes','06',173,165,12.69,'4622','54212',195,308);
INSERT INTO "communes" VALUES('57','Mouterhouse','02',289,305,42.6,'5676','54426',212,423);
INSERT INTO "communes" VALUES('57','Bitche','02',5319,5751,41.13,'5654','54502',249,432);
INSERT INTO "communes" VALUES('57','Eincheville','14',227,189,6.78,'4742','54425',249,312);
INSERT INTO "communes" VALUES('57','Valmont','27',3333,3143,9.24,'4847','54539',246,387);
INSERT INTO "communes" VALUES('57','Bistroff','14',336,299,19.28,'4864','54436',245,315);
INSERT INTO "communes" VALUES('57','Augny','20',2233,1737,14.98,'4205','54510',165,361);
INSERT INTO "communes" VALUES('57','Nousseviller-Saint-Nabor','47',1170,949,6.13,'5149','54577',255,372);
INSERT INTO "communes" VALUES('57','Maizières-lès-Metz','43',10710,9344,8.82,'4250','54680',159,206);
INSERT INTO "communes" VALUES('57','Château-Voué','06',119,98,7.47,'4763','54279',214,334);
INSERT INTO "communes" VALUES('57','Richeling','28',356,312,4.21,'5138','54477',217,264);
INSERT INTO "communes" VALUES('57','Laneuveville-en-Saulnois','07',274,184,6.49,'4554','54297',255,342);
INSERT INTO "communes" VALUES('57','Lemoncourt','07',74,59,5.41,'4506','54296',215,292);
INSERT INTO "communes" VALUES('57','Bettborn','10',427,353,6.57,'5205','54223',232,322);
INSERT INTO "communes" VALUES('57','Erching','36',431,473,6.76,'5474','54568',268,392);
INSERT INTO "communes" VALUES('57','Lubécourt','06',55,57,3.45,'4643','54269',203,358);
INSERT INTO "communes" VALUES('57','Freybouse','14',420,327,5.87,'4934','54450',248,325);
INSERT INTO "communes" VALUES('57','Loupershouse','50',966,892,7.73,'5085','54535',225,291);
INSERT INTO "communes" VALUES('57','Many','09',261,237,8.22,'4650','54447',242,328);
INSERT INTO "communes" VALUES('57','Moussey','25',647,644,7.89,'4940','54082',236,280);
INSERT INTO "communes" VALUES('57','Reyersviller','02',371,361,8.32,'5620','54491',266,428);
INSERT INTO "communes" VALUES('57','Vany','20',332,245,3.1,'4339','54619',182,258);
INSERT INTO "communes" VALUES('57','Rahling','26',813,791,21.3,'5420','54436',234,366);
INSERT INTO "communes" VALUES('57','Lostroff','01',72,82,4.96,'5018','54288',222,285);
INSERT INTO "communes" VALUES('57','Hommarting','29',875,663,10.19,'5343','54154',257,336);
INSERT INTO "communes" VALUES('57','Mittersheim','10',603,568,16.77,'5117','54290',221,272);
INSERT INTO "communes" VALUES('57','Dornot','13',196,186,1.13,'4132','54498',168,336);
INSERT INTO "communes" VALUES('57','Domnom-lès-Dieuze','08',96,100,6.63,'4984','54290',213,290);
INSERT INTO "communes" VALUES('57','Longeville-lès-Saint-Avold','09',3794,3750,24.54,'4780','54574',228,411);
INSERT INTO "communes" VALUES('57','Bionville-sur-Nied','03',375,363,8.43,'4604','54561',212,329);
INSERT INTO "communes" VALUES('57','Guerting','03',879,856,5.64,'4759','54655',223,345);
INSERT INTO "communes" VALUES('57','Rosbruck','47',764,912,1.41,'5016','54621',198,320);
INSERT INTO "communes" VALUES('57','Woustviller','50',3258,3307,10.97,'5192','54529',209,275);
INSERT INTO "communes" VALUES('57','Béning-lès-Saint-Avold','41',1238,1231,3.69,'5003','54591',202,337);
INSERT INTO "communes" VALUES('57','Harprich','14',206,191,8.78,'4799','54402',242,333);
INSERT INTO "communes" VALUES('57','Chesny','33',535,370,4.34,'4339','54505',190,233);
INSERT INTO "communes" VALUES('57','Laudrefang','09',364,387,4.7,'4782','54537',305,394);
INSERT INTO "communes" VALUES('57','Vasperviller','16',305,281,1.54,'5262','54037',275,374);
INSERT INTO "communes" VALUES('57','Fleisheim','10',126,124,4.11,'5362','54210',278,334);
INSERT INTO "communes" VALUES('57','Saint-Médard','08',105,113,9.89,'4776','54235',199,333);
INSERT INTO "communes" VALUES('57','Varsberg','03',952,913,4.15,'4769','54636',222,395);
INSERT INTO "communes" VALUES('57','Vieux-Lixheim','10',255,204,6.45,'5329','54198',267,337);
INSERT INTO "communes" VALUES('57','Verny','33',1931,1502,3.9,'4296','54453',172,246);
INSERT INTO "communes" VALUES('57','Albestroff','01',642,636,19.3,'5022','54369',217,275);
INSERT INTO "communes" VALUES('57','Schorbach','02',576,621,13.36,'5632','54533',273,413);
INSERT INTO "communes" VALUES('57','Xanrey','34',116,126,7.81,'4717','54168',200,282);
INSERT INTO "communes" VALUES('57','Cheminot','33',664,535,11.5,'4225','54385',172,255);
INSERT INTO "communes" VALUES('57','Vibersviller','01',451,405,13.02,'5120','54350',216,266);
INSERT INTO "communes" VALUES('57','Ottange','11',2696,2592,15.48,'4091','54936',295,428);
INSERT INTO "communes" VALUES('57','Stuckange','21',1027,724,4.44,'4337','54807',172,210);
INSERT INTO "communes" VALUES('57','Fonteny','07',130,119,15.7,'4587','54312',238,350);
INSERT INTO "communes" VALUES('57','Saint-Georges','25',213,216,8.1,'5103','54064',279,351);
INSERT INTO "communes" VALUES('57','Zilling','24',270,257,3.58,'5415','54203',238,304);
INSERT INTO "communes" VALUES('57','Schalbach','10',301,292,12.58,'5371','54247',262,332);
INSERT INTO "communes" VALUES('57','Puttigny','06',75,87,7.47,'4683','54281',205,267);
INSERT INTO "communes" VALUES('57','Baudrecourt','07',184,172,5.07,'4572','54404',224,271);
INSERT INTO "communes" VALUES('57','Dolving','10',377,328,6.66,'5204','54195',237,313);
INSERT INTO "communes" VALUES('57','Sainte-Barbe','35',725,672,13.84,'4406','54621',225,318);
INSERT INTO "communes" VALUES('57','Rombas','42',9937,10742,11.69,'4176','54722',162,383);
INSERT INTO "communes" VALUES('57','Sanry-lès-Vigy','35',525,500,5.55,'4382','54648',185,277);
INSERT INTO "communes" VALUES('57','Hémilly','09',144,148,14.04,'4627','54513',238,293);
INSERT INTO "communes" VALUES('57','Coume','03',684,591,14.9,'4706','54665',224,395);
INSERT INTO "communes" VALUES('57','Aspach','16',46,36,4.13,'5139','54060',283,355);
INSERT INTO "communes" VALUES('57','Farébersviller','41',5741,6872,6.88,'5030','54572',219,321);
INSERT INTO "communes" VALUES('57','Vahl-lès-Faulquemont','09',245,240,6.18,'4765','54474',245,296);
INSERT INTO "communes" VALUES('57','Saint-Avold','96',16273,16925,35.48,'4857','54560',215,383);
INSERT INTO "communes" VALUES('57','Villers-sur-Nied','07',84,63,4.25,'4666','54357',244,358);
INSERT INTO "communes" VALUES('57','Altrippe','14',409,404,4.88,'4981','54477',239,325);
INSERT INTO "communes" VALUES('57','Buhl-Lorraine','29',1228,1037,11.2,'5275','54138',248,325);
INSERT INTO "communes" VALUES('57','Bickenholtz','10',75,63,2.46,'5365','54227',298,334);
INSERT INTO "communes" VALUES('57','Monneren','21',391,273,11.06,'4532','54828',231,307);
INSERT INTO "communes" VALUES('57','Rezonville','13',333,329,13.45,'4059','54553',230,321);
INSERT INTO "communes" VALUES('57','Marsal','34',260,289,11.11,'4747','54210',199,307);
INSERT INTO "communes" VALUES('57','Lelling','14',503,390,4.92,'4857','54490',246,320);
INSERT INTO "communes" VALUES('57','Zetting','50',845,863,6.94,'5326','54534',195,293);
INSERT INTO "communes" VALUES('57','Gelucourt','08',236,224,12.34,'4877','54183',207,256);
INSERT INTO "communes" VALUES('57','Cuvry','33',753,653,5.44,'4247','54492',167,198);
INSERT INTO "communes" VALUES('57','Rorbach-lès-Dieuze','08',58,48,4.21,'5007','54256',217,252);
INSERT INTO "communes" VALUES('57','Vatimont','09',332,337,8.13,'4589','54422',224,303);
INSERT INTO "communes" VALUES('57','Valmestroff','21',253,258,3.78,'4363','54845',155,256);
INSERT INTO "communes" VALUES('57','Walscheid','29',1636,1620,38.35,'5348','54060',294,983);
INSERT INTO "communes" VALUES('57','Waltembourg','24',234,201,1.4,'5401','54167',280,350);
INSERT INTO "communes" VALUES('57','Kédange-sur-Canner','21',1085,1040,3.91,'4448','54787',177,298);
INSERT INTO "communes" VALUES('57','Voimhaut','09',266,174,4.02,'4534','54469',221,302);
INSERT INTO "communes" VALUES('57','Breidenbach','36',346,346,10.89,'5651','54596',252,376);
INSERT INTO "communes" VALUES('57','Niedervisse','03',244,195,5.77,'4702','54630',289,385);
INSERT INTO "communes" VALUES('57','Nilvange','44',4839,5292,2.81,'4126','54825',193,376);
INSERT INTO "communes" VALUES('57','Insming','01',606,607,7.21,'5042','54396',215,273);
INSERT INTO "communes" VALUES('57','Silly-en-Saulnois','33',38,36,2.35,'4377','54434',250,303);
INSERT INTO "communes" VALUES('57','Roppeviller','02',137,140,13.77,'5747','54558',257,451);
INSERT INTO "communes" VALUES('57','Virming','01',265,283,10.77,'4905','54384',221,266);
INSERT INTO "communes" VALUES('57','Retonfey','23',1339,1372,9.77,'4410','54596',215,286);
INSERT INTO "communes" VALUES('57','Ham-sous-Varsberg','03',2778,2707,6.53,'4790','54646',213,332);
INSERT INTO "communes" VALUES('57','Bining','26',1194,1156,15.91,'5462','54486',248,379);
INSERT INTO "communes" VALUES('57','Colligny','23',310,323,3.61,'4432','54554',218,285);
INSERT INTO "communes" VALUES('57','Saint-Epvre','07',164,141,4.67,'4556','54416',224,267);
INSERT INTO "communes" VALUES('57','Plappeville','37',2135,2342,2.54,'4207','54590',186,350);
INSERT INTO "communes" VALUES('57','Servigny-lès-Raville','23',360,343,14.2,'4572','54532',229,344);
INSERT INTO "communes" VALUES('57','Lemberg','02',1516,1463,10.94,'5603','54449',251,427);
INSERT INTO "communes" VALUES('57','Ancerville','23',268,266,5.23,'4500','54478',219,314);
INSERT INTO "communes" VALUES('57','Bezange-la-Petite','34',92,100,7.93,'4751','54145',209,290);
INSERT INTO "communes" VALUES('57','Hettange-Grande','05',7489,6354,16.27,'4240','54896',155,247);
INSERT INTO "communes" VALUES('57','Turquestein-Blancrupt','16',23,21,30.04,'5289','53966',295,826);
INSERT INTO "communes" VALUES('57','Hellering-lès-Fénétrange','10',208,157,4.05,'5252','54233',247,332);
INSERT INTO "communes" VALUES('57','Sarreguemines','30',21540,23191,29.67,'5256','54567',192,293);
INSERT INTO "communes" VALUES('57','Kerling-lès-Sierck','31',528,439,17.82,'4459','54887',175,311);
INSERT INTO "communes" VALUES('57','Hampont','06',201,212,11.23,'4717','54262',207,321);
INSERT INTO "communes" VALUES('57','Dannelbourg','24',489,479,2.95,'5443','54159',219,362);
INSERT INTO "communes" VALUES('57','Vernéville','13',581,617,9.18,'4073','54607',278,322);
INSERT INTO "communes" VALUES('57','Fraquelfing','16',86,108,4.44,'5169','54044',282,374);
INSERT INTO "communes" VALUES('57','Vilsberg','24',365,379,5,'5464','54207',200,316);
INSERT INTO "communes" VALUES('57','Lafrimbolle','16',213,198,10.72,'5202','53994',285,440);
INSERT INTO "communes" VALUES('57','Aboncourt','21',387,346,5.9,'4456','54734',192,315);
INSERT INTO "communes" VALUES('57','Breistroff-la-Grande','05',591,416,10.63,'4313','54952',157,242);
INSERT INTO "communes" VALUES('57','Viviers','07',108,110,7.2,'4554','54323',234,293);
INSERT INTO "communes" VALUES('57','Hertzing','25',190,194,1.54,'5128','54097',265,310);
INSERT INTO "communes" VALUES('57','Velving','03',248,203,4.71,'4663','54712',217,320);
INSERT INTO "communes" VALUES('57','Bertrange','21',2607,1991,6.82,'4278','54790',151,207);
INSERT INTO "communes" VALUES('57','Chambrey','06',378,342,14.39,'4581','54208',195,313);
INSERT INTO "communes" VALUES('57','Landroff','14',288,247,7.73,'4750','54408',238,305);
INSERT INTO "communes" VALUES('57','Fresnes-en-Saulnois','06',184,178,12.89,'4557','54267',243,336);
INSERT INTO "communes" VALUES('57','Mainvillers','09',268,277,6.7,'4674','54467',248,296);
INSERT INTO "communes" VALUES('57','Neufgrange','50',1433,1272,7.17,'5257','54530',214,278);
INSERT INTO "communes" VALUES('57','Goetzenbruck','02',1699,1751,8.12,'5603','54419',260,432);
INSERT INTO "communes" VALUES('57','Sarralbe','28',4547,4535,27.29,'5212','54440',206,262);
INSERT INTO "communes" VALUES('57','Richemont','45',1894,1879,8.48,'4255','54754',152,214);
INSERT INTO "communes" VALUES('57','Elvange','09',368,371,7.12,'4680','54511',227,305);
INSERT INTO "communes" VALUES('57','Haboudange','06',271,239,10.5,'4750','54323',210,305);
INSERT INTO "communes" VALUES('57','Hesse','29',603,601,12.85,'5234','54106',252,325);
INSERT INTO "communes" VALUES('57','Leyviller','14',461,436,7.25,'4999','54480',224,291);
INSERT INTO "communes" VALUES('57','Dabo','24',2625,2780,48.12,'5445','54060',236,945);
INSERT INTO "communes" VALUES('57','Gandrange','22',2908,2543,4.08,'4209','54746',154,224);
INSERT INTO "communes" VALUES('57','Haselbourg','24',321,306,6.11,'5409','54095',225,501);
INSERT INTO "communes" VALUES('57','Moyeuvre-Petite','22',507,559,5.43,'4098','54744',185,322);
INSERT INTO "communes" VALUES('57','Métairies-Saint-Quirin','16',303,259,9.57,'5228','54059',267,385);
INSERT INTO "communes" VALUES('57','Epping','36',578,509,10.65,'5534','54569',252,378);
INSERT INTO "communes" VALUES('57','Pagny-lès-Goin','33',239,163,5.17,'4314','54413',200,266);
INSERT INTO "communes" VALUES('57','Grundviller','50',666,514,6.27,'5149','54493',222,272);
INSERT INTO "communes" VALUES('57','Bérig-Vintrange','14',245,209,8.52,'4846','54411',233,295);
INSERT INTO "communes" VALUES('57','Sturzelbronn','02',187,189,32.51,'5832','54508',228,454);
INSERT INTO "communes" VALUES('57','Grostenquin','14',566,569,21.77,'4891','54422',226,306);
INSERT INTO "communes" VALUES('57','Fouligny','09',210,191,5.96,'4631','54548',219,315);
INSERT INTO "communes" VALUES('57','Hazembourg','28',112,120,1.72,'5107','54408',213,246);
INSERT INTO "communes" VALUES('57','Biding','14',308,314,6.72,'4945','54510',251,296);
INSERT INTO "communes" VALUES('57','Dalstein','04',335,223,3.97,'4526','54787',222,337);
INSERT INTO "communes" VALUES('57','Lixing-lès-Saint-Avold','14',733,720,6.32,'4906','54486',246,321);
INSERT INTO "communes" VALUES('57','Louvigny','33',822,725,15.82,'4275','54402',172,244);
INSERT INTO "communes" VALUES('57','Créhange','09',3999,3890,10.46,'4717','54515',232,388);
INSERT INTO "communes" VALUES('57','Kalhausen','26',853,798,13.52,'5353','54468',203,331);
INSERT INTO "communes" VALUES('57','Sorbey','23',326,362,5.59,'4422','54494',215,280);
INSERT INTO "communes" VALUES('57','Saint-Jure','33',316,258,10.61,'4314','54382',207,261);
INSERT INTO "communes" VALUES('57','Herny','09',469,394,9.64,'4606','54443',225,303);
INSERT INTO "communes" VALUES('57','Xocourt','07',79,49,4.88,'4489','54342',224,400);
INSERT INTO "communes" VALUES('57','Lindre-Haute','08',57,57,2.46,'4904','54238',205,247);
INSERT INTO "communes" VALUES('57','Vittersbourg','01',338,287,7.13,'5102','54389',218,253);
INSERT INTO "communes" VALUES('57','Freistroff','04',1083,860,14.67,'4616','54758',195,276);
INSERT INTO "communes" VALUES('57','Audun-le-Tiche','11',6242,5750,15.43,'4023','54971',294,452);
INSERT INTO "communes" VALUES('57','Marieulles','33',643,577,8.19,'4182','54443',183,375);
INSERT INTO "communes" VALUES('57','Buding','21',560,472,6.36,'4427','54815',170,306);
INSERT INTO "communes" VALUES('57','Torcheville','01',134,172,6.14,'5014','54344',223,261);
INSERT INTO "communes" VALUES('57','Craincourt','07',266,231,9.06,'4428','54307',187,268);
INSERT INTO "communes" VALUES('57','Prévocourt','07',104,79,6.77,'4546','54349',228,360);
INSERT INTO "communes" VALUES('57','Semécourt','43',872,872,2.3,'4220','54659',167,266);
INSERT INTO "communes" VALUES('57','Desseling','10',107,106,5.05,'5008','54205',213,272);
INSERT INTO "communes" VALUES('57','Mulcey','08',222,223,8.34,'4808','54223',201,307);
INSERT INTO "communes" VALUES('57','Réding','29',2470,2335,11.61,'5300','54168',245,315);
INSERT INTO "communes" VALUES('57','Marange-Silvange','48',5842,5401,15.24,'4186','54679',168,377);
INSERT INTO "communes" VALUES('57','Pommerieux','33',698,520,4.31,'4262','54440',171,213);
INSERT INTO "communes" VALUES('57','Chérisey','33',272,263,5.07,'4331','54459',203,258);
INSERT INTO "communes" VALUES('57','Metzeresche','21',828,676,9.56,'4413','54776',189,285);
INSERT INTO "communes" VALUES('57','Bidestroff','08',126,145,7.95,'4945','54277',210,275);
INSERT INTO "communes" VALUES('57','Lhor','01',137,110,5.4,'5037','54321',218,249);
INSERT INTO "communes" VALUES('57','Guntzviller','24',385,338,5.39,'5360','54121',234,415);
INSERT INTO "communes" VALUES('57','Dalhain','06',117,109,4.83,'4694','54321',218,298);
INSERT INTO "communes" VALUES('57','Guéblange-lès-Dieuze','08',180,141,4.89,'4849','54195',202,263);
INSERT INTO "communes" VALUES('57','Sierck-les-Bains','31',1707,1872,4.8,'4471','54936',145,337);
INSERT INTO "communes" VALUES('57','Vannecourt','06',88,60,9.55,'4681','54313',213,336);
INSERT INTO "communes" VALUES('57','Fixem','05',382,304,3.53,'4376','54937',150,215);
INSERT INTO "communes" VALUES('57','Merten','04',1529,1593,5.23,'4811','54721',196,305);
INSERT INTO "communes" VALUES('57','Distroff','21',1613,1481,7.93,'4367','54813',163,257);
INSERT INTO "communes" VALUES('57','Oriocourt','07',61,58,4.44,'4528','54295',228,296);
INSERT INTO "communes" VALUES('57','Metting','24',360,302,5.21,'5417','54236',238,316);
INSERT INTO "communes" VALUES('57','Volmerange-les-Mines','05',1987,1724,12.92,'4160','54936',294,429);
INSERT INTO "communes" VALUES('57','Trémery','35',1087,1147,7.53,'4320','54718',160,238);
INSERT INTO "communes" VALUES('57','Lemud','23',299,297,4.24,'4477','54487',216,242);
INSERT INTO "communes" VALUES('57','Knutange','44',3304,3628,2.43,'4115','54821',196,366);
INSERT INTO "communes" VALUES('57','Anzeling','04',497,379,5.92,'4588','54737',197,258);
INSERT INTO "communes" VALUES('57','Abreschviller','16',1510,1285,41.29,'5289','54041',273,968);
INSERT INTO "communes" VALUES('57','Thonville','09',43,49,2.53,'4693','54426',240,311);
INSERT INTO "communes" VALUES('57','Volmerange-lès-Boulay','03',573,403,5.96,'4568','54632',200,305);
INSERT INTO "communes" VALUES('57','Piblange','03',1012,720,9.59,'4534','54724',213,317);
INSERT INTO "communes" VALUES('57','Sainte-Marie-aux-Chênes','48',3795,3323,10.19,'4073','54657',205,323);
INSERT INTO "communes" VALUES('57','Imling','29',688,653,6.11,'5208','54133',245,313);
INSERT INTO "communes" VALUES('57','Escherange','05',609,432,13.18,'4148','54907',313,428);
INSERT INTO "communes" VALUES('57','Boucheporn','03',544,555,6.65,'4747','54601',232,414);
INSERT INTO "communes" VALUES('57','Holling','03',445,307,4.86,'4622','54735',196,296);
INSERT INTO "communes" VALUES('57','Hayes','35',240,178,11.99,'4477','54630',207,307);
INSERT INTO "communes" VALUES('57','Ancy-sur-Moselle','13',1414,1473,9.12,'4135','54508',167,364);
INSERT INTO "communes" VALUES('57','Œting','47',2544,1865,4.39,'5087','54637',218,387);
INSERT INTO "communes" VALUES('57','Théding','47',2452,2132,8.13,'5063','54587',223,378);
INSERT INTO "communes" VALUES('57','Basse-Rentgen','05',375,307,10.46,'4296','54981',209,267);
INSERT INTO "communes" VALUES('57','Kirsch-lès-Sierck','31',297,214,8.85,'4515','54937',274,372);
INSERT INTO "communes" VALUES('57','Loudrefing','01',302,306,23,'5047','54280',223,272);
INSERT INTO "communes" VALUES('57','Montigny-lès-Metz','20',22540,23426,6.7,'4241','54555',165,190);
INSERT INTO "communes" VALUES('57','Lorry-lès-Metz','37',1516,1426,6.09,'4205','54602',189,357);
INSERT INTO "communes" VALUES('57','Guinkirchen','03',184,139,5.15,'4571','54674',199,326);
INSERT INTO "communes" VALUES('57','Folschviller','27',4217,4634,9.46,'4832','54522',246,387);
INSERT INTO "communes" VALUES('57','Fleury','33',1034,1132,9.71,'4287','54490',170,237);
INSERT INTO "communes" VALUES('57','Vaux','13',865,854,6.63,'4159','54548',167,353);
INSERT INTO "communes" VALUES('57','Corny-sur-Moselle','13',2224,1759,8.2,'4137','54483',169,360);
INSERT INTO "communes" VALUES('57','Niederstinzel','10',258,243,12.96,'5216','54292',222,286);
INSERT INTO "communes" VALUES('57','Lorry-Mardigny','33',611,489,11.36,'4167','54434',187,396);
INSERT INTO "communes" VALUES('57','Marsilly','23',501,397,3.22,'4400','54555',234,269);
INSERT INTO "communes" VALUES('57','Halstroff','31',286,286,10.78,'4612','54874',248,313);
INSERT INTO "communes" VALUES('57','Algrange','44',6544,6200,6.96,'4124','54844',221,405);
INSERT INTO "communes" VALUES('57','Lachambre','49',793,731,7.86,'4898','54535',250,340);
INSERT INTO "communes" VALUES('57','Gravelotte','13',711,654,5.66,'4104','54567',221,325);
INSERT INTO "communes" VALUES('57','Kanfen','05',1044,776,8.5,'4192','54933',198,400);
INSERT INTO "communes" VALUES('57','Contz-les-Bains','31',485,448,3.19,'4455','54947',146,314);
INSERT INTO "communes" VALUES('57','Falck','04',2559,2636,6.07,'4779','54694',203,325);
INSERT INTO "communes" VALUES('57','Châtel-Saint-Germain','13',2292,1982,12.88,'4159','54582',176,355);
INSERT INTO "communes" VALUES('57','Hunting','31',645,566,3.78,'4434','54905',160,267);
INSERT INTO "communes" VALUES('57','Saint-Julien-lès-Metz','20',2991,3133,4.55,'4296','54593',162,275);
INSERT INTO "communes" VALUES('57','Vigy','35',1446,1284,17.07,'4401','54671',213,324);
INSERT INTO "communes" VALUES('57','Haspelschiedt','02',277,263,25.2,'5721','54540',257,404);
INSERT INTO "communes" VALUES('57','Baronville','14',412,347,6.18,'4746','54371',251,322);
INSERT INTO "communes" VALUES('57','Éblange','03',373,246,3.32,'4606','54693',198,295);
INSERT INTO "communes" VALUES('57','Creutzwald','04',13483,14360,26.72,'4843','54673',198,334);
INSERT INTO "communes" VALUES('57','Hoste','41',651,579,9.47,'5053','54521',226,306);
INSERT INTO "communes" VALUES('57','Guessling-Hémering','14',933,891,10.06,'4802','54473',245,319);
INSERT INTO "communes" VALUES('57','Schmittviller','26',347,289,2.33,'5385','54450',285,356);
INSERT INTO "communes" VALUES('57','Vahl-Ebersing','14',547,502,6.29,'4908','54500',249,323);
INSERT INTO "communes" VALUES('57','Neufchef','44',2538,2483,16.74,'4096','54796',205,365);
INSERT INTO "communes" VALUES('57','Vulmont','33',42,38,3.09,'4407','54361',206,297);
INSERT INTO "communes" VALUES('57','Thimonville','23',161,146,7.4,'4511','54394',228,291);
INSERT INTO "communes" VALUES('57','Vaudreching','04',574,510,4.69,'4653','54761',195,283);
INSERT INTO "communes" VALUES('57','Luttange','21',905,753,12.83,'4416','54745',195,299);
INSERT INTO "communes" VALUES('58','Chaumard','14',215,217,16.15,'1750','52383',277,597);
INSERT INTO "communes" VALUES('58','La Machine','27',3527,3735,17.95,'1255','52099',202,283);
INSERT INTO "communes" VALUES('58','Saint-Saulge','23',854,865,25.77,'1307','52339',245,403);
INSERT INTO "communes" VALUES('58','Vitry-Laché','01',111,129,20.83,'1364','52445',249,311);
INSERT INTO "communes" VALUES('58','<NAME>','02',169,168,12.95,'981','52451',203,337);
INSERT INTO "communes" VALUES('58','Couloutre','09',218,205,21.03,'988','52676',197,346);
INSERT INTO "communes" VALUES('58','Mont-et-Marré','04',186,187,18,'1448','52321',235,291);
INSERT INTO "communes" VALUES('58','Flez-Cuzy','24',123,131,5.92,'1429','52626',162,276);
INSERT INTO "communes" VALUES('58','Biches','04',326,290,24.55,'1460','52229',212,307);
INSERT INTO "communes" VALUES('58','Ciez','09',376,388,28.34,'917','52713',199,334);
INSERT INTO "communes" VALUES('58','Larochemillay','13',287,287,41.15,'1851','52086',282,780);
INSERT INTO "communes" VALUES('58','Magny-Cours','32',1447,1488,31.87,'904','52094',181,277);
INSERT INTO "communes" VALUES('58','Arleuf','03',812,801,59.77,'1873','52272',402,857);
INSERT INTO "communes" VALUES('58','Diennes-Aubigny','21',113,106,36.89,'1384','52134',192,287);
INSERT INTO "communes" VALUES('58','<NAME>','11',297,332,32.66,'1605','51960',206,267);
INSERT INTO "communes" VALUES('58','Marigny-l''Église','12',325,304,38.8,'1778','52617',270,618);
INSERT INTO "communes" VALUES('58','Balleray','26',197,221,16.08,'1047','52304',208,375);
INSERT INTO "communes" VALUES('58','Marcy','25',164,145,14.31,'1191','52578',209,383);
INSERT INTO "communes" VALUES('58','Saint-Pierre-du-Mont','25',206,165,17.57,'1232','52655',178,320);
INSERT INTO "communes" VALUES('58','Montaron','15',166,196,33.4,'1570','52094',200,268);
INSERT INTO "communes" VALUES('58','Château-Chinon (Campagne)','03',608,682,28.39,'1775','52294',337,655);
INSERT INTO "communes" VALUES('58','Suilly-la-Tour','18',588,588,36.91,'810','52596',158,237);
INSERT INTO "communes" VALUES('58','Saint-Parize-en-Viry','10',171,154,15.51,'1134','51947',197,251);
INSERT INTO "communes" VALUES('58','Saint-Pierre-le-Moûtier','22',2010,2028,47.67,'868','51990',188,264);
INSERT INTO "communes" VALUES('58','Courcelles','25',212,225,9.56,'1182','52670',181,289);
INSERT INTO "communes" VALUES('58','Saint-Agnan','14',159,163,23.87,'1954','52576',437,630);
INSERT INTO "communes" VALUES('58','Dirol','24',130,143,9.48,'1464','52574',167,223);
INSERT INTO "communes" VALUES('58','Vielmanay','18',189,184,21.33,'864','52519',172,247);
INSERT INTO "communes" VALUES('58','La Collancelle','06',176,178,21.95,'1448','52417',235,306);
INSERT INTO "communes" VALUES('58','Lormes','12',1380,1398,51.71,'1645','52544',202,626);
INSERT INTO "communes" VALUES('58','Saint-Malo-en-Donziois','09',133,115,14.81,'1034','52570',248,360);
INSERT INTO "communes" VALUES('58','Anlezy','21',284,310,21.13,'1299','52175',208,305);
INSERT INTO "communes" VALUES('58','Frasnay-Reugny','21',74,82,13.62,'1304','52220',220,295);
INSERT INTO "communes" VALUES('58','Oudan','25',135,116,20.11,'1126','52608',233,346);
INSERT INTO "communes" VALUES('58','Guipy','01',264,232,18.36,'1382','52477',214,307);
INSERT INTO "communes" VALUES('58','Giry','19',217,196,23.78,'1142','52467',238,351);
INSERT INTO "communes" VALUES('58','Gouloux','14',195,196,21.94,'1934','52488',462,702);
INSERT INTO "communes" VALUES('58','<NAME>elle-sur-Loire','31',844,797,21.17,'659','52747',132,233);
INSERT INTO "communes" VALUES('58','Chitry-les-Mines','06',233,248,6.19,'1462','52512',175,259);
INSERT INTO "communes" VALUES('58','Challement','01',61,55,9.52,'1390','52572',174,317);
INSERT INTO "communes" VALUES('58','Saint-Benin-des-Bois','23',187,172,19.4,'1192','52358',248,444);
INSERT INTO "communes" VALUES('58','Nannay','02',100,100,11.44,'949','52514',185,353);
INSERT INTO "communes" VALUES('58','Saint-Martin-du-Puy','12',289,281,30.7,'1701','52594',316,598);
INSERT INTO "communes" VALUES('58','Marzy','30',3576,3049,24.41,'841','52201',162,240);
INSERT INTO "communes" VALUES('58','Sainte-Marie','23',95,85,15.64,'1223','52353',255,421);
INSERT INTO "communes" VALUES('58','Ougny','04',35,39,8.17,'1527','52306',227,285);
INSERT INTO "communes" VALUES('58','Rix','05',200,181,3.92,'1290','52701',152,217);
INSERT INTO "communes" VALUES('58','Dompierre-sur-Nièvre','19',181,152,18.6,'1017','52487',222,333);
INSERT INTO "communes" VALUES('58','Cessy-les-Bois','09',122,109,17.49,'966','52596',210,355);
INSERT INTO "communes" VALUES('58','Achun','04',142,170,24.51,'1493','52361',243,317);
INSERT INTO "communes" VALUES('58','Saint-Seine','11',237,205,17.73,'1652','51927',220,321);
INSERT INTO "communes" VALUES('58','Saint-Maurice','23',58,53,10.39,'1369','52341',238,299);
INSERT INTO "communes" VALUES('58','Tamnay-en-Bazois','04',182,175,10.53,'1538','52283',219,305);
INSERT INTO "communes" VALUES('58','Tronsanges','02',370,344,8.58,'796','52348',155,230);
INSERT INTO "communes" VALUES('58','Saizy','24',213,133,13.23,'1520','52620',179,362);
INSERT INTO "communes" VALUES('58','Fours','11',762,780,25.53,'1537','52019',201,263);
INSERT INTO "communes" VALUES('58','Dornes','10',1315,1216,39.49,'1129','51906',207,261);
INSERT INTO "communes" VALUES('58','Toury-Lurcy','10',431,427,25.54,'1210','51932',197,252);
INSERT INTO "communes" VALUES('58','Avril-sur-Loire','08',244,234,24.86,'1135','52022',182,251);
INSERT INTO "communes" VALUES('58','Cuncy-lès-Varzy','25',146,142,15.24,'1246','52636',188,322);
INSERT INTO "communes" VALUES('58','Saint-Martin-d''Heuille','26',595,534,13.36,'988','52283',182,265);
INSERT INTO "communes" VALUES('58','Crux-la-Ville','23',417,455,45.56,'1316','52401',246,398);
INSERT INTO "communes" VALUES('58','Saint-Martin-sur-Nohain','18',395,370,24.03,'720','52625',150,213);
INSERT INTO "communes" VALUES('58','Pougny','07',483,399,19.19,'741','52649',160,252);
INSERT INTO "communes" VALUES('58','Imphy','32',3739,4019,16.62,'1027','52143',176,262);
INSERT INTO "communes" VALUES('58','Chiddes','13',328,373,26.04,'1782','52068',244,515);
INSERT INTO "communes" VALUES('58','Lucenay-lès-Aix','10',1042,1048,55.05,'1275','51893',202,242);
INSERT INTO "communes" VALUES('58','Chevenon','32',608,662,32.94,'993','52134',172,241);
INSERT INTO "communes" VALUES('58','Thianges','27',176,201,12.8,'1292','52123',197,281);
INSERT INTO "communes" VALUES('58','<NAME>)','03',2129,2307,4.28,'1773','52294',360,605);
INSERT INTO "communes" VALUES('58','Moissy-Moulinot','24',26,26,2.81,'1513','52590',189,312);
INSERT INTO "communes" VALUES('58','Alluy','04',414,403,27.44,'1449','52260',221,287);
INSERT INTO "communes" VALUES('58','Saint-André-en-Morvan','12',295,324,22.82,'1690','52660',170,385);
INSERT INTO "communes" VALUES('58','Mars-sur-Allier','22',283,258,20.93,'835','52062',173,196);
INSERT INTO "communes" VALUES('58','Mouron-sur-Yonne','06',99,136,10.76,'1561','52433',208,359);
INSERT INTO "communes" VALUES('58','Vandenesse','15',340,344,32.49,'1583','52126',202,267);
INSERT INTO "communes" VALUES('58','Perroy','09',199,188,21.68,'915','52665',187,258);
INSERT INTO "communes" VALUES('58','Tazilly','13',250,253,25.81,'1753','51962',274,432);
INSERT INTO "communes" VALUES('58','Bouhy','20',452,469,36.37,'921','52762',220,352);
INSERT INTO "communes" VALUES('58','Narcy','02',558,490,29.14,'814','52485',157,278);
INSERT INTO "communes" VALUES('58','Marigny-sur-Yonne','06',210,198,11.1,'1460','52534',175,246);
INSERT INTO "communes" VALUES('58','Saint-Léger-des-Vignes','27',2034,2059,9.18,'1242','52044',186,265);
INSERT INTO "communes" VALUES('58','Bussy-la-Pesle','01',42,32,5.15,'1264','52516',219,310);
INSERT INTO "communes" VALUES('58','Chalaux','12',73,62,10.19,'1750','52599',278,557);
INSERT INTO "communes" VALUES('58','Garchy','18',423,398,21.18,'816','52515',158,198);
INSERT INTO "communes" VALUES('58','Neuville-lès-Decize','10',274,255,26.74,'1087','51967',205,267);
INSERT INTO "communes" VALUES('58','Blismes','03',166,190,26.89,'1648','52368',268,492);
INSERT INTO "communes" VALUES('58','Saint-Aubin-les-Forges','02',439,403,26.34,'961','52379',195,333);
INSERT INTO "communes" VALUES('58','Ternant','11',211,237,19.38,'1669','51945',231,415);
INSERT INTO "communes" VALUES('58','Saint-Quentin-sur-Nohain','18',124,124,15.98,'763','52608',156,202);
INSERT INTO "communes" VALUES('58','Verneuil','08',323,331,26.86,'1370','52074',191,266);
INSERT INTO "communes" VALUES('58','Montigny-en-Morvan','03',320,358,20.09,'1687','52383',265,521);
INSERT INTO "communes" VALUES('58','Rémilly','13',168,189,36.43,'1642','52021',210,347);
INSERT INTO "communes" VALUES('58','Maux','15',137,148,22.6,'1606','52276',217,329);
INSERT INTO "communes" VALUES('58','Mesves-sur-Loire','18',664,547,18.64,'730','52493',148,188);
INSERT INTO "communes" VALUES('58','Chevannes-Changy','01',147,159,18.92,'1240','52544',195,309);
INSERT INTO "communes" VALUES('58','Cercy-la-Tour','11',1952,2106,45.57,'1454','52076',191,253);
INSERT INTO "communes" VALUES('58','Anthien','06',172,168,19.68,'1559','52569',182,372);
INSERT INTO "communes" VALUES('58','Brinon-sur-Beuvron','01',220,211,8.06,'1283','52534',197,336);
INSERT INTO "communes" VALUES('58','Saint-Hilaire-en-Morvan','03',214,228,21.3,'1724','52308',283,530);
INSERT INTO "communes" VALUES('58','Neuilly','01',132,151,13.92,'1296','52489',209,337);
INSERT INTO "communes" VALUES('58','Cervon','06',596,660,54.06,'1577','52490',192,408);
INSERT INTO "communes" VALUES('58','Sardy-lès-Épiry','06',145,146,15.37,'1515','52437',200,303);
INSERT INTO "communes" VALUES('58','Montsauche-les-Settons','14',528,614,44.3,'1877','52461',467,701);
INSERT INTO "communes" VALUES('58','Dun-sur-Grandry','04',149,162,11.91,'1615','52317',233,376);
INSERT INTO "communes" VALUES('58','Parigny-les-Vaux','17',972,903,31.47,'902','52324',186,341);
INSERT INTO "communes" VALUES('58','Thaix','11',64,63,20.04,'1526','52052',196,256);
INSERT INTO "communes" VALUES('58','Billy-Chevannes','21',358,276,23.76,'1242','52238',234,428);
INSERT INTO "communes" VALUES('58','Fleury-sur-Loire','08',239,264,19.74,'1093','52040',178,244);
INSERT INTO "communes" VALUES('58','Moraches','01',122,97,14.9,'1346','52533',205,343);
INSERT INTO "communes" VALUES('58','Tresnay','10',182,167,18.15,'945','51886',190,225);
INSERT INTO "communes" VALUES('58','Mhère','06',252,279,25.25,'1688','52453',255,550);
INSERT INTO "communes" VALUES('58','Livry','22',689,580,27.62,'819','51972',181,264);
INSERT INTO "communes" VALUES('58','Alligny-Cosne','07',876,825,34.41,'806','52727',192,331);
INSERT INTO "communes" VALUES('58','Chantenay-Saint-Imbert','22',1281,1190,41.69,'942','51925',182,262);
INSERT INTO "communes" VALUES('58','Authiou','01',36,34,7.31,'1199','52524',224,320);
INSERT INTO "communes" VALUES('58','Saint-Laurent-l''Abbaye','18',240,207,1.41,'727','52603',162,201);
INSERT INTO "communes" VALUES('58','Arzembouy','19',76,92,12.85,'1146','52495',262,349);
INSERT INTO "communes" VALUES('58','Dompierre-sur-Héry','01',77,67,6.11,'1364','52516',216,321);
INSERT INTO "communes" VALUES('58','Beaumont-la-Ferrière','02',133,144,28.13,'988','52433',211,324);
INSERT INTO "communes" VALUES('58','Asnan','01',127,137,4.77,'1351','52566',223,393);
INSERT INTO "communes" VALUES('58','Dommartin','03',182,198,13.46,'1676','52298',275,442);
INSERT INTO "communes" VALUES('58','Saint-Péreuse','03',281,286,16.45,'1631','52299',230,432);
INSERT INTO "communes" VALUES('58','Lavault-de-Frétoy','03',73,79,15.27,'1863','52340',440,767);
INSERT INTO "communes" VALUES('58','Germigny-sur-Loire','17',710,628,18.78,'779','52312',157,240);
INSERT INTO "communes" VALUES('58','Avrée','13',95,99,13.03,'1703','52021',234,346);
INSERT INTO "communes" VALUES('58','Druy-Parigny','27',348,331,25.12,'1144','52077',177,287);
INSERT INTO "communes" VALUES('58','Urzy','26',1807,1847,23.41,'964','52291',182,275);
INSERT INTO "communes" VALUES('58','Decize','08',5777,6450,48.22,'1250','52032',183,243);
INSERT INTO "communes" VALUES('58','Bazolles','04',289,265,28.57,'1423','52380',245,302);
INSERT INTO "communes" VALUES('58','Moussy','19',118,106,11.97,'1241','52436',258,363);
INSERT INTO "communes" VALUES('58','Chougny','04',86,78,14.87,'1582','52321',233,356);
INSERT INTO "communes" VALUES('58','Saint-Parize-le-Châtel','22',1280,1276,49.11,'939','52060',180,247);
INSERT INTO "communes" VALUES('58','Saint-Brisson','14',279,265,29.82,'1949','52523',453,698);
INSERT INTO "communes" VALUES('58','Trucy-l''Orgueilleux','05',236,229,13.54,'1195','52718',164,286);
INSERT INTO "communes" VALUES('58','Saint-Germain-Chassenay','08',355,357,24.03,'1173','51973',185,246);
INSERT INTO "communes" VALUES('58','Poil','13',155,189,27.02,'1930','52074',297,522);
INSERT INTO "communes" VALUES('58','Châtillon-en-Bazois','04',964,1056,19.26,'1465','52280',224,282);
INSERT INTO "communes" VALUES('58','Clamecy','05',4248,4804,30.26,'1314','52734',142,281);
INSERT INTO "communes" VALUES('58','Gâcogne','06',274,251,25.21,'1704','52478',271,577);
INSERT INTO "communes" VALUES('58','Taconnay','01',70,80,8,'1285','52563',184,316);
INSERT INTO "communes" VALUES('58','Glux-en-Glenne','03',105,105,22.06,'1882','52174',409,855);
INSERT INTO "communes" VALUES('58','Oisy','05',339,343,17.5,'1232','52743',157,286);
INSERT INTO "communes" VALUES('58','Saint-Amand-en-Puisaye','20',1297,1397,41.51,'820','52810',167,284);
INSERT INTO "communes" VALUES('58','Champallement','01',52,27,8.07,'1280','52480',245,349);
INSERT INTO "communes" VALUES('58','Jailly','23',68,76,10.74,'1268','52329',273,394);
INSERT INTO "communes" VALUES('58','Champvoux','02',306,301,10.67,'829','52395',170,254);
INSERT INTO "communes" VALUES('58','Garchizy','17',3828,3821,16.42,'843','52275',160,273);
INSERT INTO "communes" VALUES('58','Lanty','13',125,110,12.06,'1672','52011',224,367);
INSERT INTO "communes" VALUES('58','Moux-en-Morvan','14',606,676,42.51,'2018','52413',394,707);
INSERT INTO "communes" VALUES('58','Montambert','11',136,132,25.97,'1489','51967',198,252);
INSERT INTO "communes" VALUES('58','Montapas','23',288,281,23.48,'1403','52313',232,291);
INSERT INTO "communes" VALUES('58','Alligny-en-Morvan','14',659,657,48.85,'2045','52445',410,703);
INSERT INTO "communes" VALUES('58','Saint-Léger-de-Fougeret','03',285,356,32.19,'1735','52246',304,670);
INSERT INTO "communes" VALUES('58','Neuffontaines','24',122,122,14.34,'1557','52599',204,378);
INSERT INTO "communes" VALUES('58','Béard','27',162,174,7.71,'1101','52069',177,252);
INSERT INTO "communes" VALUES('58','Cosne-Cours-sur-Loire','98',10653,11396,53.3,'656','52679',138,252);
INSERT INTO "communes" VALUES('58','Saint-Honoré-les-Bains','15',840,762,25.12,'1671','52118',222,555);
INSERT INTO "communes" VALUES('58','Arbourse','19',117,122,9.2,'989','52499',239,367);
INSERT INTO "communes" VALUES('58','Isenay','15',122,103,20.17,'1520','52113',196,275);
INSERT INTO "communes" VALUES('58','Dampierre-sous-Bouhy','20',487,470,26.9,'886','52777',187,346);
INSERT INTO "communes" VALUES('58','Empury','12',93,99,11.79,'1650','52612',234,465);
INSERT INTO "communes" VALUES('58','Cossaye','10',779,760,51.17,'1276','51943',190,247);
INSERT INTO "communes" VALUES('58','Annay','31',315,272,26.27,'663','52818',142,238);
INSERT INTO "communes" VALUES('58','Donzy','09',1624,1662,63.18,'875','52634',160,273);
INSERT INTO "communes" VALUES('58','Myennes','31',583,556,7.4,'664','52719',136,217);
INSERT INTO "communes" VALUES('58','Lurcy-le-Bourg','19',301,324,22.58,'1167','52401',239,381);
INSERT INTO "communes" VALUES('58','Saint-Aubin-des-Chaumes','24',79,88,10.58,'1573','52659',174,360);
INSERT INTO "communes" VALUES('58','Parigny-la-Rose','25',37,40,8.77,'1229','52586',190,285);
INSERT INTO "communes" VALUES('58','Metz-le-Comte','24',179,165,14.37,'1447','52657',157,314);
INSERT INTO "communes" VALUES('58','Neuvy-sur-Loire','31',1470,1356,21.31,'606','52803',132,186);
INSERT INTO "communes" VALUES('58','Montigny-sur-Canne','04',166,185,30.36,'1465','52147',202,277);
INSERT INTO "communes" VALUES('58','Magny-Lormes','06',73,102,8.35,'1575','52555',192,272);
INSERT INTO "communes" VALUES('58','Châteauneuf-Val-de-Bargis','09',586,554,47.56,'989','52537',211,373);
INSERT INTO "communes" VALUES('58','Saint-Hilaire-Fontaine','11',201,188,23.37,'1434','51964',195,247);
INSERT INTO "communes" VALUES('58','Sichamps','19',176,167,5.9,'1045','52395',212,342);
INSERT INTO "communes" VALUES('58','Saint-Andelain','18',565,525,20.31,'693','52565',164,271);
INSERT INTO "communes" VALUES('58','Poiseux','26',332,303,30.2,'995','52356',197,335);
INSERT INTO "communes" VALUES('58','Champlemy','19',343,322,36.82,'1127','52540',240,381);
INSERT INTO "communes" VALUES('58','Brèves','05',296,309,16.64,'1410','52687',152,309);
INSERT INTO "communes" VALUES('58','Saint-Loup','07',463,438,17.28,'741','52717',188,283);
INSERT INTO "communes" VALUES('58','Ouagne','05',164,210,11.72,'1287','52664',157,235);
INSERT INTO "communes" VALUES('58','Menestreau','09',126,118,19.49,'1021','52684',206,373);
INSERT INTO "communes" VALUES('58','Sainte-Colombe-des-Bois','09',130,122,29.59,'894','52580',187,352);
INSERT INTO "communes" VALUES('58','Dornecy','05',547,562,17.35,'1387','52707',147,273);
INSERT INTO "communes" VALUES('58','Germenay','01',139,138,12.91,'1399','52536',180,286);
INSERT INTO "communes" VALUES('58','Oulon','19',75,83,10.99,'1179','52444',246,364);
INSERT INTO "communes" VALUES('58','Onlay','15',160,182,19.54,'1733','52184',272,526);
INSERT INTO "communes" VALUES('58','Amazy','24',240,247,13.74,'1380','52640',159,338);
INSERT INTO "communes" VALUES('58','Vignol','24',76,80,8.97,'1484','52625',168,323);
INSERT INTO "communes" VALUES('58','Surgy','05',436,437,16.03,'1309','52788',137,214);
INSERT INTO "communes" VALUES('58','Saint-Éloi','29',2137,1902,16.45,'982','52201',171,244);
INSERT INTO "communes" VALUES('58','Ruages','24',115,110,10.3,'1496','52574',174,260);
INSERT INTO "communes" VALUES('58','Fertrève','21',126,109,24.43,'1390','52188',207,313);
INSERT INTO "communes" VALUES('58','Menou','25',182,171,17.41,'1049','52633',232,382);
INSERT INTO "communes" VALUES('58','Limanton','04',245,300,46.93,'1558','52211',204,297);
INSERT INTO "communes" VALUES('58','Rouy','23',621,587,35.88,'1330','52250',229,336);
INSERT INTO "communes" VALUES('58','Savigny-Poil-Fol','13',136,103,17.3,'1691','51980',225,352);
INSERT INTO "communes" VALUES('58','Tracy-sur-Loire','18',960,936,23.07,'613','52579',142,222);
INSERT INTO "communes" VALUES('58','Sermoise-sur-Loire','30',1635,1521,24.88,'943','52169',169,277);
INSERT INTO "communes" VALUES('58','Aunay-en-Bazois','04',272,292,45.16,'1513','52350',232,396);
INSERT INTO "communes" VALUES('58','Héry','01',65,68,7.72,'1382','52515',214,321);
INSERT INTO "communes" VALUES('58','<NAME>','25',334,330,27.15,'1120','52660',195,310);
INSERT INTO "communes" VALUES('58','Asnois','24',157,170,5.69,'1401','52665',157,299);
INSERT INTO "communes" VALUES('58','<NAME>-Dieu','24',138,122,13.82,'1456','52682',186,331);
INSERT INTO "communes" VALUES('58','Murlin','02',97,94,15.09,'938','52449',211,307);
INSERT INTO "communes" VALUES('58','Entrains-sur-Nohain','25',907,975,58.73,'1022','52738',210,332);
INSERT INTO "communes" VALUES('58','Teigny','24',110,121,7.42,'1481','52647',203,337);
INSERT INTO "communes" VALUES('58','Nolay','26',368,335,43.04,'1096','52357',209,438);
INSERT INTO "communes" VALUES('58','Villapourçon','15',453,537,50.43,'1804','52166',315,818);
INSERT INTO "communes" VALUES('58','Montreuillon','03',295,308,35.55,'1613','52416',229,426);
INSERT INTO "communes" VALUES('58','Sougy-sur-Loire','27',602,531,32.92,'1171','52063',181,297);
INSERT INTO "communes" VALUES('58','Sauvigny-les-Bois','32',1532,1528,29.64,'1040','52187',172,297);
INSERT INTO "communes" VALUES('58','Challuy','30',1607,1349,18.89,'902','52167',169,277);
INSERT INTO "communes" VALUES('58','Saint-Père','07',1169,1023,17.09,'693','52680',145,248);
INSERT INTO "communes" VALUES('58','Planchez','14',356,325,43.65,'1867','52374',349,726);
INSERT INTO "communes" VALUES('58','<NAME>','02',578,522,10.87,'775','52379',155,218);
INSERT INTO "communes" VALUES('58','Saint-Germain-des-Bois','24',110,103,12.43,'1306','52642',170,336);
INSERT INTO "communes" VALUES('58','Gien-sur-Cure','14',118,102,11.04,'1959','52375',584,695);
INSERT INTO "communes" VALUES('58','Saint-Vérain','20',346,332,24.69,'799','52757',184,312);
INSERT INTO "communes" VALUES('58','Azy-le-Vif','22',228,226,46.9,'992','51984',193,256);
INSERT INTO "communes" VALUES('58','Saint-Sulpice','21',453,433,25.71,'1123','52284',233,441);
INSERT INTO "communes" VALUES('58','Saint-Gratien-Savigny','11',117,126,19.53,'1486','52101',196,263);
INSERT INTO "communes" VALUES('58','Bazoches','12',161,198,14.65,'1611','52641',193,417);
INSERT INTO "communes" VALUES('58','Chevroches','05',137,139,3.21,'1343','52722',147,229);
INSERT INTO "communes" VALUES('58','Devay','08',488,429,12.08,'1347','52007',188,237);
INSERT INTO "communes" VALUES('58','Saincaize-Meauce','32',432,457,21.48,'830','52120',170,261);
INSERT INTO "communes" VALUES('58','Varennes-Vauzelles','26',9623,10210,33.99,'900','52236',171,270);
INSERT INTO "communes" VALUES('58','Arthel','19',94,70,7.73,'1192','52494',229,353);
INSERT INTO "communes" VALUES('58','Varzy','25',1314,1306,41.18,'1166','52621',197,367);
INSERT INTO "communes" VALUES('58','Beaulieu','01',33,44,4.95,'1323','52507',218,296);
INSERT INTO "communes" VALUES('58','Saxi-Bourdon','23',301,273,18.44,'1280','52287',248,357);
INSERT INTO "communes" VALUES('58','<NAME>','21',684,518,36.02,'1108','52185',182,324);
INSERT INTO "communes" VALUES('58','Luthenay-Uxeloup','22',597,568,37.69,'1030','52056',177,247);
INSERT INTO "communes" VALUES('58','Beuvron','01',105,81,9.5,'1286','52621',175,310);
INSERT INTO "communes" VALUES('58','Montigny-aux-Amognes','21',543,515,25.17,'1059','52253',184,302);
INSERT INTO "communes" VALUES('58','Monceaux-le-Comte','24',159,132,3.28,'1472','52588',169,242);
INSERT INTO "communes" VALUES('58','Grenois','01',112,104,14.5,'1323','52579',198,387);
INSERT INTO "communes" VALUES('58','Millay','13',442,489,37.55,'1848','52047',255,465);
INSERT INTO "communes" VALUES('58','Pouques-Lormes','12',163,158,13.96,'1603','52581',216,437);
INSERT INTO "communes" VALUES('58','Saint-Bonnot','19',130,76,16.14,'1086','52493',247,332);
INSERT INTO "communes" VALUES('58','Sermages','15',211,229,22.07,'1675','52249',233,451);
INSERT INTO "communes" VALUES('58','Corancy','03',320,366,30.15,'1791','52335',322,730);
INSERT INTO "communes" VALUES('58','Corvol-l''Orgueilleux','25',750,728,30.22,'1190','52703',166,297);
INSERT INTO "communes" VALUES('58','Saint-Didier','24',33,38,3.51,'1427','52610',162,213);
INSERT INTO "communes" VALUES('58','Brinay','04',161,137,15.9,'1510','52230',210,267);
INSERT INTO "communes" VALUES('58','Lys','24',113,118,10.67,'1404','52608',172,312);
INSERT INTO "communes" VALUES('58','Varennes-lès-Narcy','02',883,752,18.33,'818','52461',160,205);
INSERT INTO "communes" VALUES('58','Saint-Révérien','01',196,230,18.48,'1293','52456',229,382);
INSERT INTO "communes" VALUES('58','Talon','24',48,57,6.27,'1359','52593',225,391);
INSERT INTO "communes" VALUES('58','Pouilly-sur-Loire','18',1732,1718,20.28,'690','52536',143,244);
INSERT INTO "communes" VALUES('58','La Charité-sur-Loire','02',5129,5455,15.78,'758','52419',153,215);
INSERT INTO "communes" VALUES('58','Saint-Firmin','21',156,134,10.4,'1172','52270',235,354);
INSERT INTO "communes" VALUES('58','Saint-Benin-d''Azy','21',1287,1205,35.8,'1174','52222',202,398);
INSERT INTO "communes" VALUES('58','Nevers','99',36762,40934,17.33,'911','52214',167,238);
INSERT INTO "communes" VALUES('58','Chaumot','06',175,170,7.69,'1456','52507',184,268);
INSERT INTO "communes" VALUES('58','Corvol-d''Embernard','01',103,112,9.86,'1179','52549',223,384);
INSERT INTO "communes" VALUES('58','Vauclaix','06',121,112,14.39,'1652','52480',243,434);
INSERT INTO "communes" VALUES('58','Tannay','24',620,585,15.36,'1395','52631',161,366);
INSERT INTO "communes" VALUES('58','Champlin','19',39,48,7.91,'1232','52490',223,303);
INSERT INTO "communes" VALUES('58','Chazeuil','01',59,52,4.61,'1183','52529',227,382);
INSERT INTO "communes" VALUES('58','Ouroux-en-Morvan','14',654,673,60.56,'1788','52429',324,668);
INSERT INTO "communes" VALUES('58','Villiers-le-Sec','25',50,41,1.38,'1215','52641',224,320);
INSERT INTO "communes" VALUES('58','Bona','23',307,325,23.24,'1208','52290',257,441);
INSERT INTO "communes" VALUES('58','Bulcy','18',146,138,8.43,'769','52493',155,188);
INSERT INTO "communes" VALUES('58','Montenoison','19',126,122,16.73,'1212','52462',244,415);
INSERT INTO "communes" VALUES('58','Michaugues','01',63,73,4.48,'1316','52521',209,306);
INSERT INTO "communes" VALUES('58','Champvert','08',818,851,46.12,'1305','52045',187,282);
INSERT INTO "communes" VALUES('58','Ville-Langy','21',291,299,26.86,'1292','52160',203,286);
INSERT INTO "communes" VALUES('58','Dun-les-Places','12',354,415,45.1,'1866','52540',365,651);
INSERT INTO "communes" VALUES('58','Préporché','15',210,229,29.89,'1683','52136',224,631);
INSERT INTO "communes" VALUES('58','Villiers-sur-Yonne','05',309,276,15.86,'1377','52679',150,280);
INSERT INTO "communes" VALUES('58','Pougues-les-Eaux','17',2459,2492,12.72,'850','52305',169,293);
INSERT INTO "communes" VALUES('58','Châtin','03',102,115,12.99,'1708','52329',307,555);
INSERT INTO "communes" VALUES('58','Guérigny','26',2566,2476,7.29,'953','52320',192,291);
INSERT INTO "communes" VALUES('58','Colméry','09',334,247,24.17,'1015','52608',200,360);
INSERT INTO "communes" VALUES('58','Limon','21',166,168,8.04,'1159','52188',203,352);
INSERT INTO "communes" VALUES('58','Saint-Franchy','23',73,59,18.63,'1250','52377',248,397);
INSERT INTO "communes" VALUES('58','Cizely','21',61,53,7.1,'1275','52210',223,292);
INSERT INTO "communes" VALUES('58','Chaulgnes','02',1384,1263,25.1,'852','52366',177,343);
INSERT INTO "communes" VALUES('58','Moulins-Engilbert','15',1607,1572,40.76,'1638','52208',209,441);
INSERT INTO "communes" VALUES('58','Pazy','06',326,324,21.99,'1434','52477',195,296);
INSERT INTO "communes" VALUES('58','Coulanges-lès-Nevers','28',3557,3501,10.8,'945','52228',175,242);
INSERT INTO "communes" VALUES('58','Charrin','11',618,624,26.3,'1402','51988',190,243);
INSERT INTO "communes" VALUES('58','Arquian','20',603,614,33.56,'724','52824',154,260);
INSERT INTO "communes" VALUES('58','Fâchin','03',116,105,13.88,'1813','52229',435,818);
INSERT INTO "communes" VALUES('58','Saint-Jean-aux-Amognes','21',474,466,18.02,'1109','52239',208,306);
INSERT INTO "communes" VALUES('58','Gimouille','32',471,513,14.26,'832','52159',166,272);
INSERT INTO "communes" VALUES('58','Billy-sur-Oisy','05',416,400,26.65,'1196','52755',172,292);
INSERT INTO "communes" VALUES('58','Saint-Ouen-sur-Loire','27',535,475,23.71,'1074','52102',177,287);
INSERT INTO "communes" VALUES('58','Tintury','04',197,194,23.28,'1385','52219',219,312);
INSERT INTO "communes" VALUES('58','Corbigny','06',1604,1709,20.06,'1497','52507',182,275);
INSERT INTO "communes" VALUES('58','Beaumont-Sardolles','21',119,107,29.14,'1181','52140',204,328);
INSERT INTO "communes" VALUES('58','Brassy','12',637,574,54.15,'1777','52513',387,652);
INSERT INTO "communes" VALUES('58','Fourchambault','17',4635,4831,4.55,'831','52243',162,181);
INSERT INTO "communes" VALUES('58','Fléty','13',123,142,20.06,'1741','51989',243,417);
INSERT INTO "communes" VALUES('58','Trois-Vèvres','21',234,241,7.65,'1202','52125',222,296);
INSERT INTO "communes" VALUES('58','Lamenay-sur-Loire','10',63,59,11.53,'1362','51958',194,222);
INSERT INTO "communes" VALUES('58','Armes','05',288,279,8.49,'1346','52732',147,252);
INSERT INTO "communes" VALUES('58','Chasnay','02',114,133,11.76,'941','52495',189,350);
INSERT INTO "communes" VALUES('58','Breugnon','05',171,157,13.35,'1240','52698',163,240);
INSERT INTO "communes" VALUES('58','Bitry','20',321,312,17.47,'826','52767',181,328);
INSERT INTO "communes" VALUES('58','Toury-sur-Jour','10',124,144,24.4,'1005','51921',214,258);
INSERT INTO "communes" VALUES('58','Epiry','06',214,193,12.13,'1540','52426',217,397);
INSERT INTO "communes" VALUES('58','Sémelay','13',264,279,33.53,'1683','52058',227,530);
INSERT INTO "communes" VALUES('58','Prémery','19',2031,2200,45.62,'1105','52416',218,386);
INSERT INTO "communes" VALUES('58','Raveau','02',684,717,35.5,'822','52429',173,332);
INSERT INTO "communes" VALUES('58','Langeron','22',397,356,20.26,'831','52012',180,237);
INSERT INTO "communes" VALUES('58','Nuars','24',146,118,15.6,'1506','52649',217,347);
INSERT INTO "communes" VALUES('58','Pousseaux','05',221,220,11.11,'1323','52793',137,242);
INSERT INTO "communes" VALUES('58','Luzy','13',2006,2231,41.67,'1815','51988',252,512);
INSERT INTO "communes" VALUES('58','Ourouër','26',350,332,21.76,'1077','52288',222,383);
INSERT INTO "communes" VALUES('59','Salesches','49',315,315,4.58,'1390','55782',85,138);
INSERT INTO "communes" VALUES('59','Rexpoëde','31',1849,1545,13.37,'226','56599',7,24);
INSERT INTO "communes" VALUES('59','Bergues','09',3886,4207,1.32,'108','56632',1,22);
INSERT INTO "communes" VALUES('59','Busigny','18',2559,2420,16.47,'1256','55593',129,180);
INSERT INTO "communes" VALUES('59','Prouvy','67',2290,2374,4.41,'1238','55912',25,62);
INSERT INTO "communes" VALUES('59','Bermeries','08',404,305,5.29,'1577','55874',113,153);
INSERT INTO "communes" VALUES('59','Wallon-Cappel','29',889,831,5.44,'152','56364',30,69);
INSERT INTO "communes" VALUES('59','Arnèke','16',1583,1549,13.41,'82','56481',14,50);
INSERT INTO "communes" VALUES('59','Fressies','14',559,508,4.73,'953','55840',32,77);
INSERT INTO "communes" VALUES('59','Dimechaux','59',351,273,4.85,'1894','55773',145,211);
INSERT INTO "communes" VALUES('59','Dehéries','18',43,37,1.87,'1115','55613',125,151);
INSERT INTO "communes" VALUES('59','Cerfontaine','45',586,558,3.87,'1879','55846',135,183);
INSERT INTO "communes" VALUES('59','Ramillies','13',588,514,5.11,'1027','55784',39,81);
INSERT INTO "communes" VALUES('59','Éclaibes','69',280,270,4.89,'1772','55782',145,196);
INSERT INTO "communes" VALUES('59','Waziers','22',7615,7907,4.34,'863','55986',17,27);
INSERT INTO "communes" VALUES('59','Flaumont-Waudrechies','03',371,353,5.7,'1813','55696',147,204);
INSERT INTO "communes" VALUES('59','Dourlers','03',551,567,8.74,'1778','55752',158,205);
INSERT INTO "communes" VALUES('59','Eswars','13',354,348,2.78,'1035','55800',38,71);
INSERT INTO "communes" VALUES('59','Mazinghien','17',321,300,9.01,'1408','55611',143,161);
INSERT INTO "communes" VALUES('59','Houtkerque','60',991,773,13.13,'288','56530',2,22);
INSERT INTO "communes" VALUES('59','Condé-sur-l''Escaut','19',9731,10527,18.4,'1393','56055',10,52);
INSERT INTO "communes" VALUES('59','Landrecies','32',3581,3856,21.7,'1504','55695',130,179);
INSERT INTO "communes" VALUES('59','Watten','12',2608,2919,7.32,'-138','56481',1,73);
INSERT INTO "communes" VALUES('59','Eppe-Sauvage','64',268,218,16.67,'2046','55689',172,257);
INSERT INTO "communes" VALUES('59','Crespin','19',4465,4412,9.94,'1472','56022',16,32);
INSERT INTO "communes" VALUES('59','Ligny-en-Cambrésis','18',1787,1657,8.79,'1159','55667',89,144);
INSERT INTO "communes" VALUES('59','Haussy','58',1550,1561,16.22,'1271','55798',50,109);
INSERT INTO "communes" VALUES('59','Sainghin-en-Weppes','07',5533,5137,7.71,'627','56181',18,41);
INSERT INTO "communes" VALUES('59','Bas-Lieu','03',313,366,7.62,'1782','55704',146,211);
INSERT INTO "communes" VALUES('59','Roubaix','95',94713,96959,13.23,'938','56321',17,52);
INSERT INTO "communes" VALUES('59','Coutiches','47',2738,2235,16.34,'963','56061',17,48);
INSERT INTO "communes" VALUES('59','Iwuy','13',3200,3306,12.75,'1095','55815',35,81);
INSERT INTO "communes" VALUES('59','Vendegies-sur-Écaillon','58',1121,1029,6.57,'1305','55847',44,102);
INSERT INTO "communes" VALUES('59','Gouzeaucourt','43',1432,1254,12.11,'875','55617',95,137);
INSERT INTO "communes" VALUES('59','Flêtre','06',923,743,8.98,'345','56393',26,88);
INSERT INTO "communes" VALUES('59','Hecq','49',353,270,1.36,'1461','55758',138,156);
INSERT INTO "communes" VALUES('59','Viesly','58',1458,1417,10.67,'1253','55726',85,129);
INSERT INTO "communes" VALUES('59','Saint-Aubert','15',1520,1415,8.12,'1200','55787',58,97);
INSERT INTO "communes" VALUES('59','Rieux-en-Cambrésis','15',1524,1358,7.66,'1129','55779',43,87);
INSERT INTO "communes" VALUES('59','Wattrelos','99',41541,42719,13.44,'974','56335',16,42);
INSERT INTO "communes" VALUES('59','Villeneuve-d''Ascq','84',63572,64997,27.46,'897','56248',19,46);
INSERT INTO "communes" VALUES('59','Larouillies','04',271,276,5.4,'1765','55593',168,231);
INSERT INTO "communes" VALUES('59','Wervicq-Sud','51',4696,4285,5.09,'790','56414',12,58);
INSERT INTO "communes" VALUES('59','Trith-Saint-Léger','67',6446,6194,6.87,'1277','55917',21,81);
INSERT INTO "communes" VALUES('59','Hélesmes','21',1942,1820,7.36,'1135','55966',16,95);
INSERT INTO "communes" VALUES('59','Roncq','61',12848,12701,10.59,'871','56393',17,54);
INSERT INTO "communes" VALUES('59','Sebourg','65',1890,1760,14.23,'1456','55936',35,102);
INSERT INTO "communes" VALUES('59','Bauvin','57',5265,5335,3.85,'624','56127',18,32);
INSERT INTO "communes" VALUES('59','Dompierre-sur-Helpe','03',925,1036,13.2,'1700','55717',132,191);
INSERT INTO "communes" VALUES('59','Anor','64',3280,3091,22.24,'1958','55544',200,271);
INSERT INTO "communes" VALUES('59','Fourmies','64',12687,13865,22.98,'1907','55575',174,247);
INSERT INTO "communes" VALUES('59','Thivencelle','19',820,839,4.03,'1445','56046',13,19);
INSERT INTO "communes" VALUES('59','<NAME>','17',469,429,9.38,'1494','55639',138,186);
INSERT INTO "communes" VALUES('59','Caëstre','29',1812,1677,10.2,'297','56398',24,62);
INSERT INTO "communes" VALUES('59','Montigny-en-Cambrésis','18',585,599,5.87,'1192','55657',111,150);
INSERT INTO "communes" VALUES('59','Genech','20',2605,2049,7.46,'978','56145',29,59);
INSERT INTO "communes" VALUES('59','Lille','92',227560,184647,34.83,'801','56258',17,45);
INSERT INTO "communes" VALUES('59','Mortagne-du-Nord','55',1621,1580,2.18,'1242','56116',14,65);
INSERT INTO "communes" VALUES('59','Marquette-en-Ostrevant','11',1676,1515,7.47,'1035','55875',33,69);
INSERT INTO "communes" VALUES('59','Bellaing','66',1194,1305,3.42,'1210','55965',21,47);
INSERT INTO "communes" VALUES('59','Hem-Lenglet','14',580,471,4.94,'991','55842',32,60);
INSERT INTO "communes" VALUES('59','Englefontaine','49',1305,1327,4.62,'1451','55768',128,152);
INSERT INTO "communes" VALUES('59','Ruesnes','49',440,496,6.75,'1387','55843',80,114);
INSERT INTO "communes" VALUES('59','Lourches','11',3908,3781,2.65,'1132','55905',28,42);
INSERT INTO "communes" VALUES('59','Fretin','48',3309,2995,13.17,'886','56175',26,54);
INSERT INTO "communes" VALUES('59','Frelinghien','02',2483,2393,11.27,'664','56347',14,20);
INSERT INTO "communes" VALUES('59','Herlies','07',2147,2022,7.11,'575','56198',24,41);
INSERT INTO "communes" VALUES('59','Aubry-du-Hainaut','66',1468,1434,4.32,'1249','55967',25,48);
INSERT INTO "communes" VALUES('59','Boussières-sur-Sambre','69',523,428,3.28,'1717','55822',122,164);
INSERT INTO "communes" VALUES('59','Bavay','08',3516,3582,10.12,'1624','55886',108,156);
INSERT INTO "communes" VALUES('59','Camphin-en-Carembault','57',1636,1538,7.39,'723','56124',26,36);
INSERT INTO "communes" VALUES('59','Marquette-lez-Lille','38',9797,10822,4.86,'811','56306',16,23);
INSERT INTO "communes" VALUES('59','Artres','67',1034,1071,6.55,'1338','55882',39,96);
INSERT INTO "communes" VALUES('59','<NAME>','08',423,355,2.03,'1533','55906',108,132);
INSERT INTO "communes" VALUES('59','Maretz','18',1487,1362,11.28,'1203','55607',123,166);
INSERT INTO "communes" VALUES('59','Zuytpeene','16',557,469,11.8,'105','56438',18,62);
INSERT INTO "communes" VALUES('59','Avesnes-les-Aubert','15',3672,3591,9.01,'1159','55775',53,96);
INSERT INTO "communes" VALUES('59','Aibes','59',361,384,9.23,'1952','55818',163,228);
INSERT INTO "communes" VALUES('59','Wulverdinghe','12',287,230,2.92,'-90','56480',14,72);
INSERT INTO "communes" VALUES('59','Wattignies-la-Victoire','45',258,233,6.31,'1862','55779',147,205);
INSERT INTO "communes" VALUES('59','Beaurieux','59',168,178,7.39,'1990','55752',176,243);
INSERT INTO "communes" VALUES('59','Haveluy','21',3088,3081,4.7,'1185','55946',21,70);
INSERT INTO "communes" VALUES('59','Steenvoorde','60',4055,4025,29.82,'274','56455',8,67);
INSERT INTO "communes" VALUES('59','Audignies','08',297,261,3.66,'1639','55874',129,159);
INSERT INTO "communes" VALUES('59','Wargnies-le-Grand','50',1067,1046,5.68,'1471','55898',57,116);
INSERT INTO "communes" VALUES('59','Frasnoy','50',342,285,5.84,'1492','55856',83,131);
INSERT INTO "communes" VALUES('59','Broxeele','68',304,268,3.77,'-17','56478',23,30);
INSERT INTO "communes" VALUES('59','Renescure','29',2071,2087,18.93,'38','56367',17,74);
INSERT INTO "communes" VALUES('59','Thiennes','30',796,857,7.54,'145','56280',15,37);
INSERT INTO "communes" VALUES('59','Pommereuil','17',761,717,6.45,'1400','55681',91,153);
INSERT INTO "communes" VALUES('59','Lannoy','33',1718,1726,0.18,'971','56296',28,32);
INSERT INTO "communes" VALUES('59','Quiévelon','45',154,164,4.35,'1930','55819',155,217);
INSERT INTO "communes" VALUES('59','Mons-en-Barœul','37',21887,23004,2.88,'857','56269',22,47);
INSERT INTO "communes" VALUES('59','Marcq-en-Ostrevent','01',585,531,6.27,'1005','55873',38,69);
INSERT INTO "communes" VALUES('59','Auberchicourt','24',4573,4547,7.12,'995','55925',21,63);
INSERT INTO "communes" VALUES('59','Saint-Jans-Cappel','05',1632,1472,7.96,'428','56404',26,152);
INSERT INTO "communes" VALUES('59','Wattignies','78',13223,14429,6.31,'785','56206',21,54);
INSERT INTO "communes" VALUES('59','Walincourt-Selvigny','18',2087,2105,15.07,'1110','55632',85,152);
INSERT INTO "communes" VALUES('59','Courchelettes','23',2712,2847,1.67,'803','55939',26,34);
INSERT INTO "communes" VALUES('59','Roeulx','11',3686,3432,4.02,'1109','55899',31,53);
INSERT INTO "communes" VALUES('59','Montrécourt','58',233,156,3.56,'1239','55814',47,85);
INSERT INTO "communes" VALUES('59','Élincourt','18',635,666,8.41,'1150','55605',129,153);
INSERT INTO "communes" VALUES('59','Louvil','20',850,835,2.5,'953','56177',26,32);
INSERT INTO "communes" VALUES('59','Mastaing','11',909,877,5.97,'1075','55896',33,67);
INSERT INTO "communes" VALUES('59','Jolimetz','49',890,914,3.98,'1488','55809',126,151);
INSERT INTO "communes" VALUES('59','Radinghem-en-Weppes','74',1343,1081,6.82,'632','56250',18,35);
INSERT INTO "communes" VALUES('59','Sin-le-Noble','22',16257,16974,11.53,'863','55959',16,44);
INSERT INTO "communes" VALUES('59','Flines-lès-Mortagne','55',1645,1525,14.45,'1255','56119',13,46);
INSERT INTO "communes" VALUES('59','Wylder','09',320,214,2.55,'173','56570',6,22);
INSERT INTO "communes" VALUES('59','Bersée','48',2262,2115,10.93,'898','56091',27,61);
INSERT INTO "communes" VALUES('59','Saint-Georges-sur-l''Aa','27',308,268,8.13,'-192','56632',1,6);
INSERT INTO "communes" VALUES('59','Obrechies','45',259,255,5.45,'1877','55800',138,207);
INSERT INTO "communes" VALUES('59','Villers-en-Cauchies','15',1247,1186,8.94,'1183','55806',56,92);
INSERT INTO "communes" VALUES('59','Monchecourt','01',2575,2896,6.77,'970','55893',48,66);
INSERT INTO "communes" VALUES('59','Aniche','24',10347,9759,6.52,'1016','55922',26,71);
INSERT INTO "communes" VALUES('59','Beaumont-en-Cambrésis','17',466,420,3.31,'1242','55692',95,138);
INSERT INTO "communes" VALUES('59','Attiches','48',2309,2230,6.68,'805','56136',34,62);
INSERT INTO "communes" VALUES('59','Rousies','45',4222,4256,5.79,'1855','55857',122,167);
INSERT INTO "communes" VALUES('59','Louvignies-Quesnoy','49',955,901,8.43,'1451','55804',107,148);
INSERT INTO "communes" VALUES('59','Leffrinckoucke','25',4482,4950,7.28,'113','56726',0,23);
INSERT INTO "communes" VALUES('59','Wannehain','20',1031,837,3.71,'1032','56188',34,61);
INSERT INTO "communes" VALUES('59','Haulchin','67',2371,2566,5.13,'1222','55909',27,72);
INSERT INTO "communes" VALUES('59','<NAME>','07',6235,5908,3.54,'523','56148',21,31);
INSERT INTO "communes" VALUES('59','Aubencheul-au-Bac','14',465,479,3.2,'915','55841',33,79);
INSERT INTO "communes" VALUES('59','Loos','28',21592,20862,6.95,'752','56236',17,49);
INSERT INTO "communes" VALUES('59','Haut-Lieu','04',389,540,9,'1751','55668',152,196);
INSERT INTO "communes" VALUES('59','Catillon-sur-Sambre','17',837,846,13.03,'1451','55637',133,167);
INSERT INTO "communes" VALUES('59','Fressain','01',873,925,6.39,'954','55876',40,81);
INSERT INTO "communes" VALUES('59','Croix-Caluyau','32',245,213,4.01,'1382','55719',128,151);
INSERT INTO "communes" VALUES('59','Eth','50',328,326,2.84,'1479','55918',59,107);
INSERT INTO "communes" VALUES('59','Hasnon','55',3721,3180,12.74,'1167','56023',14,21);
INSERT INTO "communes" VALUES('59','Thun-l''Évêque','13',658,537,5.69,'1057','55807',36,76);
INSERT INTO "communes" VALUES('59','Warlaing','42',566,461,3.89,'1099','56012',16,19);
INSERT INTO "communes" VALUES('59','Socx','09',964,982,8,'98','56595',0,31);
INSERT INTO "communes" VALUES('59','Millonfosse','56',664,607,3.48,'1171','56040',14,20);
INSERT INTO "communes" VALUES('59','Carnières','15',1070,929,8.13,'1122','55742',58,104);
INSERT INTO "communes" VALUES('59','Esquerchin','23',884,723,5.34,'752','55974',25,50);
INSERT INTO "communes" VALUES('59','Fresnes-sur-Escaut','19',7676,7605,11.77,'1378','56037',15,27);
INSERT INTO "communes" VALUES('59','Crochte','09',713,570,7.83,'58','56595',4,32);
INSERT INTO "communes" VALUES('59','Neuvilly','17',1049,992,12.57,'1304','55713',71,144);
INSERT INTO "communes" VALUES('59','Maresches','50',895,938,4.78,'1378','55881',49,106);
INSERT INTO "communes" VALUES('59','Carnin','57',989,970,2.33,'690','56133',21,34);
INSERT INTO "communes" VALUES('59','Orsinval','50',524,456,3.34,'1438','55860',74,123);
INSERT INTO "communes" VALUES('59','Rues-des-Vignes','43',697,661,17.85,'1003','55661',62,146);
INSERT INTO "communes" VALUES('59','Proville','14',3350,3468,6.31,'966','55735',42,87);
INSERT INTO "communes" VALUES('59','Bugnicourt','01',952,870,6.28,'910','55879',36,84);
INSERT INTO "communes" VALUES('59','Quaëdypre','09',1146,1158,18.7,'131','56595',0,31);
INSERT INTO "communes" VALUES('59','Le Cateau-Cambrésis','17',7039,7453,27.24,'1338','55673',84,157);
INSERT INTO "communes" VALUES('59','Armbouts-Cappel','09',2497,2674,10.15,'19','56642',0,6);
INSERT INTO "communes" VALUES('59','Liessies','59',556,501,17.6,'1939','55687',157,234);
INSERT INTO "communes" VALUES('59','Hoymille','09',3192,3096,5.53,'122','56635',0,15);
INSERT INTO "communes" VALUES('59','Haucourt-en-Cambrésis','18',209,200,3.57,'1117','55672',83,130);
INSERT INTO "communes" VALUES('59','Halluin','61',20199,18994,12.56,'876','56426',9,62);
INSERT INTO "communes" VALUES('59','Mons-en-Pévèle','48',2139,2055,12.37,'851','56088',32,107);
INSERT INTO "communes" VALUES('59','Gœulzin','01',1057,1100,4.79,'842','55908',31,57);
INSERT INTO "communes" VALUES('59','Solrinnes','59',125,96,5.42,'1930','55785',152,218);
INSERT INTO "communes" VALUES('59','Fromelles','07',861,961,8.54,'576','56229',18,32);
INSERT INTO "communes" VALUES('59','Bérelles','59',165,156,5.78,'1957','55795',168,229);
INSERT INTO "communes" VALUES('59','Solesmes','58',4605,4767,23.25,'1291','55762',62,139);
INSERT INTO "communes" VALUES('59','Férin','24',1462,1350,5.52,'819','55920',27,45);
INSERT INTO "communes" VALUES('59','Saméon','47',1514,1371,8.82,'1108','56086',18,36);
INSERT INTO "communes" VALUES('59','Noyelles-sur-Escaut','43',766,649,4.8,'939','55709',47,92);
INSERT INTO "communes" VALUES('59','Roost-Warendin','77',6193,5746,7.16,'854','56023',18,27);
INSERT INTO "communes" VALUES('59','Bourbourg','12',6911,6909,38.49,'-154','56607',0,10);
INSERT INTO "communes" VALUES('59','Bavinchove','16',921,955,8.31,'134','56431',15,93);
INSERT INTO "communes" VALUES('59','Bousies','32',1699,1682,9.88,'1421','55723',131,156);
INSERT INTO "communes" VALUES('59','Odomez','19',898,913,4.87,'1334','56062',14,41);
INSERT INTO "communes" VALUES('59','Rejet-de-Beaulieu','17',246,237,6.35,'1439','55603',134,158);
INSERT INTO "communes" VALUES('59','Morbecque','30',2658,2667,44.34,'201','56326',15,69);
INSERT INTO "communes" VALUES('59','Clary','18',1146,1094,9.93,'1182','55641',115,152);
INSERT INTO "communes" VALUES('59','Rieulay','42',1382,1423,7.29,'1023','55978',16,27);
INSERT INTO "communes" VALUES('59','Haspres','11',2800,2756,12.2,'1200','55843',36,80);
INSERT INTO "communes" VALUES('59','Noyelles-sur-Selle','11',768,828,5.05,'1167','55873',33,73);
INSERT INTO "communes" VALUES('59','Vicq','19',1438,1253,3.92,'1409','56010',15,23);
INSERT INTO "communes" VALUES('59','Valenciennes','98',43335,41251,13.82,'1321','55955',17,56);
INSERT INTO "communes" VALUES('59','Neuville-sur-Escaut','11',2560,2804,4.74,'1130','55889',31,67);
INSERT INTO "communes" VALUES('59','Baisieux','33',4452,4039,8.68,'1018','56232',23,50);
INSERT INTO "communes" VALUES('59','Beaufort','69',961,1013,12.76,'1809','55794',154,207);
INSERT INTO "communes" VALUES('59','<NAME>','36',22442,22396,2.84,'815','56284',16,38);
INSERT INTO "communes" VALUES('59','Eecke','60',1166,872,10.29,'289','56421',24,66);
INSERT INTO "communes" VALUES('59','Mouchin','20',1368,1340,9.19,'1061','56131',23,54);
INSERT INTO "communes" VALUES('59','Rumegies','56',1580,1402,7.71,'1126','56099',18,34);
INSERT INTO "communes" VALUES('59','Arleux','01',2935,2570,11.1,'855','55867',32,71);
INSERT INTO "communes" VALUES('59','Bissezeele','09',213,174,3.57,'82','56568',14,31);
INSERT INTO "communes" VALUES('59','Péronne-en-Mélantois','20',871,768,1.14,'925','56186',26,35);
INSERT INTO "communes" VALUES('59','Volckerinckhove','68',503,487,9.88,'-34','56487',15,61);
INSERT INTO "communes" VALUES('59','Ferrière-la-Petite','45',1018,1117,5.35,'1873','55822',131,188);
INSERT INTO "communes" VALUES('59','Warhem','31',2064,1831,27.84,'174','56640',0,26);
INSERT INTO "communes" VALUES('59','Sassegnies','10',270,289,4.15,'1632','55755',127,164);
INSERT INTO "communes" VALUES('59','Hamel','01',780,723,3.59,'819','55867',36,67);
INSERT INTO "communes" VALUES('59','Taisnières-sur-Hon','08',926,912,16.22,'1666','55910',118,157);
INSERT INTO "communes" VALUES('59','Loon-Plage','27',6302,6506,35.67,'-130','56660',0,25);
INSERT INTO "communes" VALUES('59','Rubrouck','16',940,771,14.88,'21','56488',20,65);
INSERT INTO "communes" VALUES('59','Wormhout','68',5229,4983,27.41,'146','56536',5,33);
INSERT INTO "communes" VALUES('59','Louvroil','45',6830,7251,5.9,'1804','55850',122,175);
INSERT INTO "communes" VALUES('59','Lys-lez-Lannoy','33',12950,13014,3.26,'976','56302',20,39);
INSERT INTO "communes" VALUES('59','Ennevelin','48',2157,1973,9.92,'881','56157',26,42);
INSERT INTO "communes" VALUES('59','Quesnoy-sur-Deûle','51',7126,6365,14.36,'737','56347',12,21);
INSERT INTO "communes" VALUES('59','Spycker','12',1594,1313,9.19,'-15','56633',0,5);
INSERT INTO "communes" VALUES('59','Pérenchies','51',8104,7632,3.03,'707','56298',19,38);
INSERT INTO "communes" VALUES('59','Saint-Aybert','19',358,339,4.19,'1464','56054',15,20);
INSERT INTO "communes" VALUES('59','Neuf-Berquin','46',1241,1156,6.4,'372','56290',15,18);
INSERT INTO "communes" VALUES('59','Petite-Forêt','66',4958,5251,4.55,'1264','55968',26,55);
INSERT INTO "communes" VALUES('59','Colleret','45',1679,1652,18.79,'1932','55841',138,214);
INSERT INTO "communes" VALUES('59','Semousies','03',240,224,3.08,'1805','55738',175,210);
INSERT INTO "communes" VALUES('59','Ramousies','03',241,245,9.6,'1892','55686',152,221);
INSERT INTO "communes" VALUES('59','Bousbecque','61',4702,4161,6.44,'824','56412',11,48);
INSERT INTO "communes" VALUES('59','Saint-Saulve','71',10983,11033,12.06,'1354','55966',15,95);
INSERT INTO "communes" VALUES('59','Wargnies-le-Petit','50',788,712,5.22,'1486','55884',73,130);
INSERT INTO "communes" VALUES('59','Marpent','44',2669,2649,4.83,'1937','55880',122,195);
INSERT INTO "communes" VALUES('59','Holque','12',935,894,3.81,'-148','56505',1,5);
INSERT INTO "communes" VALUES('59','Loffre','24',755,726,2.6,'925','55952',20,39);
INSERT INTO "communes" VALUES('59','Solre-le-Château','59',1801,1863,13.76,'1950','55749',168,236);
INSERT INTO "communes" VALUES('59','Lezennes','40',3064,3346,2.14,'863','56238',30,46);
INSERT INTO "communes" VALUES('59','<NAME>','32',481,404,11.49,'1539','55670',138,191);
INSERT INTO "communes" VALUES('59','Landas','47',2377,2259,11.95,'1072','56082',18,48);
INSERT INTO "communes" VALUES('59','Avesnelles','04',2505,2572,12.71,'1785','55686',146,207);
INSERT INTO "communes" VALUES('59','Limont-Fontaine','69',575,599,6.78,'1762','55787',137,184);
INSERT INTO "communes" VALUES('59','Wasnes-au-Bac','11',573,511,5.19,'1025','55856',32,63);
INSERT INTO "communes" VALUES('59','Pont-à-Marcq','48',2634,2118,2.22,'866','56135',29,42);
INSERT INTO "communes" VALUES('59','Estrun','13',673,421,2.82,'1064','55831',34,72);
INSERT INTO "communes" VALUES('59','Méteren','06',2146,2116,18.44,'395','56379',20,150);
INSERT INTO "communes" VALUES('59','Amfroipret','08',222,156,1.54,'1557','55867',125,146);
INSERT INTO "communes" VALUES('59','Bévillers','15',555,565,4.79,'1170','55731',83,121);
INSERT INTO "communes" VALUES('59','Tilloy-lez-Cambrai','14',589,671,3.32,'983','55773',49,81);
INSERT INTO "communes" VALUES('59','Leval','10',2326,2395,5.89,'1659','55755',128,163);
INSERT INTO "communes" VALUES('59','Aix','47',1101,932,6.55,'1060','56100',22,47);
INSERT INTO "communes" VALUES('59','Tourmignies','48',687,756,2.03,'831','56119',37,49);
INSERT INTO "communes" VALUES('59','Élesmes','44',909,850,6.23,'1859','55896',124,151);
INSERT INTO "communes" VALUES('59','Wignehies','64',3099,3283,13.86,'1858','55574',166,238);
INSERT INTO "communes" VALUES('59','Santes','28',5618,4968,7.57,'695','56215',17,29);
INSERT INTO "communes" VALUES('59','Herrin','57',403,373,2.17,'699','56163',18,27);
INSERT INTO "communes" VALUES('59','Ohain','64',1292,1184,11.88,'1980','55601',204,255);
INSERT INTO "communes" VALUES('59','Deûlémont','51',1690,1461,9.94,'680','56371',11,20);
INSERT INTO "communes" VALUES('59','Saint-Vaast-en-Cambrésis','58',887,865,4.42,'1208','55770',67,100);
INSERT INTO "communes" VALUES('59','Hondeghem','29',931,936,12.6,'205','56396',24,57);
INSERT INTO "communes" VALUES('59','Provin','57',4129,3676,3.39,'640','56128',19,34);
INSERT INTO "communes" VALUES('59','Saint-Momelin','12',412,394,6,'-95','56438',0,71);
INSERT INTO "communes" VALUES('59','Pradelles','30',365,184,3.27,'298','56369',17,62);
INSERT INTO "communes" VALUES('59','Borre','30',573,540,5.96,'275','56368',17,36);
INSERT INTO "communes" VALUES('59','Hazebrouck','91',21598,21395,26.2,'224','56360',17,66);
INSERT INTO "communes" VALUES('59','Onnaing','65',8709,8773,12.97,'1402','55986',16,68);
INSERT INTO "communes" VALUES('59','Marquillies','07',1992,1603,6.91,'593','56173',17,33);
INSERT INTO "communes" VALUES('59','Potelle','49',361,357,4.04,'1474','55816',104,147);
INSERT INTO "communes" VALUES('59','Cantin','01',1450,1327,9.32,'877','55899',37,76);
INSERT INTO "communes" VALUES('59','Rombies-et-Marchipont','65',761,569,4.81,'1455','55962',34,81);
INSERT INTO "communes" VALUES('59','Séranvillers-Forenville','13',330,308,7.24,'1049','55693',78,114);
INSERT INTO "communes" VALUES('59','Chéreng','33',3014,2927,4.18,'965','56235',23,47);
INSERT INTO "communes" VALUES('59','Esnes','18',660,653,14.44,'1083','55668',71,139);
INSERT INTO "communes" VALUES('59','Émerchicourt','11',884,921,5.11,'1019','55903',51,71);
INSERT INTO "communes" VALUES('59','Wambaix','15',306,332,6.17,'1076','55699',75,123);
INSERT INTO "communes" VALUES('59','Emmerin','28',3199,3025,4.91,'739','56215',17,41);
INSERT INTO "communes" VALUES('59','Salomé','07',2981,2937,5.25,'562','56147',20,31);
INSERT INTO "communes" VALUES('59','Cousolre','59',2395,2418,20.98,'2014','55829',143,229);
INSERT INTO "communes" VALUES('59','Templeuve','20',5786,5774,15.84,'932','56141',26,54);
INSERT INTO "communes" VALUES('59','Lauwin-Planque','23',1806,1901,3.67,'786','55989',22,40);
INSERT INTO "communes" VALUES('59','Hérin','67',3840,3937,4.48,'1240','55950',36,115);
INSERT INTO "communes" VALUES('59','Bruay-sur-l''Escaut','71',12276,11820,6.7,'1337','55998',17,34);
INSERT INTO "communes" VALUES('59','Saint-Remy-du-Nord','69',1193,1265,5.91,'1743','55814',122,174);
INSERT INTO "communes" VALUES('59','Nieurlet','68',980,934,10.25,'-60','56433',0,28);
INSERT INTO "communes" VALUES('59','Monceau-Saint-Waast','10',512,502,5.93,'1687','55745',132,171);
INSERT INTO "communes" VALUES('59','Ghyvelde','31',3266,3008,16.46,'212','56724',0,25);
INSERT INTO "communes" VALUES('59','Villers-Guislain','43',726,641,11.27,'910','55600',86,141);
INSERT INTO "communes" VALUES('59','Escautpont','19',4237,4204,5.78,'1358','56027',17,41);
INSERT INTO "communes" VALUES('59','Houplines','02',7611,7862,11.32,'636','56323',12,20);
INSERT INTO "communes" VALUES('59','Vieux-Condé','19',10494,10641,11.06,'1369','56066',13,51);
INSERT INTO "communes" VALUES('59','Forest-sur-Marque','33',1446,1562,1.05,'947','56260',21,25);
INSERT INTO "communes" VALUES('59','Lesquin','78',6394,6007,8.41,'861','56211',35,58);
INSERT INTO "communes" VALUES('59','Bambecque','31',729,655,11.81,'235','56557',2,24);
INSERT INTO "communes" VALUES('59','Saultain','65',2058,2075,6.45,'1377','55931',50,95);
INSERT INTO "communes" VALUES('59','Dimont','59',326,341,7.49,'1871','55759',149,211);
INSERT INTO "communes" VALUES('59','Allennes-les-Marais','57',3337,3235,5.55,'683','56151',18,29);
INSERT INTO "communes" VALUES('59','Escarmain','58',434,422,6.4,'1345','55810',61,118);
INSERT INTO "communes" VALUES('59','Capinghem','02',1620,1524,1.86,'695','56272',34,49);
INSERT INTO "communes" VALUES('59','Saulzoir','58',1701,1706,10.1,'1230','55823',43,88);
INSERT INTO "communes" VALUES('59','Maing','67',3987,3844,11.68,'1277','55899',24,90);
INSERT INTO "communes" VALUES('59','Gravelines','27',11516,12421,22.66,'-232','56652',0,25);
INSERT INTO "communes" VALUES('59','Hautmont','69',14239,16021,12.27,'1764','55831',123,184);
INSERT INTO "communes" VALUES('59','Thun-Saint-Amand','56',1136,1032,3.71,'1247','56089',14,38);
INSERT INTO "communes" VALUES('59','Masnières','43',2626,2522,10.97,'970','55684',54,119);
INSERT INTO "communes" VALUES('59','Raillencourt-Sainte-Olle','14',2358,2278,7.09,'924','55769',45,86);
INSERT INTO "communes" VALUES('59','Abancourt','14',448,432,5.67,'974','55816',36,70);
INSERT INTO "communes" VALUES('59','Romeries','58',435,350,6.01,'1327','55781',91,126);
INSERT INTO "communes" VALUES('59','Staple','29',681,610,9.97,'131','56388',34,57);
INSERT INTO "communes" VALUES('59','Aulnoye-Aymeries','10',8642,9206,8.66,'1665','55783',125,151);
INSERT INTO "communes" VALUES('59','Noyelles-lès-Seclin','78',879,846,2.38,'756','56196',18,37);
INSERT INTO "communes" VALUES('59','Warneton','51',211,178,4.17,'684','56386',11,20);
INSERT INTO "communes" VALUES('59','Fontaine-au-Bois','32',661,653,7.68,'1456','55713',138,168);
INSERT INTO "communes" VALUES('59','Robersart','32',186,170,2.33,'1452','55730',139,166);
INSERT INTO "communes" VALUES('59','Saint-Remy-Chaussée','10',492,469,5.17,'1706','55744',136,182);
INSERT INTO "communes" VALUES('59','Baives','64',157,141,7.98,'2074','55626',184,239);
INSERT INTO "communes" VALUES('59','Saint-André-lez-Lille','38',11336,10112,3.16,'786','56289',16,22);
INSERT INTO "communes" VALUES('59','Bazuel','17',566,571,11.81,'1394','55657',112,158);
INSERT INTO "communes" VALUES('59','Raimbeaucourt','77',4126,4320,11.08,'851','56044',19,57);
INSERT INTO "communes" VALUES('59','Wahagnies','48',2588,2688,5.69,'777','56095',27,66);
INSERT INTO "communes" VALUES('59','Ribécourt-la-Tour','43',373,404,8.79,'881','55679',59,121);
INSERT INTO "communes" VALUES('59','Lécluse','01',1442,1588,4.96,'783','55863',35,75);
INSERT INTO "communes" VALUES('59','<NAME>','08',2181,2199,17.64,'1689','55877',134,161);
INSERT INTO "communes" VALUES('59','Beaucamps-Ligny','74',889,914,5.04,'645','56227',24,41);
INSERT INTO "communes" VALUES('59','Floursies','03',138,129,4.65,'1813','55757',177,208);
INSERT INTO "communes" VALUES('59','Oost-Cappel','31',528,391,3.99,'290','56583',8,17);
INSERT INTO "communes" VALUES('59','Boëseghem','30',712,755,7.08,'112','56291',17,68);
INSERT INTO "communes" VALUES('59','Don','57',1365,1141,2.32,'648','56164',18,24);
INSERT INTO "communes" VALUES('59','Houdain-lez-Bavay','08',868,911,12.18,'1609','55905',94,147);
INSERT INTO "communes" VALUES('59','Englos','74',563,507,1.35,'689','56251',26,47);
INSERT INTO "communes" VALUES('59','Villereau','50',944,701,5.52,'1511','55829',93,149);
INSERT INTO "communes" VALUES('59','Hallennes-lez-Haubourdin','74',3997,3813,4.35,'692','56237',19,43);
INSERT INTO "communes" VALUES('59','Bruille-lez-Marchiennes','42',1338,1214,4.33,'1008','55954',20,34);
INSERT INTO "communes" VALUES('59','Quiévrechain','65',5998,6072,4.71,'1478','55995',24,118);
INSERT INTO "communes" VALUES('59','Mairieux','44',774,784,6.49,'1840','55904',129,169);
INSERT INTO "communes" VALUES('59','Wandignies-Hamage','42',1254,1123,6.3,'1087','56000',15,21);
INSERT INTO "communes" VALUES('59','Chemy','57',645,672,3.48,'724','56145',22,31);
INSERT INTO "communes" VALUES('59','Preux-au-Bois','32',837,807,3.99,'1467','55737',139,160);
INSERT INTO "communes" VALUES('59','Tressin','33',1262,934,1.89,'953','56244',23,34);
INSERT INTO "communes" VALUES('59','Godewaersvelde','60',2026,1935,11.89,'341','56438',27,163);
INSERT INTO "communes" VALUES('59','Maubeuge','93',31046,33561,18.85,'1818','55863',122,167);
INSERT INTO "communes" VALUES('59','Faumont','47',2096,1916,9.58,'890','56067',27,46);
INSERT INTO "communes" VALUES('59','Curgies','65',1091,1192,6.08,'1407','55922',79,108);
INSERT INTO "communes" VALUES('59','Sancourt','14',201,218,3.88,'952','55795',53,76);
INSERT INTO "communes" VALUES('59','Lieu-Saint-Amand','11',1260,1247,5.11,'1121','55859',34,69);
INSERT INTO "communes" VALUES('59','Fournes-en-Weppes','07',2035,2008,8.22,'614','56206',26,43);
INSERT INTO "communes" VALUES('59','Wavrechain-sous-Faulx','11',440,368,3.8,'1056','55859',31,59);
INSERT INTO "communes" VALUES('59','Cagnoncles','13',539,465,6.23,'1082','55768',47,86);
INSERT INTO "communes" VALUES('59','Merville','46',8993,8903,26.96,'338','56271',12,19);
INSERT INTO "communes" VALUES('59','Zegerscappel','68',1464,1202,17.4,'55','56542',7,40);
INSERT INTO "communes" VALUES('59','Brunémont','01',635,408,1.95,'892','55859',34,53);
INSERT INTO "communes" VALUES('59','Tourcoing','97',91923,93531,15.19,'915','56358',24,49);
INSERT INTO "communes" VALUES('59','Wicres','07',382,305,2.77,'590','56190',26,39);
INSERT INTO "communes" VALUES('59','Montay','17',350,339,5.51,'1338','55688',77,146);
INSERT INTO "communes" VALUES('59','Nomain','47',2464,2388,19.11,'1015','56110',28,58);
INSERT INTO "communes" VALUES('59','Bry','50',376,349,2.88,'1492','55909',80,116);
INSERT INTO "communes" VALUES('59','Caudry','18',14393,13455,12.94,'1195','55695',103,138);
INSERT INTO "communes" VALUES('59','Pont-sur-Sambre','10',2586,2569,11.33,'1678','55804',122,166);
INSERT INTO "communes" VALUES('59','Sailly-lez-Cambrai','14',450,441,3.28,'934','55769',55,82);
INSERT INTO "communes" VALUES('59','Bray-Dunes','25',4666,4553,8.57,'212','56746',0,29);
INSERT INTO "communes" VALUES('59','Neuville-en-Ferrain','62',10132,9531,6.18,'913','56385',20,52);
INSERT INTO "communes" VALUES('59','Bersillies','44',264,275,2.83,'1854','55913',120,154);
INSERT INTO "communes" VALUES('59','Jeumont','44',9772,10779,10.21,'1961','55883',122,201);
INSERT INTO "communes" VALUES('59','Bouvignies','42',1517,1537,8.7,'1010','56040',16,30);
INSERT INTO "communes" VALUES('59','Gruson','33',1145,1194,3.13,'966','56216',24,53);
INSERT INTO "communes" VALUES('59','Moustier-en-Fagne','64',61,72,7.13,'2064','55660',177,222);
INSERT INTO "communes" VALUES('59','Bousignies','56',315,268,3.14,'1124','56039',15,19);
INSERT INTO "communes" VALUES('59','Noordpeene','16',788,674,17.12,'68','56451',0,68);
INSERT INTO "communes" VALUES('59','Bollezeele','68',1403,1383,17.54,'-11','56518',2,52);
INSERT INTO "communes" VALUES('59','Terdeghem','60',554,541,8.82,'226','56443',19,80);
INSERT INTO "communes" VALUES('59','Lallaing','22',6525,6996,5.99,'924','55989',16,30);
INSERT INTO "communes" VALUES('59','Cassel','16',2287,2298,12.65,'168','56444',32,176);
INSERT INTO "communes" VALUES('59','Coudekerque-Branche','72',22474,24132,9.14,'60','56694',0,6);
INSERT INTO "communes" VALUES('59','Locquignol','49',346,340,97.55,'1533','55776',125,174);
INSERT INTO "communes" VALUES('59','Caullery','18',466,447,2.5,'1152','55650',105,144);
INSERT INTO "communes" VALUES('59','Prémesques','02',2164,1915,5.07,'684','56284',17,42);
INSERT INTO "communes" VALUES('59','Quiévy','15',1742,1733,6.86,'1212','55740',75,117);
INSERT INTO "communes" VALUES('59','Annœullin','57',9663,9714,9.01,'662','56144',19,31);
INSERT INTO "communes" VALUES('59','Beauvois-en-Cambrésis','15',2143,1994,3.52,'1163','55709',86,121);
INSERT INTO "communes" VALUES('59','Hondschoote','31',4106,3811,23.66,'276','56644',0,19);
INSERT INTO "communes" VALUES('59','Blaringhem','29',2000,1788,18.23,'75','56324',17,76);
INSERT INTO "communes" VALUES('59','Boussières-en-Cambrésis','15',428,428,4.82,'1144','55739',70,109);
INSERT INTO "communes" VALUES('59','Écuélin','10',111,120,3.4,'1745','55771',150,185);
INSERT INTO "communes" VALUES('59','Uxem','25',1324,1076,8.27,'163','56691',0,8);
INSERT INTO "communes" VALUES('59','Willies','64',166,139,4.14,'1957','55690',162,230);
INSERT INTO "communes" VALUES('59','Saint-Pierre-Brouck','12',984,811,8.86,'-167','56551',1,5);
INSERT INTO "communes" VALUES('59','Estrées','01',967,1037,5.82,'815','55889',33,63);
INSERT INTO "communes" VALUES('59','Hardifort','16',382,363,6.14,'166','56467',24,130);
INSERT INTO "communes" VALUES('59','Crèvecur-sur-l''Escaut','43',678,643,19.06,'1016','55673',60,147);
INSERT INTO "communes" VALUES('59','Zermezeele','16',194,178,4.83,'126','56472',14,54);
INSERT INTO "communes" VALUES('59','Anneux','43',243,226,5.44,'877','55727',56,99);
INSERT INTO "communes" VALUES('59','Ebblinghem','29',657,554,9.2,'81','56369',29,70);
INSERT INTO "communes" VALUES('59','Nivelle','56',1283,1187,5.92,'1256','56081',14,27);
INSERT INTO "communes" VALUES('59','Fenain','42',5355,5359,5.78,'1071','55962',16,47);
INSERT INTO "communes" VALUES('59','Flesquières','43',276,271,6.28,'867','55693',67,108);
INSERT INTO "communes" VALUES('59','Saint-Waast','08',614,644,5.91,'1568','55894',85,142);
INSERT INTO "communes" VALUES('59','Preux-au-Sart','50',289,233,5.09,'1501','55871',80,139);
INSERT INTO "communes" VALUES('59','Beugnies','03',581,522,8.92,'1865','55736',179,219);
INSERT INTO "communes" VALUES('59','Estourmel','15',453,419,5.45,'1095','55721',59,96);
INSERT INTO "communes" VALUES('59','Trélon','64',3090,2824,39.15,'1962','55621',170,251);
INSERT INTO "communes" VALUES('59','Ors','17',653,713,17.76,'1441','55666',133,167);
INSERT INTO "communes" VALUES('59','Hestrud','59',291,275,6.09,'2016','55777',165,232);
INSERT INTO "communes" VALUES('59','Erre','42',1448,1346,5.88,'1087','55958',16,49);
INSERT INTO "communes" VALUES('59','Buysscheure','16',513,453,6.15,'-4','56449',2,50);
INSERT INTO "communes" VALUES('59','Féchain','01',1849,1871,5.14,'975','55851',31,71);
INSERT INTO "communes" VALUES('59','Sailly-lez-Lannoy','33',1776,1764,4.43,'986','56274',22,48);
INSERT INTO "communes" VALUES('59','Croix','54',20676,20640,4.44,'908','56305',20,48);
INSERT INTO "communes" VALUES('59','Estreux','65',961,861,5.3,'1397','55945',48,89);
INSERT INTO "communes" VALUES('59','Saint-Sylvestre-Cappel','60',1105,1073,8.14,'242','56419',28,58);
INSERT INTO "communes" VALUES('59','Anzin','71',13412,14058,3.64,'1298','55968',18,95);
INSERT INTO "communes" VALUES('59','Millam','12',783,648,12.44,'-98','56506',0,54);
INSERT INTO "communes" VALUES('59','Escobecques','74',307,312,1.85,'660','56246',23,42);
INSERT INTO "communes" VALUES('59','Drincham','12',259,210,3.38,'-30','56562',1,15);
INSERT INTO "communes" VALUES('59','Hantay','07',1046,884,2.09,'595','56151',20,25);
INSERT INTO "communes" VALUES('59','Lompret','51',2335,2357,3.1,'726','56299',22,34);
INSERT INTO "communes" VALUES('59','Comines','51',12372,11945,16.02,'746','56401',11,24);
INSERT INTO "communes" VALUES('59','Marly','65',11871,11668,8.04,'1342','55943',29,70);
INSERT INTO "communes" VALUES('59','Pecquencourt','42',6154,6355,9.6,'977','55975',16,27);
INSERT INTO "communes" VALUES('59','Cappelle-Brouck','12',1148,1085,17.55,'-127','56558',0,4);
INSERT INTO "communes" VALUES('59','Boeschepe','60',2197,2012,13.59,'394','56444',28,153);
INSERT INTO "communes" VALUES('59','Ronchin','40',18120,18135,5.42,'835','56227',28,57);
INSERT INTO "communes" VALUES('59','Thumeries','48',3916,3391,7.03,'798','56088',44,68);
INSERT INTO "communes" VALUES('59','Oxelaëre','16',510,362,4.72,'155','56432',29,103);
INSERT INTO "communes" VALUES('59','Raucourt-au-Bois','49',176,149,1.04,'1471','55789',131,148);
INSERT INTO "communes" VALUES('59','Bierné','09',1644,1732,11.04,'83','56625',0,11);
INSERT INTO "communes" VALUES('59','Bondues','70',9930,10674,13.05,'841','56335',18,53);
INSERT INTO "communes" VALUES('59','Avelin','48',2559,2307,13.76,'828','56156',29,58);
INSERT INTO "communes" VALUES('59','Anstaing','33',1267,1180,2.3,'949','56228',23,40);
INSERT INTO "communes" VALUES('59','Winnezeele','60',1215,1106,15.54,'238','56490',5,41);
INSERT INTO "communes" VALUES('59','Oisy','67',564,471,2.57,'1225','55955',24,45);
INSERT INTO "communes" VALUES('59','Sercus','29',411,343,4.98,'133','56342',41,70);
INSERT INTO "communes" VALUES('59','Assevent','44',1757,1874,1.87,'1865','55876',122,151);
INSERT INTO "communes" VALUES('59','Brouckerque','12',1281,1165,11.91,'-49','56615',0,8);
INSERT INTO "communes" VALUES('59','Villers-Pol','50',1235,1257,12.17,'1422','55872',62,124);
INSERT INTO "communes" VALUES('59','Ochtezeele','16',341,242,5.58,'73','56463',19,62);
INSERT INTO "communes" VALUES('59','<NAME>','67',3322,3362,3.89,'1279','55944',21,66);
INSERT INTO "communes" VALUES('59','Dunkerque','90',92005,70834,43.89,'44','56709',0,17);
INSERT INTO "communes" VALUES('59','Saint-Martin-sur-Écaillon','58',526,424,5.3,'1323','55832',48,103);
INSERT INTO "communes" VALUES('59','Clairfayts','59',368,338,7.53,'1984','55730',175,246);
INSERT INTO "communes" VALUES('59','Douchy-les-Mines','21',10425,10410,9.2,'1174','55891',27,80);
INSERT INTO "communes" VALUES('59','Cauroir','13',572,514,5.61,'1073','55750',51,82);
INSERT INTO "communes" VALUES('59','Bantigny','14',470,464,3.17,'993','55810',39,65);
INSERT INTO "communes" VALUES('59','Vendegies-au-Bois','49',493,387,9.98,'1380','55755',107,147);
INSERT INTO "communes" VALUES('59','Hordain','11',1472,1189,5.66,'1087','55847',34,65);
INSERT INTO "communes" VALUES('59','Roucourt','24',394,369,3.19,'902','55920',32,67);
INSERT INTO "communes" VALUES('59','Inchy','17',729,784,3.9,'1251','55692',104,139);
INSERT INTO "communes" VALUES('59','Bouvines','20',709,773,2.71,'944','56199',25,49);
INSERT INTO "communes" VALUES('59','Ferrière-la-Grande','45',5464,5669,10.01,'1840','55839',127,184);
INSERT INTO "communes" VALUES('59','Gussignies','08',350,279,3.46,'1561','55931',63,131);
INSERT INTO "communes" VALUES('59','Wallers-en-Fagne','64',299,215,7.79,'2043','55626',186,236);
INSERT INTO "communes" VALUES('59','Escaudain','21',9149,9315,9.97,'1118','55927',31,51);
INSERT INTO "communes" VALUES('59','Rainsars','04',211,220,6.16,'1839','55635',160,223);
INSERT INTO "communes" VALUES('59','Quarouble','65',3091,3299,12.27,'1429','55988',16,51);
INSERT INTO "communes" VALUES('59','Verchain-Maugré','67',903,966,9.62,'1267','55853',32,88);
INSERT INTO "communes" VALUES('59','Escaudœuvres','13',3415,3702,6.64,'1032','55770',38,77);
INSERT INTO "communes" VALUES('59','Fontaine-au-Pire','15',1192,1110,7.57,'1153','55700',87,129);
INSERT INTO "communes" VALUES('59','Steene','09',1272,1184,10.28,'34','56615',0,28);
INSERT INTO "communes" VALUES('59','Honnechy','17',528,496,6.53,'1261','55632',113,151);
INSERT INTO "communes" VALUES('59','Flines-lez-Raches','22',5443,5436,19.22,'941','56030',15,40);
INSERT INTO "communes" VALUES('59','Paillencourt','14',991,950,7.56,'1042','55831',32,73);
INSERT INTO "communes" VALUES('59','Toufflers','33',3989,3862,2.39,'992','56290',23,43);
INSERT INTO "communes" VALUES('59','Cobrieux','20',527,518,2.84,'992','56160',30,66);
INSERT INTO "communes" VALUES('59','Briastre','58',720,620,6.92,'1278','55733',67,126);
INSERT INTO "communes" VALUES('59','Mœuvres','43',447,452,7.38,'809','55737',53,96);
INSERT INTO "communes" VALUES('59','Abscon','21',4228,4136,7.27,'1073','55927',38,64);
INSERT INTO "communes" VALUES('59','Étrœungt','04',1390,1396,25.1,'1768','55620',148,217);
INSERT INTO "communes" VALUES('59','Saint-Amand-les-Eaux','96',16697,17172,33.81,'1212','56053',14,39);
INSERT INTO "communes" VALUES('59','Douai','89',42197,42812,16.88,'825','55968',16,38);
INSERT INTO "communes" VALUES('59','Bruille-Saint-Amand','55',1614,1470,7.88,'1314','56061',16,38);
INSERT INTO "communes" VALUES('59','Doignies','43',296,225,7.4,'753','55699',78,121);
INSERT INTO "communes" VALUES('59','Erquinghem-Lys','02',4535,4493,9,'568','56306',12,20);
INSERT INTO "communes" VALUES('59','Orchies','47',8178,7474,10.92,'1008','56083',22,49);
INSERT INTO "communes" VALUES('59','Villers-Plouich','43',414,398,10.97,'886','55643',78,131);
INSERT INTO "communes" VALUES('59','Beuvry-la-Forêt','47',2737,2762,12.52,'1056','56066',14,35);
INSERT INTO "communes" VALUES('59','<NAME>','74',609,561,3.51,'610','56239',18,34);
INSERT INTO "communes" VALUES('59','Cantaing-sur-Escaut','43',423,410,6.48,'919','55721',47,97);
INSERT INTO "communes" VALUES('59','Cartignies','04',1249,1133,26.41,'1677','55658',140,213);
INSERT INTO "communes" VALUES('59','Lynde','29',691,592,9.07,'92','56348',34,72);
INSERT INTO "communes" VALUES('59','Ledringhem','68',673,508,7.01,'116','56505',11,26);
INSERT INTO "communes" VALUES('59','Neuville-Saint-Rémy','14',3744,3960,2.37,'984','55764',42,67);
INSERT INTO "communes" VALUES('59','Wallers','66',5577,5584,20.89,'1173','55973',15,135);
INSERT INTO "communes" VALUES('59','Grand-Fort-Philippe','27',5434,6071,3.13,'-252','56664',3,10);
INSERT INTO "communes" VALUES('59','Monchaux-sur-Écaillon','67',551,623,4.55,'1243','55874',31,84);
INSERT INTO "communes" VALUES('59','Bertry','18',2210,2256,8.54,'1229','55653',119,152);
INSERT INTO "communes" VALUES('59','Nieppe','05',7587,7463,17.24,'558','56337',12,21);
INSERT INTO "communes" VALUES('59','<NAME>','46',5956,5213,15.03,'420','56265',12,19);
INSERT INTO "communes" VALUES('59','Berthen','06',506,517,5.18,'398','56425',32,162);
INSERT INTO "communes" VALUES('59','Bachy','20',1448,1329,6.41,'1026','56167',31,74);
INSERT INTO "communes" VALUES('59','Tilloy-lez-Marchiennes','42',556,405,5.5,'1091','56031',15,20);
INSERT INTO "communes" VALUES('59','Château-l''Abbaye','55',868,759,4.41,'1270','56093',13,28);
INSERT INTO "communes" VALUES('59','Hon-Hergies','08',830,806,11.02,'1647','55918',88,152);
INSERT INTO "communes" VALUES('59','Bousignies-sur-Roc','59',432,412,12.14,'2050','55848',130,224);
INSERT INTO "communes" VALUES('59','Phalempin','48',4457,4616,7.93,'755','56130',24,65);
INSERT INTO "communes" VALUES('59','Ghissignies','49',483,423,4.52,'1423','55807',82,134);
INSERT INTO "communes" VALUES('59','Felleries','03',1606,1388,19.49,'1876','55715',160,236);
INSERT INTO "communes" VALUES('59','Blécourt','14',360,344,3.58,'975','55800',48,72);
INSERT INTO "communes" VALUES('59','Maulde','56',957,880,5.18,'1218','56114',13,42);
INSERT INTO "communes" VALUES('59','Saint-Aubin','03',374,388,10.12,'1758','55747',140,197);
INSERT INTO "communes" VALUES('59','Préseau','65',1870,1834,6.34,'1375','55901',49,99);
INSERT INTO "communes" VALUES('59','Berlaimont','10',3193,3228,13.1,'1639','55780',125,172);
INSERT INTO "communes" VALUES('59','Taisnières-en-Thiérache','03',466,497,8.5,'1641','55718',131,191);
INSERT INTO "communes" VALUES('59','Gonnelieu','43',329,266,4.97,'907','55620',89,137);
INSERT INTO "communes" VALUES('59','Râches','77',2740,2812,4.87,'889','56019',17,44);
INSERT INTO "communes" VALUES('59','Sainte-Marie-Cappel','16',834,691,7.56,'191','56427',34,90);
INSERT INTO "communes" VALUES('59','Thiant','67',2560,2568,8.39,'1235','55895',26,72);
INSERT INTO "communes" VALUES('59','Boursies','43',339,285,7.62,'774','55711',64,103);
INSERT INTO "communes" VALUES('59','Strazeele','30',773,681,4.69,'327','56363',17,61);
INSERT INTO "communes" VALUES('59','Armentières','02',25375,25249,6.28,'604','56319',11,20);
INSERT INTO "communes" VALUES('59','Vertain','58',467,516,5.78,'1322','55791',76,116);
INSERT INTO "communes" VALUES('59','Wasquehal','54',20046,18530,6.86,'882','56299',18,47);
INSERT INTO "communes" VALUES('59','Erquinghem-le-Sec','74',534,436,1.75,'661','56237',23,42);
INSERT INTO "communes" VALUES('59','Illies','07',1419,1256,7.91,'549','56179',20,41);
INSERT INTO "communes" VALUES('59','Mouvaux','63',13566,13167,4.17,'893','56337',28,57);
INSERT INTO "communes" VALUES('59','Vieux-Reng','44',853,810,11.64,'1900','55921',113,148);
INSERT INTO "communes" VALUES('59','Seclin','85',12295,12083,17.42,'770','56165',19,47);
INSERT INTO "communes" VALUES('59','Vieux-Mesnil','10',577,498,5.95,'1698','55838',131,162);
INSERT INTO "communes" VALUES('59','Neuville-en-Avesnois','49',291,261,3.17,'1382','55774',87,134);
INSERT INTO "communes" VALUES('59','Merckeghem','68',574,540,10.73,'-45','56513',0,63);
INSERT INTO "communes" VALUES('59','Sepmeries','50',587,521,5.99,'1364','55870',53,106);
INSERT INTO "communes" VALUES('59','Saint-Python','58',991,1014,7.43,'1272','55767',58,117);
INSERT INTO "communes" VALUES('59','Awoingt','13',693,552,6.31,'1049','55728',61,101);
INSERT INTO "communes" VALUES('59','Merris','06',1065,957,10.09,'361','56350',18,61);
INSERT INTO "communes" VALUES('59','Hornaing','42',3426,2944,8.95,'1110','55964',16,45);
INSERT INTO "communes" VALUES('59','Anhiers','22',968,986,1.71,'911','56008',17,22);
INSERT INTO "communes" VALUES('59','Sars-et-Rosières','56',528,378,2.6,'1106','56050',16,21);
INSERT INTO "communes" VALUES('59','Zuydcoote','25',1669,1576,2.6,'170','56738',1,26);
INSERT INTO "communes" VALUES('59','Marcoing','43',1830,1929,15.11,'930','55690',51,127);
INSERT INTO "communes" VALUES('59','Lambersart','38',28504,28133,6.16,'764','56277',17,34);
INSERT INTO "communes" VALUES('59','Quérénaing','67',945,814,4.32,'1308','55875',71,102);
INSERT INTO "communes" VALUES('59','Bailleul','87',14480,14136,43.42,'442','56375',14,86);
INSERT INTO "communes" VALUES('59','Aubigny-au-Bac','01',1217,1048,5.16,'920','55847',32,61);
INSERT INTO "communes" VALUES('59','Willems','33',3015,2798,5.8,'1002','56258',22,48);
INSERT INTO "communes" VALUES('59','Villers-au-Tertre','01',608,653,4.57,'940','55891',48,86);
INSERT INTO "communes" VALUES('59','Gondecourt','57',3967,3901,8.22,'719','56161',19,31);
INSERT INTO "communes" VALUES('59','Boussois','45',3259,3447,6.29,'1894','55878',122,166);
INSERT INTO "communes" VALUES('59','Maroilles','32',1436,1381,22.13,'1582','55706',125,191);
INSERT INTO "communes" VALUES('59','Saint-Souplet','17',1290,1311,12.66,'1328','55618',101,161);
INSERT INTO "communes" VALUES('59','Cambrai','88',32584,33716,18.18,'998','55751',41,101);
INSERT INTO "communes" VALUES('59','Sequedin','74',4385,3614,3.93,'721','56252',18,43);
INSERT INTO "communes" VALUES('59','Floyon','04',513,515,17.47,'1723','55601',155,234);
INSERT INTO "communes" VALUES('59','Marcq-en-Barœul','70',38947,37181,14.04,'844','56300',16,51);
INSERT INTO "communes" VALUES('59','Écaillon','24',2002,2000,4,'977','55945',19,35);
INSERT INTO "communes" VALUES('59','Haverskerque','46',1472,1433,9.17,'227','56268',14,19);
INSERT INTO "communes" VALUES('59','Montigny-en-Ostrevent','24',4872,4848,5.42,'945','55963',18,40);
INSERT INTO "communes" VALUES('59','Estaires','46',5992,5688,12.82,'429','56271',12,19);
INSERT INTO "communes" VALUES('59','Neuf-Mesnil','69',1254,1383,1.21,'1746','55851',140,163);
INSERT INTO "communes" VALUES('59','Cysoing','20',4563,4217,13.62,'976','56187',26,56);
INSERT INTO "communes" VALUES('59','Jenlain','50',1054,1144,5.91,'1437','55902',54,116);
INSERT INTO "communes" VALUES('59','Sains-du-Nord','04',3004,3163,16.03,'1859','55660',163,234);
INSERT INTO "communes" VALUES('59','Famars','67',2519,2499,4.73,'1314','55906',36,87);
INSERT INTO "communes" VALUES('59','Troisvilles','17',823,782,8.42,'1260','55673',113,143);
INSERT INTO "communes" VALUES('59','Thun-Saint-Martin','13',531,457,6.03,'1066','55805',36,72);
INSERT INTO "communes" VALUES('59','Vieux-Berquin','06',2504,2184,25.96,'342','56328',15,20);
INSERT INTO "communes" VALUES('59','Naves','13',605,630,5.19,'1088','55780',41,80);
INSERT INTO "communes" VALUES('59','Lambres-lez-Douai','23',5092,4908,8.81,'812','55948',23,42);
INSERT INTO "communes" VALUES('59','Gognies-Chaussée','44',789,796,7.94,'1787','55933',122,158);
INSERT INTO "communes" VALUES('59','Denain','21',20351,20354,11.52,'1176','55921',26,115);
INSERT INTO "communes" VALUES('59','Villers-Outréaux','18',2182,2184,7.09,'1071','55593',113,147);
INSERT INTO "communes" VALUES('59','Coudekerque-Village','72',1167,1083,12.03,'89','56660',0,13);
INSERT INTO "communes" VALUES('59','Guesnain','24',4660,4878,4.05,'898','55947',20,42);
INSERT INTO "communes" VALUES('59','Bettrechies','08',247,246,3.36,'1564','55916',67,129);
INSERT INTO "communes" VALUES('59','Maurois','17',422,378,2.11,'1256','55639',126,151);
INSERT INTO "communes" VALUES('59','Moncheaux','48',1448,1317,4.97,'825','56059',37,76);
INSERT INTO "communes" VALUES('59','Cappelle-en-Pévèle','20',2119,1959,8.11,'929','56123',34,56);
INSERT INTO "communes" VALUES('59','Sainghin-en-Mélantois','20',2493,2543,10.48,'923','56208',25,52);
INSERT INTO "communes" VALUES('59','Brillon','56',735,684,2.87,'1104','56040',16,21);
INSERT INTO "communes" VALUES('59','Lederzeele','68',592,562,8.64,'-38','56469',4,41);
INSERT INTO "communes" VALUES('59','Bois-Grenier','02',1521,1450,7.25,'597','56277',15,20);
INSERT INTO "communes" VALUES('59','Capelle','58',161,153,5.07,'1346','55820',57,116);
INSERT INTO "communes" VALUES('59','Hem','33',17369,19664,9.65,'946','56284',20,52);
INSERT INTO "communes" VALUES('59','Bourghelles','20',1563,1419,6.55,'1008','56183',32,71);
INSERT INTO "communes" VALUES('59','Herzeele','68',1518,1293,17.17,'219','56541',4,26);
INSERT INTO "communes" VALUES('59','Sémeries','03',540,538,13.46,'1848','55689',148,222);
INSERT INTO "communes" VALUES('59','<NAME>','02',8259,7908,10.34,'621','56303',15,20);
INSERT INTO "communes" VALUES('59','Cattenières','15',676,674,5.4,'1107','55708',82,124);
INSERT INTO "communes" VALUES('59','Steenbecque','30',1743,1610,11.96,'165','56305',17,65);
INSERT INTO "communes" VALUES('59','Aulnoy-lez-Valenciennes','67',7280,7998,6.12,'1326','55924',33,91);
INSERT INTO "communes" VALUES('59','Mérignies','48',2485,2056,8.61,'859','56117',32,56);
INSERT INTO "communes" VALUES('59','Vendeville','78',1634,1434,2.57,'824','56195',36,51);
INSERT INTO "communes" VALUES('59','Raismes','55',12754,13691,33.31,'1277','55988',17,124);
INSERT INTO "communes" VALUES('59','Leers','33',9286,9646,5.4,'1008','56313',16,37);
INSERT INTO "communes" VALUES('59','Cuincy','23',6626,6844,7.01,'789','55980',23,44);
INSERT INTO "communes" VALUES('59','Haubourdin','28',14455,14956,5.31,'723','56232',17,35);
INSERT INTO "communes" VALUES('59','Noyelles-sur-Sambre','10',314,335,6.49,'1623','55730',128,170);
INSERT INTO "communes" VALUES('59','Flers-en-Escrebieux','77',5624,5530,7.11,'807','55998',18,43);
INSERT INTO "communes" VALUES('59','Forest-en-Cambrésis','32',549,506,8.87,'1372','55712',89,154);
INSERT INTO "communes" VALUES('59','Petit-Fayt','04',295,261,8.16,'1647','55671',139,197);
INSERT INTO "communes" VALUES('59','Malincourt','18',508,496,10.3,'1098','55608',110,152);
INSERT INTO "communes" VALUES('59','Marchiennes','42',4742,4636,21.44,'1051','56009',15,21);
INSERT INTO "communes" VALUES('59','Grande-Synthe','73',20991,23238,21.44,'-38','56681',0,17);
INSERT INTO "communes" VALUES('59','Téteghem','25',7072,7231,18.41,'119','56688',0,10);
INSERT INTO "communes" VALUES('59','Killem','31',964,991,11.99,'251','56620',1,19);
INSERT INTO "communes" VALUES('59','Bermerain','58',651,710,6.66,'1330','55836',47,107);
INSERT INTO "communes" VALUES('59','Mecquignies','08',652,584,4.78,'1623','55862',118,160);
INSERT INTO "communes" VALUES('59','Haynecourt','14',594,277,5.92,'917','55791',58,81);
INSERT INTO "communes" VALUES('59','Rouvignies','67',659,589,3.25,'1227','55919',25,53);
INSERT INTO "communes" VALUES('59','Masny','24',4361,4571,7.12,'961','55943',18,58);
INSERT INTO "communes" VALUES('59','Bouchain','11',4053,4283,12.39,'1089','55871',31,100);
INSERT INTO "communes" VALUES('59','Obies','08',704,580,5.43,'1611','55852',117,159);
INSERT INTO "communes" VALUES('59','Le Doulieu','46',1402,1227,11.74,'425','56314',15,19);
INSERT INTO "communes" VALUES('59','Lecelles','56',2653,2662,16.24,'1175','56079',15,26);
INSERT INTO "communes" VALUES('59','Grand-Fayt','04',515,444,8.8,'1628','55682',135,191);
INSERT INTO "communes" VALUES('59','Glageon','64',1833,1876,11.77,'1931','55618',168,244);
INSERT INTO "communes" VALUES('59','Prisches','32',996,960,23.11,'1589','55645',153,202);
INSERT INTO "communes" VALUES('59','Wemaers-Cappel','16',250,230,4.13,'116','56452',30,75);
INSERT INTO "communes" VALUES('59','Faches-Thumesnil','40',17407,15897,4.62,'819','56221',30,58);
INSERT INTO "communes" VALUES('59','Saint-Hilaire-lez-Cambrai','15',1643,1630,6.41,'1196','55759',71,107);
INSERT INTO "communes" VALUES('59','Wambrechies','38',9745,8532,15.47,'791','56317',13,26);
INSERT INTO "communes" VALUES('59','Beaurain','58',228,171,1.01,'1350','55755',115,131);
INSERT INTO "communes" VALUES('59','Craywick','27',597,464,7.73,'-111','56634',0,8);
INSERT INTO "communes" VALUES('59','Ennetières-en-Weppes','74',1190,1126,10.44,'672','56261',18,49);
INSERT INTO "communes" VALUES('59','West-Cappel','09',586,526,7.57,'190','56588',6,27);
INSERT INTO "communes" VALUES('59','Oudezeele','60',668,522,9.36,'193','56487',16,47);
INSERT INTO "communes" VALUES('59','Somain','42',12506,12005,12.32,'1049','55953',16,48);
INSERT INTO "communes" VALUES('59','Lez-Fontaine','59',215,210,4.51,'1917','55753',167,225);
INSERT INTO "communes" VALUES('59','Cappelle-la-Grande','26',8173,8610,5.46,'31','56665',1,5);
INSERT INTO "communes" VALUES('59','Rosult','56',1863,1838,8.16,'1141','56053',15,21);
INSERT INTO "communes" VALUES('59','Feignies','08',7222,7181,18.8,'1757','55892',130,161);
INSERT INTO "communes" VALUES('59','Avesnes-le-Sec','11',1358,1282,10.39,'1157','55833',48,77);
INSERT INTO "communes" VALUES('59','<NAME>','94',4994,4919,14.23,'1445','55832',82,138);
INSERT INTO "communes" VALUES('59','Honnecourt-sur-Escaut','43',743,736,15.49,'955','55596',72,151);
INSERT INTO "communes" VALUES('59','Verlinghem','51',2385,2377,10.08,'733','56313',12,34);
INSERT INTO "communes" VALUES('59','Lewarde','24',2739,2784,3.9,'925','55934',22,62);
INSERT INTO "communes" VALUES('59','Hergnies','19',4276,3847,10.75,'1317','56083',14,39);
INSERT INTO "communes" VALUES('59','Ostricourt','48',5225,5413,7.6,'772','56061',25,100);
INSERT INTO "communes" VALUES('59','Beaudignies','49',571,537,7.92,'1396','55819',65,131);
INSERT INTO "communes" VALUES('59','Saint-Hilaire-sur-Helpe','03',780,779,15.41,'1741','55702',140,206);
INSERT INTO "communes" VALUES('59','Sommaing','58',338,340,3.6,'1292','55850',37,95);
INSERT INTO "communes" VALUES('59','Steenwerck','05',3471,3260,27.47,'490','56334',13,19);
INSERT INTO "communes" VALUES('59','Gommegnies','50',2265,2001,15.78,'1523','55856',100,152);
INSERT INTO "communes" VALUES('59','Rumilly-en-Cambrésis','43',1449,1508,6.72,'982','55697',64,106);
INSERT INTO "communes" VALUES('59','Eccles','59',100,111,3.54,'1961','55784',170,223);
INSERT INTO "communes" VALUES('59','Moëres','31',808,666,19.46,'238','56683',0,2);
INSERT INTO "communes" VALUES('59','Saint-Benin','17',355,389,4.66,'1324','55641',97,153);
INSERT INTO "communes" VALUES('59','Banteux','43',323,365,6.18,'958','55624',71,133);
INSERT INTO "communes" VALUES('59','Auchy-lez-Orchies','47',1478,1155,7.79,'966','56089',32,52);
INSERT INTO "communes" VALUES('59','Templemars','78',3158,3434,4.61,'798','56193',28,47);
INSERT INTO "communes" VALUES('59','Linselles','61',8257,7876,11.71,'826','56375',17,52);
INSERT INTO "communes" VALUES('59','Houplin-Ancoisne','78',3431,3628,6.48,'739','56182',17,33);
INSERT INTO "communes" VALUES('59','Auby','77',7535,7962,7.12,'798','56017',18,32);
INSERT INTO "communes" VALUES('59','Wavrechain-sous-Denain','21',1638,1730,2.37,'1198','55923',29,45);
INSERT INTO "communes" VALUES('59','Sars-Poteries','59',1473,1540,7.88,'1878','55744',163,229);
INSERT INTO "communes" VALUES('59','Fontaine-Notre-Dame','14',1717,1633,10.52,'915','55741',44,117);
INSERT INTO "communes" VALUES('59','Pitgam','09',918,934,23.37,'-7','56587',1,43);
INSERT INTO "communes" VALUES('59','Dechy','24',5135,5284,9.27,'880','55947',18,46);
INSERT INTO "communes" VALUES('59','Esquelbecq','68',2145,2124,12.7,'105','56541',11,29);
INSERT INTO "communes" VALUES('59','Vred','42',1348,1441,3.42,'994','55993',16,20);
INSERT INTO "communes" VALUES('59','Looberghe','12',1180,1176,19.55,'-68','56574',0,11);
INSERT INTO "communes" VALUES('59','Reumont','17',379,316,2.77,'1274','55647',121,149);
INSERT INTO "communes" VALUES('59','Camphin-en-Pévèle','20',1977,1567,6.45,'1026','56217',37,56);
INSERT INTO "communes" VALUES('59','Boulogne-sur-Helpe','04',328,317,8.7,'1732','55643',144,207);
INSERT INTO "communes" VALUES('59','Bettignies','44',262,269,4.62,'1816','55927',122,158);
INSERT INTO "communes" VALUES('59','Villers-Sire-Nicole','44',995,956,8.45,'1866','55933',83,142);
INSERT INTO "communes" VALUES('59','Bellignies','08',894,835,5.18,'1592','55921',72,136);
INSERT INTO "communes" VALUES('59','La Neuville','48',680,639,3.95,'789','56105',40,66);
INSERT INTO "communes" VALUES('59','Recquignies','45',2347,2490,6.17,'1894','55868',122,189);
INSERT INTO "communes" VALUES('59','Hargnies','10',583,456,5.14,'1679','55841',137,162);
INSERT INTO "communes" VALUES('59','Damousies','45',229,236,5,'1863','55799',137,190);
INSERT INTO "communes" VALUES('59','Aubers','07',1528,1583,10.14,'543','56217',18,41);
INSERT INTO "communes" VALUES('59','Cuvillers','14',201,169,2.83,'1001','55803',49,74);
INSERT INTO "communes" VALUES('59','Bantouzelle','43',409,385,7.45,'966','55623',69,143);
INSERT INTO "communes" VALUES('59','Poix-du-Nord','49',2107,2014,8.67,'1413','55766',104,151);
INSERT INTO "communes" VALUES('59','Avesnes-sur-Helpe','86',4976,5002,2.31,'1766','55693',143,188);
INSERT INTO "communes" VALUES('59','Béthencourt','15',749,676,5.15,'1218','55707',87,121);
INSERT INTO "communes" VALUES('59','Bachant','10',2398,2385,9.37,'1698','55794',127,169);
INSERT INTO "communes" VALUES('59','Lesdain','43',408,422,8.43,'1034','55667',64,137);
INSERT INTO "communes" VALUES('59','Wavrin','28',7641,7624,13.55,'669','56193',18,40);
INSERT INTO "communes" VALUES('59','Niergnies','13',497,500,4.35,'1021','55720',76,104);
INSERT INTO "communes" VALUES('59','Erchin','01',766,780,5.28,'923','55909',33,74);
INSERT INTO "communes" VALUES('59','Féron','64',548,518,13.39,'1876','55607',158,223);
INSERT INTO "communes" VALUES('59','Beaurepaire-sur-Sambre','04',255,258,7.86,'1620','55624',166,211);
INSERT INTO "communes" VALUES('59','Beuvrages','71',6652,7678,3,'1299','55984',18,34);
INSERT INTO "communes" VALUES('59','Marbaix','04',472,426,6.62,'1672','55698',132,197);
INSERT INTO "communes" VALUES('59','Choisies','59',67,71,2.51,'1895','55793',144,202);
INSERT INTO "communes" VALUES('59','Eringhem','09',470,419,11.53,'8','56552',0,40);
INSERT INTO "communes" VALUES('60','Berneuil-en-Bray','02',789,756,15.15,'-301','54832',88,224);
INSERT INTO "communes" VALUES('60','Biermont','31',170,137,3.92,'441','55091',63,92);
INSERT INTO "communes" VALUES('60','Abbeville-Saint-Lucien','16',529,506,5.26,'-185','55019',130,156);
INSERT INTO "communes" VALUES('60','Sainte-Eusoye','16',274,229,8.48,'-101','55086',95,178);
INSERT INTO "communes" VALUES('60','Morienval','12',1022,1045,25.74,'648','54776',52,171);
INSERT INTO "communes" VALUES('60','Beaumont-les-Nonains','02',361,322,9.53,'-365','54809',145,231);
INSERT INTO "communes" VALUES('60','Croutoy','01',219,173,3.27,'784','54874',54,146);
INSERT INTO "communes" VALUES('60','Fresnoy-en-Thelle','26',943,816,6.28,'-74','54667',61,112);
INSERT INTO "communes" VALUES('60','Villers-sur-Trie','07',345,292,4.05,'-571','54786',69,132);
INSERT INTO "communes" VALUES('60','Thourotte','32',4736,5239,4.38,'608','54976',32,71);
INSERT INTO "communes" VALUES('60','Béthancourt-en-Valois','12',243,249,4.12,'601','54761',48,129);
INSERT INTO "communes" VALUES('60','Mont-l''Évêque','34',422,482,14.18,'327','54661',57,105);
INSERT INTO "communes" VALUES('60','Fresnoy-la-Rivière','12',601,618,6.81,'644','54761',52,138);
INSERT INTO "communes" VALUES('60','Hénonville','23',795,785,6.84,'-315','54675',80,151);
INSERT INTO "communes" VALUES('60','<NAME>','02',267,254,7.85,'-330','54814',145,232);
INSERT INTO "communes" VALUES('60','Saint-Étienne-Roilaye','01',320,320,7.96,'759','54853',48,141);
INSERT INTO "communes" VALUES('60','Hardivillers-en-Vexin','07',125,129,4.82,'-442','54782',119,164);
INSERT INTO "communes" VALUES('60','Lamécourt','08',225,202,3.44,'143','54923',77,150);
INSERT INTO "communes" VALUES('60','Velennes','27',246,271,6.17,'-170','54970',93,135);
INSERT INTO "communes" VALUES('60','Cuvergnon','05',320,317,7.33,'725','54638',97,141);
INSERT INTO "communes" VALUES('60','Dargies','17',245,219,14.42,'-386','55224',120,189);
INSERT INTO "communes" VALUES('60','Croissy-sur-Celle','13',275,228,11.1,'-184','55218',67,175);
INSERT INTO "communes" VALUES('60','<NAME>','13',163,117,3.47,'-254','55141',109,182);
INSERT INTO "communes" VALUES('60','Boulogne-la-Grasse','31',470,286,9.41,'409','55124',77,153);
INSERT INTO "communes" VALUES('60','Quinquempoix','33',334,258,5.86,'100','55057',99,139);
INSERT INTO "communes" VALUES('60','Lihus','22',375,307,16.03,'-325','55117',134,195);
INSERT INTO "communes" VALUES('60','Troussures','02',189,153,5.18,'-404','54877',97,231);
INSERT INTO "communes" VALUES('60','Labruyère','20',645,588,2.41,'192','54835',31,161);
INSERT INTO "communes" VALUES('60','Beaulieu-les-Fontaines','19',590,505,12.6,'640','55178',67,106);
INSERT INTO "communes" VALUES('60','Moyvillers','14',592,497,9.06,'349','54905',73,114);
INSERT INTO "communes" VALUES('60','Ormoy-Villers','12',643,655,10.37,'560','54663',84,131);
INSERT INTO "communes" VALUES('60','Therdonne','27',935,821,8.98,'-202','54910',54,113);
INSERT INTO "communes" VALUES('60','Esches','23',1256,1071,7.69,'-190','54687',57,142);
INSERT INTO "communes" VALUES('60','Corbeil-Cerf','23',326,290,3.95,'-259','54755',138,190);
INSERT INTO "communes" VALUES('60','Sains-Morainvillers','21',273,247,12.42,'149','55082',102,143);
INSERT INTO "communes" VALUES('60','Courteuil','34',627,632,5.32,'221','54665',42,84);
INSERT INTO "communes" VALUES('60','<NAME>','06',189,163,5.15,'87','55101',99,147);
INSERT INTO "communes" VALUES('60','Bouillancy','05',379,360,13.59,'645','54570',90,137);
INSERT INTO "communes" VALUES('60','Liancourt-Saint-Pierre','07',553,586,12.69,'-476','54705',63,137);
INSERT INTO "communes" VALUES('60','Le Plessier-sur-Saint-Just','33',483,510,7.63,'131','55012',90,162);
INSERT INTO "communes" VALUES('60','Escles-Saint-Pierre','15',138,120,3.37,'-592','55268',170,216);
INSERT INTO "communes" VALUES('60','Abbécourt','28',775,669,7.44,'-198','54840',77,150);
INSERT INTO "communes" VALUES('60','Maisoncelle-Tuilerie','16',309,248,7.72,'-129','55099',110,188);
INSERT INTO "communes" VALUES('60','Clairoix','09',2116,1951,4.7,'567','54936',31,141);
INSERT INTO "communes" VALUES('60','Moliens','15',1096,944,9.39,'-585','55185',192,222);
INSERT INTO "communes" VALUES('60','Varesnes','29',393,380,9.15,'803','55071',36,57);
INSERT INTO "communes" VALUES('60','Crèvecœur-le-Petit','21',111,128,3.33,'186','55086',93,127);
INSERT INTO "communes" VALUES('60','Cauffry','20',2421,2304,4.74,'124','54797',36,114);
INSERT INTO "communes" VALUES('60','Berlière','19',178,168,3.49,'473','55087',63,127);
INSERT INTO "communes" VALUES('60','Ville','29',779,675,6.04,'670','55060',41,164);
INSERT INTO "communes" VALUES('60','<NAME>','10',461,491,9.74,'-459','54866',149,236);
INSERT INTO "communes" VALUES('60','Dompierre','21',241,231,2.73,'221','55105',77,119);
INSERT INTO "communes" VALUES('60','Blargies','15',499,451,10.05,'-635','55192',185,227);
INSERT INTO "communes" VALUES('60','Hétomesnil','22',221,209,7.84,'-338','55140',137,192);
INSERT INTO "communes" VALUES('60','Wambez','35',150,123,4.54,'-539','55029',119,208);
INSERT INTO "communes" VALUES('60','Bresles','27',4260,3748,20.99,'-95','54901',47,107);
INSERT INTO "communes" VALUES('60','Ponchon','28',1095,1042,9.73,'-157','54830',61,147);
INSERT INTO "communes" VALUES('60','Lalandelle','10',438,439,11.23,'-512','54887',143,234);
INSERT INTO "communes" VALUES('60','Boury-en-Vexin','07',341,307,11.09,'-667','54712',37,141);
INSERT INTO "communes" VALUES('60','Épineuse','08',269,232,7.12,'242','54886',81,142);
INSERT INTO "communes" VALUES('60','Neuilly-sous-Clermont','24',1661,1675,7.74,'83','54828',49,160);
INSERT INTO "communes" VALUES('60','Hondainville','24',611,616,6,'-40','54822',38,131);
INSERT INTO "communes" VALUES('60','Blaincourt-lès-Précy','39',1195,1159,8.13,'22','54692',46,150);
INSERT INTO "communes" VALUES('60','Blincourt','08',123,74,2.82,'313','54871',69,98);
INSERT INTO "communes" VALUES('60','<NAME>','32',1446,1488,7.47,'615','54961',33,59);
INSERT INTO "communes" VALUES('60','Abancourt','15',646,568,6.01,'-635','55219',170,222);
INSERT INTO "communes" VALUES('60','Betz','05',1076,937,15.39,'688','54619',87,140);
INSERT INTO "communes" VALUES('60','Verneuil-en-Halatte','30',4486,4035,22.26,'206','54752',25,108);
INSERT INTO "communes" VALUES('60','Choisy-la-Victoire','08',214,219,9.97,'277','54864',34,113);
INSERT INTO "communes" VALUES('60','Welles-Pérennes','21',244,222,13.41,'163','55120',74,146);
INSERT INTO "communes" VALUES('60','Janville','09',723,695,0.94,'582','54950',32,138);
INSERT INTO "communes" VALUES('60','Cuigy-en-Bray','10',1035,816,9.81,'-567','54918',96,226);
INSERT INTO "communes" VALUES('60','Romescamps','15',550,481,10.48,'-591','55235',174,217);
INSERT INTO "communes" VALUES('60','Ribécourt-Dreslincourt','32',3978,3971,12.98,'651','55011',33,187);
INSERT INTO "communes" VALUES('60','Montherlant','23',138,114,5.18,'-319','54753',119,190);
INSERT INTO "communes" VALUES('60','Lachaussée-du-Bois-d''Écu','13',212,166,5.92,'-181','55066',142,172);
INSERT INTO "communes" VALUES('60','<NAME>','27',545,476,7.19,'-95','54945',86,123);
INSERT INTO "communes" VALUES('60','Mureaumont','15',149,110,4.74,'-622','55144',170,216);
INSERT INTO "communes" VALUES('60','Glatigny','35',209,151,3.63,'-491','54997',134,218);
INSERT INTO "communes" VALUES('60','Trosly-Breuil','01',2093,2164,10.98,'701','54887',32,126);
INSERT INTO "communes" VALUES('60','Bailleval','20',1476,1421,8.01,'134','54831',42,161);
INSERT INTO "communes" VALUES('60','Blacourt','10',528,414,11.49,'-531','54958',87,172);
INSERT INTO "communes" VALUES('60','Gerberoy','35',89,111,4.51,'-541','55038',111,201);
INSERT INTO "communes" VALUES('60','Ève','25',426,466,10.43,'409','54544',87,119);
INSERT INTO "communes" VALUES('60','Bosse','10',457,404,14.22,'-487','54828',109,216);
INSERT INTO "communes" VALUES('60','Rouville','12',288,267,7,'596','54675',90,150);
INSERT INTO "communes" VALUES('60','Bailleul-sur-Thérain','27',2097,1754,9.5,'-127','54873',46,138);
INSERT INTO "communes" VALUES('60','Roberval','30',384,352,4.83,'392','54768',34,150);
INSERT INTO "communes" VALUES('60','Énencourt-Léage','07',125,115,4.46,'-544','54782',67,142);
INSERT INTO "communes" VALUES('60','Élincourt-Sainte-Marguerite','19',885,763,10.98,'535','55029',37,182);
INSERT INTO "communes" VALUES('60','Éméville','12',292,279,1.84,'768','54760',114,165);
INSERT INTO "communes" VALUES('60','Villeneuve-les-Sablons','23',1281,1083,4.43,'-289','54708',91,133);
INSERT INTO "communes" VALUES('60','Compiègne','97',40517,41228,53.1,'540','54905',31,134);
INSERT INTO "communes" VALUES('60','Monchy-Humières','31',661,592,7.8,'462','54966',41,111);
INSERT INTO "communes" VALUES('60','Chiry-Ourscamp','32',1112,1202,13.25,'677','55050',33,150);
INSERT INTO "communes" VALUES('60','Le Plessis-Belleville','25',3337,2806,6.86,'463','54552',94,122);
INSERT INTO "communes" VALUES('60','Montreuil-sur-Thérain','28',244,182,1.47,'-159','54867',50,147);
INSERT INTO "communes" VALUES('60','Feuquières','17',1626,1552,12.24,'-544','55163',168,211);
INSERT INTO "communes" VALUES('60','Villers-Vicomte','06',152,142,5.2,'-108','55159',112,176);
INSERT INTO "communes" VALUES('60','Bonvillers','06',213,191,5.86,'21','55100',111,161);
INSERT INTO "communes" VALUES('60','Allonne','04',1572,1257,15.45,'-249','54893',53,161);
INSERT INTO "communes" VALUES('60','Saint-Jean-aux-Bois','37',285,348,25.21,'631','54831',38,138);
INSERT INTO "communes" VALUES('60','Évricourt','19',194,196,3,'632','55075',45,163);
INSERT INTO "communes" VALUES('60','Achy','22',347,291,12.7,'-397','55063',91,187);
INSERT INTO "communes" VALUES('60','Gilocourt','12',605,582,6.93,'603','54769',48,143);
INSERT INTO "communes" VALUES('60','Quincampoix-Fleuzy','15',398,426,9.22,'-627','55274',122,213);
INSERT INTO "communes" VALUES('60','Hadancourt-le-Haut-Clocher','07',361,351,8.67,'-533','54650',109,207);
INSERT INTO "communes" VALUES('60','Avricourt','19',264,216,7.01,'585','55173',73,95);
INSERT INTO "communes" VALUES('60','Canly','14',784,682,8,'413','54874',48,129);
INSERT INTO "communes" VALUES('60','Bailly','32',670,585,4.26,'704','54995',33,50);
INSERT INTO "communes" VALUES('60','Antilly','05',319,313,3.64,'719','54614',77,142);
INSERT INTO "communes" VALUES('60','Montreuil-sur-Brêche','16',530,440,10.53,'-68','55009',90,164);
INSERT INTO "communes" VALUES('60','Boutencourt','07',246,205,7.51,'-531','54800',78,163);
INSERT INTO "communes" VALUES('60','Rosoy','20',615,592,4.95,'183','54823',32,139);
INSERT INTO "communes" VALUES('60','Pontoise-lès-Noyon','29',479,438,6.58,'791','55059',37,59);
INSERT INTO "communes" VALUES('60','Chamant','34',909,957,12,'305','54689',57,117);
INSERT INTO "communes" VALUES('60','<NAME>','10',343,307,8.1,'-521','54818',87,185);
INSERT INTO "communes" VALUES('60','Séry-Magneval','12',298,269,6.02,'576','54731',52,126);
INSERT INTO "communes" VALUES('60','Godenvillers','21',167,135,5.18,'240','55099',75,117);
INSERT INTO "communes" VALUES('60','Gouy-les-Groseillers','06',35,18,3.07,'-132','55215',107,166);
INSERT INTO "communes" VALUES('60','Chèvreville','25',461,448,10.34,'570','54567',115,134);
INSERT INTO "communes" VALUES('60','Hardivillers','16',584,533,9.63,'-127','55129',112,187);
INSERT INTO "communes" VALUES('60','<NAME>','02',574,589,6.5,'-438','54838',155,235);
INSERT INTO "communes" VALUES('60','Gourchelles','15',130,119,2.23,'-618','55255',158,215);
INSERT INTO "communes" VALUES('60','Courcelles-Epayelles','21',193,141,6.38,'323','55075',84,109);
INSERT INTO "communes" VALUES('60','Courtieux','01',192,172,2.62,'836','54875',36,146);
INSERT INTO "communes" VALUES('60','Béhéricourt','29',218,208,5.3,'810','55107',37,178);
INSERT INTO "communes" VALUES('60','Formerie','15',2099,2170,8.45,'-674','55167',206,229);
INSERT INTO "communes" VALUES('60','Éragny-sur-Epte','07',593,554,8.53,'-625','54795',51,124);
INSERT INTO "communes" VALUES('60','Muirancourt','18',554,488,5.68,'746','55160',48,106);
INSERT INTO "communes" VALUES('60','Ognes','25',264,258,6.76,'545','54555',97,131);
INSERT INTO "communes" VALUES('60','Braisnes','31',168,179,2.6,'487','54975',42,92);
INSERT INTO "communes" VALUES('60','Antheuil-Portes','31',420,417,10.73,'465','54995',60,118);
INSERT INTO "communes" VALUES('60','Thieuloy-Saint-Antoine','17',340,340,2.49,'-434','55149',165,196);
INSERT INTO "communes" VALUES('60','Cuy','19',228,214,4.33,'634','55095',49,161);
INSERT INTO "communes" VALUES('60','Bonneuil-les-Eaux','06',817,750,18.29,'-112','55198',72,172);
INSERT INTO "communes" VALUES('60','Lachapelle-Saint-Pierre','28',876,921,4.22,'-112','54744',117,203);
INSERT INTO "communes" VALUES('60','Villers-Saint-Genest','05',401,351,9.66,'633','54603',120,135);
INSERT INTO "communes" VALUES('60','Orrouy','12',584,570,16.14,'582','54771',45,143);
INSERT INTO "communes" VALUES('60','Chambly','26',9438,9122,12.87,'-98','54630',32,140);
INSERT INTO "communes" VALUES('60','La Neuville-sur-Ressons','31',228,179,2.68,'462','55057',56,130);
INSERT INTO "communes" VALUES('60','Tracy-le-Val','32',1047,860,4.69,'748','54988',45,147);
INSERT INTO "communes" VALUES('60','Nointel','20',1008,1034,9.35,'162','54861',53,158);
INSERT INTO "communes" VALUES('60','Vandélicourt','32',263,202,4.67,'508','55014',42,109);
INSERT INTO "communes" VALUES('60','Frocourt','02',558,512,6.44,'-280','54870',77,152);
INSERT INTO "communes" VALUES('60','Viefvillers','13',173,165,4.09,'-230','55126',149,182);
INSERT INTO "communes" VALUES('60','Senots','07',324,275,6.25,'-383','54738',87,147);
INSERT INTO "communes" VALUES('60','Saint-Pierre-es-Champs','10',679,657,10.8,'-677','54924',77,222);
INSERT INTO "communes" VALUES('60','Loueuse','35',148,135,7.32,'-568','55110',139,199);
INSERT INTO "communes" VALUES('60','Rieux','20',1596,1605,2.33,'202','54778',27,109);
INSERT INTO "communes" VALUES('60','Pouilly','23',163,160,3.81,'-340','54747',96,165);
INSERT INTO "communes" VALUES('60','Cernoy','33',242,188,4.91,'227','54934',100,155);
INSERT INTO "communes" VALUES('60','Campremy','16',389,332,10.21,'-27','55078',118,175);
INSERT INTO "communes" VALUES('60','Laboissière-en-Thelle','28',1266,1256,9.64,'-198','54766',125,223);
INSERT INTO "communes" VALUES('60','Francastel','13',417,384,12.58,'-208','55099',160,186);
INSERT INTO "communes" VALUES('60','Nogent-sur-Oise','11',18833,19150,7.46,'145','54750',27,100);
INSERT INTO "communes" VALUES('60','Vacquerie','17',208,184,8.28,'-270','55202',118,187);
INSERT INTO "communes" VALUES('60','Étavigny','05',163,118,7.17,'714','54578',78,145);
INSERT INTO "communes" VALUES('60','Bornel','23',3588,3297,12.48,'-141','54665',43,162);
INSERT INTO "communes" VALUES('60','Grez','17',258,205,5.86,'-398','55155',164,193);
INSERT INTO "communes" VALUES('60','Sérifontaine','10',2768,2633,20.43,'-629','54837',56,200);
INSERT INTO "communes" VALUES('60','Brombos','17',254,218,6.9,'-499','55163',175,207);
INSERT INTO "communes" VALUES('60','Auteuil','02',591,535,11.92,'-277','54824',87,231);
INSERT INTO "communes" VALUES('60','Vignemont','31',397,410,4.23,'489','55002',50,136);
INSERT INTO "communes" VALUES('60','Conchy-les-Pots','31',608,521,9.67,'435','55116',74,117);
INSERT INTO "communes" VALUES('60','Gournay-sur-Aronde','31',601,582,14.71,'375','54992',47,127);
INSERT INTO "communes" VALUES('60','Beaurains-lès-Noyon','29',287,264,3.8,'707','55123',42,74);
INSERT INTO "communes" VALUES('60','Saint-Martin-le-Nœud','04',1055,941,5.46,'-307','54885',86,170);
INSERT INTO "communes" VALUES('60','Saint-Omer-en-Chaussée','22',1322,1057,10.33,'-371','55035',85,177);
INSERT INTO "communes" VALUES('60','Mareuil-sur-Ourcq','05',1588,1439,10.14,'823','54596',56,138);
INSERT INTO "communes" VALUES('60','Conteville','13',81,76,3.62,'-319','55168',120,178);
INSERT INTO "communes" VALUES('60','Mouy','24',5282,5331,9.87,'-19','54796',37,123);
INSERT INTO "communes" VALUES('60','Pontpoint','30',3136,2789,19.11,'337','54779',29,223);
INSERT INTO "communes" VALUES('60','Versigny','25',395,364,14.5,'474','54623',72,134);
INSERT INTO "communes" VALUES('60','Chaumont-en-Vexin','07',3030,3073,18.54,'-497','54742',57,144);
INSERT INTO "communes" VALUES('60','Lataule','31',117,106,7.37,'382','55045',59,133);
INSERT INTO "communes" VALUES('60','Ivors','05',245,212,8.35,'755','54668',82,151);
INSERT INTO "communes" VALUES('60','Buicourt','35',139,145,3.51,'-575','55044',128,211);
INSERT INTO "communes" VALUES('60','Noirémont','16',177,132,6.37,'-139','55056',119,164);
INSERT INTO "communes" VALUES('60','Vrocourt','35',39,42,4.4,'-500','55032',99,181);
INSERT INTO "communes" VALUES('60','Cuts','29',946,858,10.78,'848','55035',47,155);
INSERT INTO "communes" VALUES('60','Grandvilliers','17',3034,2895,6.64,'-440','55185',177,204);
INSERT INTO "communes" VALUES('60','Mouchy-le-Châtel','28',79,67,3.22,'-96','54807',56,125);
INSERT INTO "communes" VALUES('60','Valdampierre','02',916,879,8.67,'-316','54781',126,226);
INSERT INTO "communes" VALUES('60','Daméraucourt','17',227,166,8.57,'-455','55231',128,197);
INSERT INTO "communes" VALUES('60','Saint-Sauveur','37',1562,1605,16.5,'496','54798',33,133);
INSERT INTO "communes" VALUES('60','Neuville-Bosc','23',528,439,8.89,'-361','54666',81,217);
INSERT INTO "communes" VALUES('60','Haudivillers','27',801,833,9.79,'-104','54985',113,149);
INSERT INTO "communes" VALUES('60','Delincourt','07',511,507,8.05,'-561','54715',65,144);
INSERT INTO "communes" VALUES('60','Béthisy-Saint-Pierre','12',3287,3133,6.53,'518','54779',35,132);
INSERT INTO "communes" VALUES('60','Trie-la-Ville','07',325,328,4.55,'-560','54767',56,114);
INSERT INTO "communes" VALUES('60','Méru','23',13269,12704,22.83,'-224','54707',72,184);
INSERT INTO "communes" VALUES('60','Apremont','36',713,813,13.62,'191','54693',54,133);
INSERT INTO "communes" VALUES('60','Montjavoult','07',482,467,16.73,'-615','54683',71,207);
INSERT INTO "communes" VALUES('60','Rousseloy','24',306,335,3.9,'62','54777',41,116);
INSERT INTO "communes" VALUES('60','Chepoix','06',386,304,8.86,'50','55117',88,155);
INSERT INTO "communes" VALUES('60','Thiers-sur-Thève','34',1106,978,6.25,'262','54614',54,102);
INSERT INTO "communes" VALUES('60','Erquinvillers','33',166,161,3.77,'157','54954',102,137);
INSERT INTO "communes" VALUES('60','Silly-le-Long','25',1156,1103,11.35,'506','54563',98,127);
INSERT INTO "communes" VALUES('60','Lieuvillers','33',651,514,9.41,'177','54967',92,159);
INSERT INTO "communes" VALUES('60','Réez-Fosse-Martin','05',163,130,7.11,'646','54569',85,139);
INSERT INTO "communes" VALUES('60','Rully','30',737,733,15.45,'435','54706',72,147);
INSERT INTO "communes" VALUES('60','Maysel','39',244,262,3.71,'42','54734',32,142);
INSERT INTO "communes" VALUES('60','Lormaison','23',1290,1368,4.98,'-256','54730',102,153);
INSERT INTO "communes" VALUES('60','Campeaux','15',546,432,11.46,'-645','55133',174,222);
INSERT INTO "communes" VALUES('60','Rotangy','13',200,195,9.78,'-282','55092',134,179);
INSERT INTO "communes" VALUES('60','Amblainville','23',1730,1688,20.98,'-239','54670',65,145);
INSERT INTO "communes" VALUES('60','Cires-lès-Mello','26',3535,3586,16.73,'22','54748',32,149);
INSERT INTO "communes" VALUES('60','Saint-Valery','15',61,39,4.52,'-669','55251',135,219);
INSERT INTO "communes" VALUES('60','Grandrû','29',295,251,7.35,'834','55118',58,187);
INSERT INTO "communes" VALUES('60','Fosseuse','23',736,741,4.44,'-167','54682',50,129);
INSERT INTO "communes" VALUES('60','Berlancourt','18',334,282,7.12,'814','55190',62,102);
INSERT INTO "communes" VALUES('60','Puiseux-en-Bray','10',410,339,8.01,'-614','54906',102,210);
INSERT INTO "communes" VALUES('60','Songeons','35',1114,1075,13.53,'-537','55055',107,193);
INSERT INTO "communes" VALUES('60','Lhéraule','35',185,142,2.76,'-451','54986',118,218);
INSERT INTO "communes" VALUES('60','Luchy','13',570,487,10.79,'-242','55061',134,174);
INSERT INTO "communes" VALUES('60','Porcheux','02',315,256,4.71,'-457','54814',119,208);
INSERT INTO "communes" VALUES('60','Péroy-les-Gombries','25',1023,987,11.21,'566','54625',97,135);
INSERT INTO "communes" VALUES('60','Ernemont-Boutavent','35',191,154,8.95,'-587','55099',147,206);
INSERT INTO "communes" VALUES('60','Chevrières','14',1743,1640,12.4,'384','54828',29,82);
INSERT INTO "communes" VALUES('60','Fresne-Léguillon','07',470,469,7.31,'-392','54727',74,132);
INSERT INTO "communes" VALUES('60','Mareuil-la-Motte','19',612,587,9.17,'504','55050',63,188);
INSERT INTO "communes" VALUES('60','Hodenc-l''Évêque','28',238,190,3.47,'-210','54818',93,216);
INSERT INTO "communes" VALUES('60','Juvignies','27',290,276,8.09,'-278','55021',115,169);
INSERT INTO "communes" VALUES('60','Flavy-le-Meldeux','18',201,193,3.15,'786','55206',65,95);
INSERT INTO "communes" VALUES('60','Mortemer','31',197,176,6.56,'377','55078',78,108);
INSERT INTO "communes" VALUES('60','Saint-Félix','24',607,483,5.13,'-57','54831',42,140);
INSERT INTO "communes" VALUES('60','Oudeuil','22',255,190,6.08,'-343','55054',97,180);
INSERT INTO "communes" VALUES('60','Saint-Remy-en-l''Eau','33',426,370,10.06,'105','54969',75,171);
INSERT INTO "communes" VALUES('60','Hermes','28',2565,2330,11.72,'-100','54842',43,139);
INSERT INTO "communes" VALUES('60','Laverrière','17',48,24,3.74,'-361','55208',130,182);
INSERT INTO "communes" VALUES('60','<NAME>','16',173,126,4.75,'-30','55010',89,164);
INSERT INTO "communes" VALUES('60','Bienville','09',454,482,3.51,'548','54943',37,139);
INSERT INTO "communes" VALUES('60','Fresneaux-Montchevreuil','23',756,721,11.18,'-370','54757',102,186);
INSERT INTO "communes" VALUES('60','Thury-en-Valois','05',474,451,11.26,'764','54619',64,142);
INSERT INTO "communes" VALUES('60','Saint-Vaast-de-Longmont','30',620,540,4.9,'444','54781',34,126);
INSERT INTO "communes" VALUES('60','Bailleul-le-Soc','08',660,647,14.14,'268','54908',84,145);
INSERT INTO "communes" VALUES('60','Cuise-la-Motte','01',2172,2239,10.05,'744','54874',36,144);
INSERT INTO "communes" VALUES('60','Mélicocq','32',670,656,6.53,'579','54993',36,137);
INSERT INTO "communes" VALUES('60','Villeneuve-sur-Verberie','30',684,624,8.16,'392','54751',51,222);
INSERT INTO "communes" VALUES('60','Hécourt','35',150,125,7.47,'-640','55023',119,218);
INSERT INTO "communes" VALUES('60','Balagny-sur-Thérain','26',1383,1419,6.8,'0','54773',33,116);
INSERT INTO "communes" VALUES('60','Bouconvillers','07',369,362,4.79,'-481','54640',62,121);
INSERT INTO "communes" VALUES('60','Fleury','07',512,495,6.29,'-408','54716',68,120);
INSERT INTO "communes" VALUES('60','Belle-Église','26',585,564,7.83,'-131','54658',37,167);
INSERT INTO "communes" VALUES('60','Vineuil-Saint-Firmin','34',1425,1465,7.78,'173','54667',37,64);
INSERT INTO "communes" VALUES('60','Saint-Martin-aux-Bois','21',291,282,9.31,'260','55023',69,134);
INSERT INTO "communes" VALUES('60','Rouvres-en-Multien','05',482,481,8.12,'764','54568',62,152);
INSERT INTO "communes" VALUES('60','<NAME>','08',769,688,8.68,'-45','54900',49,96);
INSERT INTO "communes" VALUES('60','Saint-Vaast-lès-Mello','39',966,824,7.97,'62','54741',30,112);
INSERT INTO "communes" VALUES('60','Goincourt','04',1236,1281,6.52,'-334','54918',67,173);
INSERT INTO "communes" VALUES('60','Villembray','35',247,211,6.53,'-519','54974',112,208);
INSERT INTO "communes" VALUES('60','Cambronne-lès-Ribécourt','32',1938,1962,6.93,'623','55007',32,162);
INSERT INTO "communes" VALUES('60','Lafraye','27',348,278,5.53,'-140','54994',123,151);
INSERT INTO "communes" VALUES('60','Saint-Léger-aux-Bois','32',803,820,8.3,'684','54977',33,52);
INSERT INTO "communes" VALUES('60','Longueil-Sainte-Marie','14',1757,1440,17,'423','54841',28,129);
INSERT INTO "communes" VALUES('60','Jaux','41',2303,2078,8.63,'488','54877',31,125);
INSERT INTO "communes" VALUES('60','Angicourt','20',1588,1523,4.96,'186','54791',38,120);
INSERT INTO "communes" VALUES('60','Saint-Quentin-des-Prés','35',291,262,10.8,'-647','55023',92,206);
INSERT INTO "communes" VALUES('60','Fouquerolles','27',270,280,10.21,'-135','54952',84,132);
INSERT INTO "communes" VALUES('60','Porquéricourt','29',356,362,3.75,'693','55104',46,154);
INSERT INTO "communes" VALUES('60','Thiverny','39',988,1088,2.06,'106','54720',27,86);
INSERT INTO "communes" VALUES('60','Saint-Just-en-Chaussée','33',5496,5490,14.66,'105','55007',86,172);
INSERT INTO "communes" VALUES('60','Auneuil','02',2797,2757,22.15,'-377','54856',87,236);
INSERT INTO "communes" VALUES('60','La Villeneuve-sous-Thury','05',172,165,4.32,'806','54618',62,136);
INSERT INTO "communes" VALUES('60','Le Mesnil-sur-Bulles','33',229,184,6.26,'9','54985',97,163);
INSERT INTO "communes" VALUES('60','Fouilleuse','08',113,77,2.91,'222','54921',105,156);
INSERT INTO "communes" VALUES('60','Senlis','34',16170,16314,24.05,'278','54675',47,140);
INSERT INTO "communes" VALUES('60','Saint-André-Farivillers','16',513,449,11.35,'-49','55096',88,170);
INSERT INTO "communes" VALUES('60','La Neuville-Vault','22',177,136,4.52,'-428','54985',85,178);
INSERT INTO "communes" VALUES('60','Avrechy','08',1112,1060,12.39,'100','54941',62,158);
INSERT INTO "communes" VALUES('60','Tricot','21',1433,1468,11.91,'280','55068',89,132);
INSERT INTO "communes" VALUES('60','Fontaine-Lavaganne','22',451,299,6.76,'-424','55109',115,186);
INSERT INTO "communes" VALUES('60','Cormeilles','13',359,286,7.21,'-160','55155',117,181);
INSERT INTO "communes" VALUES('60','Foulangues','26',202,167,5.13,'-25','54750',42,119);
INSERT INTO "communes" VALUES('60','Villers-sur-Auchy','35',358,304,8.59,'-602','54985',88,198);
INSERT INTO "communes" VALUES('60','Saint-Germain-la-Poterie','02',420,402,6.02,'-393','54939',77,179);
INSERT INTO "communes" VALUES('60','Verderel-lès-Sauqueuse','27',740,754,12.46,'-266','55004',93,165);
INSERT INTO "communes" VALUES('60','Warluis','28',1121,1165,11.44,'-217','54876',51,149);
INSERT INTO "communes" VALUES('60','Domfront','21',341,304,2.76,'243','55115',67,95);
INSERT INTO "communes" VALUES('60','Marest-sur-Matz','32',414,376,3.25,'542','55010',36,131);
INSERT INTO "communes" VALUES('60','Talmontiers','10',748,653,9.23,'-664','54874',67,202);
INSERT INTO "communes" VALUES('60','Orry-la-Ville','34',3403,3307,12.1,'196','54592',42,129);
INSERT INTO "communes" VALUES('60','Fontaine-Bonneleau','13',259,287,16.37,'-208','55179',72,175);
INSERT INTO "communes" VALUES('60','Hannaches','35',141,129,9.52,'-588','54998',123,218);
INSERT INTO "communes" VALUES('60','Canny-sur-Thérain','15',211,147,5.92,'-690','55113',155,224);
INSERT INTO "communes" VALUES('60','Ansacq','24',272,263,8.4,'25','54827',60,151);
INSERT INTO "communes" VALUES('60','Catigny','18',200,182,6.68,'668','55154',45,87);
INSERT INTO "communes" VALUES('60','Villers-Saint-Frambourg','34',589,583,9.72,'336','54728',81,215);
INSERT INTO "communes" VALUES('60','Houdancourt','14',584,529,6.71,'338','54826',28,61);
INSERT INTO "communes" VALUES('60','Briot','17',312,262,6.49,'-458','55167',158,204);
INSERT INTO "communes" VALUES('60','Silly-Tillard','28',484,400,11.14,'-197','54805',78,227);
INSERT INTO "communes" VALUES('60','Saint-Crépin-aux-Bois','01',253,259,16.3,'714','54927',45,142);
INSERT INTO "communes" VALUES('60','Agnetz','08',2960,2637,12.94,'53','54869',52,163);
INSERT INTO "communes" VALUES('60','Tracy-le-Mont','01',1716,1696,18.57,'747','54968',39,149);
INSERT INTO "communes" VALUES('60','Sacy-le-Grand','20',1363,1311,17.7,'231','54838',30,160);
INSERT INTO "communes" VALUES('60','Mortefontaine','34',870,701,15.29,'292','54569',60,203);
INSERT INTO "communes" VALUES('60','<NAME>','08',972,902,28.42,'-14','54893',49,161);
INSERT INTO "communes" VALUES('60','Laversines','27',1148,886,13.79,'-155','54917',58,107);
INSERT INTO "communes" VALUES('60','Anserville','23',450,435,6.81,'-141','54696',79,149);
INSERT INTO "communes" VALUES('60','Chevincourt','32',848,789,8.16,'564','55006',37,181);
INSERT INTO "communes" VALUES('60','Bretigny','29',380,324,5.16,'861','55075',37,66);
INSERT INTO "communes" VALUES('60','Dives','19',344,327,8.29,'613','55097',52,153);
INSERT INTO "communes" VALUES('60','Sacy-le-Petit','20',539,563,7.45,'325','54846',40,126);
INSERT INTO "communes" VALUES('60','<NAME>','14',228,213,2.56,'402','54858',47,81);
INSERT INTO "communes" VALUES('60','Gannes','33',332,320,8.56,'95','55077',104,144);
INSERT INTO "communes" VALUES('60','Oursel-Maison','16',261,186,6.97,'-173','55107',146,190);
INSERT INTO "communes" VALUES('60','Prévillers','22',181,109,5.18,'-378','55123',151,198);
INSERT INTO "communes" VALUES('60','Mortefontaine-en-Thelle','28',839,732,6.02,'-166','54736',92,192);
INSERT INTO "communes" VALUES('60','Cannectancourt','19',538,499,7.57,'630','55062',46,182);
INSERT INTO "communes" VALUES('60','Lachelle','14',582,561,9.07,'443','54938',49,91);
INSERT INTO "communes" VALUES('60','Crillon','35',440,433,8.66,'-452','55022',90,170);
INSERT INTO "communes" VALUES('60','Ormoy-le-Davien','05',319,178,3.95,'691','54662',126,143);
INSERT INTO "communes" VALUES('60','Bazancourt','35',129,152,3.15,'-668','55060',129,201);
INSERT INTO "communes" VALUES('60','Lagny','19',533,463,10.77,'642','55126',59,163);
INSERT INTO "communes" VALUES('60','Hautbos','17',140,117,4.3,'-518','55142',162,197);
INSERT INTO "communes" VALUES('60','Ferrières','21',486,433,4.81,'203','55100',88,129);
INSERT INTO "communes" VALUES('60','Villers-Saint-Barthélemy','02',479,487,9.9,'-432','54887',79,185);
INSERT INTO "communes" VALUES('60','Rosoy-en-Multien','05',501,400,8.49,'730','54552',69,151);
INSERT INTO "communes" VALUES('60','<NAME>','18',100,92,2.82,'813','55194',62,97);
INSERT INTO "communes" VALUES('60','Reuil-sur-Brêche','16',304,206,12.58,'-128','55023',100,161);
INSERT INTO "communes" VALUES('60','Jouy-sous-Thelle','02',977,819,12.78,'-407','54797',128,219);
INSERT INTO "communes" VALUES('60','Cressonsacq','33',431,385,6.53,'255','54953',81,130);
INSERT INTO "communes" VALUES('60','Rocquemont','12',103,104,6.26,'535','54732',59,114);
INSERT INTO "communes" VALUES('60','Hémévillers','14',421,388,6.93,'375','54959',50,98);
INSERT INTO "communes" VALUES('60','Mello','39',587,383,3.35,'32','54747',32,103);
INSERT INTO "communes" VALUES('60','Machemont','32',722,748,6.33,'597','54997',36,173);
INSERT INTO "communes" VALUES('60','Ivry-le-Temple','23',651,658,12.47,'-341','54699',72,126);
INSERT INTO "communes" VALUES('60','Noailles','28',2748,2675,10.04,'-152','54809',60,225);
INSERT INTO "communes" VALUES('60','Coye-la-Forêt','36',3749,3509,6.96,'152','54603',31,126);
INSERT INTO "communes" VALUES('60','Saint-Léger-en-Bray','02',378,337,4.43,'-344','54879',77,113);
INSERT INTO "communes" VALUES('60','Cuignières','33',209,177,6.24,'152','54945',95,163);
INSERT INTO "communes" VALUES('60','<NAME>-Roy','33',969,888,12.49,'267','54980',68,119);
INSERT INTO "communes" VALUES('60','Longueil-Annel','32',2379,2346,5.94,'586','54964',33,145);
INSERT INTO "communes" VALUES('60','La Neuville-Saint-Pierre','16',167,140,4.11,'-147','55031',115,155);
INSERT INTO "communes" VALUES('60','Montagny-Sainte-Félicité','25',407,405,5.67,'447','54589',100,124);
INSERT INTO "communes" VALUES('60','Remy','14',1724,1852,19.97,'412','54931',47,100);
INSERT INTO "communes" VALUES('60','Noyon','29',13478,14465,18,'736','55090',36,153);
INSERT INTO "communes" VALUES('60','Jaulzy','01',906,815,7.26,'807','54884',36,152);
INSERT INTO "communes" VALUES('60','Salency','29',900,891,7.79,'793','55098',36,178);
INSERT INTO "communes" VALUES('60','Fouquenies','40',437,438,6.35,'-329','54962',67,142);
INSERT INTO "communes" VALUES('60','Saint-Crépin-Ibouvillers','23',1207,1036,14.43,'-293','54737',97,168);
INSERT INTO "communes" VALUES('60','Saint-Martin-Longueau','20',1481,1415,3.62,'297','54825',31,53);
INSERT INTO "communes" VALUES('60','Golancourt','18',383,404,4.13,'808','55229',61,92);
INSERT INTO "communes" VALUES('60','Noroy','33',194,184,5.45,'185','54943',103,159);
INSERT INTO "communes" VALUES('60','Fontenay-Torcy','35',131,104,5.96,'-630','55076',132,211);
INSERT INTO "communes" VALUES('60','Le Mont-Saint-Adrien','02',580,627,7.74,'-369','54940',89,173);
INSERT INTO "communes" VALUES('60','Nampcel','01',298,274,16.69,'847','54984',73,166);
INSERT INTO "communes" VALUES('60','Saint-Aubin-sous-Erquery','08',325,335,6.26,'164','54897',65,149);
INSERT INTO "communes" VALUES('60','Rochy-Condé','27',1035,634,6.38,'-169','54890',52,106);
INSERT INTO "communes" VALUES('60','<NAME>','28',494,490,3.69,'-252','54774',162,212);
INSERT INTO "communes" VALUES('60','Baron','25',784,774,21.47,'437','54637',63,151);
INSERT INTO "communes" VALUES('60','Bury','24',2971,2891,17.05,'8','54793',33,124);
INSERT INTO "communes" VALUES('60','Saint-Paul','02',1579,1421,9.52,'-366','54921',72,147);
INSERT INTO "communes" VALUES('60','Cuvilly','31',610,520,8.61,'399','55059',65,129);
INSERT INTO "communes" VALUES('60','Monceaux','20',753,693,6.6,'238','54799',29,65);
INSERT INTO "communes" VALUES('60','Villers-Saint-Sépulcre','28',950,867,7.29,'-134','54851',47,147);
INSERT INTO "communes" VALUES('60','Marais','04',734,679,5.71,'-327','54905',67,172);
INSERT INTO "communes" VALUES('60','Méry-la-Bataille','21',621,530,11.26,'325','55051',72,129);
INSERT INTO "communes" VALUES('60','Chambors','07',328,303,6.65,'-578','54734',55,146);
INSERT INTO "communes" VALUES('60','Offoy','17',106,77,4.2,'-332','55218',113,182);
INSERT INTO "communes" VALUES('60','<NAME>-d''Aumont','28',289,241,4.75,'-264','54788',150,232);
INSERT INTO "communes" VALUES('60','Ons-en-Bray','02',1295,1276,13.95,'-463','54905',77,233);
INSERT INTO "communes" VALUES('60','Rouvillers','33',262,252,11.88,'303','54947',66,89);
INSERT INTO "communes" VALUES('60','Sarnois','17',324,235,5.56,'-465','55199',182,201);
INSERT INTO "communes" VALUES('60','Russy-Bémont','12',183,150,9.75,'698','54715',58,153);
INSERT INTO "communes" VALUES('60','Cinqueux','20',1523,1553,6.79,'211','54799',31,118);
INSERT INTO "communes" VALUES('60','Fréniches','18',325,254,5.96,'742','55190',69,110);
INSERT INTO "communes" VALUES('60','Néry','12',698,678,16.34,'491','54757',37,154);
INSERT INTO "communes" VALUES('60','Montiers','33',407,401,7.89,'268','55001',62,131);
INSERT INTO "communes" VALUES('60','Ognolles','18',289,223,6.67,'642','55214',72,105);
INSERT INTO "communes" VALUES('60','<NAME>-Saint-Firmin','06',154,117,4.14,'82','55143',122,158);
INSERT INTO "communes" VALUES('60','Lattainville','07',159,159,3.44,'-580','54713',66,142);
INSERT INTO "communes" VALUES('60','Lannoy-Cuillère','15',221,210,14.98,'-654','55231',142,229);
INSERT INTO "communes" VALUES('60','<NAME>','41',1992,1700,7.8,'453','54853',30,122);
INSERT INTO "communes" VALUES('60','Rocquencourt','06',189,161,9.81,'90','55166',81,151);
INSERT INTO "communes" VALUES('60','Creil','98',33601,30671,11.09,'162','54731',26,129);
INSERT INTO "communes" VALUES('60','Sainte-Geneviève','28',2790,2578,8.01,'-153','54766',131,222);
INSERT INTO "communes" VALUES('60','Savignies','40',719,777,9.83,'-413','54961',105,236);
INSERT INTO "communes" VALUES('60','<NAME>','13',100,84,4.97,'-218','55149',115,181);
INSERT INTO "communes" VALUES('60','Moyenneville','33',606,527,7.19,'333','54990',55,100);
INSERT INTO "communes" VALUES('60','Avilly-Saint-Léonard','34',983,967,11.96,'222','54660',40,63);
INSERT INTO "communes" VALUES('60','Espaubourg','10',457,375,5.99,'-522','54913',91,230);
INSERT INTO "communes" VALUES('60','Thibivillers','07',206,205,6.35,'-485','54780',86,156);
INSERT INTO "communes" VALUES('60','Candor','19',270,256,8.95,'621','55142',62,122);
INSERT INTO "communes" VALUES('60','Crépy-en-Valois','12',14058,14422,16.28,'612','54705',62,150);
INSERT INTO "communes" VALUES('60','Boutavent','15',80,76,4.37,'-645','55159',203,226);
INSERT INTO "communes" VALUES('60','Beaudéduit','17',189,169,3.72,'-301','55199',110,187);
INSERT INTO "communes" VALUES('60','Pierrefonds','01',1930,1942,22.32,'715','54834',55,144);
INSERT INTO "communes" VALUES('60','Bitry','01',294,303,6.61,'823','54904',37,144);
INSERT INTO "communes" VALUES('60','Loconville','07',351,258,5.53,'-464','54729',63,106);
INSERT INTO "communes" VALUES('60','Acy-en-Multien','05',782,752,11.47,'687','54561',77,140);
INSERT INTO "communes" VALUES('60','Gondreville','05',242,257,7.09,'687','54685',104,158);
INSERT INTO "communes" VALUES('60','Aumont-en-Halatte','34',537,482,6.83,'239','54699',65,143);
INSERT INTO "communes" VALUES('60','Gouvieux','36',9434,9398,23.25,'89','54653',22,103);
INSERT INTO "communes" VALUES('60','Armancourt','41',558,526,2.03,'475','54859',30,112);
INSERT INTO "communes" VALUES('60','Lachapelle-aux-Pots','10',1608,1541,9.85,'-482','54943',77,176);
INSERT INTO "communes" VALUES('60','Guiscard','18',1878,1718,20.49,'795','55173',49,104);
INSERT INTO "communes" VALUES('60','Marolles','05',665,621,13.22,'854','54633',62,151);
INSERT INTO "communes" VALUES('60','Ermenonville','25',969,831,16.49,'399','54584',71,122);
INSERT INTO "communes" VALUES('60','<NAME>','02',825,676,6.61,'-388','54779',119,198);
INSERT INTO "communes" VALUES('60','Villers-sous-Saint-Leu','39',2317,2084,4.37,'68','54681',26,123);
INSERT INTO "communes" VALUES('60','Pont-Sainte-Maxence','30',11775,12433,14.76,'297','54779',27,126);
INSERT INTO "communes" VALUES('60','Lalande-en-Son','10',681,629,5.99,'-616','54879',83,210);
INSERT INTO "communes" VALUES('60','Auger-Saint-Vincent','12',511,440,13.97,'524','54687',73,135);
INSERT INTO "communes" VALUES('60','Villeselve','18',378,359,6.89,'860','55212',69,147);
INSERT INTO "communes" VALUES('60','Trumilly','12',568,496,12.94,'518','54714',88,155);
INSERT INTO "communes" VALUES('60','Vaudancourt','07',172,150,4.67,'-646','54704',63,148);
INSERT INTO "communes" VALUES('60','Monceaux-l''Abbaye','15',205,181,4.57,'-605','55168',190,219);
INSERT INTO "communes" VALUES('60','Bulles','08',883,885,16.7,'-12','54955',71,141);
INSERT INTO "communes" VALUES('60','Raray','30',159,144,6.72,'420','54733',85,115);
INSERT INTO "communes" VALUES('60','Énencourt-le-Sec','07',202,169,5.99,'-460','54775',89,136);
INSERT INTO "communes" VALUES('60','<NAME>ay-Saint-Germer','10',888,900,13.48,'-555','54902',137,231);
INSERT INTO "communes" VALUES('60','Venette','41',2762,2671,8.45,'515','54906',31,86);
INSERT INTO "communes" VALUES('60','Pimprez','32',753,685,9.49,'684','55016',32,56);
INSERT INTO "communes" VALUES('60','Cambronne-lès-Clermont','24',1043,993,9.34,'70','54811',46,132);
INSERT INTO "communes" VALUES('60','Beaugies-sous-Bois','18',86,83,3.91,'852','55153',67,181);
INSERT INTO "communes" VALUES('60','Appilly','29',506,502,4.57,'866','55093',36,59);
INSERT INTO "communes" VALUES('60','Cramoisy','39',739,563,6.3,'72','54728',30,127);
INSERT INTO "communes" VALUES('60','Berneuil-sur-Aisne','01',1019,922,10.61,'741','54905',34,142);
INSERT INTO "communes" VALUES('60','Monneville','07',833,740,9.19,'-403','54676',69,154);
INSERT INTO "communes" VALUES('60','Froissy','16',874,913,6.56,'-128','55075',124,179);
INSERT INTO "communes" VALUES('60','Pierrefitte-en-Beauvaisis','40',375,368,5.67,'-395','54973',98,205);
INSERT INTO "communes" VALUES('60','Fouilloy','15',210,194,4.62,'-566','55259',168,211);
INSERT INTO "communes" VALUES('60','Boran-sur-Oise','26',2099,2137,11.25,'25','54629',24,103);
INSERT INTO "communes" VALUES('60','Ully-Saint-Georges','26',1916,1819,18.71,'-63','54753',52,193);
INSERT INTO "communes" VALUES('60','Brégy','05',595,483,13.17,'587','54536',86,134);
INSERT INTO "communes" VALUES('60','Nanteuil-le-Haudouin','25',3516,3126,20.95,'527','54602',78,128);
INSERT INTO "communes" VALUES('60','Campagne','18',143,132,4.55,'694','55162',54,92);
INSERT INTO "communes" VALUES('60','Escames','35',202,208,11.68,'-595','55059',115,217);
INSERT INTO "communes" VALUES('60','Pronleroy','33',398,381,8.97,'236','54967',76,130);
INSERT INTO "communes" VALUES('60','Carlepont','32',1433,1369,19.54,'765','55016',38,151);
INSERT INTO "communes" VALUES('60','Lierville','07',223,243,7.75,'-505','54656',76,132);
INSERT INTO "communes" VALUES('60','Boissy-le-Bois','07',192,166,6.04,'-437','54753',83,142);
INSERT INTO "communes" VALUES('60','Monchy-Saint-Éloi','20',1979,1888,3.88,'145','54767',29,116);
INSERT INTO "communes" VALUES('60','Couloisy','01',469,528,3.74,'767','54888',37,127);
INSERT INTO "communes" VALUES('60','Andeville','23',3186,2995,4.17,'-190','54733',98,178);
INSERT INTO "communes" VALUES('60','Rouvroy-les-Merles','06',64,45,4.06,'24','55164',67,113);
INSERT INTO "communes" VALUES('60','Caisnes','29',483,426,6.19,'816','55023',46,154);
INSERT INTO "communes" VALUES('60','Montmacq','32',1087,1175,7.25,'628','54979',32,42);
INSERT INTO "communes" VALUES('60','Novillers','28',370,315,4.79,'-136','54746',113,206);
INSERT INTO "communes" VALUES('60','Montlognon','25',224,236,5.24,'396','54627',62,122);
INSERT INTO "communes" VALUES('60','Plailly','34',1671,1580,16.25,'275','54559',59,176);
INSERT INTO "communes" VALUES('60','Fresnières','19',181,123,2.97,'531','55136',76,98);
INSERT INTO "communes" VALUES('60','Grandvillers-aux-Bois','33',316,263,6.63,'298','54952',63,99);
INSERT INTO "communes" VALUES('60','Angivillers','33',183,201,6.27,'183','54985',99,151);
INSERT INTO "communes" VALUES('60','Neuilly-en-Thelle','26',3098,3067,15.73,'-57','54693',89,170);
INSERT INTO "communes" VALUES('60','Feigneux','12',429,468,11.41,'660','54732',52,136);
INSERT INTO "communes" VALUES('60','Crisolles','18',1031,985,10.54,'755','55135',48,181);
INSERT INTO "communes" VALUES('60','Écuvilly','19',244,251,5.77,'648','55167',56,94);
INSERT INTO "communes" VALUES('60','Fontaine-Saint-Lucien','27',150,132,7.25,'-211','54999',100,148);
INSERT INTO "communes" VALUES('60','Quesmy','18',182,164,4.83,'803','55149',58,174);
INSERT INTO "communes" VALUES('60','Saint-Leu-d''Esserent','39',4705,4873,13.08,'95','54686',25,137);
INSERT INTO "communes" VALUES('60','Saint-Deniscourt','35',102,69,4.68,'-518','55117',137,191);
INSERT INTO "communes" VALUES('60','Valescourt','33',275,271,6.87,'111','54982',82,171);
INSERT INTO "communes" VALUES('60','Mondescourt','29',275,269,3.19,'862','55109',48,146);
INSERT INTO "communes" VALUES('60','Arsy','14',778,898,7.27,'384','54890',62,106);
INSERT INTO "communes" VALUES('60','Montépilloy','34',160,158,5.86,'402','54677',84,147);
INSERT INTO "communes" VALUES('60','Senantes','35',672,576,19.94,'-557','54984',93,218);
INSERT INTO "communes" VALUES('60','Puits-la-Vallée','16',204,195,4.31,'-160','55092',128,183);
INSERT INTO "communes" VALUES('60','Fontaine-Chaalis','25',375,318,33.11,'386','54635',62,123);
INSERT INTO "communes" VALUES('60','Hodenc-en-Bray','10',463,427,9.94,'-487','54964',98,206);
INSERT INTO "communes" VALUES('60','Saint-Sulpice','28',922,945,8.88,'-236','54834',84,170);
INSERT INTO "communes" VALUES('60','Barbery','34',538,518,7.6,'369','54692',68,102);
INSERT INTO "communes" VALUES('60','Autrêches','01',745,671,13.03,'891','54934',46,152);
INSERT INTO "communes" VALUES('60','Rémérangles','08',225,223,8.2,'-56','54941',77,121);
INSERT INTO "communes" VALUES('60','Lacroix-Saint-Ouen','37',4484,4232,20.83,'501','54840',30,54);
INSERT INTO "communes" VALUES('60','Ognon','34',145,133,4.82,'341','54707',63,106);
INSERT INTO "communes" VALUES('60','Saint-Arnoult','15',187,172,7.9,'-573','55147',164,212);
INSERT INTO "communes" VALUES('60','Verderonne','20',554,529,3.33,'180','54810',48,138);
INSERT INTO "communes" VALUES('60','Jaméricourt','07',282,203,4.25,'-507','54782',79,130);
INSERT INTO "communes" VALUES('60','Libermont','18',211,187,11.37,'704','55216',62,101);
INSERT INTO "communes" VALUES('60','Sermaize','18',245,226,5.04,'691','55129',42,96);
INSERT INTO "communes" VALUES('60','Précy-sur-Oise','39',3236,3119,9.65,'38','54673',23,123);
INSERT INTO "communes" VALUES('60','Étouy','08',809,767,9.53,'30','54910',66,124);
INSERT INTO "communes" VALUES('60','Hautefontaine','01',264,254,5.57,'805','54851',58,152);
INSERT INTO "communes" VALUES('60','Dieudonné','26',841,836,10.38,'-99','54701',71,170);
INSERT INTO "communes" VALUES('60','<NAME>','13',185,155,3.1,'-174','55141',145,187);
INSERT INTO "communes" VALUES('60','Fay-les-Étangs','07',429,368,8.47,'-441','54718',66,114);
INSERT INTO "communes" VALUES('60','Coivrel','21',255,232,6.11,'245','55059',95,150);
INSERT INTO "communes" VALUES('60','Chavençon','23',156,114,5.76,'-380','54653',90,213);
INSERT INTO "communes" VALUES('60','Tillé','27',1102,1071,14.8,'-250','54959',81,136);
INSERT INTO "communes" VALUES('60','Verberie','30',3998,3291,15.05,'439','54789',30,125);
INSERT INTO "communes" VALUES('60','Montgérain','21',157,178,4.91,'265','55041',100,134);
INSERT INTO "communes" VALUES('60','Rhuis','30',144,84,2.7,'401','54786',30,120);
INSERT INTO "communes" VALUES('60','Catenoy','20',1031,1093,12.61,'194','54854',53,163);
INSERT INTO "communes" VALUES('60','Berthecourt','28',1601,1357,6.97,'-124','54834',45,128);
INSERT INTO "communes" VALUES('60','Bonnières','22',155,172,8.44,'-411','55009',82,167);
INSERT INTO "communes" VALUES('60','Morlincourt','29',483,526,3.42,'778','55078',36,57);
INSERT INTO "communes" VALUES('60','Maimbeville','08',361,315,5.75,'205','54906',73,156);
INSERT INTO "communes" VALUES('60','Breuil-le-Vert','08',2867,2815,7.37,'111','54846',45,150);
INSERT INTO "communes" VALUES('60','Brunvillers-la-Motte','33',325,337,6.5,'127','55055',110,135);
INSERT INTO "communes" VALUES('60','Heilles','24',591,576,6.01,'-83','54816',41,123);
INSERT INTO "communes" VALUES('60','Fresnoy-le-Luat','25',484,431,11.5,'480','54679',86,148);
INSERT INTO "communes" VALUES('60','Beauvoir','06',292,217,10.27,'-11','55114',97,165);
INSERT INTO "communes" VALUES('60','Guignecourt','27',385,415,4.62,'-230','54981',92,140);
INSERT INTO "communes" VALUES('60','Vez','12',318,303,10.88,'740','54738',65,147);
INSERT INTO "communes" VALUES('60','Bazicourt','20',332,291,3.82,'316','54826',29,48);
INSERT INTO "communes" VALUES('60','Glaignes','12',365,379,5.42,'573','54747',46,116);
INSERT INTO "communes" VALUES('60','Giraumont','31',546,584,3.55,'536','54968',42,105);
INSERT INTO "communes" VALUES('60','Ercuis','26',1403,1568,4.38,'-32','54706',84,157);
INSERT INTO "communes" VALUES('60','Jonquières','41',586,529,7.32,'437','54878',55,153);
INSERT INTO "communes" VALUES('60','La Chapelle-en-Serval','34',2914,2461,10.81,'220','54586',57,136);
INSERT INTO "communes" VALUES('60','Wacquemoulin','21',296,312,6.66,'311','55003',57,102);
INSERT INTO "communes" VALUES('60','Reilly','07',129,165,8.32,'-544','54715',72,141);
INSERT INTO "communes" VALUES('60','Rethondes','01',724,668,9.48,'671','54907',33,110);
INSERT INTO "communes" VALUES('60','Gaudechart','22',344,283,5.71,'-417','55128',134,199);
INSERT INTO "communes" VALUES('60','Muidorge','13',143,119,5.34,'-218','55034',119,167);
INSERT INTO "communes" VALUES('60','Solente','18',117,86,3.06,'602','55221',78,104);
INSERT INTO "communes" VALUES('60','Gury','19',214,172,5.01,'516','55078',83,183);
INSERT INTO "communes" VALUES('60','Margny-sur-Matz','31',515,422,7.24,'491','55025',42,186);
INSERT INTO "communes" VALUES('60','Rothois','22',206,144,3.18,'-380','55109',160,187);
INSERT INTO "communes" VALUES('60','Parnes','07',351,338,12.43,'-665','54670',64,148);
INSERT INTO "communes" VALUES('60','Flavacourt','10',698,699,18.51,'-573','54817',82,187);
INSERT INTO "communes" VALUES('60','Borest','25',352,326,12.78,'371','54645',59,123);
INSERT INTO "communes" VALUES('60','Vauchelles','29',311,278,2.34,'697','55097',44,150);
INSERT INTO "communes" VALUES('60','Choisy-au-Bac','09',3363,3573,15.86,'601','54932',31,112);
INSERT INTO "communes" VALUES('60','Plessis-de-Roye','19',234,193,6.2,'550','55087',72,180);
INSERT INTO "communes" VALUES('60','Baugy','31',301,262,7.17,'463','54959',41,105);
INSERT INTO "communes" VALUES('60','Élencourt','17',55,45,1.34,'-491','55218',154,197);
INSERT INTO "communes" VALUES('60','Villers-Vermont','15',126,120,6.61,'-658','55085',151,217);
INSERT INTO "communes" VALUES('60','<NAME>','17',106,84,3.49,'-308','55188',115,179);
INSERT INTO "communes" VALUES('60','Rosières','25',140,130,9.27,'491','54654',83,162);
INSERT INTO "communes" VALUES('60','Roye-sur-Matz','19',450,379,10.75,'488','55102',63,144);
INSERT INTO "communes" VALUES('60','Bouvresse','15',176,163,2.8,'-646','55170',211,226);
INSERT INTO "communes" VALUES('60','Noyers-Saint-Martin','16',772,709,13.27,'-83','55059',118,179);
INSERT INTO "communes" VALUES('60','Genvry','29',939,454,5.14,'726','55123',42,97);
INSERT INTO "communes" VALUES('60','Lassigny','19',1400,1251,16.65,'563','55098',53,130);
INSERT INTO "communes" VALUES('60','Cempuis','17',450,383,9.38,'-388','55176',137,198);
INSERT INTO "communes" VALUES('60','Haute-Épine','22',292,246,6.73,'-362','55093',137,189);
INSERT INTO "communes" VALUES('60','Ageux','20',1129,1163,5,'289','54794',29,42);
INSERT INTO "communes" VALUES('60','Mognéville','20',1493,1376,3.91,'150','54794',36,113);
INSERT INTO "communes" VALUES('60','Le Coudray-sur-Thelle','28',528,488,3.76,'-236','54784',165,229);
INSERT INTO "communes" VALUES('60','Broquiers','15',231,225,2.92,'-563','55178',192,212);
INSERT INTO "communes" VALUES('60','Autheuil-en-Valois','05',284,213,9.24,'805','54636',65,149);
INSERT INTO "communes" VALUES('60','Catheux','13',115,114,11.78,'-240','55170',87,177);
INSERT INTO "communes" VALUES('60','Passel','29',299,300,3.65,'695','55063',36,95);
INSERT INTO "communes" VALUES('60','Wavignies','33',1160,982,9.81,'25','55052',110,158);
INSERT INTO "communes" VALUES('60','Plainville','06',178,148,4.25,'129','55126',96,146);
INSERT INTO "communes" VALUES('60','Angy','24',1195,1183,3.6,'-10','54811',37,130);
INSERT INTO "communes" VALUES('60','Frétoy-le-Château','18',262,190,5.01,'716','55179',60,107);
INSERT INTO "communes" VALUES('60','Saint-Maur','17',394,356,7.76,'-465','55129',134,198);
INSERT INTO "communes" VALUES('60','Omécourt','15',159,149,8.71,'-543','55123',145,200);
INSERT INTO "communes" VALUES('60','Ressons-sur-Matz','31',1591,1461,9.23,'455','55045',49,119);
INSERT INTO "communes" VALUES('60','Broyes','06',162,112,4.8,'134','55143',88,156);
INSERT INTO "communes" VALUES('60','Thieux','16',418,387,9.18,'-25','55047',123,179);
INSERT INTO "communes" VALUES('60','Villers-sur-Bonnières','22',163,144,4.02,'-412','55043',110,168);
INSERT INTO "communes" VALUES('60','Léglantiers','21',556,436,7.78,'220','54996',77,122);
INSERT INTO "communes" VALUES('60','Monts','23',201,172,3.67,'-356','54685',72,144);
INSERT INTO "communes" VALUES('60','Crouy-en-Thelle','26',1086,988,5.87,'-16','54684',64,137);
INSERT INTO "communes" VALUES('60','Orvillers-Sorel','31',503,421,8.51,'412','55087',69,112);
INSERT INTO "communes" VALUES('60','Margny-lès-Compiègne','09',8021,6503,6.66,'538','54918',31,102);
INSERT INTO "communes" VALUES('60','Thiescourt','19',755,608,13.03,'608','55073',47,183);
INSERT INTO "communes" VALUES('60','Tourly','07',174,166,3.32,'-433','54694',66,134);
INSERT INTO "communes" VALUES('60','Larbroye','29',477,373,2.2,'698','55081',48,150);
INSERT INTO "communes" VALUES('60','Bargny','05',287,215,7.54,'688','54643',105,139);
INSERT INTO "communes" VALUES('60','Breuil-le-Sec','08',2395,2058,8.89,'129','54856',46,152);
INSERT INTO "communes" VALUES('60','Bachivillers','07',432,347,5.91,'-416','54767',110,159);
INSERT INTO "communes" VALUES('60','Ravenel','33',1156,1018,11.61,'183','55017',88,135);
INSERT INTO "communes" VALUES('60','Lévignen','05',882,770,13.9,'642','54663',98,156);
INSERT INTO "communes" VALUES('60','Saint-Aubin-en-Bray','10',1013,904,6.38,'-509','54911',83,231);
INSERT INTO "communes" VALUES('60','Bonneuil-en-Valois','12',1058,896,12.81,'730','54761',57,166);
INSERT INTO "communes" VALUES('60','Beauvais','99',54711,55371,33.31,'-277','54927',57,170);
INSERT INTO "communes" VALUES('60','Lamorlaye','36',9300,8106,15.34,'116','54617',23,110);
INSERT INTO "communes" VALUES('60','Herchies','40',614,598,4.41,'-361','54987',74,141);
INSERT INTO "communes" VALUES('60','Ansauvillers','06',1217,1048,6.95,'57','55072',121,151);
INSERT INTO "communes" VALUES('60','<NAME>','33',165,159,3.91,'-24','54995',91,162);
INSERT INTO "communes" VALUES('60','Liancourt','20',7169,6464,4.75,'143','54812',38,139);
INSERT INTO "communes" VALUES('60','Blancfossé','13',132,119,5.16,'-156','55176',103,172);
INSERT INTO "communes" VALUES('60','Rantigny','20',2559,2520,4.16,'116','54811',41,118);
INSERT INTO "communes" VALUES('60','Ressons-l''Abbaye','23',90,101,5.43,'-276','54780',154,222);
INSERT INTO "communes" VALUES('60','Villers-Saint-Paul','11',6171,5939,4.93,'167','54766',26,117);
INSERT INTO "communes" VALUES('60','Bussy','18',311,246,3.87,'717','55139',43,88);
INSERT INTO "communes" VALUES('60','Maisoncelle-Saint-Pierre','27',157,141,4.16,'-233','55012',120,158);
INSERT INTO "communes" VALUES('60','<NAME>','17',174,126,7.86,'-383','55164',129,189);
INSERT INTO "communes" VALUES('60','Lachapelle-sous-Gerberoy','35',163,141,4.93,'-520','55039',103,182);
INSERT INTO "communes" VALUES('60','Hainvillers','31',95,65,2.96,'386','55103',88,123);
INSERT INTO "communes" VALUES('60','Courcelles-lès-Gisors','07',854,803,6.92,'-660','54734',41,141);
INSERT INTO "communes" VALUES('60','Suzoy','29',534,499,5.17,'681','55089',60,160);
INSERT INTO "communes" VALUES('60','Vieux-Moulin','37',598,579,17.65,'661','54880',35,130);
INSERT INTO "communes" VALUES('60','Sempigny','29',852,740,4.4,'731','55064',35,56);
INSERT INTO "communes" VALUES('60','Pont-l''Évêque','29',711,803,1.13,'724','55072',36,44);
INSERT INTO "communes" VALUES('60','Nivillers','27',190,196,7.65,'-190','54952',70,119);
INSERT INTO "communes" VALUES('60','Chelles','01',473,384,9.08,'775','54836',57,150);
INSERT INTO "communes" VALUES('60','Plainval','33',355,318,9.19,'116','55032',92,131);
INSERT INTO "communes" VALUES('60','Fleurines','30',1835,1761,11.95,'277','54736',89,185);
INSERT INTO "communes" VALUES('60','Ricquebourg','31',231,178,5.09,'468','55064',56,169);
INSERT INTO "communes" VALUES('60','Lagny-le-Sec','25',1947,1806,11.23,'453','54541',94,116);
INSERT INTO "communes" VALUES('60','Belloy','31',86,71,2.98,'353','55040',75,133);
INSERT INTO "communes" VALUES('60','Roy-Boissy','22',338,266,10.96,'-460','55092',111,182);
INSERT INTO "communes" VALUES('60','Villers-sur-Coudun','31',1400,1286,6.39,'519','54981',46,156);
INSERT INTO "communes" VALUES('60','Montmartin','14',204,229,3.33,'397','54960',47,97);
INSERT INTO "communes" VALUES('60','Saint-Pierre-lès-Bitry','01',143,132,3.42,'821','54916',55,151);
INSERT INTO "communes" VALUES('60','Sarcus','17',278,262,13.04,'-517','55207',163,214);
INSERT INTO "communes" VALUES('60','Babœuf','29',520,532,7.18,'831','55099',37,151);
INSERT INTO "communes" VALUES('60','Bacouël','06',466,386,5.48,'55','55132',81,149);
INSERT INTO "communes" VALUES('60','Nourard-le-Franc','33',324,325,11.48,'41','54999',109,176);
INSERT INTO "communes" VALUES('60','Breteuil','06',4353,4120,17.27,'-48','55147',70,166);
INSERT INTO "communes" VALUES('60','Litz','08',356,325,9.76,'-5','54907',66,109);
INSERT INTO "communes" VALUES('60','Estrées-Saint-Denis','14',3573,3541,8.08,'340','54917',69,118);
INSERT INTO "communes" VALUES('60','Thury-sous-Clermont','24',685,602,5.42,'-11','54841',57,147);
INSERT INTO "communes" VALUES('60','Tartigny','06',266,229,6.98,'27','55149',76,149);
INSERT INTO "communes" VALUES('60','Avrigny','08',350,323,6.01,'271','54868',65,121);
INSERT INTO "communes" VALUES('60','Serans','07',234,241,8.79,'-562','54652',95,212);
INSERT INTO "communes" VALUES('60','Ménévillers','21',100,77,4.88,'298','55025',79,108);
INSERT INTO "communes" VALUES('60','Troussencourt','06',339,284,5.33,'-92','55119',94,173);
INSERT INTO "communes" VALUES('60','Grandfresnoy','14',1636,1506,10.57,'350','54858',45,131);
INSERT INTO "communes" VALUES('60','Neufchelles','05',369,374,6.46,'806','54574',55,153);
INSERT INTO "communes" VALUES('60','Vauciennes','12',637,660,6.36,'771','54707',71,167);
INSERT INTO "communes" VALUES('60','<NAME>','26',2288,2090,6.09,'-56','54642',29,101);
INSERT INTO "communes" VALUES('60','Francières','14',509,476,8.23,'381','54943',62,94);
INSERT INTO "communes" VALUES('60','Fléchy','06',97,85,4.77,'-116','55177',99,169);
INSERT INTO "communes" VALUES('60','Erquery','08',522,615,5.91,'135','54899',57,135);
INSERT INTO "communes" VALUES('60','Catillon-Fumechon','33',595,517,13.31,'37','55019',108,177);
INSERT INTO "communes" VALUES('60','Doméliers','13',225,202,6.13,'-192','55148',114,187);
INSERT INTO "communes" VALUES('60','Brasseuse','30',100,136,8.3,'383','54729',75,152);
INSERT INTO "communes" VALUES('60','Canny-sur-Matz','19',361,270,6.89,'514','55113',68,94);
INSERT INTO "communes" VALUES('60','Villotran','02',288,251,5.18,'-356','54829',150,232);
INSERT INTO "communes" VALUES('60','Maucourt','18',283,118,3.12,'820','55151',69,180);
INSERT INTO "communes" VALUES('60','Troissereux','27',1152,1126,14.05,'-326','54978',68,145);
INSERT INTO "communes" VALUES('60','Amy','19',369,345,12.58,'543','55172',76,97);
INSERT INTO "communes" VALUES('60','Coudun','31',901,951,10.4,'531','54957',37,149);
INSERT INTO "communes" VALUES('60','Brenouille','20',2132,2226,4.31,'220','54781',27,108);
INSERT INTO "communes" VALUES('60','Essuiles','33',547,452,13.54,'-48','54976',80,146);
INSERT INTO "communes" VALUES('60','Royaucourt','21',221,190,9.45,'214','55122',62,127);
INSERT INTO "communes" VALUES('60','Rainvillers','02',872,885,6.5,'-365','54896',71,124);
INSERT INTO "communes" VALUES('60','Béthisy-Saint-Martin','12',1083,1143,9.82,'532','54772',41,122);
INSERT INTO "communes" VALUES('60','Crapeaumesnil','19',163,131,4.82,'513','55156',80,100);
INSERT INTO "communes" VALUES('60','Trie-Château','07',1508,1457,9.29,'-573','54761',52,146);
INSERT INTO "communes" VALUES('60','Rivecourt','14',522,456,3.87,'442','54831',30,120);
INSERT INTO "communes" VALUES('60','Beaurepaire','30',56,67,5.07,'261','54771',28,108);
INSERT INTO "communes" VALUES('60','Morvillers','35',443,399,5.12,'-518','55090',160,192);
INSERT INTO "communes" VALUES('60','Grémévillers','35',390,355,6.85,'-489','55071',140,187);
INSERT INTO "communes" VALUES('60','Laigneville','20',4089,3790,8.53,'121','54774',32,112);
INSERT INTO "communes" VALUES('60','Boullarre','05',224,225,7.58,'742','54590',66,148);
INSERT INTO "communes" VALUES('60','Saintines','12',920,854,2.87,'481','54785',34,123);
INSERT INTO "communes" VALUES('60','Thérines','35',190,168,10.8,'-492','55114',123,193);
INSERT INTO "communes" VALUES('60','Cauvigny','28',1439,1198,17.5,'-98','54779',67,208);
INSERT INTO "communes" VALUES('60','Duvy','12',472,419,8.51,'576','54707',59,121);
INSERT INTO "communes" VALUES('60','La Neuville-sur-Oudeuil','22',343,283,3.7,'-366','55082',148,187);
INSERT INTO "communes" VALUES('60','Margny-aux-Cerises','19',240,204,4.55,'589','55194',75,97);
INSERT INTO "communes" VALUES('60','Boursonne','05',289,246,3.44,'787','54670',100,149);
INSERT INTO "communes" VALUES('60','Oroër','27',544,542,9.06,'-174','54990',119,153);
INSERT INTO "communes" VALUES('60','Bonlier','27',400,382,4.47,'-208','54967',99,133);
INSERT INTO "communes" VALUES('60','Paillart','06',601,618,14.18,'-14','55185',62,135);
INSERT INTO "communes" VALUES('60','Boubiers','07',410,370,10.35,'-519','54690',82,136);
INSERT INTO "communes" VALUES('60','Sully','35',157,139,4.83,'-617','55066',128,212);
INSERT INTO "communes" VALUES('60','Neufvy-sur-Aronde','31',246,182,7.31,'361','54996',52,131);
INSERT INTO "communes" VALUES('60','Morangles','26',393,294,5.93,'-46','54662',62,112);
INSERT INTO "communes" VALUES('60','Halloy','17',457,472,3.84,'-440','55171',187,204);
INSERT INTO "communes" VALUES('60','Puiseux-le-Hauberger','26',843,793,5.36,'-111','54684',56,134);
INSERT INTO "communes" VALUES('60','Sommereux','17',398,411,12.97,'-383','55198',116,190);
INSERT INTO "communes" VALUES('60','Montataire','39',12500,12042,10.66,'113','54729',26,110);
INSERT INTO "communes" VALUES('60','Hanvoile','35',611,501,5.88,'-508','55013',115,208);
INSERT INTO "communes" VALUES('60','Auchy-la-Montagne','13',500,439,8.05,'-243','55083',143,181);
INSERT INTO "communes" VALUES('60','Montagny-en-Vexin','07',593,550,4.18,'-596','54662',87,203);
INSERT INTO "communes" VALUES('60','Saint-Thibault','17',274,200,10.62,'-546','55222',189,221);
INSERT INTO "communes" VALUES('60','Vaumoise','12',892,815,3.13,'715','54708',66,123);
INSERT INTO "communes" VALUES('60','Fournival','33',471,501,11.53,'52','54963',84,159);
INSERT INTO "communes" VALUES('60','Bucamps','16',162,128,5.82,'-17','55025',103,169);
INSERT INTO "communes" VALUES('60','<NAME>','21',226,209,8.79,'298','55109',67,102);
INSERT INTO "communes" VALUES('60','Maignelay-Montigny','21',2631,2486,18.79,'204','55058',84,130);
INSERT INTO "communes" VALUES('60','Boissy-Fresnoy','25',936,799,15.87,'593','54626',103,137);
INSERT INTO "communes" VALUES('60','Sérévillers','06',125,92,3.26,'104','55154',108,145);
INSERT INTO "communes" VALUES('60','Esquennoy','06',745,880,9.79,'-76','55174',74,170);
INSERT INTO "communes" VALUES('60','Choqueuse-les-Bénards','13',109,60,4.16,'-283','55169',104,174);
INSERT INTO "communes" VALUES('60','Héricourt-sur-Thérain','15',114,85,4.35,'-640','55091',137,209);
INSERT INTO "communes" VALUES('60','Marseille-en-Beauvaisis','22',1230,950,8.26,'-423','55084',105,187);
INSERT INTO "communes" VALUES('60','Pontarmé','34',819,585,13.24,'236','54615',50,87);
INSERT INTO "communes" VALUES('60','Fitz-James','08',2449,2419,9.65,'104','54878',47,113);
INSERT INTO "communes" VALUES('60','Crèvecœur-le-Grand','13',3401,3076,12.3,'-287','55120',114,179);
INSERT INTO "communes" VALUES('60','Mory-Montcrux','06',97,108,4.66,'65','55102',93,147);
INSERT INTO "communes" VALUES('60','Saint-Maximin','36',2493,2399,12.33,'122','54690',25,125);
INSERT INTO "communes" VALUES('60','Vendeuil-Caply','06',474,372,10.84,'-53','55119',77,157);
INSERT INTO "communes" VALUES('60','<NAME>','21',115,113,4.18,'275','55095',87,97);
INSERT INTO "communes" VALUES('60','Blicourt','22',312,281,14.57,'-311','55063',111,176);
INSERT INTO "communes" VALUES('60','Lavilletertre','07',503,599,16.22,'-452','54662',62,133);
INSERT INTO "communes" VALUES('60','Maulers','13',203,200,7.62,'-188','55053',120,167);
INSERT INTO "communes" VALUES('60','Chantilly','36',10876,10916,16.19,'138','54652',35,112);
INSERT INTO "communes" VALUES('60','Saint-Germer-de-Fly','10',1762,1762,19.9,'-617','54937',84,220);
INSERT INTO "communes" VALUES('60','Marquéglise','31',441,330,6.76,'474','55018',47,114);
INSERT INTO "communes" VALUES('60','Airion','08',489,470,6.73,'85','54916',54,131);
INSERT INTO "communes" VALUES('60','Rémécourt','08',92,78,2.78,'175','54921',83,149);
INSERT INTO "communes" VALUES('60','Varinfroy','05',237,252,2.95,'786','54555',55,132);
INSERT INTO "communes" VALUES('60','Haucourt','35',151,128,3.88,'-443','55014',87,179);
INSERT INTO "communes" VALUES('60','Pisseleu','22',424,338,2.88,'-307','55043',142,173);
INSERT INTO "communes" VALUES('60','Attichy','01',1931,1852,14.74,'790','54903',36,140);
INSERT INTO "communes" VALUES('60','Martincourt','35',149,112,5.08,'-488','55026',95,176);
INSERT INTO "communes" VALUES('60','Clermont','08',10573,9697,5.81,'84','54866',48,162);
INSERT INTO "communes" VALUES('60','Milly-sur-Thérain','22',1698,1519,19.57,'-379','55003',72,164);
INSERT INTO "communes" VALUES('60','Saint-Samson-la-Poterie','15',253,237,4.3,'-660','55105',145,214);
INSERT INTO "communes" VALUES('60','Ver-sur-Launette','25',1198,1007,13.18,'388','54561',79,116);
INSERT INTO "communes" VALUES('60','Moulin-sous-Touvent','01',229,171,18.14,'816','54952',68,158);
INSERT INTO "communes" VALUES('61','Saint-Christophe-de-Chaulieu','33',112,96,6.51,'-3507','54162',224,367);
INSERT INTO "communes" VALUES('61','Beaufai','37',367,345,12.9,'-2024','54166',214,301);
INSERT INTO "communes" VALUES('61','Frênes','33',829,702,13.31,'-3355','54205',132,303);
INSERT INTO "communes" VALUES('61','Sées','31',4446,4501,40.31,'-2406','54005',170,321);
INSERT INTO "communes" VALUES('61','Fleuré','11',239,234,11.8,'-2659','54101',156,265);
INSERT INTO "communes" VALUES('61','Médavy','24',149,169,4.34,'-2496','54086',158,192);
INSERT INTO "communes" VALUES('61','Ventes-de-Bourse','20',146,131,20.95,'-2288','53900',136,195);
INSERT INTO "communes" VALUES('61','Saint-Martin-l''Aiguillon','08',195,191,14.61,'-2791','54018',190,324);
INSERT INTO "communes" VALUES('61','<NAME>','09',156,96,8.02,'-2172','54001',163,243);
INSERT INTO "communes" VALUES('61','Gâprée','09',138,139,9.84,'-2272','54025',184,238);
INSERT INTO "communes" VALUES('61','Dompierre','22',373,351,8.56,'-3209','54036',172,257);
INSERT INTO "communes" VALUES('61','Heugon','13',228,193,15.7,'-2154','54284',203,277);
INSERT INTO "communes" VALUES('61','L''Hôme-Chamondot','19',227,203,15.92,'-1802','53988',205,268);
INSERT INTO "communes" VALUES('61','Le Theil','32',1858,1919,9.53,'-1832','53627',90,190);
INSERT INTO "communes" VALUES('61','Almenêches','24',692,645,20.27,'-2474','54108',158,247);
INSERT INTO "communes" VALUES('61','Aubry-le-Panthou','36',102,93,6.85,'-2338','54278',133,256);
INSERT INTO "communes" VALUES('61','Saint-Symphorien-des-Bruyères','37',489,491,16.02,'-1949','54209',230,294);
INSERT INTO "communes" VALUES('61','Saint-Martin-des-Pézerits','25',115,114,4.66,'-2051','54037',180,257);
INSERT INTO "communes" VALUES('61','Saint-Aubin-de-Courteraie','05',140,111,10.05,'-2108','54011',163,257);
INSERT INTO "communes" VALUES('61','Survie','12',148,156,13.21,'-2374','54271',137,258);
INSERT INTO "communes" VALUES('61','Bazoches-sur-Hoëne','05',953,921,21.44,'-2072','53947',155,278);
INSERT INTO "communes" VALUES('61','Larchamp','33',318,300,8.41,'-3356','54105',211,301);
INSERT INTO "communes" VALUES('61','La Cochère','12',152,142,12.92,'-2429','54137',173,252);
INSERT INTO "communes" VALUES('61','Bonsmoulins','25',233,212,7.57,'-2001','54056',223,291);
INSERT INTO "communes" VALUES('61','Bellou-en-Houlme','22',1111,953,38.73,'-3089','54101',202,332);
INSERT INTO "communes" VALUES('61','Ciral','08',436,416,17.99,'-2749','53882',267,358);
INSERT INTO "communes" VALUES('61','Athis-de-l''Orne','04',2602,2423,32.47,'-3153','54234',102,268);
INSERT INTO "communes" VALUES('61','Le Mage','19',244,213,25.34,'-1704','53899',158,246);
INSERT INTO "communes" VALUES('61','Yveteaux','07',111,90,5.79,'-2900','54117',190,261);
INSERT INTO "communes" VALUES('61','Pacé','02',383,324,7.56,'-2600','53828',137,205);
INSERT INTO "communes" VALUES('61','Sainte-Gauburge-Sainte-Colombe','21',1135,1246,21.17,'-2118','54127',223,314);
INSERT INTO "communes" VALUES('61','Condeau','30',415,326,15.28,'-1670','53761',105,214);
INSERT INTO "communes" VALUES('61','Le Champ-de-la-Pierre','08',40,23,4.05,'-2824','54010',238,315);
INSERT INTO "communes" VALUES('61','Champcerie','29',137,116,8.94,'-2846','54221',159,231);
INSERT INTO "communes" VALUES('61','<NAME>','24',108,103,13.91,'-2634','54029',192,363);
INSERT INTO "communes" VALUES('61','Bizou','19',117,116,9.04,'-1762','53885',145,251);
INSERT INTO "communes" VALUES('61','Pointel','07',305,254,7.52,'-2984','54111',200,242);
INSERT INTO "communes" VALUES('61','Couterne','14',1009,1011,10.68,'-3058','53903',119,217);
INSERT INTO "communes" VALUES('61','Saint-Christophe-le-Jajolet','24',240,236,12.07,'-2587','54073',162,269);
INSERT INTO "communes" VALUES('61','Saint-Fraimbault','27',601,678,28.59,'-3373','53874',107,196);
INSERT INTO "communes" VALUES('61','Saint-Hilaire-sur-Erre','32',567,520,15.12,'-1776','53681',96,188);
INSERT INTO "communes" VALUES('61','<NAME>','17',1526,1603,15.5,'-3128','53926',118,258);
INSERT INTO "communes" VALUES('61','Saint-Hilaire-de-Briouze','07',294,262,13.63,'-2956','54118',201,270);
INSERT INTO "communes" VALUES('61','Guerquesalles','36',130,146,8.66,'-2366','54341',104,229);
INSERT INTO "communes" VALUES('61','Méhoudin','14',110,109,3.85,'-3023','53890',122,184);
INSERT INTO "communes" VALUES('61','Tournai-sur-Dive','35',318,290,12.4,'-2545','54235',80,195);
INSERT INTO "communes" VALUES('61','Lucé','17',80,103,6.09,'-3258','53945',128,172);
INSERT INTO "communes" VALUES('61','Barville','28',204,153,7.53,'-2216','53870',140,168);
INSERT INTO "communes" VALUES('61','Saint-Julien-sur-Sarthe','28',666,603,16.39,'-2198','53879',141,197);
INSERT INTO "communes" VALUES('61','Mahéru','25',254,261,19.63,'-2116','54064',172,314);
INSERT INTO "communes" VALUES('61','Pontchardon','36',234,309,4.83,'-2300','54366',122,221);
INSERT INTO "communes" VALUES('61','Sévigny','03',323,352,7.67,'-2615','54201',164,232);
INSERT INTO "communes" VALUES('61','<NAME>','07',48,49,4.95,'-2874','54103',179,252);
INSERT INTO "communes" VALUES('61','Joué-du-Bois','08',428,429,21.08,'-2854','53980',213,344);
INSERT INTO "communes" VALUES('61','Beauvain','08',280,253,12.46,'-2938','54008',214,291);
INSERT INTO "communes" VALUES('61','Aubusson','15',426,335,3.9,'-3210','54205',168,272);
INSERT INTO "communes" VALUES('61','Saint-Sulpice-sur-Risle','18',1666,1523,28.45,'-1866','54201',187,258);
INSERT INTO "communes" VALUES('61','Saint-Maurice-du-Désert','14',692,676,11.3,'-3027','54012',193,302);
INSERT INTO "communes" VALUES('61','Saint-Maurice-lès-Charencey','34',582,415,16.19,'-1754','54056',189,256);
INSERT INTO "communes" VALUES('61','Montilly-sur-Noireau','15',740,756,11.03,'-3233','54239',85,234);
INSERT INTO "communes" VALUES('61','Tessé-Froulay','17',377,326,5.24,'-3075','53919',123,193);
INSERT INTO "communes" VALUES('61','Aube','37',1412,1541,5.74,'-1989','54155',210,267);
INSERT INTO "communes" VALUES('61','Radon','38',1054,993,19.81,'-2483','53892',148,345);
INSERT INTO "communes" VALUES('61','Montmerrei','24',496,382,12.67,'-2550','54038',175,333);
INSERT INTO "communes" VALUES('61','Saint-Quentin-de-Blavou','28',73,79,6.46,'-2133','53856',151,217);
INSERT INTO "communes" VALUES('61','<NAME>','02',693,604,10.82,'-2631','53793',133,210);
INSERT INTO "communes" VALUES('61','Saint-Jean-de-la-Forêt','26',144,115,9.37,'-1889','53754',154,252);
INSERT INTO "communes" VALUES('61','Marchainville','19',203,230,21.61,'-1691','53983',212,267);
INSERT INTO "communes" VALUES('61','Pouvrai','06',112,102,6.8,'-2021','53641',94,192);
INSERT INTO "communes" VALUES('61','Bretoncelles','30',1441,1347,40.21,'-1610','53813',120,266);
INSERT INTO "communes" VALUES('61','Haleine','17',256,228,2.62,'-3087','53907',117,170);
INSERT INTO "communes" VALUES('61','Saint-Hilaire-sur-Risle','25',321,328,6.61,'-2046','54147',217,270);
INSERT INTO "communes" VALUES('61','Fontenai-les-Louvets','08',248,217,18.77,'-2598','53919',257,413);
INSERT INTO "communes" VALUES('61','Planches','21',190,201,12.49,'-2184','54113',239,308);
INSERT INTO "communes" VALUES('61','Mantilly','27',564,639,28.7,'-3486','53912',154,217);
INSERT INTO "communes" VALUES('61','Tanques','11',165,171,6.22,'-2677','54097',153,234);
INSERT INTO "communes" VALUES('61','Soligny-la-Trappe','05',714,695,19.5,'-2001','54017',197,294);
INSERT INTO "communes" VALUES('61','Boucé','11',609,619,20.39,'-2696','54052',172,268);
INSERT INTO "communes" VALUES('61','Bonnefoi','25',172,131,5.39,'-1963','54080',217,290);
INSERT INTO "communes" VALUES('61','Crouttes','36',302,257,13.47,'-2442','54360',90,259);
INSERT INTO "communes" VALUES('61','Merri','35',153,142,5.81,'-2645','54279',62,171);
INSERT INTO "communes" VALUES('61','Saint-Jean-des-Bois','33',180,197,9.93,'-3477','54136',188,322);
INSERT INTO "communes" VALUES('61','Saint-Denis-sur-Sarthon','02',1145,1064,13.81,'-2653','53841',162,378);
INSERT INTO "communes" VALUES('61','Sept-Forges','17',294,265,8.55,'-3196','53880',107,182);
INSERT INTO "communes" VALUES('61','Boissy-Maugis','30',369,374,22.44,'-1805','53823',122,249);
INSERT INTO "communes" VALUES('61','Belfonds','31',170,219,14.29,'-2465','54012',170,245);
INSERT INTO "communes" VALUES('61','<NAME>','23',636,715,8.33,'-1870','53871',144,232);
INSERT INTO "communes" VALUES('61','<NAME>','20',174,181,3.44,'-2340','53870',134,157);
INSERT INTO "communes" VALUES('61','Damigny','02',2806,2916,4.81,'-2515','53831',140,179);
INSERT INTO "communes" VALUES('61','Coulimer','28',289,266,17.19,'-2077','53862',153,225);
INSERT INTO "communes" VALUES('61','Bubertré','34',146,146,13.72,'-1929','53996',211,311);
INSERT INTO "communes" VALUES('61','Fay','25',64,74,8.68,'-2142','54066',184,310);
INSERT INTO "communes" VALUES('61','Le Pin-la-Garenne','28',694,637,15.88,'-1989','53825',142,190);
INSERT INTO "communes" VALUES('61','Normandel','34',94,98,7.43,'-1803','54051',199,248);
INSERT INTO "communes" VALUES('61','Sevrai','11',239,209,8.11,'-2750','54116',147,205);
INSERT INTO "communes" VALUES('61','<NAME>','34',159,153,7.88,'-1795','54031',220,295);
INSERT INTO "communes" VALUES('61','Saint-Lambert-sur-Dive','35',144,138,7.73,'-2513','54244',85,148);
INSERT INTO "communes" VALUES('61','Caligny','15',849,870,14.97,'-3258','54231',89,210);
INSERT INTO "communes" VALUES('61','Saint-Ouen-de-la-Cour','06',62,66,6.04,'-1943','53793',164,262);
INSERT INTO "communes" VALUES('61','Champs','34',108,102,4.91,'-1979','53982',190,275);
INSERT INTO "communes" VALUES('61','Omméel','12',125,103,9.34,'-2433','54228',109,261);
INSERT INTO "communes" VALUES('61','Saint-André-de-Briouze','07',188,170,12.21,'-2960','54144',198,262);
INSERT INTO "communes" VALUES('61','Saint-Nicolas-de-Sommaire','13',274,270,16.28,'-1920','54237',227,286);
INSERT INTO "communes" VALUES('61','Ferrières-la-Verrerie','09',213,195,14.58,'-2178','54059',176,307);
INSERT INTO "communes" VALUES('61','Cerisy-Belle-Étoile','15',739,688,13.4,'-3292','54220',102,256);
INSERT INTO "communes" VALUES('61','<NAME>','31',206,169,13.79,'-2516','53977',199,390);
INSERT INTO "communes" VALUES('61','Moulicent','19',290,266,33.41,'-1753','53959',170,246);
INSERT INTO "communes" VALUES('61','Bréel','04',129,126,3.71,'-3030','54237',73,241);
INSERT INTO "communes" VALUES('61','Sérigny','06',387,435,15,'-1958','53747',147,252);
INSERT INTO "communes" VALUES('61','Berd''huis','26',1073,1105,11.45,'-1768','53717',107,192);
INSERT INTO "communes" VALUES('61','Saint-Mars-d''Égrenne','27',682,696,25.06,'-3407','53956',113,201);
INSERT INTO "communes" VALUES('61','Avrilly','10',129,136,5.5,'-3279','53932',139,245);
INSERT INTO "communes" VALUES('61','Dancé','26',374,402,14.61,'-1753','53737',110,193);
INSERT INTO "communes" VALUES('61','Loré','17',149,159,6.34,'-3241','53874',102,182);
INSERT INTO "communes" VALUES('61','Boitron','20',342,215,13.35,'-2303','53956',152,224);
INSERT INTO "communes" VALUES('61','Loisail','23',131,144,5.16,'-1940','53890',158,211);
INSERT INTO "communes" VALUES('61','Saint-Quentin-les-Chardonnets','33',286,301,9,'-3439','54205',152,286);
INSERT INTO "communes" VALUES('61','Beaulandais','17',153,159,8.57,'-3199','53939',113,179);
INSERT INTO "communes" VALUES('61','<NAME>','21',906,962,19.1,'-2279','54112',184,321);
INSERT INTO "communes" VALUES('61','Bocquencé','13',155,139,10.15,'-2078','54260',202,283);
INSERT INTO "communes" VALUES('61','Sainte-Céronne-lès-Mortagne','05',290,253,12.55,'-2004','53964',168,297);
INSERT INTO "communes" VALUES('61','Mauves-sur-Huisne','23',616,677,14.26,'-1907','53832',132,262);
INSERT INTO "communes" VALUES('61','Mortrée','24',1051,1072,23.36,'-2509','54044',161,267);
INSERT INTO "communes" VALUES('61','Sainte-Opportune','07',239,198,8.46,'-3059','54158',173,277);
INSERT INTO "communes" VALUES('61','Croisilles','16',210,173,11.32,'-2304','54187',186,303);
INSERT INTO "communes" VALUES('61','Gauville','13',593,474,21.51,'-1980','54254',247,299);
INSERT INTO "communes" VALUES('61','<NAME>','15',247,192,2.59,'-3260','54206',134,202);
INSERT INTO "communes" VALUES('61','Chailloué','31',565,465,11.61,'-2377','54058',167,223);
INSERT INTO "communes" VALUES('61','Habloville','29',326,267,11.7,'-2784','54208',170,252);
INSERT INTO "communes" VALUES('61','Courgeon','23',366,307,10.41,'-1916','53865',144,193);
INSERT INTO "communes" VALUES('61','Saint-Nicolas-des-Bois','02',252,240,25.26,'-2578','53882',175,411);
INSERT INTO "communes" VALUES('61','Saint-Aquilin-de-Corbion','25',66,58,6.1,'-2024','54040',191,281);
INSERT INTO "communes" VALUES('61','Ménil-Hubert-sur-Orne','04',412,360,10.68,'-3055','54281',46,236);
INSERT INTO "communes" VALUES('61','Réveillon','23',359,288,11.66,'-1975','53866',143,191);
INSERT INTO "communes" VALUES('61','Saint-Cyr-la-Rosière','26',260,247,18.75,'-1885','53701',112,212);
INSERT INTO "communes" VALUES('61','Domfront','10',3830,4262,35.54,'-3308','53989',117,256);
INSERT INTO "communes" VALUES('61','<NAME>','33',119,126,6.31,'-3474','54183',245,322);
INSERT INTO "communes" VALUES('61','Ségrie-Fontaine','04',410,422,6.68,'-3049','54251',59,211);
INSERT INTO "communes" VALUES('61','Saint-Germain-de-la-Coudre','32',839,786,26.21,'-1924','53645',91,203);
INSERT INTO "communes" VALUES('61','Autheuil','34',145,127,6.22,'-1851','53969',172,256);
INSERT INTO "communes" VALUES('61','Malétable','19',101,118,4.89,'-1819','53962',172,247);
INSERT INTO "communes" VALUES('61','Aunou-le-Faucon','03',263,243,6.69,'-2543','54136',154,200);
INSERT INTO "communes" VALUES('61','Flers','96',15356,16940,21.15,'-3229','54165',182,276);
INSERT INTO "communes" VALUES('61','Saint-Evroult-de-Montfort','16',329,281,22.36,'-2252','54232',172,318);
INSERT INTO "communes" VALUES('61','Landisacq','40',771,750,10.91,'-3315','54174',188,309);
INSERT INTO "communes" VALUES('61','Saint-Ouen-de-Sécherouvre','05',189,182,10.15,'-2052','54001',173,257);
INSERT INTO "communes" VALUES('61','Orgères','16',175,172,12.04,'-2217','54182',198,326);
INSERT INTO "communes" VALUES('61','Giel-Courteilles','29',464,347,12.58,'-2815','54183',124,252);
INSERT INTO "communes" VALUES('61','Lignou','07',137,148,7.61,'-2980','54079',202,254);
INSERT INTO "communes" VALUES('61','Auguaise','25',157,119,2.25,'-1980','54113',245,281);
INSERT INTO "communes" VALUES('61','Marcei','24',207,205,10.59,'-2547','54070',169,223);
INSERT INTO "communes" VALUES('61','Saint-Nicolas-des-Laitiers','13',96,83,7.09,'-2128','54262',222,294);
INSERT INTO "communes" VALUES('61','Moussonvilliers','34',225,209,21.94,'-1715','54041',185,259);
INSERT INTO "communes" VALUES('61','<NAME>','12',347,366,8.66,'-2438','54161',140,248);
INSERT INTO "communes" VALUES('61','Macé','31',483,480,14.53,'-2440','54040',161,219);
INSERT INTO "communes" VALUES('61','Notre-Dame-du-Rocher','04',63,66,3.43,'-3048','54217',99,200);
INSERT INTO "communes" VALUES('61','Ménil-Vin','29',61,64,3.62,'-2948','54271',72,192);
INSERT INTO "communes" VALUES('61','Saint-Céneri-le-Gérei','02',126,124,3.86,'-2655','53756',115,193);
INSERT INTO "communes" VALUES('61','Échalou','22',355,305,5.59,'-3144','54142',204,237);
INSERT INTO "communes" VALUES('61','Saint-Hilaire-la-Gérard','31',105,116,8.9,'-2529','54002',193,277);
INSERT INTO "communes" VALUES('61','Irai','18',572,457,14.85,'-1823','54078',203,273);
INSERT INTO "communes" VALUES('61','Neuilly-le-Bisson','20',280,172,5.98,'-2337','53889',137,161);
INSERT INTO "communes" VALUES('61','<NAME>','06',769,696,18.64,'-2015','53750',122,234);
INSERT INTO "communes" VALUES('61','Chanu','33',1305,1208,15.72,'-3349','54143',226,321);
INSERT INTO "communes" VALUES('61','Neuville-près-Sées','31',134,136,14.74,'-2347','54053',175,227);
INSERT INTO "communes" VALUES('61','Ménil-Hubert-en-Exmes','16',116,110,10.34,'-2346','54237',169,296);
INSERT INTO "communes" VALUES('61','Brullemail','09',108,97,10.28,'-2231','54064',184,303);
INSERT INTO "communes" VALUES('61','Saint-Maurice-sur-Huisne','26',70,64,4.42,'-1819','53824',127,233);
INSERT INTO "communes" VALUES('61','La Sauvagère','14',952,835,26.78,'-3060','54026',194,305);
INSERT INTO "communes" VALUES('61','Godisson','09',114,101,6.21,'-2317','54088',175,267);
INSERT INTO "communes" VALUES('61','Trun','35',1313,1310,9.12,'-2559','54270',77,151);
INSERT INTO "communes" VALUES('61','Préaux-du-Perche','26',543,539,23.52,'-1815','53700',109,196);
INSERT INTO "communes" VALUES('61','Moncy','33',248,232,7.75,'-3358','54250',133,212);
INSERT INTO "communes" VALUES('61','Saint-Philbert-sur-Orne','29',118,126,5.97,'-3017','54267',50,190);
INSERT INTO "communes" VALUES('61','Coulonces','35',212,191,6.15,'-2588','54263',75,141);
INSERT INTO "communes" VALUES('61','Origny-le-Roux','06',283,263,14.12,'-2129','53716',79,142);
INSERT INTO "communes" VALUES('61','Fontaine-les-Bassets','35',112,104,5.88,'-2591','54288',67,111);
INSERT INTO "communes" VALUES('61','Lonlay-le-Tesson','14',246,227,12.37,'-2988','54049',206,312);
INSERT INTO "communes" VALUES('61','Cahan','04',164,186,5.87,'-3088','54288',50,242);
INSERT INTO "communes" VALUES('61','Courtomer','09',744,677,19.9,'-2198','54032',172,279);
INSERT INTO "communes" VALUES('61','Landigou','40',499,439,5.36,'-3120','54162',204,273);
INSERT INTO "communes" VALUES('61','Ménil-Erreux','20',241,221,11.05,'-2387','53897',140,181);
INSERT INTO "communes" VALUES('61','Ronfeugerai','04',334,329,6.57,'-3125','54201',179,258);
INSERT INTO "communes" VALUES('61','Écorcei','37',350,301,9.47,'-1952','54134',227,272);
INSERT INTO "communes" VALUES('61','Glos-la-Ferrière','13',561,521,12.63,'-1928','54286',208,261);
INSERT INTO "communes" VALUES('61','Laleu','20',369,343,11.41,'-2175','53946',148,214);
INSERT INTO "communes" VALUES('61','<NAME>','21',41,42,3.86,'-2267','54166',205,288);
INSERT INTO "communes" VALUES('61','Neuilly-sur-Eure','19',592,501,21.47,'-1592','53936',207,283);
INSERT INTO "communes" VALUES('61','L''Hermitière','32',266,276,8.34,'-1880','53647',105,209);
INSERT INTO "communes" VALUES('61','Ginai','12',79,87,9.25,'-2355','54164',182,268);
INSERT INTO "communes" VALUES('61','<NAME>','29',201,183,10.96,'-2976','54235',65,251);
INSERT INTO "communes" VALUES('61','Crulai','18',941,782,22.5,'-1855','54117',204,264);
INSERT INTO "communes" VALUES('61','Sainte-Honorine-la-Guillaume','29',362,330,14.87,'-3017','54201',124,276);
INSERT INTO "communes" VALUES('61','La Baroche-sous-Lucé','17',391,433,22.18,'-3239','53936',117,238);
INSERT INTO "communes" VALUES('61','Avernes-sous-Exmes','12',72,76,7.03,'-2370','54210',129,277);
INSERT INTO "communes" VALUES('61','Saint-Georges-des-Groseillers','15',3270,3259,7.06,'-3233','54189',172,276);
INSERT INTO "communes" VALUES('61','Villebadin','12',138,134,12.93,'-2425','54199',112,230);
INSERT INTO "communes" VALUES('61','Saint-Aubin-de-Bonneval','36',154,147,11.67,'-2174','54379',153,234);
INSERT INTO "communes" VALUES('61','Larré','38',416,383,5.67,'-2413','53883',140,166);
INSERT INTO "communes" VALUES('61','Montreuil-la-Cambe','35',82,79,9.57,'-2540','54315',74,260);
INSERT INTO "communes" VALUES('61','Le Bourg-Saint-Léonard','12',432,384,9.25,'-2479','54178',113,226);
INSERT INTO "communes" VALUES('61','Aubry-en-Exmes','35',300,243,9.6,'-2521','54214',89,220);
INSERT INTO "communes" VALUES('61','<NAME>','13',693,715,7.7,'-2028','54268',246,286);
INSERT INTO "communes" VALUES('61','Rônai','29',159,138,5.4,'-2748','54237',194,260);
INSERT INTO "communes" VALUES('61','Saint-Ouen-sur-Iton','18',920,827,14.19,'-1824','54151',198,266);
INSERT INTO "communes" VALUES('61','Passais','27',802,889,16.68,'-3438','53910',143,207);
INSERT INTO "communes" VALUES('61','Geneslay','17',280,209,8.34,'-3131','53901',112,146);
INSERT INTO "communes" VALUES('61','<NAME>','16',54,49,5.09,'-2348','54254',150,269);
INSERT INTO "communes" VALUES('61','Aunay-les-Bois','20',175,144,8.53,'-2272','53938',147,203);
INSERT INTO "communes" VALUES('61','Vidai','28',78,62,1.55,'-2175','53843',144,158);
INSERT INTO "communes" VALUES('61','La Chapelle-Viel','25',284,243,11.79,'-1910','54115',209,274);
INSERT INTO "communes" VALUES('61','Menus','19',197,148,11.81,'-1558','53916',198,229);
INSERT INTO "communes" VALUES('61','Sainte-Scolasse-sur-Sarthe','09',550,539,13.88,'-2160','53975',158,221);
INSERT INTO "communes" VALUES('61','Faverolles','07',146,140,10.57,'-2927','54075',206,267);
INSERT INTO "communes" VALUES('61','La Ferrière-aux-Étangs','22',1547,1643,10.93,'-3173','54070',187,312);
INSERT INTO "communes" VALUES('61','Sentilly','11',139,139,7.73,'-2724','54185',170,241);
INSERT INTO "communes" VALUES('61','Beauchêne','33',246,207,10.42,'-3401','54088',147,277);
INSERT INTO "communes" VALUES('61','Urou-et-Crennes','03',792,661,7.03,'-2580','54164',155,225);
INSERT INTO "communes" VALUES('61','Bazoches-au-Houlme','29',462,335,28.64,'-2863','54242',90,230);
INSERT INTO "communes" VALUES('61','Silly-en-Gouffern','12',421,468,39.83,'-2519','54172',159,246);
INSERT INTO "communes" VALUES('61','Courgeoût','05',465,453,17.82,'-2052','53900',165,279);
INSERT INTO "communes" VALUES('61','<NAME>','22',521,496,14.32,'-3103','54052',209,345);
INSERT INTO "communes" VALUES('61','Saint-Didier-sous-Écouves','08',160,146,8.78,'-2637','53930',233,412);
INSERT INTO "communes" VALUES('61','Saint-Bômer-les-Forges','10',1040,854,31.08,'-3300','54049',137,271);
INSERT INTO "communes" VALUES('61','Saint-Michel-des-Andaines','14',348,327,6.44,'-3058','53978',185,253);
INSERT INTO "communes" VALUES('61','Prépotin','34',125,95,10.53,'-1954','54015',244,304);
INSERT INTO "communes" VALUES('61','Saint-Léonard-des-Parcs','09',71,54,13.4,'-2278','54047',180,225);
INSERT INTO "communes" VALUES('61','Putanges-Pont-Écrepin','29',1026,1013,10.12,'-2870','54182',121,241);
INSERT INTO "communes" VALUES('61','<NAME>','40',528,480,6.25,'-3295','54124',204,307);
INSERT INTO "communes" VALUES('61','Saint-Clair-de-Halouze','10',866,845,11.81,'-3291','54088',187,306);
INSERT INTO "communes" VALUES('61','Saint-Siméon','27',275,261,16.13,'-3425','53853',130,212);
INSERT INTO "communes" VALUES('61','Courcerault','26',168,173,14.75,'-1865','53820',127,238);
INSERT INTO "communes" VALUES('61','Brieux','35',90,93,5.17,'-2698','54263',110,212);
INSERT INTO "communes" VALUES('61','<NAME>','19',127,104,9.43,'-1559','53885',196,231);
INSERT INTO "communes" VALUES('61','Saint-Sauveur-de-Carrouges','08',266,236,11.42,'-2715','53984',209,356);
INSERT INTO "communes" VALUES('61','<NAME>','25',69,68,7.33,'-2028','54122',228,287);
INSERT INTO "communes" VALUES('61','Ri','29',166,160,7.39,'-2749','54212',177,253);
INSERT INTO "communes" VALUES('61','Saint-André-de-Messei','22',541,551,14.99,'-3176','54106',198,291);
INSERT INTO "communes" VALUES('61','<NAME>','16',132,125,9.53,'-2173','54257',222,297);
INSERT INTO "communes" VALUES('61','Ceaucé','10',1223,1246,41.52,'-3290','53882',100,262);
INSERT INTO "communes" VALUES('61','Avoine','11',246,227,9.43,'-2702','54080',152,214);
INSERT INTO "communes" VALUES('61','Saint-Fulgent-des-Ormes','06',171,158,8.32,'-2099','53687',76,125);
INSERT INTO "communes" VALUES('61','Perrou','17',397,415,4.34,'-3215','53970',170,274);
INSERT INTO "communes" VALUES('61','Saint-Loyer-des-Champs','24',405,350,10.29,'-2575','54113',157,213);
INSERT INTO "communes" VALUES('61','Lalacelle','02',281,268,13.37,'-2755','53862',213,389);
INSERT INTO "communes" VALUES('61','Saint-Germain-de-Clairefeuille','21',160,167,12.31,'-2332','54126',183,269);
INSERT INTO "communes" VALUES('61','Trémont','09',111,94,6.22,'-2292','54002',173,240);
INSERT INTO "communes" VALUES('61','Saint-Agnan-sur-Sarthe','09',118,91,6.24,'-2122','54011',165,238);
INSERT INTO "communes" VALUES('61','Guêprei','35',149,137,7.1,'-2605','54262',73,169);
INSERT INTO "communes" VALUES('61','<NAME>','32',660,663,11.74,'-1811','53652',91,187);
INSERT INTO "communes" VALUES('61','<NAME>-Fouquet','08',169,148,9.32,'-2913','53965',195,320);
INSERT INTO "communes" VALUES('61','Monnai','13',226,222,15.52,'-2155','54325',191,262);
INSERT INTO "communes" VALUES('61','Saint-Ellier-les-Bois','08',258,243,13.68,'-2702','53911',217,367);
INSERT INTO "communes" VALUES('61','Chandai','18',681,534,13.73,'-1775','54170',187,222);
INSERT INTO "communes" VALUES('61','Bursard','20',198,196,10.55,'-2362','53934',144,207);
INSERT INTO "communes" VALUES('61','Saint-Michel-Tubœuf','18',551,532,8.73,'-1831','54169',198,241);
INSERT INTO "communes" VALUES('61','<NAME>','36',189,199,14.48,'-2484','54357',93,266);
INSERT INTO "communes" VALUES('61','Rémalard','30',1291,1244,20.89,'-1738','53810',119,243);
INSERT INTO "communes" VALUES('61','Francheville','24',155,122,9.72,'-2659','54041',170,287);
INSERT INTO "communes" VALUES('61','Saint-Martin-des-Landes','08',203,178,11.19,'-2749','53940',263,372);
INSERT INTO "communes" VALUES('61','Parfondeval','28',108,96,3.1,'-2033','53869',166,212);
INSERT INTO "communes" VALUES('61','Moutiers-au-Perche','30',436,506,33.61,'-1655','53864',143,237);
INSERT INTO "communes" VALUES('61','Saint-Paul','40',658,559,7.96,'-3299','54159',193,294);
INSERT INTO "communes" VALUES('61','Bures','09',174,146,9.64,'-2150','53959',154,216);
INSERT INTO "communes" VALUES('61','Chênedouit','29',170,167,8.93,'-2975','54179',148,275);
INSERT INTO "communes" VALUES('61','La Fresnaye-au-Sauvage','29',225,189,11.98,'-2884','54154',123,253);
INSERT INTO "communes" VALUES('61','Durcet','04',261,198,9.54,'-3080','54163',198,275);
INSERT INTO "communes" VALUES('61','Origny-le-Butin','06',120,100,4.57,'-2076','53746',107,228);
INSERT INTO "communes" VALUES('61','Saint-Germain-des-Grois','30',228,197,10.38,'-1674','53776',112,227);
INSERT INTO "communes" VALUES('61','Lonlay-l''Abbaye','10',1222,1152,53.41,'-3385','54052',126,321);
INSERT INTO "communes" VALUES('61','Saint-Denis-sur-Huisne','23',61,75,4.59,'-1993','53854',147,190);
INSERT INTO "communes" VALUES('61','La Chapelle-Souëf','06',308,239,11.13,'-1934','53693',111,198);
INSERT INTO "communes" VALUES('61','<NAME>','36',235,233,12.7,'-2257','54348',165,242);
INSERT INTO "communes" VALUES('61','Condé-sur-Huisne','30',1313,1175,17.51,'-1651','53756',107,220);
INSERT INTO "communes" VALUES('61','Rotours','29',100,92,5.06,'-2885','54204',121,231);
INSERT INTO "communes" VALUES('61','Vimoutiers','36',3807,4428,16.15,'-2376','54364',92,236);
INSERT INTO "communes" VALUES('61','Taillebois','04',139,155,5.51,'-3079','54224',110,206);
INSERT INTO "communes" VALUES('61','Bellou-le-Trichard','32',238,201,9.67,'-1989','53631',110,196);
INSERT INTO "communes" VALUES('61','<NAME>-au-Doyen','25',195,214,22.47,'-2042','54071',214,312);
INSERT INTO "communes" VALUES('61','La Haute-Chapelle','10',598,610,19.31,'-3342','54006',115,226);
INSERT INTO "communes" VALUES('61','Rouperroux','08',162,176,9.78,'-2691','53942',239,399);
INSERT INTO "communes" VALUES('61','Résenlieu','16',205,198,5.09,'-2277','54217',178,296);
INSERT INTO "communes" VALUES('61','<NAME>','21',100,118,13.37,'-2243','54094',184,300);
INSERT INTO "communes" VALUES('61','Argentan','97',14369,16596,18.18,'-2619','54161',152,228);
INSERT INTO "communes" VALUES('61','Montchevrel','09',234,207,10.8,'-2219','53970',153,221);
INSERT INTO "communes" VALUES('61','Torchamp','27',293,283,14.69,'-3371','53941',111,262);
INSERT INTO "communes" VALUES('61','Montgaudry','28',102,117,11.05,'-2149','53785',134,205);
INSERT INTO "communes" VALUES('61','Tinchebray','33',2571,2890,26.52,'-3412','54181',152,311);
INSERT INTO "communes" VALUES('61','<NAME>','02',161,150,5.21,'-2653','53878',192,332);
INSERT INTO "communes" VALUES('61','Saint-Pierre-d''Entremont','33',707,677,6.19,'-3317','54233',106,216);
INSERT INTO "communes" VALUES('61','Saint-Germain-d''Aunay','36',173,169,8.51,'-2175','54362',164,233);
INSERT INTO "communes" VALUES('61','Saint-Langis-lès-Mortagne','23',906,876,12.61,'-1998','53903',154,276);
INSERT INTO "communes" VALUES('61','Occagnes','39',606,530,15.56,'-2677','54198',160,244);
INSERT INTO "communes" VALUES('61','Tourailles','04',71,67,2.46,'-3042','54173',159,254);
INSERT INTO "communes" VALUES('61','Coulonges-les-Sablons','30',415,373,19.57,'-1597','53780',133,264);
INSERT INTO "communes" VALUES('61','Aunou-sur-Orne','31',260,255,18.04,'-2341','54013',171,233);
INSERT INTO "communes" VALUES('61','Exmes','12',308,351,10.43,'-2396','54178',145,268);
INSERT INTO "communes" VALUES('61','Mortagne-au-Perche','23',4093,4511,8.6,'-1988','53911',171,264);
INSERT INTO "communes" VALUES('61','Lonrai','02',1036,818,6.14,'-2552','53844',141,167);
INSERT INTO "communes" VALUES('61','Beaulieu','34',211,186,18.06,'-1770','54089',188,234);
INSERT INTO "communes" VALUES('61','Coulonges-sur-Sarthe','20',492,458,9.65,'-2152','53924',147,205);
INSERT INTO "communes" VALUES('61','<NAME>','04',147,122,5.33,'-3080','54247',104,227);
INSERT INTO "communes" VALUES('61','Vingt-Hanaps','38',460,422,11.58,'-2443','53914',153,319);
INSERT INTO "communes" VALUES('61','Ménil-Hermei','29',215,158,6.61,'-2958','54252',63,216);
INSERT INTO "communes" VALUES('61','Livaie','08',194,170,12.46,'-2633','53905',197,378);
INSERT INTO "communes" VALUES('61','Colombiers','02',339,325,12.34,'-2536','53855',149,216);
INSERT INTO "communes" VALUES('61','Villedieu-lès-Bailleul','35',231,212,4.71,'-2574','54238',110,219);
INSERT INTO "communes" VALUES('61','Marmouillé','24',179,124,9.53,'-2371','54082',165,252);
INSERT INTO "communes" VALUES('61','Montreuil-au-Houlme','07',121,110,7.82,'-2889','54096',184,262);
INSERT INTO "communes" VALUES('61','Cuissai','02',422,446,8.78,'-2578','53856',147,370);
INSERT INTO "communes" VALUES('61','Gacé','16',2102,2042,6.5,'-2266','54215',179,316);
INSERT INTO "communes" VALUES('61','Saires-la-Verrerie','22',279,280,7.88,'-3147','54096',208,298);
INSERT INTO "communes" VALUES('61','Sainte-Honorine-la-Chardonne','04',718,629,14.4,'-3136','54249',78,251);
INSERT INTO "communes" VALUES('61','Champeaux-sur-Sarthe','05',183,177,9.49,'-2104','53974',156,232);
INSERT INTO "communes" VALUES('61','Sarceaux','39',901,841,10.77,'-2642','54132',149,181);
INSERT INTO "communes" VALUES('61','Saint-Cornier-des-Landes','33',673,631,11.96,'-3397','54131',210,324);
INSERT INTO "communes" VALUES('61','Ménil-Froger','21',65,64,5.31,'-2296','54147',199,288);
INSERT INTO "communes" VALUES('61','Vieux-Pont','11',209,204,9.67,'-2757','54056',169,228);
INSERT INTO "communes" VALUES('61','Saint-Germain-du-Corbéis','02',3816,4021,7.52,'-2527','53803',127,197);
INSERT INTO "communes" VALUES('61','Saint-Gervais-du-Perron','31',355,283,11.28,'-2419','53925',151,333);
INSERT INTO "communes" VALUES('61','Le Chalange','09',98,62,6.27,'-2248','53993',159,231);
INSERT INTO "communes" VALUES('61','Fontenai-sur-Orne','39',246,277,6.51,'-2675','54137',147,193);
INSERT INTO "communes" VALUES('61','La Courbe','11',59,54,5.05,'-2807','54161',135,247);
INSERT INTO "communes" VALUES('61','Saint-Roch-sur-Égrenne','27',200,200,12.29,'-3425','53974',116,171);
INSERT INTO "communes" VALUES('61','La Selle-la-Forge','40',1348,1277,8.32,'-3197','54148',185,266);
INSERT INTO "communes" VALUES('61','Longuenoë','08',118,110,4.44,'-2672','53908',214,297);
INSERT INTO "communes" VALUES('61','Saint-Brice-sous-Rânes','11',169,155,9.45,'-2810','54088',164,249);
INSERT INTO "communes" VALUES('61','Neauphe-sous-Essai','31',204,198,11.43,'-2362','53962',167,214);
INSERT INTO "communes" VALUES('61','La Chaux','08',54,53,5.06,'-2882','54012',213,306);
INSERT INTO "communes" VALUES('61','Gémages','32',119,90,6.47,'-1912','53660',103,211);
INSERT INTO "communes" VALUES('61','Champsecret','10',1014,1030,44.68,'-3208','54010',140,313);
INSERT INTO "communes" VALUES('61','Neuvy-au-Houlme','29',235,219,15.62,'-2818','54241',148,251);
INSERT INTO "communes" VALUES('61','Saint-Hilaire-le-Châtel','23',698,576,22.34,'-2006','53961',167,294);
INSERT INTO "communes" VALUES('61','Bure','05',117,100,5.65,'-2145','53908',148,211);
INSERT INTO "communes" VALUES('61','Saint-Gilles-des-Marais','10',102,88,5.92,'-3367','53981',116,134);
INSERT INTO "communes" VALUES('61','Saint-Aubin-d''Appenai','20',386,320,11.29,'-2218','53928',144,209);
INSERT INTO "communes" VALUES('61','La Lande-sur-Eure','19',169,147,15.78,'-1636','53953',215,286);
INSERT INTO "communes" VALUES('61','Hauterive','20',489,375,6.98,'-2374','53864',132,160);
INSERT INTO "communes" VALUES('61','Montgaroult','11',375,304,13.87,'-2742','54165',144,252);
INSERT INTO "communes" VALUES('61','Saint-Denis-de-Villenette','17',147,126,5.89,'-3195','53905',113,168);
INSERT INTO "communes" VALUES('61','Héloup','02',1013,894,12.96,'-2568','53775',123,202);
INSERT INTO "communes" VALUES('61','Couvains','13',172,121,17.93,'-1975','54289',204,259);
INSERT INTO "communes" VALUES('61','Saint-Pierre-du-Regard','04',1311,1273,9.3,'-3204','54271',69,218);
INSERT INTO "communes" VALUES('61','La Ventrouze','34',127,144,7.06,'-1822','54012',239,293);
INSERT INTO "communes" VALUES('61','Touquettes','13',83,92,9.73,'-2126','54220',227,321);
INSERT INTO "communes" VALUES('61','<NAME>','09',89,88,2.76,'-2268','53980',158,189);
INSERT INTO "communes" VALUES('61','Lignères','21',26,50,5.37,'-2251','54150',203,285);
INSERT INTO "communes" VALUES('61','Feings','23',221,220,20.24,'-1892','53940',167,261);
INSERT INTO "communes" VALUES('61','Coulmer','16',98,87,6.68,'-2266','54194',189,300);
INSERT INTO "communes" VALUES('61','Orville','36',102,81,7.25,'-2293','54322',139,242);
INSERT INTO "communes" VALUES('61','Craménil','07',166,157,8.09,'-3016','54160',174,253);
INSERT INTO "communes" VALUES('61','Igé','06',687,702,27.86,'-2017','53694',90,180);
INSERT INTO "communes" VALUES('61','Fel','12',279,252,7.02,'-2480','54225',98,143);
INSERT INTO "communes" VALUES('61','Sainte-Marie-la-Robert','08',78,82,5.45,'-2770','54026',183,269);
INSERT INTO "communes" VALUES('61','Saint-Patrice-du-Désert','08',198,197,20.48,'-2931','53936',168,268);
INSERT INTO "communes" VALUES('61','<NAME>','08',112,107,5.37,'-2730','54012',194,289);
INSERT INTO "communes" VALUES('61','Saint-Victor-de-Réno','19',202,238,12.32,'-1820','53892',136,239);
INSERT INTO "communes" VALUES('61','Chambois','35',420,475,8.3,'-2479','54228',89,156);
INSERT INTO "communes" VALUES('61','<NAME>','22',398,343,8.18,'-3242','54084',175,275);
INSERT INTO "communes" VALUES('61','Mont-Ormel','35',59,50,3.73,'-2423','54266',177,263);
INSERT INTO "communes" VALUES('61','Villers-en-Ouche','13',351,304,11.13,'-2089','54289',197,257);
INSERT INTO "communes" VALUES('61','Mardilly','16',130,115,12.76,'-2286','54258',160,286);
INSERT INTO "communes" VALUES('61','Bailleul','35',619,604,16.67,'-2618','54232',125,237);
INSERT INTO "communes" VALUES('61','Saint-Agnan-sur-Erre','32',167,167,5.28,'-1789','53688',107,208);
INSERT INTO "communes" VALUES('61','Nécy','35',507,460,7.8,'-2724','54258',152,247);
INSERT INTO "communes" VALUES('61','Bellême','06',1562,1775,1.71,'-1973','53752',162,230);
INSERT INTO "communes" VALUES('61','Rabodanges','29',138,157,9.32,'-2911','54222',70,241);
INSERT INTO "communes" VALUES('61','Moulins-sur-Orne','39',313,342,9.14,'-2677','54176',150,191);
INSERT INTO "communes" VALUES('61','Saint-Martin-d''Écublei','18',610,499,11.94,'-1843','54212',182,248);
INSERT INTO "communes" VALUES('61','Condé-sur-Sarthe','02',2202,2227,8.46,'-2558','53813',126,165);
INSERT INTO "communes" VALUES('61','Carrouges','08',734,743,8.58,'-2758','53964',240,361);
INSERT INTO "communes" VALUES('61','Alençon','99',26704,28917,10.68,'-2494','53811',127,152);
INSERT INTO "communes" VALUES('61','Chahains','08',101,90,7.65,'-2723','53958',271,395);
INSERT INTO "communes" VALUES('61','<NAME>','05',315,258,12.26,'-2115','53915',151,216);
INSERT INTO "communes" VALUES('61','<NAME>','36',947,945,22.73,'-2220','54327',180,272);
INSERT INTO "communes" VALUES('61','Magny-le-Désert','14',1465,1268,33.34,'-2961','53966',166,281);
INSERT INTO "communes" VALUES('61','Juvigny-sous-Andaine','17',1042,1059,22,'-3160','53945',123,284);
INSERT INTO "communes" VALUES('61','Villiers-sous-Mortagne','23',326,307,13.04,'-1937','53932',186,282);
INSERT INTO "communes" VALUES('61','Canapville','36',195,206,8.22,'-2296','54386',110,222);
INSERT INTO "communes" VALUES('61','La Lande-de-Goult','08',147,97,28.57,'-2649','53983',217,413);
INSERT INTO "communes" VALUES('61','Le Château-d''Almenêches','24',201,178,10.76,'-2460','54088',160,193);
INSERT INTO "communes" VALUES('61','Banvou','22',646,456,12.98,'-3210','54072',173,259);
INSERT INTO "communes" VALUES('61','Saint-Pierre-des-Loges','25',165,135,9.79,'-2072','54167',222,319);
INSERT INTO "communes" VALUES('61','Louvières-en-Auge','35',85,95,6.22,'-2562','54300',84,152);
INSERT INTO "communes" VALUES('61','Rouellé','10',202,213,10.64,'-3403','54001',118,220);
INSERT INTO "communes" VALUES('61','Tanville','31',259,261,13.32,'-2587','53965',255,406);
INSERT INTO "communes" VALUES('61','Saint-Mard-de-Réno','23',426,440,19.13,'-1892','53900',157,242);
INSERT INTO "communes" VALUES('61','Neuville-sur-Touques','16',252,191,15.35,'-2281','54287',146,266);
INSERT INTO "communes" VALUES('61','Marchemaisons','20',153,172,8.85,'-2259','53913',142,207);
INSERT INTO "communes" VALUES('61','Courménil','12',125,101,9.53,'-2335','54197',154,289);
INSERT INTO "communes" VALUES('61','<NAME>','07',542,460,21.39,'-3040','54084',204,345);
INSERT INTO "communes" VALUES('61','Saint-Jouin-de-Blavou','28',297,310,17.71,'-2070','53836',152,207);
INSERT INTO "communes" VALUES('61','<NAME>','28',270,294,16.16,'-2105','53766',122,226);
INSERT INTO "communes" VALUES('61','Chaumont','16',170,146,19.51,'-2235','54261',189,304);
INSERT INTO "communes" VALUES('61','Vitrai-sous-Laigle','18',221,190,11.33,'-1808','54129',199,237);
INSERT INTO "communes" VALUES('61','Saint-Evroult-Notre-Dame-du-Bois','13',455,431,34.47,'-2083','54213',222,331);
INSERT INTO "communes" VALUES('61','Gandelain','02',414,374,15.31,'-2694','53867',186,370);
INSERT INTO "communes" VALUES('61','Brethel','25',134,116,2.97,'-1996','54134',233,273);
INSERT INTO "communes" VALUES('61','Suré','28',269,291,17.44,'-2154','53743',93,181);
INSERT INTO "communes" VALUES('61','Tourouvre','34',1624,1635,24.01,'-1872','53989',180,304);
INSERT INTO "communes" VALUES('61','Essay','20',531,500,15.99,'-2322','53935',141,206);
INSERT INTO "communes" VALUES('61','Pervenchères','28',376,388,28.35,'-2123','53820',143,227);
INSERT INTO "communes" VALUES('61','Clairefougère','33',135,84,3.28,'-3371','54229',129,211);
INSERT INTO "communes" VALUES('61','L''Épinay-le-Comte','27',179,188,9.55,'-3497','53857',157,217);
INSERT INTO "communes" VALUES('61','<NAME>','04',582,486,15.91,'-3091','54198',135,262);
INSERT INTO "communes" VALUES('61','Anceins','13',227,175,12.33,'-2039','54293',189,258);
INSERT INTO "communes" VALUES('61','Boëcé','05',127,104,2.41,'-2087','53907',164,224);
INSERT INTO "communes" VALUES('61','Saint-Aubert-sur-Orne','29',114,126,9.69,'-2964','54211',70,261);
INSERT INTO "communes" VALUES('61','Saint-Martin-du-Vieux-Bellême','06',629,653,15.84,'-1993','53757',122,244);
INSERT INTO "communes" VALUES('61','Montsecret','33',573,501,10.64,'-3347','54219',115,242);
INSERT INTO "communes" VALUES('61','Nocé','26',825,761,21.05,'-1839','53755',127,234);
INSERT INTO "communes" VALUES('61','Antoigny','14',122,118,4.82,'-3003','53916',138,222);
INSERT INTO "communes" VALUES('61','Saint-Germain-le-Vieux','09',55,52,3.16,'-2247','54013',186,234);
INSERT INTO "communes" VALUES('61','Coudehard','35',87,76,8.52,'-2446','54271',112,265);
INSERT INTO "communes" VALUES('61','<NAME>','07',210,175,12.21,'-2962','54043',209,297);
INSERT INTO "communes" VALUES('61','Rai','37',1552,1762,16.03,'-1950','54167',202,290);
INSERT INTO "communes" VALUES('61','Monceaux-au-Perche','19',82,85,3.15,'-1813','53873',137,227);
INSERT INTO "communes" VALUES('61','Aspres','25',698,633,23.21,'-1928','54100',209,280);
INSERT INTO "communes" VALUES('61','Serans','11',204,217,6.1,'-2739','54135',144,219);
INSERT INTO "communes" VALUES('61','Sai','03',219,230,5.04,'-2568','54160',152,186);
INSERT INTO "communes" VALUES('61','Maison-Maugis','30',56,55,5.67,'-1816','53838',126,221);
INSERT INTO "communes" VALUES('61','Commeaux','39',125,118,6.38,'-2722','54209',162,212);
INSERT INTO "communes" VALUES('61','Le Cercueil','08',145,142,13.23,'-2571','53997',232,373);
INSERT INTO "communes" VALUES('61','Saint-Ouen-sur-Maire','11',104,113,5.24,'-2795','54116',153,200);
INSERT INTO "communes" VALUES('61','Corbon','23',152,143,8.38,'-1899','53838',132,222);
INSERT INTO "communes" VALUES('61','Dorceau','30',417,382,14.68,'-1706','53803',115,230);
INSERT INTO "communes" VALUES('61','L''Aigle','98',7975,8977,18.02,'-1899','54184',195,277);
INSERT INTO "communes" VALUES('61','Bivilliers','34',64,74,4.15,'-1909','53978',202,257);
INSERT INTO "communes" VALUES('61','Colonard-Corubert','26',251,251,14.1,'-1866','53788',142,261);
INSERT INTO "communes" VALUES('61','Champosoult','36',106,103,7.01,'-2406','54300',140,259);
INSERT INTO "communes" VALUES('61','Saint-Léger-sur-Sarthe','20',341,296,13.25,'-2217','53894',138,171);
INSERT INTO "communes" VALUES('61','<NAME>elle-près-Sées','31',434,355,9.95,'-2416','53967',168,260);
INSERT INTO "communes" VALUES('61','Vaunoise','06',110,105,7.65,'-2056','53729',88,181);
INSERT INTO "communes" VALUES('61','Dame-Marie','06',172,177,13.27,'-1912','53728',121,216);
INSERT INTO "communes" VALUES('61','Semallé','38',400,366,14.04,'-2429','53861',132,163);
INSERT INTO "communes" VALUES('61','Mâle','32',769,659,21.9,'-1775','53635',90,206);
INSERT INTO "communes" VALUES('61','Avernes-Saint-Gourgon','36',69,63,12.13,'-2241','54377',121,234);
INSERT INTO "communes" VALUES('61','Berjou','04',476,508,8.82,'-3132','54277',58,257);
INSERT INTO "communes" VALUES('61','Échauffour','21',736,768,33.14,'-2165','54156',223,331);
INSERT INTO "communes" VALUES('61','Le Mêle-sur-Sarthe','20',771,781,0.62,'-2202','53901',143,157);
INSERT INTO "communes" VALUES('61','Juvigny-sur-Orne','03',111,71,3.3,'-2551','54136',152,173);
INSERT INTO "communes" VALUES('61','Saint-Ouen-le-Brisoult','08',138,105,9.75,'-2974','53900',124,221);
INSERT INTO "communes" VALUES('61','Vrigny','24',343,320,13.45,'-2619','54080',157,268);
INSERT INTO "communes" VALUES('61','Eperrais','28',111,109,14.12,'-1986','53803',147,238);
INSERT INTO "communes" VALUES('61','Lougé-sur-Maire','07',371,331,13.58,'-2846','54104',157,246);
INSERT INTO "communes" VALUES('61','Loucé','11',111,85,4.12,'-2709','54113',149,178);
INSERT INTO "communes" VALUES('61','Saint-Georges-d''Annebecq','07',141,177,9.35,'-2891','54037',213,292);
INSERT INTO "communes" VALUES('61','Neauphe-sur-Dive','35',143,134,13.89,'-2490','54277',83,241);
INSERT INTO "communes" VALUES('61','Cisai-Saint-Aubin','16',192,177,14.49,'-2215','54195',199,328);
INSERT INTO "communes" VALUES('61','Mieuxcé','02',607,596,10.36,'-2584','53778',122,178);
INSERT INTO "communes" VALUES('61','Saint-Germain-de-Martigny','05',102,87,3.89,'-2083','53988',175,246);
INSERT INTO "communes" VALUES('61','Sainte-Croix-sur-Orne','29',81,61,3.81,'-2920','54199',121,231);
INSERT INTO "communes" VALUES('61','<NAME>','31',154,151,17.77,'-2481','53957',197,393);
INSERT INTO "communes" VALUES('61','Écorches','35',91,136,9.71,'-2493','54297',102,269);
INSERT INTO "communes" VALUES('61','<NAME>','14',5936,6676,27.04,'-2993','53992',165,286);
INSERT INTO "communes" VALUES('61','Nonant-le-Pin','21',531,615,18.44,'-2351','54118',180,251);
INSERT INTO "communes" VALUES('61','Saint-Pierre-la-Bruyère','26',418,446,6.33,'-1702','53736',130,216);
INSERT INTO "communes" VALUES('61','Saint-Gervais-des-Sablons','35',65,70,8.8,'-2511','54337',129,265);
INSERT INTO "communes" VALUES('61','Chemilli','06',217,235,10.92,'-2103','53737',93,143);
INSERT INTO "communes" VALUES('61','Montabard','35',302,302,10.97,'-2703','54240',170,253);
INSERT INTO "communes" VALUES('61','Champ-Haut','21',50,54,5.16,'-2235','54141',220,321);
INSERT INTO "communes" VALUES('61','La Trinité-des-Laitiers','16',91,103,11.16,'-2177','54220',245,321);
INSERT INTO "communes" VALUES('61','Tellières-le-Plessis','09',78,47,5.41,'-2161','54029',169,244);
INSERT INTO "communes" VALUES('61','Ommoy','35',113,89,5.66,'-2622','54284',62,169);
INSERT INTO "communes" VALUES('61','Appenai-sous-Bellême','06',245,221,10.74,'-1976','53716',123,196);
INSERT INTO "communes" VALUES('61','Écouché','11',1306,1396,5.22,'-2735','54131',147,184);
INSERT INTO "communes" VALUES('61','Bagnoles-de-l''Orne','17',2405,1279,9.26,'-3053','53950',145,242);
INSERT INTO "communes" VALUES('61','<NAME>','30',409,373,12.92,'-1594','53857',138,229);
INSERT INTO "communes" VALUES('61','Verrières','26',400,383,17.75,'-1749','53768',119,214);
INSERT INTO "communes" VALUES('61','Comblot','23',74,68,4.31,'-1936','53847',139,177);
INSERT INTO "communes" VALUES('61','Cerisé','38',732,776,4.42,'-2454','53823',130,147);
INSERT INTO "communes" VALUES('61','Ceton','32',1898,1915,59.39,'-1763','53585',89,271);
INSERT INTO "communes" VALUES('61','Camembert','36',200,197,10.3,'-2399','54326',111,237);
INSERT INTO "communes" VALUES('61','Bellavilliers','28',163,172,15.73,'-2043','53804',159,222);
INSERT INTO "communes" VALUES('61','Ménil-Gondouin','29',168,178,9.17,'-2922','54172',157,254);
INSERT INTO "communes" VALUES('61','Bellou-sur-Huisne','30',429,453,15.11,'-1756','53806',120,226);
INSERT INTO "communes" VALUES('61','Sainte-Marguerite-de-Carrouges','08',217,213,8.69,'-2767','53983',200,291);
INSERT INTO "communes" VALUES('61','Champeaux','36',136,117,9.65,'-2449','54326',142,267);
INSERT INTO "communes" VALUES('61','Messei','22',1964,1937,13.21,'-3193','54124',195,254);
INSERT INTO "communes" VALUES('61','La Chapelle-au-Moine','40',582,633,5.32,'-3245','54120',214,306);
INSERT INTO "communes" VALUES('61','Fresnay-le-Samson','36',111,108,6.76,'-2363','54315',117,256);
INSERT INTO "communes" VALUES('61','Saint-Brice','10',168,173,4.58,'-3309','53954',120,271);
INSERT INTO "communes" VALUES('61','Saint-Aubin-des-Grois','26',64,58,3.98,'-1881','53728',130,197);
INSERT INTO "communes" VALUES('61','Ticheville','36',224,224,9.93,'-2302','54343',128,235);
INSERT INTO "communes" VALUES('61','Batilly','11',167,150,8.99,'-2801','54134',141,234);
INSERT INTO "communes" VALUES('61','Roiville','36',135,121,8.18,'-2335','54311',118,245);
INSERT INTO "communes" VALUES('61','<NAME>','13',289,236,12.83,'-2072','54244',202,292);
INSERT INTO "communes" VALUES('61','Saint-Pierre-la-Rivière','12',170,171,9.37,'-2385','54252',135,263);
INSERT INTO "communes" VALUES('61','Lignerolles','34',167,140,5.28,'-1948','53990',215,311);
INSERT INTO "communes" VALUES('61','Ménil-Jean','29',128,82,7.04,'-2845','54155',128,241);
INSERT INTO "communes" VALUES('61','<NAME>','40',1795,1757,6.6,'-3261','54181',177,232);
INSERT INTO "communes" VALUES('61','Authieux-du-Puits','21',69,72,4.43,'-2230','54125',214,302);
INSERT INTO "communes" VALUES('61','Joué-du-Plain','11',260,203,14.56,'-2733','54100',149,243);
INSERT INTO "communes" VALUES('61','Briouze','07',1587,1620,17.15,'-3004','54110',197,254);
INSERT INTO "communes" VALUES('61','Randonnai','34',826,815,11.22,'-1846','54056',219,292);
INSERT INTO "communes" VALUES('61','Genettes','25',176,128,6.54,'-1965','54072',219,283);
INSERT INTO "communes" VALUES('61','Moulins-la-Marche','25',775,774,13.14,'-2067','54055',174,295);
INSERT INTO "communes" VALUES('61','Longny-au-Perche','19',1540,1590,39.13,'-1761','53923',145,242);
INSERT INTO "communes" VALUES('61','Goulet','11',371,305,9.3,'-2699','54148',147,194);
INSERT INTO "communes" VALUES('61','Forges','38',226,249,5.01,'-2465','53887',152,193);
INSERT INTO "communes" VALUES('61','Valframbert','38',1551,1503,13.95,'-2476','53849',133,179);
INSERT INTO "communes" VALUES('61','Boissei-la-Lande','24',113,115,7.11,'-2527','54092',159,193);
INSERT INTO "communes" VALUES('61','Yvrandes','33',163,136,10.33,'-3430','54133',181,321);
INSERT INTO "communes" VALUES('61','Bresolettes','34',19,21,5.84,'-1901','54033',244,297);
INSERT INTO "communes" VALUES('61','Rânes','11',1081,965,34.18,'-2829','54045',196,317);
INSERT INTO "communes" VALUES('62','Marquion','35',956,1009,8.22,'833','55790',43,79);
INSERT INTO "communes" VALUES('62','Estrée-Wamin','08',172,184,5.2,'74','55858',82,147);
INSERT INTO "communes" VALUES('62','Campagne-lès-Guines','25',450,452,5.72,'-481','56489',21,160);
INSERT INTO "communes" VALUES('62','Boiry-Sainte-Rictrude','10',385,414,5.81,'465','55780',79,116);
INSERT INTO "communes" VALUES('62','Lières','63',374,278,3.24,'91','56171',41,93);
INSERT INTO "communes" VALUES('62','Lacres','44',242,161,8.23,'-650','56216',75,193);
INSERT INTO "communes" VALUES('62','Vimy','45',4345,4672,11.33,'527','55970',49,146);
INSERT INTO "communes" VALUES('62','Éterpigny','46',232,167,3.49,'715','55842',41,67);
INSERT INTO "communes" VALUES('62','Hesdin','26',2272,2684,0.93,'-333','55971',23,34);
INSERT INTO "communes" VALUES('62','Royon','24',121,103,7.49,'-382','56081',54,160);
INSERT INTO "communes" VALUES('62','Hendecourt-lès-Cagnicourt','46',326,286,8.86,'680','55789',61,92);
INSERT INTO "communes" VALUES('62','Denier','08',65,58,3.1,'119','55876',98,146);
INSERT INTO "communes" VALUES('62','Berlencourt-le-Cauroy','08',300,265,7.48,'99','55868',87,151);
INSERT INTO "communes" VALUES('62','Fresnes-lès-Montauban','46',489,499,4.95,'661','55926',41,63);
INSERT INTO "communes" VALUES('62','Contes','26',316,335,7.15,'-418','56010',15,113);
INSERT INTO "communes" VALUES('62','Marant','18',72,86,3.88,'-546','56074',10,96);
INSERT INTO "communes" VALUES('62','Moringhem','41',495,384,9.98,'-232','56404',37,166);
INSERT INTO "communes" VALUES('62','Wail','39',276,266,9.15,'-232','55942',34,137);
INSERT INTO "communes" VALUES('62','Ablainzevelle','20',200,173,4.32,'439','55725',116,144);
INSERT INTO "communes" VALUES('62','Vaulx-Vraucourt','20',1069,1112,14.11,'636','55718',83,122);
INSERT INTO "communes" VALUES('62','Favreuil','09',251,243,4.93,'578','55694',98,124);
INSERT INTO "communes" VALUES('62','Nœux-lès-Auxi','07',173,204,6.26,'-180','55817',42,140);
INSERT INTO "communes" VALUES('62','Souastre','40',359,324,7.24,'253','55725',119,165);
INSERT INTO "communes" VALUES('62','Épinoy','35',531,498,8.08,'918','55811',45,79);
INSERT INTO "communes" VALUES('62','Oblinghem','12',219,225,1.27,'291','56166',19,25);
INSERT INTO "communes" VALUES('62','Duisans','71',1177,1088,10.72,'387','55898',56,107);
INSERT INTO "communes" VALUES('62','Rocquigny','11',287,275,3.73,'658','55622',113,137);
INSERT INTO "communes" VALUES('62','Souchez','45',2523,2174,6.75,'451','55990',62,157);
INSERT INTO "communes" VALUES('62','Gommecourt','40',114,126,3.35,'343','55711',124,155);
INSERT INTO "communes" VALUES('62','Guinecourt','43',19,16,2.24,'-123','55943',87,131);
INSERT INTO "communes" VALUES('62','Vélu','11',123,136,3.14,'707','55674',96,124);
INSERT INTO "communes" VALUES('62','Anvin','27',789,741,7.83,'-90','56052',51,150);
INSERT INTO "communes" VALUES('62','Wierre-Effroy','36',788,750,18.91,'-665','56420',14,96);
INSERT INTO "communes" VALUES('62','Roussent','18',203,151,5.04,'-624','55965',2,73);
INSERT INTO "communes" VALUES('62','Gonnehem','33',2372,2141,15.31,'264','56180',17,44);
INSERT INTO "communes" VALUES('62','Bouvelinghem','34',245,143,6.28,'-338','56371',98,196);
INSERT INTO "communes" VALUES('62','Buire-le-Sec','18',793,788,13.36,'-561','55982',38,93);
INSERT INTO "communes" VALUES('62','Nielles-lès-Ardres','02',519,445,4.48,'-356','56491',1,29);
INSERT INTO "communes" VALUES('62','Marquise','36',5174,4580,13.46,'-704','56461',1,67);
INSERT INTO "communes" VALUES('62','Famechon','40',119,139,4.61,'146','55714',72,152);
INSERT INTO "communes" VALUES('62','Carency','45',710,673,8.6,'409','55976',79,152);
INSERT INTO "communes" VALUES('62','Attaques','16',1979,1820,20.81,'-447','56564',0,6);
INSERT INTO "communes" VALUES('62','Beaurainville','18',1950,1991,13.09,'-487','56028',9,102);
INSERT INTO "communes" VALUES('62','Haucourt','46',257,240,6.06,'685','55831',48,86);
INSERT INTO "communes" VALUES('62','Beaumerie-Saint-Martin','37',376,318,9.37,'-598','56062',3,73);
INSERT INTO "communes" VALUES('62','Saint-Martin-sur-Cojeul','20',210,199,3.41,'562','55813',61,108);
INSERT INTO "communes" VALUES('62','Aix-en-Issart','18',274,210,10.1,'-531','56085',15,125);
INSERT INTO "communes" VALUES('62','Douchy-lès-Ayette','20',314,311,5.5,'423','55751',92,147);
INSERT INTO "communes" VALUES('62','Divion','72',7129,7152,10.96,'183','56080',37,138);
INSERT INTO "communes" VALUES('62','Hamelincourt','20',261,249,6.64,'514','55760',78,117);
INSERT INTO "communes" VALUES('62','Croix-en-Ternois','43',308,255,6.62,'-61','55981',99,151);
INSERT INTO "communes" VALUES('62','Helfaut','62',1688,1690,8.92,'-104','56331',23,95);
INSERT INTO "communes" VALUES('62','Airon-Saint-Vaast','69',200,231,5.92,'-744','56035',4,52);
INSERT INTO "communes" VALUES('62','Bienvillers-au-Bois','40',613,618,7.39,'313','55748',140,167);
INSERT INTO "communes" VALUES('62','Willerval','45',651,653,4.05,'564','55952',58,78);
INSERT INTO "communes" VALUES('62','Acquin-Westbécourt','34',684,625,14.29,'-275','56364',60,178);
INSERT INTO "communes" VALUES('62','Marquay','43',168,163,3.47,'95','55979',110,160);
INSERT INTO "communes" VALUES('62','Wierre-au-Bois','44',218,242,3.83,'-638','56272',28,91);
INSERT INTO "communes" VALUES('62','Sains-lès-Pernes','27',272,209,4.2,'22','56086',111,186);
INSERT INTO "communes" VALUES('62','Widehem','22',267,249,7.2,'-738','56206',64,178);
INSERT INTO "communes" VALUES('62','Neuville-Saint-Vaast','45',1449,1401,12.59,'468','55951',81,144);
INSERT INTO "communes" VALUES('62','Bonnières','07',648,606,23.76,'-85','55827',54,154);
INSERT INTO "communes" VALUES('62','Saint-Venant','33',3120,3208,14.24,'231','56247',15,19);
INSERT INTO "communes" VALUES('62','Auchy-les-Mines','17',4467,4458,5.1,'497','56125',23,37);
INSERT INTO "communes" VALUES('62','Ledinghem','34',313,207,8.68,'-383','56282',100,202);
INSERT INTO "communes" VALUES('62','Essars','70',1628,1732,3.72,'364','56163',18,23);
INSERT INTO "communes" VALUES('62','Herlin-le-Sec','43',176,151,3.86,'-8','55950',127,151);
INSERT INTO "communes" VALUES('62','Affringues','34',217,202,2.81,'-293','56321',52,158);
INSERT INTO "communes" VALUES('62','Lespesses','63',417,400,3.09,'97','56181',33,84);
INSERT INTO "communes" VALUES('62','Sailly-sur-la-Lys','30',4090,3978,9.7,'482','56286',13,19);
INSERT INTO "communes" VALUES('62','Thélus','45',1218,1022,8.99,'516','55950',88,143);
INSERT INTO "communes" VALUES('62','Pont-à-Vendin','55',3109,2895,2.01,'613','56082',21,41);
INSERT INTO "communes" VALUES('62','Wismes','34',522,525,11.93,'-295','56282',73,191);
INSERT INTO "communes" VALUES('62','Grenay','32',6715,6416,3.22,'452','56058',48,80);
INSERT INTO "communes" VALUES('62','Bécourt','29',276,238,6.03,'-473','56264',144,202);
INSERT INTO "communes" VALUES('62','Bergueneuse','27',211,241,2.78,'-93','56076',64,132);
INSERT INTO "communes" VALUES('62','Vis-en-Artois','46',652,541,6.42,'670','55830',46,88);
INSERT INTO "communes" VALUES('62','Labeuvrière','53',1697,1707,6.11,'252','56133',23,75);
INSERT INTO "communes" VALUES('62','Lottinghen','21',529,464,10.11,'-449','56316',68,211);
INSERT INTO "communes" VALUES('62','Canlers','24',187,175,3.62,'-212','56092',117,142);
INSERT INTO "communes" VALUES('62','Conteville-en-Ternois','27',87,69,2.29,'-14','56036',85,156);
INSERT INTO "communes" VALUES('62','Saint-Denœux','18',137,116,4.03,'-479','56080',37,123);
INSERT INTO "communes" VALUES('62','Witternesse','38',577,534,5.47,'26','56235',18,62);
INSERT INTO "communes" VALUES('62','Méricourt','90',11956,11713,7.53,'588','56003',31,63);
INSERT INTO "communes" VALUES('62','Balinghem','02',1126,828,5.79,'-438','56512',2,37);
INSERT INTO "communes" VALUES('62','Corbehem','46',2221,2319,2.6,'792','55929',28,36);
INSERT INTO "communes" VALUES('62','Airon-Notre-Dame','69',197,183,5.05,'-753','56041',3,49);
INSERT INTO "communes" VALUES('62','Lattre-Saint-Quentin','08',240,193,7.63,'271','55876',87,132);
INSERT INTO "communes" VALUES('62','Vitry-en-Artois','46',4446,4595,18.78,'718','55918',41,72);
INSERT INTO "communes" VALUES('62','Sombrin','08',239,235,6.61,'183','55822',135,172);
INSERT INTO "communes" VALUES('62','Parenty','29',485,396,12.92,'-586','56209',50,194);
INSERT INTO "communes" VALUES('62','Quéant','35',625,544,9.02,'719','55755',62,102);
INSERT INTO "communes" VALUES('62','Gauchin-Verloingt','43',883,827,5.92,'-27','55994',75,141);
INSERT INTO "communes" VALUES('62','Graincourt-lès-Havrincourt','35',637,620,11.57,'859','55716',61,101);
INSERT INTO "communes" VALUES('62','Sempy','18',297,176,8,'-509','56104',29,130);
INSERT INTO "communes" VALUES('62','Nédonchel','27',241,211,3.89,'24','56138',82,182);
INSERT INTO "communes" VALUES('62','Couturelle','08',100,87,2.1,'182','55787',130,171);
INSERT INTO "communes" VALUES('62','Neuville-Bourjonval','11',170,194,3.15,'761','55632',114,131);
INSERT INTO "communes" VALUES('62','Bouquehault','25',702,567,8.04,'-481','56474',44,181);
INSERT INTO "communes" VALUES('62','Bus','11',127,105,3.24,'698','55628',113,132);
INSERT INTO "communes" VALUES('62','Zouafques','02',571,415,3.93,'-312','56462',15,72);
INSERT INTO "communes" VALUES('62','Bernieulles','22',192,207,5.74,'-625','56172',41,120);
INSERT INTO "communes" VALUES('62','Saulty','08',719,625,12.75,'215','55792',140,178);
INSERT INTO "communes" VALUES('62','Tramecourt','39',56,66,2.22,'-206','56071',110,142);
INSERT INTO "communes" VALUES('62','Ruyaulcourt','11',279,295,6.4,'752','55648',90,132);
INSERT INTO "communes" VALUES('62','Azincourt','39',307,276,8.46,'-232','56070',100,142);
INSERT INTO "communes" VALUES('62','Questrecques','44',338,354,5.84,'-654','56293',16,94);
INSERT INTO "communes" VALUES('62','Beugin','28',446,413,5.06,'201','56047',55,147);
INSERT INTO "communes" VALUES('62','Léchelle','11',61,60,3.75,'708','55619',94,132);
INSERT INTO "communes" VALUES('62','Fleury','27',132,90,2.75,'-91','56025',86,131);
INSERT INTO "communes" VALUES('62','Riencourt-lès-Cagnicourt','46',283,279,4.73,'690','55777',75,102);
INSERT INTO "communes" VALUES('62','Maisoncelle','39',121,106,4.3,'-215','56054',87,131);
INSERT INTO "communes" VALUES('62','Hallines','34',1291,1397,5.72,'-141','56343',22,123);
INSERT INTO "communes" VALUES('62','Marenla','18',216,222,10.04,'-523','56051',6,96);
INSERT INTO "communes" VALUES('62','Anzin-Saint-Aubin','71',2697,2472,5.13,'453','55905',56,94);
INSERT INTO "communes" VALUES('62','Ecques','01',2004,1781,12.59,'-56','56300',25,80);
INSERT INTO "communes" VALUES('62','Bullecourt','20',247,251,6.43,'657','55769',74,104);
INSERT INTO "communes" VALUES('62','Bouret-sur-Canche','07',240,207,4.87,'-14','55854',68,147);
INSERT INTO "communes" VALUES('62','Pommier','40',240,188,5.82,'292','55760',143,172);
INSERT INTO "communes" VALUES('62','Hesdin-l''Abbé','44',1887,1995,7.39,'-728','56299',7,130);
INSERT INTO "communes" VALUES('62','Leubringhen','36',329,257,7.98,'-683','56509',48,163);
INSERT INTO "communes" VALUES('62','Saint-Étienne-au-Mont','44',5070,5006,14.05,'-789','56313',3,113);
INSERT INTO "communes" VALUES('62','Cagnicourt','46',425,386,9.42,'734','55791',54,94);
INSERT INTO "communes" VALUES('62','Leulinghen-Bernes','36',413,398,6.9,'-687','56478',8,100);
INSERT INTO "communes" VALUES('62','Ergny','29',223,175,9.29,'-395','56204',101,166);
INSERT INTO "communes" VALUES('62','Serques','41',1149,1033,10.43,'-151','56438',0,72);
INSERT INTO "communes" VALUES('62','Biefvillers-lès-Bapaume','09',110,82,4.04,'541','55684',102,128);
INSERT INTO "communes" VALUES('62','Meurchin','68',3758,3632,4.64,'615','56108',17,45);
INSERT INTO "communes" VALUES('62','<NAME>','10',159,127,5.4,'247','55787',142,178);
INSERT INTO "communes" VALUES('62','Bajus','05',321,273,2.94,'159','56024',87,158);
INSERT INTO "communes" VALUES('62','Achiet-le-Petit','09',339,328,7.25,'461','55693',97,139);
INSERT INTO "communes" VALUES('62','Acq','71',552,502,4.86,'356','55942',77,145);
INSERT INTO "communes" VALUES('62','Boisjean','18',489,437,12.74,'-632','56007',17,82);
INSERT INTO "communes" VALUES('62','Campagne-lès-Boulonnais','29',615,452,13.28,'-377','56236',113,179);
INSERT INTO "communes" VALUES('62','Aubin-Saint-Vaast','26',748,756,6.7,'-403','55995',17,119);
INSERT INTO "communes" VALUES('62','Enquin-sur-Baillons','29',236,173,4.98,'-555','56192',46,151);
INSERT INTO "communes" VALUES('62','Frévillers','05',244,253,5.07,'207','55996',141,187);
INSERT INTO "communes" VALUES('62','Campigneulles-les-Grandes','37',315,255,5.34,'-692','56040',23,62);
INSERT INTO "communes" VALUES('62','Preures','29',562,448,15.87,'-510','56191',61,167);
INSERT INTO "communes" VALUES('62','Rebergues','02',243,156,4.74,'-420','56397',60,196);
INSERT INTO "communes" VALUES('62','Rumaucourt','35',702,725,5.51,'803','55825',35,60);
INSERT INTO "communes" VALUES('62','Zoteux','29',520,390,7.34,'-507','56234',130,172);
INSERT INTO "communes" VALUES('62','Nordausques','02',957,633,5.94,'-283','56464',12,98);
INSERT INTO "communes" VALUES('62','Cambrin','17',973,957,1.77,'451','56124',19,31);
INSERT INTO "communes" VALUES('62','Sibiville','43',96,109,7.35,'-14','55887',89,151);
INSERT INTO "communes" VALUES('62','Calonne-sur-la-Lys','33',1609,1508,11,'311','56248',13,19);
INSERT INTO "communes" VALUES('62','Hulluch','68',3088,2969,5.74,'533','56095',21,51);
INSERT INTO "communes" VALUES('62','Febvin-Palfart','23',533,496,14.51,'-24','56154',87,196);
INSERT INTO "communes" VALUES('62','Houvin-Houvigneul','08',238,201,8.66,'53','55887',108,148);
INSERT INTO "communes" VALUES('62','Matringhem','24',187,174,4.47,'-190','56161',75,186);
INSERT INTO "communes" VALUES('62','Frémicourt','09',286,285,5.63,'628','55679',98,127);
INSERT INTO "communes" VALUES('62','Fruges','24',2586,2424,18.9,'-225','56127',84,171);
INSERT INTO "communes" VALUES('62','Bourthes','29',728,544,22.33,'-448','56229',112,183);
INSERT INTO "communes" VALUES('62','Vieil-Hesdin','39',373,364,9.82,'-264','55953',31,125);
INSERT INTO "communes" VALUES('62','Béhagnies','09',126,127,3.06,'548','55712',93,122);
INSERT INTO "communes" VALUES('62','Cormont','22',299,250,9.71,'-668','56180',30,119);
INSERT INTO "communes" VALUES('62','Beaumetz-lès-Loges','10',965,909,4.98,'355','55825',94,142);
INSERT INTO "communes" VALUES('62','Douriez','18',307,298,8.84,'-510','55925',7,102);
INSERT INTO "communes" VALUES('62','Saint-Omer-Capelle','06',1125,839,10.69,'-262','56599',1,5);
INSERT INTO "communes" VALUES('62','Oignies','59',9877,10530,5.52,'730','56077',23,33);
INSERT INTO "communes" VALUES('62','Gaudiempré','40',181,187,6.26,'215','55753',114,169);
INSERT INTO "communes" VALUES('62','Verchin','24',228,220,10.68,'-169','56105',88,171);
INSERT INTO "communes" VALUES('62','Reclinghem','23',188,144,6.05,'-178','56192',54,176);
INSERT INTO "communes" VALUES('62','Avondance','24',44,32,2.19,'-265','56085',100,144);
INSERT INTO "communes" VALUES('62','Verquigneul','70',2028,0,3.54,'362','56116',19,37);
INSERT INTO "communes" VALUES('62','Hézecques','24',115,100,4.93,'-174','56146',78,186);
INSERT INTO "communes" VALUES('62','Audruicq','06',4892,4566,14.44,'-284','56532',3,22);
INSERT INTO "communes" VALUES('62','Warlus','10',366,377,5.43,'369','55861',83,122);
INSERT INTO "communes" VALUES('62','Cuinchy','17',1758,1667,4.15,'458','56133',19,35);
INSERT INTO "communes" VALUES('62','Nuncq-Hautecôte','43',402,402,6.64,'-53','55895',100,149);
INSERT INTO "communes" VALUES('62','Boisdinghem','34',231,191,3.13,'-269','56388',104,167);
INSERT INTO "communes" VALUES('62','Sainte-Austreberthe','26',410,410,3.71,'-324','55961',26,130);
INSERT INTO "communes" VALUES('62','Herbelles','01',491,458,4.55,'-127','56284',55,110);
INSERT INTO "communes" VALUES('62','Gouy-en-Ternois','05',172,150,5.65,'84','55911',111,160);
INSERT INTO "communes" VALUES('62','Maninghen-Henne','36',328,298,3.99,'-742','56409',9,115);
INSERT INTO "communes" VALUES('62','Sars-le-Bois','08',66,66,2.39,'102','55883',95,141);
INSERT INTO "communes" VALUES('62','Rinxent','36',2748,2797,8.38,'-665','56450',7,90);
INSERT INTO "communes" VALUES('62','Héninel','20',204,195,5.32,'586','55820',58,108);
INSERT INTO "communes" VALUES('62','Marck','54',9589,8983,31.55,'-429','56609',0,14);
INSERT INTO "communes" VALUES('62','Achiet-le-Grand','09',1068,1015,5.08,'495','55701',104,136);
INSERT INTO "communes" VALUES('62','Liévin','91',31873,33463,12.83,'490','56025',32,80);
INSERT INTO "communes" VALUES('62','Fontaine-lès-Croisilles','20',280,256,6.26,'636','55799',57,98);
INSERT INTO "communes" VALUES('62','Quiéry-la-Motte','45',740,776,8.93,'713','55962',26,64);
INSERT INTO "communes" VALUES('62','Rebreuviette','08',271,242,8.42,'27','55847',77,150);
INSERT INTO "communes" VALUES('62','Hermaville','05',538,455,6.32,'278','55914',85,142);
INSERT INTO "communes" VALUES('62','Martinpuich','09',197,209,5.96,'476','55611',110,158);
INSERT INTO "communes" VALUES('62','Beauvois','43',139,124,2.68,'-114','55972',100,139);
INSERT INTO "communes" VALUES('62','Clerques','02',266,213,6.39,'-380','56437',37,173);
INSERT INTO "communes" VALUES('62','Selles','21',323,286,6.35,'-490','56333',47,96);
INSERT INTO "communes" VALUES('62','Adinfer','10',237,212,6.19,'413','55771',100,149);
INSERT INTO "communes" VALUES('62','Ligny-lès-Aire','38',622,504,8.04,'11','56174',52,132);
INSERT INTO "communes" VALUES('62','<NAME>','07',223,213,4.68,'-291','55841',22,116);
INSERT INTO "communes" VALUES('62','Ecquedecques','63',486,408,2.63,'124','56179',26,75);
INSERT INTO "communes" VALUES('62','Amplier','40',318,248,8.71,'70','55708',61,148);
INSERT INTO "communes" VALUES('62','Séricourt','43',54,60,2.45,'-24','55883',79,145);
INSERT INTO "communes" VALUES('62','Attin','22',695,682,6.7,'-654','56096',2,77);
INSERT INTO "communes" VALUES('62','Auchel','63',11031,11393,6,'152','56120',68,157);
INSERT INTO "communes" VALUES('62','Izel-lès-Équerchin','45',929,780,9.91,'682','55957',31,69);
INSERT INTO "communes" VALUES('62','Héricourt','43',106,98,4.95,'-92','55939',99,147);
INSERT INTO "communes" VALUES('62','Hesmond','18',179,159,8.27,'-434','56061',27,127);
INSERT INTO "communes" VALUES('62','Mont-Saint-Éloi','71',1005,1018,15.85,'396','55946',67,145);
INSERT INTO "communes" VALUES('62','Boiry-Saint-Martin','10',289,281,3.5,'470','55777',79,122);
INSERT INTO "communes" VALUES('62','Bours','27',582,509,11.84,'82','56059',83,184);
INSERT INTO "communes" VALUES('62','Inchy-en-Artois','35',605,557,11.06,'795','55755',48,97);
INSERT INTO "communes" VALUES('62','Hénin-Beaumont','89',26278,25204,20.72,'682','56023',23,65);
INSERT INTO "communes" VALUES('62','Bailleulval','10',273,272,3.9,'331','55802',101,152);
INSERT INTO "communes" VALUES('62','Heuchin','27',566,535,8.16,'-74','56085',72,166);
INSERT INTO "communes" VALUES('62','Ligny-Thilloy','09',577,513,10.29,'543','55649',97,135);
INSERT INTO "communes" VALUES('62','Gavrelle','45',566,475,9.02,'611','55922',49,97);
INSERT INTO "communes" VALUES('62','Pas-en-Artois','40',810,937,10.88,'169','55728',80,158);
INSERT INTO "communes" VALUES('62','Saint-Tricat','15',668,615,7.35,'-562','56548',1,63);
INSERT INTO "communes" VALUES('62','Quilen','29',58,61,4.06,'-454','56144',86,192);
INSERT INTO "communes" VALUES('62','<NAME>','08',179,169,5.11,'34','55803',112,161);
INSERT INTO "communes" VALUES('62','Marles-sur-Canche','18',286,293,5.1,'-566','56065',5,79);
INSERT INTO "communes" VALUES('62','Bellonne','46',239,249,2.03,'785','55892',43,67);
INSERT INTO "communes" VALUES('62','<NAME>','05',460,361,4.06,'107','56014',135,166);
INSERT INTO "communes" VALUES('62','Wavrans-sur-Ternoise','43',219,201,4.81,'-41','56013',67,126);
INSERT INTO "communes" VALUES('62','Camblain-l''Abbé','05',646,653,5.61,'334','55970',103,161);
INSERT INTO "communes" VALUES('62','Hestrus','27',245,239,7.8,'-7','56053',85,167);
INSERT INTO "communes" VALUES('62','Agnez-lès-Duisans','10',675,649,7.3,'358','55898',67,111);
INSERT INTO "communes" VALUES('62','Brêmes','02',1296,1314,7.25,'-408','56506',3,76);
INSERT INTO "communes" VALUES('62','Puisieux','40',660,601,11.69,'398','55685',77,147);
INSERT INTO "communes" VALUES('62','Bailleulmont','10',257,253,5.41,'308','55795',106,158);
INSERT INTO "communes" VALUES('62','Andres','25',1515,1445,7.15,'-462','56519',1,34);
INSERT INTO "communes" VALUES('62','Galametz','39',180,157,4.27,'-220','55920',37,131);
INSERT INTO "communes" VALUES('62','Tilly-Capelle','27',158,159,6.31,'-153','56049',42,130);
INSERT INTO "communes" VALUES('62','Saudemont','46',439,375,5.55,'782','55827',39,75);
INSERT INTO "communes" VALUES('62','Bancourt','09',78,95,4.54,'613','55668',104,132);
INSERT INTO "communes" VALUES('62','Buneville','43',173,138,3.84,'24','55916',125,157);
INSERT INTO "communes" VALUES('62','Maisnil','43',255,244,5.14,'31','55940',123,156);
INSERT INTO "communes" VALUES('62','Couin','40',103,90,5.82,'216','55706',90,159);
INSERT INTO "communes" VALUES('62','Guînes','25',5644,5222,26.42,'-514','56520',0,166);
INSERT INTO "communes" VALUES('62','Sains-lès-Marquion','35',338,300,6.26,'818','55771',46,88);
INSERT INTO "communes" VALUES('62','Autingues','02',298,255,2.97,'-398','56487',4,45);
INSERT INTO "communes" VALUES('62','Berles-Monchel','05',476,440,8.33,'224','55938',97,132);
INSERT INTO "communes" VALUES('62','Rely','38',457,369,4.83,'29','56191',55,103);
INSERT INTO "communes" VALUES('62','Beussent','29',511,409,15.93,'-605','56163',26,151);
INSERT INTO "communes" VALUES('62','Ferfay','63',942,880,3.89,'98','56132',65,112);
INSERT INTO "communes" VALUES('62','Guarbecque','33',1402,1268,5.46,'170','56234',16,22);
INSERT INTO "communes" VALUES('62','Eps','27',257,182,6.87,'-45','56061',59,155);
INSERT INTO "communes" VALUES('62','Gouy-Saint-André','18',638,610,13.34,'-487','55971',30,117);
INSERT INTO "communes" VALUES('62','Hersin-Coupigny','77',6225,6495,12.02,'346','56051',46,186);
INSERT INTO "communes" VALUES('62','Wambercourt','26',251,198,6.06,'-348','56032',35,118);
INSERT INTO "communes" VALUES('62','Bailleul-aux-Cornailles','05',265,232,6.82,'120','55968',116,158);
INSERT INTO "communes" VALUES('62','Pittefaux','13',118,126,2.42,'-725','56397',13,102);
INSERT INTO "communes" VALUES('62','Dury','46',336,295,5.31,'746','55830',52,77);
INSERT INTO "communes" VALUES('62','Maninghem','29',147,137,3.93,'-441','56159',150,197);
INSERT INTO "communes" VALUES('62','Bazinghen','36',423,343,13.2,'-749','56473',3,122);
INSERT INTO "communes" VALUES('62','Bouvigny-Boyeffles','77',2470,2438,9.07,'373','56024',68,192);
INSERT INTO "communes" VALUES('62','Saint-Omer','99',14506,15756,16.4,'-84','56387',0,27);
INSERT INTO "communes" VALUES('62','Bouin-Plumoison','26',456,514,6.22,'-384','55979',17,128);
INSERT INTO "communes" VALUES('62','Samer','44',3633,3104,16.78,'-657','56267',12,199);
INSERT INTO "communes" VALUES('62','Enguinegatte','23',456,366,8.92,'-73','56231',51,132);
INSERT INTO "communes" VALUES('62','Senlecques','21',252,199,2.01,'-446','56274',170,206);
INSERT INTO "communes" VALUES('62','Waben','69',432,327,8.99,'-760','55977',3,51);
INSERT INTO "communes" VALUES('62','Gouy-Servins','77',322,297,3.32,'348','56004',124,171);
INSERT INTO "communes" VALUES('62','Auchy-lès-Hesdin','39',1698,1759,9.61,'-260','55997',30,122);
INSERT INTO "communes" VALUES('62','Lespinoy','18',218,232,3.96,'-512','56032',7,87);
INSERT INTO "communes" VALUES('62','Harnes','55',12373,13697,10.76,'633','56050',20,44);
INSERT INTO "communes" VALUES('62','Frévin-Capelle','05',392,435,3.59,'331','55945',81,131);
INSERT INTO "communes" VALUES('62','Rang-du-Fliers','69',4057,3608,10.47,'-774','56020',3,48);
INSERT INTO "communes" VALUES('62','Siracourt','43',248,230,3.14,'-73','55970',124,154);
INSERT INTO "communes" VALUES('62','Annay','49',4267,4717,4.33,'606','56071',21,44);
INSERT INTO "communes" VALUES('62','Drouvin-le-Marais','64',540,405,2.12,'325','56104',34,58);
INSERT INTO "communes" VALUES('62','Wissant','36',1056,1187,12.79,'-749','56539',0,158);
INSERT INTO "communes" VALUES('62','Mondicourt','40',636,676,5.06,'141','55749',105,169);
INSERT INTO "communes" VALUES('62','Maizières','05',168,177,6.86,'124','55915',123,153);
INSERT INTO "communes" VALUES('62','Louches','02',930,733,12.83,'-367','56478',8,166);
INSERT INTO "communes" VALUES('62','Fontaine-lès-Boulans','27',87,90,5.62,'-69','56109',100,181);
INSERT INTO "communes" VALUES('62','Capelle-lès-Hesdin','26',463,407,5.56,'-377','55935',65,131);
INSERT INTO "communes" VALUES('62','Biache-Saint-Vaast','46',3907,3914,9.29,'675','55902',42,70);
INSERT INTO "communes" VALUES('62','Saint-Martin-au-Laërt','41',3729,3921,4.94,'-112','56395',1,46);
INSERT INTO "communes" VALUES('62','Beaudricourt','08',99,92,4.58,'80','55831',104,159);
INSERT INTO "communes" VALUES('62','Campigneulles-les-Petites','37',584,517,6.19,'-670','56051',15,67);
INSERT INTO "communes" VALUES('62','Guigny','26',165,140,3.6,'-375','55922',32,110);
INSERT INTO "communes" VALUES('62','Coullemont','08',106,105,4.04,'153','55795',110,170);
INSERT INTO "communes" VALUES('62','Muncq-Nieurlet','02',679,454,11.44,'-246','56498',1,97);
INSERT INTO "communes" VALUES('62','Sorrus','37',645,472,6.79,'-682','56066',21,62);
INSERT INTO "communes" VALUES('62','Inghem','01',356,299,3.19,'-103','56297',42,95);
INSERT INTO "communes" VALUES('62','Aubrometz','07',142,133,2.72,'-174','55894',45,120);
INSERT INTO "communes" VALUES('62','Bonningues-lès-Ardres','02',683,509,10.6,'-358','56437',34,184);
INSERT INTO "communes" VALUES('62','Mencas','24',74,81,2.02,'-220','56177',62,108);
INSERT INTO "communes" VALUES('62','Pihem','34',990,895,7.13,'-137','56315',70,134);
INSERT INTO "communes" VALUES('62','Lefaux','22',264,242,8.25,'-752','56159',23,152);
INSERT INTO "communes" VALUES('62','Tubersent','22',503,472,6.9,'-702','56133',2,105);
INSERT INTO "communes" VALUES('62','Courcelles-le-Comte','20',443,422,7.94,'487','55736',99,137);
INSERT INTO "communes" VALUES('62','Coulomby','34',666,404,10.26,'-362','56340',98,211);
INSERT INTO "communes" VALUES('62','Haut-Loquin','34',160,133,5.47,'-410','56378',78,210);
INSERT INTO "communes" VALUES('62','Vincly','24',164,120,4.6,'-184','56176',68,184);
INSERT INTO "communes" VALUES('62','Gouves','10',189,198,2.64,'332','55887',72,124);
INSERT INTO "communes" VALUES('62','Hannescamps','40',189,149,3.17,'337','55741',130,158);
INSERT INTO "communes" VALUES('62','Audembert','36',415,356,7.5,'-716','56512',13,162);
INSERT INTO "communes" VALUES('62','Hébuterne','40',534,465,11.04,'332','55695',114,156);
INSERT INTO "communes" VALUES('62','Senlis','24',178,168,4.9,'-206','56149',77,167);
INSERT INTO "communes" VALUES('62','<NAME>','09',162,172,5.11,'493','55634',96,133);
INSERT INTO "communes" VALUES('62','Mory','20',338,339,7.39,'573','55729',87,121);
INSERT INTO "communes" VALUES('62','Wingles','68',8255,8696,5.93,'577','56105',14,36);
INSERT INTO "communes" VALUES('62','Beaumetz-lès-Aire','23',224,241,4.43,'-122','56157',145,188);
INSERT INTO "communes" VALUES('62','Haisnes','73',4482,4359,5.58,'517','56120',22,47);
INSERT INTO "communes" VALUES('62','Journy','02',273,230,3.35,'-380','56392',69,184);
INSERT INTO "communes" VALUES('62','Mametz','01',2022,1715,9.53,'-12','56260',21,98);
INSERT INTO "communes" VALUES('62','Escœuilles','34',449,398,5.91,'-456','56362',93,211);
INSERT INTO "communes" VALUES('62','Équirre','27',53,71,4.19,'-111','56081',79,155);
INSERT INTO "communes" VALUES('62','Sanghen','25',274,223,6.17,'-482','56418',74,196);
INSERT INTO "communes" VALUES('62','Rouvroy','67',8778,9068,6.42,'630','55993',36,57);
INSERT INTO "communes" VALUES('62','Saint-Inglevert','36',726,539,6.6,'-660','56528',85,163);
INSERT INTO "communes" VALUES('62','Éperlecques','02',3225,2887,25.56,'-205','56451',0,97);
INSERT INTO "communes" VALUES('62','Camiers','22',2780,2237,16.13,'-803','56185',2,176);
INSERT INTO "communes" VALUES('62','Foufflin-Ricametz','43',122,135,3,'55','55944',123,156);
INSERT INTO "communes" VALUES('62','Bayenghem-lès-Seninghem','34',331,304,3.33,'-289','56334',50,170);
INSERT INTO "communes" VALUES('62','Lozinghem','63',1225,1031,2.15,'182','56131',38,99);
INSERT INTO "communes" VALUES('62','Racquinghem','01',2312,2332,5.32,'24','56326',20,68);
INSERT INTO "communes" VALUES('62','Cucq','37',5167,4912,13.16,'-798','56086',3,45);
INSERT INTO "communes" VALUES('62','Wisques','34',242,235,3.74,'-160','56360',59,127);
INSERT INTO "communes" VALUES('62','Merlimont','37',3089,2602,21.49,'-803','56062',3,41);
INSERT INTO "communes" VALUES('62','Saint-Léonard','44',3581,3950,3.4,'-791','56323',2,110);
INSERT INTO "communes" VALUES('62','Planques','24',109,99,6.18,'-283','56069',72,144);
INSERT INTO "communes" VALUES('62','Nédon','27',163,140,4.89,'37','56139',85,187);
INSERT INTO "communes" VALUES('62','Hénu','40',163,152,4.38,'209','55727',104,162);
INSERT INTO "communes" VALUES('62','Locon','70',2317,2234,9.52,'367','56189',17,20);
INSERT INTO "communes" VALUES('62','Fillièvres','39',527,499,20.43,'-195','55910',40,139);
INSERT INTO "communes" VALUES('62','Saint-Martin-Choquel','21',468,397,6.18,'-507','56302',75,204);
INSERT INTO "communes" VALUES('62','Arras','96',41611,40535,11.63,'493','55877',52,99);
INSERT INTO "communes" VALUES('62','Brunembert','21',377,282,6.11,'-492','56349',47,180);
INSERT INTO "communes" VALUES('62','Fouquereuil','53',1234,1024,2.01,'294','56132',24,53);
INSERT INTO "communes" VALUES('62','Burbure','63',2983,2852,5.53,'145','56154',33,98);
INSERT INTO "communes" VALUES('62','Berles-au-Bois','10',512,484,8.9,'325','55774',105,159);
INSERT INTO "communes" VALUES('62','Thièvres','40',121,132,1.26,'130','55698',70,136);
INSERT INTO "communes" VALUES('62','Ternas','43',134,118,2.51,'68','55936',137,160);
INSERT INTO "communes" VALUES('62','Recques-sur-Hem','02',565,504,5.41,'-275','56483',3,46);
INSERT INTO "communes" VALUES('62','Fresnicourt-le-Dolmen','28',835,880,7.95,'292','56020',77,186);
INSERT INTO "communes" VALUES('62','Brias','43',308,235,7.74,'50','56010',122,166);
INSERT INTO "communes" VALUES('62','Gomiécourt','20',155,169,3.62,'515','55723',94,122);
INSERT INTO "communes" VALUES('62','Wacquinghen','36',232,236,2.47,'-745','56425',32,96);
INSERT INTO "communes" VALUES('62','Delettes','34',1136,915,14.69,'-137','56242',36,138);
INSERT INTO "communes" VALUES('62','Enquin-les-Mines','23',1078,917,11.1,'-57','56208',49,118);
INSERT INTO "communes" VALUES('62','Mingoval','05',206,207,3.79,'264','55972',109,157);
INSERT INTO "communes" VALUES('62','Trescault','11',194,188,4.67,'840','55656',70,127);
INSERT INTO "communes" VALUES('62','Beaumetz-lès-Cambrai','11',584,541,9.91,'719','55691',79,123);
INSERT INTO "communes" VALUES('62','Rumilly','29',257,253,7.04,'-357','56196',92,173);
INSERT INTO "communes" VALUES('62','Fleurbaix','30',2651,2479,12.86,'551','56280',16,20);
INSERT INTO "communes" VALUES('62','Crépy','24',149,170,6.91,'-149','56084',72,142);
INSERT INTO "communes" VALUES('62','Warlincourt-lès-Pas','40',153,153,5.19,'188','55749',105,171);
INSERT INTO "communes" VALUES('62','Beaulencourt','09',223,190,4.9,'602','55640',107,131);
INSERT INTO "communes" VALUES('62','Tortequesne','46',709,686,3.37,'780','55877',36,71);
INSERT INTO "communes" VALUES('62','Drocourt','67',2983,3106,3.4,'656','55990',39,68);
INSERT INTO "communes" VALUES('62','Norrent-Fontes','38',1436,1445,5.7,'78','56209',19,63);
INSERT INTO "communes" VALUES('62','Rebreuve-Ranchicourt','28',1095,1060,10.73,'243','56041',58,185);
INSERT INTO "communes" VALUES('62','Ruitz','64',1532,1588,4.96,'281','56075',43,111);
INSERT INTO "communes" VALUES('62','Arleux-en-Gohelle','45',825,708,6.27,'594','55959',50,75);
INSERT INTO "communes" VALUES('62','Metz-en-Couture','11',642,601,10.73,'808','55631',90,134);
INSERT INTO "communes" VALUES('62','Bertincourt','11',936,886,7.58,'715','55651',92,133);
INSERT INTO "communes" VALUES('62','Wittes','01',874,687,3.92,'61','56300',17,41);
INSERT INTO "communes" VALUES('62','Fampoux','04',1119,1069,8.64,'595','55891',45,102);
INSERT INTO "communes" VALUES('62','Ames','63',621,518,3.51,'88','56158',52,99);
INSERT INTO "communes" VALUES('62','Guemps','06',967,884,15.89,'-379','56572',1,5);
INSERT INTO "communes" VALUES('62','Humerœuille','43',145,143,3.23,'-137','56005',84,131);
INSERT INTO "communes" VALUES('62','Caffiers','25',719,623,4.77,'-583','56489',59,138);
INSERT INTO "communes" VALUES('62','Camblain-Châtelain','28',1690,1578,10.04,'141','56091',51,177);
INSERT INTO "communes" VALUES('62','Audrehem','02',484,357,9.19,'-385','56424',42,171);
INSERT INTO "communes" VALUES('62','Saint-Folquin','06',2214,2061,17.95,'-238','56607',0,10);
INSERT INTO "communes" VALUES('62','Tatinghem','42',1775,1723,5.6,'-143','56382',24,88);
INSERT INTO "communes" VALUES('62','Ramecourt','43',311,341,8.09,'-26','55967',85,146);
INSERT INTO "communes" VALUES('62','Boubers-sur-Canche','07',605,605,9.23,'-111','55878',52,142);
INSERT INTO "communes" VALUES('62','Chériennes','26',154,182,4.65,'-334','55904',55,133);
INSERT INTO "communes" VALUES('62','Desvres','21',5179,5201,9.42,'-558','56298',42,208);
INSERT INTO "communes" VALUES('62','Écoust-Saint-Mein','20',501,428,8.43,'637','55758',84,117);
INSERT INTO "communes" VALUES('62','Hénin-sur-Cojeul','20',493,373,6.81,'553','55805',63,106);
INSERT INTO "communes" VALUES('62','Pierremont','43',266,252,6.14,'-84','56001',98,155);
INSERT INTO "communes" VALUES('62','Oye-Plage','06',5427,5891,33.86,'-325','56642',0,14);
INSERT INTO "communes" VALUES('62','Brimeux','18',787,688,10.68,'-558','56050',6,84);
INSERT INTO "communes" VALUES('62','Saint-Martin-d''Hardinghem','23',303,304,6.68,'-268','56227',67,163);
INSERT INTO "communes" VALUES('62','Merck-Saint-Liévin','23',591,505,11.85,'-247','56252',56,172);
INSERT INTO "communes" VALUES('62','Hinges','70',2217,2001,8.31,'318','56184',16,47);
INSERT INTO "communes" VALUES('62','Berneville','10',441,488,5.63,'372','55851',76,122);
INSERT INTO "communes" VALUES('62','Verquin','53',3318,3249,3.7,'337','56114',25,52);
INSERT INTO "communes" VALUES('62','Villers-Sir-Simon','05',127,121,2.47,'173','55908',119,136);
INSERT INTO "communes" VALUES('62','Hocquinghen','25',109,100,1.94,'-443','56410',63,115);
INSERT INTO "communes" VALUES('62','Cléty','34',672,513,6.13,'-172','56280',70,123);
INSERT INTO "communes" VALUES('62','Mont-Bernanchon','33',1394,1171,11.4,'281','56204',16,37);
INSERT INTO "communes" VALUES('62','Sangatte','15',4673,4047,14.28,'-644','56608',0,151);
INSERT INTO "communes" VALUES('62','Sallaumines','31',9956,10681,3.82,'584','56022',27,54);
INSERT INTO "communes" VALUES('62','Saint-Georges','39',308,266,9.69,'-280','55954',27,134);
INSERT INTO "communes" VALUES('62','Noyelles-sous-Lens','75',6896,7361,3.72,'596','56034',23,43);
INSERT INTO "communes" VALUES('62','Morchies','11',177,189,6.64,'687','55709',85,117);
INSERT INTO "communes" VALUES('62','Maresquel-Ecquemicourt','18',887,847,7.89,'-455','56012',13,104);
INSERT INTO "communes" VALUES('62','Hucqueliers','29',519,506,7.62,'-478','56188',92,172);
INSERT INTO "communes" VALUES('62','Vermelles','17',4445,4483,10.39,'455','56098',23,50);
INSERT INTO "communes" VALUES('62','Huclier','27',117,77,3.32,'22','56034',122,163);
INSERT INTO "communes" VALUES('62','Nœux-les-Mines','57',12206,11961,8.84,'365','56089',23,76);
INSERT INTO "communes" VALUES('62','Boisleux-Saint-Marc','20',225,201,3.38,'514','55791',69,99);
INSERT INTO "communes" VALUES('62','Oppy','45',363,375,4.84,'616','55942',49,72);
INSERT INTO "communes" VALUES('62','Givenchy-en-Gohelle','45',2057,2051,5.95,'484','55992',48,148);
INSERT INTO "communes" VALUES('62','Hautecloque','43',220,186,6.84,'-25','55928',108,152);
INSERT INTO "communes" VALUES('62','Alette','29',356,249,13.87,'-565','56131',26,162);
INSERT INTO "communes" VALUES('62','Izel-lès-Hameau','05',695,669,8.51,'217','55905',103,148);
INSERT INTO "communes" VALUES('62','Hubersent','22',251,225,7.97,'-677','56202',59,132);
INSERT INTO "communes" VALUES('62','Fiefs','27',399,329,10.97,'-11','56115',110,196);
INSERT INTO "communes" VALUES('62','Montenescourt','10',438,409,5.08,'320','55881',76,127);
INSERT INTO "communes" VALUES('62','Prédefin','27',197,186,3.82,'-91','56115',135,178);
INSERT INTO "communes" VALUES('62','Montigny-en-Gohelle','74',10047,10554,3.5,'659','56031',23,42);
INSERT INTO "communes" VALUES('62','Guémappe','20',361,394,4.52,'614','55838',52,92);
INSERT INTO "communes" VALUES('62','Licques','25',1562,1437,18.36,'-444','56428',52,176);
INSERT INTO "communes" VALUES('62','Hauteville','08',317,248,4.06,'263','55858',95,137);
INSERT INTO "communes" VALUES('62','Marles-les-Mines','72',5744,6089,4.55,'184','56114',37,99);
INSERT INTO "communes" VALUES('62','Fresnoy-en-Gohelle','45',253,199,2.98,'615','55962',42,70);
INSERT INTO "communes" VALUES('62','Condette','44',2575,2678,16.26,'-781','56283',6,106);
INSERT INTO "communes" VALUES('62','Cambligneul','05',324,322,4.69,'310','55978',112,162);
INSERT INTO "communes" VALUES('62','Coulogne','16',5686,5781,9.16,'-502','56582',0,7);
INSERT INTO "communes" VALUES('62','Érin','27',197,152,6.36,'-141','56043',46,123);
INSERT INTO "communes" VALUES('62','Saint-Floris','33',523,413,4.05,'259','56252',14,18);
INSERT INTO "communes" VALUES('62','Tilloy-lès-Hermaville','05',236,178,2.87,'245','55919',99,138);
INSERT INTO "communes" VALUES('62','Annezin','12',5683,5553,6.1,'313','56148',18,53);
INSERT INTO "communes" VALUES('62','Quœux-Haut-Maînil','07',251,262,12.01,'-251','55890',77,139);
INSERT INTO "communes" VALUES('62','Fresnoy','39',74,67,2.4,'-230','55964',65,119);
INSERT INTO "communes" VALUES('62','Bavincourt','08',368,347,7.54,'257','55806',125,177);
INSERT INTO "communes" VALUES('62','Créquy','24',489,562,20.4,'-322','56104',75,190);
INSERT INTO "communes" VALUES('62','Menneville','21',711,627,5.27,'-528','56305',65,206);
INSERT INTO "communes" VALUES('62','Surques','34',501,365,6.85,'-467','56378',69,199);
INSERT INTO "communes" VALUES('62','La Comté','05',827,784,6.63,'182','56030',70,193);
INSERT INTO "communes" VALUES('62','Vieille-Église','06',1359,1136,21.12,'-289','56587',1,5);
INSERT INTO "communes" VALUES('62','Sachin','27',303,244,5.9,'44','56097',95,188);
INSERT INTO "communes" VALUES('62','Rebecques','01',446,397,4.84,'-34','56273',24,74);
INSERT INTO "communes" VALUES('62','Tardinghen','36',154,127,8.72,'-785','56518',1,96);
INSERT INTO "communes" VALUES('62','Laires','23',346,297,8.64,'-90','56156',140,190);
INSERT INTO "communes" VALUES('62','Tilques','41',1107,945,7.29,'-147','56419',1,72);
INSERT INTO "communes" VALUES('62','Villers-lès-Cagnicourt','46',255,212,4.4,'748','55803',47,79);
INSERT INTO "communes" VALUES('62','Avroult','23',546,508,4.78,'-210','56259',104,161);
INSERT INTO "communes" VALUES('62','<NAME>','21',202,180,0.93,'-594','56388',42,70);
INSERT INTO "communes" VALUES('62','Quiestède','01',661,665,2.83,'-21','56310',23,60);
INSERT INTO "communes" VALUES('62','Brévillers','26',150,107,3.03,'-356','55941',60,130);
INSERT INTO "communes" VALUES('62','Heuringhem','01',1311,1286,5.79,'-60','56328',25,84);
INSERT INTO "communes" VALUES('62','Rodelinghem','02',543,393,4.35,'-453','56487',14,81);
INSERT INTO "communes" VALUES('62','Neuville-sous-Montreuil','37',663,740,8.82,'-623','56083',2,100);
INSERT INTO "communes" VALUES('62','Beuvry','57',8817,9174,16.85,'381','56133',18,42);
INSERT INTO "communes" VALUES('62','Saulchoy','18',304,292,5.29,'-541','55944',7,102);
INSERT INTO "communes" VALUES('62','Givenchy-lès-la-Bassée','73',919,813,3.89,'468','56143',19,31);
INSERT INTO "communes" VALUES('62','Auchy-au-Bois','38',464,415,4.27,'38','56172',61,110);
INSERT INTO "communes" VALUES('62','Hermelinghen','25',347,289,6.43,'-529','56447',95,185);
INSERT INTO "communes" VALUES('62','Cherisy','20',290,212,6.29,'639','55816',52,98);
INSERT INTO "communes" VALUES('62','Dainville','71',5569,5380,11.22,'434','55869',64,107);
INSERT INTO "communes" VALUES('62','Alincthun','21',339,341,9.88,'-595','56368',33,120);
INSERT INTO "communes" VALUES('62','Monchy-au-Bois','10',504,483,10.98,'356','55756',118,161);
INSERT INTO "communes" VALUES('62','Nielles-lès-Bléquin','34',875,793,12.72,'-338','56305',67,203);
INSERT INTO "communes" VALUES('62','Amettes','63',502,474,6.82,'62','56145',62,121);
INSERT INTO "communes" VALUES('62','Loison-sous-Lens','49',5299,5572,3.55,'573','56043',24,48);
INSERT INTO "communes" VALUES('62','Fauquembergues','23',978,857,7.13,'-265','56223',72,186);
INSERT INTO "communes" VALUES('62','Audresselles','36',710,681,5.72,'-825','56471',0,114);
INSERT INTO "communes" VALUES('62','Ham-en-Artois','38',1001,989,3.2,'135','56210',19,33);
INSERT INTO "communes" VALUES('62','Linzeux','43',165,148,4.71,'-146','55935',63,121);
INSERT INTO "communes" VALUES('62','Peuplingues','15',697,589,10.43,'-633','56572',11,137);
INSERT INTO "communes" VALUES('62','Valhuon','27',576,475,9.17,'45','56038',118,167);
INSERT INTO "communes" VALUES('62','Bourecq','38',571,517,4.02,'110','56190',22,49);
INSERT INTO "communes" VALUES('62','Hardinghen','25',1122,1006,8.24,'-572','56444',48,176);
INSERT INTO "communes" VALUES('62','Richebourg','17',2418,2476,17.31,'448','56199',16,20);
INSERT INTO "communes" VALUES('62','Arques','62',9991,9331,22.41,'-38','56373',2,62);
INSERT INTO "communes" VALUES('62','Neuville-au-Cornet','43',83,66,2.28,'35','55929',139,152);
INSERT INTO "communes" VALUES('62','Huby-Saint-Leu','26',937,967,12.44,'-333','55980',21,118);
INSERT INTO "communes" VALUES('62','Wamin','39',251,263,7.2,'-306','56015',54,122);
INSERT INTO "communes" VALUES('62','Pelves','46',709,717,6.6,'642','55879',42,99);
INSERT INTO "communes" VALUES('62','Vendin-lès-Béthune','12',2371,2526,3.63,'300','56158',21,45);
INSERT INTO "communes" VALUES('62','Boyelles','20',275,234,4.25,'532','55781',70,107);
INSERT INTO "communes" VALUES('62','Calais','98',73636,77317,33.5,'-534','56608',0,18);
INSERT INTO "communes" VALUES('62','Embry','24',243,203,11.69,'-410','56103',55,177);
INSERT INTO "communes" VALUES('62','Carly','44',568,525,6.31,'-705','56280',11,110);
INSERT INTO "communes" VALUES('62','Ambricourt','24',131,102,3.39,'-177','56078',93,138);
INSERT INTO "communes" VALUES('62','Sus-Saint-Léger','08',350,292,7.31,'104','55819',118,167);
INSERT INTO "communes" VALUES('62','Averdoingt','05',268,251,8.33,'117','55938',123,156);
INSERT INTO "communes" VALUES('62','Ambrines','05',226,169,4.68,'147','55901',107,139);
INSERT INTO "communes" VALUES('62','Thiembronne','23',747,621,22.82,'-310','56245',76,201);
INSERT INTO "communes" VALUES('62','Gennes-Ivergny','07',124,140,10.98,'-322','55848',22,132);
INSERT INTO "communes" VALUES('62','Dohem','34',777,703,9.16,'-167','56265',60,151);
INSERT INTO "communes" VALUES('62','Beutin','22',493,373,3,'-678','56101',4,67);
INSERT INTO "communes" VALUES('62','Estrée-Blanche','38',943,927,5.32,'-17','56215',37,99);
INSERT INTO "communes" VALUES('62','Blessy','38',854,631,5.39,'-5','56239',21,98);
INSERT INTO "communes" VALUES('62','Labroye','26',179,172,8.15,'-386','55865',12,117);
INSERT INTO "communes" VALUES('62','Busnes','33',1261,1295,9.55,'202','56209',17,20);
INSERT INTO "communes" VALUES('62','Bayenghem-lès-Éperlecques','02',922,686,4.51,'-236','56452',12,92);
INSERT INTO "communes" VALUES('62','Tincques','05',875,811,10.68,'173','55953',107,148);
INSERT INTO "communes" VALUES('62','Wimereux','65',7442,7486,7.71,'-807','56411',0,71);
INSERT INTO "communes" VALUES('62','Robecq','33',1282,1062,10.56,'252','56218',16,20);
INSERT INTO "communes" VALUES('62','Boulogne-sur-Mer','97',43070,44865,8.42,'-803','56362',0,110);
INSERT INTO "communes" VALUES('62','Blairville','10',298,296,4.6,'420','55800',91,130);
INSERT INTO "communes" VALUES('62','Étaples','22',11279,11177,12.95,'-773','56131',2,78);
INSERT INTO "communes" VALUES('62','Acheville','45',608,457,3.04,'607','55982',51,71);
INSERT INTO "communes" VALUES('62','Libercourt','19',8580,8852,6.6,'753','56093',21,41);
INSERT INTO "communes" VALUES('62','Étaing','46',448,367,5.1,'737','55860',37,74);
INSERT INTO "communes" VALUES('62','Pernes','27',1629,1627,4.58,'82','56094',70,182);
INSERT INTO "communes" VALUES('62','Ransart','10',384,374,7.45,'388','55788',92,141);
INSERT INTO "communes" VALUES('62','Fortel-en-Artois','07',219,155,5.89,'-122','55842',83,144);
INSERT INTO "communes" VALUES('62','Marconnelle','26',1208,1313,5.55,'-356','55971',22,133);
INSERT INTO "communes" VALUES('62','Hendecourt-lès-Ransart','10',119,125,2.21,'439','55784',90,124);
INSERT INTO "communes" VALUES('62','Bermicourt','43',155,128,5.53,'-119','56010',95,142);
INSERT INTO "communes" VALUES('62','Quercamps','34',278,288,1.98,'-317','56391',143,184);
INSERT INTO "communes" VALUES('62','Troisvaux','43',295,296,6.18,'7','56002',85,157);
INSERT INTO "communes" VALUES('62','Oisy-le-Verger','35',1267,1261,11.36,'875','55834',32,77);
INSERT INTO "communes" VALUES('62','Ervillers','20',393,450,7.13,'541','55735',77,115);
INSERT INTO "communes" VALUES('62','Remy','46',284,265,3.59,'688','55837',42,71);
INSERT INTO "communes" VALUES('62','Vaulx','07',84,83,4.92,'-266','55853',35,131);
INSERT INTO "communes" VALUES('62','Boffles','07',47,34,3.27,'-149','55838',80,140);
INSERT INTO "communes" VALUES('62','Beauvoir-Wavans','07',389,396,9.49,'-194','55798',32,128);
INSERT INTO "communes" VALUES('62','Clenleu','29',183,183,7.26,'-518','56137',57,166);
INSERT INTO "communes" VALUES('62','Buissy','35',245,229,6.87,'783','55785',47,91);
INSERT INTO "communes" VALUES('62','Avesnes','29',36,46,3,'-405','56167',126,187);
INSERT INTO "communes" VALUES('62','Avesnes-le-Comte','08',2089,1982,9.38,'213','55863',99,154);
INSERT INTO "communes" VALUES('62','Montcavrel','22',376,332,9.56,'-585','56129',11,131);
INSERT INTO "communes" VALUES('62','Marest','27',262,242,3.16,'87','56075',75,178);
INSERT INTO "communes" VALUES('62','Frencq','22',777,705,19.81,'-709','56178',18,150);
INSERT INTO "communes" VALUES('62','Hesdigneul-lès-Béthune','64',810,771,2.59,'283','56113',32,61);
INSERT INTO "communes" VALUES('62','Blangy-sur-Ternoise','39',773,756,11.61,'-185','56024',37,129);
INSERT INTO "communes" VALUES('62','Lillers','33',10055,9768,26.9,'162','56182',18,88);
INSERT INTO "communes" VALUES('62','Inxent','22',165,158,3.78,'-615','56148',21,113);
INSERT INTO "communes" VALUES('62','Fontaine-l''Étalon','07',122,112,3.98,'-303','55895',54,132);
INSERT INTO "communes" VALUES('62','Maresville','22',83,73,2.46,'-671','56140',10,86);
INSERT INTO "communes" VALUES('62','Echinghen','14',376,351,5.84,'-765','56337',11,144);
INSERT INTO "communes" VALUES('62','Warluzel','08',249,250,4.02,'148','55808',126,171);
INSERT INTO "communes" VALUES('62','Béthune','92',25655,27781,9.46,'337','56144',19,38);
INSERT INTO "communes" VALUES('62','Verlincthun','44',381,314,7.02,'-731','56254',24,171);
INSERT INTO "communes" VALUES('62','Lignereuil','08',151,133,2.92,'149','55879',120,157);
INSERT INTO "communes" VALUES('62','Polincove','06',787,559,4.75,'-272','56501',1,21);
INSERT INTO "communes" VALUES('62','Alquines','34',865,751,10.51,'-383','56378',83,211);
INSERT INTO "communes" VALUES('62','Moyenneville','20',291,299,6.48,'491','55757',91,128);
INSERT INTO "communes" VALUES('62','Vacqueriette-Erquières','39',245,246,5.94,'-288','55916',70,142);
INSERT INTO "communes" VALUES('62','Frévent','07',3784,3941,15.23,'-54','55863',62,145);
INSERT INTO "communes" VALUES('62','Isbergues','38',9289,9830,14.37,'133','56248',16,44);
INSERT INTO "communes" VALUES('62','Herly','29',324,333,16.3,'-388','56163',110,199);
INSERT INTO "communes" VALUES('62','Bimont','29',128,117,6.81,'-481','56158',89,184);
INSERT INTO "communes" VALUES('62','Halloy','40',236,209,3.4,'99','55731',115,158);
INSERT INTO "communes" VALUES('62','Manin','08',185,178,4.07,'194','55886',113,152);
INSERT INTO "communes" VALUES('62','Avesnes-lès-Bapaume','09',133,164,3.09,'560','55672',102,132);
INSERT INTO "communes" VALUES('62','Le Touquet-Paris-Plage','37',4495,5315,15.31,'-835','56137',1,42);
INSERT INTO "communes" VALUES('62','Roëllecourt','43',608,595,9.42,'55','55964',95,150);
INSERT INTO "communes" VALUES('62','Nortkerque','06',1632,1583,13.19,'-346','56528',3,25);
INSERT INTO "communes" VALUES('62','Roclincourt','71',790,748,5.93,'500','55917',68,111);
INSERT INTO "communes" VALUES('62','Longvilliers','22',250,249,10.99,'-677','56160',19,120);
INSERT INTO "communes" VALUES('62','Saint-Pol-sur-Ternoise','43',5185,5227,8.24,'-2','55977',82,149);
INSERT INTO "communes" VALUES('62','Coupelle-Vieille','24',553,493,14.69,'-263','56138',103,186);
INSERT INTO "communes" VALUES('62','Longueville','21',129,117,3.49,'-507','56369',59,200);
INSERT INTO "communes" VALUES('62','Coquelles','15',2291,2370,8.77,'-597','56595',0,53);
INSERT INTO "communes" VALUES('62','Basseux','10',139,149,3.35,'342','55807',92,143);
INSERT INTO "communes" VALUES('62','Givenchy-le-Noble','08',138,146,2.52,'177','55891',120,147);
INSERT INTO "communes" VALUES('62','Monts-en-Ternois','43',53,70,3.53,'55','55913',123,150);
INSERT INTO "communes" VALUES('62','Offekerque','06',1107,939,13.37,'-353','56601',1,5);
INSERT INTO "communes" VALUES('62','Diéval','43',774,666,12,'125','56039',93,184);
INSERT INTO "communes" VALUES('62','Bucquoy','20',1490,1219,20.8,'413','55711',105,154);
INSERT INTO "communes" VALUES('62','<NAME>','37',176,156,2.46,'-653','56076',2,50);
INSERT INTO "communes" VALUES('62','Annequin','17',2366,2158,3.99,'432','56119',19,38);
INSERT INTO "communes" VALUES('62','Baincthun','14',1347,1206,26.69,'-729','56345',22,133);
INSERT INTO "communes" VALUES('62','Lebiez','24',256,208,9.57,'-395','56076',35,132);
INSERT INTO "communes" VALUES('62','Maisnil-lès-Ruitz','28',1494,1218,5.56,'276','56058',91,181);
INSERT INTO "communes" VALUES('62','Elnes','34',915,721,6.33,'-234','56323',40,144);
INSERT INTO "communes" VALUES('62','Pihen-lès-Guînes','25',483,394,9.25,'-611','56524',23,121);
INSERT INTO "communes" VALUES('62','Hames-Boucres','25',1431,1106,12.82,'-548','56535',0,86);
INSERT INTO "communes" VALUES('62','Ablain-Saint-Nazaire','45',1791,1847,9.85,'418','55991',77,188);
INSERT INTO "communes" VALUES('62','Gauchin-Légal','28',341,331,6.03,'273','56017',85,167);
INSERT INTO "communes" VALUES('62','Campagne-lès-Wardrecques','62',1139,947,4.69,'-3','56355',22,71);
INSERT INTO "communes" VALUES('62','Ruminghem','06',1577,1159,13.89,'-199','56511',1,64);
INSERT INTO "communes" VALUES('62','Courcelles-lès-Lens','56',6122,6113,5.56,'757','56020',20,45);
INSERT INTO "communes" VALUES('62','Blangerval-Blangermont','43',96,85,4.61,'-117','55915',72,132);
INSERT INTO "communes" VALUES('62','Monchiet','10',96,84,2.74,'324','55822',107,145);
INSERT INTO "communes" VALUES('62','Quesques','21',600,559,13.73,'-449','56337',67,211);
INSERT INTO "communes" VALUES('62','Tournehem-sur-la-Hem','02',1413,1219,18.14,'-320','56452',22,174);
INSERT INTO "communes" VALUES('62','Leforest','56',7139,6746,6.22,'808','56042',20,66);
INSERT INTO "communes" VALUES('62','Riencourt-lès-Bapaume','09',36,25,3.41,'606','55654',113,132);
INSERT INTO "communes" VALUES('62','Lorgies','30',1601,1177,6.84,'504','56187',19,26);
INSERT INTO "communes" VALUES('62','Marconne','26',1116,1233,4.18,'-317','55969',22,128);
INSERT INTO "communes" VALUES('62','Carvin','19',17152,17767,21.03,'691','56103',17,42);
INSERT INTO "communes" VALUES('62','Saint-Michel-sous-Bois','29',123,89,5.66,'-450','56127',68,190);
INSERT INTO "communes" VALUES('62','Labourse','57',2306,2029,4.67,'382','56110',18,44);
INSERT INTO "communes" VALUES('62','Cavron-Saint-Martin','26',485,402,11.86,'-377','56018',21,114);
INSERT INTO "communes" VALUES('62','Loos-en-Gohelle','50',6778,6982,12.7,'508','56064',31,74);
INSERT INTO "communes" VALUES('62','Sailly-au-Bois','40',284,266,9.28,'288','55690',113,156);
INSERT INTO "communes" VALUES('62','Cauchy-à-la-Tour','63',2973,2858,3.13,'128','56116',82,116);
INSERT INTO "communes" VALUES('62','Fouquières-lès-Béthune','53',1095,1132,2.42,'305','56128',23,49);
INSERT INTO "communes" VALUES('62','Bournonville','21',221,213,8.71,'-541','56339',36,125);
INSERT INTO "communes" VALUES('62','Colembert','21',767,687,9.92,'-550','56385',44,202);
INSERT INTO "communes" VALUES('62','Courset','21',479,396,10.24,'-550','56274',121,209);
INSERT INTO "communes" VALUES('62','Capelle-Fermont','05',194,127,2.96,'311','55947',82,122);
INSERT INTO "communes" VALUES('62','Framecourt','43',108,113,2.28,'-33','55921',128,150);
INSERT INTO "communes" VALUES('62','Billy-Berclau','73',4387,4262,7.41,'590','56132',17,27);
INSERT INTO "communes" VALUES('62','Willeman','39',177,155,10.17,'-198','55948',42,110);
INSERT INTO "communes" VALUES('62','Herbinghen','25',380,319,4.31,'-472','56414',76,199);
INSERT INTO "communes" VALUES('62','Brebières','46',4902,4423,10.8,'763','55930',25,48);
INSERT INTO "communes" VALUES('62','Moncheaux-lès-Frévent','43',136,112,3.92,'33','55905',128,153);
INSERT INTO "communes" VALUES('62','Aire-sur-la-Lys','01',9861,9655,33.38,'67','56265',16,48);
INSERT INTO "communes" VALUES('62','Tingry','44',326,301,11.36,'-674','56243',29,174);
INSERT INTO "communes" VALUES('62','<NAME>','76',9569,10716,3.85,'-848','56341',0,59);
INSERT INTO "communes" VALUES('62','Bréxent-Énocq','22',673,578,7.27,'-674','56123',3,91);
INSERT INTO "communes" VALUES('62','<NAME>','26',192,185,0.68,'-337','56008',100,116);
INSERT INTO "communes" VALUES('62','Sainte-Marie-Kerque','06',1520,1410,18.47,'-221','56555',2,5);
INSERT INTO "communes" VALUES('62','Loison-sur-Créquoise','18',242,236,9.07,'-460','56044',12,107);
INSERT INTO "communes" VALUES('62','Vieille-Chapelle','70',766,698,3.41,'410','56213',16,19);
INSERT INTO "communes" VALUES('62','Éclimeux','39',162,162,6.03,'-174','55998',82,126);
INSERT INTO "communes" VALUES('62','Nielles-lès-Calais','15',237,206,2.49,'-554','56564',2,59);
INSERT INTO "communes" VALUES('62','Farbus','45',538,532,3.49,'542','55952',61,139);
INSERT INTO "communes" VALUES('62','Doudeauville','44',506,401,13.74,'-564','56236',80,198);
INSERT INTO "communes" VALUES('62','Boiry-Notre-Dame','46',457,418,6.11,'675','55859',43,95);
INSERT INTO "communes" VALUES('62','Pernes-lès-Boulogne','13',473,424,7.76,'-704','56391',15,109);
INSERT INTO "communes" VALUES('62','Clarques','01',290,233,6.96,'-66','56274',29,97);
INSERT INTO "communes" VALUES('62','Humières','43',210,232,6.81,'-144','55987',83,133);
INSERT INTO "communes" VALUES('62','Bailleul-Sir-Berthoult','45',1257,1148,9.35,'571','55932',58,114);
INSERT INTO "communes" VALUES('62','Agnières','05',236,151,3.25,'297','55948',87,131);
INSERT INTO "communes" VALUES('62','Wancourt','20',658,587,8.9,'593','55831',56,101);
INSERT INTO "communes" VALUES('62','Rombly','38',40,42,1.15,'59','56221',26,56);
INSERT INTO "communes" VALUES('62','Hermies','11',1178,1129,13.05,'779','55680',77,127);
INSERT INTO "communes" VALUES('62','Villers-au-Bois','45',533,380,5.2,'372','55970',99,162);
INSERT INTO "communes" VALUES('62','Festubert','17',1306,1119,7.64,'445','56159',18,21);
INSERT INTO "communes" VALUES('62','Lestrem','30',4241,3790,21.15,'387','56247',13,20);
INSERT INTO "communes" VALUES('62','Esquerdes','34',1571,1465,9.4,'-166','56339',25,139);
INSERT INTO "communes" VALUES('62','Coupelle-Neuve','24',215,161,4.54,'-241','56111',113,157);
INSERT INTO "communes" VALUES('62','Agny','04',1958,1954,6.05,'470','55845',65,98);
INSERT INTO "communes" VALUES('62','Tigny-Noyelle','69',154,197,6.76,'-701','55948',2,49);
INSERT INTO "communes" VALUES('62','Ardres','02',4223,4153,13.52,'-399','56505',2,17);
INSERT INTO "communes" VALUES('62','Barlin','64',7551,7925,6.18,'313','56061',51,131);
INSERT INTO "communes" VALUES('62','Gouy-en-Artois','10',344,375,10.11,'288','55830',97,153);
INSERT INTO "communes" VALUES('62','Coyecques','23',580,563,13.89,'-171','56226',43,173);
INSERT INTO "communes" VALUES('62','Bléquin','34',435,339,8.69,'-386','56293',98,208);
INSERT INTO "communes" VALUES('62','Offrethun','36',265,275,2.62,'-716','56427',16,95);
INSERT INTO "communes" VALUES('62','Neuville-Vitasse','04',495,503,6.98,'537','55830',65,101);
INSERT INTO "communes" VALUES('62','Sailly-Labourse','57',2128,2017,6.02,'397','56113',19,41);
INSERT INTO "communes" VALUES('62','Monchy-le-Preux','46',624,523,9.26,'619','55856',52,113);
INSERT INTO "communes" VALUES('62','Bully-les-Mines','51',12337,12039,7.66,'431','56047',38,92);
INSERT INTO "communes" VALUES('62','Haillicourt','64',4919,5007,4.46,'276','56085',39,93);
INSERT INTO "communes" VALUES('62','Bruay-la-Buissière','88',23408,23995,16.35,'235','56090',30,106);
INSERT INTO "communes" VALUES('62','Noyelles-lès-Vermelles','17',2243,1943,2.53,'432','56099',22,37);
INSERT INTO "communes" VALUES('62','Dourges','56',5619,5677,10.48,'722','56040',23,35);
INSERT INTO "communes" VALUES('62','Ferques','36',1851,1810,8.97,'-640','56477',39,120);
INSERT INTO "communes" VALUES('62','Grigny','39',299,327,2.14,'-300','55983',25,85);
INSERT INTO "communes" VALUES('62','Villers-l''Hôpital','07',270,266,8.4,'-137','55809',63,146);
INSERT INTO "communes" VALUES('62','Mouriez','26',253,241,15.72,'-435','55933',30,127);
INSERT INTO "communes" VALUES('62','Erny-Saint-Julien','23',328,289,5.41,'-91','56206',66,173);
INSERT INTO "communes" VALUES('62','Estevelles','55',1809,1686,2.54,'635','56084',21,46);
INSERT INTO "communes" VALUES('62','Sapignies','09',178,140,3.33,'554','55705',100,123);
INSERT INTO "communes" VALUES('62','Magnicourt-en-Comte','05',625,553,9.86,'172','56001',86,181);
INSERT INTO "communes" VALUES('62','Fréthun','15',1135,1090,7.92,'-568','56574',0,60);
INSERT INTO "communes" VALUES('62','Monchy-Cayeux','27',291,274,6.22,'-67','56042',60,138);
INSERT INTO "communes" VALUES('62','Laventie','30',4838,4382,18.13,'483','56253',15,20);
INSERT INTO "communes" VALUES('62','Recques-sur-Course','22',267,292,4.83,'-614','56134',14,103);
INSERT INTO "communes" VALUES('62','Clairmarais','41',626,689,18.02,'-41','56415',1,34);
INSERT INTO "communes" VALUES('62','Étrun','71',334,329,2.22,'405','55905',58,107);
INSERT INTO "communes" VALUES('62','Boursin','25',268,182,7.58,'-557','56418',46,196);
INSERT INTO "communes" VALUES('62','Torcy','24',159,142,5.27,'-349','56093',70,171);
INSERT INTO "communes" VALUES('62','Athies','03',1015,930,4.34,'555','55892',47,103);
INSERT INTO "communes" VALUES('62','Saint-Nicolas','03',4843,5657,3.19,'490','55892',52,102);
INSERT INTO "communes" VALUES('62','Grand-Rullecourt','08',397,334,10.71,'153','55838',129,172);
INSERT INTO "communes" VALUES('62','Habarcq','10',677,609,7.03,'305','55896',77,136);
INSERT INTO "communes" VALUES('62','Gosnay','64',1044,1194,2.21,'278','56120',25,61);
INSERT INTO "communes" VALUES('62','Audincthun','23',658,573,15.26,'-221','56206',64,183);
INSERT INTO "communes" VALUES('62','Saint-Léger','20',406,393,7.47,'579','55763',69,117);
INSERT INTO "communes" VALUES('62','Palluel','35',566,541,2.77,'847','55853',34,60);
INSERT INTO "communes" VALUES('62','Moulle','41',1004,908,5.39,'-176','56432',0,72);
INSERT INTO "communes" VALUES('62','Servins','77',1050,882,6.36,'335','56010',135,183);
INSERT INTO "communes" VALUES('62','Wailly-Beaucamp','37',992,781,14.33,'-678','56015',18,68);
INSERT INTO "communes" VALUES('62','Noyelle-Vion','08',253,260,5.36,'237','55879',91,148);
INSERT INTO "communes" VALUES('62','Beugnâtre','09',138,123,3.97,'599','55700',98,117);
INSERT INTO "communes" VALUES('62','Le Quesnoy-en-Artois','39',361,332,7.92,'-320','55927',59,135);
INSERT INTO "communes" VALUES('62','Angres','60',3999,4470,4.82,'469','56010',49,106);
INSERT INTO "communes" VALUES('62','Incourt','39',67,92,1.82,'-205','55990',65,115);
INSERT INTO "communes" VALUES('62','<NAME>','10',208,178,2.2,'273','55779',135,168);
INSERT INTO "communes" VALUES('62','Willencourt','07',145,136,2.45,'-275','55823',25,97);
INSERT INTO "communes" VALUES('62','Bihucourt','09',370,305,4.67,'515','55696',102,131);
INSERT INTO "communes" VALUES('62','Mercatel','10',615,572,5.76,'510','55817',71,99);
INSERT INTO "communes" VALUES('62','Évin-Malmaison','56',4544,4729,4.57,'774','56043',21,31);
INSERT INTO "communes" VALUES('62','Fressin','24',541,565,17.17,'-313','56052',43,144);
INSERT INTO "communes" VALUES('62','Buire-au-Bois','07',214,211,11.81,'-205','55847',49,142);
INSERT INTO "communes" VALUES('62','Penin','05',429,356,9.14,'164','55919',108,151);
INSERT INTO "communes" VALUES('62','Ruisseauville','24',167,121,3.89,'-236','56089',122,145);
INSERT INTO "communes" VALUES('62','<NAME>','39',794,702,9.27,'-263','55977',27,113);
INSERT INTO "communes" VALUES('62','Boiry-Becquerelle','20',408,421,4.54,'532','55793',66,98);
INSERT INTO "communes" VALUES('62','Landrethun-lès-Ardres','02',697,601,5.71,'-419','56472',34,171);
INSERT INTO "communes" VALUES('62','Remilly-Wirquin','34',337,316,5.23,'-188','56298',47,135);
INSERT INTO "communes" VALUES('62','Canteleux','07',17,17,3.4,'-32','55795',95,156);
INSERT INTO "communes" VALUES('62','Noyelles-sous-Bellonne','46',810,568,4.21,'767','55898',31,71);
INSERT INTO "communes" VALUES('62','Rollancourt','39',349,300,11.59,'-238','56009',30,116);
INSERT INTO "communes" VALUES('62','Teneur','27',285,278,6.85,'-131','56057',48,134);
INSERT INTO "communes" VALUES('62','Pommera','40',313,245,4.42,'114','55748',130,167);
INSERT INTO "communes" VALUES('62','Bailleul-lès-Pernes','27',383,306,3.49,'57','56121',103,188);
INSERT INTO "communes" VALUES('62','Liencourt','08',276,219,3.36,'129','55858',118,149);
INSERT INTO "communes" VALUES('62','Saint-Hilaire-Cottes','38',841,734,7.24,'86','56190',24,102);
INSERT INTO "communes" VALUES('62','Barastre','11',251,234,7.64,'662','55641',113,133);
INSERT INTO "communes" VALUES('62','Béthonsart','05',170,131,4.21,'238','55973',119,157);
INSERT INTO "communes" VALUES('62','Caumont','26',184,206,9.44,'-340','55876',25,130);
INSERT INTO "communes" VALUES('62','Liettres','38',293,239,3.07,'6','56217',32,91);
INSERT INTO "communes" VALUES('62','Villers-au-Flos','09',219,196,5.8,'630','55646',113,133);
INSERT INTO "communes" VALUES('62','Magnicourt-sur-Canche','08',109,99,4.57,'83','55892',100,144);
INSERT INTO "communes" VALUES('62','Tilloy-lès-Mofflaines','04',1394,1329,7.69,'533','55863',54,102);
INSERT INTO "communes" VALUES('62','Sauchy-Cauchy','35',391,411,4.08,'846','55817',36,65);
INSERT INTO "communes" VALUES('62','Warlencourt-Eaucourt','09',162,107,3.71,'504','55647',92,128);
INSERT INTO "communes" VALUES('62','Bourlon','35',1213,1242,12.3,'867','55753',53,127);
INSERT INTO "communes" VALUES('62','Fiennes','25',886,812,11.64,'-568','56474',71,166);
INSERT INTO "communes" VALUES('62','Barly','08',227,268,6.15,'234','55833',107,161);
INSERT INTO "communes" VALUES('62','Salperwick','41',504,486,4,'-116','56414',1,71);
INSERT INTO "communes" VALUES('62','Aix-en-Ergny','29',176,104,4.83,'-377','56203',97,167);
INSERT INTO "communes" VALUES('62','Noreuil','20',137,114,4.79,'664','55745',72,110);
INSERT INTO "communes" VALUES('62','Croisette','43',315,308,7.64,'-84','55948',114,146);
INSERT INTO "communes" VALUES('62','Saint-Amand','40',144,164,5.45,'247','55739',130,168);
INSERT INTO "communes" VALUES('62','Hermin','28',207,199,4.19,'248','56021',89,165);
INSERT INTO "communes" VALUES('62','Lambres','38',1064,936,4.37,'67','56241',18,49);
INSERT INTO "communes" VALUES('62','Morval','09',94,91,2.39,'595','55590',108,152);
INSERT INTO "communes" VALUES('62','Avion','52',17271,18274,13.04,'551','56011',27,77);
INSERT INTO "communes" VALUES('62','Estréelles','22',350,269,3.18,'-614','56110',5,79);
INSERT INTO "communes" VALUES('62','Wizernes','42',3310,3443,6.16,'-119','56346',17,119);
INSERT INTO "communes" VALUES('62','Houlle','41',983,917,6.52,'-182','56440',0,96);
INSERT INTO "communes" VALUES('62','Bellebrune','21',339,246,5.32,'-625','56363',38,105);
INSERT INTO "communes" VALUES('62','Dannes','44',1291,1258,10.23,'-803','56210',4,160);
INSERT INTO "communes" VALUES('62','Ostreville','43',259,276,3.88,'64','55996',115,161);
INSERT INTO "communes" VALUES('62','Lugy','24',146,110,2.83,'-180','56138',81,168);
INSERT INTO "communes" VALUES('62','Outreau','61',14527,15217,7.09,'-825','56338',2,96);
INSERT INTO "communes" VALUES('62','Baralle','35',482,489,7.95,'802','55791',44,78);
INSERT INTO "communes" VALUES('62','Hesdigneul-lès-Boulogne','44',692,579,3.32,'-741','56288',8,67);
INSERT INTO "communes" VALUES('62','Rivière','10',1125,1124,11.9,'392','55814',75,131);
INSERT INTO "communes" VALUES('62','Humbert','29',240,254,7.85,'-477','56116',47,147);
INSERT INTO "communes" VALUES('62','Nabringhen','21',170,155,4.17,'-527','56383',65,202);
INSERT INTO "communes" VALUES('62','Lapugnoy','53',3288,3314,8.61,'226','56129',24,93);
INSERT INTO "communes" VALUES('62','Quelmes','34',561,448,9.86,'-222','56370',55,158);
INSERT INTO "communes" VALUES('62','Montreuil','37',2282,2425,2.85,'-637','56071',2,43);
INSERT INTO "communes" VALUES('62','Renty','23',575,439,15.67,'-293','56204',77,186);
INSERT INTO "communes" VALUES('62','Radinghem','24',288,221,4.93,'-242','56163',79,171);
INSERT INTO "communes" VALUES('62','Henneveux','21',306,251,5.49,'-539','56359',49,126);
INSERT INTO "communes" VALUES('62','Halinghen','44',310,278,5.53,'-716','56225',68,178);
INSERT INTO "communes" VALUES('62','Orville','40',394,326,11.95,'83','55704',64,148);
INSERT INTO "communes" VALUES('62','Lisbourg','27',569,587,17.77,'-133','56119',103,184);
INSERT INTO "communes" VALUES('62','<NAME>','14',1506,1547,6.5,'-700','56368',39,108);
INSERT INTO "communes" VALUES('62','Courrières','59',10602,10566,8.63,'679','56065',22,38);
INSERT INTO "communes" VALUES('62','Croisilles','20',1419,1166,11.58,'604','55777',64,114);
INSERT INTO "communes" VALUES('62','Boyaval','27',139,118,5.38,'-36','56083',80,172);
INSERT INTO "communes" VALUES('62','Boubers-lès-Hesmond','18',72,77,1.74,'-430','56084',46,132);
INSERT INTO "communes" VALUES('62','Houchin','64',708,686,4.5,'317','56092',37,76);
INSERT INTO "communes" VALUES('62','Noyelles-Godault','48',5141,5568,5.45,'730','56022',22,50);
INSERT INTO "communes" VALUES('62','Beugny','11',367,319,5.83,'664','55689',99,127);
INSERT INTO "communes" VALUES('62','Saint-Aubin','37',260,217,4.54,'-745','56063',3,61);
INSERT INTO "communes" VALUES('62','Lebucquière','11',252,230,4.75,'700','55681',101,127);
INSERT INTO "communes" VALUES('62','Tangry','27',233,227,4.84,'20','56073',128,168);
INSERT INTO "communes" VALUES('62','Ayette','20',320,336,5.15,'441','55749',97,139);
INSERT INTO "communes" VALUES('62','<NAME>','37',645,560,9.48,'-677','56084',2,58);
INSERT INTO "communes" VALUES('62','Mazinghem','38',444,337,5.19,'76','56226',19,57);
INSERT INTO "communes" VALUES('62','Fosseux','10',140,143,5.43,'252','55840',96,161);
INSERT INTO "communes" VALUES('62','Savy-Berlette','05',965,854,7.49,'254','55947',92,138);
INSERT INTO "communes" VALUES('62','Caucourt','28',325,277,5.51,'261','55999',94,157);
INSERT INTO "communes" VALUES('62','Saint-Laurent-Blangy','03',6059,5567,9.83,'518','55892',50,103);
INSERT INTO "communes" VALUES('62','Colline-Beaumont','69',133,118,4.6,'-728','55933',2,42);
INSERT INTO "communes" VALUES('62','Feuchy','04',1040,1167,5.45,'566','55882',46,102);
INSERT INTO "communes" VALUES('62','Verton','69',2269,2126,11.06,'-763','56002',2,53);
INSERT INTO "communes" VALUES('62','Sarton','40',176,164,6.6,'107','55690',67,131);
INSERT INTO "communes" VALUES('62','Neuvireuil','45',479,450,4.34,'638','55946',40,61);
INSERT INTO "communes" VALUES('62','Hamblain-les-Prés','46',490,484,4.87,'693','55881',41,73);
INSERT INTO "communes" VALUES('62','Écuires','37',782,831,9.15,'-639','56052',5,65);
INSERT INTO "communes" VALUES('62','Guisy','26',291,272,1.16,'-372','55988',20,80);
INSERT INTO "communes" VALUES('62','Conchy-sur-Canche','07',188,197,9.83,'-152','55891',47,137);
INSERT INTO "communes" VALUES('62','Wimille','13',4231,4720,22.24,'-782','56404',2,109);
INSERT INTO "communes" VALUES('62','Raye-sur-Authie','26',219,254,5.89,'-431','55887',12,101);
INSERT INTO "communes" VALUES('62','Audinghen','36',589,547,13.09,'-804','56502',0,123);
INSERT INTO "communes" VALUES('62','Grincourt-lès-Pas','40',42,39,2.79,'175','55743',100,166);
INSERT INTO "communes" VALUES('62','Wicquinghem','29',203,179,6.8,'-417','56195',106,175);
INSERT INTO "communes" VALUES('62','<NAME>','09',438,372,10.41,'619','55622',108,151);
INSERT INTO "communes" VALUES('62','Haute-Avesnes','10',411,384,3.97,'339','55921',89,131);
INSERT INTO "communes" VALUES('62','Nouvelle-Église','06',510,343,9.07,'-313','56584',1,5);
INSERT INTO "communes" VALUES('62','Regnauville','26',219,209,4.17,'-361','55904',32,125);
INSERT INTO "communes" VALUES('62','Tortefontaine','26',250,231,11.81,'-462','55913',11,98);
INSERT INTO "communes" VALUES('62','Tollent','07',91,77,4.31,'-358','55863',17,108);
INSERT INTO "communes" VALUES('62','Beuvrequen','36',398,392,4.75,'-745','56447',3,93);
INSERT INTO "communes" VALUES('62','Rety','36',2073,1923,18.25,'-624','56441',12,120);
INSERT INTO "communes" VALUES('62','Hervelinghen','36',233,182,5.89,'-694','56536',39,157);
INSERT INTO "communes" VALUES('62','Zutkerque','06',1713,1711,16.41,'-299','56504',3,55);
INSERT INTO "communes" VALUES('62','Zudausques','34',838,618,7.24,'-208','56388',34,126);
INSERT INTO "communes" VALUES('62','Aumerval','27',198,191,3.42,'71','56118',98,180);
INSERT INTO "communes" VALUES('62','Saint-Rémy-au-Bois','18',110,111,4.05,'-514','55963',15,102);
INSERT INTO "communes" VALUES('62','Campagne-lès-Hesdin','18',1765,1696,15.64,'-511','55997',29,94);
INSERT INTO "communes" VALUES('62','Offin','18',209,186,5.29,'-439','56050',21,109);
INSERT INTO "communes" VALUES('62','Estrée-Cauchy','28',370,321,3.89,'303','55998',118,171);
INSERT INTO "communes" VALUES('62','Crémarest','21',775,658,11.69,'-613','56333',24,108);
INSERT INTO "communes" VALUES('62','Nort-Leulinghem','02',203,179,3.45,'-271','56444',41,116);
INSERT INTO "communes" VALUES('62','Roquetoire','01',1872,1618,10.71,'6','56301',22,71);
INSERT INTO "communes" VALUES('62','Lagnicourt-Marcel','35',347,295,8.42,'688','55731',74,109);
INSERT INTO "communes" VALUES('62','Saint-Josse','37',1188,1051,21.1,'-746','56075',2,64);
INSERT INTO "communes" VALUES('62','Billy-Montigny','75',8163,8395,2.71,'639','56020',24,45);
INSERT INTO "communes" VALUES('62','Douvrin','73',4978,5440,9.58,'550','56122',19,32);
INSERT INTO "communes" VALUES('62','Rimboval','24',145,125,7.07,'-390','56120',87,197);
INSERT INTO "communes" VALUES('62','Nesles','44',962,1067,5.04,'-756','56253',21,177);
INSERT INTO "communes" VALUES('62','Flers','43',192,200,5.5,'-92','55912',78,143);
INSERT INTO "communes" VALUES('62','Sains-lès-Fressin','24',175,173,6.71,'-328','56075',93,154);
INSERT INTO "communes" VALUES('62','Vacquerie-le-Boucq','07',78,95,3.3,'-130','55855',100,141);
INSERT INTO "communes" VALUES('62','Saint-Michel-sur-Ternoise','43',935,942,5.97,'28','55973',87,147);
INSERT INTO "communes" VALUES('62','Éleu-dit-Leauwette','60',2887,3107,1.17,'527','56023',31,66);
INSERT INTO "communes" VALUES('62','Lépine','37',280,297,10.82,'-678','55975',3,59);
INSERT INTO "communes" VALUES('62','Gouy-sous-Bellonne','46',1224,1259,5.47,'799','55902',29,61);
INSERT INTO "communes" VALUES('62','Bois-Bernard','45',818,842,3.97,'639','55981',41,70);
INSERT INTO "communes" VALUES('62','Ligny-sur-Canche','07',196,205,7.17,'-87','55871',57,138);
INSERT INTO "communes" VALUES('62','Ouve-Wirquin','34',534,494,5.25,'-213','56279',52,137);
INSERT INTO "communes" VALUES('62','Sauchy-Lestrée','35',457,446,9.06,'852','55808',41,77);
INSERT INTO "communes" VALUES('62','Beaufort-Blavincourt','08',430,386,7.98,'180','55866',118,158);
INSERT INTO "communes" VALUES('62','Fouquières-lès-Lens','75',6538,6894,4.14,'640','56032',22,43);
INSERT INTO "communes" VALUES('62','Haravesnes','07',47,36,2.4,'-229','55875',62,139);
INSERT INTO "communes" VALUES('62','Haplincourt','11',188,210,5.11,'661','55656',103,128);
INSERT INTO "communes" VALUES('62','Auxi-le-Château','07',2898,3066,27.08,'-246','55812',25,138);
INSERT INTO "communes" VALUES('62','Mazingarbe','51',7496,7469,10.29,'424','56081',26,74);
INSERT INTO "communes" VALUES('62','Villers-Châtel','05',119,125,3.17,'279','55974',111,159);
INSERT INTO "communes" VALUES('62','Pronville','35',323,272,6.09,'740','55749',58,98);
INSERT INTO "communes" VALUES('62','Humbercamps','40',232,251,3.58,'264','55761',148,172);
INSERT INTO "communes" VALUES('62','Ytres','11',436,393,4.26,'729','55628',94,133);
INSERT INTO "communes" VALUES('62','Villers-Brûlin','05',307,300,3.81,'224','55964',110,153);
INSERT INTO "communes" VALUES('62','Setques','34',644,627,3.89,'-198','56347',32,115);
INSERT INTO "communes" VALUES('62','Seninghem','34',667,519,15.15,'-336','56336',65,209);
INSERT INTO "communes" VALUES('62','Récourt','46',229,221,3.33,'777','55837',43,74);
INSERT INTO "communes" VALUES('62','Isques','44',1168,1102,6.98,'-763','56307',4,154);
INSERT INTO "communes" VALUES('62','Escalles','15',301,322,7.29,'-692','56575',0,154);
INSERT INTO "communes" VALUES('62','<NAME>','70',2645,2248,13.52,'417','56202',15,20);
INSERT INTO "communes" VALUES('62','Lumbres','34',3763,3870,9.9,'-240','56339',35,133);
INSERT INTO "communes" VALUES('62','Conteville-lès-Boulogne','13',468,441,2.1,'-672','56383',25,106);
INSERT INTO "communes" VALUES('62','Bezinghem','29',357,294,13.15,'-567','56216',50,176);
INSERT INTO "communes" VALUES('62','Wardrecques','01',1174,1068,3.72,'8','56345',21,69);
INSERT INTO "communes" VALUES('62','Bomy','23',600,603,14.63,'-113','56193',85,180);
INSERT INTO "communes" VALUES('62','Écoivres','43',112,94,2.22,'-54','55915',122,148);
INSERT INTO "communes" VALUES('62','Wavrans-sur-l''Aa','34',1328,1226,11.48,'-222','56314',43,141);
INSERT INTO "communes" VALUES('62','Équihen-Plage','61',2904,2934,3.81,'-849','56308',0,96);
INSERT INTO "communes" VALUES('62','Marœuil','71',2506,2509,11.82,'410','55916',58,117);
INSERT INTO "communes" VALUES('62','Floringhem','27',858,675,4.65,'100','56107',66,140);
INSERT INTO "communes" VALUES('62','Ourton','28',774,696,5.28,'159','56062',73,163);
INSERT INTO "communes" VALUES('62','Chocques','12',2996,2917,7.95,'263','56158',18,70);
INSERT INTO "communes" VALUES('62','Plouvain','46',460,460,2.41,'654','55896',42,71);
INSERT INTO "communes" VALUES('62','Conchil-le-Temple','69',1045,789,16.72,'-747','55964',3,57);
INSERT INTO "communes" VALUES('62','Allouagne','53',3066,3055,7.81,'191','56145',20,100);
INSERT INTO "communes" VALUES('62','Havrincourt','11',388,374,16.61,'833','55679',67,132);
INSERT INTO "communes" VALUES('62','Boisleux-au-Mont','20',502,408,4.66,'495','55789',73,108);
INSERT INTO "communes" VALUES('62','Neulette','39',20,32,1.36,'-189','55980',68,113);
INSERT INTO "communes" VALUES('62','Grévillers','09',378,331,6.35,'527','55673',108,136);
INSERT INTO "communes" VALUES('62','Bonningues-lès-Calais','15',634,570,8.49,'-624','56545',22,131);
INSERT INTO "communes" VALUES('62','Noyellette','08',184,183,2.02,'288','55889',83,122);
INSERT INTO "communes" VALUES('62','Neuve-Chapelle','30',1345,958,1.86,'493','56204',17,20);
INSERT INTO "communes" VALUES('62','Mentque-Nortbécourt','02',599,448,10.78,'-272','56411',53,163);
INSERT INTO "communes" VALUES('62','Linghem','38',213,230,3.63,'38','56216',36,80);
INSERT INTO "communes" VALUES('62','Simencourt','10',530,534,5.06,'341','55843',91,140);
INSERT INTO "communes" VALUES('62','Monchel-sur-Canche','07',85,71,5.06,'-142','55892',52,133);
INSERT INTO "communes" VALUES('62','Longuenesse','42',10925,12539,8.4,'-110','56373',3,79);
INSERT INTO "communes" VALUES('62','Belle-et-Houllefort','21',539,533,9.14,'-642','56382',26,84);
INSERT INTO "communes" VALUES('62','Ligny-Saint-Flochel','43',244,203,5.23,'103','55954',111,157);
INSERT INTO "communes" VALUES('62','Lens','95',35032,36192,11.7,'551','56035',27,71);
INSERT INTO "communes" VALUES('62','Blendecques','62',5184,5182,9.56,'-67','56352',7,93);
INSERT INTO "communes" VALUES('62','Pressy','27',291,284,4.33,'66','56084',75,158);
INSERT INTO "communes" VALUES('62','Ambleteuse','36',1912,1972,5.45,'-811','56455',0,77);
INSERT INTO "communes" VALUES('62','Thérouanne','01',1072,1048,8.37,'-86','56263',31,116);
INSERT INTO "communes" VALUES('62','Vendin-le-Vieil','68',7664,6793,10.67,'588','56082',20,66);
INSERT INTO "communes" VALUES('62','Sailly-en-Ostrevent','46',718,648,7.43,'730','55876',38,74);
INSERT INTO "communes" VALUES('62','Estrée','22',303,276,4.47,'-607','56110',6,116);
INSERT INTO "communes" VALUES('62','Ficheux','10',493,532,5.83,'447','55808',78,113);
INSERT INTO "communes" VALUES('62','Herlincourt','43',109,112,2.95,'-40','55939',108,146);
INSERT INTO "communes" VALUES('62','Bénifontaine','68',340,275,4.24,'549','56097',22,54);
INSERT INTO "communes" VALUES('62','Vieil-Moutier','21',391,333,5.77,'-470','56304',85,204);
INSERT INTO "communes" VALUES('62','Chelers','05',291,257,8.04,'165','55973',126,158);
INSERT INTO "communes" VALUES('62','Westrehem','38',216,230,2.97,'10','56161',90,132);
INSERT INTO "communes" VALUES('62','Vaudricourt','64',891,867,2.99,'320','56113',29,52);
INSERT INTO "communes" VALUES('62','Écurie','71',418,297,2.99,'481','55922',85,106);
INSERT INTO "communes" VALUES('62','Houdain','28',7633,7774,6.3,'223','56058',45,121);
INSERT INTO "communes" VALUES('62','Aix-Noulette','77',3843,3837,10.44,'415','56029',57,172);
INSERT INTO "communes" VALUES('62','Beaurains','04',5083,4711,5.99,'502','55848',70,99);
INSERT INTO "communes" VALUES('62','Verchocq','29',614,523,15.56,'-334','56183',87,192);
INSERT INTO "communes" VALUES('62','Berck','69',15367,14341,14.88,'-826','56009',0,30);
INSERT INTO "communes" VALUES('62','Fontaine-lès-Hermans','27',108,101,3.8,'14','56141',99,189);
INSERT INTO "communes" VALUES('62','Blingel','39',117,117,3.17,'-210','56010',36,106);
INSERT INTO "communes" VALUES('62','Neufchâtel-Hardelot','44',3774,3592,20.85,'-773','56243',4,155);
INSERT INTO "communes" VALUES('62','Longfossé','21',1407,1228,10.22,'-590','56280',39,207);
INSERT INTO "communes" VALUES('62','Saint-Martin-Boulogne','14',11230,11500,13.15,'-783','56362',3,188);
INSERT INTO "communes" VALUES('62','Violaines','73',3713,3577,10.01,'503','56157',19,34);
INSERT INTO "communes" VALUES('62','Fléchin','23',509,454,10.99,'-49','56177',62,178);
INSERT INTO "communes" VALUES('62','Vaudringhem','34',485,372,7.61,'-342','56291',94,200);
INSERT INTO "communes" VALUES('62','Groffliers','69',1468,1421,8.09,'-801','55983',0,33);
INSERT INTO "communes" VALUES('62','Quernes','38',456,469,2.75,'33','56228',25,71);
INSERT INTO "communes" VALUES('62','Wirwignes','21',741,682,12.47,'-639','56317',22,102);
INSERT INTO "communes" VALUES('62','Maintenay','18',389,322,12.11,'-582','55963',5,102);
INSERT INTO "communes" VALUES('62','Canettemont','08',63,61,1.79,'32','55864',110,149);
INSERT INTO "communes" VALUES('62','Sains-en-Gohelle','77',6450,6084,5.71,'386','56050',39,90);
INSERT INTO "communes" VALUES('62','Wailly','04',1037,972,9.83,'429','55829',68,111);
INSERT INTO "communes" VALUES('62','Nempont-Saint-Firmin','37',181,166,4.48,'-671','55950',2,53);
INSERT INTO "communes" VALUES('62','Landrethun-le-Nord','36',1199,906,7.7,'-614','56497',57,133);
INSERT INTO "communes" VALUES('62','Rougefay','07',92,115,3.86,'-184','55859',104,142);
INSERT INTO "communes" VALUES('62','Bapaume','09',4115,4329,5.76,'572','55671',108,137);
INSERT INTO "communes" VALUES('62','Achicourt','04',7705,7688,5.94,'470','55859',60,101);
INSERT INTO "communes" VALUES('62','Rebreuve-sur-Canche','08',219,179,8.28,'5','55850',72,149);
INSERT INTO "communes" VALUES('62','Écourt-Saint-Quentin','35',1753,1729,9.49,'816','55834',35,73);
INSERT INTO "communes" VALUES('62','Wanquetin','10',699,639,10.18,'309','55862',82,141);
INSERT INTO "communes" VALUES('62','Ivergny','08',263,218,7.34,'62','55821',109,159);
INSERT INTO "communes" VALUES('62','Bainghen','21',169,126,6.69,'-477','56391',77,202);
INSERT INTO "communes" VALUES('62','Foncquevillers','40',471,466,9.3,'327','55720',138,162);
INSERT INTO "communes" VALUES('62','Sainte-Catherine','71',3411,3018,4.4,'474','55897',53,105);
INSERT INTO "communes" VALUES('62','Hernicourt','43',499,423,9.85,'-33','56006',65,149);
INSERT INTO "communes" VALUES('62','Aubigny-en-Artois','05',1384,1356,6.27,'282','55946',87,144);
INSERT INTO "communes" VALUES('62','Leulinghem','34',230,219,4.72,'-192','56372',60,127);
INSERT INTO "communes" VALUES('62','Dennebrœucq','23',374,314,3.73,'-204','56193',53,140);
INSERT INTO "communes" VALUES('62','Monchy-Breton','05',421,389,6.9,'120','56001',111,162);
INSERT INTO "communes" VALUES('62','Béalencourt','39',114,135,7.31,'-239','56039',55,124);
INSERT INTO "communes" VALUES('62','Calonne-Ricouart','72',5759,5992,4.61,'163','56097',41,114);
INSERT INTO "communes" VALUES('62','Alembon','25',604,394,8.97,'-500','56428',90,191);
INSERT INTO "communes" VALUES('62','Noyelles-lès-Humières','39',61,56,1.16,'-179','55971',95,112);
INSERT INTO "communes" VALUES('62','Rœux','46',1392,1457,4.87,'622','55886',43,71);
INSERT INTO "communes" VALUES('62','Œuf-en-Ternois','43',255,226,8.75,'-139','55954',64,135);
INSERT INTO "communes" VALUES('63','Queuille','23',268,256,10.03,'564','51078',428,746);
INSERT INTO "communes" VALUES('63','Ceyssat','35',649,467,30.17,'622','50851',757,1410);
INSERT INTO "communes" VALUES('63','Dallet','30',1398,1024,6.67,'1002','50856',305,603);
INSERT INTO "communes" VALUES('63','Bongheat','06',368,241,11.2,'1211','50808',363,621);
INSERT INTO "communes" VALUES('63','Glaine-Montaigut','06',524,482,12.92,'1170','50840',326,531);
INSERT INTO "communes" VALUES('63','Montel-de-Gelat','29',510,522,25.02,'274','51041',656,735);
INSERT INTO "communes" VALUES('63','Saint-Hérent','03',101,113,12.79,'904','50509',480,945);
INSERT INTO "communes" VALUES('63','Tours-sur-Meymont','39',522,521,18.09,'1377','50747',360,823);
INSERT INTO "communes" VALUES('63','Chas','47',379,291,3.52,'1072','50832',338,450);
INSERT INTO "communes" VALUES('63','Pont-du-Château','30',10612,8850,21.61,'1013','50887',291,380);
INSERT INTO "communes" VALUES('63','Châteauneuf-les-Bains','23',292,303,16.92,'622','51143',365,725);
INSERT INTO "communes" VALUES('63','Thuret','01',802,712,16.66,'1025','51077',304,356);
INSERT INTO "communes" VALUES('63','Condat-lès-Montboissier','41',227,210,20.52,'1292','50612',591,880);
INSERT INTO "communes" VALUES('63','Cournon-d''Auvergne','58',19244,18860,18.58,'955','50824',314,542);
INSERT INTO "communes" VALUES('63','Cunlhat','16',1292,1350,29.55,'1359','50702',540,1014);
INSERT INTO "communes" VALUES('63','Verneugheol','18',254,280,34.14,'222','50854',671,774);
INSERT INTO "communes" VALUES('63','Espinasse','42',308,288,23.95,'416','51153',598,774);
INSERT INTO "communes" VALUES('63','Sauvagnat','18',151,166,24.13,'313','50855',654,873);
INSERT INTO "communes" VALUES('63','Seychalles','22',628,442,9.21,'1113','50895',314,461);
INSERT INTO "communes" VALUES('63','Saint-Julien-de-Coppel','06',1128,902,21.54,'1082','50772',375,782);
INSERT INTO "communes" VALUES('63','Chambon-sur-Lac','05',352,372,46.93,'623','50635',873,1883);
INSERT INTO "communes" VALUES('63','Chambon-sur-Dolore','41',171,181,19.7,'1418','50552',887,1208);
INSERT INTO "communes" VALUES('63','Sugères','44',572,506,20.64,'1191','50669',447,794);
INSERT INTO "communes" VALUES('63','Coudes','19',1144,864,4.66,'968','50683',340,465);
INSERT INTO "communes" VALUES('63','Courgoul','08',65,55,8.44,'773','50563',569,1033);
INSERT INTO "communes" VALUES('63','Augerolles','15',878,889,33.01,'1423','50803',377,995);
INSERT INTO "communes" VALUES('63','Saint-Anthème','38',736,807,68.89,'1756','50587',906,1423);
INSERT INTO "communes" VALUES('63','Augnat','03',130,133,9.54,'939','50457',469,822);
INSERT INTO "communes" VALUES('63','Singles','45',169,211,20.43,'224','50613',534,830);
INSERT INTO "communes" VALUES('63','<NAME>','21',658,720,48.29,'392','50593',719,1691);
INSERT INTO "communes" VALUES('63','Saint-Romain','38',237,209,16.05,'1732','50544',867,1256);
INSERT INTO "communes" VALUES('63','Orbeil','19',815,701,9.65,'1045','50625',359,630);
INSERT INTO "communes" VALUES('63','Saurier','08',232,189,8.36,'788','50598',529,925);
INSERT INTO "communes" VALUES('63','Saint-Laure','17',490,358,6.89,'1061','51002',290,331);
INSERT INTO "communes" VALUES('63','Orcines','61',3296,3065,42.73,'751','50869',480,1465);
INSERT INTO "communes" VALUES('63','Sayat','59',2184,2255,8.29,'795','50918',390,818);
INSERT INTO "communes" VALUES('63','Chaptuzat','01',437,366,8.24,'935','51147',352,535);
INSERT INTO "communes" VALUES('63','Saint-Genès-Champespe','21',234,259,32.33,'430','50465',858,1056);
INSERT INTO "communes" VALUES('63','Yronde-et-Buron','49',637,586,14.79,'1020','50681',344,824);
INSERT INTO "communes" VALUES('63','Le Vernet-Sainte-Marguerite','37',278,267,25.03,'679','50677',869,1363);
INSERT INTO "communes" VALUES('63','Cisternes-la-Forêt','31',486,455,33.58,'409','50878',592,945);
INSERT INTO "communes" VALUES('63','Saint-Angel','23',393,351,17.89,'664','51107',386,736);
INSERT INTO "communes" VALUES('63','Saint-Julien-Puy-Lavèze','07',370,340,29.09,'374','50739',794,978);
INSERT INTO "communes" VALUES('63','Enval','34',1390,1351,4.87,'792','50999',378,720);
INSERT INTO "communes" VALUES('63','Saint-Dier-d''Auvergne','39',573,551,20.15,'1273','50751',416,700);
INSERT INTO "communes" VALUES('63','Bussières-et-Pruns','01',418,306,11.63,'995','51118',317,381);
INSERT INTO "communes" VALUES('63','Ambert','02',6920,7312,60.48,'1561','50611',514,1365);
INSERT INTO "communes" VALUES('63','Cellule','33',1068,671,8.74,'892','51053',310,364);
INSERT INTO "communes" VALUES('63','Manzat','23',1230,1264,39.06,'672','51068',528,979);
INSERT INTO "communes" VALUES('63','Chabreloche','43',1310,1323,9.61,'1511','50977',597,913);
INSERT INTO "communes" VALUES('63','Saint-Diéry','05',374,333,19.75,'760','50606',594,1036);
INSERT INTO "communes" VALUES('63','Sainte-Agathe','15',197,207,18.31,'1418','50913',439,1091);
INSERT INTO "communes" VALUES('63','Clémensat','08',108,80,3.21,'853','50625',536,780);
INSERT INTO "communes" VALUES('63','Clermont-Ferrand','98',139860,137154,42.67,'834','50866',321,602);
INSERT INTO "communes" VALUES('63','Ravel','47',700,666,10.03,'1177','50865',317,470);
INSERT INTO "communes" VALUES('63','<NAME>','48',1278,1127,6.84,'879','50763',366,653);
INSERT INTO "communes" VALUES('63','Saint-Amant-Roche-Savine','36',533,531,23.99,'1439','50640',756,1118);
INSERT INTO "communes" VALUES('63','Saint-Germain-près-Herment','18',77,75,16.82,'227','50813',670,784);
INSERT INTO "communes" VALUES('63','Saint-Maigner','28',198,174,18.97,'388','51209',512,789);
INSERT INTO "communes" VALUES('63','Aurières','35',331,208,11.09,'633','50759',878,1074);
INSERT INTO "communes" VALUES('63','Lapeyrouse','26',567,588,36.14,'595','51360',390,621);
INSERT INTO "communes" VALUES('63','Viverols','50',404,390,12.5,'1719','50482',817,1146);
INSERT INTO "communes" VALUES('63','Escoutoux','46',1320,1130,27.4,'1363','50911',295,829);
INSERT INTO "communes" VALUES('63','Tallende','48',1583,1150,5.99,'876','50745',366,511);
INSERT INTO "communes" VALUES('63','Champeix','08',1348,1134,12.12,'880','50654',428,760);
INSERT INTO "communes" VALUES('63','<NAME>-Montel','43',1995,2242,4.65,'1405','50968',519,696);
INSERT INTO "communes" VALUES('63','Issoire','19',14012,13765,19.69,'1014','50605',360,560);
INSERT INTO "communes" VALUES('63','Saint-Ignat','17',780,649,15.37,'1042','51026',292,331);
INSERT INTO "communes" VALUES('63','Messeix','07',1120,1338,39.32,'228','50686',570,863);
INSERT INTO "communes" VALUES('63','Giat','29',887,959,47.95,'146','50891',704,824);
INSERT INTO "communes" VALUES('63','Ménétrol','33',1576,1696,8.94,'875','50968',312,521);
INSERT INTO "communes" VALUES('63','Surat','17',533,395,8.73,'1020','51042',305,324);
INSERT INTO "communes" VALUES('63','Roche-Charles-la-Mayrand','03',49,56,16.22,'771','50510',840,1241);
INSERT INTO "communes" VALUES('63','Saint-Martin-des-Olmes','02',269,272,17.15,'1623','50589',640,1357);
INSERT INTO "communes" VALUES('63','Tourzel-Ronzières','08',254,183,11.77,'881','50585',488,940);
INSERT INTO "communes" VALUES('63','<NAME>','38',136,131,13.6,'1787','50517',984,1280);
INSERT INTO "communes" VALUES('63','Ludesse','08',458,352,8.47,'861','50679',519,760);
INSERT INTO "communes" VALUES('63','Blot-l''Église','25',404,357,25.29,'687','51153',365,748);
INSERT INTO "communes" VALUES('63','Sauviat','15',522,447,15.62,'1330','50795',317,581);
INSERT INTO "communes" VALUES('63','Dore-l''Église','04',630,672,27.14,'1572','50426',578,1027);
INSERT INTO "communes" VALUES('63','Bas-et-Lezat','32',259,209,12.59,'1071','51138',317,393);
INSERT INTO "communes" VALUES('63','Saint-Pardoux','25',425,369,15.99,'756','51174',478,670);
INSERT INTO "communes" VALUES('63','Mareugheol','40',175,160,7.54,'921','50542',436,762);
INSERT INTO "communes" VALUES('63','Murat-le-Quaire','35',475,499,11.64,'443','50664',836,1508);
INSERT INTO "communes" VALUES('63','Montpensier','01',410,315,7.24,'981','51151',346,436);
INSERT INTO "communes" VALUES('63','Paslières','09',1561,1362,27.77,'1290','51032',275,800);
INSERT INTO "communes" VALUES('63','Saint-Éloy-les-Mines','26',3657,4136,22.11,'552','51289',443,649);
INSERT INTO "communes" VALUES('63','Saint-Rémy-de-Chargnat','44',552,461,6.21,'1097','50573',378,479);
INSERT INTO "communes" VALUES('63','Saint-Priest-Bramefant','32',884,647,19.06,'1227','51143',256,373);
INSERT INTO "communes" VALUES('63','Dorat','46',678,575,17.26,'1272','50992',273,416);
INSERT INTO "communes" VALUES('63','Saint-Bonnet-près-Orcival','35',446,382,14.99,'581','50785',743,1046);
INSERT INTO "communes" VALUES('63','Lastic','07',110,125,17.31,'257','50789',700,865);
INSERT INTO "communes" VALUES('63','Trémouille-Saint-Loup','21',143,148,12.23,'249','50545',594,831);
INSERT INTO "communes" VALUES('63','Saint-Gervazy','40',308,256,14.23,'977','50461',458,790);
INSERT INTO "communes" VALUES('63','Effiat','01',1043,745,19.96,'1021','51156',317,437);
INSERT INTO "communes" VALUES('63','Voingt','29',54,60,6.48,'222','50896',715,814);
INSERT INTO "communes" VALUES('63','Châteaugay','34',3152,2964,9.08,'831','50946',320,537);
INSERT INTO "communes" VALUES('63','Saint-Clément-de-Régnat','32',506,430,15,'1067','51111',306,342);
INSERT INTO "communes" VALUES('63','Beauregard-Vendon','14',1055,747,7.33,'860','51066',336,509);
INSERT INTO "communes" VALUES('63','Chanonat','37',1615,1426,12.7,'843','50769',447,802);
INSERT INTO "communes" VALUES('63','La Roche-Noire','49',619,476,3.07,'986','50786',315,551);
INSERT INTO "communes" VALUES('63','Crevant-Laveine','22',954,828,19.76,'1154','51016',276,364);
INSERT INTO "communes" VALUES('63','Mozac','34',3755,3669,4.05,'843','50993',340,424);
INSERT INTO "communes" VALUES('63','Perpezat','35',424,384,36.19,'486','50755',757,1482);
INSERT INTO "communes" VALUES('63','Biollet','42',318,389,23.46,'384','51104',620,755);
INSERT INTO "communes" VALUES('63','Ceyrat','56',5341,5596,9.35,'807','50814',428,804);
INSERT INTO "communes" VALUES('63','Auzelles','16',337,331,33.42,'1303','50669',449,1064);
INSERT INTO "communes" VALUES('63','Lempdes','30',8354,8399,12.3,'952','50857',317,505);
INSERT INTO "communes" VALUES('63','Martres-sur-Morge','17',556,475,8.22,'982','51041',308,335);
INSERT INTO "communes" VALUES('63','Laps','49',558,497,7.09,'1037','50749',394,724);
INSERT INTO "communes" VALUES('63','Chamalières','57',17081,18128,3.77,'812','50860',385,582);
INSERT INTO "communes" VALUES('63','Teilhet','25',299,294,18.81,'539','51218',520,747);
INSERT INTO "communes" VALUES('63','Flat','19',498,385,4.22,'1074','50634',401,690);
INSERT INTO "communes" VALUES('63','Vassel','47',237,200,2.95,'1082','50850',325,463);
INSERT INTO "communes" VALUES('63','Saint-Georges-sur-Allier','49',1159,996,9.42,'1007','50789',358,614);
INSERT INTO "communes" VALUES('63','Vernines','35',355,320,17.72,'602','50744',851,1242);
INSERT INTO "communes" VALUES('63','Marsat','34',1197,1137,4.08,'828','50974',348,517);
INSERT INTO "communes" VALUES('63','Sainte-Catherine','41',59,61,5.67,'1263','50501',639,1090);
INSERT INTO "communes" VALUES('63','Pradeaux','44',302,299,5.54,'1065','50569',373,452);
INSERT INTO "communes" VALUES('63','Bouzel','47',703,507,4.21,'1090','50864',317,338);
INSERT INTO "communes" VALUES('63','Varennes-sur-Usson','44',248,161,6.15,'1076','50592',376,522);
INSERT INTO "communes" VALUES('63','Laqueuille','35',374,384,22.07,'440','50722',857,1466);
INSERT INTO "communes" VALUES('63','Saint-Rémy-sur-Durolle','43',1873,1925,18.17,'1396','50987',500,947);
INSERT INTO "communes" VALUES('63','<NAME>','29',84,88,15.85,'155','50949',702,822);
INSERT INTO "communes" VALUES('63','Brenat','44',583,464,8.83,'1081','50613',372,543);
INSERT INTO "communes" VALUES('63','Orcet','48',2718,2679,5.99,'925','50782',349,477);
INSERT INTO "communes" VALUES('63','Ancizes-Comps','23',1761,1821,21.2,'529','51028',444,742);
INSERT INTO "communes" VALUES('63','Youx','26',1034,1002,19.13,'514','51272',495,743);
INSERT INTO "communes" VALUES('63','Ars-les-Favets','26',235,218,14.6,'465','51326',486,597);
INSERT INTO "communes" VALUES('63','Pontgibaud','31',731,774,4.59,'572','50925',639,779);
INSERT INTO "communes" VALUES('63','Marsac-en-Livradois','02',1447,1328,48.46,'1546','50532',531,1041);
INSERT INTO "communes" VALUES('63','Orsonnette','40',204,206,3.05,'1070','50528',389,490);
INSERT INTO "communes" VALUES('63','Nonette','40',322,289,7.6,'1047','50530',379,577);
INSERT INTO "communes" VALUES('63','Saint-Alyre-ès-Montagne','03',162,180,41.07,'729','50433',890,1462);
INSERT INTO "communes" VALUES('63','<NAME>','26',280,285,18.6,'454','51312',491,663);
INSERT INTO "communes" VALUES('63','Marat','27',832,850,30.1,'1496','50732',436,1025);
INSERT INTO "communes" VALUES('63','Valz-sous-Châteauneuf','20',55,43,5.14,'1200','50481',509,791);
INSERT INTO "communes" VALUES('63','Puy-Guillaume','09',2622,2624,25.02,'1264','51067',265,590);
INSERT INTO "communes" VALUES('63','Blanzat','59',3824,3916,6.96,'824','50922',360,611);
INSERT INTO "communes" VALUES('63','Estandeuil','39',383,275,9.59,'1229','50755',452,626);
INSERT INTO "communes" VALUES('63','Ennezat','17',2395,2043,18.31,'985','50998',308,333);
INSERT INTO "communes" VALUES('63','Ayat-sur-Sioule','42',145,122,14.2,'615','51167',360,716);
INSERT INTO "communes" VALUES('63','Ternant-les-Eaux','03',44,40,3.59,'884','50532',558,871);
INSERT INTO "communes" VALUES('63','Gouttières','42',348,386,25.63,'481','51181',591,803);
INSERT INTO "communes" VALUES('63','Aulnat','59',4171,4486,4.21,'923','50888',317,331);
INSERT INTO "communes" VALUES('63','Sauxillanges','44',1171,1082,24.9,'1150','50612',418,667);
INSERT INTO "communes" VALUES('63','Chappes','17',1507,1158,10.21,'982','50965',307,333);
INSERT INTO "communes" VALUES('63','Échandelys','41',232,242,23.59,'1326','50604',780,1108);
INSERT INTO "communes" VALUES('63','Vensat','01',434,423,16.11,'943','51161',350,572);
INSERT INTO "communes" VALUES('63','Saint-Saturnin','37',1024,965,16.86,'840','50733',460,890);
INSERT INTO "communes" VALUES('63','Pontaumur','29',743,768,13.81,'376','50965',525,755);
INSERT INTO "communes" VALUES('63','Chassagne','03',87,109,16.06,'822','50553',622,1252);
INSERT INTO "communes" VALUES('63','Saint-Gervais-sous-Meymont','27',257,237,10.17,'1412','50766',393,781);
INSERT INTO "communes" VALUES('63','Saint-Yvoine','19',521,372,8.89,'1005','50651',354,607);
INSERT INTO "communes" VALUES('63','Royat','61',4473,4652,6.62,'793','50850',457,904);
INSERT INTO "communes" VALUES('63','Saint-Julien-la-Geneste','42',133,125,11.97,'442','51168',597,787);
INSERT INTO "communes" VALUES('63','Olliergues','27',776,901,16.41,'1445','50750',382,663);
INSERT INTO "communes" VALUES('63','Besse-et-Saint-Anastaise','05',1561,1671,72.38,'663','50570',805,1725);
INSERT INTO "communes" VALUES('63','La Renaudie','15',113,161,18.02,'1537','50817',684,1202);
INSERT INTO "communes" VALUES('63','Gelles','35',909,910,47.53,'474','50855',690,1044);
INSERT INTO "communes" VALUES('63','Mirefleurs','49',2295,1790,9.05,'986','50770',326,781);
INSERT INTO "communes" VALUES('63','Vodable','19',200,211,11.68,'900','50564',552,946);
INSERT INTO "communes" VALUES('63','Sallèdes','49',566,458,18.81,'1103','50723',476,815);
INSERT INTO "communes" VALUES('63','Le Breuil-sur-Couze','40',962,864,5.94,'1029','50521',387,490);
INSERT INTO "communes" VALUES('63','Varennes-sur-Morge','17',402,299,4.93,'945','51047',309,340);
INSERT INTO "communes" VALUES('63','La Chapelle-Marcousse','03',75,73,19.72,'846','50497',746,1179);
INSERT INTO "communes" VALUES('63','Durtol','61',1960,2027,4.01,'794','50885',468,708);
INSERT INTO "communes" VALUES('63','Vollore-Ville','15',714,684,30.41,'1404','50872',316,1062);
INSERT INTO "communes" VALUES('63','Mauzun','06',95,64,0.99,'1216','50782',500,652);
INSERT INTO "communes" VALUES('63','Thiers','46',11250,13353,44.49,'1346','50952',283,793);
INSERT INTO "communes" VALUES('63','Palladuc','43',542,498,13.35,'1435','51005',587,1287);
INSERT INTO "communes" VALUES('63','Esteil','20',69,58,4.55,'1144','50503',515,813);
INSERT INTO "communes" VALUES('63','Saint-Avit','29',257,269,19.47,'208','50969',655,752);
INSERT INTO "communes" VALUES('63','Cros','21',172,187,19.62,'295','50527',675,923);
INSERT INTO "communes" VALUES('63','Saint-Flour','39',259,215,9.45,'1297','50788',319,561);
INSERT INTO "communes" VALUES('63','Baffie','50',118,101,10.62,'1656','50524',749,1229);
INSERT INTO "communes" VALUES('63','Antoingt','40',373,335,7.83,'936','50551',437,610);
INSERT INTO "communes" VALUES('63','Saint-Maurice','49',803,759,5.4,'1000','50745',334,781);
INSERT INTO "communes" VALUES('63','Orcival','35',249,244,27.82,'561','50759',780,1509);
INSERT INTO "communes" VALUES('63','Saint-Bonnet-près-Riom','33',1988,1486,7.03,'863','51033',339,400);
INSERT INTO "communes" VALUES('63','Trézioux','39',451,341,17.44,'1260','50803',377,617);
INSERT INTO "communes" VALUES('63','Sardon','01',313,240,8.41,'983','51070',313,355);
INSERT INTO "communes" VALUES('63','Saulzet-le-Froid','37',261,231,28.21,'647','50713',957,1529);
INSERT INTO "communes" VALUES('63','Saint-Cirgues-sur-Couze','08',308,273,1.54,'896','50611',449,622);
INSERT INTO "communes" VALUES('63','Espirat','47',325,242,4.32,'1111','50834',327,363);
INSERT INTO "communes" VALUES('63','Néronde-sur-Dore','22',445,475,8.93,'1318','50886',294,423);
INSERT INTO "communes" VALUES('63','Thiolières','02',167,143,5.3,'1505','50649',576,961);
INSERT INTO "communes" VALUES('63','Billom','06',4635,4246,16.96,'1113','50803',345,563);
INSERT INTO "communes" VALUES('63','Pardines','19',208,179,5.18,'930','50625',446,620);
INSERT INTO "communes" VALUES('63','Bergonne','19',340,334,5.75,'982','50562',450,565);
INSERT INTO "communes" VALUES('63','Manglieu','49',454,411,21.09,'1127','50679',399,646);
INSERT INTO "communes" VALUES('63','Champs','14',323,258,15.13,'832','51176',375,607);
INSERT INTO "communes" VALUES('63','Tauves','45',753,863,33.95,'319','50622',636,1072);
INSERT INTO "communes" VALUES('63','Saint-Sulpice','07',100,113,18.22,'323','50715',691,922);
INSERT INTO "communes" VALUES('63','Chadeleuf','08',387,302,5.7,'936','50652',395,611);
INSERT INTO "communes" VALUES('63','Martres-de-Veyre','48',3928,3911,9.28,'948','50760',323,500);
INSERT INTO "communes" VALUES('63','Artonne','01',770,759,17.48,'897','51115',334,532);
INSERT INTO "communes" VALUES('63','Vichel','40',296,211,5.71,'1007','50476',466,741);
INSERT INTO "communes" VALUES('63','Saint-Myon','14',440,313,5.51,'882','51104',334,451);
INSERT INTO "communes" VALUES('63','Lezoux','22',5599,4945,34.69,'1159','50920',317,421);
INSERT INTO "communes" VALUES('63','Cébazat','59',7611,7799,10.02,'848','50924',320,518);
INSERT INTO "communes" VALUES('63','Olloix','37',311,226,11.92,'792','50690',520,1002);
INSERT INTO "communes" VALUES('63','Saint-Gervais-d''Auvergne','42',1300,1262,47.35,'536','51144',390,742);
INSERT INTO "communes" VALUES('63','Doranges','04',149,164,19.43,'1421','50452',865,1121);
INSERT INTO "communes" VALUES('63','Saint-Sauveur-la-Sagne','04',113,111,7.74,'1478','50439',689,964);
INSERT INTO "communes" VALUES('63','La Chapelle-Agnon','16',382,418,26.08,'1446','50704',470,1003);
INSERT INTO "communes" VALUES('63','Larodde','45',268,365,23.04,'237','50584',520,868);
INSERT INTO "communes" VALUES('63','Saint-Priest-des-Champs','42',691,676,45.09,'475','51103',500,716);
INSERT INTO "communes" VALUES('63','Olby','35',696,521,17.38,'590','50828',690,976);
INSERT INTO "communes" VALUES('63','Aubusson-d''Auvergne','15',241,220,6.79,'1424','50839',355,609);
INSERT INTO "communes" VALUES('63','Moriat','40',377,339,10.81,'1028','50450',419,660);
INSERT INTO "communes" VALUES('63','Ris','09',746,675,15.76,'1299','51110',259,593);
INSERT INTO "communes" VALUES('63','Jozerand','14',453,306,10.76,'845','51139',357,549);
INSERT INTO "communes" VALUES('63','Chaux','09',315,279,22.27,'1396','51104',417,947);
INSERT INTO "communes" VALUES('63','Picherande','21',354,421,44.26,'478','50516',993,1722);
INSERT INTO "communes" VALUES('63','Brousse','16',363,324,22.45,'1247','50668',497,854);
INSERT INTO "communes" VALUES('63','Anzat-le-Luguet','03',187,241,66.56,'783','50369',790,1547);
INSERT INTO "communes" VALUES('63','Miremont','29',329,320,36.79,'423','50998',500,727);
INSERT INTO "communes" VALUES('63','Moissat','47',1082,750,13,'1135','50864',317,395);
INSERT INTO "communes" VALUES('63','Lamontgie','20',587,495,7.09,'1108','50527',410,676);
INSERT INTO "communes" VALUES('63','Gimeaux','14',412,318,2.19,'841','51056',354,428);
INSERT INTO "communes" VALUES('63','Medeyrolles','50',113,108,17.12,'1630','50450',755,1191);
INSERT INTO "communes" VALUES('63','Fournols','41',347,479,29.02,'1391','50575',938,1200);
INSERT INTO "communes" VALUES('63','Tralaigues','29',84,78,5.11,'286','51001',635,717);
INSERT INTO "communes" VALUES('63','Randan','32',1549,1360,15.65,'1131','51131',298,404);
INSERT INTO "communes" VALUES('63','Chanat-la-Mouteyre','61',944,732,14.27,'754','50923',520,1108);
INSERT INTO "communes" VALUES('63','Briffons','07',302,335,40.32,'356','50776',735,1002);
INSERT INTO "communes" VALUES('63','Saint-Jacques-d''Ambur','31',290,300,20.4,'489','51003',500,793);
INSERT INTO "communes" VALUES('63','Pulvérières','31',374,308,14.75,'636','50984',775,994);
INSERT INTO "communes" VALUES('63','Compains','05',158,162,50.16,'657','50491',840,1358);
INSERT INTO "communes" VALUES('63','Landogne','29',232,213,17.37,'355','50975',540,715);
INSERT INTO "communes" VALUES('63','Job','02',1081,1050,42.68,'1565','50685',492,1631);
INSERT INTO "communes" VALUES('63','Chavaroux','17',452,308,3.98,'1025','50946',323,366);
INSERT INTO "communes" VALUES('63','Fernoël','29',135,140,14.43,'108','50901',735,809);
INSERT INTO "communes" VALUES('63','Montfermy','31',208,159,14.25,'526','50978',530,771);
INSERT INTO "communes" VALUES('63','Dauzat-sur-Vodable','03',90,76,14.99,'847','50536',677,1252);
INSERT INTO "communes" VALUES('63','Saint-Jean-en-Val','44',339,275,12.09,'1133','50581',399,663);
INSERT INTO "communes" VALUES('63','Rochefort-Montagne','35',897,910,17.45,'520','50761',771,1280);
INSERT INTO "communes" VALUES('63','Montaigut','26',1037,1129,8.18,'524','51310',535,714);
INSERT INTO "communes" VALUES('63','Saint-Jean-d''Heurs','22',616,509,11.13,'1234','50910',333,423);
INSERT INTO "communes" VALUES('63','Culhat','22',1022,875,18.74,'1111','50958',289,373);
INSERT INTO "communes" VALUES('63','La Cellette','28',161,143,10.99,'425','51225',538,803);
INSERT INTO "communes" VALUES('63','Prondines','18',260,272,30.91,'378','50845',757,1012);
INSERT INTO "communes" VALUES('63','Vic-le-Comte','49',4796,4404,18.09,'1011','50714',331,806);
INSERT INTO "communes" VALUES('63','Égliseneuve-près-Billom','06',826,685,16.66,'1172','50802',356,640);
INSERT INTO "communes" VALUES('63','Saint-Genès-du-Retz','01',495,430,8.24,'976','51179',338,454);
INSERT INTO "communes" VALUES('63','Gerzat','59',10393,9069,16.28,'898','50918',315,349);
INSERT INTO "communes" VALUES('63','Saint-Bonnet-lès-Allier','47',425,203,1.51,'1019','50824',346,437);
INSERT INTO "communes" VALUES('63','Teilhède','14',410,374,11.82,'817','51062',413,706);
INSERT INTO "communes" VALUES('63','Aydat','37',2192,1648,50.22,'707','50734',620,1142);
INSERT INTO "communes" VALUES('63','Saint-Étienne-sur-Usson','44',260,228,15.58,'1196','50562',461,815);
INSERT INTO "communes" VALUES('63','Saint-Pierre-Roche','35',420,335,17.02,'542','50807',694,905);
INSERT INTO "communes" VALUES('63','Viscomtat','43',616,681,25.44,'1488','50920',606,1123);
INSERT INTO "communes" VALUES('63','Jumeaux','20',707,671,7.13,'1115','50479',393,730);
INSERT INTO "communes" VALUES('63','Sauret-Besserve','42',181,192,10.33,'524','51104',428,704);
INSERT INTO "communes" VALUES('63','Tortebesse','18',53,65,11.64,'349','50812',777,987);
INSERT INTO "communes" VALUES('63','Perrier','19',829,775,6.37,'961','50605',410,601);
INSERT INTO "communes" VALUES('63','Bulhon','22',501,357,12.47,'1165','50994',317,383);
INSERT INTO "communes" VALUES('63','Riom','99',17941,18575,31.97,'862','50993',314,505);
INSERT INTO "communes" VALUES('63','Bansat','44',247,203,10.31,'1119','50538',424,731);
INSERT INTO "communes" VALUES('63','Yssac-la-Tourette','14',354,317,2.14,'840','51039',357,443);
INSERT INTO "communes" VALUES('63','Creste','08',52,41,4.36,'786','50611',549,874);
INSERT INTO "communes" VALUES('63','Aubière','55',9621,9915,7.68,'860','50834',343,467);
INSERT INTO "communes" VALUES('63','Durmignat','26',203,188,12.36,'614','51318',408,567);
INSERT INTO "communes" VALUES('63','Saint-Hilaire-la-Croix','14',309,234,16.21,'788','51163',414,661);
INSERT INTO "communes" VALUES('63','Valbeleix','05',142,152,22.41,'723','50521',670,1198);
INSERT INTO "communes" VALUES('63','Collanges','40',154,147,4.45,'979','50486',437,651);
INSERT INTO "communes" VALUES('63','Saint-André-le-Coq','32',487,478,18.02,'1082','51071',303,386);
INSERT INTO "communes" VALUES('63','Églisolles','50',257,238,20.59,'1722','50506',846,1225);
INSERT INTO "communes" VALUES('63','Condat-en-Combraille','29',486,520,45.74,'252','50947',620,772);
INSERT INTO "communes" VALUES('63','Peslières','20',69,54,6.86,'1249','50488',591,1158);
INSERT INTO "communes" VALUES('63','Celles-sur-Durolle','43',1774,1914,38.9,'1443','50954',535,1287);
INSERT INTO "communes" VALUES('63','Vernet-la-Varenne','44',713,609,35.1,'1239','50528',542,1051);
INSERT INTO "communes" VALUES('63','Saint-Pierre-le-Chastel','31',384,320,17.45,'563','50887',665,873);
INSERT INTO "communes" VALUES('63','Neuf-Église','25',294,273,14.94,'615','51218',440,691);
INSERT INTO "communes" VALUES('63','La Godivelle','03',23,27,15.44,'651','50432',1076,1377);
INSERT INTO "communes" VALUES('63','Château-sur-Cher','28',92,108,11.87,'243','51241',359,593);
INSERT INTO "communes" VALUES('63','Vollore-Montagne','15',319,371,21.22,'1486','50872',620,1267);
INSERT INTO "communes" VALUES('63','Charbonnières-les-Varennes','23',1532,1215,32.12,'737','51009',496,964);
INSERT INTO "communes" VALUES('63','Vertaizon','47',3115,2280,12.83,'1055','50855',306,594);
INSERT INTO "communes" VALUES('63','Isserteaux','49',410,330,17.66,'1168','50725',459,789);
INSERT INTO "communes" VALUES('63','Égliseneuve-des-Liards','44',145,141,8.35,'1208','50631',480,804);
INSERT INTO "communes" VALUES('63','Gignat','40',244,227,3.49,'982','50533',415,564);
INSERT INTO "communes" VALUES('63','Savennes','07',92,119,16.81,'176','50656',538,786);
INSERT INTO "communes" VALUES('63','Bussières','28',106,119,13.84,'330','51189',469,754);
INSERT INTO "communes" VALUES('63','Nébouzat','35',787,634,21.62,'631','50795',775,1209);
INSERT INTO "communes" VALUES('63','Plauzat','48',1484,971,13.01,'903','50691',384,740);
INSERT INTO "communes" VALUES('63','Saint-Vincent','08',445,289,5.84,'885','50610',463,779);
INSERT INTO "communes" VALUES('63','Saint-Jean-Saint-Gervais','20',105,106,14.39,'1155','50461',455,767);
INSERT INTO "communes" VALUES('63','Boudes','40',267,251,7.92,'942','50511',437,726);
INSERT INTO "communes" VALUES('63','Charbonnier-les-Mines','40',901,832,3.36,'1054','50463',403,492);
INSERT INTO "communes" VALUES('63','Saint-Beauzire','17',2106,1853,16.08,'937','50944',312,325);
INSERT INTO "communes" VALUES('63','Lisseuil','25',91,95,6.88,'673','51172',360,644);
INSERT INTO "communes" VALUES('63','Menat','25',581,610,20.31,'631','51226',346,674);
INSERT INTO "communes" VALUES('63','Saint-Bonnet-le-Chastel','41',237,253,23.47,'1441','50500',653,1122);
INSERT INTO "communes" VALUES('63','Pionsat','28',1089,1015,24.68,'396','51233',458,663);
INSERT INTO "communes" VALUES('63','Olmet','15',143,137,15.54,'1472','50789',433,954);
INSERT INTO "communes" VALUES('63','Charensat','42',522,576,46.68,'333','51096',546,764);
INSERT INTO "communes" VALUES('63','<NAME>','48',661,591,7.98,'926','50707',356,580);
INSERT INTO "communes" VALUES('63','Luzillat','24',974,776,23.19,'1171','51052',274,415);
INSERT INTO "communes" VALUES('63','Bertignat','36',482,495,24.31,'1493','50686',470,911);
INSERT INTO "communes" VALUES('63','Saint-Ours','31',1578,1371,55.64,'617','50945',596,1202);
INSERT INTO "communes" VALUES('63','<NAME>','36',194,177,17.31,'1473','50626',753,1215);
INSERT INTO "communes" VALUES('63','Égliseneuve-d''Entraigues','05',458,560,56.43,'545','50453',877,1358);
INSERT INTO "communes" VALUES('63','<NAME>','27',251,275,27.42,'1536','50791',671,1427);
INSERT INTO "communes" VALUES('63','Beurières','04',304,344,16.27,'1598','50488',557,1033);
INSERT INTO "communes" VALUES('63','Saint-Étienne-des-Champs','29',145,135,23.74,'266','50922',610,770);
INSERT INTO "communes" VALUES('63','Champagnat-le-Jeune','20',123,93,9.39,'1211','50500',505,868);
INSERT INTO "communes" VALUES('63','<NAME>','02',333,372,2.81,'1583','50657',527,800);
INSERT INTO "communes" VALUES('63','Saint-Donat','21',244,283,33.27,'425','50521',795,1184);
INSERT INTO "communes" VALUES('63','Beaumont','56',10933,10741,4.01,'829','50835',393,518);
INSERT INTO "communes" VALUES('63','Murol','05',547,563,15.05,'674','50637',785,1500);
INSERT INTO "communes" VALUES('63','Clerlande','17',418,305,8.31,'950','51020',313,335);
INSERT INTO "communes" VALUES('63','Heume-l''Église','35',112,116,14.96,'441','50800',797,1015);
INSERT INTO "communes" VALUES('63','Saint-Sandoux','37',886,603,9.84,'857','50712',430,848);
INSERT INTO "communes" VALUES('63','Saint-Germain-Lembron','40',1825,1623,15.7,'1003','50509',397,544);
INSERT INTO "communes" VALUES('63','Joze','24',1050,924,19.35,'1073','50959',288,342);
INSERT INTO "communes" VALUES('63','Sauvessanges','50',534,531,33.19,'1707','50436',776,1142);
INSERT INTO "communes" VALUES('63','Grandrif','38',167,174,22.15,'1645','50561',679,1424);
INSERT INTO "communes" VALUES('63','Bort-l''Étang','06',593,445,15.4,'1212','50870',333,424);
INSERT INTO "communes" VALUES('63','Volvic','34',4556,4197,27.78,'778','50967',392,998);
INSERT INTO "communes" VALUES('63','Saint-Éloy-la-Glacière','36',62,59,12.02,'1374','50623',854,1118);
INSERT INTO "communes" VALUES('63','Saint-Agoulin','01',310,246,9.34,'888','51157',397,578);
INSERT INTO "communes" VALUES('63','Saint-Denis-Combarnazat','32',217,212,10.21,'1126','51092',300,407);
INSERT INTO "communes" VALUES('63','Saint-Quintin-sur-Sioule','25',337,279,14.32,'815','51222',306,504);
INSERT INTO "communes" VALUES('63','Sainte-Christine','42',157,133,12.78,'554','51185',520,724);
INSERT INTO "communes" VALUES('63','Champétières','02',253,258,18.54,'1509','50577',534,1205);
INSERT INTO "communes" VALUES('63','Avèze','45',197,236,22.07,'292','50666',580,958);
INSERT INTO "communes" VALUES('63','Meilhaud','19',547,380,4.47,'917','50606',429,581);
INSERT INTO "communes" VALUES('63','Charnat','22',200,199,5.42,'1218','51048',273,309);
INSERT INTO "communes" VALUES('63','<NAME>','48',4696,4867,4.23,'945','50803',318,411);
INSERT INTO "communes" VALUES('63','Pouzol','25',282,200,13.93,'703','51212',337,662);
INSERT INTO "communes" VALUES('63','Chauriat','47',1565,1135,8.64,'1047','50835',357,539);
INSERT INTO "communes" VALUES('63','Vergheas','28',77,75,7.45,'310','51144',545,720);
INSERT INTO "communes" VALUES('63','Le Cheix','33',615,602,4.63,'930','51065',314,350);
INSERT INTO "communes" VALUES('63','Maringues','24',2748,2503,22.11,'1104','51024',279,387);
INSERT INTO "communes" VALUES('63','Saint-Hilaire','28',194,185,17.63,'327','51228',406,596);
INSERT INTO "communes" VALUES('63','Vertolaye','27',590,612,10.76,'1523','50722',486,1363);
INSERT INTO "communes" VALUES('63','Saint-Pierre-Colamine','05',235,226,17.2,'709','50590',706,1223);
INSERT INTO "communes" VALUES('63','Pessat-Villeneuve','33',507,471,6.26,'912','51032',313,356);
INSERT INTO "communes" VALUES('63','Brassac-les-Mines','20',3290,3249,7.2,'1103','50460',395,533);
INSERT INTO "communes" VALUES('63','Mazaye','35',697,560,21.73,'582','50873',676,958);
INSERT INTO "communes" VALUES('63','Buxières-sous-Montaigut','26',239,243,10.88,'568','51337',491,631);
INSERT INTO "communes" VALUES('63','Rentières','03',103,106,15.59,'847','50463',520,1095);
INSERT INTO "communes" VALUES('63','Mont-Dore','35',1356,1684,35.87,'525','50640',897,1883);
INSERT INTO "communes" VALUES('63','Châtel-Guyon','33',6222,5219,14.06,'809','51025',374,721);
INSERT INTO "communes" VALUES('63','Moureuille','26',306,267,16.83,'634','51297',454,625);
INSERT INTO "communes" VALUES('63','Mons','32',432,338,13.82,'1200','51113',261,375);
INSERT INTO "communes" VALUES('63','Limons','24',704,628,14.88,'1232','51082',262,305);
INSERT INTO "communes" VALUES('63','Parentignat','44',476,489,3.71,'1060','50593',367,456);
INSERT INTO "communes" VALUES('63','Neschers','08',870,673,9.78,'919','50656',365,580);
INSERT INTO "communes" VALUES('63','Domaize','39',382,322,14.6,'1333','50764',336,702);
INSERT INTO "communes" VALUES('63','Valcivières','02',214,215,32.96,'1621','50658',651,1556);
INSERT INTO "communes" VALUES('63','Fayet-le-Château','39',314,218,12.54,'1194','50754',490,760);
INSERT INTO "communes" VALUES('63','Sermentizon','15',522,495,18.41,'1293','50847',314,535);
INSERT INTO "communes" VALUES('63','Mayres','04',181,178,12.49,'1509','50431',608,926);
INSERT INTO "communes" VALUES('63','Espinchal','05',100,106,8.85,'605','50438',980,1230);
INSERT INTO "communes" VALUES('63','Saint-Sauves-d''Auvergne','45',1143,1052,49.86,'390','50674',710,1328);
INSERT INTO "communes" VALUES('63','Saint-Nectaire','08',725,672,33.26,'729','50653',609,1011);
INSERT INTO "communes" VALUES('63','Veyre-Monton','48',3405,3442,12.11,'912','50752',347,621);
INSERT INTO "communes" VALUES('63','Busséol','49',187,188,5.68,'1019','50768',429,724);
INSERT INTO "communes" VALUES('63','Chalus','40',185,157,6.58,'970','50518',417,647);
INSERT INTO "communes" VALUES('63','<NAME>','33',484,372,5.31,'915','51075',323,356);
INSERT INTO "communes" VALUES('63','Beauregard-l''Évêque','47',1312,1159,12.02,'1070','50901',295,390);
INSERT INTO "communes" VALUES('63','<NAME>','19',619,591,17.45,'1008','50557',376,567);
INSERT INTO "communes" VALUES('63','La Roche-Blanche','48',3188,2917,11.6,'877','50779',348,744);
INSERT INTO "communes" VALUES('63','Combronde','14',2030,1866,18,'835','51090',356,701);
INSERT INTO "communes" VALUES('63','Mézel','47',1902,1503,8.4,'1006','50839',313,603);
INSERT INTO "communes" VALUES('63','Lempty','22',357,266,4.76,'1105','50920',308,372);
INSERT INTO "communes" VALUES('63','Saint-Bonnet-le-Bourg','41',146,126,20.04,'1413','50483',836,1145);
INSERT INTO "communes" VALUES('63','Villeneuve-les-Cerfs','32',506,391,9.89,'1105','51122',311,401);
INSERT INTO "communes" VALUES('63','Novacelles','04',152,146,14.43,'1459','50486',669,995);
INSERT INTO "communes" VALUES('63','Verrières','08',74,51,3.28,'777','50635',560,774);
INSERT INTO "communes" VALUES('63','Chastreix','21',243,273,45.12,'443','50569',895,1883);
INSERT INTO "communes" VALUES('63','Usson','44',270,194,5.43,'1114','50586',394,633);
INSERT INTO "communes" VALUES('63','Charbonnières-les-Vieilles','23',988,862,32.62,'735','51105',472,755);
INSERT INTO "communes" VALUES('63','Villeneuve','40',156,131,4.23,'947','50527',436,673);
INSERT INTO "communes" VALUES('63','Arconsat','43',634,717,22.63,'1529','50988',631,1287);
INSERT INTO "communes" VALUES('63','Virlet','26',273,245,17.37,'402','51283',460,633);
INSERT INTO "communes" VALUES('63','Montcel','14',420,266,9.43,'811','51127',368,600);
INSERT INTO "communes" VALUES('63','Noalhat','09',232,160,5.13,'1244','51017',275,356);
INSERT INTO "communes" VALUES('63','Chaméane','44',146,132,10.91,'1238','50571',550,845);
INSERT INTO "communes" VALUES('63','Courpière','15',4461,4610,31.82,'1335','50839',297,542);
INSERT INTO "communes" VALUES('63','Solignat','19',468,420,11.07,'928','50573',410,855);
INSERT INTO "communes" VALUES('63','Saint-Genès-Champanelle','56',3155,2688,51.58,'758','50800',660,1252);
INSERT INTO "communes" VALUES('63','La Chapelle-sur-Usson','20',78,66,6.78,'1182','50518',517,728);
INSERT INTO "communes" VALUES('63','Saint-Jean-des-Ollières','39',462,402,19.56,'1221','50716',470,792);
INSERT INTO "communes" VALUES('63','Malintrat','59',941,870,8.16,'944','50906',313,332);
INSERT INTO "communes" VALUES('63','La Bourboule','35',1925,2043,12.74,'447','50654',812,1408);
INSERT INTO "communes" VALUES('63','Saint-Hilaire-les-Monges','29',100,115,10.7,'363','50904',620,856);
INSERT INTO "communes" VALUES('63','Montaigut-le-Blanc','08',776,601,22.26,'837','50651',474,879);
INSERT INTO "communes" VALUES('63','Reignat','47',345,241,4.1,'1136','50833',335,460);
INSERT INTO "communes" VALUES('63','Auzat-la-Combelle','20',2060,2045,12.74,'1091','50503',389,705);
INSERT INTO "communes" VALUES('63','Saint-Victor-Montvianeix','43',258,274,45.18,'1408','51045',319,1224);
INSERT INTO "communes" VALUES('63','Saint-Genès-la-Tourette','44',183,176,18.49,'1261','50568',639,1046);
INSERT INTO "communes" VALUES('63','Cournols','37',233,239,10.76,'774','50719',516,930);
INSERT INTO "communes" VALUES('63','Parent','49',790,658,3.76,'993','50693',344,652);
INSERT INTO "communes" VALUES('63','Arlanc','04',1941,2017,32.19,'1542','50459',547,943);
INSERT INTO "communes" VALUES('63','Saint-Maurice-près-Pionsat','28',370,388,30.88,'293','51184',400,654);
INSERT INTO "communes" VALUES('63','Pérignat-sur-Allier','06',1445,1241,4.9,'995','50809',312,389);
INSERT INTO "communes" VALUES('63','Aubiat','01',883,717,14.79,'923','51086',323,385);
INSERT INTO "communes" VALUES('63','Prompsat','14',435,373,4.23,'824','51055',372,669);
INSERT INTO "communes" VALUES('63','Saint-Floret','08',268,248,12.16,'856','50612',476,929);
INSERT INTO "communes" VALUES('63','Orléat','22',2040,1622,26.43,'1205','50956',283,398);
INSERT INTO "communes" VALUES('63','Saint-Ferréol-des-Côtes','02',548,575,15.03,'1523','50587',526,1110);
INSERT INTO "communes" VALUES('63','Combrailles','29',218,202,20.61,'329','50934',550,748);
INSERT INTO "communes" VALUES('63','Aulhat-Saint-Privat','19',381,296,8.56,'1084','50637',385,661);
INSERT INTO "communes" VALUES('63','Pérignat-lès-Sarliève','55',2696,2219,3.9,'892','50818',346,520);
INSERT INTO "communes" VALUES('63','Saint-Clément-de-Valorgue','38',221,215,13.37,'1761','50556',888,1276);
INSERT INTO "communes" VALUES('63','Saint-Martin-des-Plains','44',146,130,3.87,'1093','50546',393,485);
INSERT INTO "communes" VALUES('63','Bromont-Lamothe','31',954,766,38.07,'536','50934',574,906);
INSERT INTO "communes" VALUES('63','Labessette','45',71,92,10.45,'223','50544',524,806);
INSERT INTO "communes" VALUES('63','Montmorin','06',610,518,13.65,'1137','50771',370,703);
INSERT INTO "communes" VALUES('63','Sauvagnat-Sainte-Marthe','19',511,368,6.41,'971','50655',349,605);
INSERT INTO "communes" VALUES('63','Neuville','06',342,311,11.55,'1222','50827',342,494);
INSERT INTO "communes" VALUES('63','Saint-Just','50',171,172,19.42,'1613','50520',600,1156);
INSERT INTO "communes" VALUES('63','Corent','48',679,569,2.68,'953','50741',330,610);
INSERT INTO "communes" VALUES('63','Chaumont-le-Bourg','04',217,201,8.28,'1594','50500',550,860);
INSERT INTO "communes" VALUES('63','Montpeyroux','19',366,328,3.29,'964','50692',342,484);
INSERT INTO "communes" VALUES('63','Authezat','48',650,501,5.79,'942','50702',337,452);
INSERT INTO "communes" VALUES('63','Pignols','49',295,210,9.29,'1052','50716',450,781);
INSERT INTO "communes" VALUES('63','Beaumont-lès-Randan','32',276,192,5.99,'1164','51108',290,381);
INSERT INTO "communes" VALUES('63','Saint-Babel','19',907,753,19.31,'1070','50663',419,800);
INSERT INTO "communes" VALUES('63','Aigueperse','01',2561,2505,10.5,'962','51136',338,422);
INSERT INTO "communes" VALUES('63','Aix-la-Fayette','41',73,100,13,'1316','50574',842,1109);
INSERT INTO "communes" VALUES('63','Saint-Quentin-sur-Sauxillanges','44',99,94,8.25,'1175','50611',447,795);
INSERT INTO "communes" VALUES('63','Grandval','36',114,114,9.83,'1455','50665',635,1048);
INSERT INTO "communes" VALUES('63','Chidrac','08',505,376,3.57,'903','50616',445,644);
INSERT INTO "communes" VALUES('63','Davayat','14',572,509,2.33,'858','51052',338,367);
INSERT INTO "communes" VALUES('63','Saint-Gal-sur-Sioule','25',127,123,9.52,'748','51234',310,612);
INSERT INTO "communes" VALUES('63','Saint-Rémy-de-Blot','25',224,198,15.22,'660','51197',346,665);
INSERT INTO "communes" VALUES('63','Marcillat','25',242,202,11.76,'778','51200',340,650);
INSERT INTO "communes" VALUES('63','Fayet-Ronaye','41',99,143,20.25,'1333','50473',823,1145);
INSERT INTO "communes" VALUES('63','Châteldon','09',763,737,28.43,'1315','51085',285,862);
INSERT INTO "communes" VALUES('63','Chapdes-Beaufort','31',1015,962,31.79,'586','50992',510,923);
INSERT INTO "communes" VALUES('63','Roche-d''Agoux','28',90,84,5.56,'328','51160',576,764);
INSERT INTO "communes" VALUES('63','Servant','25',524,521,26.56,'658','51265',333,724);
INSERT INTO "communes" VALUES('63','Saint-Sylvestre-Pragoulin','32',1082,1079,23.81,'1175','51171',256,397);
INSERT INTO "communes" VALUES('63','Saint-Georges-de-Mons','23',2151,2262,34.15,'558','51044',440,869);
INSERT INTO "communes" VALUES('63','Peschadoires','22',2111,1943,20.67,'1284','50918',280,424);
INSERT INTO "communes" VALUES('63','Villosanges','29',375,397,32.8,'344','51015',527,742);
INSERT INTO "communes" VALUES('63','Herment','18',283,352,9.57,'258','50837',671,826);
INSERT INTO "communes" VALUES('63','Nohanent','61',1878,1796,4.2,'798','50898',385,634);
INSERT INTO "communes" VALUES('63','Saint-Amant-Tallende','37',1835,1704,4.97,'857','50743',408,686);
INSERT INTO "communes" VALUES('63','Saillant','50',282,255,17.42,'1753','50508',835,1202);
INSERT INTO "communes" VALUES('63','Saint-Germain-l''Herm','41',497,513,36.68,'1339','50510',860,1135);
INSERT INTO "communes" VALUES('63','Ardes','03',607,547,16.59,'878','50449',485,1039);
INSERT INTO "communes" VALUES('63','Mazoires','03',101,104,42.19,'786','50439',640,1291);
INSERT INTO "communes" VALUES('63','Grandeyrolles','08',61,53,5.28,'800','50641',518,852);
INSERT INTO "communes" VALUES('63','Loubeyrat','23',1171,862,23.93,'749','51040',440,869);
INSERT INTO "communes" VALUES('63','Lussat','30',899,713,9.17,'976','50932',311,368);
INSERT INTO "communes" VALUES('63','Romagnat','55',8089,8173,16.84,'849','50811',391,837);
INSERT INTO "communes" VALUES('63','Saint-Pierre-la-Bourlhonne','27',137,159,11.89,'1563','50750',688,1542);
INSERT INTO "communes" VALUES('63','Saint-Victor-la-Rivière','05',243,216,18.89,'671','50613',780,1276);
INSERT INTO "communes" VALUES('63','Bourg-Lastic','07',914,1010,40.46,'246','50719',637,931);
INSERT INTO "communes" VALUES('63','<NAME>','28',207,226,23.37,'474','51248',534,767);
INSERT INTO "communes" VALUES('63','Vitrac','23',331,319,13.23,'601','51077',393,759);
INSERT INTO "communes" VALUES('63','Vinzelles','22',316,313,13.46,'1179','51029',272,354);
INSERT INTO "communes" VALUES('63','Beaulieu','40',405,402,8.65,'1054','50494',382,495);
INSERT INTO "communes" VALUES('63','Entraigues','17',634,567,9.72,'1027','50989',307,341);
INSERT INTO "communes" VALUES('63','Bagnols','21',493,532,42.46,'328','50556',679,1053);
INSERT INTO "communes" VALUES('63','Madriat','03',117,110,4.69,'945','50481',453,843);
INSERT INTO "communes" VALUES('63','<NAME>','31',619,582,24.25,'469','50935',612,884);
INSERT INTO "communes" VALUES('63','Saint-Martin-d''Ollières','20',143,160,14.47,'1237','50468',547,1120);
INSERT INTO "communes" VALUES('63','Apchat','03',187,208,35.86,'899','50433',477,989);
INSERT INTO "communes" VALUES('63','Malauzat','34',1063,894,5.99,'797','50941',377,562);
INSERT INTO "communes" VALUES('63','Puy-Saint-Gulmier','29',142,159,20.19,'323','50879',616,853);
INSERT INTO "communes" VALUES('63','Ceilloux','39',158,151,8.99,'1309','50725',474,796);
INSERT INTO "communes" VALUES('63','Martres-d''Artière','30',1982,1315,14.96,'1028','50928',294,369);
INSERT INTO "communes" VALUES('63','Saint-Alyre-d''Arlanc','04',172,185,24.19,'1447','50409',820,1053);
INSERT INTO "communes" VALUES('64','Juxue','13',231,192,15.17,'-3759','48040',91,657);
INSERT INTO "communes" VALUES('64','Saint-Boès','29',365,366,9.49,'-3495','48362',65,177);
INSERT INTO "communes" VALUES('64','Lanne-en-Barétous','02',492,495,41.48,'-3440','47904',231,1568);
INSERT INTO "communes" VALUES('64','Lespourcy','23',171,114,7.09,'-2763','48178',260,364);
INSERT INTO "communes" VALUES('64','Bidache','09',1284,1067,30.43,'-3864','48315',0,162);
INSERT INTO "communes" VALUES('64','Cuqueron','21',180,225,3.48,'-3209','48130',134,290);
INSERT INTO "communes" VALUES('64','Saint-Gladie-Arrive-Munein','38',176,206,6.53,'-3632','48201',53,201);
INSERT INTO "communes" VALUES('64','Aubous','11',51,53,3.78,'-2746','48419',124,255);
INSERT INTO "communes" VALUES('64','<NAME>-Clairence','14',997,881,23.39,'-3992','48256',7,192);
INSERT INTO "communes" VALUES('64','Boucau','07',7762,6999,5.82,'-4248','48360',0,51);
INSERT INTO "communes" VALUES('64','Urcuit','52',2172,1793,13.69,'-4081','48317',0,66);
INSERT INTO "communes" VALUES('64','Came','09',847,681,33.9,'-3830','48304',1,177);
INSERT INTO "communes" VALUES('64','Lacq','95',705,658,17.05,'-3284','48236',88,190);
INSERT INTO "communes" VALUES('64','Castetnau-Camblong','24',434,368,11.37,'-3465','48141',98,207);
INSERT INTO "communes" VALUES('64','Masparraute','36',254,211,8.16,'-3812','48211',26,123);
INSERT INTO "communes" VALUES('64','Goès','27',562,543,4.76,'-3254','47999',227,363);
INSERT INTO "communes" VALUES('64','Morlanne','05',589,432,12.94,'-3190','48348',84,221);
INSERT INTO "communes" VALUES('64','Espéchède','23',163,142,9.32,'-2799','48130',313,354);
INSERT INTO "communes" VALUES('64','Aldudes','33',372,396,23.27,'-4180','47885',345,1000);
INSERT INTO "communes" VALUES('64','Escot','01',131,105,22.66,'-3270','47863',290,1817);
INSERT INTO "communes" VALUES('64','Ozenx-Montestrucq','15',363,370,16.34,'-3481','48269',69,188);
INSERT INTO "communes" VALUES('64','Eysus','27',704,612,6.72,'-3250','47932',236,416);
INSERT INTO "communes" VALUES('64','Arthez-de-Béarn','03',1796,1578,27.92,'-3280','48294',92,231);
INSERT INTO "communes" VALUES('64','Artiguelouve','19',1544,1253,10.74,'-3124','48131',137,300);
INSERT INTO "communes" VALUES('64','Sauvagnon','19',2989,2359,16.74,'-3027','48227',166,283);
INSERT INTO "communes" VALUES('64','Aubertin','17',656,629,17.16,'-3134','48082',150,347);
INSERT INTO "communes" VALUES('64','Arcangues','41',3111,2724,17.47,'-4286','48263',4,140);
INSERT INTO "communes" VALUES('64','Pardies-Piétat','26',448,377,7.47,'-2929','48015',216,399);
INSERT INTO "communes" VALUES('64','Ilharre','36',139,135,10.55,'-3755','48214',22,142);
INSERT INTO "communes" VALUES('64','Jaxu','35',163,165,10.65,'-3921','47998',179,555);
INSERT INTO "communes" VALUES('64','Argagnon','03',729,710,9.33,'-3354','48285',66,209);
INSERT INTO "communes" VALUES('64','Tarsacq','21',511,422,4.23,'-3194','48175',116,261);
INSERT INTO "communes" VALUES('64','Labastide-Villefranche','37',342,292,15.27,'-3730','48281',21,156);
INSERT INTO "communes" VALUES('64','Uhart-Cize','35',691,599,11.66,'-3979','47961',149,1064);
INSERT INTO "communes" VALUES('64','Carrère','40',200,168,6.61,'-2908','48315',164,252);
INSERT INTO "communes" VALUES('64','Sallespisse','29',592,562,15.18,'-3388','48360',78,180);
INSERT INTO "communes" VALUES('64','Sault-de-Navailles','29',830,785,22.26,'-3344','48390',53,180);
INSERT INTO "communes" VALUES('64','Saint-Girons-en-Béarn','29',159,131,5.2,'-3519','48393',76,156);
INSERT INTO "communes" VALUES('64','Aste-Béon','16',283,231,19.05,'-3055','47803',438,1800);
INSERT INTO "communes" VALUES('64','Beyrie-en-Béarn','19',179,131,2.72,'-3120','48192',167,245);
INSERT INTO "communes" VALUES('64','Aurions-Idernes','18',110,117,6.32,'-2750','48376',136,284);
INSERT INTO "communes" VALUES('64','Burosse-Mendousse','11',58,70,5.62,'-2831','48347',142,283);
INSERT INTO "communes" VALUES('64','Autevielle-Saint-Martin-Bideren','38',173,121,5.87,'-3676','48212',37,197);
INSERT INTO "communes" VALUES('64','Vialer','11',192,180,7.29,'-2788','48336',138,286);
INSERT INTO "communes" VALUES('64','Arrosès','18',148,140,9.64,'-2720','48379',129,265);
INSERT INTO "communes" VALUES('64','Maucor','23',505,461,4.92,'-2911','48172',235,344);
INSERT INTO "communes" VALUES('64','Artigueloutan','31',914,722,8.12,'-2870','48083',229,370);
INSERT INTO "communes" VALUES('64','Viellenave-de-Navarrenx','24',168,140,5.68,'-3477','48166',98,185);
INSERT INTO "communes" VALUES('64','Bellocq','37',895,685,12.65,'-3614','48352',18,159);
INSERT INTO "communes" VALUES('64','Osserain-Rivareyte','36',234,221,6.56,'-3653','48197',44,187);
INSERT INTO "communes" VALUES('64','Ainharp','20',147,142,14.07,'-3630','48067',129,426);
INSERT INTO "communes" VALUES('64','Arbérats-Sillègue','36',299,270,5.29,'-3702','48157',60,153);
INSERT INTO "communes" VALUES('64','Laà-Mondrans','15',402,413,6.1,'-3455','48280',63,174);
INSERT INTO "communes" VALUES('64','Mascaraàs-Haron','11',125,128,8.76,'-2845','48378',130,272);
INSERT INTO "communes" VALUES('64','Mialos','05',100,99,4.54,'-3050','48327',109,244);
INSERT INTO "communes" VALUES('64','Ouillon','23',463,355,6.38,'-2848','48134',288,338);
INSERT INTO "communes" VALUES('64','Salles-Mongiscard','29',298,258,5.84,'-3524','48330',37,175);
INSERT INTO "communes" VALUES('64','Préchacq-Navarrenx','24',168,153,5.1,'-3393','48085',139,262);
INSERT INTO "communes" VALUES('64','Peyrelongue-Abos','18',146,120,8.66,'-2713','48248',199,338);
INSERT INTO "communes" VALUES('64','Sauguis-Saint-Étienne','39',164,201,8.81,'-3583','47947',175,728);
INSERT INTO "communes" VALUES('64','Itxassou','10',2032,1770,39.37,'-4158','48144',31,924);
INSERT INTO "communes" VALUES('64','Alçay-Alçabéhéty-Sunharette','39',232,246,34.4,'-3606','47884',217,1535);
INSERT INTO "communes" VALUES('64','Verdets','27',281,270,5.62,'-3312','48028',177,250);
INSERT INTO "communes" VALUES('64','Chéraute','20',1115,1102,35.26,'-3561','48035',127,558);
INSERT INTO "communes" VALUES('64','Bonloc','12',371,283,1.02,'-4003','48187',51,146);
INSERT INTO "communes" VALUES('64','Idaux-Mendy','20',268,263,9.67,'-3613','47979',152,331);
INSERT INTO "communes" VALUES('64','Riupeyrous','23',162,151,4.81,'-2853','48224',236,311);
INSERT INTO "communes" VALUES('64','Ascarat','33',312,275,5.82,'-3990','47967',120,446);
INSERT INTO "communes" VALUES('64','Mourenx','15',7068,7572,6.34,'-3272','48198',95,182);
INSERT INTO "communes" VALUES('64','Larreule','05',160,185,10.05,'-3121','48309',104,230);
INSERT INTO "communes" VALUES('64','Bastanès','24',102,97,5.26,'-3452','48164',99,265);
INSERT INTO "communes" VALUES('64','Casteide-Candau','03',221,184,9.24,'-3221','48350',79,215);
INSERT INTO "communes" VALUES('64','Castéra-Loubix','22',54,49,3.43,'-2634','48225',208,323);
INSERT INTO "communes" VALUES('64','Doazon','03',189,156,6.14,'-3209','48282',129,248);
INSERT INTO "communes" VALUES('64','Serres-Sainte-Marie','03',472,456,9.49,'-3211','48239',124,252);
INSERT INTO "communes" VALUES('64','Ahetze','41',1809,1318,10.56,'-4342','48229',7,100);
INSERT INTO "communes" VALUES('64','Méritein','24',298,262,6.9,'-3445','48150',94,269);
INSERT INTO "communes" VALUES('64','Poey-de-Lescar','19',1533,1295,6.74,'-3118','48167',138,185);
INSERT INTO "communes" VALUES('64','Ger','32',1916,1648,31.49,'-2654','48059',332,435);
INSERT INTO "communes" VALUES('64','Sare','10',2508,2185,51.34,'-4352','48125',27,881);
INSERT INTO "communes" VALUES('64','Hendaye','45',15370,12624,7.95,'-4568','48176',0,108);
INSERT INTO "communes" VALUES('64','Aincille','35',135,103,6.26,'-3924','47939',198,755);
INSERT INTO "communes" VALUES('64','Lasseube','17',1679,1529,48.6,'-3128','48023',170,416);
INSERT INTO "communes" VALUES('64','Lucgarier','32',284,288,5.67,'-2809','48040',289,418);
INSERT INTO "communes" VALUES('64','Eaux-Bonnes','16',415,436,38.52,'-3032','47748',520,2619);
INSERT INTO "communes" VALUES('64','Soumoulou','32',1436,1019,2.79,'-2807','48074',272,309);
INSERT INTO "communes" VALUES('64','Tadousse-Ussau','11',79,79,4.73,'-2809','48383',119,263);
INSERT INTO "communes" VALUES('64','Ostabat-Asme','13',198,227,15.26,'-3786','48062',66,440);
INSERT INTO "communes" VALUES('64','Castillon (<NAME>)','18',56,57,4.72,'-2738','48311',154,307);
INSERT INTO "communes" VALUES('64','Caro','35',184,147,4.01,'-3949','47942',174,305);
INSERT INTO "communes" VALUES('64','Malaussanne','05',411,419,17.49,'-3122','48399',76,221);
INSERT INTO "communes" VALUES('64','Larrau','39',199,214,126.8,'-3658','47799',319,2022);
INSERT INTO "communes" VALUES('64','Lacarry-Arhan-Charritte-de-Haut','39',129,124,23.32,'-3623','47872',240,1464);
INSERT INTO "communes" VALUES('64','Accous','01',426,433,60.68,'-3263','47749',420,2458);
INSERT INTO "communes" VALUES('64','Agnos','28',880,751,9.18,'-3284','47959',247,535);
INSERT INTO "communes" VALUES('64','Diusse','11',153,179,5.31,'-2779','48404',119,249);
INSERT INTO "communes" VALUES('64','Sarrance','01',196,233,46.75,'-3265','47835',314,1869);
INSERT INTO "communes" VALUES('64','Labastide-Monréjeau','03',536,349,8.19,'-3180','48214',111,260);
INSERT INTO "communes" VALUES('64','Séméacq-Blachon','18',174,178,10.92,'-2721','48333',153,298);
INSERT INTO "communes" VALUES('64','Rontignon','48',737,686,7.06,'-2963','48069',189,384);
INSERT INTO "communes" VALUES('64','Crouseilles','18',144,140,7.9,'-2695','48361',144,255);
INSERT INTO "communes" VALUES('64','Aren','28',223,181,7.39,'-3361','48068',154,269);
INSERT INTO "communes" VALUES('64','Lannecaube','18',165,150,8.67,'-2832','48316',154,292);
INSERT INTO "communes" VALUES('64','Bielle','16',444,436,25.37,'-3076','47839',420,1973);
INSERT INTO "communes" VALUES('64','Mazerolles','05',1014,752,11.71,'-3118','48277',116,195);
INSERT INTO "communes" VALUES('64','Aubin','40',261,183,5.84,'-3057','48267',142,262);
INSERT INTO "communes" VALUES('64','Domezain-Berraute','36',508,454,21.56,'-3669','48141',54,212);
INSERT INTO "communes" VALUES('64','Saint-Étienne-de-Baïgorry','33',1601,1526,69.44,'-4092','47972',146,1049);
INSERT INTO "communes" VALUES('64','Gerderest','18',126,108,6.56,'-2793','48234',219,341);
INSERT INTO "communes" VALUES('64','Labets-Biscay','36',154,166,8.79,'-3771','48205',20,122);
INSERT INTO "communes" VALUES('64','Sévignacq-Meyracq','04',529,535,14.81,'-3054','47904',296,618);
INSERT INTO "communes" VALUES('64','Féas','02',441,374,13.71,'-3362','47951',211,475);
INSERT INTO "communes" VALUES('64','Musculdy','20',239,278,24.06,'-3669','47996',180,813);
INSERT INTO "communes" VALUES('64','Bouillon','05',147,98,3.27,'-3153','48327',98,200);
INSERT INTO "communes" VALUES('64','Garlin','11',1379,1205,18.3,'-2898','48401',110,223);
INSERT INTO "communes" VALUES('64','Espès-Undurein','20',501,474,9.78,'-3574','48075',105,233);
INSERT INTO "communes" VALUES('64','Lonçon','05',161,101,5.52,'-3069','48300',135,258);
INSERT INTO "communes" VALUES('64','Lalonquette','40',279,225,5.32,'-2954','48320',148,228);
INSERT INTO "communes" VALUES('64','Mouguerre','52',4669,3757,22.57,'-4170','48298',0,146);
INSERT INTO "communes" VALUES('64','Taron-Sadirac-Viellenave','11',189,197,13.86,'-2875','48344',135,251);
INSERT INTO "communes" VALUES('64','Coublucq','05',105,110,5.54,'-3001','48369',118,202);
INSERT INTO "communes" VALUES('64','Menditte','20',199,188,6.33,'-3598','47958',176,575);
INSERT INTO "communes" VALUES('64','Puyoô','29',1183,1032,9.32,'-3609','48362',17,155);
INSERT INTO "communes" VALUES('64','Abidos','15',236,200,3.06,'-3290','48221',86,170);
INSERT INTO "communes" VALUES('64','Arget','05',93,83,4,'-3183','48381',75,182);
INSERT INTO "communes" VALUES('64','Lescar','19',9981,8191,26.5,'-3080','48147',142,203);
INSERT INTO "communes" VALUES('64','Bassussarry','41',2405,1817,6.51,'-4276','48274',2,85);
INSERT INTO "communes" VALUES('64','Pardies','21',909,998,5.82,'-3247','48185',102,165);
INSERT INTO "communes" VALUES('64','Charre','24',200,227,11.41,'-3560','48130',91,207);
INSERT INTO "communes" VALUES('64','Andrein','38',133,111,7.8,'-3597','48214',57,221);
INSERT INTO "communes" VALUES('64','Saint-Martin-d''Arberoue','12',324,304,14.69,'-3926','48161',96,424);
INSERT INTO "communes" VALUES('64','Maspie-Lalonquère-Juillacq','18',280,225,10.76,'-2761','48248',179,336);
INSERT INTO "communes" VALUES('64','Coarraze','25',2113,2067,14.84,'-2852','47967',258,450);
INSERT INTO "communes" VALUES('64','Ribarrouy','11',80,78,2.27,'-2899','48358',170,231);
INSERT INTO "communes" VALUES('64','Lacommande','17',231,172,3.33,'-3161','48086',150,262);
INSERT INTO "communes" VALUES('64','Momy','18',129,108,6,'-2716','48219',224,354);
INSERT INTO "communes" VALUES('64','Lasserre','18',95,101,4.23,'-2689','48349',154,257);
INSERT INTO "communes" VALUES('64','Caubios-Loos','19',491,410,7.2,'-3046','48240',150,278);
INSERT INTO "communes" VALUES('64','Bétracq','18',49,65,4.7,'-2658','48348',151,273);
INSERT INTO "communes" VALUES('64','Lanneplaà','29',321,247,7.26,'-3508','48291',70,207);
INSERT INTO "communes" VALUES('64','Lespielle','18',125,140,7.11,'-2757','48304',158,308);
INSERT INTO "communes" VALUES('64','Aussevielle','19',797,480,3.26,'-3131','48172',135,241);
INSERT INTO "communes" VALUES('64','Pau','99',81166,78800,31.51,'-3007','48112',165,245);
INSERT INTO "communes" VALUES('64','Sedzère','23',414,338,12.59,'-2789','48156',287,374);
INSERT INTO "communes" VALUES('64','Arzacq-Arraziguet','05',1010,889,15.26,'-3054','48373',95,238);
INSERT INTO "communes" VALUES('64','Lohitzun-Oyhercq','36',201,217,17.52,'-3682','48085',107,350);
INSERT INTO "communes" VALUES('64','Viven','40',174,156,3.63,'-3008','48293',139,267);
INSERT INTO "communes" VALUES('64','Lée','31',1198,779,2.94,'-2920','48097',205,251);
INSERT INTO "communes" VALUES('64','Irouléguy','33',326,290,9.38,'-4041','47975',166,810);
INSERT INTO "communes" VALUES('64','Préchacq-Josbaig','24',286,256,8.31,'-3387','48072',135,248);
INSERT INTO "communes" VALUES('64','Oloron-Sainte-Marie','98',10800,10988,68.31,'-3270','47993',194,1380);
INSERT INTO "communes" VALUES('64','Armendarits','13',380,356,17.27,'-3900','48113',99,403);
INSERT INTO "communes" VALUES('64','Luxe-Sumberraute','36',320,255,8.31,'-3792','48162',53,245);
INSERT INTO "communes" VALUES('64','Rébénacq','04',681,673,10.5,'-3037','47955',257,516);
INSERT INTO "communes" VALUES('64','Lamayou','22',183,214,9.51,'-2627','48202',250,345);
INSERT INTO "communes" VALUES('64','Poey-d''Oloron','27',184,178,4.79,'-3332','48052',160,254);
INSERT INTO "communes" VALUES('64','Mont','15',1025,838,18.24,'-3322','48261',69,202);
INSERT INTO "communes" VALUES('64','Baliracq-Maumusson','11',145,115,6.06,'-2879','48384',120,224);
INSERT INTO "communes" VALUES('64','Ousse','31',1519,0,4.46,'-2893','48092',223,334);
INSERT INTO "communes" VALUES('64','Lacarre','35',153,129,4.4,'-3890','47989',194,595);
INSERT INTO "communes" VALUES('64','Labatmale','32',263,203,3.32,'-2765','47981',350,480);
INSERT INTO "communes" VALUES('64','Biron','15',605,505,4,'-3413','48291',57,171);
INSERT INTO "communes" VALUES('64','Orriule','38',145,132,6.36,'-3545','48229',87,240);
INSERT INTO "communes" VALUES('64','Bournos','40',339,257,5.74,'-3026','48266',176,277);
INSERT INTO "communes" VALUES('64','Pagolle','36',261,254,15.9,'-3696','48027',130,642);
INSERT INTO "communes" VALUES('64','Serres-Castet','23',3647,3038,13.71,'-2990','48207',177,288);
INSERT INTO "communes" VALUES('64','Mendionde','12',816,705,21.47,'-4039','48156',58,846);
INSERT INTO "communes" VALUES('64','Hagetaubin','03',542,441,18.84,'-3279','48344',64,128);
INSERT INTO "communes" VALUES('64','Osse-en-Aspe','01',327,314,43.03,'-3282','47773',375,1760);
INSERT INTO "communes" VALUES('64','Guiche','09',907,730,24.85,'-3934','48346',0,177);
INSERT INTO "communes" VALUES('64','Bernadets','23',542,520,3.68,'-2917','48195',220,325);
INSERT INTO "communes" VALUES('64','Auga','40',140,113,4.03,'-3020','48308',123,258);
INSERT INTO "communes" VALUES('64','Guinarthe-Parenties','38',239,222,2.48,'-3650','48204',44,79);
INSERT INTO "communes" VALUES('64','Saint-Armou','23',602,512,12.38,'-2938','48234',178,310);
INSERT INTO "communes" VALUES('64','Gabaston','23',593,562,12.73,'-2828','48178',265,345);
INSERT INTO "communes" VALUES('64','Casteide-Cami','03',239,167,6.8,'-3173','48248',150,262);
INSERT INTO "communes" VALUES('64','Asasp-Arros','28',505,547,23.59,'-3278','47914',243,1093);
INSERT INTO "communes" VALUES('64','Loubieng','15',453,448,23.43,'-3439','48257',73,224);
INSERT INTO "communes" VALUES('64','Barzun','32',595,464,8.19,'-2740','48015',323,435);
INSERT INTO "communes" VALUES('64','Mendive','35',193,182,41.77,'-3853','47924',260,1441);
INSERT INTO "communes" VALUES('64','Ainhoa','10',683,599,16.19,'-4261','48119',52,649);
INSERT INTO "communes" VALUES('64','Saubole','23',127,78,5.1,'-2735','48125',318,391);
INSERT INTO "communes" VALUES('64','Bidos','27',1166,1195,1.36,'-3269','47976',213,267);
INSERT INTO "communes" VALUES('64','Hasparren','12',6140,5480,77.01,'-4046','48205',7,610);
INSERT INTO "communes" VALUES('64','Gurs','24',401,383,10.96,'-3433','48097',119,254);
INSERT INTO "communes" VALUES('64','Audaux','24',187,216,7.33,'-3476','48176',98,229);
INSERT INTO "communes" VALUES('64','Gère-Bélesten','16',174,167,12.82,'-3066','47810',439,1898);
INSERT INTO "communes" VALUES('64','Orsanco','36',98,96,9.35,'-3780','48103',72,307);
INSERT INTO "communes" VALUES('64','Lons','19',12147,11153,11.53,'-3052','48128',158,207);
INSERT INTO "communes" VALUES('64','Gelos','48',3656,3665,11.03,'-3008','48092',165,374);
INSERT INTO "communes" VALUES('64','Garris','36',291,301,3.13,'-3775','48158',73,219);
INSERT INTO "communes" VALUES('64','Lantabat','13',292,284,28.86,'-3845','48056',91,577);
INSERT INTO "communes" VALUES('64','Espoey','32',1025,824,13.43,'-2780','48048',284,405);
INSERT INTO "communes" VALUES('64','Saint-Just-Ibarre','13',244,255,30.03,'-3770','47994',172,1179);
INSERT INTO "communes" VALUES('64','Bussunarits-Sarrasquette','35',169,179,12.04,'-3893','47959',195,782);
INSERT INTO "communes" VALUES('64','Licq-Athérey','39',243,244,17.87,'-3570','47852',242,1097);
INSERT INTO "communes" VALUES('64','Bordes','25',2485,1941,7.27,'-2909','48040',208,361);
INSERT INTO "communes" VALUES('64','Sauvelade','15',268,221,11.86,'-3383','48213',92,251);
INSERT INTO "communes" VALUES('64','Saint-Abit','26',357,274,4.22,'-2923','48006',224,384);
INSERT INTO "communes" VALUES('64','Arrien','23',154,135,4.46,'-2769','48123',312,389);
INSERT INTO "communes" VALUES('64','Meillon','47',867,737,7.08,'-2945','48072',186,260);
INSERT INTO "communes" VALUES('64','Béost','16',213,197,43.5,'-3056','47770',484,2688);
INSERT INTO "communes" VALUES('64','Mont-Disse','11',78,67,5.35,'-2763','48397',125,264);
INSERT INTO "communes" VALUES('64','Aydius','01',100,80,34.72,'-3198','47780',551,2173);
INSERT INTO "communes" VALUES('64','Louvie-Soubiron','16',113,122,26.66,'-3056','47777',457,2038);
INSERT INTO "communes" VALUES('64','Laruns','16',1283,1431,248.96,'-3071','47764',458,2973);
INSERT INTO "communes" VALUES('64','Bilhères','16',163,157,17.19,'-3094','47843',480,1817);
INSERT INTO "communes" VALUES('64','Siros','19',618,596,2.21,'-3133','48160',128,143);
INSERT INTO "communes" VALUES('64','Castétis','29',600,657,9.06,'-3389','48299',56,182);
INSERT INTO "communes" VALUES('64','Bourdettes','26',412,320,2.24,'-2902','47996',233,388);
INSERT INTO "communes" VALUES('64','Aydie','11',140,136,7.86,'-2712','48410',129,258);
INSERT INTO "communes" VALUES('64','Nabas','24',122,113,6.4,'-3568','48147',78,216);
INSERT INTO "communes" VALUES('64','Arricau-Bordes','18',103,105,8.1,'-2746','48326',140,299);
INSERT INTO "communes" VALUES('64','Bunus','13',152,139,6.6,'-3785','48011',138,531);
INSERT INTO "communes" VALUES('64','Saint-Jean-Poudge','11',84,64,3.93,'-2801','48362',129,276);
INSERT INTO "communes" VALUES('64','Cambo-les-Bains','10',6518,4426,22.49,'-4153','48176',0,400);
INSERT INTO "communes" VALUES('64','Ogeu-les-Bains','27',1226,1081,23.07,'-3157','47941',256,440);
INSERT INTO "communes" VALUES('64','Arhansus','13',74,81,5.32,'-3747','48064',60,370);
INSERT INTO "communes" VALUES('64','Lourenties','32',352,276,8.94,'-2775','48098',320,383);
INSERT INTO "communes" VALUES('64','Escos','37',254,217,5.61,'-3705','48274',23,162);
INSERT INTO "communes" VALUES('64','Jatxou','41',1099,810,13.95,'-4185','48209',7,175);
INSERT INTO "communes" VALUES('64','Montaner','22',464,464,19.13,'-2606','48162',237,363);
INSERT INTO "communes" VALUES('64','Navarrenx','24',1075,1138,6.21,'-3440','48135',118,269);
INSERT INTO "communes" VALUES('64','Etsaut','01',80,104,34.95,'-3230','47680',560,2604);
INSERT INTO "communes" VALUES('64','Piets-Plasence-Moustrou','05',140,123,8.34,'-3155','48360',82,215);
INSERT INTO "communes" VALUES('64','Saint-Palais','36',1862,1699,7.54,'-3745','48142',52,275);
INSERT INTO "communes" VALUES('64','Balansun','29',244,207,10.73,'-3372','48324',84,208);
INSERT INTO "communes" VALUES('64','Louvie-Juzon','04',1101,981,55.65,'-3061','47875',318,2038);
INSERT INTO "communes" VALUES('64','Jasses','24',161,137,5.22,'-3426','48123',119,271);
INSERT INTO "communes" VALUES('64','Cabidos','05',189,133,7.26,'-3112','48379',85,233);
INSERT INTO "communes" VALUES('64','Ogenne-Camptort','24',243,211,11.81,'-3377','48125',157,290);
INSERT INTO "communes" VALUES('64','Arros-de-Nay','26',791,728,13.47,'-2915','47999',230,421);
INSERT INTO "communes" VALUES('64','Boeil-Bezing','25',1234,935,8.5,'-2892','48024',218,412);
INSERT INTO "communes" VALUES('64','Bougarber','19',725,649,10.29,'-3121','48219',154,269);
INSERT INTO "communes" VALUES('64','Moncayolle-Larrory-Mendibieu','20',334,343,16.27,'-3538','48073',171,363);
INSERT INTO "communes" VALUES('64','Arthez-d''Asson','26',501,510,7.32,'-2876','47877',329,494);
INSERT INTO "communes" VALUES('64','Pomps','05',254,179,7.77,'-3198','48324',90,138);
INSERT INTO "communes" VALUES('64','Athos-Aspis','38',185,203,5.9,'-3678','48238',33,141);
INSERT INTO "communes" VALUES('64','Assat','47',1736,1480,9.47,'-2930','48055',199,323);
INSERT INTO "communes" VALUES('64','Escurès','18',157,137,4.18,'-2734','48294',171,312);
INSERT INTO "communes" VALUES('64','Arnos','03',71,68,5.69,'-3188','48286',133,232);
INSERT INTO "communes" VALUES('64','Abère','23',147,133,5.81,'-2791','48211',239,346);
INSERT INTO "communes" VALUES('64','Lagor','15',1217,1256,20.97,'-3321','48214',82,252);
INSERT INTO "communes" VALUES('64','Bayonne','96',44820,40113,21.68,'-4236','48325',0,55);
INSERT INTO "communes" VALUES('64','Lichans-Sunhar','39',67,81,3.43,'-3566','47881',232,589);
INSERT INTO "communes" VALUES('64','Castillon (<NAME>)','03',289,244,6.71,'-3236','48295',122,231);
INSERT INTO "communes" VALUES('64','Anoye','18',150,140,9.65,'-2749','48216',199,344);
INSERT INTO "communes" VALUES('64','Orion','38',155,169,9.8,'-3555','48243',83,230);
INSERT INTO "communes" VALUES('64','Mouhous','11',36,38,3.3,'-2884','48322',166,252);
INSERT INTO "communes" VALUES('64','Baleix','22',137,119,6.47,'-2740','48198',225,354);
INSERT INTO "communes" VALUES('64','Biarritz','91',25306,30046,11.66,'-4326','48312',0,85);
INSERT INTO "communes" VALUES('64','Bugnein','24',228,245,11.36,'-3465','48170',98,251);
INSERT INTO "communes" VALUES('64','Uzos','48',730,708,3.52,'-2978','48077',182,342);
INSERT INTO "communes" VALUES('64','Dognen','24',210,194,6.79,'-3419','48102',120,223);
INSERT INTO "communes" VALUES('64','Esquiule','28',537,501,28.58,'-3383','47993',190,661);
INSERT INTO "communes" VALUES('64','Saint-Goin','28',227,188,5.54,'-3375','48052',173,291);
INSERT INTO "communes" VALUES('64','Bescat','04',271,252,6.81,'-3071','47917',335,569);
INSERT INTO "communes" VALUES('64','Mirepeix','25',1196,963,3.29,'-2875','47988',235,264);
INSERT INTO "communes" VALUES('64','Haut-de-Bosdarros','26',286,251,12.31,'-2965','47968',251,445);
INSERT INTO "communes" VALUES('64','Précilhon','27',350,355,6.39,'-3241','47995',235,350);
INSERT INTO "communes" VALUES('64','Lucq-de-Béarn','21',972,968,48.77,'-3328','48097',136,329);
INSERT INTO "communes" VALUES('64','Bustince-Iriberry','35',93,94,5.67,'-3911','47982',192,383);
INSERT INTO "communes" VALUES('64','Orègue','36',478,513,36.43,'-3857','48216',19,230);
INSERT INTO "communes" VALUES('64','Livron','32',419,297,7.54,'-2752','48029',307,423);
INSERT INTO "communes" VALUES('64','Labatut','22',162,144,8.44,'-2619','48248',199,325);
INSERT INTO "communes" VALUES('64','Buzy','04',934,880,16.7,'-3106','47926',296,561);
INSERT INTO "communes" VALUES('64','Lestelle-Bétharram','25',843,790,8.63,'-2829','47922',278,481);
INSERT INTO "communes" VALUES('64','Ance','02',242,215,10.12,'-3364','47939',244,581);
INSERT INTO "communes" VALUES('64','Laguinge-Restoue','39',174,149,6,'-3558','47881',224,768);
INSERT INTO "communes" VALUES('64','Cette-Eygun','01',79,95,18.97,'-3251','47707',501,2560);
INSERT INTO "communes" VALUES('64','Espiute','38',114,94,4.09,'-3613','48177',70,175);
INSERT INTO "communes" VALUES('64','Lussagnet-Lusson','18',168,147,6.74,'-2816','48265',185,316);
INSERT INTO "communes" VALUES('64','Lourdios-Ichère','01',151,150,16.24,'-3335','47832',369,1627);
INSERT INTO "communes" VALUES('64','Auriac','40',246,204,5.23,'-2947','48284',145,250);
INSERT INTO "communes" VALUES('64','Corbère-Abères','18',107,75,7.08,'-2694','48303',171,306);
INSERT INTO "communes" VALUES('64','Abitain','38',101,107,6.59,'-3695','48245',28,136);
INSERT INTO "communes" VALUES('64','Asson','26',2000,1770,83.02,'-2879','47934',255,1848);
INSERT INTO "communes" VALUES('64','Izeste','04',458,457,6.84,'-3069','47880',411,1368);
INSERT INTO "communes" VALUES('64','Limendous','32',489,381,7.48,'-2798','48085',284,383);
INSERT INTO "communes" VALUES('64','Cadillon','18',101,93,5.37,'-2771','48363',135,283);
INSERT INTO "communes" VALUES('64','Arbus','19',1099,1030,13.89,'-3158','48148',125,284);
INSERT INTO "communes" VALUES('64','Os-Marsillon','15',453,414,5.45,'-3280','48210',92,151);
INSERT INTO "communes" VALUES('64','Géronce','28',441,378,15.99,'-3363','48045',167,290);
INSERT INTO "communes" VALUES('64','Hélette','13',703,619,23.45,'-3979','48120',177,842);
INSERT INTO "communes" VALUES('64','Susmiou','24',321,250,3.5,'-3458','48129',117,181);
INSERT INTO "communes" VALUES('64','Ayherre','14',987,844,27.65,'-3990','48214',20,465);
INSERT INTO "communes" VALUES('64','Pouliacq','40',48,36,3.41,'-2991','48363',129,208);
INSERT INTO "communes" VALUES('64','Cescau','03',517,349,7.98,'-3152','48234',149,268);
INSERT INTO "communes" VALUES('64','Moncla','11',102,101,5.83,'-2855','48424',106,240);
INSERT INTO "communes" VALUES('64','Bidarray','33',649,647,38.2,'-4091','48074',61,935);
INSERT INTO "communes" VALUES('64','Arette','02',1114,1094,92.23,'-3392','47884',292,2315);
INSERT INTO "communes" VALUES('64','Coslédaà-Lube-Boast','18',377,312,13.92,'-2857','48288',191,316);
INSERT INTO "communes" VALUES('64','Morlaàs','23',4165,3659,13.15,'-2888','48160',233,349);
INSERT INTO "communes" VALUES('64','Amorots-Succos','36',226,204,15.2,'-3832','48184',65,266);
INSERT INTO "communes" VALUES('64','Pontacq','32',2822,2612,28.85,'-2723','47984',337,488);
INSERT INTO "communes" VALUES('64','Angaïs','25',836,739,5.94,'-2877','48042',214,412);
INSERT INTO "communes" VALUES('64','Ispoure','35',595,622,7.85,'-3967','47968',130,660);
INSERT INTO "communes" VALUES('64','Sévignacq','40',695,606,17.43,'-2888','48268',179,282);
INSERT INTO "communes" VALUES('64','Urepel','33',338,364,26.44,'-4170','47855',392,1150);
INSERT INTO "communes" VALUES('64','Rivehaute','24',246,237,8.41,'-3573','48160',79,212);
INSERT INTO "communes" VALUES('64','Bénéjacq','25',1899,1606,17.04,'-2833','47991',249,466);
INSERT INTO "communes" VALUES('64','Lacadée','03',137,105,4.81,'-3319','48375',60,110);
INSERT INTO "communes" VALUES('64','Carresse-Cassaber','37',639,459,13.91,'-3702','48309',10,135);
INSERT INTO "communes" VALUES('64','Lurbe-Saint-Christau','27',224,234,7.47,'-3271','47904',259,1200);
INSERT INTO "communes" VALUES('64','Tardets-Sorholus','39',603,653,14.99,'-3554','47907',209,793);
INSERT INTO "communes" VALUES('64','Labastide-Cézéracq','03',555,450,5.01,'-3195','48197',106,128);
INSERT INTO "communes" VALUES('64','Estialescq','17',250,255,5.14,'-3209','48022',244,365);
INSERT INTO "communes" VALUES('64','Bédeille','22',195,199,3.85,'-2708','48164',276,374);
INSERT INTO "communes" VALUES('64','Bruges-Capbis-Mifaget','26',945,904,16.55,'-2933','47919',277,473);
INSERT INTO "communes" VALUES('64','Monassut-Audiracq','18',347,309,9.92,'-2816','48243',213,329);
INSERT INTO "communes" VALUES('64','Conchez-de-Béarn','11',123,121,4.49,'-2784','48384',122,261);
INSERT INTO "communes" VALUES('64','Auterrive','37',123,137,3.08,'-3706','48296',16,35);
INSERT INTO "communes" VALUES('64','Montagut','05',125,106,6.18,'-3156','48385',75,157);
INSERT INTO "communes" VALUES('64','Sainte-Engrâce','39',206,251,72.69,'-3545','47793',300,1881);
INSERT INTO "communes" VALUES('64','Eslourenties-Daban','23',243,192,5.06,'-2754','48111',329,398);
INSERT INTO "communes" VALUES('64','Claracq','40',230,208,9.87,'-2929','48345',140,262);
INSERT INTO "communes" VALUES('64','Arnéguy','35',252,286,21.21,'-4019','47899',218,1410);
INSERT INTO "communes" VALUES('64','Iholdy','13',521,412,21.63,'-3908','48091',109,577);
INSERT INTO "communes" VALUES('64','Bergouey-Viellenave','09',127,112,11.37,'-3770','48248',14,166);
INSERT INTO "communes" VALUES('64','Lasseubetat','17',180,173,7.06,'-3105','47968',198,445);
INSERT INTO "communes" VALUES('64','Géus-d''Arzacq','05',182,123,4.12,'-3176','48312',96,138);
INSERT INTO "communes" VALUES('64','Bassillon-Vauzé','18',72,72,4.96,'-2680','48285',190,303);
INSERT INTO "communes" VALUES('64','Mesplède','03',316,331,11.47,'-3329','48327',100,210);
INSERT INTO "communes" VALUES('64','Montardon','23',2323,1837,8.42,'-2975','48195',194,295);
INSERT INTO "communes" VALUES('64','Cardesse','27',260,259,7.67,'-3249','48070',154,329);
INSERT INTO "communes" VALUES('64','Laroin','46',946,849,7.04,'-3087','48116',151,312);
INSERT INTO "communes" VALUES('64','Castagnède','37',195,209,8.33,'-3701','48283',21,171);
INSERT INTO "communes" VALUES('64','Charritte-de-Bas','20',242,247,7.4,'-3576','48104',99,223);
INSERT INTO "communes" VALUES('64','Sarpourenx','15',274,238,3.35,'-3387','48286',59,78);
INSERT INTO "communes" VALUES('64','Monségur','22',136,105,2.84,'-2613','48257',200,312);
INSERT INTO "communes" VALUES('64','Saint-Jammes','23',637,583,4.05,'-2873','48175',237,306);
INSERT INTO "communes" VALUES('64','Isturits','14',450,366,13.6,'-3935','48184',58,345);
INSERT INTO "communes" VALUES('64','Ossas-Suhare','39',86,83,7.17,'-3586','47934',182,854);
INSERT INTO "communes" VALUES('64','Arrast-Larrebieu','20',100,105,7.56,'-3541','48104',132,299);
INSERT INTO "communes" VALUES('64','Montfort','38',171,179,8.64,'-3536','48187',65,194);
INSERT INTO "communes" VALUES('64','Ponson-Dessus','22',241,233,10.77,'-2656','48127',285,389);
INSERT INTO "communes" VALUES('64','Urrugne','45',8673,7058,50.57,'-4485','48180',0,880);
INSERT INTO "communes" VALUES('64','Viodos-Abense-de-Bas','20',765,743,12.71,'-3575','48046',110,420);
INSERT INTO "communes" VALUES('64','Salies-de-Béarn','37',5020,4770,52.08,'-3625','48301',28,202);
INSERT INTO "communes" VALUES('64','Vignes','05',438,342,7.97,'-3054','48362',102,243);
INSERT INTO "communes" VALUES('64','Hosta','13',74,81,17.08,'-3805','47954',260,1155);
INSERT INTO "communes" VALUES('64','Gomer','32',237,162,3.24,'-2807','48055',277,385);
INSERT INTO "communes" VALUES('64','Méracq','05',211,210,8.24,'-3025','48344',109,245);
INSERT INTO "communes" VALUES('64','Lemé','40',163,152,6.72,'-3004','48326',127,252);
INSERT INTO "communes" VALUES('64','Igon','25',946,819,5.33,'-2854','47955',255,362);
INSERT INTO "communes" VALUES('64','Mazères-Lezons','48',1940,2143,4,'-2988','48086',175,342);
INSERT INTO "communes" VALUES('64','Guéthary','34',1349,1291,1.4,'-4384','48251',0,73);
INSERT INTO "communes" VALUES('64','Ordiarp','20',526,545,29.71,'-3645','47984',131,1209);
INSERT INTO "communes" VALUES('64','Lasclaveries','40',262,201,6.13,'-2919','48263',171,264);
INSERT INTO "communes" VALUES('64','Jurançon','46',6963,7381,18.78,'-3027','48097',159,365);
INSERT INTO "communes" VALUES('64','Sauveterre-de-Béarn','38',1384,1313,14.54,'-3640','48222',44,205);
INSERT INTO "communes" VALUES('64','Poursiugues-Boucoue','05',205,204,9.02,'-3016','48389',110,197);
INSERT INTO "communes" VALUES('64','Buros','23',1771,1416,13.81,'-2940','48169',205,345);
INSERT INTO "communes" VALUES('64','Léren','37',226,193,4.57,'-3757','48336',7,53);
INSERT INTO "communes" VALUES('64','Boumourt','03',134,126,8.03,'-3175','48271',134,246);
INSERT INTO "communes" VALUES('64','Saint-Martin-d''Arrossa','33',470,442,18.43,'-4055','48042',100,810);
INSERT INTO "communes" VALUES('64','Astis','40',303,265,3.16,'-2961','48268',160,242);
INSERT INTO "communes" VALUES('64','Narp','38',123,114,6.33,'-3519','48195',79,235);
INSERT INTO "communes" VALUES('64','Lahontan','37',467,400,14.64,'-3671','48367',9,149);
INSERT INTO "communes" VALUES('64','Villefranque','52',2225,1768,17.17,'-4210','48264',0,131);
INSERT INTO "communes" VALUES('64','Louhossoa','10',887,581,7.38,'-4100','48129',71,369);
INSERT INTO "communes" VALUES('64','Escoubès','23',331,231,6.44,'-2868','48242',217,285);
INSERT INTO "communes" VALUES('64','Aast','22',192,191,4.75,'-2696','48099',367,393);
INSERT INTO "communes" VALUES('64','Bardos','09',1620,1271,42.53,'-3933','48305',0,183);
INSERT INTO "communes" VALUES('64','Lecumberry','35',183,182,58.09,'-3866','47928',247,1468);
INSERT INTO "communes" VALUES('64','Saint-Pé-de-Léren','37',258,205,5.31,'-3749','48325',9,49);
INSERT INTO "communes" VALUES('64','Navailles-Angos','40',1329,1194,14.22,'-2976','48238',167,302);
INSERT INTO "communes" VALUES('64','Urost','23',64,60,2.33,'-2761','48154',303,374);
INSERT INTO "communes" VALUES('64','Baigts-de-Béarn','29',811,739,13.53,'-3528','48347',28,167);
INSERT INTO "communes" VALUES('64','Orin','28',214,207,4.29,'-3343','48036',175,229);
INSERT INTO "communes" VALUES('64','Bidart','34',6206,4670,12.15,'-4366','48263',0,80);
INSERT INTO "communes" VALUES('64','Denguin','19',1760,1460,12.29,'-3161','48181',120,271);
INSERT INTO "communes" VALUES('64','Ciboure','45',6824,6286,7.44,'-4449','48206',0,83);
INSERT INTO "communes" VALUES('64','Anos','23',191,149,1.79,'-2921','48220',199,305);
INSERT INTO "communes" VALUES('64','Sedze-Maubecq','22',198,191,7.61,'-2736','48169',237,373);
INSERT INTO "communes" VALUES('64','Arbonne','41',2034,1392,10.59,'-4320','48258',5,94);
INSERT INTO "communes" VALUES('64','Aramits','02',683,653,29.55,'-3404','47912',212,628);
INSERT INTO "communes" VALUES('64','Ledeuix','27',998,1092,13.52,'-3286','48018',185,341);
INSERT INTO "communes" VALUES('64','Haux','39',93,96,17.01,'-3539','47864',266,1385);
INSERT INTO "communes" VALUES('64','Lalongue','18',199,179,7.94,'-2808','48308',164,307);
INSERT INTO "communes" VALUES('64','Etchebar','39',66,63,8.23,'-3588','47869',280,1025);
INSERT INTO "communes" VALUES('64','Amendeuix-Oneix','36',414,367,7.66,'-3759','48161',32,168);
INSERT INTO "communes" VALUES('64','Berrogain-Laruns','20',106,136,2.68,'-3557','48050',117,290);
INSERT INTO "communes" VALUES('64','Thèze','40',832,695,7.93,'-2984','48307',133,259);
INSERT INTO "communes" VALUES('64','Mauléon-Licharre','20',3218,3344,12.8,'-3582','48027',133,521);
INSERT INTO "communes" VALUES('64','Gotein-Libarrenx','20',451,467,11.75,'-3597','47989',140,585);
INSERT INTO "communes" VALUES('64','Ahaxe-Alciette-Bascassan','35',291,320,14.64,'-3890','47945',207,788);
INSERT INTO "communes" VALUES('64','Ossès','33',855,696,42.38,'-4024','48046',101,892);
INSERT INTO "communes" VALUES('64','Ainhice-Mongelos','35',161,175,10.3,'-3880','48006',195,546);
INSERT INTO "communes" VALUES('64','Lucarré','18',62,51,3.32,'-2689','48228',230,337);
INSERT INTO "communes" VALUES('64','Lagos','25',464,500,4.46,'-2846','48010',242,418);
INSERT INTO "communes" VALUES('64','Saint-Michel','35',264,256,30.3,'-3953','47929',177,1417);
INSERT INTO "communes" VALUES('64','Saint-Castin','23',800,736,7,'-2936','48197',213,323);
INSERT INTO "communes" VALUES('64','Idron','31',3983,5151,7.78,'-2943','48099',188,251);
INSERT INTO "communes" VALUES('64','Saint-Vincent','25',384,369,16.61,'-2761','47957',295,500);
INSERT INTO "communes" VALUES('64','Uzein','19',1255,818,16.19,'-3077','48221',142,186);
INSERT INTO "communes" VALUES('64','Luc-Armau','18',112,104,5.85,'-2670','48246',218,324);
INSERT INTO "communes" VALUES('64','Saint-Jean-le-Vieux','35',860,882,11.64,'-3922','47961',171,500);
INSERT INTO "communes" VALUES('64','Gayon','18',57,92,3.95,'-2785','48314',148,298);
INSERT INTO "communes" VALUES('64','Sendets','23',851,0,7.73,'-2886','48108',235,266);
INSERT INTO "communes" VALUES('64','Aussurucq','20',251,254,47.12,'-3633','47944',191,1284);
INSERT INTO "communes" VALUES('64','Aïcirits-Camou-Suhast','36',655,559,9.5,'-3734','48152',26,155);
INSERT INTO "communes" VALUES('64','Monpezat','18',90,81,3.48,'-2671','48336',168,262);
INSERT INTO "communes" VALUES('64','Gurmençon','28',801,729,2.98,'-3258','47951',220,277);
INSERT INTO "communes" VALUES('64','Estérençuby','35',354,383,45.87,'-3924','47894',219,1347);
INSERT INTO "communes" VALUES('64','Gestas','36',66,70,2.19,'-3582','48166',77,194);
INSERT INTO "communes" VALUES('64','Samsons-Lion','18',76,75,5.03,'-2730','48261',181,331);
INSERT INTO "communes" VALUES('64','Camou-Cihigue','39',103,114,10.08,'-3603','47907',208,1009);
INSERT INTO "communes" VALUES('64','Doumy','40',279,185,6.39,'-3014','48274',151,282);
INSERT INTO "communes" VALUES('64','Aressy','47',624,543,2.15,'-2957','48085',179,244);
INSERT INTO "communes" VALUES('64','Beuste','25',515,553,5.84,'-2853','48020',233,418);
INSERT INTO "communes" VALUES('64','Banca','33',335,375,49.6,'-4123','47918',231,1275);
INSERT INTO "communes" VALUES('64','Espelette','10',1974,1885,26.85,'-4205','48156',33,749);
INSERT INTO "communes" VALUES('64','Méharin','12',259,262,12.73,'-3868','48148',87,280);
INSERT INTO "communes" VALUES('64','Ibarrolle','13',100,88,8.87,'-3813','48000',159,764);
INSERT INTO "communes" VALUES('64','Trois-Villes','39',132,148,6.39,'-3570','47926',195,793);
INSERT INTO "communes" VALUES('64','Issor','02',253,262,23,'-3331','47891',280,1206);
INSERT INTO "communes" VALUES('64','Lasse','33',290,261,14.79,'-3996','47952',176,1247);
INSERT INTO "communes" VALUES('64','Serres-Morlaàs','23',707,634,4.19,'-2883','48141',245,349);
INSERT INTO "communes" VALUES('64','Nay','97',3218,3202,5.27,'-2887','47978',244,402);
INSERT INTO "communes" VALUES('64','Castetbon','38',170,157,14.2,'-3472','48206',95,234);
INSERT INTO "communes" VALUES('64','Escou','27',377,318,6.19,'-3192','47980',271,416);
INSERT INTO "communes" VALUES('64','Béhasque-Lapiste','36',434,416,5.64,'-3719','48138',44,255);
INSERT INTO "communes" VALUES('64','Alos-Sibas-Abense','39',284,319,5.78,'-3569','47910',204,414);
INSERT INTO "communes" VALUES('64','Lys','04',360,348,15.4,'-2988','47922',304,510);
INSERT INTO "communes" VALUES('64','Montory','39',327,349,20.45,'-3505','47885',239,800);
INSERT INTO "communes" VALUES('64','Lombia','23',197,163,7.63,'-2745','48144',284,384);
INSERT INTO "communes" VALUES('64','Barcus','20',734,774,46.93,'-3454','47988',176,793);
INSERT INTO "communes" VALUES('64','Larceveau-Arros-Cibits','13',405,397,18.08,'-3814','48036',113,642);
INSERT INTO "communes" VALUES('64','Lescun','01',179,203,60.66,'-3301','47704',468,2405);
INSERT INTO "communes" VALUES('64','Anglet','90',38032,35261,26.93,'-4284','48316',0,76);
INSERT INTO "communes" VALUES('64','Lay-Lamidou','24',121,123,5.47,'-3397','48102',146,266);
INSERT INTO "communes" VALUES('64','Tabaille-Usquain','38',39,53,4.5,'-3590','48174',69,181);
INSERT INTO "communes" VALUES('64','Béguios','36',272,312,11.26,'-3803','48177',40,295);
INSERT INTO "communes" VALUES('64','Arudy','04',2230,2231,28.23,'-3072','47896',310,1446);
INSERT INTO "communes" VALUES('64','Sainte-Colome','04',358,268,9.35,'-3044','47892',347,618);
INSERT INTO "communes" VALUES('64','Buziet','27',460,371,8.18,'-3125','47931',310,455);
INSERT INTO "communes" VALUES('64','Saint-Laurent-Bretagne','23',425,361,10.59,'-2817','48204',249,346);
INSERT INTO "communes" VALUES('64','Bizanos','47',4779,4674,4.42,'-2986','48097',174,233);
INSERT INTO "communes" VALUES('64','Andoins','23',628,522,12.22,'-2850','48116',255,357);
INSERT INTO "communes" VALUES('64','Escout','27',417,394,9.52,'-3208','47988',234,397);
INSERT INTO "communes" VALUES('64','Lées-Athas','01',291,264,44.81,'-3287','47749',417,2503);
INSERT INTO "communes" VALUES('64','Herrère','27',362,369,8.93,'-3196','47965',235,342);
INSERT INTO "communes" VALUES('64','Pontiacq-Viellepinte','22',142,110,6.98,'-2654','48179',249,356);
INSERT INTO "communes" VALUES('64','Uhart-Mixe','36',223,205,11.74,'-3731','48088',60,304);
INSERT INTO "communes" VALUES('64','Oraàs','38',164,170,10.57,'-3693','48264',27,172);
INSERT INTO "communes" VALUES('64','Gan','46',5446,4961,39.62,'-3027','48032',186,478);
INSERT INTO "communes" VALUES('64','Boueilh-Boueilho-Lasque','11',357,329,17.35,'-2944','48380',117,263);
INSERT INTO "communes" VALUES('64','Irissarry','13',875,731,26.39,'-3967','48063',149,839);
INSERT INTO "communes" VALUES('64','Saint-Pée-sur-Nivelle','41',5707,4353,65.08,'-4319','48174',10,227);
INSERT INTO "communes" VALUES('64','Briscous','14',2633,1984,31.29,'-4078','48289',0,135);
INSERT INTO "communes" VALUES('64','Fichous-Riumayou','05',164,146,6.41,'-3094','48317',120,250);
INSERT INTO "communes" VALUES('64','Vielleségure','15',394,365,14.31,'-3356','48174',115,275);
INSERT INTO "communes" VALUES('64','Borce','01',159,163,58.05,'-3232','47677',560,2258);
INSERT INTO "communes" VALUES('64','Casteide-Doat','22',133,131,5.34,'-2610','48192',227,345);
INSERT INTO "communes" VALUES('64','Ustaritz','41',6184,4986,32.75,'-4214','48222',0,143);
INSERT INTO "communes" VALUES('64','Bésingrand','15',122,130,2.29,'-3227','48191',105,118);
INSERT INTO "communes" VALUES('64','Ascain','34',4001,3099,19.27,'-4397','48162',5,883);
INSERT INTO "communes" VALUES('64','Artix','03',3471,3126,9.11,'-3231','48219',96,141);
INSERT INTO "communes" VALUES('64','Larressore','41',1613,1320,10.76,'-4195','48189',5,125);
INSERT INTO "communes" VALUES('64','Maslacq','15',825,727,13.33,'-3369','48267',67,197);
INSERT INTO "communes" VALUES('64','Angous','24',109,111,6.22,'-3500','48104',133,262);
INSERT INTO "communes" VALUES('64','Parbayse','21',251,243,6.46,'-3202','48140',114,273);
INSERT INTO "communes" VALUES('64','Macaye','12',550,528,19.75,'-4060','48149',113,892);
INSERT INTO "communes" VALUES('64','Lahonce','52',2066,1885,9.47,'-4142','48314',0,96);
INSERT INTO "communes" VALUES('64','Moumour','28',846,732,8.05,'-3324','48015',177,324);
INSERT INTO "communes" VALUES('64','Araujuzon','24',196,182,6.92,'-3506','48178',79,212);
INSERT INTO "communes" VALUES('64','Montaut','25',1076,969,15.41,'-2819','47922',278,553);
INSERT INTO "communes" VALUES('64','Séby','05',192,171,5.97,'-3033','48318',116,263);
INSERT INTO "communes" VALUES('64','Bérenx','37',489,475,13.59,'-3548','48336',25,176);
INSERT INTO "communes" VALUES('64','Arraute-Charritte','36',385,322,22.81,'-3826','48221',8,192);
INSERT INTO "communes" VALUES('64','Portet','11',176,168,7.89,'-2804','48421',111,249);
INSERT INTO "communes" VALUES('64','Saint-Pierre-d''Irube','52',4390,3870,7.68,'-4217','48307',0,146);
INSERT INTO "communes" VALUES('64','Bonnut','29',674,667,22.01,'-3447','48388',66,161);
INSERT INTO "communes" VALUES('64','Larribar-Sorhapuru','36',190,186,10.65,'-3723','48103',54,245);
INSERT INTO "communes" VALUES('64','Labeyrie','03',108,92,3.69,'-3286','48380',63,157);
INSERT INTO "communes" VALUES('64','Estos','27',527,426,3.22,'-3276','48010',198,346);
INSERT INTO "communes" VALUES('64','Orthez','29',10982,10121,45.86,'-3452','48320',38,185);
INSERT INTO "communes" VALUES('64','Suhescun','13',194,205,11.83,'-3927','48038',186,549);
INSERT INTO "communes" VALUES('64','Garlède-Mondebat','40',202,180,8.65,'-2964','48335',126,222);
INSERT INTO "communes" VALUES('64','Hours','32',235,169,5.79,'-2784','48031',306,421);
INSERT INTO "communes" VALUES('64','L''Hôpital-d''Orion','38',161,143,8.47,'-3536','48264',71,207);
INSERT INTO "communes" VALUES('64','Bordères','25',655,657,4.58,'-2842','48004',246,420);
INSERT INTO "communes" VALUES('64','Castetpugon','11',182,170,7.49,'-2852','48401',114,251);
INSERT INTO "communes" VALUES('64','Araux','24',131,115,5.4,'-3493','48169',98,188);
INSERT INTO "communes" VALUES('64','Noguères','15',154,145,1.95,'-3258','48190',104,152);
INSERT INTO "communes" VALUES('64','Sus','24',383,387,11.5,'-3448','48118',118,263);
INSERT INTO "communes" VALUES('64','Miossens-Lanusse','40',225,184,9.16,'-2929','48298',159,247);
INSERT INTO "communes" VALUES('64','Burgaronne','38',99,99,5.27,'-3606','48236',86,216);
INSERT INTO "communes" VALUES('64','Halsou','41',502,503,5.08,'-4176','48194',4,156);
INSERT INTO "communes" VALUES('64','Geüs-d''Oloron','28',208,199,6.57,'-3381','48056',167,301);
INSERT INTO "communes" VALUES('64','Saint-Esteben','12',434,359,13.71,'-3939','48154',118,465);
INSERT INTO "communes" VALUES('64','Urdès','03',272,224,5.89,'-3250','48270',109,246);
INSERT INTO "communes" VALUES('64','Lembeye','18',763,691,8.39,'-2718','48277',175,322);
INSERT INTO "communes" VALUES('64','Argelos','40',260,217,6.01,'-2982','48280',142,264);
INSERT INTO "communes" VALUES('64','Saint-Jean-de-Luz','34',12969,13241,19.05,'-4440','48211',0,84);
INSERT INTO "communes" VALUES('64','Narcastet','48',606,521,4.56,'-2951','48056',192,379);
INSERT INTO "communes" VALUES('64','Ponson-Debat-Pouts','22',88,87,5.72,'-2647','48147',268,373);
INSERT INTO "communes" VALUES('64','Roquiague','20',121,127,10.44,'-3529','47990',191,567);
INSERT INTO "communes" VALUES('64','Higuères-Souye','23',284,258,7.35,'-2885','48198',225,298);
INSERT INTO "communes" VALUES('64','L''Hôpital-Saint-Blaise','20',83,74,2.11,'-3450','48057',147,254);
INSERT INTO "communes" VALUES('64','Billère','51',13142,13390,4.57,'-3037','48114',159,205);
INSERT INTO "communes" VALUES('64','Aroue-Ithorots-Olhaïby','36',244,230,17.85,'-3616','48131',89,231);
INSERT INTO "communes" VALUES('64','Simacourbe','18',347,340,11.08,'-2781','48270',172,321);
INSERT INTO "communes" VALUES('64','Nousty','31',1493,740,9.7,'-2830','48075',255,412);
INSERT INTO "communes" VALUES('64','Bentayou-Sérée','22',110,98,8.26,'-2668','48215',218,345);
INSERT INTO "communes" VALUES('64','Bedous','01',550,580,11.64,'-3263','47778',372,1567);
INSERT INTO "communes" VALUES('64','Garos','05',225,191,12.06,'-3122','48340',94,236);
INSERT INTO "communes" VALUES('64','Garindein','20',523,525,6.87,'-3602','48009',137,480);
INSERT INTO "communes" VALUES('64','Momas','19',545,391,14.51,'-3088','48279',126,260);
INSERT INTO "communes" VALUES('64','Monein','21',4501,4188,80.84,'-3240','48134',109,357);
INSERT INTO "communes" VALUES('64','Laas','38',112,125,6.46,'-3542','48202',63,235);
INSERT INTO "communes" VALUES('64','Béhorléguy','35',77,72,20.58,'-3839','47921',299,1267);
INSERT INTO "communes" VALUES('64','Barinque','23',587,489,9,'-2898','48230',194,284);
INSERT INTO "communes" VALUES('64','Biriatou','45',1087,830,11.04,'-4533','48148',0,552);
INSERT INTO "communes" VALUES('64','Urt','14',2195,1702,18.99,'-4030','48327',0,111);
INSERT INTO "communes" VALUES('64','Gabat','36',211,215,8.31,'-3745','48190',23,156);
INSERT INTO "communes" VALUES('64','Barraute-Camu','38',158,164,3.94,'-3592','48208',53,145);
INSERT INTO "communes" VALUES('64','Abos','21',487,481,8.45,'-3222','48176',108,250);
INSERT INTO "communes" VALUES('64','Bosdarros','46',1014,936,24.77,'-2998','48011',212,443);
INSERT INTO "communes" VALUES('64','Saucède','27',129,106,7.1,'-3358','48077',153,266);
INSERT INTO "communes" VALUES('64','Saint-Médard','03',211,206,11.26,'-3252','48367',69,178);
INSERT INTO "communes" VALUES('64','Saint-Dos','37',135,140,1.84,'-3732','48304',12,48);
INSERT INTO "communes" VALUES('64','Castetner','15',154,147,6.56,'-3426','48271',69,215);
INSERT INTO "communes" VALUES('64','Viellenave-d''Arthez','03',172,154,3.92,'-3131','48233',149,254);
INSERT INTO "communes" VALUES('64','Moncaup','18',158,142,11.35,'-2661','48316',171,291);
INSERT INTO "communes" VALUES('64','Louvigny','05',125,112,7.02,'-3089','48347',97,239);
INSERT INTO "communes" VALUES('64','Castet','04',160,155,23.53,'-3060','47855',419,2020);
INSERT INTO "communes" VALUES('64','Ramous','29',474,392,7.58,'-3591','48356',24,156);
INSERT INTO "communes" VALUES('64','Maure','22',118,116,3.59,'-2676','48202',244,353);
INSERT INTO "communes" VALUES('64','Etcharry','36',128,122,7.43,'-3627','48137',86,227);
INSERT INTO "communes" VALUES('64','Souraïde','10',1247,1086,16.86,'-4235','48158',40,363);
INSERT INTO "communes" VALUES('64','Ossenx','38',42,48,4.02,'-3503','48191',77,219);
INSERT INTO "communes" VALUES('64','Anhaux','33',293,247,12.33,'-4031','47966',180,1247);
INSERT INTO "communes" VALUES('64','Beyrie-sur-Joyeuse','36',513,464,24.8,'-3797','48125',52,328);
INSERT INTO "communes" VALUES('64','Saint-Jean-Pied-de-Port','35',1471,1416,2.73,'-3970','47960',156,320);
INSERT INTO "communes" VALUES('64','Uzan','05',151,153,6.2,'-3156','48311',102,148);
INSERT INTO "communes" VALUES('64','Arbouet-Sussaute','36',294,227,14.55,'-3709','48189',56,195);
INSERT INTO "communes" VALUES('64','Urdos','01',71,108,36.27,'-3213','47637',708,2379);
INSERT INTO "communes" VALUES('64','Lichos','24',140,129,3.38,'-3569','48115',97,172);
INSERT INTO "communes" VALUES('64','Gamarthe','35',123,105,9.91,'-3866','48002',196,642);
INSERT INTO "communes" VALUES('64','Sames','09',628,387,13.26,'-3881','48360',0,58);
INSERT INTO "communes" VALUES('64','Lahourcade','21',730,686,10.94,'-3282','48171',110,267);
INSERT INTO "communes" VALUES('64','Arancou','09',122,108,5.3,'-3764','48271',12,142);
INSERT INTO "communes" VALUES('64','Saint-Faust','46',762,729,13.51,'-3098','48076',170,386);
INSERT INTO "communes" VALUES('64','Baliros','26',367,376,3.64,'-2936','48031',200,382);
INSERT INTO "communes" VALUES('64','Baudreix','25',528,473,2,'-2882','48006',230,253);
INSERT INTO "communes" VALUES('65','Ibos','33',2780,2779,32.88,'-2594','48037',293,432);
INSERT INTO "communes" VALUES('65','Thermes-Magnoac','08',196,160,10.83,'-1938','48110',266,416);
INSERT INTO "communes" VALUES('65','Grange','11',223,217,3.58,'-2212','47918',470,615);
INSERT INTO "communes" VALUES('65','Artiguemy','11',84,89,2.97,'-2322','47919',292,528);
INSERT INTO "communes" VALUES('65','Gerde','07',1175,1117,6.93,'-2410','47839',550,1033);
INSERT INTO "communes" VALUES('65','Montastruc','10',266,288,12.34,'-2215','48020',311,507);
INSERT INTO "communes" VALUES('65','Collongues','17',147,111,2.14,'-2416','48097',246,340);
INSERT INTO "communes" VALUES('65','Marsac','25',241,195,1.55,'-2499','48143',238,251);
INSERT INTO "communes" VALUES('65','Sarniguet','33',247,219,2.07,'-2498','48131',248,257);
INSERT INTO "communes" VALUES('65','Sère-Lanso','12',55,54,4.27,'-2586','47855',480,880);
INSERT INTO "communes" VALUES('65','Avezac-Prat-Lahitte','05',569,515,17.81,'-2221','47851',380,733);
INSERT INTO "communes" VALUES('65','Escots','11',25,36,4.06,'-2309','47844',388,770);
INSERT INTO "communes" VALUES('65','Hautaget','19',48,31,1.35,'-2089','47840',481,630);
INSERT INTO "communes" VALUES('65','Paréac','12',64,69,2.42,'-2569','47906',387,600);
INSERT INTO "communes" VALUES('65','Villefranque','09',89,85,3.17,'-2602','48333',157,280);
INSERT INTO "communes" VALUES('65','Capvern','11',1284,1074,21.84,'-2244','47891',358,664);
INSERT INTO "communes" VALUES('65','Fréchou-Fréchet','23',132,88,2.97,'-2419','47971',320,507);
INSERT INTO "communes" VALUES('65','Sailhan','26',127,104,2.64,'-2225','47577',827,2067);
INSERT INTO "communes" VALUES('65','Cieutat','04',593,515,18.78,'-2358','47913',327,589);
INSERT INTO "communes" VALUES('65','Arras-en-Lavedan','03',527,456,24.66,'-2737','47769',509,2288);
INSERT INTO "communes" VALUES('65','Osmets','24',76,74,4.88,'-2301','48117',217,394);
INSERT INTO "communes" VALUES('65','Ardengost','02',15,16,5.82,'-2147','47694',715,1927);
INSERT INTO "communes" VALUES('65','Louit','17',179,129,5.04,'-2423','48114',240,353);
INSERT INTO "communes" VALUES('65','Asque','05',120,107,15.85,'-2312','47827',433,1628);
INSERT INTO "communes" VALUES('65','Moulédous','23',172,144,6.98,'-2335','48032',229,497);
INSERT INTO "communes" VALUES('65','Préchac','01',234,193,1.59,'-2677','47769',420,640);
INSERT INTO "communes" VALUES('65','Maubourguet','14',2462,2410,22.04,'-2557','48298',164,285);
INSERT INTO "communes" VALUES('65','Gazost','12',138,117,40.6,'-2587','47813',545,2350);
INSERT INTO "communes" VALUES('65','Gaudent','15',47,45,1.57,'-1966','47770',500,1079);
INSERT INTO "communes" VALUES('65','Auriébat','14',290,290,16.12,'-2499','48327',144,262);
INSERT INTO "communes" VALUES('65','Lies','04',72,63,3.66,'-2364','47847',530,810);
INSERT INTO "communes" VALUES('65','Sombrun','14',209,238,9.67,'-2588','48310',164,291);
INSERT INTO "communes" VALUES('65','Tournous-Devant','10',111,130,4.67,'-2132','48053',280,342);
INSERT INTO "communes" VALUES('65','Cadéac','02',248,223,6.15,'-2207','47654',716,1607);
INSERT INTO "communes" VALUES('65','Luby-Betmont','24',105,121,7.16,'-2271','48107',252,385);
INSERT INTO "communes" VALUES('65','Cazaux-Debat','06',18,12,1.48,'-2169','47653',753,1106);
INSERT INTO "communes" VALUES('65','Seich','19',64,74,7.17,'-2052','47794',512,1493);
INSERT INTO "communes" VALUES('65','Castéra-Lanusse','23',42,32,0.86,'-2270','47970',374,528);
INSERT INTO "communes" VALUES('65','Bareilles','06',60,67,20.84,'-2125','47663',823,2150);
INSERT INTO "communes" VALUES('65','Caussade-Rivière','14',86,104,6.16,'-2576','48350',151,164);
INSERT INTO "communes" VALUES('65','Adervielle-Pouchergues','06',106,81,9.14,'-2147','47577',921,2326);
INSERT INTO "communes" VALUES('65','Ansost','18',56,62,2.2,'-2473','48259',192,202);
INSERT INTO "communes" VALUES('65','Libaros','10',146,158,9.08,'-2161','48060',268,484);
INSERT INTO "communes" VALUES('65','Saint-Lézer','25',415,333,11.17,'-2560','48187',216,341);
INSERT INTO "communes" VALUES('65','Larreule','14',432,381,10.14,'-2578','48273',177,307);
INSERT INTO "communes" VALUES('65','Bours','21',785,715,4.68,'-2492','48085',267,290);
INSERT INTO "communes" VALUES('65','Nouilhan','25',205,175,4.53,'-2553','48249',188,203);
INSERT INTO "communes" VALUES('65','Fréchède','24',39,39,5.43,'-2308','48182',204,385);
INSERT INTO "communes" VALUES('65','Lizos','17',104,78,1.73,'-2434','48070',311,409);
INSERT INTO "communes" VALUES('65','Vidouze','14',252,262,16.01,'-2650','48271',180,322);
INSERT INTO "communes" VALUES('65','Azet','26',161,146,26.63,'-2205','47567',1055,3020);
INSERT INTO "communes" VALUES('65','Talazac','25',71,67,1.58,'-2554','48148',238,344);
INSERT INTO "communes" VALUES('65','Vizos','13',40,33,2.56,'-2611','47656',705,2163);
INSERT INTO "communes" VALUES('65','Clarens','11',445,394,11.3,'-2136','47959',406,602);
INSERT INTO "communes" VALUES('65','Sarp','15',108,104,1.82,'-1941','47795',467,742);
INSERT INTO "communes" VALUES('65','Sère-en-Lavedan','01',73,75,1.87,'-2731','47802',524,887);
INSERT INTO "communes" VALUES('65','Juillan','16',3975,3507,8.2,'-2570','48001',309,437);
INSERT INTO "communes" VALUES('65','Mauvezin','11',233,188,9.85,'-2281','47905',297,574);
INSERT INTO "communes" VALUES('65','Sénac','18',246,215,8.94,'-2393','48174',179,306);
INSERT INTO "communes" VALUES('65','Arcizac-ez-Angles','12',277,193,1.93,'-2583','47881',380,535);
INSERT INTO "communes" VALUES('65','Saint-Sever-de-Rustan','18',157,136,9.52,'-2347','48168',179,385);
INSERT INTO "communes" VALUES('65','Bazillac','18',329,304,10.28,'-2485','48172',222,239);
INSERT INTO "communes" VALUES('65','Bize','19',217,206,12.96,'-2071','47825',495,1124);
INSERT INTO "communes" VALUES('65','Uglas','11',284,242,8.54,'-2114','47935',454,601);
INSERT INTO "communes" VALUES('65','Bernac-Debat','22',659,552,3.9,'-2475','47963',367,463);
INSERT INTO "communes" VALUES('65','Bettes','04',67,62,3.38,'-2359','47865',395,723);
INSERT INTO "communes" VALUES('65','Barbazan-Dessus','23',133,136,4.24,'-2440','47960',381,516);
INSERT INTO "communes" VALUES('65','Angles','12',126,141,3.1,'-2589','47870',407,647);
INSERT INTO "communes" VALUES('65','Castelbajac','10',109,132,8.2,'-2201','47981',362,546);
INSERT INTO "communes" VALUES('65','Lomné','05',38,44,2.94,'-2264','47829',393,703);
INSERT INTO "communes" VALUES('65','Vielle-Adour','22',497,422,5.82,'-2468','47939',407,558);
INSERT INTO "communes" VALUES('65','Mauléon-Barousse','15',120,137,5.49,'-1965','47733',557,1604);
INSERT INTO "communes" VALUES('65','Oléac-Dessus','23',98,89,3.72,'-2385','47957',303,504);
INSERT INTO "communes" VALUES('65','Arreau','02',797,827,11.12,'-2197','47672',658,1756);
INSERT INTO "communes" VALUES('65','Andrest','25',1414,1231,6.19,'-2528','48130',241,266);
INSERT INTO "communes" VALUES('65','Ugnouas','18',75,73,1.59,'-2486','48156',235,243);
INSERT INTO "communes" VALUES('65','Siarrouy','25',419,387,6.2,'-2555','48134',240,346);
INSERT INTO "communes" VALUES('65','Thuy','17',15,14,0.53,'-2325','48065',218,282);
INSERT INTO "communes" VALUES('65','Pintac','33',31,27,1.49,'-2606','48094',290,377);
INSERT INTO "communes" VALUES('65','Chèze','13',47,46,10.07,'-2629','47674',520,2309);
INSERT INTO "communes" VALUES('65','Jézeau','02',112,107,12.2,'-2173','47668',726,2079);
INSERT INTO "communes" VALUES('65','Sarrouilles','22',559,548,4.21,'-2453','48034',307,427);
INSERT INTO "communes" VALUES('65','Samuran','15',20,8,2.55,'-1936','47763',546,1044);
INSERT INTO "communes" VALUES('65','Mansan','18',44,54,2.08,'-2382','48155',194,311);
INSERT INTO "communes" VALUES('65','Ourdis-Cotdoussan','12',47,52,4.85,'-2572','47829',594,1499);
INSERT INTO "communes" VALUES('65','Monfaucon','18',218,162,10.38,'-2467','48280',157,281);
INSERT INTO "communes" VALUES('65','Agos-Vidalos','01',388,290,6.11,'-2676','47819',391,1360);
INSERT INTO "communes" VALUES('65','Buzon','18',84,74,4.4,'-2438','48271',156,260);
INSERT INTO "communes" VALUES('65','Montsérié','19',51,47,2.25,'-2111','47833',502,762);
INSERT INTO "communes" VALUES('65','Nistos','19',243,233,32.59,'-2064','47797',520,1853);
INSERT INTO "communes" VALUES('65','Pouy','08',35,38,1.92,'-1978','48068',294,411);
INSERT INTO "communes" VALUES('65','Juncalas','12',179,193,3.51,'-2595','47838',460,880);
INSERT INTO "communes" VALUES('65','Souyeaux','17',291,200,6.02,'-2402','48046',271,427);
INSERT INTO "communes" VALUES('65','Viger','27',133,87,3.37,'-2650','47847',385,1160);
INSERT INTO "communes" VALUES('65','Ferrières','03',111,110,16.97,'-2889','47788',453,1848);
INSERT INTO "communes" VALUES('65','Artigues','12',24,29,1.46,'-2593','47861',485,860);
INSERT INTO "communes" VALUES('65','Barthe','08',16,24,1.35,'-2074','48092',286,385);
INSERT INTO "communes" VALUES('65','Gez','01',304,234,3.89,'-2719','47792',518,1004);
INSERT INTO "communes" VALUES('65','Hiis','34',218,210,3.03,'-2481','47929',409,579);
INSERT INTO "communes" VALUES('65','Luquet','16',365,304,8.17,'-2728','48071',346,409);
INSERT INTO "communes" VALUES('65','Saint-Martin','34',376,329,8.08,'-2499','47957',332,489);
INSERT INTO "communes" VALUES('65','Estaing','03',78,67,71.53,'-2795','47708',906,2960);
INSERT INTO "communes" VALUES('65','Madiran','09',449,536,15.02,'-2662','48390',133,262);
INSERT INTO "communes" VALUES('65','Saint-Paul','19',282,232,6.85,'-2035','47868',439,567);
INSERT INTO "communes" VALUES('65','Thèbe','15',81,48,7.6,'-1940','47740',520,1587);
INSERT INTO "communes" VALUES('65','Bun','03',147,108,2.8,'-2770','47750',673,1345);
INSERT INTO "communes" VALUES('65','Campistrous','11',298,341,10.12,'-2177','47947',435,615);
INSERT INTO "communes" VALUES('65','Gaillagos','03',113,81,8.46,'-2791','47757',734,1617);
INSERT INTO "communes" VALUES('65','Créchets','15',42,35,0.97,'-1957','47781',487,1041);
INSERT INTO "communes" VALUES('65','Adast','01',257,227,1.05,'-2682','47749',434,542);
INSERT INTO "communes" VALUES('65','Houeydets','10',229,184,7.53,'-2204','47956',414,584);
INSERT INTO "communes" VALUES('65','Horgues','34',1067,973,4.49,'-2498','47987',342,373);
INSERT INTO "communes" VALUES('65','Lassales','08',23,38,2.52,'-2055','48015',358,508);
INSERT INTO "communes" VALUES('65','Hourc','17',114,104,2,'-2406','48055',266,406);
INSERT INTO "communes" VALUES('65','Betpouey','13',111,128,16.2,'-2559','47646',899,2854);
INSERT INTO "communes" VALUES('65','Troubat','15',58,53,2.79,'-1951','47751',519,1052);
INSERT INTO "communes" VALUES('65','Devèze','08',60,51,5.05,'-1988','48080',277,422);
INSERT INTO "communes" VALUES('65','Séméac','22',4679,4760,6.29,'-2478','48031',310,436);
INSERT INTO "communes" VALUES('65','Montoussé','05',233,233,7.88,'-2135','47852',496,688);
INSERT INTO "communes" VALUES('65','Layrisse','16',179,150,3.33,'-2553','47933',378,529);
INSERT INTO "communes" VALUES('65','Arrayou-Lahitte','12',103,93,4.81,'-2551','47880',393,699);
INSERT INTO "communes" VALUES('65','Vidou','24',88,74,4.96,'-2236','48110',264,370);
INSERT INTO "communes" VALUES('65','Sost','15',99,110,32.05,'-1977','47699',710,1958);
INSERT INTO "communes" VALUES('65','Salles-Adour','22',458,333,2.48,'-2486','47982',347,377);
INSERT INTO "communes" VALUES('65','Castillon','11',85,98,3.32,'-2358','47876',334,585);
INSERT INTO "communes" VALUES('65','Ayros-Arbouix','01',291,231,2.72,'-2669','47783',418,880);
INSERT INTO "communes" VALUES('65','Escala','05',402,334,3.88,'-2146','47870',506,627);
INSERT INTO "communes" VALUES('65','Montignac','22',114,114,1.07,'-2429','47982',364,486);
INSERT INTO "communes" VALUES('65','Ger','12',173,128,1.94,'-2640','47838',390,720);
INSERT INTO "communes" VALUES('65','Oursbelille','33',1219,1200,11.33,'-2555','48097',259,376);
INSERT INTO "communes" VALUES('65','La Barthe-de-Neste','05',1163,1059,7.62,'-2170','47866',516,658);
INSERT INTO "communes" VALUES('65','Labastide','05',163,161,5.58,'-2204','47817',532,800);
INSERT INTO "communes" VALUES('65','Bourisp','26',152,111,1.9,'-2220','47587',772,1285);
INSERT INTO "communes" VALUES('65','Barèges','13',201,259,45.84,'-2524','47663',1070,3087);
INSERT INTO "communes" VALUES('65','Viella','13',78,102,3.14,'-2580','47641',772,1987);
INSERT INTO "communes" VALUES('65','Esparros','05',165,194,32.56,'-2239','47813',439,1924);
INSERT INTO "communes" VALUES('65','Molère','11',39,30,1.74,'-2266','47886',390,611);
INSERT INTO "communes" VALUES('65','Banios','04',54,43,5.26,'-2336','47827',468,1145);
INSERT INTO "communes" VALUES('65','Tilhouse','11',213,211,6.51,'-2253','47875',353,664);
INSERT INTO "communes" VALUES('65','Ancizan','02',312,255,39.97,'-2219','47637',734,2843);
INSERT INTO "communes" VALUES('65','Vignec','26',212,189,6.42,'-2244','47583',797,2530);
INSERT INTO "communes" VALUES('65','Mazerolles','24',118,101,6.33,'-2279','48172',233,385);
INSERT INTO "communes" VALUES('65','Bramevaque','15',34,23,3.77,'-1958','47752',517,1543);
INSERT INTO "communes" VALUES('65','Soréac','17',35,34,2.31,'-2420','48126',237,333);
INSERT INTO "communes" VALUES('65','Azereix','16',992,906,15.2,'-2605','48010',325,463);
INSERT INTO "communes" VALUES('65','Orignac','04',228,248,9.91,'-2408','47917',393,568);
INSERT INTO "communes" VALUES('65','Nestier','19',163,165,4.94,'-2063','47848',458,604);
INSERT INTO "communes" VALUES('65','Pierrefitte-Nestalas','01',1266,1260,1.76,'-2678','47735',452,701);
INSERT INTO "communes" VALUES('65','Pailhac','02',67,52,0.99,'-2187','47676',720,977);
INSERT INTO "communes" VALUES('65','Estirac','14',107,101,5.21,'-2561','48329',158,169);
INSERT INTO "communes" VALUES('65','Arcizans-Dessus','03',101,96,5.01,'-2774','47759',676,1562);
INSERT INTO "communes" VALUES('65','Estensan','26',41,36,1.54,'-2213','47576',880,1255);
INSERT INTO "communes" VALUES('65','Lugagnan','12',158,168,0.75,'-2638','47847',380,575);
INSERT INTO "communes" VALUES('65','Villenave-près-Marsac','25',69,43,1.12,'-2497','48148',235,245);
INSERT INTO "communes" VALUES('65','Grailhen','26',19,12,6.06,'-2194','47607',1000,1728);
INSERT INTO "communes" VALUES('65','Oueilloux','23',160,123,4.4,'-2399','47965',295,497);
INSERT INTO "communes" VALUES('65','Guchen','02',376,358,5.55,'-2221','47626',751,1659);
INSERT INTO "communes" VALUES('65','Gourgue','11',48,44,1.53,'-2303','47929',287,521);
INSERT INTO "communes" VALUES('65','Sazos','13',119,128,29.38,'-2624','47648',640,2965);
INSERT INTO "communes" VALUES('65','Lançon','02',35,30,2.8,'-2189','47651',918,1365);
INSERT INTO "communes" VALUES('65','Tajan','11',146,144,4.93,'-2085','47987',394,564);
INSERT INTO "communes" VALUES('65','Castéra-Lou','17',204,154,4.82,'-2434','48136',231,332);
INSERT INTO "communes" VALUES('65','Lamarque-Rustaing','24',57,53,2.79,'-2269','48088',287,421);
INSERT INTO "communes" VALUES('65','Ségus','27',257,223,10.72,'-2681','47855',434,1523);
INSERT INTO "communes" VALUES('65','Pouyastruc','17',650,537,11.6,'-2406','48075',249,403);
INSERT INTO "communes" VALUES('65','Escaunets','25',113,93,6.24,'-2683','48162',274,363);
INSERT INTO "communes" VALUES('65','Lespouey','23',205,163,2.96,'-2408','48012',264,411);
INSERT INTO "communes" VALUES('65','Chelle-Debat','17',212,207,8.69,'-2341','48117',190,347);
INSERT INTO "communes" VALUES('65','Gèdre','13',251,291,144.57,'-2575','47540',905,3194);
INSERT INTO "communes" VALUES('65','Lustar','24',107,109,4.91,'-2224','48077',270,410);
INSERT INTO "communes" VALUES('65','Momères','34',661,587,2.34,'-2496','47975',361,395);
INSERT INTO "communes" VALUES('65','Lalanne','08',85,65,6.56,'-1956','48075',292,416);
INSERT INTO "communes" VALUES('65','Bordes','23',726,555,11.22,'-2345','48003',242,459);
INSERT INTO "communes" VALUES('65','Caixon','25',404,375,8.55,'-2567','48233',192,317);
INSERT INTO "communes" VALUES('65','Cazarilh','15',40,32,3.06,'-1950','47730',578,1587);
INSERT INTO "communes" VALUES('65','Aspin-Aure','02',55,42,12.27,'-2218','47702',739,1759);
INSERT INTO "communes" VALUES('65','Gensac','18',93,68,3.44,'-2502','48258',190,201);
INSERT INTO "communes" VALUES('65','Cassagne','18',209,176,6.65,'-2431','48174',219,299);
INSERT INTO "communes" VALUES('65','Sers','13',92,101,29.91,'-2553','47652',928,2872);
INSERT INTO "communes" VALUES('65','Poumarous','23',133,119,5.68,'-2361','47947',280,500);
INSERT INTO "communes" VALUES('65','Esquièze-Sère','13',379,465,1.52,'-2598','47640',659,1126);
INSERT INTO "communes" VALUES('65','Escondeaux','18',253,213,3.79,'-2452','48155',224,245);
INSERT INTO "communes" VALUES('65','Moumoulous','18',47,57,3.36,'-2328','48177',205,321);
INSERT INTO "communes" VALUES('65','Galan','10',727,804,14.05,'-2143','48024',310,501);
INSERT INTO "communes" VALUES('65','Villembits','24',102,113,5.25,'-2248','48089',282,425);
INSERT INTO "communes" VALUES('65','Vieuzos','08',51,46,4.93,'-2096','48065',293,465);
INSERT INTO "communes" VALUES('65','Peyrun','18',82,84,4.01,'-2385','48146',202,318);
INSERT INTO "communes" VALUES('65','Uz','01',36,24,2.45,'-2692','47741',625,1207);
INSERT INTO "communes" VALUES('65','Antin','24',121,135,7.46,'-2277','48148',246,404);
INSERT INTO "communes" VALUES('65','Loubajac','20',405,378,6.55,'-2686','47926',398,534);
INSERT INTO "communes" VALUES('65','Réjaumont','11',184,176,6.7,'-2096','47955',413,569);
INSERT INTO "communes" VALUES('65','Bordères-Louron','06',158,148,17.41,'-2157','47635',810,2173);
INSERT INTO "communes" VALUES('65','Antichan','15',37,27,1.19,'-1949','47772',493,648);
INSERT INTO "communes" VALUES('65','Lanne','16',575,507,5.75,'-2581','47960',346,454);
INSERT INTO "communes" VALUES('65','Omex','27',249,205,5.53,'-2685','47862',409,1133);
INSERT INTO "communes" VALUES('65','Aureilhan','21',7911,7453,9.44,'-2489','48049',284,385);
INSERT INTO "communes" VALUES('65','Arrodets-ez-Angles','12',104,81,4.79,'-2553','47860',434,931);
INSERT INTO "communes" VALUES('65','Luc','23',180,180,4.93,'-2399','47948',352,550);
INSERT INTO "communes" VALUES('65','Grézian','02',96,78,1.98,'-2207','47632',732,1200);
INSERT INTO "communes" VALUES('65','Astugue','04',284,219,7.96,'-2517','47881',391,733);
INSERT INTO "communes" VALUES('65','Julos','12',340,241,5.86,'-2590','47913',398,648);
INSERT INTO "communes" VALUES('65','Cadeilhan-Trachère','26',45,55,4.86,'-2247','47574',834,1924);
INSERT INTO "communes" VALUES('65','Clarac','23',173,177,6.36,'-2323','48024',235,485);
INSERT INTO "communes" VALUES('65','Bonnemazon','11',83,73,5,'-2297','47892',307,513);
INSERT INTO "communes" VALUES('65','Lutilhous','11',217,182,3.85,'-2230','47922',439,588);
INSERT INTO "communes" VALUES('65','Lannemezan','11',5817,6138,19.03,'-2169','47916',442,647);
INSERT INTO "communes" VALUES('65','Bernac-Dessus','22',306,323,4.6,'-2468','47956',394,527);
INSERT INTO "communes" VALUES('65','Escoubès-Pouts','12',100,96,2.77,'-2561','47896',373,552);
INSERT INTO "communes" VALUES('65','Saint-Lanne','09',120,119,13.1,'-2664','48437',118,243);
INSERT INTO "communes" VALUES('65','Sabalos','17',147,106,2.2,'-2441','48095',286,365);
INSERT INTO "communes" VALUES('65','Averan','16',72,65,4.35,'-2590','47930',390,623);
INSERT INTO "communes" VALUES('65','Boô-Silhen','01',278,271,3.12,'-2677','47798',399,599);
INSERT INTO "communes" VALUES('65','Aveux','15',51,55,3.08,'-1962','47788',479,1079);
INSERT INTO "communes" VALUES('65','Ilhet','02',130,120,8.02,'-2171','47738',634,1520);
INSERT INTO "communes" VALUES('65','Fréchendets','11',34,21,2.02,'-2330','47847',416,735);
INSERT INTO "communes" VALUES('65','Saléchan','15',192,173,4.1,'-1895','47729',459,1495);
INSERT INTO "communes" VALUES('65','Ens','26',27,16,3.49,'-2219','47563',1126,2204);
INSERT INTO "communes" VALUES('65','Viscos','13',44,42,6.52,'-2645','47678',520,2139);
INSERT INTO "communes" VALUES('65','Guizerix','08',124,134,7.2,'-2100','48137',217,307);
INSERT INTO "communes" VALUES('65','Arcizans-Avant','01',364,298,15.04,'-2714','47764',480,2332);
INSERT INTO "communes" VALUES('65','Sarriac-Bigorre','18',285,263,10.8,'-2454','48203',209,225);
INSERT INTO "communes" VALUES('65','Ossun','16',2322,2171,27.59,'-2625','47982',345,542);
INSERT INTO "communes" VALUES('65','Aurensan','33',755,660,7.11,'-2499','48117',250,271);
INSERT INTO "communes" VALUES('65','Aulon','02',81,84,28.84,'-2268','47612',1061,2843);
INSERT INTO "communes" VALUES('65','Liac','18',196,170,4.17,'-2486','48238',199,211);
INSERT INTO "communes" VALUES('65','Recurt','10',180,200,13.43,'-2112','48018',360,563);
INSERT INTO "communes" VALUES('65','Villemur','08',64,58,3.71,'-1986','48061',305,476);
INSERT INTO "communes" VALUES('65','Villelongue','01',369,291,20.46,'-2661','47727',457,2484);
INSERT INTO "communes" VALUES('65','Ricaud','23',72,54,3.3,'-2303','47942',279,546);
INSERT INTO "communes" VALUES('65','Bartrès','27',477,350,7.31,'-2649','47915',439,575);
INSERT INTO "communes" VALUES('65','Visker','16',332,309,4.16,'-2523','47932',397,560);
INSERT INTO "communes" VALUES('65','Sarlabous','11',70,58,3.39,'-2288','47862',344,593);
INSERT INTO "communes" VALUES('65','Tibiran-Jaunac','19',273,246,6.38,'-1992','47831',415,783);
INSERT INTO "communes" VALUES('65','Séron','16',299,225,9.29,'-2707','48136',290,386);
INSERT INTO "communes" VALUES('65','Sarrancolin','02',590,690,32.1,'-2177','47741',600,1890);
INSERT INTO "communes" VALUES('65','Laborde','05',96,110,1.82,'-2268','47812',416,610);
INSERT INTO "communes" VALUES('65','Sinzos','23',143,123,4.11,'-2356','48020',239,381);
INSERT INTO "communes" VALUES('65','Germs-sur-l''Oussouet','12',104,118,12.96,'-2532','47835',555,1499);
INSERT INTO "communes" VALUES('65','Avajan','06',73,68,3.29,'-2144','47603',880,1687);
INSERT INTO "communes" VALUES('65','Bonnefont','24',351,313,15.37,'-2211','48056',275,476);
INSERT INTO "communes" VALUES('65','Armenteule','06',60,29,0.71,'-2136','47572',933,1061);
INSERT INTO "communes" VALUES('65','Hagedet','09',48,40,2.21,'-2628','48354',155,273);
INSERT INTO "communes" VALUES('65','Camalès','25',440,385,4.67,'-2513','48178',221,239);
INSERT INTO "communes" VALUES('65','Esbareich','15',74,61,8.68,'-1972','47716',614,1675);
INSERT INTO "communes" VALUES('65','Arbéost','03',90,121,14.9,'-2913','47776',555,2480);
INSERT INTO "communes" VALUES('65','Aventignan','19',179,180,5.22,'-2017','47854',434,783);
INSERT INTO "communes" VALUES('65','Sainte-Marie','15',32,26,0.28,'-1906','47747',459,478);
INSERT INTO "communes" VALUES('65','Tramezaïgues','26',33,30,34.96,'-2274','47552',913,2935);
INSERT INTO "communes" VALUES('65','Péré','11',52,55,4.71,'-2251','47929',332,574);
INSERT INTO "communes" VALUES('65','Argelès-Gazost','01',3208,3245,3.05,'-2706','47781',412,600);
INSERT INTO "communes" VALUES('65','Ossun-ez-Angles','12',38,32,2.14,'-2534','47865',431,826);
INSERT INTO "communes" VALUES('65','Hitte','23',158,124,2.91,'-2413','47944',360,540);
INSERT INTO "communes" VALUES('65','Espieilh','11',32,45,2.12,'-2326','47863',360,568);
INSERT INTO "communes" VALUES('65','Bourg-de-Bigorre','11',190,182,7.92,'-2307','47878',331,574);
INSERT INTO "communes" VALUES('65','Jarret','12',311,219,4.44,'-2612','47868',439,860);
INSERT INTO "communes" VALUES('65','Batsère','05',47,38,2.3,'-2275','47846',387,634);
INSERT INTO "communes" VALUES('65','Vielle-Aure','26',356,343,5.38,'-2234','47589',773,2730);
INSERT INTO "communes" VALUES('65','Caharet','23',26,26,1.23,'-2244','47939',408,569);
INSERT INTO "communes" VALUES('65','Lortet','05',211,204,3.63,'-2175','47826',545,809);
INSERT INTO "communes" VALUES('65','Lascazères','09',303,249,9.21,'-2625','48341',158,281);
INSERT INTO "communes" VALUES('65','Saint-Pastous','01',120,109,8.2,'-2661','47793',420,1661);
INSERT INTO "communes" VALUES('65','Loucrup','16',210,202,3.62,'-2518','47911',397,588);
INSERT INTO "communes" VALUES('65','Gavarnie','13',140,164,82.54,'-2607','47480',1200,3300);
INSERT INTO "communes" VALUES('65','Sacoué','15',86,56,13.14,'-1970','47764',535,1635);
INSERT INTO "communes" VALUES('65','Garde','33',495,457,4.91,'-2560','48117',251,368);
INSERT INTO "communes" VALUES('65','Castelnau-Magnoac','08',771,751,12.56,'-2032','48105',249,385);
INSERT INTO "communes" VALUES('65','Cabanac','17',270,210,5.56,'-2339','48079',205,315);
INSERT INTO "communes" VALUES('65','Villenave-près-Béarn','25',70,52,3.09,'-2703','48184',259,362);
INSERT INTO "communes" VALUES('65','Marquerie','17',72,74,3.46,'-2371','48066',222,337);
INSERT INTO "communes" VALUES('65','Estampures','24',78,77,5.56,'-2282','48191',221,330);
INSERT INTO "communes" VALUES('65','Bourréac','12',84,71,1.26,'-2594','47892',429,582);
INSERT INTO "communes" VALUES('65','Lalanne-Trie','24',135,109,4.92,'-2220','48122',250,372);
INSERT INTO "communes" VALUES('65','Beaudéan','07',400,380,16.7,'-2409','47809',611,2262);
INSERT INTO "communes" VALUES('65','Génos','06',157,127,23.63,'-2149','47566',939,3022);
INSERT INTO "communes" VALUES('65','Anla','15',80,48,2.85,'-1950','47781',476,746);
INSERT INTO "communes" VALUES('65','Betbèze','08',43,41,3.45,'-1961','48094',270,428);
INSERT INTO "communes" VALUES('65','Odos','34',3250,3285,8.77,'-2532','47995',315,391);
INSERT INTO "communes" VALUES('65','Saint-Savin','01',382,353,3.86,'-2697','47755',433,1320);
INSERT INTO "communes" VALUES('65','Ilheu','15',37,39,2.01,'-1934','47774',520,894);
INSERT INTO "communes" VALUES('65','Vielle-Louron','06',80,51,2.89,'-2148','47593',907,1681);
INSERT INTO "communes" VALUES('65','Hèches','05',619,580,35.44,'-2183','47796',564,1903);
INSERT INTO "communes" VALUES('65','Barrancoueu','02',32,33,3.8,'-2224','47677',784,1691);
INSERT INTO "communes" VALUES('65','Anères','19',187,149,2.66,'-2080','47854',464,536);
INSERT INTO "communes" VALUES('65','Bénac','16',508,481,7.93,'-2567','47948',341,491);
INSERT INTO "communes" VALUES('65','Trie-sur-Baïse','24',1069,1033,11.2,'-2185','48135',224,360);
INSERT INTO "communes" VALUES('65','Goudon','23',222,217,7.53,'-2337','48048',219,410);
INSERT INTO "communes" VALUES('65','Lanespède','23',154,149,4.47,'-2300','47963',288,508);
INSERT INTO "communes" VALUES('65','Tournous-Darré','24',81,76,5.63,'-2195','48097',249,355);
INSERT INTO "communes" VALUES('65','Arcizac-Adour','34',519,469,5.1,'-2486','47951',385,522);
INSERT INTO "communes" VALUES('65','Bugard','24',86,99,5.32,'-2247','48065',318,458);
INSERT INTO "communes" VALUES('65','Pinas','11',459,442,5.93,'-2112','47906',526,609);
INSERT INTO "communes" VALUES('65','Bordères-sur-l''Échez','33',4243,3556,15.95,'-2542','48066',273,378);
INSERT INTO "communes" VALUES('65','Arrodets','05',25,19,0.98,'-2281','47811',421,702);
INSERT INTO "communes" VALUES('65','Soues','34',3005,3056,3.9,'-2486','48006',319,358);
INSERT INTO "communes" VALUES('65','Camparan','26',61,54,2.35,'-2202','47598',790,1620);
INSERT INTO "communes" VALUES('65','Sadournin','24',182,176,12.41,'-2151','48128',220,385);
INSERT INTO "communes" VALUES('65','Gardères','16',420,381,15.23,'-2718','48087',337,413);
INSERT INTO "communes" VALUES('65','Ozon','23',285,288,9.08,'-2312','47970',266,528);
INSERT INTO "communes" VALUES('65','Ordizan','04',476,407,5.89,'-2451','47898',444,633);
INSERT INTO "communes" VALUES('65','Lombrès','19',80,88,1.42,'-2029','47841',454,600);
INSERT INTO "communes" VALUES('65','Cantaous','19',441,438,5.68,'-2104','47892',523,611);
INSERT INTO "communes" VALUES('65','Antist','04',135,106,2.43,'-2454','47908',434,576);
INSERT INTO "communes" VALUES('65','Soublecause','09',180,175,6.18,'-2626','48368',147,268);
INSERT INTO "communes" VALUES('65','Labatut-Rivière','14',337,361,12.71,'-2559','48363',148,226);
INSERT INTO "communes" VALUES('65','Lubret-Saint-Luc','24',72,91,5.61,'-2261','48128',264,416);
INSERT INTO "communes" VALUES('65','Cheust','12',83,94,3.06,'-2579','47834',532,862);
INSERT INTO "communes" VALUES('65','Artalens-Souin','01',107,110,3.9,'-2648','47750',634,1350);
INSERT INTO "communes" VALUES('65','Galez','10',129,144,7.29,'-2144','47988',360,530);
INSERT INTO "communes" VALUES('65','Tarasteix','33',284,229,9.85,'-2605','48134',258,366);
INSERT INTO "communes" VALUES('65','Grust','13',49,40,9.52,'-2632','47654',816,2527);
INSERT INTO "communes" VALUES('65','Rabastens-de-Bigorre','18',1439,1337,8.93,'-2429','48208',191,280);
INSERT INTO "communes" VALUES('65','Izaourt','15',231,232,2.41,'-1930','47796',444,746);
INSERT INTO "communes" VALUES('65','Tarbes','99',43034,46433,15.33,'-2513','48037',284,326);
INSERT INTO "communes" VALUES('65','Ferrère','15',57,55,57.56,'-2000','47726',667,2122);
INSERT INTO "communes" VALUES('65','Burg','23',269,267,12.56,'-2234','47988',348,544);
INSERT INTO "communes" VALUES('65','Gayan','33',255,252,2.78,'-2547','48121',252,265);
INSERT INTO "communes" VALUES('65','Organ','08',32,52,2.73,'-2059','48083',310,440);
INSERT INTO "communes" VALUES('65','Hères','09',125,124,5.89,'-2596','48392',141,244);
INSERT INTO "communes" VALUES('65','Bazet','33',1650,1300,2.84,'-2511','48100',264,276);
INSERT INTO "communes" VALUES('65','Sanous','25',83,75,1.63,'-2593','48198',216,322);
INSERT INTO "communes" VALUES('65','Bonrepos','10',192,189,8.8,'-2180','47992',359,540);
INSERT INTO "communes" VALUES('65','Bouilh-Devant','18',20,23,2.99,'-2308','48145',245,381);
INSERT INTO "communes" VALUES('65','Sariac-Magnoac','08',153,138,10.93,'-1994','48123',243,420);
INSERT INTO "communes" VALUES('65','Lapeyre','24',81,68,3.57,'-2220','48137',264,388);
INSERT INTO "communes" VALUES('65','Trouley-Labarthe','18',97,74,4.39,'-2328','48129',201,380);
INSERT INTO "communes" VALUES('65','Soulom','01',241,247,2.91,'-2678','47728',458,967);
INSERT INTO "communes" VALUES('65','Bouilh-Péreuilh','17',105,88,7.85,'-2388','48119',219,351);
INSERT INTO "communes" VALUES('65','Loudervielle','06',64,42,5.39,'-2128','47565',1038,2034);
INSERT INTO "communes" VALUES('65','Tostat','18',455,423,6.27,'-2482','48145',234,254);
INSERT INTO "communes" VALUES('65','Louey','16',996,910,6.06,'-2574','47972',327,450);
INSERT INTO "communes" VALUES('65','Boulin','17',275,280,2.52,'-2442','48057',289,414);
INSERT INTO "communes" VALUES('65','Loures-Barousse','15',735,740,2.16,'-1924','47805',435,464);
INSERT INTO "communes" VALUES('65','Hachan','08',41,38,1.86,'-2089','48096',274,350);
INSERT INTO "communes" VALUES('65','Vic-en-Bigorre','25',5280,4803,31.93,'-2537','48206',192,323);
INSERT INTO "communes" VALUES('65','Betpouy','08',76,72,4.15,'-2086','48083',287,456);
INSERT INTO "communes" VALUES('65','Gaussan','08',111,112,7.72,'-2057','48034',329,489);
INSERT INTO "communes" VALUES('65','Lansac','17',150,149,3.87,'-2413','48026',250,406);
INSERT INTO "communes" VALUES('65','Peyrouse','20',286,233,4.8,'-2726','47894',350,523);
INSERT INTO "communes" VALUES('65','Angos','22',225,203,2.98,'-2428','47993',270,431);
INSERT INTO "communes" VALUES('65','Pouzac','04',1109,1064,7.58,'-2446','47873',486,753);
INSERT INTO "communes" VALUES('65','Montgaillard','04',772,727,9.64,'-2476','47916',419,602);
INSERT INTO "communes" VALUES('65','Saint-Créac','12',93,115,2.2,'-2624','47843',416,825);
INSERT INTO "communes" VALUES('65','Argelès-Bagnères','04',120,135,2.62,'-2375','47878',391,567);
INSERT INTO "communes" VALUES('65','Ouzous','01',201,187,4.76,'-2715','47811',466,1419);
INSERT INTO "communes" VALUES('65','Aubarède','17',257,224,4.85,'-2332','48080',210,426);
INSERT INTO "communes" VALUES('65','Izaux','05',184,185,5.33,'-2178','47847',526,809);
INSERT INTO "communes" VALUES('65','Siradan','15',292,309,2.74,'-1916','47744',459,1027);
INSERT INTO "communes" VALUES('65','Barbachen','18',51,42,3.04,'-2457','48260',194,281);
INSERT INTO "communes" VALUES('65','Campan','07',1457,1475,95.36,'-2399','47797',629,2747);
INSERT INTO "communes" VALUES('65','Bégole','23',186,176,10.24,'-2231','47952',337,583);
INSERT INTO "communes" VALUES('65','Germ','06',46,27,12.55,'-2123','47548',1160,2683);
INSERT INTO "communes" VALUES('65','Beaucens','01',422,350,36.82,'-2664','47752',434,2637);
INSERT INTO "communes" VALUES('65','Lhez','23',78,81,0.88,'-2377','48004',269,368);
INSERT INTO "communes" VALUES('65','Camous','02',26,17,3.29,'-2179','47717',640,1605);
INSERT INTO "communes" VALUES('65','Orieux','23',107,113,8.19,'-2272','48036',290,473);
INSERT INTO "communes" VALUES('65','Loudenvielle','06',284,261,42.65,'-2139','47551',956,3130);
INSERT INTO "communes" VALUES('65','Gonez','17',33,31,1.08,'-2359','48036',232,343);
INSERT INTO "communes" VALUES('65','Fréchet-Aure','02',13,10,3.4,'-2184','47701',655,1450);
INSERT INTO "communes" VALUES('65','Sabarros','10',32,39,3.67,'-2111','48042',312,483);
INSERT INTO "communes" VALUES('65','Laslades','17',350,301,5.26,'-2409','48031',245,416);
INSERT INTO "communes" VALUES('65','Bernadets-Dessus','23',148,155,7.86,'-2256','48019',305,505);
INSERT INTO "communes" VALUES('65','Laloubère','34',1936,1358,4.05,'-2515','48007',320,346);
INSERT INTO "communes" VALUES('65','Laran','08',47,42,3.44,'-2061','48038',324,486);
INSERT INTO "communes" VALUES('65','Lafitole','14',485,377,8.69,'-2515','48275',180,239);
INSERT INTO "communes" VALUES('65','Bazordan','08',124,157,9.22,'-1983','48026',350,494);
INSERT INTO "communes" VALUES('65','Peyraube','23',141,114,3.46,'-2324','48002',246,486);
INSERT INTO "communes" VALUES('65','Bernadets-Debat','24',104,108,8.77,'-2244','48171',231,386);
INSERT INTO "communes" VALUES('65','Lescurry','18',178,163,5.02,'-2425','48151',225,315);
INSERT INTO "communes" VALUES('65','Aries-Espénan','08',64,63,5.55,'-2007','48086',262,405);
INSERT INTO "communes" VALUES('65','Arné','08',203,189,8.34,'-2035','47984',414,564);
INSERT INTO "communes" VALUES('65','Puydarrieux','24',212,264,13.99,'-2168','48095',243,406);
INSERT INTO "communes" VALUES('65','Orincles','16',321,261,5.86,'-2552','47920',360,608);
INSERT INTO "communes" VALUES('65','Mun','17',109,92,4.81,'-2296','48094',250,434);
INSERT INTO "communes" VALUES('65','Neuilh','04',109,76,2.39,'-2515','47863',474,860);
INSERT INTO "communes" VALUES('65','Saint-Laurent-de-Neste','19',941,837,10.41,'-2061','47864',456,585);
INSERT INTO "communes" VALUES('65','Barry','16',133,112,2.54,'-2571','47940',354,575);
INSERT INTO "communes" VALUES('65','Castelnau-Rivière-Basse','09',675,667,18.5,'-2628','48423',128,249);
INSERT INTO "communes" VALUES('65','Artagnan','25',495,435,4.94,'-2512','48225',199,214);
INSERT INTO "communes" VALUES('65','Berbérust-Lias','12',56,40,5.73,'-2629','47828',520,1504);
INSERT INTO "communes" VALUES('65','Saligos','13',89,80,4.51,'-2619','47658',596,2390);
INSERT INTO "communes" VALUES('65','Vier-Bordes','01',94,74,9.39,'-2659','47776',640,1709);
INSERT INTO "communes" VALUES('65','Lau-Balagnas','01',500,483,2.9,'-2698','47773',419,573);
INSERT INTO "communes" VALUES('65','Ayzac-Ost','01',386,388,3.08,'-2703','47804',408,850);
INSERT INTO "communes" VALUES('65','Tournay','23',1310,1139,14.32,'-2323','47982',249,511);
INSERT INTO "communes" VALUES('65','Bazus-Aure','02',134,118,1.95,'-2208','47618',755,1504);
INSERT INTO "communes" VALUES('65','Barlest','20',267,223,4.02,'-2698','47946',385,513);
INSERT INTO "communes" VALUES('65','Estarvielle','06',31,29,0.82,'-2135','47578',923,1168);
INSERT INTO "communes" VALUES('65','Oléac-Debat','17',108,105,1.94,'-2443','48077',296,382);
INSERT INTO "communes" VALUES('65','Lamarque-Pontacq','16',808,647,10.85,'-2723','47975',363,510);
INSERT INTO "communes" VALUES('65','Coussan','17',119,124,3.12,'-2367','48048',231,330);
INSERT INTO "communes" VALUES('65','Mingot','18',100,69,1.73,'-2404','48194',213,296);
INSERT INTO "communes" VALUES('65','Peyriguère','17',23,25,4.17,'-2305','48061',217,438);
INSERT INTO "communes" VALUES('65','Fontrailles','24',145,147,8.99,'-2201','48160',211,378);
INSERT INTO "communes" VALUES('65','Ossen','27',191,173,6.91,'-2670','47856',430,1418);
INSERT INTO "communes" VALUES('65','Pujo','25',616,579,5.28,'-2523','48164',230,246);
INSERT INTO "communes" VALUES('65','Esterre','13',200,199,1.74,'-2588','47639',720,1987);
INSERT INTO "communes" VALUES('65','Mérilheu','04',246,253,3.38,'-2401','47882',449,626);
INSERT INTO "communes" VALUES('65','Sentous','10',77,105,7.3,'-2176','48072',267,422);
INSERT INTO "communes" VALUES('65','Trébons','04',698,684,10.19,'-2461','47891',456,773);
INSERT INTO "communes" VALUES('65','Mazères-de-Neste','19',327,290,3.36,'-1992','47857',419,546);
INSERT INTO "communes" VALUES('65','Sireix','03',68,58,1.73,'-2760','47750',668,1042);
INSERT INTO "communes" VALUES('65','Tuzaguet','19',459,408,7.72,'-2107','47863',480,574);
INSERT INTO "communes" VALUES('65','Gouaux','02',73,58,6.02,'-2194','47628',852,1687);
INSERT INTO "communes" VALUES('65','Marseillan','17',211,158,4.4,'-2357','48117',194,322);
INSERT INTO "communes" VALUES('65','Cazaux-Fréchet-Anéran-Camors','06',61,44,12.35,'-2129','47589',908,2173);
INSERT INTO "communes" VALUES('65','Gazave','05',71,68,7.17,'-2133','47819',517,1211);
INSERT INTO "communes" VALUES('65','Aragnouet','26',242,260,108.29,'-2334','47543',956,3194);
INSERT INTO "communes" VALUES('65','Montégut','19',131,136,6.94,'-2037','47849',447,907);
INSERT INTO "communes" VALUES('65','Bagnères-de-Bigorre','04',8047,8052,125.86,'-2430','47849',440,2872);
INSERT INTO "communes" VALUES('65','Adé','27',741,678,7.24,'-2626','47927',382,583);
INSERT INTO "communes" VALUES('65','Beyrède-Jumet','02',223,218,15.9,'-2179','47731',635,1924);
INSERT INTO "communes" VALUES('65','Saint-Arroman','05',103,107,4.25,'-2150','47827',526,809);
INSERT INTO "communes" VALUES('65','Aspin-en-Lavedan','27',246,223,1.77,'-2648','47861',370,622);
INSERT INTO "communes" VALUES('65','Arrens-Marsous','03',725,697,100.55,'-2833','47728',720,3144);
INSERT INTO "communes" VALUES('65','Ourde','15',31,25,5.6,'-1979','47732',592,1543);
INSERT INTO "communes" VALUES('65','Espèche','05',57,47,2.67,'-2269','47844',392,619);
INSERT INTO "communes" VALUES('65','Marsas','04',68,44,2.77,'-2345','47836',454,840);
INSERT INTO "communes" VALUES('65','Générest','19',94,98,11.83,'-2012','47814',480,1247);
INSERT INTO "communes" VALUES('65','Mascaras','23',392,304,4.76,'-2408','47989',272,444);
INSERT INTO "communes" VALUES('65','Mont','06',32,36,8.41,'-2120','47574',1157,2064);
INSERT INTO "communes" VALUES('65','Oroix','33',120,122,8.9,'-2630','48111',276,384);
INSERT INTO "communes" VALUES('65','Bulan','05',63,81,3.41,'-2287','47822',392,826);
INSERT INTO "communes" VALUES('65','Esconnets','11',28,28,2.31,'-2341','47855',389,725);
INSERT INTO "communes" VALUES('65','Gez-ez-Angles','12',22,22,2.37,'-2570','47878',397,721);
INSERT INTO "communes" VALUES('65','Allier','22',379,264,3.69,'-2460','47975',368,503);
INSERT INTO "communes" VALUES('65','Hauban','04',90,97,2.14,'-2415','47882',459,629);
INSERT INTO "communes" VALUES('65','Benque','11',77,49,2.05,'-2282','47883',329,494);
INSERT INTO "communes" VALUES('65','Saint-Lary-Soulan','26',885,1025,90.97,'-2237','47573',791,3087);
INSERT INTO "communes" VALUES('65','Labassère','04',259,235,10.09,'-2489','47843',546,1169);
INSERT INTO "communes" VALUES('65','Salles','01',200,168,27.48,'-2730','47809',517,1881);
INSERT INTO "communes" VALUES('65','Mazouau','05',16,11,1.4,'-2152','47815',540,1211);
INSERT INTO "communes" VALUES('65','Guchan','26',141,124,2.59,'-2208','47608',761,1526);
INSERT INTO "communes" VALUES('65','Ségalas','18',94,96,5.97,'-2463','48235',201,214);
INSERT INTO "communes" VALUES('65','Lourdes','98',14743,15242,36.94,'-2646','47883',343,960);
INSERT INTO "communes" VALUES('65','Ousté','12',41,46,2.35,'-2610','47833',478,1000);
INSERT INTO "communes" VALUES('65','Viey','13',26,33,6.24,'-2570','47647',787,2390);
INSERT INTO "communes" VALUES('65','Cauterets','01',1139,1316,156.84,'-2722','47655',503,3300);
INSERT INTO "communes" VALUES('65','Lahitte-Toupière','14',240,185,5.6,'-2617','48284',175,301);
INSERT INTO "communes" VALUES('65','Geu','12',174,145,2.67,'-2652','47822',386,779);
INSERT INTO "communes" VALUES('65','Ourdon','12',11,6,2.66,'-2613','47817',560,1400);
INSERT INTO "communes" VALUES('65','Bertren','15',217,194,2.66,'-1909','47778',442,894);
INSERT INTO "communes" VALUES('65','Sère-Rustaing','24',132,111,5.29,'-2269','48069',330,456);
INSERT INTO "communes" VALUES('65','Gembrie','15',71,75,1,'-1958','47766',497,585);
INSERT INTO "communes" VALUES('65','Aucun','03',260,205,12.94,'-2810','47748',800,1804);
INSERT INTO "communes" VALUES('65','Campuzan','08',153,163,6.62,'-2120','48079',249,333);
INSERT INTO "communes" VALUES('65','Jacque','17',71,54,1.87,'-2358','48133',189,295);
INSERT INTO "communes" VALUES('65','Larroque','08',89,102,6.89,'-2051','48123',250,392);
INSERT INTO "communes" VALUES('65','Casterets','08',13,5,1.86,'-1941','48125',290,376);
INSERT INTO "communes" VALUES('65','Monlong','08',108,108,7.21,'-2080','48007',372,529);
INSERT INTO "communes" VALUES('65','Chis','21',295,245,3.74,'-2462','48104',256,276);
INSERT INTO "communes" VALUES('65','Uzer','04',104,96,3.48,'-2379','47864',437,722);
INSERT INTO "communes" VALUES('65','Peyret-Saint-André','08',56,57,6.25,'-2032','48133',253,392);
INSERT INTO "communes" VALUES('65','Cizos','08',112,115,7.61,'-2052','48067',301,462);
INSERT INTO "communes" VALUES('65','Caubous','08',40,38,3.77,'-2067','48050',340,466);
INSERT INTO "communes" VALUES('65','Monléon-Magnoac','08',447,361,19.66,'-2020','48057',295,507);
INSERT INTO "communes" VALUES('65','Orleix','21',1832,1673,8.28,'-2462','48088',264,360);
INSERT INTO "communes" VALUES('65','Poueyferré','27',842,780,6.2,'-2682','47911',407,560);
INSERT INTO "communes" VALUES('65','Laméac','18',128,134,5.32,'-2344','48147',185,309);
INSERT INTO "communes" VALUES('65','Asté','07',535,484,26.67,'-2409','47823',578,1804);
INSERT INTO "communes" VALUES('65','Bizous','19',101,96,3.18,'-2105','47854',479,668);
INSERT INTO "communes" VALUES('65','Sassis','13',92,60,0.53,'-2615','47642',658,840);
INSERT INTO "communes" VALUES('65','Sauveterre','14',170,151,10.38,'-2477','48305',151,246);
INSERT INTO "communes" VALUES('65','Luz-Saint-Sauveur','13',1001,1107,50.38,'-2598','47635',677,3194);
INSERT INTO "communes" VALUES('65','Ris','06',12,12,1.89,'-2154','47652',920,1604);
INSERT INTO "communes" VALUES('65','Barbazan-Debat','22',3470,3503,9.78,'-2463','47994',336,470);
INSERT INTO "communes" VALUES('65','Chelle-Spou','11',110,91,4.58,'-2327','47929',279,491);
INSERT INTO "communes" VALUES('65','Dours','17',228,183,4.99,'-2442','48106',244,343);
INSERT INTO "communes" VALUES('65','Castelvieilh','17',223,192,5.31,'-2378','48094',223,360);
INSERT INTO "communes" VALUES('65','Puntous','08',208,198,8.85,'-2074','48115',241,345);
INSERT INTO "communes" VALUES('65','Saint-Pé-de-Bigorre','20',1257,1258,43.44,'-2773','47891',308,1527);
INSERT INTO "communes" VALUES('65','Lézignan','12',373,390,2.56,'-2601','47888',398,602);
INSERT INTO "communes" VALUES('65','Hibarette','16',233,187,1.53,'-2558','47961',333,462);
INSERT INTO "communes" VALUES('65','Bazus-Neste','05',47,45,2.49,'-2173','47817',556,1138);
INSERT INTO "communes" VALUES('65','Calavanté','23',270,186,2.06,'-2416','48004',313,431);
INSERT INTO "communes" VALUES('66','Latour-de-France','04',1065,882,13.94,'352','47521',77,422);
INSERT INTO "communes" VALUES('66','Vira','15',33,29,12.96,'86','47522',508,1288);
INSERT INTO "communes" VALUES('66','Cabestany','20',9074,8250,10.42,'673','47423',0,53);
INSERT INTO "communes" VALUES('66','Vernet-les-Bains','10',1439,1451,16.76,'57','47277',559,2760);
INSERT INTO "communes" VALUES('66','Molitg-les-Bains','10',215,207,12.96,'58','47392',353,1237);
INSERT INTO "communes" VALUES('66','La Llagonne','06',242,264,23.09,'-240','47252',1546,2196);
INSERT INTO "communes" VALUES('66','Cluses','03',263,219,8.91,'558','47207',103,368);
INSERT INTO "communes" VALUES('66','Villeneuve-la-Rivière','30',1304,1052,4.38,'519','47437',48,115);
INSERT INTO "communes" VALUES('66','Bompas','24',7246,6943,5.7,'663','47479',9,20);
INSERT INTO "communes" VALUES('66','Valcebollère','13',43,49,26.03,'-335','47097',1339,2661);
INSERT INTO "communes" VALUES('66','Rigarda','18',468,219,3.6,'218','47365',250,650);
INSERT INTO "communes" VALUES('66','Cassagnes','04',257,199,15.16,'305','47489',120,540);
INSERT INTO "communes" VALUES('66','Sainte-Léocadie','13',150,140,8.88,'-370','47152',1193,2043);
INSERT INTO "communes" VALUES('66','Saint-Hippolyte','14',2494,1857,14.65,'700','47538',0,11);
INSERT INTO "communes" VALUES('66','Saint-Cyprien','27',10476,8598,15.8,'744','47353',0,29);
INSERT INTO "communes" VALUES('66','Thuès-Entre-Valls','07',33,40,20.41,'-126','47249',740,2606);
INSERT INTO "communes" VALUES('66','Railleu','07',22,16,9.97,'-172','47318',1150,2080);
INSERT INTO "communes" VALUES('66','Trilla','16',61,54,8.96,'203','47489',155,801);
INSERT INTO "communes" VALUES('66','Saint-Nazaire','31',2465,2378,10.33,'728','47408',0,18);
INSERT INTO "communes" VALUES('66','Sahorre','07',358,350,14.88,'28','47258',599,2082);
INSERT INTO "communes" VALUES('66','Millas','05',3924,3449,19.12,'399','47435',89,500);
INSERT INTO "communes" VALUES('66','Caudiès-de-Conflent','06',13,6,6.5,'-195','47297',1616,2045);
INSERT INTO "communes" VALUES('66','Corneilla-de-Conflent','10',470,425,11.02,'49','47296',397,823);
INSERT INTO "communes" VALUES('66','Saint-Jean-Pla-de-Corts','03',2028,1775,10.62,'506','47235',71,208);
INSERT INTO "communes" VALUES('66','Castelnou','17',364,335,19.28,'407','47355',111,444);
INSERT INTO "communes" VALUES('66','Arboussols','16',103,94,14.08,'165','47404',242,1025);
INSERT INTO "communes" VALUES('66','Enveitg','13',666,620,30.52,'-469','47178',1179,2579);
INSERT INTO "communes" VALUES('66','Tarerach','16',57,38,8.16,'183','47434',354,863);
INSERT INTO "communes" VALUES('66','Saint-Martin','15',56,47,10.72,'147','47540',268,642);
INSERT INTO "communes" VALUES('66','<NAME>','03',586,620,4.27,'585','47182',196,647);
INSERT INTO "communes" VALUES('66','Saint-Féliu-d''Amont','05',746,655,6.11,'429','47430',82,124);
INSERT INTO "communes" VALUES('66','Saint-Arnac','15',121,82,6.6,'214','47533',212,583);
INSERT INTO "communes" VALUES('66','Saint-Paul-de-Fenouillet','15',1879,1858,43.9,'187','47567',170,966);
INSERT INTO "communes" VALUES('66','Pézilla-la-Rivière','05',3167,2751,15.62,'482','47439',62,243);
INSERT INTO "communes" VALUES('66','Villefranche-de-Conflent','10',238,225,4.46,'35','47319',390,1395);
INSERT INTO "communes" VALUES('66','Saint-Michel-de-Llotes','18',309,269,8.64,'319','47388',146,602);
INSERT INTO "communes" VALUES('66','Nahuja','13',68,63,5.6,'-379','47139',1196,1888);
INSERT INTO "communes" VALUES('66','Montferrer','02',198,221,21.95,'256','47153',308,1608);
INSERT INTO "communes" VALUES('66','Cases-de-Pène','12',786,430,13.38,'501','47532',36,362);
INSERT INTO "communes" VALUES('66','Ille-sur-Têt','18',5266,4995,31.67,'316','47412',110,446);
INSERT INTO "communes" VALUES('66','Caudiès-de-Fenouillèdes','15',620,598,36.45,'43','47569',279,1000);
INSERT INTO "communes" VALUES('66','Calmeilles','03',64,42,13.22,'375','47280',256,784);
INSERT INTO "communes" VALUES('66','Saint-Estève','30',10838,9805,11.67,'562','47459',33,91);
INSERT INTO "communes" VALUES('66','Estavar','13',408,410,9.24,'-377','47189',1200,1659);
INSERT INTO "communes" VALUES('66','<NAME>','06',705,623,3.26,'-246','47224',1360,1623);
INSERT INTO "communes" VALUES('66','<NAME>','02',83,61,15.63,'280','47274',545,1780);
INSERT INTO "communes" VALUES('66','Argelès-sur-Mer','01',9978,9069,58.67,'764','47274',0,1099);
INSERT INTO "communes" VALUES('66','Réal','06',51,31,10.45,'-225','47367',1379,2340);
INSERT INTO "communes" VALUES('66','Maureillas-las-Illas','03',2661,2281,42.1,'526','47211',78,1320);
INSERT INTO "communes" VALUES('66','Taulis','02',50,45,6.19,'329','47249',340,1360);
INSERT INTO "communes" VALUES('66','Mantet','07',28,20,32.15,'-33','47197',1381,2688);
INSERT INTO "communes" VALUES('66','Campoussy','16',47,33,17.04,'136','47456',391,1144);
INSERT INTO "communes" VALUES('66','Saint-Marsal','02',97,85,15.36,'316','47264',260,1477);
INSERT INTO "communes" VALUES('66','Conat','10',53,45,19.12,'22','47348',467,1680);
INSERT INTO "communes" VALUES('66','Sauto','06',91,108,8.43,'-206','47236',1100,2030);
INSERT INTO "communes" VALUES('66','Py','07',93,107,50.86,'16','47218',880,2442);
INSERT INTO "communes" VALUES('66','Llauro','17',327,270,8.34,'452','47277',174,511);
INSERT INTO "communes" VALUES('66','Peyrestortes','12',1332,1431,7.96,'572','47505',35,97);
INSERT INTO "communes" VALUES('66','Oms','03',295,268,18.53,'400','47271',180,611);
INSERT INTO "communes" VALUES('66','Boule-d''Amont','18',61,73,23.22,'308','47311',234,1348);
INSERT INTO "communes" VALUES('66','Olette','07',384,345,28.95,'-74','47284',563,2361);
INSERT INTO "communes" VALUES('66','Arles-sur-Tech','02',2728,2687,28.82,'330','47174',226,1302);
INSERT INTO "communes" VALUES('66','Alénya','27',3133,2323,5.34,'717','47378',3,18);
INSERT INTO "communes" VALUES('66','Baixas','30',2530,2216,18.91,'525','47500',51,312);
INSERT INTO "communes" VALUES('66','Felluns','16',55,57,6.61,'163','47513',220,567);
INSERT INTO "communes" VALUES('66','Bages','28',3915,3326,11.95,'623','47340',14,91);
INSERT INTO "communes" VALUES('66','Fenouillet','15',87,66,18.76,'49','47547',373,1208);
INSERT INTO "communes" VALUES('66','Espira-de-Conflent','18',173,124,6.03,'179','47352',260,767);
INSERT INTO "communes" VALUES('66','Pollestres','29',4410,3623,8.3,'589','47375',24,83);
INSERT INTO "communes" VALUES('66','Codalet','10',352,360,2.78,'89','47345',347,680);
INSERT INTO "communes" VALUES('66','Puyvalador','06',72,101,19.46,'-241','47385',1351,2363);
INSERT INTO "communes" VALUES('66','Tresserre','17',810,637,11.21,'548','47292',48,196);
INSERT INTO "communes" VALUES('66','Elne','28',7898,6410,21.29,'705','47334',0,65);
INSERT INTO "communes" VALUES('66','Sorède','01',3029,2704,34.54,'689','47256',42,1250);
INSERT INTO "communes" VALUES('66','Dorres','13',169,219,24.77,'-442','47205',1332,2827);
INSERT INTO "communes" VALUES('66','Osséja','13',1490,1286,17.13,'-395','47129',1187,2192);
INSERT INTO "communes" VALUES('66','Prats-de-Mollo-la-Preste','11',1101,1079,145.09,'158','47115',575,2693);
INSERT INTO "communes" VALUES('66','Eyne','13',129,127,20.36,'-282','47193',1470,2827);
INSERT INTO "communes" VALUES('66','Canohès','29',4867,4350,8.56,'553','47391',54,104);
INSERT INTO "communes" VALUES('66','Rabouillet','16',106,85,19.21,'59','47479',600,1529);
INSERT INTO "communes" VALUES('66','Port-Vendres','19',4290,5883,14.77,'854','47242',0,655);
INSERT INTO "communes" VALUES('66','Saleilles','27',4576,3876,6.12,'684','47394',8,29);
INSERT INTO "communes" VALUES('66','Saint-Laurent-de-la-Salanque','14',8674,7959,12.39,'727','47526',0,7);
INSERT INTO "communes" VALUES('66','Saint-Féliu-d''Avall','05',2473,2162,10.79,'447','47424',63,114);
INSERT INTO "communes" VALUES('66','Sournia','16',469,367,29.99,'117','47475',380,1234);
INSERT INTO "communes" VALUES('66','Ansignan','15',193,198,7.84,'199','47512',155,583);
INSERT INTO "communes" VALUES('66','Saint-Laurent-de-Cerdans','11',1275,1218,45.08,'307','47095',382,1305);
INSERT INTO "communes" VALUES('66','Salses-le-Château','12',3103,2523,71.28,'647','47592',0,354);
INSERT INTO "communes" VALUES('66','Bolquère','06',776,735,17.61,'-288','47226',1478,2099);
INSERT INTO "communes" VALUES('66','Néfiach','05',1140,789,8.81,'367','47438',104,301);
INSERT INTO "communes" VALUES('66','Lamanère','11',54,44,23.83,'204','47067',667,1554);
INSERT INTO "communes" VALUES('66','Passa','17',712,569,13.47,'528','47309',85,204);
INSERT INTO "communes" VALUES('66','Corsavy','02',231,204,47.02,'269','47185',345,2721);
INSERT INTO "communes" VALUES('66','Masos','10',810,562,5.71,'139','47357',297,564);
INSERT INTO "communes" VALUES('66','Marquixanes','18',542,399,4.8,'165','47380',244,568);
INSERT INTO "communes" VALUES('66','Lansac','04',104,74,5.2,'249','47518',218,481);
INSERT INTO "communes" VALUES('66','Baho','30',3153,2488,7.9,'540','47445',39,90);
INSERT INTO "communes" VALUES('66','Latour-de-Carol','13',413,368,12.63,'-497','47184',1209,2080);
INSERT INTO "communes" VALUES('66','Reynès','03',1204,1203,27.56,'413','47195',132,1440);
INSERT INTO "communes" VALUES('66','Fillols','10',163,144,8.4,'81','47290',576,2360);
INSERT INTO "communes" VALUES('66','Clara','10',240,161,8.7,'118','47317',380,1880);
INSERT INTO "communes" VALUES('66','Jujols','07',46,43,10.11,'-46','47301',570,2163);
INSERT INTO "communes" VALUES('66','Glorianes','18',18,23,18.72,'242','47323',320,1348);
INSERT INTO "communes" VALUES('66','Matemale','06',287,242,18.88,'-242','47319',1455,2081);
INSERT INTO "communes" VALUES('66','Claira','14',3610,2620,19.34,'688','47511',5,20);
INSERT INTO "communes" VALUES('66','Prunet-et-Belpuig','18',57,68,21.68,'320','47291',353,863);
INSERT INTO "communes" VALUES('66','Rivesaltes','12',8169,7948,28.76,'597','47521',11,70);
INSERT INTO "communes" VALUES('66','Banyuls-dels-Aspres','03',1200,1007,10.53,'590','47295',41,124);
INSERT INTO "communes" VALUES('66','Corbère-les-Cabanes','05',1068,844,4.14,'377','47398',125,300);
INSERT INTO "communes" VALUES('66','Prats-de-Sournia','16',74,58,8.01,'138','47494',347,966);
INSERT INTO "communes" VALUES('66','Calce','30',222,185,23.77,'463','47510',54,330);
INSERT INTO "communes" VALUES('66','Théza','28',1386,1253,4.83,'685','47375',13,27);
INSERT INTO "communes" VALUES('66','Bourg-Madame','13',1262,1175,7.85,'-436','47149',1130,1235);
INSERT INTO "communes" VALUES('66','Palau-del-Vidre','01',2848,2117,10.41,'694','47303',9,46);
INSERT INTO "communes" VALUES('66','Bélesta','04',221,215,20.52,'301','47464',122,561);
INSERT INTO "communes" VALUES('66','Planès','06',50,27,14.24,'-219','47213',1218,2804);
INSERT INTO "communes" VALUES('66','Catllar','10',717,638,8.02,'95','47371',288,771);
INSERT INTO "communes" VALUES('66','Porté-Puymorens','13',131,147,49.42,'-561','47276',1557,2827);
INSERT INTO "communes" VALUES('66','Urbanya','10',11,28,14.4,'-35','47376',720,1765);
INSERT INTO "communes" VALUES('66','Cerbère','19',1446,1488,8.18,'920','47159',0,643);
INSERT INTO "communes" VALUES('66','Ortaffa','28',1317,1094,8.49,'654','47311',19,90);
INSERT INTO "communes" VALUES('66','Err','13',632,551,25.92,'-337','47156',1309,2900);
INSERT INTO "communes" VALUES('66','Saint-Jean-Lasseille','17',857,470,2.89,'589','47312',66,103);
INSERT INTO "communes" VALUES('66','Casteil','10',120,126,29.83,'63','47257',697,2721);
INSERT INTO "communes" VALUES('66','Banyuls-sur-Mer','19',4670,4538,42.43,'879','47202',0,965);
INSERT INTO "communes" VALUES('66','Tordères','17',173,144,9.91,'462','47289',139,390);
INSERT INTO "communes" VALUES('66','Ur','13',362,309,6.79,'-443','47180',1155,1540);
INSERT INTO "communes" VALUES('66','Formiguères','06',425,436,46.88,'-261','47349',1428,2808);
INSERT INTO "communes" VALUES('66','Villelongue-de-la-Salanque','31',3084,2461,7.21,'720','47475',5,15);
INSERT INTO "communes" VALUES('66','Vinça','18',1934,1669,7.74,'213','47383',199,364);
INSERT INTO "communes" VALUES('66','Pézilla-de-Conflent','16',60,50,6.85,'161','47487',240,763);
INSERT INTO "communes" VALUES('66','Mosset','10',292,297,71.93,'13','47409',558,2459);
INSERT INTO "communes" VALUES('66','Opoul-Périllos','12',932,595,50.53,'597','47633',100,709);
INSERT INTO "communes" VALUES('66','Fuilla','10',381,328,9.69,'29','47291',430,1171);
INSERT INTO "communes" VALUES('66','Trouillas','17',1757,1426,17.01,'524','47346',58,152);
INSERT INTO "communes" VALUES('66','Montbolo','02',187,145,21.98,'354','47205',240,1323);
INSERT INTO "communes" VALUES('66','Ria-Sirach','10',1201,1127,12.82,'70','47343',339,1081);
INSERT INTO "communes" VALUES('66','Angoustrine-Villeneuve-des-Escaldes','13',647,549,87.87,'-427','47198',1235,2886);
INSERT INTO "communes" VALUES('66','Saint-Pierre-dels-Forcats','06',261,215,12.81,'-242','47216',1320,2750);
INSERT INTO "communes" VALUES('66','Thuir','17',7267,7291,19.9,'467','47369',78,243);
INSERT INTO "communes" VALUES('66','Llo','13',157,133,28.44,'-303','47172',1319,2840);
INSERT INTO "communes" VALUES('66','Rasiguères','04',152,168,13.72,'302','47518',104,548);
INSERT INTO "communes" VALUES('66','Porta','13',148,98,65.19,'-568','47252',1325,2907);
INSERT INTO "communes" VALUES('66','Céret','03',7629,7292,37.86,'461','47209',107,1440);
INSERT INTO "communes" VALUES('66','Ayguatébia-Talau','07',44,45,29.68,'-169','47303',720,2030);
INSERT INTO "communes" VALUES('66','Serdinya','07',214,233,16.91,'-17','47298',449,1792);
INSERT INTO "communes" VALUES('66','<NAME>','03',5436,4392,14.42,'548','47249',55,363);
INSERT INTO "communes" VALUES('66','Campôme','10',108,107,5.26,'44','47390',357,1120);
INSERT INTO "communes" VALUES('66','Joch','18',231,146,3.38,'210','47353',292,920);
INSERT INTO "communes" VALUES('66','Lesquerde','15',171,133,15.67,'214','47557',216,600);
INSERT INTO "communes" VALUES('66','Montesquieu-des-Albères','01',1168,824,17.06,'606','47241',43,1001);
INSERT INTO "communes" VALUES('66','Le Tech','11',87,84,25.18,'231','47123',420,2721);
INSERT INTO "communes" VALUES('66','Pia','12',7617,5120,13.18,'649','47494',7,29);
INSERT INTO "communes" VALUES('66','Caramany','04',145,165,14,'260','47484',129,765);
INSERT INTO "communes" VALUES('66','Caixas','17',127,95,28.11,'385','47314',199,774);
INSERT INTO "communes" VALUES('66','Saint-Génis-des-Fontaines','01',2778,2419,9.9,'650','47268',24,102);
INSERT INTO "communes" VALUES('66','Brouilla','17',1061,630,7.83,'630','47296',27,108);
INSERT INTO "communes" VALUES('66','Planèzes','04',100,99,6.16,'314','47518',97,423);
INSERT INTO "communes" VALUES('66','Canet-en-Roussillon','31',13293,10185,22.39,'745','47451',0,37);
INSERT INTO "communes" VALUES('66','Nyer','07',162,108,37,'-67','47260',656,2645);
INSERT INTO "communes" VALUES('66','<NAME>','16',94,84,12.9,'130','47524',340,1020);
INSERT INTO "communes" VALUES('66','Rodès','18',617,510,18.11,'250','47397',172,771);
INSERT INTO "communes" VALUES('66','Canaveilles','07',48,58,10.95,'-96','47263',657,1984);
INSERT INTO "communes" VALUES('66','Trévillach','16',122,76,17.24,'215','47454',346,800);
INSERT INTO "communes" VALUES('66','Sainte-Colombe-de-la-Commanderie','17',128,101,4.74,'457','47350',127,328);
INSERT INTO "communes" VALUES('66','<NAME>','14',4063,3526,11.65,'777','47542',0,4);
INSERT INTO "communes" VALUES('66','Sansa','07',26,7,22.27,'-181','47336',1155,2459);
INSERT INTO "communes" VALUES('66','Bouleternère','18',838,643,10.63,'278','47388',160,612);
INSERT INTO "communes" VALUES('66','Valmanya','18',43,18,27.63,'220','47265',692,2720);
INSERT INTO "communes" VALUES('66','Prugnanes','15',106,69,13.51,'107','47583',272,909);
INSERT INTO "communes" VALUES('66','Estoher','18',156,134,26.08,'166','47334',336,2481);
INSERT INTO "communes" VALUES('66','Fontpédrouse','06',132,123,64.35,'-174','47235',880,2865);
INSERT INTO "communes" VALUES('66','L''Albère','03',83,69,17.1,'620','47203',266,1116);
INSERT INTO "communes" VALUES('66','Baillestavy','18',95,58,17.89,'209','47294',468,1720);
INSERT INTO "communes" VALUES('66','Fontrabiouse','06',119,91,15.57,'-267','47373',1438,2547);
INSERT INTO "communes" VALUES('66','Sainte-Marie','31',4636,3459,10.29,'756','47475',0,10);
INSERT INTO "communes" VALUES('66','Targassonne','13',201,203,7.8,'-377','47222',1383,2123);
INSERT INTO "communes" VALUES('66','Égat','13',447,496,4.47,'-356','47222',1320,1962);
INSERT INTO "communes" VALUES('66','Saillagouse','13',1035,819,11.35,'-330','47178',1230,2160);
INSERT INTO "communes" VALUES('66','Torreilles','14',3147,2080,17.14,'730','47505',0,8);
INSERT INTO "communes" VALUES('66','Terrats','17',668,528,7.32,'483','47343',101,230);
INSERT INTO "communes" VALUES('66','Maury','15',860,851,34.63,'286','47568',80,880);
INSERT INTO "communes" VALUES('66','Montauriol','03',214,188,11.1,'431','47306',149,463);
INSERT INTO "communes" VALUES('66','Villeneuve-de-la-Raho','28',3779,3623,11.41,'645','47374',16,62);
INSERT INTO "communes" VALUES('66','Serralongue','11',239,238,23.04,'243','47108',478,1407);
INSERT INTO "communes" VALUES('66','Coustouges','11',112,136,16.86,'348','47075',411,1120);
INSERT INTO "communes" VALUES('66','Ponteilla','17',2787,1827,13.78,'531','47363',52,135);
INSERT INTO "communes" VALUES('66','Escaro','07',107,84,15.21,'-24','47264',588,2082);
INSERT INTO "communes" VALUES('66','Corneilla-la-Rivière','05',1887,1406,11.9,'437','47442',74,480);
INSERT INTO "communes" VALUES('66','Montner','04',316,244,10.98,'379','47499',89,500);
INSERT INTO "communes" VALUES('66','Montescot','28',1674,1374,6.02,'664','47342',16,40);
INSERT INTO "communes" VALUES('66','Taurinya','10',326,307,14.5,'100','47311',478,2760);
INSERT INTO "communes" VALUES('66','Prades','10',6081,5797,10.87,'95','47352',300,745);
INSERT INTO "communes" VALUES('66','Espira-de-l''Agly','12',3118,2463,26.77,'554','47530',26,458);
INSERT INTO "communes" VALUES('66','<NAME>','05',7090,5828,10.35,'507','47424',43,92);
INSERT INTO "communes" VALUES('66','Font-Romeu-Odeillo-Via','13',1841,2009,29.6,'-336','47220',1312,2212);
INSERT INTO "communes" VALUES('66','Eus','10',407,376,20.08,'134','47382',244,1143);
INSERT INTO "communes" VALUES('66','Nohèdes','10',68,61,30.91,'-53','47359',758,2459);
INSERT INTO "communes" VALUES('66','Villelongue-dels-Monts','01',1413,1061,11.55,'630','47250',36,1030);
INSERT INTO "communes" VALUES('66','Souanyas','07',40,27,4.81,'-64','47277',580,1103);
INSERT INTO "communes" VALUES('66','Fourques','17',1108,764,9.39,'492','47313',99,184);
INSERT INTO "communes" VALUES('66','Villemolaque','17',1175,918,6,'559','47320',57,121);
INSERT INTO "communes" VALUES('66','Collioure','19',2989,2762,13.02,'827','47251',0,655);
INSERT INTO "communes" VALUES('66','Mont-Louis','06',247,272,0.39,'-241','47231',1516,1608);
INSERT INTO "communes" VALUES('66','Tautavel','04',912,851,53.47,'455','47571',65,566);
INSERT INTO "communes" VALUES('66','Saint-André','01',3120,2517,9.73,'707','47279',13,77);
INSERT INTO "communes" VALUES('66','Llupia','17',1948,1733,6.88,'481','47357',88,140);
INSERT INTO "communes" VALUES('66','Laroque-des-Albères','01',2078,1913,20.51,'662','47248',31,1245);
INSERT INTO "communes" VALUES('66','Montalba-le-Château','18',147,121,15.9,'248','47440',280,661);
INSERT INTO "communes" VALUES('66','Palau-de-Cerdagne','13',445,424,11.5,'-411','47128',1151,2203);
INSERT INTO "communes" VALUES('66','Latour-Bas-Elne','27',2191,1714,3.31,'740','47340',4,29);
INSERT INTO "communes" VALUES('66','Vingrau','12',607,469,32.12,'491','47609',119,575);
INSERT INTO "communes" VALUES('66','Angles','06',566,589,43.2,'-291','47309',1531,2808);
INSERT INTO "communes" VALUES('66','Casefabre','18',37,34,6.99,'309','47351',236,664);
INSERT INTO "communes" VALUES('66','Taillet','03',105,83,10.02,'373','47252',198,681);
INSERT INTO "communes" VALUES('66','Camélas','17',414,398,12.72,'409','47390',118,520);
INSERT INTO "communes" VALUES('66','Corneilla-del-Vercol','28',2115,1502,5.43,'683','47360',9,28);
INSERT INTO "communes" VALUES('66','Corbère','05',661,541,7.25,'360','47392',130,523);
INSERT INTO "communes" VALUES('66','Estagel','04',1929,1939,20.83,'402','47525',58,325);
INSERT INTO "communes" VALUES('66','Vivès','03',168,128,11.07,'475','47254',114,323);
INSERT INTO "communes" VALUES('66','Toulouges','29',6173,5394,8.04,'550','47412',50,82);
INSERT INTO "communes" VALUES('66','Perpignan','99',117419,105096,68.07,'620','47442',8,95);
INSERT INTO "communes" VALUES('66','Finestret','18',192,135,8.43,'194','47351',274,1139);
INSERT INTO "communes" VALUES('66','Oreilla','07',15,15,16.03,'-92','47288',620,2089);
INSERT INTO "communes" VALUES('66','Fossé','15',39,39,4.43,'105','47543',453,689);
INSERT INTO "communes" VALUES('66','Amélie-les-Bains-Palalda','02',3702,3493,29.43,'372','47195',176,1424);
INSERT INTO "communes" VALUES('67','Butten','20',642,678,15.19,'5427','54412',227,364);
INSERT INTO "communes" VALUES('67','Saint-Nabor','18',476,479,1.89,'5652','53828',265,630);
INSERT INTO "communes" VALUES('67','Ostwald','42',11310,10762,7.11,'5970','53935',139,144);
INSERT INTO "communes" VALUES('67','Kesseldorf','25',433,331,7.26,'6368','54307',112,134);
INSERT INTO "communes" VALUES('67','Mundolsheim','43',4941,5269,4.09,'5975','54049',137,184);
INSERT INTO "communes" VALUES('67','Bernolsheim','05',612,510,3.39,'5948','54174',147,191);
INSERT INTO "communes" VALUES('67','Wasselonne','33',5595,5540,15,'5679','54042',195,380);
INSERT INTO "communes" VALUES('67','Eschwiller','06',180,183,3.49,'5309','54288',252,345);
INSERT INTO "communes" VALUES('67','Trimbach','25',516,444,3.94,'6318','54378',138,179);
INSERT INTO "communes" VALUES('67','Lembach','34',1695,1692,48.89,'6060','54449',177,551);
INSERT INTO "communes" VALUES('67','Saint-Pierre','01',587,532,3.21,'5705','53760',169,208);
INSERT INTO "communes" VALUES('67','Offendorf','03',2169,1885,14.22,'6199','54125',122,130);
INSERT INTO "communes" VALUES('67','Bellefosse','23',135,133,7.34,'5420','53783',529,1091);
INSERT INTO "communes" VALUES('67','Wingersheim','10',1175,1042,8,'5888','54136',144,256);
INSERT INTO "communes" VALUES('67','Dimbsthal','13',302,279,1.91,'5579','54080',266,362);
INSERT INTO "communes" VALUES('67','Niederrœdern','25',907,846,6.88,'6346','54340',119,193);
INSERT INTO "communes" VALUES('67','Dalhunden','03',998,874,7.45,'6283','54194',118,125);
INSERT INTO "communes" VALUES('67','Hohengœft','13',523,480,3.43,'5710','54068',213,397);
INSERT INTO "communes" VALUES('67','Ichtratzheim','07',294,282,3.09,'5935','53863',145,151);
INSERT INTO "communes" VALUES('67','Daubensand','07',371,367,3.87,'5983','53719',153,157);
INSERT INTO "communes" VALUES('67','Truchtersheim','31',2937,2369,9.92,'5856','54070',147,199);
INSERT INTO "communes" VALUES('67','Bœrsch','18',2437,2106,23.39,'5671','53864',211,1032);
INSERT INTO "communes" VALUES('67','Nordhouse','07',1682,1421,11,'5929','53832',146,155);
INSERT INTO "communes" VALUES('67','Cosswiller','33',564,513,15.75,'5625','54034',216,693);
INSERT INTO "communes" VALUES('67','Niedernai','16',1232,1238,11.33,'5755','53831',152,182);
INSERT INTO "communes" VALUES('67','Matzenheim','02',1446,1133,7.14,'5874','53772',153,159);
INSERT INTO "communes" VALUES('67','Ottwiller','06',237,220,5.09,'5436','54294',285,372);
INSERT INTO "communes" VALUES('67','Rosteig','17',584,565,7.69,'5559','54370',225,407);
INSERT INTO "communes" VALUES('67','Stattmatten','03',677,597,3.93,'6295','54219',116,122);
INSERT INTO "communes" VALUES('67','Wintzenheim-Kochersberg','31',320,269,1.95,'5751','54065',210,343);
INSERT INTO "communes" VALUES('67','Ohlungen','09',1333,1268,8.39,'5960','54235',152,236);
INSERT INTO "communes" VALUES('67','Singrist','13',370,329,3.54,'5612','54078',244,343);
INSERT INTO "communes" VALUES('67','Bitschhoffen','15',468,416,2.54,'5870','54288',173,229);
INSERT INTO "communes" VALUES('67','Stutzheim-Offenheim','31',1453,1426,7.14,'5869','54034',150,181);
INSERT INTO "communes" VALUES('67','Wickersheim-Wilshausen','10',442,433,5.45,'5772','54203',168,228);
INSERT INTO "communes" VALUES('67','Sand','02',1139,1073,6.35,'5863','53759',154,161);
INSERT INTO "communes" VALUES('67','Gries','05',2759,2688,12.23,'6089','54172',125,169);
INSERT INTO "communes" VALUES('67','Rittershoffen','26',895,897,12.13,'6239','54337',120,179);
INSERT INTO "communes" VALUES('67','Hilsenheim','12',2523,1979,19.91,'5810','53654',160,168);
INSERT INTO "communes" VALUES('67','Huttenheim','02',2524,2091,12.55,'5825','53732',156,162);
INSERT INTO "communes" VALUES('67','Zœbersdorf','10',177,168,1.85,'5764','54215',176,228);
INSERT INTO "communes" VALUES('67','Dingsheim','31',1308,1067,4.95,'5925','54034',146,180);
INSERT INTO "communes" VALUES('67','Reichsfeld','01',304,293,4.95,'5607','53741',285,660);
INSERT INTO "communes" VALUES('67','Blancherupt','23',38,31,2.65,'5396','53787',440,730);
INSERT INTO "communes" VALUES('67','Rauwiller','06',222,187,4.89,'5301','54235',275,332);
INSERT INTO "communes" VALUES('67','Marmoutier','13',2822,2444,14.07,'5605','54100',188,367);
INSERT INTO "communes" VALUES('67','Altorf','14',1273,1098,10.19,'5769','53914',162,186);
INSERT INTO "communes" VALUES('67','Lalaye','32',439,390,8.18,'5475','53700',297,822);
INSERT INTO "communes" VALUES('67','Seltz','25',3220,2985,21,'6411','54327',107,165);
INSERT INTO "communes" VALUES('67','Krautwiller','05',186,153,1.48,'5943','54153',143,150);
INSERT INTO "communes" VALUES('67','Zittersheim','17',257,205,7.92,'5568','54333',220,390);
INSERT INTO "communes" VALUES('67','Richtolsheim','12',349,302,3.63,'5842','53584',168,172);
INSERT INTO "communes" VALUES('67','Furchhausen','21',395,340,2.86,'5668','54131',195,251);
INSERT INTO "communes" VALUES('67','Still','14',1711,1513,23.2,'5630','53945',204,741);
INSERT INTO "communes" VALUES('67','Saessolsheim','10',516,478,6.49,'5752','54120',172,259);
INSERT INTO "communes" VALUES('67','Dorlisheim','14',2478,2167,11.53,'5721','53917',172,373);
INSERT INTO "communes" VALUES('67','Lichtenberg','17',567,510,12.12,'5716','54357',195,411);
INSERT INTO "communes" VALUES('67','Schœnau','12',584,474,10.37,'5899','53581',164,172);
INSERT INTO "communes" VALUES('67','Haegen','13',633,626,20.32,'5558','54127',195,587);
INSERT INTO "communes" VALUES('67','Waltenheim-sur-Zorn','10',719,641,5.04,'5881','54163',147,258);
INSERT INTO "communes" VALUES('67','Russ','23',1229,1182,11.55,'5469','53884',265,850);
INSERT INTO "communes" VALUES('67','Schopperten','20',401,292,4.19,'5238','54386',213,245);
INSERT INTO "communes" VALUES('67','Duttlenheim','14',2876,2394,8.6,'5810','53916',157,178);
INSERT INTO "communes" VALUES('67','Durrenbach','35',1090,1000,5.3,'6035','54330',152,181);
INSERT INTO "communes" VALUES('67','Molsheim','14',9215,9331,10.85,'5728','53936',165,371);
INSERT INTO "communes" VALUES('67','Zinswiller','15',802,754,7.14,'5838','54356',176,405);
INSERT INTO "communes" VALUES('67','Odratzheim','33',443,399,1.54,'5724','54001',174,246);
INSERT INTO "communes" VALUES('67','Handschuheim','31',297,269,2.4,'5823','54003',173,213);
INSERT INTO "communes" VALUES('67','Fouday','23',371,303,2.05,'5388','53801',380,680);
INSERT INTO "communes" VALUES('67','Heiligenberg','14',654,562,5.47,'5615','53931',204,407);
INSERT INTO "communes" VALUES('67','Drusenheim','03',5052,4720,15.73,'6239','54180',119,128);
INSERT INTO "communes" VALUES('67','Andlau','01',1842,1655,23.69,'5646','53763',205,795);
INSERT INTO "communes" VALUES('67','Obersteinbach','34',236,184,9.18,'5945','54485',234,430);
INSERT INTO "communes" VALUES('67','Marlenheim','33',3711,3365,14.59,'5729','54025',175,365);
INSERT INTO "communes" VALUES('67','Saint-Maurice','32',366,330,1.4,'5554','53698',235,335);
INSERT INTO "communes" VALUES('67','Balbronn','33',625,602,10.18,'5667','53982',209,450);
INSERT INTO "communes" VALUES('67','Barr','01',6830,5897,20.61,'5681','53787',176,971);
INSERT INTO "communes" VALUES('67','Dangolsheim','33',664,603,4.47,'5701','53968',172,384);
INSERT INTO "communes" VALUES('67','Baldenheim','12',1150,924,9.44,'5780','53598',165,172);
INSERT INTO "communes" VALUES('67','Ittenheim','43',2122,1909,6.71,'5842','54005',152,212);
INSERT INTO "communes" VALUES('67','Dieffenbach-au-Val','32',618,582,2.95,'5544','53682',233,560);
INSERT INTO "communes" VALUES('67','Oberhoffen-lès-Wissembourg','34',316,279,3.03,'6204','54463',179,251);
INSERT INTO "communes" VALUES('67','Eckbolsheim','43',6421,5940,5.34,'5948','53977',139,154);
INSERT INTO "communes" VALUES('67','Saasenheim','12',601,479,7.8,'5869','53596',164,170);
INSERT INTO "communes" VALUES('67','Bettwiller','06',335,332,4.06,'5381','54318',248,351);
INSERT INTO "communes" VALUES('67','Hoffen','26',1177,1104,9.45,'6228','54366',132,192);
INSERT INTO "communes" VALUES('67','Gertwiller','01',1039,868,4.89,'5701','53790',165,245);
INSERT INTO "communes" VALUES('67','Keskastel','20',1582,1438,18.87,'5230','54413',209,275);
INSERT INTO "communes" VALUES('67','Barembach','23',868,873,9.92,'5437','53863',289,910);
INSERT INTO "communes" VALUES('67','Bolsenheim','07',462,431,4.35,'5858','53799',152,157);
INSERT INTO "communes" VALUES('67','Engwiller','15',470,431,3.74,'5865','54317',187,271);
INSERT INTO "communes" VALUES('67','Altwiller','20',419,399,16.22,'5159','54367',215,266);
INSERT INTO "communes" VALUES('67','Obernai','16',10731,10472,25.74,'5717','53847',156,572);
INSERT INTO "communes" VALUES('67','Lutzelhouse','14',1830,1543,28.58,'5502','53911',244,1003);
INSERT INTO "communes" VALUES('67','<NAME>','23',2858,2685,23.07,'5422','53863',310,898);
INSERT INTO "communes" VALUES('67','Lohr','17',499,522,10.41,'5452','54286',217,383);
INSERT INTO "communes" VALUES('67','Mutzenhouse','10',412,385,2.21,'5836','54157',155,251);
INSERT INTO "communes" VALUES('67','Scherwiller','24',3069,2611,18.08,'5646','53653',168,532);
INSERT INTO "communes" VALUES('67','Mothern','25',2038,1934,10.3,'6464','54369',106,172);
INSERT INTO "communes" VALUES('67','Saint-Martin','32',348,301,3.97,'5503','53723',268,615);
INSERT INTO "communes" VALUES('67','Bischholtz','04',280,240,2.39,'5782','54325',182,242);
INSERT INTO "communes" VALUES('67','Kogenheim','02',1098,842,11.77,'5783','53708',159,166);
INSERT INTO "communes" VALUES('67','Puberg','17',338,348,4.91,'5532','54346',247,396);
INSERT INTO "communes" VALUES('67','Siegen','25',514,493,8.1,'6339','54396',139,187);
INSERT INTO "communes" VALUES('67','Saverne','21',12087,11197,26.01,'5584','54157',177,463);
INSERT INTO "communes" VALUES('67','Lochwiller','13',434,345,4.63,'5642','54107',200,271);
INSERT INTO "communes" VALUES('67','Pfaffenhoffen','04',2735,2468,3.54,'5860','54272',162,238);
INSERT INTO "communes" VALUES('67','Wahlenheim','09',386,365,2.55,'5943','54182',169,198);
INSERT INTO "communes" VALUES('67','Plaine','19',963,795,22.84,'5343','53798',373,900);
INSERT INTO "communes" VALUES('67','Sarre-Union','20',3072,3356,15.39,'5280','54379',217,330);
INSERT INTO "communes" VALUES('67','Siewiller','06',417,390,6.2,'5405','54271',270,357);
INSERT INTO "communes" VALUES('67','Limersheim','07',651,579,5.58,'5897','53840',147,155);
INSERT INTO "communes" VALUES('67','Cleebourg','34',704,636,10.59,'6172','54448',152,529);
INSERT INTO "communes" VALUES('67','Hipsheim','07',824,771,4.52,'5933','53852',145,152);
INSERT INTO "communes" VALUES('67','Niederbronn-les-Bains','15',4366,4318,31.4,'5897','54389',180,577);
INSERT INTO "communes" VALUES('67','Hohfrankenheim','10',259,271,2.76,'5822','54144',168,260);
INSERT INTO "communes" VALUES('67','Lobsann','26',608,495,2.73,'6122','54404',157,308);
INSERT INTO "communes" VALUES('67','Hatten','26',1954,1789,18.91,'6269','54336',120,172);
INSERT INTO "communes" VALUES('67','Baerendorf','06',310,304,7.53,'5276','54265',237,332);
INSERT INTO "communes" VALUES('67','Rangen','13',190,143,1.65,'5711','54073',198,282);
INSERT INTO "communes" VALUES('67','Weislingen','06',566,580,7.01,'5461','54355',245,374);
INSERT INTO "communes" VALUES('67','Dossenheim-sur-Zinsel','04',1132,1069,17.2,'5629','54227',176,421);
INSERT INTO "communes" VALUES('67','Heiligenstein','01',966,861,3.99,'5682','53803',189,640);
INSERT INTO "communes" VALUES('67','Romanswiller','33',1356,1194,11.42,'5633','54050',215,482);
INSERT INTO "communes" VALUES('67','Waldhambach','06',647,682,12.59,'5422','54363',225,374);
INSERT INTO "communes" VALUES('67','Gingsheim','10',318,310,3.71,'5836','54130',172,264);
INSERT INTO "communes" VALUES('67','Bouxwiller','04',3941,3687,25.59,'5718','54250',177,322);
INSERT INTO "communes" VALUES('67','Petersbach','17',677,694,8.88,'5479','54301',257,383);
INSERT INTO "communes" VALUES('67','Gougenheim','31',557,380,6.58,'5811','54113',172,287);
INSERT INTO "communes" VALUES('67','Pfulgriesheim','31',1256,1171,4.81,'5927','54049',147,177);
INSERT INTO "communes" VALUES('67','Mittelhausen','10',534,509,4.81,'5882','54122',172,240);
INSERT INTO "communes" VALUES('67','Mackwiller','06',598,612,9.02,'5376','54362',224,346);
INSERT INTO "communes" VALUES('67','Aschbach','26',667,590,4.32,'6274','54372',137,178);
INSERT INTO "communes" VALUES('67','Natzwiller','23',596,624,7.29,'5463','53820',379,1013);
INSERT INTO "communes" VALUES('67','Pfalzweyer','17',321,309,2.23,'5469','54229',240,322);
INSERT INTO "communes" VALUES('67','Rosheim','18',4834,4539,29.55,'5703','53885',164,842);
INSERT INTO "communes" VALUES('67','Wintershouse','09',876,613,3.66,'5960','54214',162,217);
INSERT INTO "communes" VALUES('67','Ringendorf','10',434,359,3.66,'5799','54231',190,276);
INSERT INTO "communes" VALUES('67','Niedersteinbach','34',152,156,8.3,'5972','54478',212,510);
INSERT INTO "communes" VALUES('67','Breitenau','32',307,258,4.29,'5506','53696',290,700);
INSERT INTO "communes" VALUES('67','Gottesheim','21',345,301,5.11,'5715','54194',182,252);
INSERT INTO "communes" VALUES('67','Salmbach','11',577,517,8.91,'6377','54419',128,186);
INSERT INTO "communes" VALUES('67','Waldolwisheim','21',535,530,5.65,'5668','54147',167,229);
INSERT INTO "communes" VALUES('67','Rohr','31',273,269,3.34,'5789','54107',175,239);
INSERT INTO "communes" VALUES('67','Gambsheim','05',4569,3862,17.38,'6163','54103',126,131);
INSERT INTO "communes" VALUES('67','Diebolsheim','12',649,540,7.03,'5919','53657',160,165);
INSERT INTO "communes" VALUES('67','Kilstett','05',2357,1924,6.9,'6133','54084',126,131);
INSERT INTO "communes" VALUES('67','Pfettisheim','31',770,752,4.84,'5899','54067',148,185);
INSERT INTO "communes" VALUES('67','Bassemberg','32',265,232,1.78,'5496','53705',275,616);
INSERT INTO "communes" VALUES('67','Wingen-sur-Moder','17',1551,1487,17.37,'5599','54356',207,406);
INSERT INTO "communes" VALUES('67','Herbitzheim','20',1912,1831,21.73,'5275','54461',203,282);
INSERT INTO "communes" VALUES('67','Osthouse','07',955,947,9.72,'5896','53781',151,157);
INSERT INTO "communes" VALUES('67','Surbourg','26',1620,1528,10.46,'6123','54343',144,218);
INSERT INTO "communes" VALUES('67','Dossenheim-Kochersberg','31',234,180,1.79,'5819','54043',161,194);
INSERT INTO "communes" VALUES('67','Burbach','06',323,309,6.34,'5306','54335',238,348);
INSERT INTO "communes" VALUES('67','Strasbourg','99',271782,263941,78.26,'6013','53982',132,151);
INSERT INTO "communes" VALUES('67','Schillersdorf','04',438,456,7.53,'5764','54301',178,236);
INSERT INTO "communes" VALUES('67','Maisonsgoutte','32',828,776,4.87,'5474','53726',285,820);
INSERT INTO "communes" VALUES('67','Lampertheim','43',2950,2949,6.58,'5957','54057',137,184);
INSERT INTO "communes" VALUES('67','Marckolsheim','12',4218,3616,33.36,'5786','53516',170,184);
INSERT INTO "communes" VALUES('67','Soultz-sous-Forêts','26',2939,2494,15.15,'6160','54376',137,508);
INSERT INTO "communes" VALUES('67','Niederschaeffolsheim','09',1260,1268,6.24,'6002','54191',158,197);
INSERT INTO "communes" VALUES('67','Weinbourg','04',421,468,5.29,'5671','54301',195,350);
INSERT INTO "communes" VALUES('67','Fessenheim-le-Bas','31',521,415,4.95,'5781','54037',161,208);
INSERT INTO "communes" VALUES('67','Bilwisheim','05',400,387,2.56,'5913','54122',149,189);
INSERT INTO "communes" VALUES('67','Benfeld','02',5662,4874,7.79,'5840','53745',155,162);
INSERT INTO "communes" VALUES('67','Nordheim','33',783,731,6.32,'5747','54040',188,384);
INSERT INTO "communes" VALUES('67','Merkwiller-Pechelbronn','26',968,828,3.76,'6099','54377',153,199);
INSERT INTO "communes" VALUES('67','Kaltenhouse','09',2279,1902,3.72,'6106','54212',127,150);
INSERT INTO "communes" VALUES('67','Offwiller','15',817,852,15.92,'5785','54345',182,421);
INSERT INTO "communes" VALUES('67','Bischwiller','03',12703,11696,17.25,'6133','54185',123,147);
INSERT INTO "communes" VALUES('67','Betschdorf','26',4063,3725,28.11,'6188','54332',114,210);
INSERT INTO "communes" VALUES('67','Eywiller','06',268,239,4.69,'5327','54301',270,357);
INSERT INTO "communes" VALUES('67','Flexbourg','33',479,393,1.7,'5660','53969',209,273);
INSERT INTO "communes" VALUES('67','Ingenheim','10',347,301,5.37,'5760','54150',157,229);
INSERT INTO "communes" VALUES('67','Rohrwiller','03',1675,1448,2.95,'6187','54173',122,127);
INSERT INTO "communes" VALUES('67','Seebach','34',1731,1670,17.11,'6280','54412',140,192);
INSERT INTO "communes" VALUES('67','Buswiller','04',190,170,2.3,'5803','54244',199,275);
INSERT INTO "communes" VALUES('67','Mollkirch','18',962,765,12.47,'5610','53896',212,610);
INSERT INTO "communes" VALUES('67','Frœschwiller','35',535,564,5.75,'5984','54382',188,262);
INSERT INTO "communes" VALUES('67','Westhouse-Marmoutier','13',258,244,3.96,'5681','54096',195,290);
INSERT INTO "communes" VALUES('67','Memmelshoffen','26',322,317,1.82,'6148','54400',158,218);
INSERT INTO "communes" VALUES('67','Beinheim','25',1871,1789,15.23,'6386','54292',111,121);
INSERT INTO "communes" VALUES('67','Munchhausen','25',746,692,5.92,'6455','54357',106,142);
INSERT INTO "communes" VALUES('67','Huttendorf','09',465,445,4.4,'5893','54223',190,268);
INSERT INTO "communes" VALUES('67','Buhl','25',525,508,4.4,'6300','54352',125,178);
INSERT INTO "communes" VALUES('67','Oberhoffen-sur-Moder','03',3304,2944,14.25,'6141','54204',121,142);
INSERT INTO "communes" VALUES('67','Bust','06',453,416,6.76,'5443','54256',228,366);
INSERT INTO "communes" VALUES('67','Bissert','20',148,157,3.37,'5208','54380',213,258);
INSERT INTO "communes" VALUES('67','Kurtzenhouse','05',999,884,3.58,'6078','54156',126,179);
INSERT INTO "communes" VALUES('67','Gumbrechtshoffen','15',1191,1226,5.74,'5882','54339',167,271);
INSERT INTO "communes" VALUES('67','Soufflenheim','03',4918,4400,13.24,'6252','54255',116,138);
INSERT INTO "communes" VALUES('67','Hattmatt','21',673,681,4.15,'5652','54212',173,234);
INSERT INTO "communes" VALUES('67','Rothbach','15',469,510,7.99,'5769','54341',185,375);
INSERT INTO "communes" VALUES('67','Stotzheim','01',1080,960,13.61,'5728','53755',155,189);
INSERT INTO "communes" VALUES('67','Frohmuhl','17',185,208,1.64,'5494','54344',247,359);
INSERT INTO "communes" VALUES('67','Dauendorf','09',1434,1423,7.63,'5910','54256',153,270);
INSERT INTO "communes" VALUES('67','Steige','32',589,505,9.86,'5447','53734',317,1020);
INSERT INTO "communes" VALUES('67','Vendenheim','05',5559,5595,15.89,'5974','54075',131,181);
INSERT INTO "communes" VALUES('67','Muhlbach-sur-Bruche','14',652,611,8.38,'5512','53907',228,620);
INSERT INTO "communes" VALUES('67','Breuschwickersheim','43',1254,1093,5.06,'5850','53978',153,211);
INSERT INTO "communes" VALUES('67','Scherlenheim','10',125,118,2.32,'5776','54183',173,229);
INSERT INTO "communes" VALUES('67','Littenheim','21',284,220,4.21,'5724','54143',168,258);
INSERT INTO "communes" VALUES('67','Bietlenheim','05',283,279,2.13,'6050','54133',133,168);
INSERT INTO "communes" VALUES('67','Thal-Marmoutier','13',767,706,3.42,'5573','54114',203,332);
INSERT INTO "communes" VALUES('67','Schleithal','34',1437,1395,9.12,'6341','54432',135,187);
INSERT INTO "communes" VALUES('67','Bischoffsheim','18',3272,2768,12.33,'5725','53874',149,362);
INSERT INTO "communes" VALUES('67','Plobsheim','08',3936,3603,16.64,'5988','53855',144,151);
INSERT INTO "communes" VALUES('67','Kertzfeld','02',1352,1121,9.43,'5812','53756',153,161);
INSERT INTO "communes" VALUES('67','Riedseltz','34',1119,1061,10.02,'6240','54437',145,218);
INSERT INTO "communes" VALUES('67','Boofzheim','02',1227,1030,11.94,'5938','53702',155,161);
INSERT INTO "communes" VALUES('67','Roppenheim','03',941,941,6.88,'6353','54271',113,119);
INSERT INTO "communes" VALUES('67','Schaffhouse-près-Seltz','25',575,460,4.49,'6403','54344',113,174);
INSERT INTO "communes" VALUES('67','Ingolsheim','26',287,269,4.46,'6222','54416',146,205);
INSERT INTO "communes" VALUES('67','Schwobsheim','12',305,225,2.58,'5822','53592',167,171);
INSERT INTO "communes" VALUES('67','Lampertsloch','35',702,644,10.43,'6089','54398',157,511);
INSERT INTO "communes" VALUES('67','Bourg-Bruche','19',434,373,15.02,'5335','53729',448,825);
INSERT INTO "communes" VALUES('67','Hurtigheim','31',574,449,4.63,'5840','54018',153,179);
INSERT INTO "communes" VALUES('67','Eckartswiller','21',450,453,12.43,'5576','54185',187,431);
INSERT INTO "communes" VALUES('67','Mittelbergheim','01',653,617,3.83,'5672','53773',187,340);
INSERT INTO "communes" VALUES('67','Neugartheim-Ittlenheim','31',791,606,4.06,'5782','54065',163,294);
INSERT INTO "communes" VALUES('67','Altenheim','21',222,215,2.71,'5697','54133',187,254);
INSERT INTO "communes" VALUES('67','Monswiller','21',2156,1797,4.72,'5603','54172',173,227);
INSERT INTO "communes" VALUES('67','Geispolsheim','08',7074,7141,21.95,'5900','53906',139,155);
INSERT INTO "communes" VALUES('67','Kleingœft','13',138,117,2.5,'5674','54101',214,261);
INSERT INTO "communes" VALUES('67','Ohnenheim','12',882,721,12.12,'5745','53537',172,178);
INSERT INTO "communes" VALUES('67','Neewiller-près-Lauterbourg','11',653,623,7.34,'6433','54395',110,186);
INSERT INTO "communes" VALUES('67','Donnenheim','05',259,217,3.76,'5906','54131',143,189);
INSERT INTO "communes" VALUES('67','Harskirchen','20',852,847,14.42,'5225','54369',213,277);
INSERT INTO "communes" VALUES('67','Thanvillé','32',591,449,1.91,'5571','53692',225,307);
INSERT INTO "communes" VALUES('67','Obenheim','07',1400,1214,7.99,'5947','53734',154,159);
INSERT INTO "communes" VALUES('67','Hangenbieten','43',1469,1300,4.11,'5864','53955',147,209);
INSERT INTO "communes" VALUES('67','Wiwersheim','31',808,502,3.29,'5855','54045',153,183);
INSERT INTO "communes" VALUES('67','Zehnacker','13',263,170,2.18,'5683','54078',208,282);
INSERT INTO "communes" VALUES('67','Hohatzenheim','10',205,231,2,'5865','54129',195,268);
INSERT INTO "communes" VALUES('67','Bischheim','44',17770,16750,4.41,'6017','54015',132,150);
INSERT INTO "communes" VALUES('67','Wolschheim','21',308,297,3.65,'5682','54115',202,268);
INSERT INTO "communes" VALUES('67','Dehlingen','20',375,388,10.02,'5395','54423',235,356);
INSERT INTO "communes" VALUES('67','Kolbsheim','08',817,765,3.33,'5835','53957',152,211);
INSERT INTO "communes" VALUES('67','Meistratzheim','16',1411,1302,12.82,'5785','53832',150,162);
INSERT INTO "communes" VALUES('67','Rosenwiller','18',674,618,5.5,'5670','53895',238,366);
INSERT INTO "communes" VALUES('67','Westhoffen','33',1664,1590,20.65,'5672','54003',184,531);
INSERT INTO "communes" VALUES('67','Durstel','06',408,394,4.76,'5401','54324',248,338);
INSERT INTO "communes" VALUES('67','Bosselshausen','04',177,0,3.29,'5748','54228',179,238);
INSERT INTO "communes" VALUES('67','Dambach','15',796,728,30.5,'5883','54448',215,567);
INSERT INTO "communes" VALUES('67','Scheibenhard','11',822,675,4.62,'6445','54421',115,178);
INSERT INTO "communes" VALUES('67','Adamswiller','06',392,459,3.4,'5407','54339',234,303);
INSERT INTO "communes" VALUES('67','Scharrachbergheim-Irmstett','33',1201,992,3.22,'5730','53993',172,316);
INSERT INTO "communes" VALUES('67','Siltzheim','20',663,582,6.96,'5285','54514',200,287);
INSERT INTO "communes" VALUES('67','Entzheim','08',1752,1844,8.17,'5890','53927',144,159);
INSERT INTO "communes" VALUES('67','Ratzwiller','20',252,270,8.72,'5448','54395',237,384);
INSERT INTO "communes" VALUES('67','Domfessel','20',307,298,6.23,'5352','54390',217,343);
INSERT INTO "communes" VALUES('67','Laubach','35',313,275,1.69,'5982','54313',176,218);
INSERT INTO "communes" VALUES('67','Bossendorf','10',372,279,3.98,'5803','54201',158,230);
INSERT INTO "communes" VALUES('67','Hinsbourg','17',125,106,3.28,'5505','54340',247,390);
INSERT INTO "communes" VALUES('67','Schœnenbourg','26',670,661,5.47,'6196','54391',140,198);
INSERT INTO "communes" VALUES('67','Uhlwiller','09',701,623,7.46,'5929','54245',154,237);
INSERT INTO "communes" VALUES('67','Gœrsdorf','35',1142,982,13.14,'6036','54391',164,463);
INSERT INTO "communes" VALUES('67','Diedendorf','20',335,347,10.11,'5231','54311',220,286);
INSERT INTO "communes" VALUES('67','Traenheim','33',690,557,3.1,'5699','53995',174,265);
INSERT INTO "communes" VALUES('67','Dettwiller','21',2677,2583,10.77,'5700','54171',162,218);
INSERT INTO "communes" VALUES('67','Triembach-au-Val','32',460,448,2.74,'5543','53709',246,540);
INSERT INTO "communes" VALUES('67','Schweighouse-sur-Moder','09',4932,4594,9.91,'5990','54244',143,174);
INSERT INTO "communes" VALUES('67','Wœrth','35',1811,1670,6.47,'6010','54377',160,242);
INSERT INTO "communes" VALUES('67','Bergbieten','33',671,515,4.24,'5691','53974',178,272);
INSERT INTO "communes" VALUES('67','Innenheim','16',1115,1015,6.24,'5817','53884',148,182);
INSERT INTO "communes" VALUES('67','Eschbourg','17',493,499,14.05,'5510','54236',192,387);
INSERT INTO "communes" VALUES('67','Eckwersheim','05',1406,1265,7.46,'5953','54090',139,183);
INSERT INTO "communes" VALUES('67','Oberhaslach','14',1780,1504,25.22,'5548','53945',254,964);
INSERT INTO "communes" VALUES('67','Eschbach','35',930,950,3.97,'6000','54305',165,208);
INSERT INTO "communes" VALUES('67','Wisches','23',2195,2016,19.25,'5480','53899',262,960);
INSERT INTO "communes" VALUES('67','Otterswiller','13',1366,1179,3.28,'5602','54139',185,243);
INSERT INTO "communes" VALUES('67','Wildersbach','23',319,282,3.3,'5429','53819',390,850);
INSERT INTO "communes" VALUES('67','Oberdorf-Spachbach','35',355,333,2.36,'6023','54361',163,241);
INSERT INTO "communes" VALUES('67','Schiltigheim','22',30952,30824,7.63,'6014','54008',133,152);
INSERT INTO "communes" VALUES('67','Hegeney','35',380,328,1.76,'6005','54323',165,209);
INSERT INTO "communes" VALUES('67','Wintzenbach','25',595,568,6.96,'6408','54372',124,189);
INSERT INTO "communes" VALUES('67','<NAME>','17',615,612,19.57,'5537','54290',215,397);
INSERT INTO "communes" VALUES('67','Ringeldorf','10',87,78,2.78,'5857','54250',205,298);
INSERT INTO "communes" VALUES('67','Avolsheim','14',728,658,1.83,'5738','53957',164,362);
INSERT INTO "communes" VALUES('67','Kirrberg','06',178,151,6.35,'5253','54247',235,332);
INSERT INTO "communes" VALUES('67','Forstfeld','03',725,591,4.9,'6335','54289',111,129);
INSERT INTO "communes" VALUES('67','Crastatt','13',210,184,3.39,'5656','54065',227,316);
INSERT INTO "communes" VALUES('67','Vœllerdingen','20',421,416,13.05,'5338','54402',215,324);
INSERT INTO "communes" VALUES('67','Rhinau','02',2696,2348,17.35,'5962','53688',155,166);
INSERT INTO "communes" VALUES('67','Ville','32',1848,1743,2.84,'5519','53715',253,470);
INSERT INTO "communes" VALUES('67','Uttwiller','04',170,177,2.99,'5724','54275',184,256);
INSERT INTO "communes" VALUES('67','Gœrlingen','06',255,206,3.77,'5273','54218',252,332);
INSERT INTO "communes" VALUES('67','Weyer','06',603,495,11.58,'5357','54283',257,354);
INSERT INTO "communes" VALUES('67','Rimsdorf','20',292,258,6.07,'5321','54366',225,352);
INSERT INTO "communes" VALUES('67','Reichshoffen','15',5518,5182,17.64,'5922','54372',170,301);
INSERT INTO "communes" VALUES('67','Kindwiller','15',586,543,5.97,'5846','54292',168,226);
INSERT INTO "communes" VALUES('67','Urbeis','32',309,285,11.6,'5430','53695',324,962);
INSERT INTO "communes" VALUES('67','Geudertheim','05',2323,2245,11.27,'6020','54137',133,188);
INSERT INTO "communes" VALUES('67','Weiterswiller','17',571,543,7.91,'5640','54282',199,410);
INSERT INTO "communes" VALUES('67','Schœnbourg','17',442,414,5.06,'5478','54259',212,361);
INSERT INTO "communes" VALUES('67','Lupstein','21',817,754,7.82,'5722','54153',157,234);
INSERT INTO "communes" VALUES('67','Walbourg','35',795,786,5.33,'6058','54319',146,177);
INSERT INTO "communes" VALUES('67','Climbach','34',512,516,7.15,'6126','54464',240,529);
INSERT INTO "communes" VALUES('67','Gunstett','35',698,683,6.3,'6030','54350',152,222);
INSERT INTO "communes" VALUES('67','Souffelweyersheim','43',7425,6017,4.51,'6005','54039',133,153);
INSERT INTO "communes" VALUES('67','Biblisheim','35',348,372,2.24,'6065','54332',152,159);
INSERT INTO "communes" VALUES('67','Holtzheim','08',3015,2749,6.91,'5894','53954',143,153);
INSERT INTO "communes" VALUES('67','Hessenheim','12',582,464,5.21,'5794','53566',170,177);
INSERT INTO "communes" VALUES('67','Lipsheim','08',2500,2268,4.96,'5921','53880',146,150);
INSERT INTO "communes" VALUES('67','Friesenheim','02',637,494,12.03,'5927','53677',158,163);
INSERT INTO "communes" VALUES('67','Oberhausbergen','43',4835,4511,3.79,'5943','54007',143,187);
INSERT INTO "communes" VALUES('67','Retschwiller','26',278,253,3.26,'6158','54389',146,199);
INSERT INTO "communes" VALUES('67','Artolsheim','12',931,728,11.25,'5818','53565',168,174);
INSERT INTO "communes" VALUES('67','Hochfelden','10',3367,2943,12.09,'5815','54177',155,222);
INSERT INTO "communes" VALUES('67','Kienheim','31',594,519,3.18,'5825','54099',184,275);
INSERT INTO "communes" VALUES('67','Minversheim','10',677,510,5.45,'5873','54206',157,258);
INSERT INTO "communes" VALUES('67','Mittelschaeffolsheim','05',527,390,2.64,'5906','54112',160,189);
INSERT INTO "communes" VALUES('67','Obermodern-Zutzendorf','04',1656,1436,14.46,'5782','54272',169,253);
INSERT INTO "communes" VALUES('67','Eberbach-Seltz','25',418,373,4.14,'6363','54363',138,191);
INSERT INTO "communes" VALUES('67','Wolfskirchen','20',352,335,10.48,'5264','54311',222,355);
INSERT INTO "communes" VALUES('67','Kutzenhausen','26',906,783,7.2,'6132','54370',147,215);
INSERT INTO "communes" VALUES('67','Hœrdt','05',4440,4121,16.56,'6052','54107',128,139);
INSERT INTO "communes" VALUES('67','Eichhoffen','01',561,410,2.3,'5672','53760',192,278);
INSERT INTO "communes" VALUES('67','Mommenheim','05',1768,1751,8.16,'5897','54175',146,192);
INSERT INTO "communes" VALUES('67','Niederhaslach','14',1389,1182,6.63,'5561','53936',215,372);
INSERT INTO "communes" VALUES('67','Windstein','15',172,174,11.97,'5941','54439',195,517);
INSERT INTO "communes" VALUES('67','Illkirch-Graffenstaden','42',26805,23814,22.21,'5975','53917',139,146);
INSERT INTO "communes" VALUES('67','Lauterbourg','11',2274,2268,11.25,'6486','54417',104,129);
INSERT INTO "communes" VALUES('67','Rœschwoog','03',2162,1905,9.75,'6331','54254',114,120);
INSERT INTO "communes" VALUES('67','Neuwiller-lès-Saverne','04',1147,1147,31.89,'5627','54248',187,415);
INSERT INTO "communes" VALUES('67','Itterswiller','01',267,270,1.18,'5660','53738',220,287);
INSERT INTO "communes" VALUES('67','Sélestat','24',19197,17172,44.4,'5686','53622',165,184);
INSERT INTO "communes" VALUES('67','Heidolsheim','12',469,361,5.92,'5755','53557',170,177);
INSERT INTO "communes" VALUES('67','Grassendorf','10',203,189,2.24,'5864','54243',212,296);
INSERT INTO "communes" VALUES('67','Grandfontaine','23',401,369,39.52,'5360','53881',390,1000);
INSERT INTO "communes" VALUES('67','Jetterswiller','13',200,170,3.54,'5642','54078',230,325);
INSERT INTO "communes" VALUES('67','Dachstein','14',1614,1270,7.46,'5773','53957',159,170);
INSERT INTO "communes" VALUES('67','Schnersheim','31',1307,1001,10.82,'5812','54063',159,272);
INSERT INTO "communes" VALUES('67','Schirmeck','23',2429,2176,11.42,'5425','53865',289,840);
INSERT INTO "communes" VALUES('67','Hunspach','26',680,670,5.49,'6228','54392',138,207);
INSERT INTO "communes" VALUES('67','Hindisheim','07',1392,1369,11.84,'5891','53855',148,154);
INSERT INTO "communes" VALUES('67','Morsbronn-les-Bains','35',690,521,6.87,'6006','54333',160,237);
INSERT INTO "communes" VALUES('67','Rossfeld','02',848,708,6.15,'5866','53710',158,162);
INSERT INTO "communes" VALUES('67','Mertzwiller','15',3488,3507,6.96,'5937','54292',152,207);
INSERT INTO "communes" VALUES('67','Gerstheim','07',3233,2783,16.42,'5962','53758',149,157);
INSERT INTO "communes" VALUES('67','Wimmenau','17',1134,1050,20.76,'5651','54347',197,413);
INSERT INTO "communes" VALUES('67','Goxwiller','16',822,733,3.3,'5720','53814',161,231);
INSERT INTO "communes" VALUES('67','Fouchy','32',660,568,7.87,'5482','53697',292,831);
INSERT INTO "communes" VALUES('67','Willgottheim','31',1077,914,9,'5748','54079',181,333);
INSERT INTO "communes" VALUES('67','Sermersheim','02',791,829,10.12,'5794','53717',157,163);
INSERT INTO "communes" VALUES('67','Ebersmunster','24',465,435,7.39,'5764','53679',160,168);
INSERT INTO "communes" VALUES('67','Wolfisheim','43',3955,3832,5.57,'5922','53985',141,172);
INSERT INTO "communes" VALUES('67','Muttersholtz','12',1922,1717,12.67,'5775','53632',162,170);
INSERT INTO "communes" VALUES('67','Melsheim','10',584,534,5.21,'5761','54175',158,236);
INSERT INTO "communes" VALUES('67','Hinsingen','20',81,72,2.98,'5172','54392',212,251);
INSERT INTO "communes" VALUES('67','Olwisheim','05',512,477,2.96,'5932','54108',148,187);
INSERT INTO "communes" VALUES('67','Uttenheim','07',572,533,4.77,'5845','53790',153,159);
INSERT INTO "communes" VALUES('67','Epfig','01',2168,1950,21.9,'5696','53732',160,311);
INSERT INTO "communes" VALUES('67','Rountzenheim','03',1045,976,6.67,'6300','54244',116,121);
INSERT INTO "communes" VALUES('67','Colroy-la-Roche','19',478,455,8.18,'5383','53767',422,730);
INSERT INTO "communes" VALUES('67','Waldersbach','23',145,139,3.37,'5419','53794',464,925);
INSERT INTO "communes" VALUES('67','Ernolsheim-lès-Saverne','21',600,592,10.94,'5605','54214',173,422);
INSERT INTO "communes" VALUES('67','Hœnheim','44',10495,10749,3.42,'6020','54027',133,151);
INSERT INTO "communes" VALUES('67','Mittelhausbergen','43',1712,1681,1.72,'5951','54016',144,192);
INSERT INTO "communes" VALUES('67','Westhouse','07',1398,1351,11.94,'5836','53774',153,159);
INSERT INTO "communes" VALUES('67','Hochstett','09',315,241,2.13,'5933','54198',172,217);
INSERT INTO "communes" VALUES('67','Dinsheim-sur-Bruche','14',1365,1340,4.98,'5655','53936',195,330);
INSERT INTO "communes" VALUES('67','Drulingen','06',1448,1468,4.49,'5394','54298',273,327);
INSERT INTO "communes" VALUES('67','Urmatt','14',1448,1356,13.83,'5542','53919',224,900);
INSERT INTO "communes" VALUES('67','Breitenbach','32',698,652,11.73,'5505','53739',304,1073);
INSERT INTO "communes" VALUES('67','Obersoultzbach','04',426,397,5.16,'5681','54279',195,239);
INSERT INTO "communes" VALUES('67','Soultz-les-Bains','14',928,694,3.55,'5723','53968',166,359);
INSERT INTO "communes" VALUES('67','Schaeffersheim','07',817,706,3.96,'5874','53809',152,156);
INSERT INTO "communes" VALUES('67','Erstein','07',10791,9665,36.22,'5916','53802',147,157);
INSERT INTO "communes" VALUES('67','Osthoffen','31',812,683,5.11,'5798','53985',159,227);
INSERT INTO "communes" VALUES('67','Asswiller','06',285,230,6.02,'5426','54313',256,337);
INSERT INTO "communes" VALUES('67','Mackenheim','12',727,653,11.79,'5810','53538',169,178);
INSERT INTO "communes" VALUES('67','Bœsenbiesen','12',300,272,3.81,'5808','53587',168,173);
INSERT INTO "communes" VALUES('67','Sundhouse','12',1578,1154,15.69,'5851','53612',162,170);
INSERT INTO "communes" VALUES('67','Gresswiller','14',1538,1287,9.27,'5660','53928',192,322);
INSERT INTO "communes" VALUES('67','Grendelbruch','18',1258,1126,14.63,'5540','53881',399,1031);
INSERT INTO "communes" VALUES('67','Steinbourg','21',1979,1921,12.73,'5641','54189',168,232);
INSERT INTO "communes" VALUES('67','Blienschwiller','01',339,288,3.07,'5646','53713',189,411);
INSERT INTO "communes" VALUES('67','Ergersheim','14',1169,938,6.51,'5767','53966',157,261);
INSERT INTO "communes" VALUES('67','Maennolsheim','21',241,170,2.74,'5695','54111',198,243);
INSERT INTO "communes" VALUES('67','Kriegsheim','05',721,612,3.93,'5992','54176',159,196);
INSERT INTO "communes" VALUES('67','Lixhausen','10',342,260,3.29,'5792','54216',167,248);
INSERT INTO "communes" VALUES('67','Kauffenheim','03',219,209,2.24,'6324','54281',113,120);
INSERT INTO "communes" VALUES('67','Niedermodern','04',816,691,4.39,'5877','54273',157,262);
INSERT INTO "communes" VALUES('67','Wilwisheim','10',693,680,5.3,'5745','54165',158,215);
INSERT INTO "communes" VALUES('67','Dieffenthal','24',256,226,1.51,'5648','53677',188,523);
INSERT INTO "communes" VALUES('67','Leutenheim','03',855,787,10.39,'6316','54270',115,139);
INSERT INTO "communes" VALUES('67','Wittersheim','09',608,503,7.05,'5913','54201',158,230);
INSERT INTO "communes" VALUES('67','Châtenois','24',4088,3373,14.57,'5627','53635',179,525);
INSERT INTO "communes" VALUES('67','Tieffenbach','17',290,335,5.03,'5459','54339',237,343);
INSERT INTO "communes" VALUES('67','Struth','17',244,221,4.12,'5466','54327',248,367);
INSERT INTO "communes" VALUES('67','<NAME>','01',501,386,20.84,'5548','53783',450,1091);
INSERT INTO "communes" VALUES('67','Schalkendorf','04',316,282,5.21,'5806','54259',167,272);
INSERT INTO "communes" VALUES('67','Fort-Louis','03',329,239,12.31,'6355','54224',113,122);
INSERT INTO "communes" VALUES('67','Bourgheim','16',574,409,2.83,'5731','53799',159,221);
INSERT INTO "communes" VALUES('67','Reipertswiller','17',934,933,19.21,'5698','54369',207,421);
INSERT INTO "communes" VALUES('67','Kintzheim','24',1551,1493,18.78,'5622','53616',176,521);
INSERT INTO "communes" VALUES('67','Dieffenbach-lès-Wœrth','35',340,361,3.61,'6046','54370',162,242);
INSERT INTO "communes" VALUES('67','Eschau','08',4776,4411,11.83,'5977','53876',142,148);
INSERT INTO "communes" VALUES('67','Brumath','05',9880,8927,29.54,'5969','54147',136,189);
INSERT INTO "communes" VALUES('67','Oermingen','20',1231,1256,14.63,'5324','54443',207,324);
INSERT INTO "communes" VALUES('67','Forstheim','35',567,577,5.05,'5975','54330',174,246);
INSERT INTO "communes" VALUES('67','Schirrhoffen','03',702,630,0.63,'6206','54229',119,138);
INSERT INTO "communes" VALUES('67','Kirrwiller','04',511,684,4.89,'5771','54238',181,275);
INSERT INTO "communes" VALUES('67','Wingen','34',453,470,16.79,'6087','54473',220,553);
INSERT INTO "communes" VALUES('67','Alteckendorf','10',750,746,5.72,'5842','54214',167,265);
INSERT INTO "communes" VALUES('67','Bernardswiller','16',1422,1222,5.53,'5697','53837',183,311);
INSERT INTO "communes" VALUES('67','Weitbruch','09',2656,2474,15.11,'6046','54174',143,187);
INSERT INTO "communes" VALUES('67','Geiswiller','10',198,190,3.2,'5740','54209',195,253);
INSERT INTO "communes" VALUES('67','Crœttwiller','25',170,173,2.55,'6327','54370',135,193);
INSERT INTO "communes" VALUES('67','<NAME>','05',5902,5462,25.39,'6102','54065',128,135);
INSERT INTO "communes" VALUES('67','Kirchheim','33',639,513,2.3,'5732','54011',175,237);
INSERT INTO "communes" VALUES('67','Zeinheim','13',195,150,2.46,'5721','54081',195,268);
INSERT INTO "communes" VALUES('67','Fegersheim','08',5367,4531,6.25,'5937','53879',142,149);
INSERT INTO "communes" VALUES('67','Schaffhouse-sur-Zorn','10',385,349,3.67,'5807','54147',158,214);
INSERT INTO "communes" VALUES('67','Neuve-Église','32',624,620,5.48,'5530','53699',237,660);
INSERT INTO "communes" VALUES('67','Oberbronn','15',1528,1424,21.15,'5856','54379',177,537);
INSERT INTO "communes" VALUES('67','Wittisheim','12',2053,1821,11.47,'5835','53626',163,170);
INSERT INTO "communes" VALUES('67','Weyersheim','05',3350,2992,18.89,'6075','54129',124,158);
INSERT INTO "communes" VALUES('67','Ingwiller','04',4156,3845,18.05,'5711','54303',185,371);
INSERT INTO "communes" VALUES('67','Witternheim','02',510,382,4.99,'5862','53682',159,163);
INSERT INTO "communes" VALUES('67','Menchhoffen','04',572,504,4.27,'5735','54288',177,233);
INSERT INTO "communes" VALUES('67','Kuttolsheim','31',663,628,4.59,'5764','54048',166,365);
INSERT INTO "communes" VALUES('67','Hengwiller','13',178,167,2.15,'5552','54075',275,400);
INSERT INTO "communes" VALUES('67','Reichstett','43',4397,4885,7.61,'6017','54051',133,149);
INSERT INTO "communes" VALUES('67','Langensoultzbach','35',913,901,13.09,'5998','54408',177,411);
INSERT INTO "communes" VALUES('67','Herrlisheim','03',4757,4198,14.38,'6190','54145',120,131);
INSERT INTO "communes" VALUES('67','Volksberg','06',346,337,9.45,'5513','54386',248,408);
INSERT INTO "communes" VALUES('67','Birkenwald','13',291,253,5.12,'5564','54065',258,432);
INSERT INTO "communes" VALUES('67','Duntzenheim','10',615,544,6.21,'5776','54125',172,253);
INSERT INTO "communes" VALUES('67','Reutenbourg','13',386,303,4.4,'5633','54094',211,351);
INSERT INTO "communes" VALUES('67','Haguenau','09',34280,32206,182.59,'6057','54241',115,203);
INSERT INTO "communes" VALUES('67','Durningen','31',643,590,4.02,'5812','54092',179,274);
INSERT INTO "communes" VALUES('67','<NAME>','15',1147,1012,0.68,'5860','54278',163,208);
INSERT INTO "communes" VALUES('67','Ottersthal','21',705,785,3.13,'5571','54172',194,418);
INSERT INTO "communes" VALUES('67','Issenhausen','10',114,89,2.1,'5778','54228',177,254);
INSERT INTO "communes" VALUES('67','Reinhardsmunster','13',473,402,18.63,'5534','54084',240,624);
INSERT INTO "communes" VALUES('67','Saint-Jean-Saverne','21',601,597,6.39,'5583','54189',186,436);
INSERT INTO "communes" VALUES('67','Orschwiller','24',609,536,6.32,'5606','53602',172,714);
INSERT INTO "communes" VALUES('67','Blaesheim','08',1283,1368,9.96,'5858','53895',146,198);
INSERT INTO "communes" VALUES('67','Furdenheim','31',1230,1008,5.81,'5805','54013',167,225);
INSERT INTO "communes" VALUES('67','Quatzenheim','31',828,710,3.07,'5818','54029',156,193);
INSERT INTO "communes" VALUES('67','Niedersoultzbach','04',252,272,4.19,'5699','54277',188,233);
INSERT INTO "communes" VALUES('67','Steinseltz','34',623,615,5.47,'6216','54456',163,252);
INSERT INTO "communes" VALUES('67','Hirschland','06',332,340,10.73,'5306','54263',244,332);
INSERT INTO "communes" VALUES('67','Ernolsheim-Bruche','14',1660,1688,6.59,'5810','53960',154,206);
INSERT INTO "communes" VALUES('67','Oberschaeffolsheim','43',2139,2086,7.56,'5902','53984',142,181);
INSERT INTO "communes" VALUES('67','Saint-Blaise-la-Roche','19',225,252,2.39,'5361','53782',404,661);
INSERT INTO "communes" VALUES('67','Ranrupt','19',347,293,14.68,'5402','53750',476,1013);
INSERT INTO "communes" VALUES('67','Saint-Pierre-Bois','32',726,606,7.3,'5578','53704',217,550);
INSERT INTO "communes" VALUES('67','Wangen','33',720,704,3.87,'5700','54020',176,400);
INSERT INTO "communes" VALUES('67','Griesheim-sur-Souffel','31',1150,1153,4.19,'5923','54039',142,192);
INSERT INTO "communes" VALUES('67','Belmont','23',177,147,10.34,'5442','53789',566,1084);
INSERT INTO "communes" VALUES('67','Berstett','31',2323,1914,17.88,'5913','54088',147,281);
INSERT INTO "communes" VALUES('67','Neuviller-la-Roche','23',395,375,9.19,'5447','53821',410,1035);
INSERT INTO "communes" VALUES('67','Allenwiller','13',507,452,5.96,'5599','54061',225,400);
INSERT INTO "communes" VALUES('67','Rexingen','06',196,170,2.32,'5383','54336',233,279);
INSERT INTO "communes" VALUES('67','Niederhausbergen','43',1295,1381,3.06,'5964','54027',141,191);
INSERT INTO "communes" VALUES('67','Mutzig','14',5664,5586,8.01,'5686','53932',180,397);
INSERT INTO "communes" VALUES('67','Schirrhein','03',2180,2025,6.49,'6188','54224',118,141);
INSERT INTO "communes" VALUES('67','Bindernheim','12',921,750,6.62,'5858','53648',161,166);
INSERT INTO "communes" VALUES('67','Mussig','12',1151,1085,11.73,'5759','53587',167,174);
INSERT INTO "communes" VALUES('67','Saulxures','19',538,457,12.84,'5327','53769',420,812);
INSERT INTO "communes" VALUES('67','Duppigheim','08',1548,1496,7.38,'5841','53921',151,176);
INSERT INTO "communes" VALUES('67','Mulhausen','04',460,376,4,'5796','54315',178,237);
INSERT INTO "communes" VALUES('67','Diemeringen','06',1628,1655,8.81,'5389','54380',222,329);
INSERT INTO "communes" VALUES('67','Saales','19',850,856,9.88,'5299','53720',517,831);
INSERT INTO "communes" VALUES('67','Sarrewerden','20',938,1013,16.73,'5274','54359',217,336);
INSERT INTO "communes" VALUES('67','Wangenbourg-Engenthal','33',1369,1182,31.52,'5519','54029',284,964);
INSERT INTO "communes" VALUES('67','Achenheim','43',2168,2184,6.03,'5878','53979',143,191);
INSERT INTO "communes" VALUES('67','Ebersheim','24',2147,1854,13.66,'5737','53670',160,173);
INSERT INTO "communes" VALUES('67','Keffenach','26',208,202,2.39,'6162','54405',153,231);
INSERT INTO "communes" VALUES('67','Griesheim-près-Molsheim','18',2036,1721,4.62,'5772','53893',156,191);
INSERT INTO "communes" VALUES('67','Lorentzen','20',206,265,7.85,'5376','54392',220,331);
INSERT INTO "communes" VALUES('67','Gundershoffen','15',3525,3489,17.55,'5918','54340',163,261);
INSERT INTO "communes" VALUES('67','Uttenhoffen','15',175,176,1.95,'5909','54325',164,250);
INSERT INTO "communes" VALUES('67','<NAME>','24',382,373,7.88,'5519','53651',217,810);
INSERT INTO "communes" VALUES('67','Mietesheim','15',667,553,8.49,'5894','54309',159,260);
INSERT INTO "communes" VALUES('67','Wolxheim','14',874,774,2.92,'5752','53965',163,273);
INSERT INTO "communes" VALUES('67','Erckartswiller','17',297,212,10.46,'5590','54307',217,392);
INSERT INTO "communes" VALUES('67','Schwindratzheim','10',1585,1670,9.14,'5850','54174',151,245);
INSERT INTO "communes" VALUES('67','Oberrœdern','26',531,449,5,'6264','54357',129,182);
INSERT INTO "communes" VALUES('67','Berg','06',426,405,7.72,'5355','54330',240,359);
INSERT INTO "communes" VALUES('67','Thal-Drulingen','06',176,186,5.25,'5343','54345',241,357);
INSERT INTO "communes" VALUES('67','Nothalten','01',464,417,4,'5648','53725',193,393);
INSERT INTO "communes" VALUES('67','Neuhaeusel','03',359,274,3.05,'6388','54249',114,119);
INSERT INTO "communes" VALUES('67','Morschwiller','09',564,459,4.62,'5877','54245',194,302);
INSERT INTO "communes" VALUES('67','Sessenheim','03',2133,1782,9.18,'6277','54219',118,122);
INSERT INTO "communes" VALUES('67','Rothau','23',1589,1558,3.88,'5413','53839',319,690);
INSERT INTO "communes" VALUES('67','Ettendorf','10',815,700,6.34,'5829','54237',181,286);
INSERT INTO "communes" VALUES('67','Ottrott','18',1634,1513,28.89,'5654','53842',230,1052);
INSERT INTO "communes" VALUES('67','Gungwiller','06',278,233,1.65,'5357','54312',303,358);
INSERT INTO "communes" VALUES('67','Lingolsheim','42',16441,16873,5.69,'5940','53953',139,150);
INSERT INTO "communes" VALUES('67','Salenthal','13',221,165,1.34,'5593','54074',265,313);
INSERT INTO "communes" VALUES('67','Zellwiller','16',722,722,8.79,'5734','53775',153,186);
INSERT INTO "communes" VALUES('67','Batzendorf','09',914,826,6.74,'5965','54204',161,206);
INSERT INTO "communes" VALUES('67','Niederlauterbach','11',948,863,11.22,'6407','54414',122,191);
INSERT INTO "communes" VALUES('67','Friedolsheim','10',245,211,3.52,'5720','54118',194,263);
INSERT INTO "communes" VALUES('67','Gottenhouse','13',382,351,1.25,'5583','54134',191,240);
INSERT INTO "communes" VALUES('67','Schwenheim','13',661,628,4.96,'5640','54126',194,262);
INSERT INTO "communes" VALUES('67','Valff','16',1254,1280,10.91,'5761','53802',152,167);
INSERT INTO "communes" VALUES('67','Rottelsheim','05',327,292,2.39,'5975','54174',161,196);
INSERT INTO "communes" VALUES('67','Berstheim','09',402,358,3.09,'5932','54214',171,222);
INSERT INTO "communes" VALUES('67','Neubois','32',659,562,11.42,'5558','53674',219,855);
INSERT INTO "communes" VALUES('67','Bernardvillé','01',221,199,2.76,'5627','53744',247,560);
INSERT INTO "communes" VALUES('67','Auenheim','03',872,733,4.24,'6303','54235',116,121);
INSERT INTO "communes" VALUES('67','Knœrsheim','13',203,173,2.36,'5694','54090',196,285);
INSERT INTO "communes" VALUES('67','Uhrwiller','15',693,698,11.02,'5824','54309',172,266);
INSERT INTO "communes" VALUES('67','Elsenheim','12',817,681,9.61,'5735','53513',175,182);
INSERT INTO "communes" VALUES('67','Dambach-la-Ville','01',1969,1973,28.83,'5656','53693',164,662);
INSERT INTO "communes" VALUES('67','Landersheim','13',188,131,2.13,'5729','54099',181,241);
INSERT INTO "communes" VALUES('67','Printzheim','21',221,211,4.3,'5713','54212',197,283);
INSERT INTO "communes" VALUES('67','Rott','34',472,414,3.24,'6190','54471',197,400);
INSERT INTO "communes" VALUES('67','Albé','32',472,456,10.83,'5535','53730',274,901);
INSERT INTO "communes" VALUES('67','Bootzheim','12',644,448,5.91,'5819','53543',170,178);
INSERT INTO "communes" VALUES('67','Uberach','15',1196,1091,2.01,'5880','54277',157,207);
INSERT INTO "communes" VALUES('67','Sparsbach','17',260,191,13.58,'5642','54310',197,387);
INSERT INTO "communes" VALUES('67','Wissembourg','34',7803,8173,48.18,'6233','54486',133,527);
INSERT INTO "communes" VALUES('67','Herbsheim','02',881,765,8.6,'5883','53722',155,160);
INSERT INTO "communes" VALUES('67','Krautergersheim','16',1689,1590,6.37,'5811','53862',149,159);
INSERT INTO "communes" VALUES('67','Preuschdorf','35',962,872,7.57,'6068','54384',157,446);
INSERT INTO "communes" VALUES('67','Oberlauterbach','25',549,459,5.32,'6370','54388',148,192);
INSERT INTO "communes" VALUES('67','Stundwiller','26',485,371,3.32,'6282','54362',128,179);
INSERT INTO "communes" VALUES('67','Solbach','23',109,100,2.79,'5405','53808',367,750);
INSERT INTO "communes" VALUES('67','Drachenbronn-Birlenbach','26',943,863,7.13,'6148','54429',157,310);
INSERT INTO "communes" VALUES('67','Dahlenheim','33',749,582,5.35,'5745','53984',170,291);
INSERT INTO "communes" VALUES('68','Ruederbach','10',358,280,4.46,'5481','52848',335,424);
INSERT INTO "communes" VALUES('68','Courtavon','07',327,326,9.6,'5401','52734',417,663);
INSERT INTO "communes" VALUES('68','Wittelsheim','03',10268,10251,23.63,'5445','53117',239,285);
INSERT INTO "communes" VALUES('68','Steinsoultz','10',783,625,4.06,'5556','52838',353,442);
INSERT INTO "communes" VALUES('68','Habsheim','09',4865,4312,15.63,'5647','53033',236,318);
INSERT INTO "communes" VALUES('68','Guewenheim','25',1291,1174,8.55,'5284','53059',309,420);
INSERT INTO "communes" VALUES('68','Colmar','98',67615,65118,66.57,'5576','53424',175,214);
INSERT INTO "communes" VALUES('68','Gueberschwihr','21',832,816,8.91,'5488','53337',197,873);
INSERT INTO "communes" VALUES('68','Hirsingue','10',2224,2052,12.88,'5462','52874',307,411);
INSERT INTO "communes" VALUES('68','Linsdorf','07',318,306,3.36,'5623','52783',387,498);
INSERT INTO "communes" VALUES('68','Hochstatt','01',2128,1876,8.55,'5488','53002',248,320);
INSERT INTO "communes" VALUES('68','Muespach-le-Haut','07',1006,810,6.91,'5629','52828',410,493);
INSERT INTO "communes" VALUES('68','Muespach','07',854,826,11.37,'5604','52831',371,471);
INSERT INTO "communes" VALUES('68','Raedersheim','24',1149,966,5.69,'5494','53209',219,244);
INSERT INTO "communes" VALUES('68','Friesen','10',601,594,8.42,'5348','52850',345,417);
INSERT INTO "communes" VALUES('68','Kembs','13',4514,3741,16.45,'5741','52988',222,255);
INSERT INTO "communes" VALUES('68','Aspach-le-Bas','03',1329,1079,8.01,'5349','53069',289,340);
INSERT INTO "communes" VALUES('68','Dietwiller','13',1414,1189,11.06,'5627','52990',240,304);
INSERT INTO "communes" VALUES('68','Hombourg','31',1129,863,15.32,'5743','53066',222,238);
INSERT INTO "communes" VALUES('68','Illfurth','01',2469,1960,9.16,'5476','52969',255,391);
INSERT INTO "communes" VALUES('68','Carspach','01',1980,1620,17.17,'5417','52906',283,397);
INSERT INTO "communes" VALUES('68','Biederthal','07',308,308,4.16,'5680','52744',375,530);
INSERT INTO "communes" VALUES('68','Nambsheim','19',615,405,10.03,'5807','53261',197,208);
INSERT INTO "communes" VALUES('68','Hundsbach','01',310,224,4.03,'5552','52892',320,418);
INSERT INTO "communes" VALUES('68','Ranspach-le-Bas','11',673,614,4.43,'5676','52875',302,401);
INSERT INTO "communes" VALUES('68','Wettolsheim','26',1684,1693,8.86,'5514','53397',188,688);
INSERT INTO "communes" VALUES('68','Altkirch','01',5765,5385,9.54,'5448','52915',274,392);
INSERT INTO "communes" VALUES('68','Zimmerbach','26',855,857,2.26,'5445','53414',256,685);
INSERT INTO "communes" VALUES('68','Rimbach-près-Masevaux','15',495,503,16.66,'5127','53142',514,1250);
INSERT INTO "communes" VALUES('68','Blotzheim','11',4121,3567,14.6,'5732','52891',242,323);
INSERT INTO "communes" VALUES('68','Winkel','07',346,334,7.87,'5474','52734',520,810);
INSERT INTO "communes" VALUES('68','Westhalten','21',957,817,10.98,'5469','53286',217,576);
INSERT INTO "communes" VALUES('68','Michelbach','25',365,233,3.35,'5312','53069',316,403);
INSERT INTO "communes" VALUES('68','Wasserbourg','18',462,473,9.47,'5357','53337',418,1240);
INSERT INTO "communes" VALUES('68','Neuf-Brisach','19',2017,2207,1.33,'5769','53353',194,198);
INSERT INTO "communes" VALUES('68','Moosch','22',1738,1913,15.25,'5237','53178',375,1190);
INSERT INTO "communes" VALUES('68','Mœrnach','07',562,536,6.79,'5465','52782',417,644);
INSERT INTO "communes" VALUES('68','Fulleren','10',332,330,5.31,'5344','52882',336,402);
INSERT INTO "communes" VALUES('68','Rouffach','21',4574,4185,40.05,'5512','53286',195,980);
INSERT INTO "communes" VALUES('68','Bantzenheim','31',1639,1568,21.22,'5754','53139',213,229);
INSERT INTO "communes" VALUES('68','Magstatt-le-Haut','13',272,226,3.91,'5621','52925',309,406);
INSERT INTO "communes" VALUES('68','Pfetterhouse','10',1055,972,14.28,'5366','52779',391,501);
INSERT INTO "communes" VALUES('68','Zellenberg','12',369,391,4.96,'5537','53523',183,374);
INSERT INTO "communes" VALUES('68','Montreux-Vieux','05',883,769,4.14,'5206','52911',338,361);
INSERT INTO "communes" VALUES('68','Heimsbrunn','17',1448,1222,10.59,'5433','53030',262,314);
INSERT INTO "communes" VALUES('68','Leimbach','25',836,740,3.57,'5294','53103',326,663);
INSERT INTO "communes" VALUES('68','Illhaeusern','20',698,646,10.46,'5665','53538',172,179);
INSERT INTO "communes" VALUES('68','Niffer','31',939,657,8.72,'5748','53016',222,245);
INSERT INTO "communes" VALUES('68','Schlierbach','13',1169,928,11.8,'5635','52981',244,346);
INSERT INTO "communes" VALUES('68','Jungholtz','24',906,659,4,'5398','53206',297,881);
INSERT INTO "communes" VALUES('68','Zillisheim','17',2643,2355,8.22,'5510','52995',247,404);
INSERT INTO "communes" VALUES('68','Spechbach-le-Haut','01',664,618,3.92,'5422','52978',267,297);
INSERT INTO "communes" VALUES('68','Reiningue','27',1791,1630,18.54,'5439','53056',255,297);
INSERT INTO "communes" VALUES('68','Knœringue','11',364,266,4.68,'5629','52848',382,452);
INSERT INTO "communes" VALUES('68','Andolsheim','02',2202,1985,11.6,'5645','53403',185,192);
INSERT INTO "communes" VALUES('68','Riquewihr','12',1203,1209,17.04,'5512','53518',230,936);
INSERT INTO "communes" VALUES('68','Kappelen','13',522,498,5.15,'5668','52909',296,371);
INSERT INTO "communes" VALUES('68','Spechbach-le-Bas','01',728,625,4.14,'5435','52967',260,295);
INSERT INTO "communes" VALUES('68','Urbès','22',460,486,12.68,'5132','53204',442,1225);
INSERT INTO "communes" VALUES('68','Gommersdorf','05',366,379,4.15,'5325','52933',287,326);
INSERT INTO "communes" VALUES('68','Aspach-le-Haut','25',1470,1123,8.68,'5329','53084',301,402);
INSERT INTO "communes" VALUES('68','Bettendorf','10',481,427,4.73,'5489','52871',321,407);
INSERT INTO "communes" VALUES('68','Buethwiller','05',268,224,3.84,'5347','52952',279,317);
INSERT INTO "communes" VALUES('68','Village-Neuf','11',3706,3107,6.83,'5814','52896',232,250);
INSERT INTO "communes" VALUES('68','Thannenkirch','20',476,448,4.6,'5519','53592',386,938);
INSERT INTO "communes" VALUES('68','Bendorf','07',232,202,7.55,'5494','52764',479,680);
INSERT INTO "communes" VALUES('68','Lautenbach','08',1576,1570,13.02,'5358','53268',353,1160);
INSERT INTO "communes" VALUES('68','Lutter','07',296,297,8.46,'5605','52740',418,780);
INSERT INTO "communes" VALUES('68','Elbach','05',260,276,3.18,'5269','52935',309,370);
INSERT INTO "communes" VALUES('68','Soultzmatt','21',2313,2134,19.57,'5446','53291',236,773);
INSERT INTO "communes" VALUES('68','Retzwiller','05',634,582,4.1,'5285','52923',302,392);
INSERT INTO "communes" VALUES('68','Lucelle','07',40,47,10.27,'5456','52692',500,760);
INSERT INTO "communes" VALUES('68','Oberbruck','15',436,475,4.3,'5118','53121',455,1120);
INSERT INTO "communes" VALUES('68','Berrwiller','24',1163,1058,7.66,'5425','53166',244,360);
INSERT INTO "communes" VALUES('68','Vieux-Ferrette','07',621,526,6.63,'5514','52781',419,670);
INSERT INTO "communes" VALUES('68','Sondernach','18',656,614,24.72,'5264','53330',497,1324);
INSERT INTO "communes" VALUES('68','Manspach','05',560,499,5.33,'5298','52907',304,387);
INSERT INTO "communes" VALUES('68','Sondersdorf','07',344,317,8.44,'5554','52759',444,784);
INSERT INTO "communes" VALUES('68','Buschwiller','11',970,881,4.16,'5745','52843',282,372);
INSERT INTO "communes" VALUES('68','Ostheim','20',1588,1371,8.16,'5593','53511',178,186);
INSERT INTO "communes" VALUES('68','Ligsdorf','07',331,297,10.03,'5521','52747',468,810);
INSERT INTO "communes" VALUES('68','Niedermorschwihr','12',547,584,3.35,'5486','53444',263,720);
INSERT INTO "communes" VALUES('68','Goldbach-Altenbach','22',285,252,9.14,'5297','53192',482,1420);
INSERT INTO "communes" VALUES('68','Blodelsheim','06',1729,1410,20.69,'5779','53206',205,219);
INSERT INTO "communes" VALUES('68','Henflingen','10',198,173,2.65,'5502','52860',329,419);
INSERT INTO "communes" VALUES('68','Sundhoffen','02',1913,1910,12.75,'5641','53382',189,194);
INSERT INTO "communes" VALUES('68','Bitschwiller-lès-Thann','25',2028,2121,12.64,'5271','53145',344,1183);
INSERT INTO "communes" VALUES('68','Logelheim','19',835,585,4.33,'5635','53357',193,197);
INSERT INTO "communes" VALUES('68','Heiwiller','01',189,181,2.04,'5537','52915',300,372);
INSERT INTO "communes" VALUES('68','Aubure','23',398,400,4.9,'5427','53553',727,1144);
INSERT INTO "communes" VALUES('68','Munwiller','06',456,436,6.74,'5565','53256',203,209);
INSERT INTO "communes" VALUES('68','Bollwiller','24',3597,3550,8.63,'5473','53175',229,265);
INSERT INTO "communes" VALUES('68','Rustenhart','06',823,758,12.22,'5694','53269',203,210);
INSERT INTO "communes" VALUES('68','Bergheim','20',1895,1830,19.16,'5583','53561',172,733);
INSERT INTO "communes" VALUES('68','Hausgauen','01',424,379,5.79,'5540','52894',302,407);
INSERT INTO "communes" VALUES('68','Kingersheim','27',12779,11957,6.69,'5557','53102',227,250);
INSERT INTO "communes" VALUES('68','Biltzheim','06',378,334,7.15,'5613','53286',199,206);
INSERT INTO "communes" VALUES('68','Eglingen','01',358,247,3.72,'5384','52961',273,317);
INSERT INTO "communes" VALUES('68','Bourbach-le-Bas','25',617,562,6.04,'5248','53082',347,731);
INSERT INTO "communes" VALUES('68','Rosenau','11',2130,1839,6.47,'5777','52930',226,247);
INSERT INTO "communes" VALUES('68','Helfrantzkirch','13',759,760,6.23,'5644','52897',330,428);
INSERT INTO "communes" VALUES('68','Hirtzbach','10',1315,1183,13.91,'5430','52887',298,417);
INSERT INTO "communes" VALUES('68','Osenbach','21',885,830,5.6,'5424','53318',325,750);
INSERT INTO "communes" VALUES('68','Willer','01',338,303,6.21,'5537','52873',352,438);
INSERT INTO "communes" VALUES('68','Feldbach','10',458,401,5.02,'5475','52817',385,438);
INSERT INTO "communes" VALUES('68','Kœstlach','07',517,417,8.23,'5483','52785',423,650);
INSERT INTO "communes" VALUES('68','Mortzwiller','15',324,252,4.23,'5224','53045',340,421);
INSERT INTO "communes" VALUES('68','Saint-Ulrich','10',306,279,3.85,'5314','52884',322,390);
INSERT INTO "communes" VALUES('68','Munchhouse','06',1616,1429,24.05,'5682','53187',214,227);
INSERT INTO "communes" VALUES('68','Levoncourt','07',251,224,5.28,'5409','52721',448,741);
INSERT INTO "communes" VALUES('68','Bartenheim','13',3656,2912,12.86,'5710','52928',237,311);
INSERT INTO "communes" VALUES('68','Bourbach-le-Haut','15',421,324,6.86,'5215','53106',439,1183);
INSERT INTO "communes" VALUES('68','Steinbrunn-le-Bas','13',634,644,8.58,'5589','52973',257,403);
INSERT INTO "communes" VALUES('68','Saint-Louis','11',20127,19973,16.85,'5809','52873',237,278);
INSERT INTO "communes" VALUES('68','Hésingue','11',2471,1921,9.14,'5761','52863',248,343);
INSERT INTO "communes" VALUES('68','Diefmatten','05',301,251,3.17,'5310','53009',297,381);
INSERT INTO "communes" VALUES('68','Altenach','05',386,344,6.18,'5306','52896',313,386);
INSERT INTO "communes" VALUES('68','Ruelisheim','31',2365,2655,7.27,'5579','53137',221,234);
INSERT INTO "communes" VALUES('68','Tagolsheim','01',691,659,3.19,'5482','52951',262,367);
INSERT INTO "communes" VALUES('68','Wolschwiller','07',476,430,10.14,'5635','52735',400,831);
INSERT INTO "communes" VALUES('68','Husseren-Wesserling','22',1002,971,5.09,'5165','53201',415,840);
INSERT INTO "communes" VALUES('68','Breitenbach-Haut-Rhin','18',848,880,9.27,'5293','53359',414,1165);
INSERT INTO "communes" VALUES('68','Soultzeren','18',1182,1087,18.37,'5295','53403',464,1303);
INSERT INTO "communes" VALUES('68','Turckheim','26',3739,3592,16.46,'5493','53429',219,840);
INSERT INTO "communes" VALUES('68','Balschwiller','05',824,762,9.79,'5369','52965',273,348);
INSERT INTO "communes" VALUES('68','Biesheim','19',2447,2317,16.55,'5785','53379',184,194);
INSERT INTO "communes" VALUES('68','Sickert','15',329,317,5.12,'5158','53093',409,900);
INSERT INTO "communes" VALUES('68','Battenheim','31',1336,1322,16.88,'5606','53133',223,231);
INSERT INTO "communes" VALUES('68','Fortschwihr','02',1224,967,4.78,'5682','53432',182,190);
INSERT INTO "communes" VALUES('68','Geiswasser','19',327,257,8.24,'5852','53308',193,200);
INSERT INTO "communes" VALUES('68','Wintzenheim','26',7592,7174,18.97,'5504','53415',202,827);
INSERT INTO "communes" VALUES('68','Illzach','31',14596,14938,7.5,'5568','53091',228,237);
INSERT INTO "communes" VALUES('68','Ingersheim','12',4696,4169,7.44,'5522','53439',196,326);
INSERT INTO "communes" VALUES('68','Michelbach-le-Haut','11',528,479,7.38,'5675','52852',324,468);
INSERT INTO "communes" VALUES('68','Gundolsheim','21',737,604,8.22,'5508','53255',206,229);
INSERT INTO "communes" VALUES('68','Liebenswiller','11',198,184,3.87,'5687','52776',349,529);
INSERT INTO "communes" VALUES('68','Chavannes-sur-l''Étang','05',613,436,6.04,'5209','52924',345,373);
INSERT INTO "communes" VALUES('68','Riespach','10',720,672,7.57,'5501','52823',355,455);
INSERT INTO "communes" VALUES('68','Hagenthal-le-Haut','11',609,410,4.92,'5701','52799',360,529);
INSERT INTO "communes" VALUES('68','Ferrette','07',846,1020,1.94,'5532','52771',429,640);
INSERT INTO "communes" VALUES('68','Oberdorf','10',573,568,4.13,'5523','52843',339,436);
INSERT INTO "communes" VALUES('68','Riedwihr','02',396,382,3.04,'5676','53474',177,184);
INSERT INTO "communes" VALUES('68','Didenheim','17',1738,1760,4.44,'5516','53021',242,332);
INSERT INTO "communes" VALUES('68','Wittenheim','27',14194,15022,19.01,'5556','53119',223,254);
INSERT INTO "communes" VALUES('68','Staffelfelden','03',3657,3553,7.42,'5463','53141',238,270);
INSERT INTO "communes" VALUES('68','Morschwiller-le-Bas','17',3432,2605,7.55,'5482','53040',248,311);
INSERT INTO "communes" VALUES('68','Saint-Cosme','05',85,66,2.71,'5252','52980',319,391);
INSERT INTO "communes" VALUES('68','Eteimbes','05',351,280,4.96,'5237','53003',340,412);
INSERT INTO "communes" VALUES('68','Saint-Amarin','22',2387,2443,11.61,'5216','53191',393,1347);
INSERT INTO "communes" VALUES('68','Herrlisheim-près-Colmar','26',1779,1588,7.68,'5544','53355',192,293);
INSERT INTO "communes" VALUES('68','Chalampé','31',949,965,4.77,'5783','53134',211,217);
INSERT INTO "communes" VALUES('68','Kiffis','07',236,236,6.55,'5578','52712',456,785);
INSERT INTO "communes" VALUES('68','Fellering','22',1716,1547,21.29,'5166','53218',426,1265);
INSERT INTO "communes" VALUES('68','Traubach-le-Haut','05',541,448,6.91,'5283','52967',289,372);
INSERT INTO "communes" VALUES('68','Strueth','10',328,339,4.31,'5320','52870',334,406);
INSERT INTO "communes" VALUES('68','Landser','13',1562,1686,3.04,'5616','52983',254,348);
INSERT INTO "communes" VALUES('68','Attenschwiller','11',895,836,5.11,'5697','52852',309,401);
INSERT INTO "communes" VALUES('68','Ballersdorf','01',811,719,10.72,'5359','52915',292,387);
INSERT INTO "communes" VALUES('68','Sternenberg','05',161,130,3.44,'5286','52995',299,381);
INSERT INTO "communes" VALUES('68','Willer-sur-Thur','25',1909,1875,18,'5263','53160',356,1183);
INSERT INTO "communes" VALUES('68','Jebsheim','02',1169,1014,14.85,'5711','53471',177,186);
INSERT INTO "communes" VALUES('68','Sainte-Marie-aux-Mines','23',5495,5817,45.23,'5386','53607',326,1210);
INSERT INTO "communes" VALUES('68','Hettenschlag','19',340,287,7.71,'5689','53339',194,202);
INSERT INTO "communes" VALUES('68','Steinbach','03',1286,1269,6.09,'5351','53134',309,922);
INSERT INTO "communes" VALUES('68','Ranspach','22',831,892,11.4,'5191','53206',409,1260);
INSERT INTO "communes" VALUES('68','Lapoutroie','14',1991,2105,21.12,'5370','53503',329,1221);
INSERT INTO "communes" VALUES('68','Munster','18',4905,4884,8.64,'5330','53379',341,794);
INSERT INTO "communes" VALUES('68','Tagsdorf','01',323,312,2.5,'5517','52913',291,388);
INSERT INTO "communes" VALUES('68','Wildenstein','22',191,211,9.86,'5138','53308',547,1303);
INSERT INTO "communes" VALUES('68','Magny','05',294,187,4.3,'5241','52894',340,376);
INSERT INTO "communes" VALUES('68','Issenheim','24',3434,3291,8.18,'5464','53225',223,268);
INSERT INTO "communes" VALUES('68','Eschentzwiller','09',1518,1244,3.19,'5624','53014',242,347);
INSERT INTO "communes" VALUES('68','Wahlbach','13',505,324,6.41,'5567','52924',314,390);
INSERT INTO "communes" VALUES('68','Vieux-Thann','25',2886,2975,5.11,'5316','53113',312,642);
INSERT INTO "communes" VALUES('68','Romagny','05',206,185,2.89,'5256','52899',349,376);
INSERT INTO "communes" VALUES('68','Schweighouse-Thann','03',712,680,10.78,'5371','53059',271,329);
INSERT INTO "communes" VALUES('68','Hégenheim','11',3172,2578,6.7,'5765','52847',254,347);
INSERT INTO "communes" VALUES('68','Wittersdorf','01',849,690,4.76,'5488','52913',277,388);
INSERT INTO "communes" VALUES('68','Husseren-les-Châteaux','26',497,397,1.2,'5493','53372',320,595);
INSERT INTO "communes" VALUES('68','Bretten','05',169,105,4.16,'5261','52999',324,398);
INSERT INTO "communes" VALUES('68','Sigolsheim','12',1172,990,5.8,'5516','53483',188,401);
INSERT INTO "communes" VALUES('68','Hindlingen','10',639,433,8,'5334','52857',339,417);
INSERT INTO "communes" VALUES('68','Valdieu-Lutran','05',391,305,5.17,'5246','52919',321,386);
INSERT INTO "communes" VALUES('68','<NAME>','14',827,767,21.98,'5308','53525',644,1231);
INSERT INTO "communes" VALUES('68','Stetten','13',320,274,4.32,'5655','52916',303,410);
INSERT INTO "communes" VALUES('68','Traubach-le-Bas','05',516,393,6.78,'5294','52951',288,368);
INSERT INTO "communes" VALUES('68','Ranspach-le-Haut','11',598,414,4.39,'5649','52864',342,445);
INSERT INTO "communes" VALUES('68','Oltingue','07',741,765,13.42,'5617','52768',387,531);
INSERT INTO "communes" VALUES('68','Zaessingue','13',320,257,4.99,'5589','52915',338,412);
INSERT INTO "communes" VALUES('68','Wolfgantzen','19',1031,972,9.38,'5739','53364',191,197);
INSERT INTO "communes" VALUES('68','Durlinsdorf','07',501,493,7.78,'5449','52762',420,676);
INSERT INTO "communes" VALUES('68','Houssen','02',1762,1578,6.7,'5601','53473',177,190);
INSERT INTO "communes" VALUES('68','Oberentzen','06',586,511,8.81,'5601','53271',201,211);
INSERT INTO "communes" VALUES('68','Grussenheim','02',805,767,7.53,'5723','53496',176,185);
INSERT INTO "communes" VALUES('68','Niederhergheim','06',969,920,12.51,'5625','53316',194,202);
INSERT INTO "communes" VALUES('68','Jettingen','01',506,502,6.3,'5594','52887',338,431);
INSERT INTO "communes" VALUES('68','Artzenheim','02',810,618,9.69,'5783','53462',177,186);
INSERT INTO "communes" VALUES('68','Oberlarg','07',152,143,8.21,'5441','52731',482,740);
INSERT INTO "communes" VALUES('68','Waldighofen','10',1493,1178,4.14,'5533','52834',342,446);
INSERT INTO "communes" VALUES('68','Soultzbach-les-Bains','18',673,604,7.06,'5408','53375',306,899);
INSERT INTO "communes" VALUES('68','Hattstatt','21',819,784,5.98,'5515','53346',195,810);
INSERT INTO "communes" VALUES('68','Holtzwihr','02',1353,1063,6.45,'5649','53458',180,186);
INSERT INTO "communes" VALUES('68','Orschwihr','08',1009,920,7.09,'5439','53261',225,573);
INSERT INTO "communes" VALUES('68','Walheim','01',927,746,4.83,'5477','52936',267,393);
INSERT INTO "communes" VALUES('68','Appenwihr','19',578,443,7.72,'5670','53363',191,197);
INSERT INTO "communes" VALUES('68','Wattwiller','03',1741,1593,13.61,'5382','53152',266,1121);
INSERT INTO "communes" VALUES('68','Uffholtz','03',1592,1385,11.91,'5380','53134',267,1120);
INSERT INTO "communes" VALUES('68','Cernay','03',11268,10443,18.04,'5377','53118',277,358);
INSERT INTO "communes" VALUES('68','Wolfersdorf','05',374,352,3.66,'5308','52934',287,348);
INSERT INTO "communes" VALUES('68','Urschenheim','02',696,639,6.42,'5722','53429',185,190);
INSERT INTO "communes" VALUES('68','Hunawihr','20',597,511,4.81,'5527','53534',228,686);
INSERT INTO "communes" VALUES('68','Katzenthal','12',549,497,3.5,'5495','53453',210,660);
INSERT INTO "communes" VALUES('68','Saint-Hippolyte','20',1043,1060,17.86,'5594','53591',170,731);
INSERT INTO "communes" VALUES('68','Raedersdorf','07',508,505,7.39,'5589','52750',419,784);
INSERT INTO "communes" VALUES('68','Merxheim','24',1286,1147,9.1,'5506','53234',208,229);
INSERT INTO "communes" VALUES('68','Kaysersberg','12',2713,2678,24.82,'5471','53488',236,924);
INSERT INTO "communes" VALUES('68','Magstatt-le-Bas','13',473,414,3.35,'5636','52932',287,395);
INSERT INTO "communes" VALUES('68','Flaxlanden','17',1462,1254,4.33,'5532','52995',257,403);
INSERT INTO "communes" VALUES('68','Heidwiller','01',623,602,4.48,'5452','52957',259,360);
INSERT INTO "communes" VALUES('68','Soppe-le-Haut','15',564,517,7.37,'5249','53036',317,403);
INSERT INTO "communes" VALUES('68','Steinbrunn-le-Haut','13',587,540,9.21,'5569','52957',267,404);
INSERT INTO "communes" VALUES('68','Wentzwiller','11',721,554,4.71,'5714','52834',328,418);
INSERT INTO "communes" VALUES('68','Sainte-Croix-aux-Mines','23',1997,2032,27.85,'5432','53625',290,980);
INSERT INTO "communes" VALUES('68','Luttenbach-près-Munster','18',765,820,7.86,'5314','53369',388,1265);
INSERT INTO "communes" VALUES('68','Sewen','15',533,530,21.5,'5076','53119',483,1242);
INSERT INTO "communes" VALUES('68','Rodern','20',331,313,7.05,'5574','53583',228,760);
INSERT INTO "communes" VALUES('68','Soppe-le-Bas','15',704,589,5.68,'5281','53019',297,380);
INSERT INTO "communes" VALUES('68','Hagenthal-le-Bas','11',1151,1000,6.2,'5712','52805',319,481);
INSERT INTO "communes" VALUES('68','Durrenentzen','02',947,689,6.22,'5740','53436',180,190);
INSERT INTO "communes" VALUES('68','Baltzenheim','02',583,496,6.52,'5799','53438',180,186);
INSERT INTO "communes" VALUES('68','Algolsheim','19',1178,981,7.22,'5803','53340',190,199);
INSERT INTO "communes" VALUES('68','Folgensbourg','11',833,633,6.72,'5676','52834',365,499);
INSERT INTO "communes" VALUES('68','Ammerschwihr','12',1864,1890,19.66,'5495','53473',193,882);
INSERT INTO "communes" VALUES('68','Muhlbach-sur-Munster','18',755,724,7.88,'5274','53362',436,1283);
INSERT INTO "communes" VALUES('68','Mitzach','22',426,419,6.41,'5186','53189',410,1050);
INSERT INTO "communes" VALUES('68','Mollau','22',421,419,8.82,'5151','53190',452,1195);
INSERT INTO "communes" VALUES('68','Thann','25',7929,8028,12.51,'5297','53118',328,922);
INSERT INTO "communes" VALUES('68','Ribeauville','20',4843,4944,32.21,'5535','53550',188,989);
INSERT INTO "communes" VALUES('68','Zimmersheim','09',1135,1023,3.15,'5613','53022',255,360);
INSERT INTO "communes" VALUES('68','Mittelwihr','12',802,823,2.42,'5536','53501',196,403);
INSERT INTO "communes" VALUES('68','Durmenach','07',955,883,5.76,'5557','52808',360,461);
INSERT INTO "communes" VALUES('68','Rorschwihr','20',401,366,2.47,'5585','53575',190,362);
INSERT INTO "communes" VALUES('68','Bisel','10',574,601,8.1,'5424','52817',386,431);
INSERT INTO "communes" VALUES('68','Sierentz','13',3009,2441,13.22,'5688','52951',244,301);
INSERT INTO "communes" VALUES('68','Vœgtlinshoffen','26',538,478,3.99,'5494','53356',267,899);
INSERT INTO "communes" VALUES('68','Ueberstrass','10',357,312,5.12,'5357','52836',354,427);
INSERT INTO "communes" VALUES('68','Mittlach','18',332,290,11.39,'5215','53338',515,1320);
INSERT INTO "communes" VALUES('68','Metzeral','18',1133,1066,30.43,'5260','53347',456,1345);
INSERT INTO "communes" VALUES('68','Dessenheim','19',1229,1052,19.16,'5724','53306',197,207);
INSERT INTO "communes" VALUES('68','Meyenheim','06',1243,957,12.78,'5577','53237',206,213);
INSERT INTO "communes" VALUES('68','Huningue','11',6664,6092,2.86,'5829','52879',242,259);
INSERT INTO "communes" VALUES('68','Réguisheim','06',1792,1666,23.87,'5577','53219',209,219);
INSERT INTO "communes" VALUES('68','Kirchberg','15',826,843,6.74,'5128','53107',433,1070);
INSERT INTO "communes" VALUES('68','Rumersheim-le-Haut','06',1111,948,16.67,'5762','53169',210,224);
INSERT INTO "communes" VALUES('68','Walbach','26',872,930,5.45,'5429','53403',274,890);
INSERT INTO "communes" VALUES('68','Bouxwiller','07',456,415,6.47,'5566','52783',375,639);
INSERT INTO "communes" VALUES('68','Rantzwiller','13',802,691,5.47,'5600','52946',292,358);
INSERT INTO "communes" VALUES('68','Obermorschwihr','26',365,358,1.59,'5512','53354',220,350);
INSERT INTO "communes" VALUES('68','Gildwiller','05',292,278,5.02,'5330','52988',288,357);
INSERT INTO "communes" VALUES('68','Vogelgrun','19',635,519,5.03,'5816','53347',189,195);
INSERT INTO "communes" VALUES('68','Seppois-le-Bas','10',1188,948,6.73,'5375','52818',365,440);
INSERT INTO "communes" VALUES('68','Beblenheim','12',973,943,5.61,'5545','53509',180,274);
INSERT INTO "communes" VALUES('68','Ensisheim','06',7247,6635,36.59,'5573','53184',213,231);
INSERT INTO "communes" VALUES('68','Pfaffenheim','21',1327,1185,14.57,'5503','53316',196,843);
INSERT INTO "communes" VALUES('68','Malmerspach','22',522,557,2.66,'5220','53182',386,868);
INSERT INTO "communes" VALUES('68','Geishouse','22',486,473,7.28,'5248','53204',510,1422);
INSERT INTO "communes" VALUES('68','Hecken','05',433,401,2.45,'5320','52991',293,320);
INSERT INTO "communes" VALUES('68','Lautenbachzell','08',977,934,23.14,'5347','53267',368,1420);
INSERT INTO "communes" VALUES('68','Liebsdorf','07',337,289,4.22,'5438','52755',420,683);
INSERT INTO "communes" VALUES('68','Wihr-au-Val','18',1264,1232,12.54,'5410','53393',288,960);
INSERT INTO "communes" VALUES('68','Burnhaupt-le-Bas','03',1794,1187,11.77,'5361','53020',279,330);
INSERT INTO "communes" VALUES('68','Ungersheim','24',2025,1632,13.51,'5520','53199',212,241);
INSERT INTO "communes" VALUES('68','Oberhergheim','06',1176,1104,19.86,'5621','53296',197,207);
INSERT INTO "communes" VALUES('68','Soultz-Haut-Rhin','24',7267,6639,29.56,'5436','53207',239,1421);
INSERT INTO "communes" VALUES('68','Orbey','14',3626,3548,46.02,'5360','53474',397,1301);
INSERT INTO "communes" VALUES('68','Niederbruck','15',453,369,3.78,'5145','53094',420,950);
INSERT INTO "communes" VALUES('68','Bischwihr','02',974,816,3.23,'5667','53440',182,187);
INSERT INTO "communes" VALUES('68','Petit-Landau','31',736,592,17.51,'5759','53034',223,242);
INSERT INTO "communes" VALUES('68','Sainte-Croix-en-Plaine','28',2730,2121,25.77,'5609','53343',190,202);
INSERT INTO "communes" VALUES('68','Bettlach','07',329,288,4.09,'5642','52788',399,530);
INSERT INTO "communes" VALUES('68','Weckolsheim','19',614,362,6.93,'5751','53336',194,201);
INSERT INTO "communes" VALUES('68','Ottmarsheim','31',1899,1924,25.67,'5748','53097',217,235);
INSERT INTO "communes" VALUES('68','Obersaasheim','19',1021,807,12.88,'5800','53322',192,202);
INSERT INTO "communes" VALUES('68','Roderen','25',895,863,7.16,'5284','53089',327,514);
INSERT INTO "communes" VALUES('68','Gunsbach','18',957,789,6.18,'5377','53386',326,985);
INSERT INTO "communes" VALUES('68','Guémar','20',1382,1312,18.22,'5622','53543',172,193);
INSERT INTO "communes" VALUES('68','Rimbachzell','08',215,220,1.79,'5377','53223',356,860);
INSERT INTO "communes" VALUES('68','Rimbach-près-Guebwiller','08',237,244,4.84,'5354','53227',357,1242);
INSERT INTO "communes" VALUES('68','Falkwiller','05',187,178,3.55,'5330','52979',286,351);
INSERT INTO "communes" VALUES('68','Mertzen','10',212,189,2.01,'5326','52878',329,400);
INSERT INTO "communes" VALUES('68','Riedisheim','09',12301,12101,6.96,'5589','53054',232,345);
INSERT INTO "communes" VALUES('68','Buhl','08',3275,3079,8.8,'5389','53253',313,842);
INSERT INTO "communes" VALUES('68','Heimersdorf','10',655,627,7.59,'5450','52858',335,416);
INSERT INTO "communes" VALUES('68','Hirtzfelden','06',1152,980,22.1,'5676','53235',206,217);
INSERT INTO "communes" VALUES('68','Franken','01',360,288,6.22,'5576','52892',326,432);
INSERT INTO "communes" VALUES('68','Fessenheim','06',2276,2097,18.4,'5777','53239',201,215);
INSERT INTO "communes" VALUES('68','Storckensohn','22',238,228,5.1,'5134','53199',470,1220);
INSERT INTO "communes" VALUES('68','Masevaux','15',3300,3326,23.21,'5177','53082',395,1190);
INSERT INTO "communes" VALUES('68','Emlingen','01',268,271,2.42,'5505','52915',286,376);
INSERT INTO "communes" VALUES('68','Frœningen','01',681,606,4.44,'5481','52990',252,305);
INSERT INTO "communes" VALUES('68','Neuwiller','11',527,506,3.72,'5755','52805',327,421);
INSERT INTO "communes" VALUES('68','Bernwiller','03',642,598,7.6,'5393','52990',277,307);
INSERT INTO "communes" VALUES('68','Lièpvre','23',1756,1633,12.55,'5495','53636',234,930);
INSERT INTO "communes" VALUES('68','Lauw','15',962,922,4.61,'5203','53062',370,720);
INSERT INTO "communes" VALUES('68','Dolleren','15',451,397,8.37,'5106','53118',458,1075);
INSERT INTO "communes" VALUES('68','Saint-Bernard','01',503,472,6.04,'5406','52968',264,344);
INSERT INTO "communes" VALUES('68','Volgelsheim','19',2401,2379,8.64,'5790','53351',188,198);
INSERT INTO "communes" VALUES('68','Roppentzwiller','07',721,665,4.15,'5550','52823',350,446);
INSERT INTO "communes" VALUES('68','Horbourg-Wihr','02',4931,5059,9.42,'5620','53422',182,190);
INSERT INTO "communes" VALUES('68','Leymen','11',1136,1059,11.64,'5719','52772',315,584);
INSERT INTO "communes" VALUES('68','Labaroche','14',2286,1986,13.44,'5396','53456',420,980);
INSERT INTO "communes" VALUES('68','Bellemagny','05',191,177,2.1,'5256','52989',320,397);
INSERT INTO "communes" VALUES('68','Griesbach-au-Val','18',748,736,4.73,'5374','53373',331,821);
INSERT INTO "communes" VALUES('68','Brunstatt','17',6125,5530,9.66,'5540','53026',240,353);
INSERT INTO "communes" VALUES('68','Eschbach-au-Val','18',378,372,4.84,'5343','53368',389,905);
INSERT INTO "communes" VALUES('68','Bruebach','17',1031,953,7.01,'5581','53000',276,383);
INSERT INTO "communes" VALUES('68','Heiteren','19',945,785,22.4,'5783','53299',196,209);
INSERT INTO "communes" VALUES('68','Uffheim','13',880,861,4.36,'5674','52944',261,319);
INSERT INTO "communes" VALUES('68','Bergholtzzell','08',450,336,2.29,'5440','53255',238,573);
INSERT INTO "communes" VALUES('68','Geispitzen','13',427,418,6.02,'5649','52964',246,333);
INSERT INTO "communes" VALUES('68','Wuenheim','24',798,850,6.17,'5414','53192',257,956);
INSERT INTO "communes" VALUES('68','Pfastatt','27',8957,7942,5.24,'5517','53077',238,265);
INSERT INTO "communes" VALUES('68','Sausheim','31',5471,5470,16.91,'5596','53096',226,236);
INSERT INTO "communes" VALUES('68','Largitzen','10',300,276,5.6,'5389','52847',366,431);
INSERT INTO "communes" VALUES('68','Luemschwiller','01',697,682,7.27,'5503','52950',283,408);
INSERT INTO "communes" VALUES('68','Kœtzingue','13',569,490,5.14,'5617','52945',281,370);
INSERT INTO "communes" VALUES('68','Galfingue','17',801,559,5.36,'5430','53006',268,306);
INSERT INTO "communes" VALUES('68','Michelbach-le-Bas','11',704,725,4.94,'5698','52881',284,346);
INSERT INTO "communes" VALUES('68','Stosswihr','18',1409,1303,26.4,'5297','53393',417,1363);
INSERT INTO "communes" VALUES('68','Kunheim','02',1763,1571,11.75,'5775','53418',181,190);
INSERT INTO "communes" VALUES('68','Obermorschwiller','01',426,424,6.05,'5527','52939',284,368);
INSERT INTO "communes" VALUES('68','Bennwihr','12',1281,1119,6.59,'5543','53493',183,354);
INSERT INTO "communes" VALUES('68','Feldkirch','24',954,910,4.21,'5484','53182',222,249);
INSERT INTO "communes" VALUES('68','Guevenatten','05',125,144,2.15,'5270','52980',305,371);
INSERT INTO "communes" VALUES('68','Grentzingen','10',537,529,5.18,'5513','52850',334,426);
INSERT INTO "communes" VALUES('68','Balgau','19',915,708,9.49,'5782','53253',198,212);
INSERT INTO "communes" VALUES('68','Werentzhouse','07',575,555,4.5,'5579','52797',367,471);
INSERT INTO "communes" VALUES('68','Niederentzen','06',444,322,8.81,'5605','53275',201,209);
INSERT INTO "communes" VALUES('68','Bréchaumont','05',414,345,6.51,'5260','52966',307,396);
INSERT INTO "communes" VALUES('68','Richwiller','27',3458,3324,5.55,'5493','53088',239,259);
INSERT INTO "communes" VALUES('68','Montreux-Jeune','05',337,272,3.36,'5217','52901',338,377);
INSERT INTO "communes" VALUES('68','Rammersmatt','25',226,180,5.47,'5259','53100',414,883);
INSERT INTO "communes" VALUES('68','Oderen','22',1306,1318,19.12,'5154','53233',445,1264);
INSERT INTO "communes" VALUES('68','Rixheim','09',12996,12596,19.53,'5631','53054',232,366);
INSERT INTO "communes" VALUES('68','Burnhaupt-le-Haut','03',1626,1503,12.49,'5343','53034',290,338);
INSERT INTO "communes" VALUES('68','Ammerzwiller','05',357,314,3.05,'5367','52988',286,307);
INSERT INTO "communes" VALUES('68','Berentzwiller','01',325,313,6.08,'5608','52873',355,439);
INSERT INTO "communes" VALUES('68','Schwoben','01',259,255,2.38,'5519','52907',296,403);
INSERT INTO "communes" VALUES('68','Hartmannswiller','24',663,523,4.78,'5421','53180',244,944);
INSERT INTO "communes" VALUES('68','Pulversheim','06',2895,2267,8.54,'5521','53152',222,243);
INSERT INTO "communes" VALUES('68','Linthal','08',634,575,20.84,'5326','53274',429,1320);
INSERT INTO "communes" VALUES('68','Wickerschwihr','02',779,610,2.25,'5666','53453',180,185);
INSERT INTO "communes" VALUES('68','Dannemarie','05',2323,1986,4.35,'5314','52922',296,354);
INSERT INTO "communes" VALUES('68','Lutterbach','27',6126,5559,8.56,'5493','53066',244,272);
INSERT INTO "communes" VALUES('68','Sentheim','15',1596,1376,6.18,'5238','53061',343,456);
INSERT INTO "communes" VALUES('68','Hagenbach','05',701,594,4.81,'5355','52945',279,343);
INSERT INTO "communes" VALUES('68','Hohrod','18',325,320,5.49,'5320','53394',391,1040);
INSERT INTO "communes" VALUES('68','Baldersheim','31',2565,2205,12.76,'5604','53111',225,233);
INSERT INTO "communes" VALUES('68','Eguisheim','26',1683,1549,14.13,'5521','53381',191,764);
INSERT INTO "communes" VALUES('68','Murbach','08',140,136,6.66,'5356','53249',396,1420);
INSERT INTO "communes" VALUES('68','Guebwiller','08',11461,11527,9.68,'5415','53231',254,620);
INSERT INTO "communes" VALUES('68','Roggenhouse','06',482,395,6.45,'5704','53211',213,219);
INSERT INTO "communes" VALUES('68','Muntzenheim','02',1110,912,6.48,'5708','53447',181,187);
INSERT INTO "communes" VALUES('68','Brinckheim','13',348,328,3.41,'5692','52919',277,322);
INSERT INTO "communes" VALUES('68','Bergholtz','08',1081,1010,4.24,'5455','53241',222,574);
INSERT INTO "communes" VALUES('68','Wegscheid','15',339,304,10.06,'5135','53110',444,1190);
INSERT INTO "communes" VALUES('68','Widensolen','02',1237,1051,10.67,'5715','53403',184,194);
INSERT INTO "communes" VALUES('68','Seppois-le-Haut','10',506,507,6.27,'5386','52815',379,432);
INSERT INTO "communes" VALUES('68','Mooslargue','07',492,291,5.63,'5424','52789',396,462);
INSERT INTO "communes" VALUES('68','Aspach','01',1144,981,4.2,'5441','52937',293,386);
INSERT INTO "communes" VALUES('68','Fislis','07',431,386,7.53,'5605','52783',377,532);
INSERT INTO "communes" VALUES('68','Rombach-le-Franc','23',855,821,17.87,'5471','53649',290,850);
INSERT INTO "communes" VALUES('68','Fréland','14',1409,1293,19.74,'5397','53523',327,1221);
INSERT INTO "communes" VALUES('68','Mulhouse','99',109588,110141,22.18,'5558','53054',231,336);
INSERT INTO "communes" VALUES('68','Waltenheim','13',562,505,2.32,'5654','52952',268,313);
INSERT INTO "communes" VALUES('68','Kruth','22',1007,1009,22.06,'5141','53256',468,1263);
INSERT INTO "communes" VALUES('68','Kientzheim','12',759,827,4.83,'5499','53485',220,662);
INSERT INTO "communes" VALUES('69','Oullins','40',25152,25186,4.4,'2745','50793',163,253);
INSERT INTO "communes" VALUES('69','Saint-Maurice-sur-Dargoire','24',2160,2102,16.27,'2550','50647',204,535);
INSERT INTO "communes" VALUES('69','Grézieu-la-Varenne','31',5018,4134,7.45,'2615','50830',240,589);
INSERT INTO "communes" VALUES('69','Thel','09',310,292,10.27,'2267','51239',547,905);
INSERT INTO "communes" VALUES('69','Mardore','30',518,467,13.47,'2224','51189',417,804);
INSERT INTO "communes" VALUES('69','Cailloux-sur-Fontaines','25',2480,2170,8.69,'2820','50947',218,313);
INSERT INTO "communes" VALUES('69','Saint-Jean-d''Ardières','05',3347,2274,12.44,'2668','51251',172,245);
INSERT INTO "communes" VALUES('69','Saint-Clément-sur-Valsonne','29',746,548,14.51,'2353','51026',319,710);
INSERT INTO "communes" VALUES('69','Sathonay-Village','39',2148,1692,5.15,'2824','50926',198,329);
INSERT INTO "communes" VALUES('69','Albigny-sur-Saône','25',2743,2680,2.57,'2772','50961',167,411);
INSERT INTO "communes" VALUES('69','Soucieu-en-Jarrest','24',3769,3218,14.2,'2630','50753',224,540);
INSERT INTO "communes" VALUES('69','Marcilly-d''Azergues','10',887,829,4.18,'2659','50969',180,305);
INSERT INTO "communes" VALUES('69','Marennes','38',1603,1478,12.44,'2862','50690',183,366);
INSERT INTO "communes" VALUES('69','Neuville-sur-Saône','25',7275,7067,5.47,'2783','50974',168,310);
INSERT INTO "communes" VALUES('69','Éveux','03',1107,793,3.32,'2540','50918',221,426);
INSERT INTO "communes" VALUES('69','Arnas','53',3300,3105,17.52,'2635','51137',167,264);
INSERT INTO "communes" VALUES('69','Thizy','30',2393,2482,1.94,'2194','51147',408,627);
INSERT INTO "communes" VALUES('69','Saint-Didier-sous-Riverie','24',1178,1148,13.9,'2524','50663',340,750);
INSERT INTO "communes" VALUES('69','Affoux','29',331,248,10.65,'2296','50939',498,960);
INSERT INTO "communes" VALUES('69','Condrieu','07',3831,3424,9.21,'2701','50514',146,460);
INSERT INTO "communes" VALUES('69','Olmes','29',786,663,2.78,'2422','50981',319,399);
INSERT INTO "communes" VALUES('69','Grigny','08',8943,7865,5.75,'2726','50676',152,245);
INSERT INTO "communes" VALUES('69','Chevinay','03',543,473,8.82,'2523','50856',245,760);
INSERT INTO "communes" VALUES('69','Souzy','27',707,578,5.09,'2347','50784',422,619);
INSERT INTO "communes" VALUES('69','Saint-Appolinaire','29',164,110,5.73,'2319','51085',573,889);
INSERT INTO "communes" VALUES('69','Collonges-au-Mont-d''Or','10',3790,3415,3.78,'2782','50916',165,360);
INSERT INTO "communes" VALUES('69','Lissieu','10',3065,3098,5.66,'2673','50961',199,367);
INSERT INTO "communes" VALUES('69','Vénissieux','97',59855,56014,15.33,'2833','50775',171,229);
INSERT INTO "communes" VALUES('69','Cours-la-Ville','30',3857,4244,19.48,'2205','51222',437,860);
INSERT INTO "communes" VALUES('69','Saint-Martin-en-Haut','28',3849,3433,38.64,'2472','50733',453,911);
INSERT INTO "communes" VALUES('69','Propières','23',470,419,16,'2334','51324',533,972);
INSERT INTO "communes" VALUES('69','Charbonnières-les-Bains','31',4698,4370,4.13,'2677','50867',211,295);
INSERT INTO "communes" VALUES('69','Saint-Pierre-la-Palud','03',2474,1984,7.53,'2528','50879',259,747);
INSERT INTO "communes" VALUES('69','Sainte-Consorce','31',1872,1604,5.81,'2615','50862',279,431);
INSERT INTO "communes" VALUES('69','Halles','27',462,331,3.09,'2329','50799',468,682);
INSERT INTO "communes" VALUES('69','Saint-Étienne-la-Varenne','05',693,607,6.96,'2549','51196',278,620);
INSERT INTO "communes" VALUES('69','Jonage','37',5768,5364,12.11,'3011','50885',175,225);
INSERT INTO "communes" VALUES('69','Villefranche-sur-Saône','32',35326,30630,9.48,'2648','51100',167,220);
INSERT INTO "communes" VALUES('69','Tassin-la-Demi-Lune','51',19511,15969,7.79,'2715','50848',186,309);
INSERT INTO "communes" VALUES('69','Saint-Jean-la-Bussière','30',1102,862,15.48,'2208','51112',373,662);
INSERT INTO "communes" VALUES('69','Azolette','23',125,115,4.18,'2313','51326',493,710);
INSERT INTO "communes" VALUES('69','Lucenay','02',1752,1390,6.27,'2629','51014',173,360);
INSERT INTO "communes" VALUES('69','Pusignan','37',3565,3098,13.04,'3034','50840',199,271);
INSERT INTO "communes" VALUES('69','Champagne-au-Mont-d''Or','52',5076,4966,2.59,'2727','50883',200,305);
INSERT INTO "communes" VALUES('69','Saint-Igny-de-Vers','23',597,554,27.35,'2333','51379',407,943);
INSERT INTO "communes" VALUES('69','Montrottier','27',1347,1361,23.1,'2367','50878',460,851);
INSERT INTO "communes" VALUES('69','Mions','38',11793,10278,11.57,'2907','50737',197,272);
INSERT INTO "communes" VALUES('69','Sainte-Colombe','07',1897,1798,1.6,'2811','50584',150,308);
INSERT INTO "communes" VALUES('69','Chambost-Longessaigne','27',826,714,15.44,'2259','50859',477,681);
INSERT INTO "communes" VALUES('69','Ardillats','04',574,485,23.1,'2449','51310',334,1004);
INSERT INTO "communes" VALUES('69','Bibost','03',496,395,5.23,'2455','50886',279,584);
INSERT INTO "communes" VALUES('69','Ville-sur-Jarnioux','06',784,638,10.11,'2524','51069',305,773);
INSERT INTO "communes" VALUES('69','Colombier-Saugnieu','37',2449,2079,27.62,'3084','50790',200,277);
INSERT INTO "communes" VALUES('69','Saint-Forgeux','29',1422,1351,22.27,'2376','50954',340,800);
INSERT INTO "communes" VALUES('69','Lantignié','04',811,626,7.4,'2541','51275',256,841);
INSERT INTO "communes" VALUES('69','Saint-Nizier-d''Azergues','09',698,638,24.23,'2366','51208',393,903);
INSERT INTO "communes" VALUES('69','Haies','07',751,608,15.97,'2679','50560',307,564);
INSERT INTO "communes" VALUES('69','Rontalon','24',1148,898,12.67,'2550','50734',377,820);
INSERT INTO "communes" VALUES('69','Corbas','49',10210,9263,11.88,'2850','50742',188,228);
INSERT INTO "communes" VALUES('69','Saint-Pierre-de-Chandieu','38',4547,4128,29.28,'2976','50718',215,369);
INSERT INTO "communes" VALUES('69','Gleizé','53',7639,8056,10.46,'2623','51099',181,292);
INSERT INTO "communes" VALUES('69','Caluire-et-Cuire','43',41209,41248,10.45,'2789','50883',165,275);
INSERT INTO "communes" VALUES('69','Cercié','05',1152,855,4.94,'2593','51244',199,293);
INSERT INTO "communes" VALUES('69','Brullioles','27',767,574,12.25,'2403','50846',380,817);
INSERT INTO "communes" VALUES('69','Pommiers','02',2254,1806,7.76,'2618','51062',169,352);
INSERT INTO "communes" VALUES('69','Valsonne','29',851,714,18.25,'2326','51052',413,866);
INSERT INTO "communes" VALUES('69','<NAME>-de-Mardore','30',212,157,5.79,'2243','51169',498,745);
INSERT INTO "communes" VALUES('69','Marcy','02',634,574,3.33,'2606','51017',300,409);
INSERT INTO "communes" VALUES('69','Charly','48',4421,3885,5.09,'2731','50721',205,305);
INSERT INTO "communes" VALUES('69','Trades','23',117,101,7.93,'2472','51420',330,642);
INSERT INTO "communes" VALUES('69','Saint-Mamert','23',61,59,3.21,'2495','51390',393,676);
INSERT INTO "communes" VALUES('69','Ouroux','23',339,326,21.06,'2509','51368',406,806);
INSERT INTO "communes" VALUES('69','Bourg-de-Thizy','30',2627,2671,14.49,'2180','51149',365,570);
INSERT INTO "communes" VALUES('69','Vaugneray','31',4897,4172,22.38,'2578','50820',260,804);
INSERT INTO "communes" VALUES('69','Jarnioux','06',591,536,4.2,'2545','51072',259,393);
INSERT INTO "communes" VALUES('69','Irigny','48',8320,8336,8.84,'2762','50748',155,271);
INSERT INTO "communes" VALUES('69','Joux','29',662,601,25.18,'2262','50986',410,892);
INSERT INTO "communes" VALUES('69','Chaponost','26',7978,7838,16.32,'2673','50789',180,336);
INSERT INTO "communes" VALUES('69','Dareizé','29',449,368,6.71,'2394','51003',290,683);
INSERT INTO "communes" VALUES('69','Saint-Georges-de-Reneins','05',4227,3848,27.49,'2650','51180',167,244);
INSERT INTO "communes" VALUES('69','Lentilly','03',5355,4714,18.39,'2585','50910',240,565);
INSERT INTO "communes" VALUES('69','Courzieu','31',1161,1131,27.04,'2482','50825',269,908);
INSERT INTO "communes" VALUES('69','Saint-Fons','49',16666,15669,6.06,'2796','50788',155,220);
INSERT INTO "communes" VALUES('69','Toussieu','38',2389,2018,5.02,'2943','50727',225,279);
INSERT INTO "communes" VALUES('69','Avenas','04',131,106,9.49,'2521','51328',497,887);
INSERT INTO "communes" VALUES('69','Chaponnay','38',3695,3313,18.89,'2888','50697',192,367);
INSERT INTO "communes" VALUES('69','Sainte-Paule','06',308,244,7.5,'2476','51068',299,773);
INSERT INTO "communes" VALUES('69','Liergues','02',1869,1393,5.32,'2586','51077',201,308);
INSERT INTO "communes" VALUES('69','Lancié','05',801,673,6.6,'2642','51301',172,258);
INSERT INTO "communes" VALUES('69','Saint-Genis-Laval','26',20357,19207,12.92,'2729','50773',171,302);
INSERT INTO "communes" VALUES('69','Rivolet','53',558,488,16.3,'2517','51118',296,866);
INSERT INTO "communes" VALUES('69','Amplepuis','01',5205,4947,38.44,'2215','51081',336,868);
INSERT INTO "communes" VALUES('69','Saint-Symphorien-sur-Coise','28',3465,3066,4.07,'2356','50702',480,629);
INSERT INTO "communes" VALUES('69','Sauvages','29',631,575,12.55,'2266','51028',494,854);
INSERT INTO "communes" VALUES('69','Le Perréon','53',1395,1020,14.58,'2515','51181',253,783);
INSERT INTO "communes" VALUES('69','Saint-Genis-les-Ollières','31',4640,4739,3.74,'2655','50841',209,319);
INSERT INTO "communes" VALUES('69','Saint-Symphorien-d''Ozon','38',5308,5049,13.37,'2800','50703',168,308);
INSERT INTO "communes" VALUES('69','Haute-Rivoire','27',1359,1184,20.29,'2289','50795',437,667);
INSERT INTO "communes" VALUES('69','Nuelles','03',647,503,2.02,'2543','50942',211,299);
INSERT INTO "communes" VALUES('69','Fontaines-Saint-Martin','25',2929,2723,2.74,'2796','50938',182,288);
INSERT INTO "communes" VALUES('69','Lyon','99',484344,445274,47.87,'2783','50843',162,312);
INSERT INTO "communes" VALUES('69','Saint-Laurent-d''Oingt','06',811,725,9.05,'2474','51049',252,548);
INSERT INTO "communes" VALUES('69','<NAME>','06',454,361,5.63,'2501','50994',225,391);
INSERT INTO "communes" VALUES('69','Oingt','06',618,522,3.92,'2495','51053',358,652);
INSERT INTO "communes" VALUES('69','Chazay-d''Azergues','02',3911,3903,5.94,'2640','50973',179,311);
INSERT INTO "communes" VALUES('69','Poule-les-Écharmeaux','09',1081,834,31.23,'2356','51277',450,962);
INSERT INTO "communes" VALUES('69','Saint-Priest','45',41964,40944,29.71,'2897','50774',189,263);
INSERT INTO "communes" VALUES('69','Dommartin','03',2737,2288,7.22,'2639','50928',235,350);
INSERT INTO "communes" VALUES('69','Saint-Vérand','06',1094,993,17.58,'2434','51021',258,686);
INSERT INTO "communes" VALUES('69','Charentay','05',1128,990,13.78,'2603','51210',175,272);
INSERT INTO "communes" VALUES('69','Létra','06',945,758,14.64,'2431','51069',275,727);
INSERT INTO "communes" VALUES('69','Frontenas','06',803,815,3.42,'2535','51028',260,430);
INSERT INTO "communes" VALUES('69','Brindas','31',5519,4558,11.27,'2619','50801',232,371);
INSERT INTO "communes" VALUES('69','Légny','06',597,447,3.97,'2497','51009',233,347);
INSERT INTO "communes" VALUES('69','Bully','03',2069,1737,12.59,'2496','50946',230,427);
INSERT INTO "communes" VALUES('69','Claveisolles','09',639,553,28.33,'2397','51222',394,886);
INSERT INTO "communes" VALUES('69','Simandres','38',1635,1259,10.45,'2818','50688',178,377);
INSERT INTO "communes" VALUES('69','Saint-Andéol-le-Château','08',1564,1382,9.95,'2620','50651',189,363);
INSERT INTO "communes" VALUES('69','Saint-Cyr-sur-le-Rhône','07',1224,959,6.02,'2795','50573',152,528);
INSERT INTO "communes" VALUES('69','Genas','44',12126,11133,23.84,'2962','50813',208,263);
INSERT INTO "communes" VALUES('69','Vaulx-en-Velin','46',41421,39128,20.95,'2876','50874',165,193);
INSERT INTO "communes" VALUES('69','Montagny','08',2539,2324,8.3,'2679','50698',163,338);
INSERT INTO "communes" VALUES('69','Pomeys','28',1023,824,13.1,'2341','50722',502,764);
INSERT INTO "communes" VALUES('69','Riverie','24',284,260,0.42,'2502','50666',613,731);
INSERT INTO "communes" VALUES('69','Taponas','05',902,572,7.64,'2700','51246',168,189);
INSERT INTO "communes" VALUES('69','Limas','53',4435,4155,5.52,'2632','51084',168,332);
INSERT INTO "communes" VALUES('69','Saint-Jean-de-Touslas','08',831,614,5.57,'2583','50642',187,364);
INSERT INTO "communes" VALUES('69','Saint-Bonnet-des-Bruyères','23',374,384,21.2,'2370','51412',413,801);
INSERT INTO "communes" VALUES('69','Civrieux-d''Azergues','10',1456,1304,5.02,'2640','50953',189,303);
INSERT INTO "communes" VALUES('69','Saint-Laurent-de-Chamousset','27',1868,1703,17.25,'2364','50820',384,691);
INSERT INTO "communes" VALUES('69','Communay','38',4006,3877,10.54,'2776','50672',210,359);
INSERT INTO "communes" VALUES('69','Saint-Laurent-de-Vaux','31',256,213,2.64,'2550','50794',370,660);
INSERT INTO "communes" VALUES('69','Thurins','31',2917,2452,19.36,'2560','50758',306,791);
INSERT INTO "communes" VALUES('69','Sarcey','03',891,784,9.99,'2462','50979',257,427);
INSERT INTO "communes" VALUES('69','Couzon-au-Mont-d''Or','25',2527,2612,3.11,'2769','50938',168,498);
INSERT INTO "communes" VALUES('69','Belleville','05',7916,5876,10.42,'2681','51232',169,225);
INSERT INTO "communes" VALUES('69','Pont-Trambouze','30',515,548,4.06,'2198','51192',407,645);
INSERT INTO "communes" VALUES('69','Chassieu','44',9675,9048,11.57,'2922','50827',190,251);
INSERT INTO "communes" VALUES('69','Montmelas-Saint-Sorlin','53',385,367,4.24,'2526','51128',369,732);
INSERT INTO "communes" VALUES('69','Lozanne','02',2427,2161,5.5,'2605','50953',197,320);
INSERT INTO "communes" VALUES('69','Meaux-la-Montagne','01',230,163,9.19,'2313','51161',480,863);
INSERT INTO "communes" VALUES('69','Saint-Cyr-le-Chatoux','53',123,107,6.28,'2466','51141',371,841);
INSERT INTO "communes" VALUES('69','Saint-Clément-de-Vers','23',225,214,8.96,'2296','51363',418,664);
INSERT INTO "communes" VALUES('69','Saint-Marcel-l''Éclairé','29',533,508,11.88,'2331','50972',360,843);
INSERT INTO "communes" VALUES('69','Blacé','53',1405,1206,11,'2564','51146',218,732);
INSERT INTO "communes" VALUES('69','Curis-au-Mont-d''Or','25',1088,893,3.03,'2761','50967',168,440);
INSERT INTO "communes" VALUES('69','Limonest','10',3215,2731,8.39,'2706','50930',275,603);
INSERT INTO "communes" VALUES('69','Grandris','09',1215,1033,15.22,'2376','51153',356,800);
INSERT INTO "communes" VALUES('69','Craponne','31',9558,7997,4.62,'2652','50828',213,305);
INSERT INTO "communes" VALUES('69','Pollionnay','31',2042,1580,15.8,'2583','50850',280,787);
INSERT INTO "communes" VALUES('69','Ranchal','09',320,267,15.14,'2291','51255',574,917);
INSERT INTO "communes" VALUES('69','Saint-Bonnet-de-Mure','37',6466,5605,16.34,'2992','50767',220,287);
INSERT INTO "communes" VALUES('69','Ambérieux','02',572,427,4.55,'2667','51031',167,176);
INSERT INTO "communes" VALUES('69','Lamure-sur-Azergues','09',1048,872,15.61,'2395','51181',351,885);
INSERT INTO "communes" VALUES('69','Charnay','02',1076,963,7.06,'2591','50990',206,446);
INSERT INTO "communes" VALUES('69','Villeurbanne','98',145150,124152,14.52,'2825','50851',165,189);
INSERT INTO "communes" VALUES('69','Fleurieu-sur-Saône','25',1344,1287,2.91,'2789','50957',167,295);
INSERT INTO "communes" VALUES('69','Pierre-Bénite','48',9982,9986,4.48,'2764','50782',155,232);
INSERT INTO "communes" VALUES('69','Fontaines-sur-Saône','25',6306,6725,2.32,'2787','50929',166,270);
INSERT INTO "communes" VALUES('69','Villié-Morgon','04',1926,1614,18.74,'2605','51291',212,689);
INSERT INTO "communes" VALUES('69','Alix','02',692,690,3.61,'2575','51014',258,408);
INSERT INTO "communes" VALUES('69','Vauxrenard','04',321,275,19.19,'2564','51344',294,844);
INSERT INTO "communes" VALUES('69','Sourcieux-les-Mines','03',1908,1761,9.96,'2540','50896',260,660);
INSERT INTO "communes" VALUES('69','<NAME>','03',3709,3406,8.43,'2645','50904',240,352);
INSERT INTO "communes" VALUES('69','Montanay','25',2781,2334,7.16,'2807','50977',202,314);
INSERT INTO "communes" VALUES('69','Francheville','51',12929,11328,8.18,'2697','50818',181,312);
INSERT INTO "communes" VALUES('69','Saint-Bonnet-le-Troncy','09',312,273,15.65,'2323','51206',491,905);
INSERT INTO "communes" VALUES('69','Denicé','53',1316,1256,9.53,'2565','51113',215,393);
INSERT INTO "communes" VALUES('69','Saint-Sorlin','24',671,688,4.7,'2559','50690',398,808);
INSERT INTO "communes" VALUES('69','Messimy','31',3321,2695,11.1,'2597','50776',257,610);
INSERT INTO "communes" VALUES('69','Vourles','26',3101,2747,5.6,'2707','50732',184,286);
INSERT INTO "communes" VALUES('69','Bagnols','06',695,698,7.35,'2523','51019',240,441);
INSERT INTO "communes" VALUES('69','Saint-Just-d''Avray','01',759,632,17.5,'2344','51113',319,890);
INSERT INTO "communes" VALUES('69','Saint-Genis-l''Argentière','27',1045,860,10.65,'2395','50789',330,860);
INSERT INTO "communes" VALUES('69','Brignais','26',11350,11210,10.36,'2686','50749',203,331);
INSERT INTO "communes" VALUES('69','Trèves','07',695,558,7.56,'2599','50599',190,405);
INSERT INTO "communes" VALUES('69','Saint-Étienne-des-Oullières','05',1864,1523,9.66,'2570','51186',204,331);
INSERT INTO "communes" VALUES('69','Saint-Romain-en-Gal','07',1687,1380,13.39,'2806','50592',140,528);
INSERT INTO "communes" VALUES('69','Orliénas','24',2250,1978,10.42,'2646','50732',206,384);
INSERT INTO "communes" VALUES('69','Lacenas','53',896,851,3.36,'2565','51104',229,371);
INSERT INTO "communes" VALUES('69','Morancé','02',2075,1686,9.25,'2627','50998',174,401);
INSERT INTO "communes" VALUES('69','Juliénas','04',838,792,7.56,'2639','51372',217,655);
INSERT INTO "communes" VALUES('69','Duerne','28',770,661,11.41,'2434','50761',516,892);
INSERT INTO "communes" VALUES('69','Marchampt','04',448,364,17.74,'2483','51236',318,883);
INSERT INTO "communes" VALUES('69','Taluyers','24',2006,1870,8.09,'2650','50711',205,359);
INSERT INTO "communes" VALUES('69','Jullié','04',415,385,9.88,'2601','51380',255,704);
INSERT INTO "communes" VALUES('69','Marnand','30',617,573,8.75,'2214','51150',420,720);
INSERT INTO "communes" VALUES('69','Theizé','06',1069,1000,11.89,'2533','51044',237,601);
INSERT INTO "communes" VALUES('69','Longessaigne','27',598,508,11.92,'2319','50880',539,788);
INSERT INTO "communes" VALUES('69','Sathonay-Camp','39',4236,4313,1.96,'2820','50916',209,298);
INSERT INTO "communes" VALUES('69','Poleymieux-au-Mont-d''Or','25',1263,857,6.21,'2737','50951',276,605);
INSERT INTO "communes" VALUES('69','Jons','37',1298,1095,7.41,'3052','50890',175,242);
INSERT INTO "communes" VALUES('69','Ternay','38',5335,4618,8.06,'2749','50669',153,281);
INSERT INTO "communes" VALUES('69','Saint-Romain-au-Mont-d''Or','25',1024,946,2.62,'2762','50931',165,492);
INSERT INTO "communes" VALUES('69','Saint-Romain-en-Gier','08',501,512,4.05,'2634','50628',175,325);
INSERT INTO "communes" VALUES('69','Quincieux','25',3002,2656,17.72,'2711','51015',167,196);
INSERT INTO "communes" VALUES('69','Cenves','23',395,327,26.48,'2570','51409',335,747);
INSERT INTO "communes" VALUES('69','Meyzieu','37',30272,28019,23.01,'2962','50852',172,250);
INSERT INTO "communes" VALUES('69','Savigny','03',1938,1795,21.42,'2486','50907',227,810);
INSERT INTO "communes" VALUES('69','L''Arbresle','03',6036,5785,3.36,'2534','50928',212,304);
INSERT INTO "communes" VALUES('69','Régnié-Durette','04',1044,905,11.72,'2561','51264',228,820);
INSERT INTO "communes" VALUES('69','Marcy-l''Étoile','31',3506,3092,5.37,'2633','50868',233,369);
INSERT INTO "communes" VALUES('69','Chassagne','02',903,770,3.53,'2612','51028',250,402);
INSERT INTO "communes" VALUES('69','Fleurie','04',1244,1190,13.94,'2623','51325',210,524);
INSERT INTO "communes" VALUES('69','Échalas','08',1539,1141,20.95,'2643','50613',199,564);
INSERT INTO "communes" VALUES('69','Saint-Vincent-de-Reins','01',673,650,13.87,'2279','51194',476,903);
INSERT INTO "communes" VALUES('69','Vaux-en-Beaujolais','53',1043,766,17.74,'2506','51174',270,820);
INSERT INTO "communes" VALUES('69','Odenas','05',825,735,9.02,'2567','51209',232,622);
INSERT INTO "communes" VALUES('69','Chambost-Allières','09',784,618,14.14,'2402','51132',320,865);
INSERT INTO "communes" VALUES('69','Chénas','04',530,442,8.18,'2648','51347',215,515);
INSERT INTO "communes" VALUES('69','Saint-Cyr-au-Mont-d''Or','10',5587,5391,7.29,'2757','50905',200,605);
INSERT INTO "communes" VALUES('69','Chamelet','06',676,574,14.43,'2415','51093',291,742);
INSERT INTO "communes" VALUES('69','Bessenay','03',2251,1830,14.01,'2464','50863',254,664);
INSERT INTO "communes" VALUES('69','Ronno','01',598,595,22.92,'2273','51094',418,888);
INSERT INTO "communes" VALUES('69','Saint-Lager','05',930,890,7.74,'2596','51235',189,481);
INSERT INTO "communes" VALUES('69','Anse','02',5927,4742,15.23,'2647','51039',167,358);
INSERT INTO "communes" VALUES('69','Bron','35',38717,37359,10.3,'2863','50821',183,221);
INSERT INTO "communes" VALUES('69','Rillieux-la-Pape','39',29952,28327,14.48,'2845','50912',165,329);
INSERT INTO "communes" VALUES('69','<NAME>','50',6480,6724,1.82,'2751','50809',162,250);
INSERT INTO "communes" VALUES('69','Larajasse','28',1780,1476,33.61,'2405','50682',509,940);
INSERT INTO "communes" VALUES('69','Brussieu','27',1175,750,6.74,'2431','50831',297,599);
INSERT INTO "communes" VALUES('69','Écully','52',17998,17957,8.45,'2712','50860',180,305);
INSERT INTO "communes" VALUES('69','Chaussan','24',972,940,7.89,'2559','50704',378,753);
INSERT INTO "communes" VALUES('69','Saint-Romain-de-Popey','29',1431,1204,17.02,'2438','50941',252,657);
INSERT INTO "communes" VALUES('69','Grézieu-le-Marché','28',753,740,11.49,'2316','50729',438,733);
INSERT INTO "communes" VALUES('69','<NAME>','28',532,381,6.58,'2403','50728',599,784);
INSERT INTO "communes" VALUES('69','Sérézin-du-Rhône','38',2488,2385,3.97,'2764','50699',155,284);
INSERT INTO "communes" VALUES('69','Pouilly-le-Monial','02',910,721,3.81,'2567','51064',235,335);
INSERT INTO "communes" VALUES('69','Ternand','06',724,625,10.75,'2435','51049',269,741);
INSERT INTO "communes" VALUES('69','Sain-Bel','03',2242,1929,3.68,'2513','50900',228,351);
INSERT INTO "communes" VALUES('69','Émeringes','04',218,215,3.01,'2597','51359',249,624);
INSERT INTO "communes" VALUES('69','Dième','29',187,112,9.05,'2366','51068',396,866);
INSERT INTO "communes" VALUES('69','Pontcharra-sur-Turdine','29',2483,2132,4.73,'2393','50971',315,558);
INSERT INTO "communes" VALUES('69','Chères','10',1376,1069,5.46,'2673','50988',176,212);
INSERT INTO "communes" VALUES('69','Décines-Charpieu','44',25562,24175,17.01,'2914','50854',171,240);
INSERT INTO "communes" VALUES('69','Saint-Loup','29',979,865,9.65,'2392','50994',280,688);
INSERT INTO "communes" VALUES('69','Solaize','49',2777,2256,8.1,'2782','50711',155,249);
INSERT INTO "communes" VALUES('69','Saint-Didier-sur-Beaujeu','04',646,401,14.62,'2455','51285',331,940);
INSERT INTO "communes" VALUES('69','Saint-Laurent-d''Agny','24',2111,1768,10.55,'2610','50713',317,537);
INSERT INTO "communes" VALUES('69','Saint-Laurent-de-Mure','37',5100,4697,18.63,'3009','50762',227,313);
INSERT INTO "communes" VALUES('69','Yzeron','31',1036,769,10.75,'2505','50787',448,892);
INSERT INTO "communes" VALUES('69','Vernaison','48',4473,3995,4.03,'2750','50720',155,280);
INSERT INTO "communes" VALUES('69','Sainte-Foy-l''Argentière','27',1246,1166,1.54,'2371','50787',417,480);
INSERT INTO "communes" VALUES('69','Dardilly','52',8454,7582,13.99,'2685','50895',240,375);
INSERT INTO "communes" VALUES('69','Saint-Julien-sur-Bibost','03',535,510,13.28,'2425','50894',380,860);
INSERT INTO "communes" VALUES('69','Saint-Didier-au-Mont-d''Or','10',6419,6165,8.34,'2735','50901',175,587);
INSERT INTO "communes" VALUES('69','Châtillon','06',2190,1878,10.71,'2566','50975',199,334);
INSERT INTO "communes" VALUES('69','Cublize','01',1248,1041,15.56,'2268','51131',430,805);
INSERT INTO "communes" VALUES('69','Coise','28',741,615,9.03,'2374','50682',480,752);
INSERT INTO "communes" VALUES('69','Belmont-d''Azergues','02',638,613,1.51,'2592','50965',200,383);
INSERT INTO "communes" VALUES('69','Genay','25',5014,4661,8.49,'2783','50996',167,301);
INSERT INTO "communes" VALUES('69','Longes','07',869,763,24.06,'2613','50561',210,785);
INSERT INTO "communes" VALUES('69','Loire-sur-Rhône','07',2412,2127,16.6,'2744','50623',145,548);
INSERT INTO "communes" VALUES('69','Ampuis','07',2641,2181,15.57,'2748','50544',145,536);
INSERT INTO "communes" VALUES('69','Chiroubles','04',378,349,7.32,'2588','51312',259,753);
INSERT INTO "communes" VALUES('69','Saint-Jacques-des-Arrêts','23',110,112,7.47,'2512','51395',370,761);
INSERT INTO "communes" VALUES('69','Fleurieux-sur-l''Arbresle','03',2222,2029,9.51,'2573','50929',200,403);
INSERT INTO "communes" VALUES('69','Moiré','06',204,178,2.03,'2519','51030',297,521);
INSERT INTO "communes" VALUES('69','Saint-André-la-Côte','24',282,182,4.77,'2516','50700',640,929);
INSERT INTO "communes" VALUES('69','Feyzin','49',9237,8461,9.64,'2803','50748',155,234);
INSERT INTO "communes" VALUES('69','Vernay','04',111,126,5.59,'2436','51286',393,940);
INSERT INTO "communes" VALUES('69','Cogny','53',1106,941,5.83,'2542','51097',257,780);
INSERT INTO "communes" VALUES('69','Quincié-en-Beaujolais','04',1199,1121,22.05,'2533','51243',236,729);
INSERT INTO "communes" VALUES('69','Salles-Arbuissonnas-en-Beaujolais','53',803,628,4.35,'2553','51156',247,429);
INSERT INTO "communes" VALUES('69','Monsols','23',959,895,19.82,'2426','51355',430,1008);
INSERT INTO "communes" VALUES('69','Aigueperse','23',241,233,12.95,'2330','51419',403,610);
INSERT INTO "communes" VALUES('69','Beaujeu','04',2036,1904,17.85,'2502','51283',277,880);
INSERT INTO "communes" VALUES('69','Saint-Christophe','23',236,233,14.62,'2450','51402',377,747);
INSERT INTO "communes" VALUES('69','Saint-Germain-au-Mont-d''Or','25',2766,2374,5.43,'2739','50980',167,440);
INSERT INTO "communes" VALUES('69','Corcelles-en-Beaujolais','05',796,746,9.3,'2652','51282',179,247);
INSERT INTO "communes" VALUES('69','Tarare','29',10333,10419,13.99,'2329','50996',359,727);
INSERT INTO "communes" VALUES('69','Mornant','24',5514,4633,15.76,'2595','50688',287,471);
INSERT INTO "communes" VALUES('69','Dracé','05',962,715,14.87,'2699','51285',168,188);
INSERT INTO "communes" VALUES('69','Chessy','06',1752,1307,4.55,'2541','50986',211,342);
INSERT INTO "communes" VALUES('69','Villechenève','27',830,616,14.15,'2299','50903',499,891);
INSERT INTO "communes" VALUES('69','<NAME>','06',2242,1825,5.13,'2499','51023',250,466);
INSERT INTO "communes" VALUES('69','Saint-Clément-les-Places','27',655,536,12.42,'2319','50837',536,713);
INSERT INTO "communes" VALUES('69','Saint-Jean-des-Vignes','02',388,381,2.57,'2609','50973',234,396);
INSERT INTO "communes" VALUES('69','Chassagny','08',1245,1062,9.33,'2662','50674',171,343);
INSERT INTO "communes" VALUES('69','Saint-Julien','53',816,770,6.89,'2573','51140',204,502);
INSERT INTO "communes" VALUES('69','Tupin-et-Semons','07',616,440,8.26,'2710','50531',144,426);
INSERT INTO "communes" VALUES('69','Givors','08',19118,18433,17.34,'2702','50656',145,373);
INSERT INTO "communes" VALUES('69','Chasselay','10',2672,2580,12.78,'2706','50972',189,524);
INSERT INTO "communes" VALUES('69','Saint-Germain-sur-l''Arbresle','03',1352,1123,6.52,'2527','50947',259,420);
INSERT INTO "communes" VALUES('69','Rochetaillée-sur-Saône','25',1525,1130,1.29,'2776','50935',165,250);
INSERT INTO "communes" VALUES('69','Chénelette','09',326,313,11.02,'2394','51299',552,940);
INSERT INTO "communes" VALUES('69','Sainte-Foy-lès-Lyon','50',21742,21216,6.83,'2740','50815',170,322);
INSERT INTO "communes" VALUES('69','Meys','28',717,637,14.65,'2278','50754',436,647);
INSERT INTO "communes" VALUES('69','Montromant','27',426,365,10.99,'2432','50787',370,911);
INSERT INTO "communes" VALUES('69','Aveize','28',1110,943,16.64,'2379','50758',428,928);
INSERT INTO "communes" VALUES('69','Sainte-Catherine','24',904,857,13.76,'2481','50666',547,911);
INSERT INTO "communes" VALUES('69','Millery','08',3549,3415,9.22,'2717','50703',155,304);
INSERT INTO "communes" VALUES('69','Ancy','29',580,474,11.84,'2413','50930',394,852);
INSERT INTO "communes" VALUES('70','Ancier','09',475,424,4.42,'3661','52720',188,229);
INSERT INTO "communes" VALUES('70','Theuley','06',109,60,7.5,'3850','52914',202,262);
INSERT INTO "communes" VALUES('70','Betoncourt-Saint-Pancras','25',51,67,6.35,'4261','53243',238,337);
INSERT INTO "communes" VALUES('70','Bouhans-lès-Montbozon','17',115,91,5.15,'4387','52759',240,341);
INSERT INTO "communes" VALUES('70','Filain','17',221,226,15.79,'4274','52799',257,401);
INSERT INTO "communes" VALUES('70','Soing-Cubry-Charentenay','08',467,489,28.63,'3936','52869',195,268);
INSERT INTO "communes" VALUES('70','Vy-le-Ferroux','24',175,146,5.7,'4042','52874',211,259);
INSERT INTO "communes" VALUES('70','Fleurey-lès-Faverney','20',407,365,11.29,'4164','53050',210,368);
INSERT INTO "communes" VALUES('70','<NAME>','17',101,91,3.55,'4186','52809',324,440);
INSERT INTO "communes" VALUES('70','Arbecey','05',240,234,16.71,'3991','53044',232,361);
INSERT INTO "communes" VALUES('70','Aynans','13',328,312,7.82,'4573','52912',270,335);
INSERT INTO "communes" VALUES('70','Montureux-et-Prantigny','02',209,205,12.18,'3668','52781',190,246);
INSERT INTO "communes" VALUES('70','Montjustin-et-Velotte','18',128,125,7.54,'4486','52905',279,396);
INSERT INTO "communes" VALUES('70','Chenevrey-et-Morogne','15',264,185,8.86,'3785','52537',197,290);
INSERT INTO "communes" VALUES('70','Dampierre-sur-Salon','06',1303,1219,18.8,'3715','52841',192,270);
INSERT INTO "communes" VALUES('70','Arsans','19',42,46,2.48,'3657','52628',207,247);
INSERT INTO "communes" VALUES('70','Esprels','18',699,675,14.81,'4484','52818',252,408);
INSERT INTO "communes" VALUES('70','Vellemoz','10',85,88,4.2,'3842','52749',207,254);
INSERT INTO "communes" VALUES('70','Velle-le-Châtel','24',139,160,3,'4122','52889',212,378);
INSERT INTO "communes" VALUES('70','<NAME>','17',106,61,1.93,'4270','52672',227,282);
INSERT INTO "communes" VALUES('70','Mersuay','20',270,230,11.75,'4224','53092',216,259);
INSERT INTO "communes" VALUES('70','Barges','12',103,91,7.91,'3900','53181',217,290);
INSERT INTO "communes" VALUES('70','Noidans-lès-Vesoul','29',2076,2111,8.64,'4210','52905',215,434);
INSERT INTO "communes" VALUES('70','Montcey','26',223,222,8.12,'4333','52951',282,400);
INSERT INTO "communes" VALUES('70','Luré','95',8325,8729,24.31,'4622','52981',284,353);
INSERT INTO "communes" VALUES('70','Villers-sur-Saulnot','11',156,132,2.37,'4790','52833',365,500);
INSERT INTO "communes" VALUES('70','Étrelles-et-la-Montbleuse','10',85,52,6.26,'3917','52733',233,282);
INSERT INTO "communes" VALUES('70','Saint-Sauveur','32',2108,2037,12.02,'4498','53115',268,304);
INSERT INTO "communes" VALUES('70','Bucey-lès-Traves','24',103,78,2.79,'4050','52919',203,250);
INSERT INTO "communes" VALUES('70','<NAME>','09',187,148,5.49,'3601','52649',197,243);
INSERT INTO "communes" VALUES('70','Jussey','12',1766,1837,33.55,'3960','53140',212,363);
INSERT INTO "communes" VALUES('70','Plancher-Bas','03',1923,1637,29.12,'4885','53024',366,850);
INSERT INTO "communes" VALUES('70','Autet','06',313,264,11.35,'3731','52825',191,248);
INSERT INTO "communes" VALUES('70','Saint-Valbert','14',224,195,3.9,'4510','53170',283,418);
INSERT INTO "communes" VALUES('70','Châteney','23',51,45,2.6,'4419','52991',287,414);
INSERT INTO "communes" VALUES('70','Betaucourt','12',159,173,7.17,'3981','53182',212,283);
INSERT INTO "communes" VALUES('70','La Lanterne-et-les-Armonts','16',185,161,9.89,'4656','53104',345,492);
INSERT INTO "communes" VALUES('70','Belverne','11',131,129,6.15,'4793','52923',322,500);
INSERT INTO "communes" VALUES('70','Chargey-lès-Port','05',240,219,13.05,'4069','53042',212,376);
INSERT INTO "communes" VALUES('70','Francourt','06',105,119,7.04,'3786','52945',224,283);
INSERT INTO "communes" VALUES('70','Montigny-lès-Vesoul','29',658,538,6.47,'4151','52931',212,308);
INSERT INTO "communes" VALUES('70','Vantoux-et-Longevelle','10',157,142,9.67,'3900','52705',212,273);
INSERT INTO "communes" VALUES('70','Citey','10',98,80,5.76,'3836','52700',198,257);
INSERT INTO "communes" VALUES('70','La Villeneuve-Bellenoye-et-la-Maize','26',127,141,9.21,'4349','53009',230,396);
INSERT INTO "communes" VALUES('70','Cerre-lès-Noroy','18',213,169,9.96,'4422','52890',285,438);
INSERT INTO "communes" VALUES('70','Mollans','13',244,226,13.45,'4482','52943',282,358);
INSERT INTO "communes" VALUES('70','Beaumotte-Aubertans','17',495,383,13.57,'4269','52689',228,328);
INSERT INTO "communes" VALUES('70','Combeaufontaine','05',556,496,12.19,'3949','53011',239,332);
INSERT INTO "communes" VALUES('70','Rioz','21',1891,1134,17.2,'4148','52693',247,402);
INSERT INTO "communes" VALUES('70','Dampvalley-lès-Colombe','18',112,112,6.26,'4343','52921',244,378);
INSERT INTO "communes" VALUES('70','Raze','24',331,354,10.02,'4083','52871',217,260);
INSERT INTO "communes" VALUES('70','Magny-Vernois','13',1304,1023,6.38,'4597','52965',282,312);
INSERT INTO "communes" VALUES('70','Cugney','15',183,155,11.39,'3758','52628',221,315);
INSERT INTO "communes" VALUES('70','Conflandey','20',399,425,5.3,'4119','53031',207,256);
INSERT INTO "communes" VALUES('70','Recologne','06',46,15,1.15,'3822','52869',197,226);
INSERT INTO "communes" VALUES('70','Charmes-Saint-Valbert','28',48,48,5,'3747','53032',255,380);
INSERT INTO "communes" VALUES('70','Adelans-et-le-Val-de-Bithaine','93',309,251,17.3,'4512','53011',292,445);
INSERT INTO "communes" VALUES('70','Villargent','27',113,104,2.86,'4610','52824',274,300);
INSERT INTO "communes" VALUES('70','Lambrey','05',85,88,6.08,'3990','53071',228,295);
INSERT INTO "communes" VALUES('70','Cuve','25',163,153,8.1,'4316','53226',232,335);
INSERT INTO "communes" VALUES('70','Sauvigney-lès-Gray','09',113,78,10.44,'3783','52719',192,248);
INSERT INTO "communes" VALUES('70','Fontenois-la-Ville','25',144,172,12.19,'4254','53258',243,333);
INSERT INTO "communes" VALUES('70','Magny','27',131,120,11.46,'4575','52807',256,387);
INSERT INTO "communes" VALUES('70','Gourgeon','05',253,182,13.69,'3898','53021',233,318);
INSERT INTO "communes" VALUES('70','Villers-Chemin-et-Mont-lès-Étrelles','10',127,113,7.32,'3926','52714',238,377);
INSERT INTO "communes" VALUES('70','Delain','06',221,186,12.2,'3666','52863',200,268);
INSERT INTO "communes" VALUES('70','Fahy-lès-Autrey','02',109,114,6.2,'3495','52792',224,278);
INSERT INTO "communes" VALUES('70','Demangevelle','12',335,356,14.62,'4108','53251',222,350);
INSERT INTO "communes" VALUES('70','Mantoche','02',481,511,16.58,'3549','52688',187,249);
INSERT INTO "communes" VALUES('70','Thiénans','17',85,68,4.11,'4373','52741',241,313);
INSERT INTO "communes" VALUES('70','Étuz','15',670,563,5.3,'4003','52611',207,267);
INSERT INTO "communes" VALUES('70','Bouhans-et-Feurg','02',281,239,9.75,'3523','52754',197,247);
INSERT INTO "communes" VALUES('70','Brevilliers','30',641,564,6.47,'4950','52868',330,442);
INSERT INTO "communes" VALUES('70','Membrey','06',222,220,11.01,'3785','52880',195,251);
INSERT INTO "communes" VALUES('70','Vereux','06',255,204,9.02,'3683','52801',191,253);
INSERT INTO "communes" VALUES('70','Fresne-Saint-Mamès','08',500,507,9.95,'3916','52831',200,262);
INSERT INTO "communes" VALUES('70','Confracourt','06',222,180,19.69,'3933','52963',217,337);
INSERT INTO "communes" VALUES('70','Vars','02',202,190,16.16,'3552','52816',207,299);
INSERT INTO "communes" VALUES('70','Échenoz-la-Méline','29',3065,2743,8.09,'4223','52891',220,447);
INSERT INTO "communes" VALUES('70','<NAME>','19',163,103,3.27,'3635','52569',214,243);
INSERT INTO "communes" VALUES('70','Échavanne','03',198,201,3.21,'4883','52952',351,444);
INSERT INTO "communes" VALUES('70','Bâties','08',79,74,7.56,'3950','52786',211,253);
INSERT INTO "communes" VALUES('70','Andelarrot','29',242,163,5.71,'4186','52868',289,431);
INSERT INTO "communes" VALUES('70','Motey-sur-Saône','08',25,30,2.99,'3783','52806',192,246);
INSERT INTO "communes" VALUES('70','Villers-Pater','17',40,38,4.67,'4250','52741',247,372);
INSERT INTO "communes" VALUES('70','Georfans','27',64,62,2.99,'4640','52818',282,375);
INSERT INTO "communes" VALUES('70','Noiron','09',64,50,5.58,'3658','52649',199,244);
INSERT INTO "communes" VALUES('70','Frasne-le-Château','10',291,228,12.5,'3952','52737',236,375);
INSERT INTO "communes" VALUES('70','Oigney','05',50,50,7.97,'3909','53068',249,349);
INSERT INTO "communes" VALUES('70','Velleguindry-et-Levrecey','24',156,148,10.54,'4180','52843',286,455);
INSERT INTO "communes" VALUES('70','Courcuire','15',132,127,7.06,'3875','52602',266,355);
INSERT INTO "communes" VALUES('70','Authoison','17',288,214,16.02,'4234','52766',252,387);
INSERT INTO "communes" VALUES('70','Cendrecourt','12',243,233,9.31,'3988','53160',211,293);
INSERT INTO "communes" VALUES('70','<NAME>','07',40,23,12.61,'4728','53245',570,808);
INSERT INTO "communes" VALUES('70','Ronchamp','03',2919,2964,23.54,'4774','53000',320,790);
INSERT INTO "communes" VALUES('70','Attricourt','02',36,41,6.08,'3393','52760',214,253);
INSERT INTO "communes" VALUES('70','Ray-sur-Saône','06',216,192,7.88,'3878','52874',197,263);
INSERT INTO "communes" VALUES('70','Vilory','26',86,95,4.15,'4327','53027',242,395);
INSERT INTO "communes" VALUES('70','Bucey-lès-Gy','10',649,593,21.3,'3896','52692',206,406);
INSERT INTO "communes" VALUES('70','Buffignécourt','01',115,130,6.27,'4091','53126',218,274);
INSERT INTO "communes" VALUES('70','Velorcey','23',212,130,6.18,'4350','53086',237,310);
INSERT INTO "communes" VALUES('70','Avrigney-Virey','15',392,332,22.3,'3824','52594',230,355);
INSERT INTO "communes" VALUES('70','Germigney','09',178,170,15.1,'3569','52641',188,247);
INSERT INTO "communes" VALUES('70','Bourguignon-lès-Conflans','25',131,106,8.02,'4252','53118',217,310);
INSERT INTO "communes" VALUES('70','Gézier-et-Fontenelay','10',181,143,12.1,'3956','52619',225,367);
INSERT INTO "communes" VALUES('70','Menoux','01',288,229,14.7,'4185','53121',217,335);
INSERT INTO "communes" VALUES('70','Cenans','17',131,111,5.02,'4288','52702',232,293);
INSERT INTO "communes" VALUES('70','<NAME>','25',46,42,2.3,'4322','53179',229,300);
INSERT INTO "communes" VALUES('70','Igny','09',200,148,10.03,'3806','52754',200,252);
INSERT INTO "communes" VALUES('70','<NAME>-Saint-Quillain','10',136,96,10.42,'3864','52751',222,262);
INSERT INTO "communes" VALUES('70','Magnivray','32',171,155,4.76,'4593','53090',294,361);
INSERT INTO "communes" VALUES('70','Chauvirey-le-Vieil','28',32,37,3.37,'3799','53095',242,341);
INSERT INTO "communes" VALUES('70','Saulx','23',866,672,15.12,'4380','52995',232,375);
INSERT INTO "communes" VALUES('70','Roye','13',1345,1127,10.37,'4674','52966',293,333);
INSERT INTO "communes" VALUES('70','Trésilley','21',207,148,11.08,'4105','52723',267,399);
INSERT INTO "communes" VALUES('70','Visoncourt','32',32,37,4.52,'4422','53058',264,395);
INSERT INTO "communes" VALUES('70','Vy-lès-Lure','13',674,555,16,'4567','52942',275,359);
INSERT INTO "communes" VALUES('70','Velloreille-lès-Choye','10',80,51,4.13,'3778','52658',209,262);
INSERT INTO "communes" VALUES('70','Palante','13',183,156,3.46,'4720','52954',299,337);
INSERT INTO "communes" VALUES('70','Magnoncourt','22',432,452,6.67,'4387','53215',242,291);
INSERT INTO "communes" VALUES('70','Dampierre-sur-Linotte','17',750,698,32.48,'4328','52791',252,393);
INSERT INTO "communes" VALUES('70','Vallerois-le-Bois','18',259,256,12.59,'4392','52832',275,401);
INSERT INTO "communes" VALUES('70','Lavoncourt','06',337,293,5.55,'3831','52917',202,254);
INSERT INTO "communes" VALUES('70','Betoncourt-lès-Brotte','23',99,60,3.07,'4450','53046',272,437);
INSERT INTO "communes" VALUES('70','<NAME>','18',138,66,6.26,'4265','52873',260,447);
INSERT INTO "communes" VALUES('70','Linexert','32',131,139,1.99,'4606','53048',301,340);
INSERT INTO "communes" VALUES('70','Percey-le-Grand','04',93,96,13.88,'3393','52899',238,334);
INSERT INTO "communes" VALUES('70','Buthiers','21',309,296,5.69,'4107','52607',214,310);
INSERT INTO "communes" VALUES('70','Clans','24',120,119,4.37,'4114','52892',214,257);
INSERT INTO "communes" VALUES('70','Pontcey','24',278,275,5.87,'4104','52923',210,267);
INSERT INTO "communes" VALUES('70','Montot','06',126,99,10.03,'3649','52849',202,257);
INSERT INTO "communes" VALUES('70','Vanne','06',93,86,9.72,'3891','52894',197,264);
INSERT INTO "communes" VALUES('70','Magny-Jobert','13',102,69,3.68,'4728','52941',301,408);
INSERT INTO "communes" VALUES('70','Breuches','32',735,753,9.12,'4437','53109',246,312);
INSERT INTO "communes" VALUES('70','<NAME>','27',116,83,2.95,'4652','52901',277,322);
INSERT INTO "communes" VALUES('70','Granges-la-Ville','27',214,197,2.61,'4706','52852',285,406);
INSERT INTO "communes" VALUES('70','Melincourt','25',249,233,14.98,'4211','53206',238,328);
INSERT INTO "communes" VALUES('70','Oiselay-et-Grachaux','10',397,381,22.99,'3997','52691',254,432);
INSERT INTO "communes" VALUES('70','Marast','27',42,43,3.06,'4495','52842',264,346);
INSERT INTO "communes" VALUES('70','Vougécourt','12',150,168,8.88,'4063','53270',222,311);
INSERT INTO "communes" VALUES('70','Rosières-sur-Mance','28',77,74,5.22,'3844','53152',222,325);
INSERT INTO "communes" VALUES('70','<NAME>','07',244,281,12.4,'4727','53204',395,770);
INSERT INTO "communes" VALUES('70','Cemboing','12',209,217,10.51,'3911','53158',217,312);
INSERT INTO "communes" VALUES('70','Onay','09',73,75,6.68,'3723','52651',206,248);
INSERT INTO "communes" VALUES('70','Saint-Bresson','07',453,410,26.6,'4633','53189',379,710);
INSERT INTO "communes" VALUES('70','Autoreille','10',297,269,9.98,'3861','52633',250,374);
INSERT INTO "communes" VALUES('70','Luzé','30',737,691,10.69,'4892','52886',330,531);
INSERT INTO "communes" VALUES('70','Chaumercenne','19',152,138,4.95,'3658','52555',228,292);
INSERT INTO "communes" VALUES('70','<NAME>','32',100,93,3.15,'4616','53102',338,421);
INSERT INTO "communes" VALUES('70','Colombier','26',419,378,13.91,'4304','52960',222,375);
INSERT INTO "communes" VALUES('70','Coisevaux','11',343,249,4.18,'4855','52867',336,498);
INSERT INTO "communes" VALUES('70','Girefontaine','25',46,50,3.56,'4265','53215',248,331);
INSERT INTO "communes" VALUES('70','Ranzevelle','12',21,14,2.38,'4054','53230',217,257);
INSERT INTO "communes" VALUES('70','Dampvalley-Saint-Pancras','25',49,33,4.65,'4289','53232',237,325);
INSERT INTO "communes" VALUES('70','Haut-du-Them-Château-Lambert','16',449,502,25.16,'4873','53159',421,1215);
INSERT INTO "communes" VALUES('70','Échenans-sous-Mont-Vaudois','30',505,505,5.44,'4928','52892',344,530);
INSERT INTO "communes" VALUES('70','Mailleroncourt-Saint-Pancras','25',211,213,14.9,'4217','53242',237,331);
INSERT INTO "communes" VALUES('70','Bresilley','19',175,125,3.54,'3672','52510',192,221);
INSERT INTO "communes" VALUES('70','Mélecey','27',163,199,3.35,'4615','52799',283,375);
INSERT INTO "communes" VALUES('70','Mandrevillars','30',218,140,3.03,'4934','52903',360,443);
INSERT INTO "communes" VALUES('70','Ouge','28',122,143,13.49,'3741','53106',228,383);
INSERT INTO "communes" VALUES('70','Hautevelle','22',256,259,7.78,'4386','53159',237,334);
INSERT INTO "communes" VALUES('70','Flagy','20',156,158,9.7,'4280','52998',232,338);
INSERT INTO "communes" VALUES('70','Chancey','19',161,119,7.71,'3718','52579',224,298);
INSERT INTO "communes" VALUES('70','Briaucourt','22',241,253,9.83,'4348','53138',227,294);
INSERT INTO "communes" VALUES('70','Savoyeux','06',223,204,6.14,'3790','52830',192,244);
INSERT INTO "communes" VALUES('70','Anchenoncourt-et-Chazel','01',239,227,13.91,'4198','53184',227,355);
INSERT INTO "communes" VALUES('70','Chaux-lès-Port','20',140,123,4.15,'4111','53017',206,277);
INSERT INTO "communes" VALUES('70','Coulevon','26',193,205,2.66,'4272','52939',221,296);
INSERT INTO "communes" VALUES('70','Senoncourt','01',217,219,11.26,'4140','53144',222,335);
INSERT INTO "communes" VALUES('70','Jonvelle','12',142,171,12.37,'3982','53265',226,353);
INSERT INTO "communes" VALUES('70','Errevet','03',231,227,3.28,'4932','52983',367,511);
INSERT INTO "communes" VALUES('70','Velleclaire','10',105,62,4.13,'3916','52701',234,406);
INSERT INTO "communes" VALUES('70','Brotte-lès-Luxeuil','32',217,212,6.87,'4457','53063',261,450);
INSERT INTO "communes" VALUES('70','Vauvillers','25',680,799,9.5,'4179','53247',238,353);
INSERT INTO "communes" VALUES('70','Hurecourt','25',56,46,4.93,'4143','53226',269,350);
INSERT INTO "communes" VALUES('70','Selles','25',242,241,14.36,'4168','53292',227,417);
INSERT INTO "communes" VALUES('70','Auvet-et-la-Chapelotte','02',246,266,14.43,'3534','52788',198,261);
INSERT INTO "communes" VALUES('70','Courmont','11',101,105,6.39,'4769','52902',320,547);
INSERT INTO "communes" VALUES('70','Villers-la-Ville','27',164,141,5.87,'4584','52832',263,321);
INSERT INTO "communes" VALUES('70','Vouhenans','13',397,404,8.36,'4605','52945',277,333);
INSERT INTO "communes" VALUES('70','Creveney','23',52,57,2.44,'4394','52982',249,331);
INSERT INTO "communes" VALUES('70','Vesoul','96',15761,17152,9.07,'4243','52914',213,375);
INSERT INTO "communes" VALUES('70','Ternuay-Melay-et-Saint-Hilaire','16',519,500,25.74,'4770','53094',345,870);
INSERT INTO "communes" VALUES('70','Bouligney','25',432,429,14.2,'4338','53217',231,357);
INSERT INTO "communes" VALUES('70','Malbouhans','31',379,339,7.8,'4715','53013',310,517);
INSERT INTO "communes" VALUES('70','Roche-sur-Linotte-et-Sorans-les-Cordiers','17',72,76,9.34,'4296','52748',240,373);
INSERT INTO "communes" VALUES('70','Fondremand','21',173,161,16.43,'4100','52750',254,431);
INSERT INTO "communes" VALUES('70','Montbozon','17',546,477,8.63,'4358','52740',237,319);
INSERT INTO "communes" VALUES('70','Mailleroncourt-Charette','23',317,277,10.6,'4359','53030',241,360);
INSERT INTO "communes" VALUES('70','Échenoz-le-Sec','17',309,282,15.47,'4206','52823',305,469);
INSERT INTO "communes" VALUES('70','Renaucourt','06',107,115,6.14,'3819','52931',207,260);
INSERT INTO "communes" VALUES('70','Boult','21',543,421,14.62,'4072','52646',217,351);
INSERT INTO "communes" VALUES('70','<NAME>','31',523,477,6.93,'4706','52985',307,362);
INSERT INTO "communes" VALUES('70','Charcenne','15',340,329,7.16,'3822','52635',214,351);
INSERT INTO "communes" VALUES('70','Comberjon','26',173,190,3.57,'4294','52942',222,383);
INSERT INTO "communes" VALUES('70','Champlitte','04',1822,1828,128.9,'3530','52907',208,379);
INSERT INTO "communes" VALUES('70','Faucogney-et-la-Mer','07',589,623,14.14,'4697','53158',352,573);
INSERT INTO "communes" VALUES('70','Froideconche','32',1994,1973,16.04,'4533','53134',288,436);
INSERT INTO "communes" VALUES('70','Châtenois','23',124,126,5.75,'4418','52982',278,413);
INSERT INTO "communes" VALUES('70','Oyrières','02',428,451,14.03,'3586','52814',202,255);
INSERT INTO "communes" VALUES('70','Tartécourt','12',39,24,2.29,'4050','53154',219,299);
INSERT INTO "communes" VALUES('70','Boursières','24',72,62,2.28,'4118','52898',212,266);
INSERT INTO "communes" VALUES('70','Montureux-lès-Baulay','01',170,150,6.34,'4049','53131',212,278);
INSERT INTO "communes" VALUES('70','<NAME>','12',44,37,3.54,'4132','53278',227,268);
INSERT INTO "communes" VALUES('70','Lomont','11',378,380,11.35,'4752','52916',290,466);
INSERT INTO "communes" VALUES('70','Marnay','15',1380,1287,10.37,'3817','52544',189,324);
INSERT INTO "communes" VALUES('70','Argillières','04',73,80,9.58,'3666','52963',230,366);
INSERT INTO "communes" VALUES('70','Aisey-et-Richecourt','12',107,141,7.8,'4020','53211',216,317);
INSERT INTO "communes" VALUES('70','Conflans-sur-Lanterne','22',650,672,13.09,'4304','53128',223,298);
INSERT INTO "communes" VALUES('70','Purgerot','05',367,358,14.11,'4068','53055',209,363);
INSERT INTO "communes" VALUES('70','Saulnot','11',801,707,26.73,'4774','52847',324,522);
INSERT INTO "communes" VALUES('70','Angirey','09',132,134,8.87,'3812','52728',198,260);
INSERT INTO "communes" VALUES('70','Sauvigney-lès-Pesmes','19',172,153,6.35,'3592','52558',195,234);
INSERT INTO "communes" VALUES('70','Liévans','18',131,110,4.16,'4456','52931',290,370);
INSERT INTO "communes" VALUES('70','Vandelans','21',110,107,3.08,'4253','52661',225,272);
INSERT INTO "communes" VALUES('70','Scey-sur-Saône-et-Saint-Albin','24',1682,1562,28.25,'4037','52963',204,354);
INSERT INTO "communes" VALUES('70','Bard-lès-Pesmes','19',128,94,5.21,'3662','52525',198,291);
INSERT INTO "communes" VALUES('70','Noidans-le-Ferroux','24',624,570,13.99,'4020','52856',218,267);
INSERT INTO "communes" VALUES('70','Cubry-lès-Faverney','25',128,114,5.59,'4217','53123',222,305);
INSERT INTO "communes" VALUES('70','Quenoche','21',206,116,9.71,'4186','52743',257,380);
INSERT INTO "communes" VALUES('70','Bourguignon-lès-Morey','28',54,54,9.84,'3741','53011',249,447);
INSERT INTO "communes" VALUES('70','Bourguignon-lès-la-Charité','24',142,126,4.25,'4037','52786',221,251);
INSERT INTO "communes" VALUES('70','<NAME>','28',70,60,3.19,'3731','53082',303,386);
INSERT INTO "communes" VALUES('70','Cirey','21',347,232,13.09,'4217','52663',222,329);
INSERT INTO "communes" VALUES('70','Valay','19',685,512,17.4,'3669','52598',206,266);
INSERT INTO "communes" VALUES('70','Vaux-le-Moncelot','10',76,63,7.04,'3961','52747',224,300);
INSERT INTO "communes" VALUES('70','<NAME>','28',36,37,4.23,'3773','53052',288,371);
INSERT INTO "communes" VALUES('70','Colombe-lès-Vesoul','18',500,405,7.94,'4307','52904',223,351);
INSERT INTO "communes" VALUES('70','Larret','04',57,65,5.58,'3659','52918',229,347);
INSERT INTO "communes" VALUES('70','Bougey','05',83,91,8.56,'3916','53091',218,319);
INSERT INTO "communes" VALUES('70','Chauvirey-le-Châtel','28',115,148,11.76,'3798','53101',238,372);
INSERT INTO "communes" VALUES('70','Meurcourt','23',308,307,11.89,'4329','53080',238,409);
INSERT INTO "communes" VALUES('70','Équevilley','20',129,117,9.46,'4274','53077',222,336);
INSERT INTO "communes" VALUES('70','Genevrey','23',229,208,11.97,'4431','53026',289,453);
INSERT INTO "communes" VALUES('70','La Chapelle-lès-Luxeuil','32',438,431,7.69,'4478','53079',260,310);
INSERT INTO "communes" VALUES('70','<NAME>','23',74,51,5.04,'4456','52973',284,412);
INSERT INTO "communes" VALUES('70','Bouhans-lès-Lure','31',310,212,9.11,'4540','52994',231,385);
INSERT INTO "communes" VALUES('70','Bay','15',122,76,4.87,'3759','52543',203,303);
INSERT INTO "communes" VALUES('70','Vezet','08',189,161,11.66,'3941','52819',207,263);
INSERT INTO "communes" VALUES('70','Courchaton','27',455,430,13.53,'4671','52796',303,532);
INSERT INTO "communes" VALUES('70','Beulotte-Saint-Laurent','07',71,68,14.2,'4823','53178',520,757);
INSERT INTO "communes" VALUES('70','Granges-le-Bourg','27',370,310,10.35,'4721','52850',290,453);
INSERT INTO "communes" VALUES('70','Choye','10',390,354,14.4,'3803','52657',197,280);
INSERT INTO "communes" VALUES('70','Andelarre','29',119,128,4.57,'4178','52878',303,427);
INSERT INTO "communes" VALUES('70','Pomoy','31',193,156,7.51,'4463','52958',289,393);
INSERT INTO "communes" VALUES('70','Saint-Barthélemy','16',1149,900,13.46,'4724','53055',324,708);
INSERT INTO "communes" VALUES('70','Fleurey-lès-Lavoncourt','06',107,108,9.5,'3831','52955',210,267);
INSERT INTO "communes" VALUES('70','Motey-Besuche','19',112,85,6.21,'3702','52553',207,298);
INSERT INTO "communes" VALUES('70','Rignovelle','32',96,96,4.37,'4605','53072',304,362);
INSERT INTO "communes" VALUES('70','Velleminfroy','23',281,276,6.02,'4424','52958',278,379);
INSERT INTO "communes" VALUES('70','<NAME>','05',176,125,6.46,'3996','52995',247,345);
INSERT INTO "communes" VALUES('70','Vitrey-sur-Mance','28',291,333,13.48,'3805','53127',223,349);
INSERT INTO "communes" VALUES('70','Dampierre-lès-Conflans','25',260,268,10.37,'4276','53165',227,328);
INSERT INTO "communes" VALUES('70','Saint-Germain','31',1316,1194,14.12,'4660','53025',302,357);
INSERT INTO "communes" VALUES('70','Bougnon','20',504,442,9.18,'4191','52992',233,345);
INSERT INTO "communes" VALUES('70','Borey','18',233,224,14.5,'4467','52881',282,438);
INSERT INTO "communes" VALUES('70','Faverney','01',981,1019,18.23,'4186','53076',209,331);
INSERT INTO "communes" VALUES('70','Navenne','26',1751,1641,3.91,'4254','52897',223,441);
INSERT INTO "communes" VALUES('70','Baignes','24',86,93,2.87,'4126','52872',219,378);
INSERT INTO "communes" VALUES('70','Courtesoult-et-Gatey','04',62,72,10.17,'3649','52909',214,309);
INSERT INTO "communes" VALUES('70','Aillevans','27',142,122,5.78,'4532','52879',267,393);
INSERT INTO "communes" VALUES('70','Vaivre-et-Montoille','29',2293,2692,8.48,'4187','52923',212,380);
INSERT INTO "communes" VALUES('70','Auxon','20',432,399,12.51,'4254','52980',229,339);
INSERT INTO "communes" VALUES('70','Amblans-et-Velotte','31',389,288,9.76,'4527','52976',287,406);
INSERT INTO "communes" VALUES('70','Villeparois','26',211,170,3.32,'4271','52952',224,345);
INSERT INTO "communes" VALUES('70','Chargey-lès-Gray','02',714,615,16.56,'3598','52764',192,250);
INSERT INTO "communes" VALUES('70','<NAME>','20',110,122,7.06,'4274','53041',257,417);
INSERT INTO "communes" VALUES('70','Montcourt','12',67,75,4.92,'4023','53256',224,310);
INSERT INTO "communes" VALUES('70','Quincey','26',1272,1035,12.63,'4276','52903',219,408);
INSERT INTO "communes" VALUES('70','Breurey-lès-Faverney','20',571,509,19.48,'4217','53062',215,415);
INSERT INTO "communes" VALUES('70','Vauchoux','20',126,116,4.64,'4100','52958',206,262);
INSERT INTO "communes" VALUES('70','Andornay','13',205,148,1.48,'4733','52951',299,329);
INSERT INTO "communes" VALUES('70','Amage','07',332,293,6.54,'4618','53152',334,560);
INSERT INTO "communes" VALUES('70','Grandecourt','06',35,33,3.39,'3912','52926',211,253);
INSERT INTO "communes" VALUES('70','Brotte-lès-Ray','06',64,64,5.06,'3776','52897',200,249);
INSERT INTO "communes" VALUES('70','Loulans-Verchamp','17',473,376,8.16,'4299','52719',232,297);
INSERT INTO "communes" VALUES('70','Sainte-Reine','08',35,38,6.18,'3824','52775',214,254);
INSERT INTO "communes" VALUES('70','Pont-du-Bois','25',116,111,8.15,'4210','53299',237,482);
INSERT INTO "communes" VALUES('70','Vellechevreux-et-Courbenans','27',155,172,9.14,'4669','52822',289,493);
INSERT INTO "communes" VALUES('70','Gy','10',1048,1018,24.6,'3862','52674',198,380);
INSERT INTO "communes" VALUES('70','Besnans','17',81,56,2.94,'4358','52723',237,308);
INSERT INTO "communes" VALUES('70','Ormenans','17',65,51,3.61,'4298','52725',237,342);
INSERT INTO "communes" VALUES('70','Chavanne','11',243,202,2.32,'4801','52842',373,512);
INSERT INTO "communes" VALUES('70','Vyans-le-Val','11',414,420,3.32,'4923','52833',339,463);
INSERT INTO "communes" VALUES('70','Nantilly','02',525,453,10,'3545','52732',192,243);
INSERT INTO "communes" VALUES('70','Montarlot-lès-Rioz','21',288,177,9.66,'4066','52686',243,365);
INSERT INTO "communes" VALUES('70','<NAME>','21',271,194,5.46,'4152','52723',269,380);
INSERT INTO "communes" VALUES('70','Achey','06',71,55,7.05,'3635','52860',206,258);
INSERT INTO "communes" VALUES('70','Lieucourt','19',79,50,4.8,'3652','52612',204,248);
INSERT INTO "communes" VALUES('70','Mont-Saint-Léger','06',65,65,4.9,'3838','52922',207,282);
INSERT INTO "communes" VALUES('70','Mignavillers','27',349,337,7.59,'4683','52867',278,444);
INSERT INTO "communes" VALUES('70','Sornay','15',306,235,6.29,'3735','52532',197,275);
INSERT INTO "communes" VALUES('70','La Proiselière-et-Langle','07',173,153,7.06,'4629','53141',339,442);
INSERT INTO "communes" VALUES('70','La Vernotte','08',71,66,5.53,'3924','52788',210,262);
INSERT INTO "communes" VALUES('70','Amance','01',699,754,17.54,'4135','53113',210,287);
INSERT INTO "communes" VALUES('70','Perrouse','21',233,168,4.39,'4127','52624',217,327);
INSERT INTO "communes" VALUES('70','Fontaine-lès-Luxeuil','22',1452,1437,27.73,'4442','53173',247,397);
INSERT INTO "communes" VALUES('70','Fouvent-Saint-Andoche','04',235,258,34.7,'3704','52938',212,368);
INSERT INTO "communes" VALUES('70','Saint-Rémy','01',568,802,9.08,'4177','53150',226,366);
INSERT INTO "communes" VALUES('70','Villers-Vaudey','06',61,64,5.55,'3803','52969',234,306);
INSERT INTO "communes" VALUES('70','Le Pont-de-Planches','08',214,169,6.88,'3983','52817',212,263);
INSERT INTO "communes" VALUES('70','<NAME>','07',144,126,11.87,'4668','53137',346,521);
INSERT INTO "communes" VALUES('70','Larians-et-Munans','17',230,194,2.5,'4332','52684',231,273);
INSERT INTO "communes" VALUES('70','Ailloncourt','32',307,224,9.29,'4502','53061',264,450);
INSERT INTO "communes" VALUES('70','Amoncourt','20',337,304,4.04,'4141','53040',209,272);
INSERT INTO "communes" VALUES('70','Quers','31',353,324,9.93,'4543','53039',277,339);
INSERT INTO "communes" VALUES('70','Baulay','01',329,300,8.22,'4080','53097',210,292);
INSERT INTO "communes" VALUES('70','Polaincourt-et-Clairefontaine','01',809,900,21.4,'4148','53204',228,362);
INSERT INTO "communes" VALUES('70','Châlonvillars','30',1244,1147,7.6,'4944','52933',363,493);
INSERT INTO "communes" VALUES('70','Seveux','08',467,462,16.89,'3791','52841',192,260);
INSERT INTO "communes" VALUES('70','Lavigney','28',122,115,9.93,'3858','53015',233,307);
INSERT INTO "communes" VALUES('70','Villers-sur-Port','20',211,211,10.25,'4155','53016',239,321);
INSERT INTO "communes" VALUES('70','Cresancey','09',189,212,9.6,'3686','52659',202,248);
INSERT INTO "communes" VALUES('70','Vellefaux','17',464,480,10.02,'4224','52837',305,426);
INSERT INTO "communes" VALUES('70','Ovanches','24',122,103,6.7,'4019','52922',201,247);
INSERT INTO "communes" VALUES('70','Vaite','06',214,215,9.39,'3768','52880',199,264);
INSERT INTO "communes" VALUES('70','Saint-Loup-Nantouard','09',112,118,7.64,'3765','52695',192,243);
INSERT INTO "communes" VALUES('70','Saint-Gand','08',138,77,15.83,'3905','52798',216,264);
INSERT INTO "communes" VALUES('70','Pierrecourt','04',121,134,15.6,'3615','52938',244,362);
INSERT INTO "communes" VALUES('70','Beaumotte-lès-Pin','15',278,239,8.43,'3882','52574',200,351);
INSERT INTO "communes" VALUES('70','Couthenans','11',777,712,1.64,'4876','52878',331,480);
INSERT INTO "communes" VALUES('70','Villersexel','27',1464,1446,13.19,'4552','52834',257,318);
INSERT INTO "communes" VALUES('70','Grammont','27',74,71,5.94,'4644','52794',283,515);
INSERT INTO "communes" VALUES('70','Grattery','20',199,168,6.19,'4158','52967',218,296);
INSERT INTO "communes" VALUES('70','Bonboillon','15',182,103,4.44,'3741','52597',242,297);
INSERT INTO "communes" VALUES('70','Cognières','17',97,86,3.93,'4396','52768',261,321);
INSERT INTO "communes" VALUES('70','Noroy-le-Bourg','18',482,484,31.78,'4410','52905',280,447);
INSERT INTO "communes" VALUES('70','Baudoncourt','32',546,539,7.57,'4454','53087',258,294);
INSERT INTO "communes" VALUES('70','Athesans-Étroitefontaine','27',662,563,12.88,'4637','52885',269,367);
INSERT INTO "communes" VALUES('70','Éhuns','32',260,232,5.53,'4417','53081',254,407);
INSERT INTO "communes" VALUES('70','Neurey-lès-la-Demie','18',347,344,9.7,'4286','52861',271,446);
INSERT INTO "communes" VALUES('70','Preigney','28',119,103,12.18,'3821','53070',268,372);
INSERT INTO "communes" VALUES('70','Cornot','05',148,159,11.19,'3886','52993',222,293);
INSERT INTO "communes" VALUES('70','Luxeuil-les-Bains','14',7248,8433,21.81,'4494','53129',260,395);
INSERT INTO "communes" VALUES('70','Melin','05',61,80,5.73,'3878','53044',249,329);
INSERT INTO "communes" VALUES('70','Saint-Marcel','28',118,108,7.1,'3875','53140',239,317);
INSERT INTO "communes" VALUES('70','Tromarey','15',110,102,6.12,'3759','52598',231,329);
INSERT INTO "communes" VALUES('70','Chagey','30',675,659,6.99,'4887','52902',337,489);
INSERT INTO "communes" VALUES('70','Mailley-et-Chazelot','24',605,561,25.03,'4128','52818',249,463);
INSERT INTO "communes" VALUES('70','Autrey-lès-Cerre','18',226,155,5.48,'4457','52899',300,426);
INSERT INTO "communes" VALUES('70','Lyoffans','13',396,331,4.49,'4716','52942',293,375);
INSERT INTO "communes" VALUES('70','Pusey','29',1557,1110,8.18,'4211','52948',213,266);
INSERT INTO "communes" VALUES('70','Gray','09',6016,6772,20.26,'3616','52716',187,249);
INSERT INTO "communes" VALUES('70','Ferrières-lès-Scey','24',149,140,6.2,'4075','52951',205,322);
INSERT INTO "communes" VALUES('70','Cordonnet','21',122,112,10.45,'4038','52685',230,422);
INSERT INTO "communes" VALUES('70','Greucourt','08',89,61,2.68,'3918','52815',207,238);
INSERT INTO "communes" VALUES('70','Autrey-lès-Gray','02',441,497,32.4,'3505','52763',192,254);
INSERT INTO "communes" VALUES('70','Traves','24',352,354,12.29,'4038','52903',201,262);
INSERT INTO "communes" VALUES('70','Villefrancon','10',137,73,5.65,'3786','52672',198,238);
INSERT INTO "communes" VALUES('70','Chevigney','19',31,39,5.17,'3615','52594',195,241);
INSERT INTO "communes" VALUES('70','Bonnevent-Velloreille','10',345,287,5.32,'3996','52658',230,355);
INSERT INTO "communes" VALUES('70','Villars-le-Pautel','12',161,178,12.18,'3997','53217',220,342);
INSERT INTO "communes" VALUES('70','Villafans','27',196,154,6.44,'4595','52868',263,361);
INSERT INTO "communes" VALUES('70','Bussières','21',300,283,6.11,'4042','52597',210,306);
INSERT INTO "communes" VALUES('70','Denèvre','06',182,115,5.85,'3676','52854',199,247);
INSERT INTO "communes" VALUES('70','Battrans','09',228,204,5.32,'3667','52698',194,239);
INSERT INTO "communes" VALUES('70','Esmoulins','09',157,113,4.48,'3591','52672',188,213);
INSERT INTO "communes" VALUES('70','Corravillers','07',201,223,11.2,'4762','53215',415,768);
INSERT INTO "communes" VALUES('70','Écuelle','02',86,87,5.56,'3571','52833',212,260);
INSERT INTO "communes" VALUES('70','Betoncourt-sur-Mance','28',42,52,3.72,'3798','53146',223,367);
INSERT INTO "communes" VALUES('70','Vadans','19',137,96,12.95,'3611','52609',193,243);
INSERT INTO "communes" VALUES('70','Rosey','24',263,197,14.64,'4101','52851',224,371);
INSERT INTO "communes" VALUES('70','<NAME>','07',86,87,9,'4765','53231',439,818);
INSERT INTO "communes" VALUES('70','Corre','12',588,614,9.13,'4063','53243',219,303);
INSERT INTO "communes" VALUES('70','Bourbévelle','12',79,80,5.37,'4004','53249',222,315);
INSERT INTO "communes" VALUES('70','Plainemont','25',58,53,3.3,'4313','53171',226,303);
INSERT INTO "communes" VALUES('70','Raddon-et-Chapendu','07',930,835,12.5,'4594','53157',319,497);
INSERT INTO "communes" VALUES('70','Longevelle','27',114,104,4.1,'4568','52878',267,362);
INSERT INTO "communes" VALUES('70','Chantes','24',129,112,6.57,'3994','52926',201,262);
INSERT INTO "communes" VALUES('70','Dambenoît-lès-Colombe','32',276,277,8.69,'4498','53025',303,448);
INSERT INTO "communes" VALUES('70','Sainte-Marie-en-Chaux','32',170,162,2.43,'4418','53099',247,287);
INSERT INTO "communes" VALUES('70','Jasney','25',246,195,13.02,'4274','53189',227,321);
INSERT INTO "communes" VALUES('70','Sainte-Marie-en-Chanois','07',212,202,4.79,'4639','53148',340,572);
INSERT INTO "communes" VALUES('70','Chenebier','11',712,695,9.05,'4869','52935',346,472);
INSERT INTO "communes" VALUES('70','Ormoy','12',224,228,19.54,'4049','53211',216,343);
INSERT INTO "communes" VALUES('70','Verlans','11',157,110,1.64,'4871','52858',345,481);
INSERT INTO "communes" VALUES('70','Magny-lès-Jussey','12',116,123,9.31,'4047','53174',222,330);
INSERT INTO "communes" VALUES('70','Héricourt','94',10349,10142,18.08,'4917','52864',320,541);
INSERT INTO "communes" VALUES('70','Aulx-lès-Cromary','21',143,138,4.33,'4193','52638',217,273);
INSERT INTO "communes" VALUES('70','Tavey','11',453,329,2.96,'4895','52851',336,448);
INSERT INTO "communes" VALUES('70','Senargent-Mignafans','27',285,282,10.77,'4655','52850',269,372);
INSERT INTO "communes" VALUES('70','Volon','06',66,70,5.75,'3767','52915',204,262);
INSERT INTO "communes" VALUES('70','Ambiévillers','25',81,106,12.3,'4248','53306',242,492);
INSERT INTO "communes" VALUES('70','Fontenois-lès-Montbozon','17',303,291,14.27,'4331','52762',249,348);
INSERT INTO "communes" VALUES('70','Trémoins','11',355,303,4.03,'4853','52846',352,491);
INSERT INTO "communes" VALUES('70','Fretigney-et-Velloreille','08',683,626,22.02,'4011','52764',222,403);
INSERT INTO "communes" VALUES('70','Belmont','16',113,112,4.5,'4630','53097',335,417);
INSERT INTO "communes" VALUES('70','Blondefontaine','12',248,252,13.4,'3924','53197',218,373);
INSERT INTO "communes" VALUES('70','Fouchécourt','05',116,110,4.47,'4065','53100',211,281);
INSERT INTO "communes" VALUES('70','Cult','15',228,158,6.88,'3780','52571',235,331);
INSERT INTO "communes" VALUES('70','Villers-lès-Luxeuil','23',342,308,9.1,'4389','53080',253,395);
INSERT INTO "communes" VALUES('70','Abelcourt','23',340,303,7.46,'4393','53095',247,302);
INSERT INTO "communes" VALUES('70','Esmoulières','07',95,122,20.11,'4754','53170',367,674);
INSERT INTO "communes" VALUES('70','Froideterre','31',341,311,2.83,'4661','53008',299,337);
INSERT INTO "communes" VALUES('70','Champagney','03',3770,3309,36.71,'4828','53006',343,680);
INSERT INTO "communes" VALUES('70','Magny-Danigon','13',454,403,7.52,'4740','52972',302,463);
INSERT INTO "communes" VALUES('70','Passavant-la-Rochère','12',659,802,29.89,'4114','53298',227,452);
INSERT INTO "communes" VALUES('70','Moffans-et-Vacheresse','13',624,532,14.09,'4682','52921',280,369);
INSERT INTO "communes" VALUES('70','Montigny-lès-Cherlieu','28',177,152,20.98,'3861','53110',227,369);
INSERT INTO "communes" VALUES('70','Semmadon','05',135,95,10.82,'3927','53044',245,316);
INSERT INTO "communes" VALUES('70','Breuchotte','32',313,293,4.37,'4592','53151',312,422);
INSERT INTO "communes" VALUES('70','Contréglise','01',113,123,9.61,'4111','53140',223,348);
INSERT INTO "communes" VALUES('70','Port-sur-Saône','20',2990,2772,24.59,'4120','52987',206,337);
INSERT INTO "communes" VALUES('70','Bassigney','25',125,116,6.18,'4271','53129',220,305);
INSERT INTO "communes" VALUES('70','Pin','15',694,568,14.04,'3920','52581',203,368);
INSERT INTO "communes" VALUES('70','Montdoré','25',67,64,7.59,'4160','53246',229,392);
INSERT INTO "communes" VALUES('70','Pusy-et-Épenoux','29',545,479,10.07,'4237','52965',218,294);
INSERT INTO "communes" VALUES('70','Lantenot','32',372,271,8.26,'4621','53055',307,431);
INSERT INTO "communes" VALUES('70','Francalmont','22',119,123,6.86,'4368','53154',234,304);
INSERT INTO "communes" VALUES('70','<NAME>','28',267,330,29.39,'3783','53010',234,447);
INSERT INTO "communes" VALUES('70','<NAME>','13',64,35,3.88,'4609','52912',277,323);
INSERT INTO "communes" VALUES('70','Thieffrans','17',177,179,9.36,'4422','52779',247,353);
INSERT INTO "communes" VALUES('70','Belfahy','16',80,65,3.07,'4884','53093',520,1050);
INSERT INTO "communes" VALUES('70','Frotey-lès-Lure','13',634,501,7.21,'4686','52950',292,332);
INSERT INTO "communes" VALUES('70','Broye-Aubigney-Montseugny','19',457,461,25.36,'3525','52571',183,242);
INSERT INTO "communes" VALUES('70','Ruhans','17',146,111,4.95,'4222','52732',247,362);
INSERT INTO "communes" VALUES('70','Raincourt','12',126,136,8.28,'3943','53178',217,321);
INSERT INTO "communes" VALUES('70','Pennesières','21',171,141,9.07,'4179','52761',273,411);
INSERT INTO "communes" VALUES('70','Miellin','16',76,82,13.36,'4891','53122',470,1180);
INSERT INTO "communes" VALUES('70','Poyans','02',138,137,12.17,'3482','52719',194,248);
INSERT INTO "communes" VALUES('70','<NAME>','07',205,199,6.32,'4609','53145',309,426);
INSERT INTO "communes" VALUES('70','Chariez','29',220,196,7.66,'4168','52911',212,426);
INSERT INTO "communes" VALUES('70','Belonchamp','16',234,202,6.87,'4749','53077',334,680);
INSERT INTO "communes" VALUES('70','Tincey-et-Pontrebeau','06',83,77,6.95,'3840','52896',197,248);
INSERT INTO "communes" VALUES('70','Crevans-et-la-Chapelle-lès-Granges','27',260,235,3.91,'4721','52836',299,473);
INSERT INTO "communes" VALUES('70','Chaux-la-Lotière','21',369,295,8.88,'4048','52647',220,338);
INSERT INTO "communes" VALUES('70','Plancher-les-Mines','03',1092,1064,25.59,'4895','53068',483,1215);
INSERT INTO "communes" VALUES('70','Beveuge','27',86,93,5.18,'4607','52843',265,300);
INSERT INTO "communes" VALUES('70','Aillevillers-et-Lyaumont','22',1677,1850,36.3,'4443','53245',260,516);
INSERT INTO "communes" VALUES('70','Anjeux','25',164,165,8.71,'4302','53201',227,303);
INSERT INTO "communes" VALUES('70','Oppenans','27',54,60,3.57,'4493','52877',269,400);
INSERT INTO "communes" VALUES('70','Saint-Ferjeux','27',80,78,1.77,'4637','52826',277,318);
INSERT INTO "communes" VALUES('70','Malvillers','28',73,74,7.09,'3834','53035',248,359);
INSERT INTO "communes" VALUES('70','Chassey-lès-Montbozon','17',221,201,15.6,'4441','52790',248,408);
INSERT INTO "communes" VALUES('70','Molay','28',72,51,7.66,'3783','53036',254,426);
INSERT INTO "communes" VALUES('70','Malans','19',134,121,6.75,'3619','52515',190,280);
INSERT INTO "communes" VALUES('70','Grandvelle-et-le-Perrenot','24',343,232,10.44,'4065','52788',227,436);
INSERT INTO "communes" VALUES('70','Velesmes-Échevanne','09',521,444,22.11,'3739','52689',192,251);
INSERT INTO "communes" VALUES('70','Varogne','26',137,115,4.41,'4298','53017',243,330);
INSERT INTO "communes" VALUES('70','Vellefrie','26',134,100,5.91,'4315','53006',232,324);
INSERT INTO "communes" VALUES('70','Fleurey-lès-Saint-Loup','22',146,141,3.54,'4396','53242',251,331);
INSERT INTO "communes" VALUES('70','Montboillon','10',269,219,8.43,'3985','52635',218,372);
INSERT INTO "communes" VALUES('70','Gevigney-et-Mercey','05',470,457,19.45,'3994','53110',212,283);
INSERT INTO "communes" VALUES('70','Genevreuille','31',174,138,6.42,'4490','52967',291,411);
INSERT INTO "communes" VALUES('70','Chemilly','24',85,79,3.77,'4098','52943',207,264);
INSERT INTO "communes" VALUES('70','<NAME>','22',211,198,3.04,'4478','53239',290,358);
INSERT INTO "communes" VALUES('70','Saint-Sulpice','27',140,99,3.53,'4568','52851',260,319);
INSERT INTO "communes" VALUES('70','Vernois-sur-Mance','28',170,167,8.03,'3831','53163',222,374);
INSERT INTO "communes" VALUES('70','Corbenay','22',1344,1396,15.73,'4432','53212',246,331);
INSERT INTO "communes" VALUES('70','Montessaux','16',168,117,3.05,'4700','53045',315,350);
INSERT INTO "communes" VALUES('70','Saint-Loup-sur-Semouse','22',3460,4287,16.54,'4374','53205',231,315);
INSERT INTO "communes" VALUES('70','Apremont','09',433,362,14.4,'3563','52659',186,226);
INSERT INTO "communes" VALUES('70','Provenchère','20',292,207,5.82,'4211','53025',255,364);
INSERT INTO "communes" VALUES('70','Arpenans','13',240,190,11.8,'4519','52907',271,416);
INSERT INTO "communes" VALUES('70','Champey','11',857,713,11.3,'4827','52872',342,524);
INSERT INTO "communes" VALUES('70','Gray-la-Ville','09',977,1034,3.97,'3596','52711',187,238);
INSERT INTO "communes" VALUES('70','Rupt-sur-Saône','24',119,125,10.24,'3994','52940',200,341);
INSERT INTO "communes" VALUES('70','Neuvelle-lès-Cromary','21',324,211,6.29,'4154','52661',223,371);
INSERT INTO "communes" VALUES('70','Velet','09',418,445,6.05,'3589','52698',187,241);
INSERT INTO "communes" VALUES('70','Voray-sur-l''Ognon','21',811,806,6.9,'4090','52599',210,327);
INSERT INTO "communes" VALUES('70','Calmoutier','18',236,225,14.04,'4382','52940',258,390);
INSERT INTO "communes" VALUES('70','Champvans','09',213,217,7.15,'3599','52660',188,246);
INSERT INTO "communes" VALUES('70','Aroz','24',154,151,6.57,'4072','52902',212,267);
INSERT INTO "communes" VALUES('70','Essertenne-et-Cecey','02',404,337,11.3,'3490','52665',187,246);
INSERT INTO "communes" VALUES('70','Pont-sur-l''Ognon','27',57,51,4.16,'4501','52801',253,315);
INSERT INTO "communes" VALUES('70','Villers-Bouton','21',166,91,5.26,'4047','52724',307,421);
INSERT INTO "communes" VALUES('70','Vy-lès-Filain','17',86,73,5.31,'4288','52791',252,320);
INSERT INTO "communes" VALUES('70','Venère','19',192,151,7.96,'3709','52623',215,261);
INSERT INTO "communes" VALUES('70','Mercey-sur-Saône','08',138,104,7.69,'3771','52819',192,253);
INSERT INTO "communes" VALUES('70','Vregille','15',173,140,4.28,'3950','52578',204,277);
INSERT INTO "communes" VALUES('70','Gouhenans','27',431,373,8.45,'4592','52897',277,381);
INSERT INTO "communes" VALUES('70','Brussey','15',275,203,7.27,'3860','52556',200,336);
INSERT INTO "communes" VALUES('70','Roche-et-Raucourt','06',147,173,13.38,'3745','52911',205,264);
INSERT INTO "communes" VALUES('70','Hugier','15',136,81,7.08,'3747','52572',217,302);
INSERT INTO "communes" VALUES('70','Vy-lès-Rupt','24',105,100,8.28,'3955','52933',201,266);
INSERT INTO "communes" VALUES('70','Vellefrey-et-Vellefrange','10',110,93,7.13,'3882','52700',202,261);
INSERT INTO "communes" VALUES('70','Boulot','21',629,424,7.08,'4026','52609',209,287);
INSERT INTO "communes" VALUES('70','Recologne-lès-Rioz','21',215,188,10.18,'4056','52749',265,415);
INSERT INTO "communes" VALUES('70','Faymont','27',255,245,7.99,'4730','52899',295,451);
INSERT INTO "communes" VALUES('70','Broye-les-Loups-et-Verfontaine','02',104,83,7,'3430','52739',213,254);
INSERT INTO "communes" VALUES('70','Ferrières-lès-Ray','06',40,35,4,'3852','52867',197,231);
INSERT INTO "communes" VALUES('70','Maussans','17',67,71,3.92,'4351','52701',235,308);
INSERT INTO "communes" VALUES('70','Neuvelle-lès-la-Charité','24',227,201,13.2,'4017','52820',218,258);
INSERT INTO "communes" VALUES('70','Lieffrans','24',60,48,4.37,'4038','52800',222,255);
INSERT INTO "communes" VALUES('70','Fallon','27',314,322,5.64,'4605','52785',294,434);
INSERT INTO "communes" VALUES('70','Bousseraucourt','12',57,59,7.58,'3992','53290',229,347);
INSERT INTO "communes" VALUES('70','<NAME>-en-Fontenette','23',184,155,9.65,'4290','53080',225,397);
INSERT INTO "communes" VALUES('70','Sorans-lès-Breurey','21',417,345,14.37,'4127','52663',221,363);
INSERT INTO "communes" VALUES('70','Cintrey','28',113,140,6.08,'3799','53056',263,358);
INSERT INTO "communes" VALUES('70','Servance','16',846,955,39.24,'4828','53127',380,932);
INSERT INTO "communes" VALUES('70','Vallerois-Lorioz','18',359,207,6.31,'4238','52849',305,430);
INSERT INTO "communes" VALUES('70','Pesmes','19',1112,1058,18.64,'3587','52533',187,291);
INSERT INTO "communes" VALUES('70','Mélisey','16',1677,1802,20.67,'4715','53059',322,470);
INSERT INTO "communes" VALUES('70','Hyet','21',99,88,6.47,'4176','52749',267,417);
INSERT INTO "communes" VALUES('70','Maizières','21',304,292,11.68,'4083','52770',227,437);
INSERT INTO "communes" VALUES('70','Chassey-lès-Scey','24',106,102,4.38,'4047','52937',205,254);
INSERT INTO "communes" VALUES('70','Frahier-et-Chatebier','03',1230,1038,17.39,'4901','52956',352,493);
INSERT INTO "communes" VALUES('70','Fessey','07',136,94,5.54,'4646','53133',345,486);
INSERT INTO "communes" VALUES('70','Chambornay-lès-Pin','15',352,335,4.85,'3967','52597',202,276);
INSERT INTO "communes" VALUES('70','Saint-Broing','09',127,141,10.17,'3735','52721',189,231);
INSERT INTO "communes" VALUES('70','Alaincourt','25',96,89,5.83,'4183','53269',235,285);
INSERT INTO "communes" VALUES('70','Venisey','01',146,149,6.8,'4064','53147',215,312);
INSERT INTO "communes" VALUES('70','Clairegoutte','03',408,441,10.48,'4761','52960',305,589);
INSERT INTO "communes" VALUES('70','Mont-le-Vernois','29',156,128,7.76,'4138','52893',211,403);
INSERT INTO "communes" VALUES('70','Cromary','21',239,163,5.36,'4155','52625',215,282);
INSERT INTO "communes" VALUES('70','Champtonnay','09',85,89,5.24,'3703','52644',212,259);
INSERT INTO "communes" VALUES('70','Villers-le-Sec','18',528,483,11.11,'4314','52888',258,389);
INSERT INTO "communes" VALUES('70','Beaujeu-Saint-Vallier-Pierrejux-et-Quitteur','08',1009,739,35.12,'3711','52783',189,252);
INSERT INTO "communes" VALUES('70','Charmoille','29',442,362,5.04,'4190','52959',233,294);
INSERT INTO "communes" VALUES('70','Frotey-lès-Vesoul','26',1380,1426,7.63,'4276','52913',218,374);
INSERT INTO "communes" VALUES('70','Colombotte','18',59,48,4.35,'4386','52958',272,376);
INSERT INTO "communes" VALUES('70','Augicourt','05',168,142,9.06,'3957','53082',223,309);
INSERT INTO "communes" VALUES('70','Montagney','19',504,403,9.21,'3694','52541',192,282);
INSERT INTO "communes" VALUES('70','Autrey-le-Vay','27',71,69,2.79,'4516','52820',255,292);
INSERT INTO "communes" VALUES('70','Étobon','11',307,263,12.26,'4822','52937',343,585);
INSERT INTO "communes" VALUES('70','Saponcourt','01',62,70,4.89,'4101','53191',235,348);
INSERT INTO "communes" VALUES('70','Vellexon-Queutrey-et-Vaudey','08',495,491,24.98,'3854','52847',197,260);
INSERT INTO "communes" VALUES('70','<NAME>','19',84,90,4.76,'3595','52595',192,222);
INSERT INTO "communes" VALUES('70','Lœuilley','02',119,103,5.67,'3393','52736',206,248);
INSERT INTO "communes" VALUES('70','Esboz-Brest','32',502,376,9.69,'4573','53118',277,375);
INSERT INTO "communes" VALUES('70','Scye','20',106,108,5.84,'4135','52951',212,298);
INSERT INTO "communes" VALUES('70','Fédry','06',107,108,8.76,'3935','52907',196,264);
INSERT INTO "communes" VALUES('70','Oricourt','27',34,28,3.65,'4507','52884',278,393);
INSERT INTO "communes" VALUES('70','Moimay','27',223,165,6.22,'4524','52837',257,370);
INSERT INTO "communes" VALUES('70','La Neuvelle-lès-Lure','31',335,280,4.88,'4687','53020',300,336);
INSERT INTO "communes" VALUES('70','Servigney','23',104,102,5.78,'4404','53027',262,366);
INSERT INTO "communes" VALUES('70','Vauconcourt-Nervezain','06',228,212,18.43,'3876','52956',215,273);
INSERT INTO "communes" VALUES('70','Ainvelle','22',161,219,6.75,'4349','53163',228,298);
INSERT INTO "communes" VALUES('70','Franchevelle','31',419,310,10.42,'4583','53045',283,350);
INSERT INTO "communes" VALUES('70','Fougerolles','22',3792,3973,51.12,'4518','53206',276,569);
INSERT INTO "communes" VALUES('70','Framont','04',196,200,11.73,'3603','52865',207,264);
INSERT INTO "communes" VALUES('70','Neurey-en-Vaux','23',164,152,5.27,'4298','53052',256,421);
INSERT INTO "communes" VALUES('70','Arc-lès-Gray','09',2598,2904,12.1,'3609','52730',187,246);
INSERT INTO "communes" VALUES('70','Amont-et-Effreney','07',175,194,16.83,'4709','53195',360,661);
INSERT INTO "communes" VALUES('70','Chambornay-lès-Bellevaux','21',162,143,5.89,'4189','52657',219,332);
INSERT INTO "communes" VALUES('70','Frédéric-Fontaine','03',264,182,3.48,'4770','52952',334,498);
INSERT INTO "communes" VALUES('70','Fresse','16',728,638,27.15,'4801','53064',340,896);
INSERT INTO "communes" VALUES('70','Aboncourt-Gesincourt','05',232,204,10.68,'4040','53080',215,315);
INSERT INTO "communes" VALUES('70','Citers','32',839,750,15.17,'4519','53044',269,347);
INSERT INTO "communes" VALUES('70','Écromagny','16',166,175,6.8,'4696','53104',370,492);
INSERT INTO "communes" VALUES('70','Ormoiche','32',72,61,5.72,'4416','53118',238,316);
INSERT INTO "communes" VALUES('70','Traitiéfontaine','21',154,111,5.92,'4171','52683',238,331);
INSERT INTO "communes" VALUES('70','Rigny','02',616,586,12.72,'3663','52747',189,246);
INSERT INTO "communes" VALUES('70','Secenans','27',159,120,2.88,'4709','52837',293,383);
INSERT INTO "communes" VALUES('71','Lucenay-l''Évêque','24',379,385,25.36,'2121','52312',327,566);
INSERT INTO "communes" VALUES('71','Genouilly','36',412,414,10.88,'2485','51835',233,485);
INSERT INTO "communes" VALUES('71','Culles-les-Roches','04',191,193,8.9,'2574','51836',236,446);
INSERT INTO "communes" VALUES('71','Brandon','29',303,245,10.14,'2479','51520',272,570);
INSERT INTO "communes" VALUES('71','Sevrey','07',1421,1241,8.44,'2782','51931',174,205);
INSERT INTO "communes" VALUES('71','Ratenelle','49',371,341,8.03,'2977','51697',171,196);
INSERT INTO "communes" VALUES('71','Marcilly-lès-Buxy','04',632,488,18.98,'2510','51909',264,476);
INSERT INTO "communes" VALUES('71','Lugny-lès-Charolles','09',336,277,16.72,'2083','51568',265,365);
INSERT INTO "communes" VALUES('71','Grury','22',541,665,46.02,'1749','51862',246,422);
INSERT INTO "communes" VALUES('71','Chaudenay','05',1063,833,8.17,'2729','52128',196,232);
INSERT INTO "communes" VALUES('71','Marly-sous-Issy','22',98,116,21.42,'1769','51914',265,412);
INSERT INTO "communes" VALUES('71','<NAME>','49',261,235,5.58,'2882','51701',167,270);
INSERT INTO "communes" VALUES('71','Bray','12',121,127,9.89,'2650','51671',209,475);
INSERT INTO "communes" VALUES('71','Bissy-sous-Uxelles','41',67,59,3.1,'2648','51743',205,287);
INSERT INTO "communes" VALUES('71','Saint-Racho','11',174,188,10.57,'2257','51406',375,728);
INSERT INTO "communes" VALUES('71','Saint-Sernin-du-Plain','13',630,616,14.45,'2535','52102',230,542);
INSERT INTO "communes" VALUES('71','Montceaux-l''Étoile','28',269,255,9.64,'1897','51502',239,320);
INSERT INTO "communes" VALUES('71','Perreuil','13',511,395,9.16,'2479','52021',242,327);
INSERT INTO "communes" VALUES('71','Saint-Laurent-d''Andenay','33',1073,986,11.49,'2419','51931',295,442);
INSERT INTO "communes" VALUES('71','Ozenay','49',219,224,13.31,'2783','51713',224,399);
INSERT INTO "communes" VALUES('71','Joudes','15',414,407,11.16,'3358','51631',199,441);
INSERT INTO "communes" VALUES('71','L''Abergement-de-Cuisery','16',736,638,7.96,'2915','51754',171,212);
INSERT INTO "communes" VALUES('71','<NAME>','02',623,541,20.88,'3325','51853',189,215);
INSERT INTO "communes" VALUES('71','Saint-Christophe-en-Bresse','43',986,811,20.39,'2946','51947',178,215);
INSERT INTO "communes" VALUES('71','Bergesserin','12',301,332,7.22,'2472','51557',310,585);
INSERT INTO "communes" VALUES('71','Vitry-sur-Loire','03',456,461,27.38,'1523','51868',199,271);
INSERT INTO "communes" VALUES('71','Marly-sur-Arroux','48',333,361,25.6,'1997','51798',253,392);
INSERT INTO "communes" VALUES('71','Gigny-sur-Saône','47',533,504,14.36,'2899','51846',167,183);
INSERT INTO "communes" VALUES('71','Saint-Privé','04',84,65,5.21,'2482','51880',263,405);
INSERT INTO "communes" VALUES('71','Colombier-en-Brionnais','11',307,235,13.37,'2219','51507',333,519);
INSERT INTO "communes" VALUES('71','Saint-Vallerin','04',271,265,6.73,'2597','51874',219,415);
INSERT INTO "communes" VALUES('71','Saint-Germain-du-Plain','43',2176,1804,19.31,'2942','51890',171,197);
INSERT INTO "communes" VALUES('71','Trambly','29',401,374,12.08,'2441','51475',289,570);
INSERT INTO "communes" VALUES('71','Saint-Martin-Belle-Roche','26',1297,1152,4.54,'2799','51535',167,285);
INSERT INTO "communes" VALUES('71','Curtil-sous-Buffières','12',76,79,5.24,'2432','51557',324,510);
INSERT INTO "communes" VALUES('71','Ameugny','41',142,156,6.47,'2602','51695',205,280);
INSERT INTO "communes" VALUES('71','Saint-Clément-sur-Guye','36',131,115,7.4,'2498','51796',230,437);
INSERT INTO "communes" VALUES('71','Sercy','04',99,110,5.8,'2610','51782',189,265);
INSERT INTO "communes" VALUES('71','Branges','23',2393,2087,24.59,'3153','51828',173,209);
INSERT INTO "communes" VALUES('71','Huilly-sur-Seille','16',303,272,12.13,'3017','51769',173,213);
INSERT INTO "communes" VALUES('71','Saint-Berain-sous-Sanvignes','32',1030,980,45.07,'2176','51896',288,425);
INSERT INTO "communes" VALUES('71','Saint-Léger-sous-la-Bussière','50',261,256,8.64,'2464','51456',290,555);
INSERT INTO "communes" VALUES('71','Montjay','39',192,195,11.03,'3304','52008',182,209);
INSERT INTO "communes" VALUES('71','Savigny-sur-Grosne','41',174,174,6.52,'2594','51759',194,335);
INSERT INTO "communes" VALUES('71','Saint-Romain-sous-Versigny','48',102,121,17.73,'2055','51831',275,374);
INSERT INTO "communes" VALUES('71','Prizy','09',65,65,4.26,'2094','51507',281,402);
INSERT INTO "communes" VALUES('71','Saint-Firmin','14',809,772,15.77,'2369','52032',336,512);
INSERT INTO "communes" VALUES('71','Berzé-le-Châtel','12',60,69,5.53,'2614','51538',304,590);
INSERT INTO "communes" VALUES('71','<NAME>','30',115,122,13.86,'1991','51941',256,481);
INSERT INTO "communes" VALUES('71','Amanzé','11',175,203,11.29,'2116','51480',289,463);
INSERT INTO "communes" VALUES('71','Gourdon','36',874,871,25.41,'2345','51823',288,518);
INSERT INTO "communes" VALUES('71','Varennes-Saint-Sauveur','15',1168,1005,30.16,'3229','51647',182,219);
INSERT INTO "communes" VALUES('71','Montagny-sur-Grosne','29',90,66,6.84,'2459','51507',283,535);
INSERT INTO "communes" VALUES('71','Broye','30',811,688,28.39,'2170','52079',289,664);
INSERT INTO "communes" VALUES('71','Tancon','10',583,480,9.48,'2141','51336',285,441);
INSERT INTO "communes" VALUES('71','Dracy-Saint-Loup','01',603,615,21.2,'2221','52239',289,371);
INSERT INTO "communes" VALUES('71','Sancé','26',1881,1809,6.56,'2771','51489',168,309);
INSERT INTO "communes" VALUES('71','Lays-sur-le-Doubs','39',130,147,10.38,'3233','52135',177,182);
INSERT INTO "communes" VALUES('71','Saint-Vallier','56',9049,9541,24.21,'2261','51825',268,382);
INSERT INTO "communes" VALUES('71','Laizy','30',636,661,31.18,'2071','52120',270,500);
INSERT INTO "communes" VALUES('71','Bantanges','34',562,446,10.73,'3084','51788',175,201);
INSERT INTO "communes" VALUES('71','Auxy','52',987,1048,36.98,'2295','52166',344,572);
INSERT INTO "communes" VALUES('71','Barnay','24',106,114,15.4,'2224','52320',317,565);
INSERT INTO "communes" VALUES('71','Ligny-en-Brionnais','46',354,295,15.94,'2059','51375',327,508);
INSERT INTO "communes" VALUES('71','Guerreaux','17',254,244,20.01,'1762','51705',242,347);
INSERT INTO "communes" VALUES('71','Châtenay','11',160,166,8.07,'2274','51435',380,595);
INSERT INTO "communes" VALUES('71','Saint-Bonnet-de-Joux','40',798,842,29.43,'2336','51647',330,465);
INSERT INTO "communes" VALUES('71','Saint-Laurent-en-Brionnais','11',363,423,12.98,'2136','51415',309,487);
INSERT INTO "communes" VALUES('71','Saint-Bonnet-de-Vieille-Vigne','37',199,199,17.81,'2135','51695',272,447);
INSERT INTO "communes" VALUES('71','Étang-sur-Arroux','44',1958,1835,34.63,'2059','52074',266,433);
INSERT INTO "communes" VALUES('71','<NAME>','11',399,460,8.51,'2174','51400',317,553);
INSERT INTO "communes" VALUES('71','Frangy-en-Bresse','42',642,576,23.68,'3332','51925',180,212);
INSERT INTO "communes" VALUES('71','Briant','46',228,206,13.31,'2013','51445',280,548);
INSERT INTO "communes" VALUES('71','Lux','07',1829,1619,6.18,'2789','51949',172,191);
INSERT INTO "communes" VALUES('71','Bresse-sur-Grosne','47',211,174,10.02,'2661','51769',189,288);
INSERT INTO "communes" VALUES('71','Neuvy-Grandchamp','20',788,843,49.64,'1774','51766',264,397);
INSERT INTO "communes" VALUES('71','Louhans','23',6520,6237,22.58,'3209','51807',176,205);
INSERT INTO "communes" VALUES('71','Mellecey','19',1242,1142,14.23,'2658','52012',189,371);
INSERT INTO "communes" VALUES('71','Tournus','49',5849,6238,14.62,'2862','51735',168,323);
INSERT INTO "communes" VALUES('71','Laives','47',994,902,12.62,'2788','51828',177,331);
INSERT INTO "communes" VALUES('71','Cuisery','16',1653,1618,11.29,'2961','51732',172,213);
INSERT INTO "communes" VALUES('71','Baugy','28',515,478,12.61,'1879','51442',238,304);
INSERT INTO "communes" VALUES('71','Changy','09',441,410,20.12,'2129','51558',269,386);
INSERT INTO "communes" VALUES('71','Reclesne','24',305,297,20.83,'2149','52268',299,545);
INSERT INTO "communes" VALUES('71','Sailly','41',76,70,8.96,'2478','51707',212,392);
INSERT INTO "communes" VALUES('71','Jugy','47',301,250,7.69,'2810','51786',190,468);
INSERT INTO "communes" VALUES('71','<NAME>','49',204,218,5.09,'2905','51684',169,179);
INSERT INTO "communes" VALUES('71','Charette-Varennes','39',419,354,16.47,'3180','52127',173,196);
INSERT INTO "communes" VALUES('71','Sully','18',544,561,31.84,'2372','52230',308,530);
INSERT INTO "communes" VALUES('71','Montret','35',779,646,14.59,'3085','51865',183,210);
INSERT INTO "communes" VALUES('71','Saint-Émiland','13',328,319,23.9,'2386','52116',393,548);
INSERT INTO "communes" VALUES('71','Chassy','20',345,343,13.43,'1974','51764',258,360);
INSERT INTO "communes" VALUES('71','Condal','15',419,347,16.43,'3272','51623',187,230);
INSERT INTO "communes" VALUES('71','Château','12',266,223,14.04,'2517','51586',284,573);
INSERT INTO "communes" VALUES('71','Vaux-en-Pré','36',102,80,4.39,'2513','51808',262,415);
INSERT INTO "communes" VALUES('71','Serrières','50',292,265,9.84,'2604','51458',285,720);
INSERT INTO "communes" VALUES('71','Saint-Léger-sur-Dheune','05',1552,1321,12.16,'2555','52051',227,477);
INSERT INTO "communes" VALUES('71','Torcy','32',3097,3554,19.62,'2332','51982',294,362);
INSERT INTO "communes" VALUES('71','Varennes-sous-Dun','11',591,613,17.76,'2218','51433',347,712);
INSERT INTO "communes" VALUES('71','Volesvres','38',610,560,21.53,'2026','51635',239,307);
INSERT INTO "communes" VALUES('71','Saint-Bonnet-de-Cray','46',448,438,22.41,'2003','51350',278,467);
INSERT INTO "communes" VALUES('71','Champagny-sous-Uxelles','47',82,75,5.05,'2673','51756',199,287);
INSERT INTO "communes" VALUES('71','Marcilly-la-Gueurce','09',126,122,11.08,'2181','51557',279,419);
INSERT INTO "communes" VALUES('71','Oudry','37',384,355,20.78,'2022','51750',259,344);
INSERT INTO "communes" VALUES('71','Bissey-sous-Cruchaud','04',347,330,11.22,'2608','51924',191,468);
INSERT INTO "communes" VALUES('71','Fleury-la-Montagne','46',638,560,8.75,'1981','51338',304,445);
INSERT INTO "communes" VALUES('71','Ozolles','09',429,483,27.2,'2238','51536',309,515);
INSERT INTO "communes" VALUES('71','Leynes','08',486,503,4.83,'2657','51410',230,515);
INSERT INTO "communes" VALUES('71','Saint-Bonnet-en-Bresse','39',467,419,17.61,'3155','52060',177,198);
INSERT INTO "communes" VALUES('71','Chasselas','08',173,164,2.56,'2648','51418',286,485);
INSERT INTO "communes" VALUES('71','Pierreclos','50',915,813,12.41,'2612','51482',245,746);
INSERT INTO "communes" VALUES('71','Essertenne','13',442,481,12.82,'2455','52013',243,381);
INSERT INTO "communes" VALUES('71','Romanèche-Thorins','08',1869,1714,9.76,'2666','51322',168,262);
INSERT INTO "communes" VALUES('71','La Chapelle-Thècle','34',478,479,16.48,'3086','51729',174,204);
INSERT INTO "communes" VALUES('71','Saint-Nizier-sur-Arroux','30',118,110,10.16,'2003','52005',262,362);
INSERT INTO "communes" VALUES('71','Lacrost','49',692,598,10.53,'2880','51729',168,212);
INSERT INTO "communes" VALUES('71','La Vineuse','12',294,258,15.75,'2512','51635',240,540);
INSERT INTO "communes" VALUES('71','Igornay','24',508,497,21.71,'2269','52272',299,483);
INSERT INTO "communes" VALUES('71','Saint-Forgeot','01',496,478,15.96,'2181','52226',288,395);
INSERT INTO "communes" VALUES('71','Clessy','20',261,278,16.99,'1945','51731',242,340);
INSERT INTO "communes" VALUES('71','Fontaines','05',2007,1944,24.73,'2706','52056',183,315);
INSERT INTO "communes" VALUES('71','Curbigny','11',315,313,9.64,'2194','51453',364,467);
INSERT INTO "communes" VALUES('71','Saint-Martin-du-Lac','28',259,238,14.04,'1897','51393',242,417);
INSERT INTO "communes" VALUES('71','Créot','18',79,60,2.17,'2529','52131',282,500);
INSERT INTO "communes" VALUES('71','Jalogny','12',323,260,10.15,'2549','51577',242,480);
INSERT INTO "communes" VALUES('71','Sermesse','51',232,172,8.36,'3057','52112',173,197);
INSERT INTO "communes" VALUES('71','Simandre','16',1628,1275,22.79,'2946','51803',169,216);
INSERT INTO "communes" VALUES('71','Cortevaix','41',261,242,10.42,'2558','51707',201,407);
INSERT INTO "communes" VALUES('71','Saint-Rémy','07',6109,5961,10.38,'2779','51959',173,206);
INSERT INTO "communes" VALUES('71','Jouvençon','16',432,409,6.3,'3020','51749',172,197);
INSERT INTO "communes" VALUES('71','Pierre-de-Bresse','39',1965,1991,28.06,'3251','52093',177,214);
INSERT INTO "communes" VALUES('71','Cortambert','12',214,201,16.02,'2642','51643',220,505);
INSERT INTO "communes" VALUES('71','Dettey','30',93,107,22.5,'2051','51959',274,530);
INSERT INTO "communes" VALUES('71','Poisson','38',596,591,35.48,'1991','51539',250,366);
INSERT INTO "communes" VALUES('71','Anzy-le-Duc','28',440,434,25.06,'1915','51467',243,345);
INSERT INTO "communes" VALUES('71','Chérizet','12',33,35,2.88,'2483','51686',212,385);
INSERT INTO "communes" VALUES('71','Beaumont-sur-Grosne','47',333,269,7.82,'2803','51850',175,217);
INSERT INTO "communes" VALUES('71','Mercurey','19',1291,1269,15.44,'2647','52044',206,391);
INSERT INTO "communes" VALUES('71','<NAME>','30',249,228,34.07,'2088','51988',276,654);
INSERT INTO "communes" VALUES('71','Montchanin','33',5478,5600,7.82,'2369','51942',298,351);
INSERT INTO "communes" VALUES('71','Verjux','51',522,514,12.09,'2919','52088',173,176);
INSERT INTO "communes" VALUES('71','Serley','42',574,454,22.6,'3200','51981',187,214);
INSERT INTO "communes" VALUES('71','Mancey','47',389,355,10.02,'2773','51750',207,501);
INSERT INTO "communes" VALUES('71','Bouhans','42',152,154,10.21,'3287','51970',181,207);
INSERT INTO "communes" VALUES('71','Sens-sur-Seille','42',353,298,11.7,'3310','51939',180,210);
INSERT INTO "communes" VALUES('71','Cordesse','24',190,142,10.52,'2229','52265',295,505);
INSERT INTO "communes" VALUES('71','Saint-Martin-en-Bresse','45',1866,1638,34.59,'3027','52019',179,217);
INSERT INTO "communes" VALUES('71','Châtel-Moron','19',86,59,6.54,'2567','51993',294,497);
INSERT INTO "communes" VALUES('71','Demigny','05',1759,1532,29.63,'2775','52141',188,231);
INSERT INTO "communes" VALUES('71','Taizé','41',187,161,3.16,'2600','51682',210,263);
INSERT INTO "communes" VALUES('71','Thurey','42',427,352,18.22,'3096','51938',187,215);
INSERT INTO "communes" VALUES('71','Saint-Germain-du-Bois','42',1931,1762,30.33,'3229','51948',180,213);
INSERT INTO "communes" VALUES('71','Fuissé','27',355,317,4.86,'2674','51423',210,420);
INSERT INTO "communes" VALUES('71','Chambilly','28',515,497,13.63,'1863','51422',238,320);
INSERT INTO "communes" VALUES('71','Vendenesse-sur-Arroux','20',590,590,16.09,'1921','51809',243,352);
INSERT INTO "communes" VALUES('71','L''Hôpital-le-Mercier','38',307,300,16.47,'1865','51547',229,256);
INSERT INTO "communes" VALUES('71','Verosvres','40',437,402,22.96,'2341','51556',326,596);
INSERT INTO "communes" VALUES('71','Marmagne','32',1249,1329,32.26,'2246','52042',302,552);
INSERT INTO "communes" VALUES('71','<NAME>','96',22783,26280,18.11,'2338','52001',316,516);
INSERT INTO "communes" VALUES('71','Dezize-lès-Maranges','13',194,191,5.1,'2578','52124',270,520);
INSERT INTO "communes" VALUES('71','Mouthier-en-Bresse','39',398,419,30.32,'3391','52065',187,217);
INSERT INTO "communes" VALUES('71','Germolles-sur-Grosne','50',143,110,7.23,'2504','51422',336,626);
INSERT INTO "communes" VALUES('71','Digoin','17',8303,8947,34.72,'1827','51647',222,306);
INSERT INTO "communes" VALUES('71','Saint-Usuge','23',1230,1055,31.84,'3238','51865',177,210);
INSERT INTO "communes" VALUES('71','Igé','26',878,770,14.61,'2672','51553',225,600);
INSERT INTO "communes" VALUES('71','La Chapelle-Saint-Sauveur','39',675,639,27.36,'3258','52049',184,215);
INSERT INTO "communes" VALUES('71','Bragny-sur-Saône','51',588,463,14.79,'2993','52123',172,206);
INSERT INTO "communes" VALUES('71','Saint-Germain-lès-Buxy','04',273,179,13.42,'2706','51901',183,224);
INSERT INTO "communes" VALUES('71','Châtenoy-en-Bresse','07',974,820,6.69,'2863','51991',172,212);
INSERT INTO "communes" VALUES('71','Cersot','04',117,101,6.02,'2544','51900',261,463);
INSERT INTO "communes" VALUES('71','Jully-lès-Buxy','04',353,299,16.63,'2621','51878',192,310);
INSERT INTO "communes" VALUES('71','Fley','04',245,260,8.52,'2560','51855',269,460);
INSERT INTO "communes" VALUES('71','Saint-Cyr','47',742,572,13.12,'2837','51868',173,193);
INSERT INTO "communes" VALUES('71','Saillenard','02',729,561,17.88,'3373','51879',189,218);
INSERT INTO "communes" VALUES('71','Montceau-les-Mines','97',19372,20624,16.62,'2258','51852',274,326);
INSERT INTO "communes" VALUES('71','Charnay-lès-Mâcon','55',6827,6735,12.56,'2720','51455',179,310);
INSERT INTO "communes" VALUES('71','Écuelles','51',206,170,9.93,'3027','52160',173,205);
INSERT INTO "communes" VALUES('71','Mussy-sous-Dun','10',371,354,10,'2215','51371',338,705);
INSERT INTO "communes" VALUES('71','Sornay','23',1961,1660,18.12,'3158','51807',174,200);
INSERT INTO "communes" VALUES('71','Salornay-sur-Guye','12',834,705,11.02,'2511','51688',202,412);
INSERT INTO "communes" VALUES('71','Étrigny','47',448,395,19.22,'2741','51767',189,500);
INSERT INTO "communes" VALUES('71','Chevagny-sur-Guye','21',76,73,6.29,'2412','51710',237,470);
INSERT INTO "communes" VALUES('71','Cormatin','41',555,450,9.17,'2611','51717',201,260);
INSERT INTO "communes" VALUES('71','La Motte-Saint-Jean','17',1179,1180,21.32,'1808','51661',222,340);
INSERT INTO "communes" VALUES('71','Berzé-la-Ville','26',536,530,5.53,'2631','51516',238,505);
INSERT INTO "communes" VALUES('71','Vendenesse-lès-Charolles','09',797,699,27.38,'2223','51602',282,403);
INSERT INTO "communes" VALUES('71','Suin','40',284,304,21.98,'2371','51593',310,600);
INSERT INTO "communes" VALUES('71','Mary','36',228,217,14.55,'2413','51797',290,537);
INSERT INTO "communes" VALUES('71','Sarry','46',120,135,9.67,'1977','51456',254,420);
INSERT INTO "communes" VALUES('71','Lugny','25',932,798,13.88,'2748','51636',201,420);
INSERT INTO "communes" VALUES('71','Coublanc','10',885,897,8.76,'2152','51304',330,570);
INSERT INTO "communes" VALUES('71','Saint-Yan','38',1124,1081,26.15,'1891','51569',229,287);
INSERT INTO "communes" VALUES('71','Mont-lès-Seurre','51',177,136,6.43,'3095','52164',174,194);
INSERT INTO "communes" VALUES('71','Saint-Julien-de-Civry','09',503,550,21.01,'2107','51517',264,406);
INSERT INTO "communes" VALUES('71','Chagny','05',5572,5593,18.9,'2685','52123',201,315);
INSERT INTO "communes" VALUES('71','Frontenard','39',234,220,12.31,'3134','52125',175,193);
INSERT INTO "communes" VALUES('71','Flagy','12',181,139,8.38,'2558','51666',229,436);
INSERT INTO "communes" VALUES('71','Marcigny','28',1908,1998,8.15,'1894','51416',237,338);
INSERT INTO "communes" VALUES('71','Chânes','08',554,512,2.24,'2686','51391',196,264);
INSERT INTO "communes" VALUES('71','Messey-sur-Grosne','04',742,627,15.21,'2675','51827',181,224);
INSERT INTO "communes" VALUES('71','Chevagny-les-Chevrières','26',605,403,3.8,'2706','51481',212,375);
INSERT INTO "communes" VALUES('71','Savigny-sur-Seille','35',459,359,14.48,'3079','51804',174,207);
INSERT INTO "communes" VALUES('71','Pontoux','51',230,156,13.77,'3081','52138',174,194);
INSERT INTO "communes" VALUES('71','Saint-Vincent-en-Bresse','35',506,468,15.75,'3027','51851',183,212);
INSERT INTO "communes" VALUES('71','Saint-Didier-en-Brionnais','46',148,151,11.34,'1988','51485',254,348);
INSERT INTO "communes" VALUES('71','Pressy-sous-Dondin','40',98,71,12.38,'2416','51639',236,445);
INSERT INTO "communes" VALUES('71','Joncy','21',526,457,15.15,'2468','51793',222,450);
INSERT INTO "communes" VALUES('71','Azé','25',1049,941,14.97,'2693','51591',220,550);
INSERT INTO "communes" VALUES('71','Chassigny-sous-Dun','10',613,557,13.28,'2175','51377',305,546);
INSERT INTO "communes" VALUES('71','Romenay','49',1642,1581,48.9,'3035','51670',172,214);
INSERT INTO "communes" VALUES('71','<NAME>','14',3602,3669,28.8,'2385','51994',277,421);
INSERT INTO "communes" VALUES('71','Chassey-le-Camp','05',321,277,8.62,'2622','52097',216,432);
INSERT INTO "communes" VALUES('71','Sassenay','53',1553,1402,18.91,'2872','52034',172,192);
INSERT INTO "communes" VALUES('71','Saint-André-le-Désert','12',257,258,17.87,'2438','51661',222,466);
INSERT INTO "communes" VALUES('71','Chenay-le-Châtel','28',400,386,32.14,'1781','51364',267,344);
INSERT INTO "communes" VALUES('71','Iguerande','46',1010,917,21.43,'1936','51339',245,425);
INSERT INTO "communes" VALUES('71','Dracy-le-Fort','19',1327,1093,6.36,'2693','51998',186,280);
INSERT INTO "communes" VALUES('71','Saint-Micaud','36',253,202,20.91,'2456','51879',258,425);
INSERT INTO "communes" VALUES('71','Ratte','23',385,342,8.99,'3296','51828',182,207);
INSERT INTO "communes" VALUES('71','Chenôves','04',223,203,10.54,'2593','51856',194,439);
INSERT INTO "communes" VALUES('71','Buffières','12',261,227,12.13,'2447','51589',250,553);
INSERT INTO "communes" VALUES('71','<NAME>','21',253,238,24.74,'2364','51746',265,486);
INSERT INTO "communes" VALUES('71','Devrouze','42',302,251,14.64,'3135','51959',187,212);
INSERT INTO "communes" VALUES('71','Palinges','37',1526,1494,36.55,'2092','51727',251,328);
INSERT INTO "communes" VALUES('71','Vauban','11',235,215,13.63,'2097','51401',339,508);
INSERT INTO "communes" VALUES('71','Baron','09',288,217,13.29,'2158','51659',282,446);
INSERT INTO "communes" VALUES('71','Sagy','02',1217,1109,34.21,'3302','51779',182,218);
INSERT INTO "communes" VALUES('71','Massy','12',61,50,5.07,'2520','51649',222,389);
INSERT INTO "communes" VALUES('71','Épertully','18',60,60,3.36,'2523','52159',345,476);
INSERT INTO "communes" VALUES('71','Saint-Albain','25',532,434,5.64,'2823','51587',168,252);
INSERT INTO "communes" VALUES('71','Saint-Martin-de-Salencey','21',103,116,15.78,'2407','51691',238,500);
INSERT INTO "communes" VALUES('71','Saint-Maurice-lès-Châteauneuf','10',583,574,10.84,'2130','51351',286,412);
INSERT INTO "communes" VALUES('71','Chissey-en-Morvan','24',300,282,29.9,'2099','52352',350,607);
INSERT INTO "communes" VALUES('71','Saint-Pierre-le-Vieux','50',340,333,15.79,'2444','51428',318,638);
INSERT INTO "communes" VALUES('71','Sommant','24',207,186,20.57,'2089','52277',319,654);
INSERT INTO "communes" VALUES('71','Blanot','12',164,142,11.52,'2665','51637',265,576);
INSERT INTO "communes" VALUES('71','Crissey','53',2431,1839,10.97,'2829','52020',172,191);
INSERT INTO "communes" VALUES('71','Saules','04',124,118,2.06,'2595','51840',218,435);
INSERT INTO "communes" VALUES('71','Villeneuve-en-Montagne','04',154,143,15.57,'2525','51965',279,476);
INSERT INTO "communes" VALUES('71','Sainte-Croix','34',586,464,20.87,'3233','51746',177,210);
INSERT INTO "communes" VALUES('71','Montcony','02',286,224,10.74,'3286','51888',179,210);
INSERT INTO "communes" VALUES('71','Charnay-lès-Chalon','51',177,178,9.24,'3062','52154',172,188);
INSERT INTO "communes" VALUES('71','Montagny-près-Louhans','23',479,371,9.51,'3259','51843',178,208);
INSERT INTO "communes" VALUES('71','<NAME>','44',531,570,46.54,'2004','52183',292,715);
INSERT INTO "communes" VALUES('71','Saint-André-en-Bresse','35',108,96,4.86,'3059','51836',181,210);
INSERT INTO "communes" VALUES('71','Juif','35',254,229,11.8,'3137','51869',182,210);
INSERT INTO "communes" VALUES('71','Saint-Julien-de-Jonzy','46',292,299,22.66,'2007','51375',330,542);
INSERT INTO "communes" VALUES('71','Beaubery','40',371,357,22.98,'2291','51559',312,555);
INSERT INTO "communes" VALUES('71','Bruailles','23',937,838,22.36,'3222','51773',177,210);
INSERT INTO "communes" VALUES('71','Nochize','38',95,84,11.07,'2041','51551',249,353);
INSERT INTO "communes" VALUES('71','Verzé','26',729,639,19.84,'2665','51530',226,590);
INSERT INTO "communes" VALUES('71','Matour','29',1078,998,27.99,'2384','51453',328,757);
INSERT INTO "communes" VALUES('71','<NAME>','47',241,226,15.87,'2699','51815',183,233);
INSERT INTO "communes" VALUES('71','Damerey','45',580,420,11.62,'2949','52038',174,196);
INSERT INTO "communes" VALUES('71','Chapaize','41',127,159,13.76,'2667','51730',203,315);
INSERT INTO "communes" VALUES('71','Gibles','11',629,608,19.66,'2269','51472',343,691);
INSERT INTO "communes" VALUES('71','<NAME>-en-Morvan','24',440,502,20.17,'2051','52236',307,590);
INSERT INTO "communes" VALUES('71','Cheilly-lès-Maranges','13',498,439,7,'2594','52106',216,400);
INSERT INTO "communes" VALUES('71','Montpont-en-Bresse','34',1114,1012,37.46,'3142','51730',182,213);
INSERT INTO "communes" VALUES('71','Cuiseaux','15',1791,1748,21.26,'3390','51660',188,647);
INSERT INTO "communes" VALUES('71','Lesme','03',186,165,5.08,'1533','51835',202,260);
INSERT INTO "communes" VALUES('71','Ouroux-sous-le-Bois-Sainte-Marie','11',71,70,4.8,'2194','51510',312,418);
INSERT INTO "communes" VALUES('71','La Roche-Vineuse','26',1433,1353,11.96,'2660','51493',212,422);
INSERT INTO "communes" VALUES('71','Vérissey','35',51,58,8.27,'3092','51901',185,212);
INSERT INTO "communes" VALUES('71','Senozan','26',1109,918,4.86,'2811','51549',167,285);
INSERT INTO "communes" VALUES('71','Bizots','32',457,435,21.69,'2282','51946',289,421);
INSERT INTO "communes" VALUES('71','Saint-Romain-sous-Gourdon','36',506,454,18.78,'2297','51802',301,467);
INSERT INTO "communes" VALUES('71','Tronchy','43',238,186,7.76,'3039','51919',183,211);
INSERT INTO "communes" VALUES('71','Plottes','49',590,0,10.07,'2818','51701',186,353);
INSERT INTO "communes" VALUES('71','Granges','19',524,299,10.83,'2681','51922',184,222);
INSERT INTO "communes" VALUES('71','Hurigny','26',1908,1474,9.2,'2733','51499',222,391);
INSERT INTO "communes" VALUES('71','Saint-Jean-de-Vaux','19',399,324,2.26,'2626','52009',221,325);
INSERT INTO "communes" VALUES('71','<NAME>','16',550,454,11.57,'3009','51724',172,200);
INSERT INTO "communes" VALUES('71','Gergy','51',2554,2248,38.84,'2900','52085',172,208);
INSERT INTO "communes" VALUES('71','Morlet','18',55,74,6.69,'2413','52172',343,457);
INSERT INTO "communes" VALUES('71','Saint-Eugène','30',174,181,35.27,'2064','51930',264,554);
INSERT INTO "communes" VALUES('71','Changé','18',235,213,6.56,'2553','52144',274,513);
INSERT INTO "communes" VALUES('71','Saint-Ambreuil','47',533,479,18.26,'2804','51880',175,217);
INSERT INTO "communes" VALUES('71','Chaintré','08',531,504,3.31,'2692','51401',171,285);
INSERT INTO "communes" VALUES('71','Couches','13',1485,1409,19.52,'2484','52077',231,466);
INSERT INTO "communes" VALUES('71','Saint-Germain-en-Brionnais','11',187,171,5.96,'2133','51499',307,456);
INSERT INTO "communes" VALUES('71','Artaix','28',409,336,21.41,'1860','51384',242,331);
INSERT INTO "communes" VALUES('71','Saint-Jean-de-Trézy','13',315,281,11.1,'2501','52040',233,390);
INSERT INTO "communes" VALUES('71','Saint-Aubin-en-Charollais','37',448,384,19.61,'2088','51662',248,312);
INSERT INTO "communes" VALUES('71','Saint-Christophe-en-Brionnais','46',490,513,15.07,'2046','51433',335,508);
INSERT INTO "communes" VALUES('71','Bois-Sainte-Marie','11',198,215,2.69,'2243','51477',390,462);
INSERT INTO "communes" VALUES('71','Pruzilly','08',262,236,4.29,'2623','51399',299,643);
INSERT INTO "communes" VALUES('71','Laizé','26',1061,693,10.44,'2744','51550',191,319);
INSERT INTO "communes" VALUES('71','Uchon','30',97,85,11.86,'2131','52014',309,681);
INSERT INTO "communes" VALUES('71','Fontenay','09',44,36,2.46,'2179','51639',289,361);
INSERT INTO "communes" VALUES('71','Saint-Léger-sous-Beuvray','44',474,523,34.97,'1961','52137',294,821);
INSERT INTO "communes" VALUES('71','Germagny','04',197,156,3.47,'2518','51855',245,358);
INSERT INTO "communes" VALUES('71','Saint-Edmond','10',369,318,10.38,'2085','51338',279,387);
INSERT INTO "communes" VALUES('71','Paray-le-Monial','38',9107,9191,25.2,'1981','51612',234,304);
INSERT INTO "communes" VALUES('71','<NAME>','24',52,65,9.88,'2026','52277',337,654);
INSERT INTO "communes" VALUES('71','Navilly','51',413,414,9.68,'3120','52151',173,194);
INSERT INTO "communes" VALUES('71','Saint-Martin-sous-Montaigu','19',331,375,3.65,'2641','52018',214,397);
INSERT INTO "communes" VALUES('71','Frontenaud','15',743,645,15.19,'3286','51725',181,213);
INSERT INTO "communes" VALUES('71','Simard','35',1148,880,22.12,'3160','51912',187,212);
INSERT INTO "communes" VALUES('71','Lans','07',881,851,8.11,'2873','51967',176,195);
INSERT INTO "communes" VALUES('71','Chiddes','40',77,73,7.61,'2420','51619',247,456);
INSERT INTO "communes" VALUES('71','Saint-Martin-la-Patrouille','21',53,61,6.76,'2464','51758',217,370);
INSERT INTO "communes" VALUES('71','Saint-Désert','19',909,850,4.99,'2636','51949',212,400);
INSERT INTO "communes" VALUES('71','Perrigny-sur-Loire','03',147,130,15.4,'1667','51711',213,342);
INSERT INTO "communes" VALUES('71','Sanvignes-les-Mines','48',4373,4341,35.48,'2174','51851',277,405);
INSERT INTO "communes" VALUES('71','Issy-l''Évêque','22',823,907,71.13,'1819','51897',273,506);
INSERT INTO "communes" VALUES('71','Dennevy','05',323,293,4.62,'2569','52073',223,337);
INSERT INTO "communes" VALUES('71','Fretterans','39',291,296,10.27,'3281','52134',178,186);
INSERT INTO "communes" VALUES('71','Anost','24',692,678,51.91,'1959','52308',357,785);
INSERT INTO "communes" VALUES('71','Hautefond','38',211,227,13.62,'2063','51598',243,338);
INSERT INTO "communes" VALUES('71','Monthelon','01',403,279,24.57,'2098','52175',278,385);
INSERT INTO "communes" VALUES('71','Jambles','19',479,476,8.25,'2619','51971',234,495);
INSERT INTO "communes" VALUES('71','Bissy-sur-Fley','04',100,73,4.8,'2538','51847',274,406);
INSERT INTO "communes" VALUES('71','Donzy-le-National','12',190,195,10.28,'2477','51615',235,480);
INSERT INTO "communes" VALUES('71','Lalheue','47',367,300,6.87,'2731','51832',181,209);
INSERT INTO "communes" VALUES('71','Bourgvilain','50',331,321,11.81,'2550','51522',260,681);
INSERT INTO "communes" VALUES('71','Martigny-le-Comte','37',422,463,37.27,'2218','51699',294,452);
INSERT INTO "communes" VALUES('71','Grandvaux','37',82,68,6.18,'2141','51678',273,443);
INSERT INTO "communes" VALUES('71','<NAME>','44',185,199,22.73,'1972','52088',283,446);
INSERT INTO "communes" VALUES('71','Versaugues','38',207,192,10.86,'1918','51513',240,329);
INSERT INTO "communes" VALUES('71','Chalmoux','03',702,777,38.47,'1680','51776',242,388);
INSERT INTO "communes" VALUES('71','Cuzy','22',141,130,17.91,'1883','51956',269,455);
INSERT INTO "communes" VALUES('71','Saisy','18',312,308,17.12,'2459','52177',330,471);
INSERT INTO "communes" VALUES('71','Montmort','22',207,182,31.73,'1950','51929',248,486);
INSERT INTO "communes" VALUES('71','Guerfand','45',181,104,6.44,'2993','51986',190,218);
INSERT INTO "communes" VALUES('71','Burnand','41',119,122,6.52,'2557','51781',219,403);
INSERT INTO "communes" VALUES('71','Champlecy','09',233,235,22.82,'2119','51633',249,363);
INSERT INTO "communes" VALUES('71','<NAME>','39',302,287,11,'3248','52031',188,214);
INSERT INTO "communes" VALUES('71','<NAME>','42',121,95,3.83,'3362','51935',185,210);
INSERT INTO "communes" VALUES('71','Saint-Didier-en-Bresse','45',160,154,11.29,'3060','52059',177,193);
INSERT INTO "communes" VALUES('71','<NAME>','08',3746,2598,12.44,'2687','51345',168,295);
INSERT INTO "communes" VALUES('71','Bellevesvre','39',274,246,7.13,'3364','52046',185,213);
INSERT INTO "communes" VALUES('71','Pourlans','39',204,182,16.04,'3224','52174',177,196);
INSERT INTO "communes" VALUES('71','Saint-Bérain-sur-Dheune','19',577,499,12.67,'2517','52027',234,480);
INSERT INTO "communes" VALUES('71','Saint-Vincent-des-Prés','12',119,112,6.3,'2473','51638',223,356);
INSERT INTO "communes" VALUES('71','Saint-Gilles','05',320,298,3.64,'2589','52084',220,410);
INSERT INTO "communes" VALUES('71','Burzy','41',66,60,5.31,'2495','51775',222,373);
INSERT INTO "communes" VALUES('71','La Charmée','07',688,569,13.95,'2730','51911',178,206);
INSERT INTO "communes" VALUES('71','Le Planois','42',105,74,5.17,'3323','51986',181,208);
INSERT INTO "communes" VALUES('71','Semur-en-Brionnais','46',609,723,15.56,'1949','51403',271,464);
INSERT INTO "communes" VALUES('71','Saint-Amour-Bellevue','08',570,461,5.09,'2674','51383',202,475);
INSERT INTO "communes" VALUES('71','Saint-Martin-de-Lixy','10',91,106,4.19,'2121','51337',280,414);
INSERT INTO "communes" VALUES('71','Sainte-Radegonde','22',178,210,22.95,'1925','51870',255,470);
INSERT INTO "communes" VALUES('71','Saint-Sernin-du-Bois','14',1808,1721,14.67,'2330','52044',318,537);
INSERT INTO "communes" VALUES('71','Massilly','12',374,362,5.44,'2594','51656',212,306);
INSERT INTO "communes" VALUES('71','Oyé','46',290,285,18.38,'2061','51471',273,497);
INSERT INTO "communes" VALUES('71','Montceaux-Ragny','47',36,56,2.53,'2785','51801',245,425);
INSERT INTO "communes" VALUES('71','Ouroux-sur-Saône','43',2987,2501,22.62,'2908','51913',171,197);
INSERT INTO "communes" VALUES('71','Dampierre-en-Bresse','39',167,130,11.09,'3180','52030',181,214);
INSERT INTO "communes" VALUES('71','Mâcon','99',34040,34472,27.04,'2772','51452',167,347);
INSERT INTO "communes" VALUES('71','Préty','49',562,556,12.4,'2896','51715',167,212);
INSERT INTO "communes" VALUES('71','Lessard-le-National','05',602,548,10.56,'2777','52073',185,229);
INSERT INTO "communes" VALUES('71','Sennecey-le-Grand','47',3101,2957,26.76,'2815','51825',173,375);
INSERT INTO "communes" VALUES('71','Montmelard','29',322,333,22.35,'2304','51478',345,765);
INSERT INTO "communes" VALUES('71','Bussières','27',592,535,4.08,'2627','51488',219,405);
INSERT INTO "communes" VALUES('71','Saint-Symphorien-d''Ancelles','08',1069,874,6.13,'2704','51331',168,198);
INSERT INTO "communes" VALUES('71','Cronat','03',570,558,60.62,'1497','51914',196,277);
INSERT INTO "communes" VALUES('71','Vergisson','27',245,247,5.77,'2643','51454',255,575);
INSERT INTO "communes" VALUES('71','Collonge-la-Madeleine','18',46,62,5.29,'2428','52156',360,457);
INSERT INTO "communes" VALUES('71','Ciel','51',751,600,17.19,'3007','52092',173,196);
INSERT INTO "communes" VALUES('71','<NAME>','25',561,440,5.67,'2814','51565',168,252);
INSERT INTO "communes" VALUES('71','Saint-Vérand','08',178,182,2.45,'2666','51394',220,475);
INSERT INTO "communes" VALUES('71','Melay','28',933,820,36.5,'1867','51348',245,353);
INSERT INTO "communes" VALUES('71','La Villeneuve','51',220,204,7.35,'3151','52175',176,193);
INSERT INTO "communes" VALUES('71','Chalon-sur-Saône','98',44985,50110,15.22,'2790','51993',172,192);
INSERT INTO "communes" VALUES('71','Savigny-en-Revermont','02',1180,921,27.21,'3427','51816',188,223);
INSERT INTO "communes" VALUES('71','Torpes','39',394,364,15.7,'3335','52046',182,212);
INSERT INTO "communes" VALUES('71','<NAME>','36',86,110,5.3,'2475','51865',249,421);
INSERT INTO "communes" VALUES('71','Saint-Point','50',344,316,14.24,'2534','51489',296,746);
INSERT INTO "communes" VALUES('71','Marizy','21',465,453,30.75,'2302','51741',304,463);
INSERT INTO "communes" VALUES('71','Saunières','51',87,93,7.4,'3048','52113',173,180);
INSERT INTO "communes" VALUES('71','Royer','49',126,117,5.89,'2764','51729',235,422);
INSERT INTO "communes" VALUES('71','Marnay','07',504,447,5.08,'2877','51891',171,180);
INSERT INTO "communes" VALUES('71','Vers','47',204,159,4.18,'2799','51760',203,462);
INSERT INTO "communes" VALUES('71','<NAME>','53',473,375,5.77,'2769','52049',177,204);
INSERT INTO "communes" VALUES('71','Saint-Ythaire','41',132,122,9.3,'2526','51743',243,411);
INSERT INTO "communes" VALUES('71','Oslon','07',1329,982,4.76,'2873','51982',179,214);
INSERT INTO "communes" VALUES('71','<NAME>','15',565,494,18.48,'3331','51707',187,226);
INSERT INTO "communes" VALUES('71','Palleau','51',201,109,10.68,'2992','52174',175,205);
INSERT INTO "communes" VALUES('71','Saint-Huruge','41',63,50,4.03,'2480','51756',218,335);
INSERT INTO "communes" VALUES('71','Martailly-lès-Brancion','49',119,139,8.85,'2740','51702',214,476);
INSERT INTO "communes" VALUES('71','Saint-Léger-lès-Paray','38',634,582,13.37,'1947','51637',234,303);
INSERT INTO "communes" VALUES('71','Cluny','12',4638,4371,23.71,'2581','51594',226,574);
INSERT INTO "communes" VALUES('71','Clermain','50',232,196,5.78,'2494','51520',262,545);
INSERT INTO "communes" VALUES('71','Saint-Vincent-Bragny','37',982,852,41,'1987','51705',241,332);
INSERT INTO "communes" VALUES('71','Montbellet','25',784,654,19.78,'2817','51639',169,340);
INSERT INTO "communes" VALUES('71','Sivignon','40',168,202,12.5,'2403','51585',274,509);
INSERT INTO "communes" VALUES('71','Milly-Lamartine','26',332,305,2.88,'2625','51499',237,506);
INSERT INTO "communes" VALUES('71','Charolles','09',2794,3026,19.98,'2154','51594',272,355);
INSERT INTO "communes" VALUES('71','Cressy-sur-Somme','22',233,210,28.13,'1702','51883',232,392);
INSERT INTO "communes" VALUES('71','Saint-Boil','04',471,406,11.66,'2608','51839',193,366);
INSERT INTO "communes" VALUES('71','Varennes-lès-Mâcon','27',554,480,4.75,'2743','51412',167,184);
INSERT INTO "communes" VALUES('71','La Chapelle-du-Mont-de-France','29',174,172,9.11,'2444','51536',294,546);
INSERT INTO "communes" VALUES('71','Vinzelles','27',733,712,4.43,'2702','51413',170,303);
INSERT INTO "communes" VALUES('71','Sologny','26',560,458,10.65,'2607','51511',260,602);
INSERT INTO "communes" VALUES('71','Beauvernois','39',90,82,8.94,'3453','52038',191,218);
INSERT INTO "communes" VALUES('71','Dyo','11',342,327,15.8,'2155','51511',288,469);
INSERT INTO "communes" VALUES('71','Gilly-sur-Loire','03',478,536,22.63,'1603','51709',207,311);
INSERT INTO "communes" VALUES('71','Péronne','25',580,456,10.56,'2748','51598',222,441);
INSERT INTO "communes" VALUES('71','Tavernay','01',513,520,25.56,'2109','52238',294,480);
INSERT INTO "communes" VALUES('71','Prissé','27',1767,1633,10.85,'2676','51468',192,401);
INSERT INTO "communes" VALUES('71','Saint-Denis-de-Vaux','19',277,247,3.71,'2623','51995',230,431);
INSERT INTO "communes" VALUES('71','Donzy-le-Pertuis','12',157,132,6.11,'2649','51612',294,571);
INSERT INTO "communes" VALUES('71','Dompierre-les-Ormes','29',949,794,30.23,'2383','51513',316,705);
INSERT INTO "communes" VALUES('71','Vindecy','28',260,268,16.56,'1860','51503',233,264);
INSERT INTO "communes" VALUES('71','Longepierre','51',183,167,12.05,'3191','52151',173,182);
INSERT INTO "communes" VALUES('71','L''Abergement-Sainte-Colombe','43',1110,933,19.53,'2967','51947',181,217);
INSERT INTO "communes" VALUES('71','Serrigny-en-Bresse','42',192,130,12.36,'3090','52019',182,204);
INSERT INTO "communes" VALUES('71','Viry','09',247,245,20.14,'2219','51636',279,430);
INSERT INTO "communes" VALUES('71','Flacey-en-Bresse','15',362,353,13.72,'3394','51776',188,220);
INSERT INTO "communes" VALUES('71','Saint-Maurice-lès-Couches','13',169,160,4.69,'2516','52089',236,385);
INSERT INTO "communes" VALUES('71','Tintry','18',80,68,9.66,'2398','52145',345,472);
INSERT INTO "communes" VALUES('71','Champforgeuil','53',2315,2185,7.29,'2775','52022',174,201);
INSERT INTO "communes" VALUES('71','Saint-Gervais-en-Vallière','51',420,304,16.27,'2905','52156',178,206);
INSERT INTO "communes" VALUES('71','Saint-Didier-sur-Arroux','44',241,273,27.94,'1976','52037',263,470);
INSERT INTO "communes" VALUES('71','Saint-Maurice-de-Satonnay','25',416,346,10.33,'2720','51571',201,343);
INSERT INTO "communes" VALUES('71','Saint-Pierre-de-Varennes','13',822,830,23.08,'2403','52046',285,490);
INSERT INTO "communes" VALUES('71','Dompierre-sous-Sanvignes','48',71,79,13.58,'2099','51836',275,344);
INSERT INTO "communes" VALUES('71','Ormes','16',517,437,9.8,'2920','51815',167,214);
INSERT INTO "communes" VALUES('71','Allerey-sur-Saône','51',785,617,16.42,'2940','52118',172,205);
INSERT INTO "communes" VALUES('71','Curdin','20',321,319,8,'1844','51772',258,352);
INSERT INTO "communes" VALUES('71','Bordes','51',99,86,2.28,'2991','52107',172,179);
INSERT INTO "communes" VALUES('71','Uchizy','49',788,729,12.49,'2832','51671',169,325);
INSERT INTO "communes" VALUES('71','Gueugnon','20',7512,8564,28.51,'1916','51779',233,352);
INSERT INTO "communes" VALUES('71','Chissey-lès-Mâcon','41',254,226,15.28,'2673','51695',212,551);
INSERT INTO "communes" VALUES('71','Vitry-lès-Cluny','12',67,56,4.71,'2500','51656',213,355);
INSERT INTO "communes" VALUES('71','Saint-Gengoux-de-Scissé','25',597,533,10.9,'2710','51627',255,530);
INSERT INTO "communes" VALUES('71','La Chapelle-sous-Uchon','30',184,211,16.59,'2107','52040',285,605);
INSERT INTO "communes" VALUES('71','Crêches-sur-Saône','08',2846,2754,9.33,'2722','51385',169,230);
INSERT INTO "communes" VALUES('71','Varennes-le-Grand','07',2336,2058,19.08,'2823','51902',172,206);
INSERT INTO "communes" VALUES('71','Montcoy','45',274,202,9.06,'2957','52001',177,214);
INSERT INTO "communes" VALUES('71','Écuisses','33',1670,1673,13.38,'2420','51955',270,431);
INSERT INTO "communes" VALUES('71','La Racineuse','39',160,117,7.11,'3133','52036',182,197);
INSERT INTO "communes" VALUES('71','Sampigny-lès-Maranges','13',162,155,2.7,'2574','52117',229,390);
INSERT INTO "communes" VALUES('71','Chauffailles','10',3922,4118,22.63,'2226','51341',352,653);
INSERT INTO "communes" VALUES('71','Montcenis','32',2217,2351,12.33,'2280','51990',310,513);
INSERT INTO "communes" VALUES('71','Saint-Martin-en-Gâtinois','51',115,109,7.29,'2976','52159',175,200);
INSERT INTO "communes" VALUES('71','Saint-Martin-du-Tartre','04',158,151,8.03,'2529','51821',242,452);
INSERT INTO "communes" VALUES('71','Fragnes','53',1000,895,3.86,'2788','52038',178,191);
INSERT INTO "communes" VALUES('71','Rosey','19',165,166,4.24,'2632','51940',193,335);
INSERT INTO "communes" VALUES('71','Toutenant','51',185,156,13.62,'3087','52084',177,193);
INSERT INTO "communes" VALUES('71','Saint-Martin-du-Mont','02',217,146,5.26,'3286','51793',181,204);
INSERT INTO "communes" VALUES('71','Dracy-lès-Couches','13',170,185,8.27,'2488','52098',285,448);
INSERT INTO "communes" VALUES('71','Lessard-en-Bresse','43',528,425,8.2,'3063','51934',187,214);
INSERT INTO "communes" VALUES('71','Mont-Saint-Vincent','36',335,315,13.6,'2380','51812',320,601);
INSERT INTO "communes" VALUES('71','Génelard','48',1432,1579,22.13,'2112','51758',257,345);
INSERT INTO "communes" VALUES('71','Baudemont','11',678,708,7.97,'2165','51430',333,442);
INSERT INTO "communes" VALUES('71','Bissy-la-Mâconnaise','25',212,177,4.96,'2724','51646',243,530);
INSERT INTO "communes" VALUES('71','Charbonnières','26',350,322,4.17,'2774','51545',181,277);
INSERT INTO "communes" VALUES('71','Saint-Aubin-sur-Loire','03',317,323,10.86,'1564','51743',207,311);
INSERT INTO "communes" VALUES('71','Bouzeron','05',152,145,3.7,'2655','52100',221,405);
INSERT INTO "communes" VALUES('71','Rully','05',1615,1462,15.61,'2671','52084',194,407);
INSERT INTO "communes" VALUES('71','Aluze','05',235,217,6.01,'2611','52054',260,405);
INSERT INTO "communes" VALUES('71','<NAME>','35',221,212,11.22,'3015','51821',179,213);
INSERT INTO "communes" VALUES('71','Moroges','04',579,543,8.72,'2601','51946',239,467);
INSERT INTO "communes" VALUES('71','Beaurepaire-en-Bresse','02',628,514,10.42,'3390','51854',193,222);
INSERT INTO "communes" VALUES('71','Saint-Étienne-en-Bresse','35',845,731,19.41,'3017','51896',180,210);
INSERT INTO "communes" VALUES('71','Sigy-le-Châtel','41',91,103,6.95,'2486','51728',217,388);
INSERT INTO "communes" VALUES('71','Charrecey','19',294,313,5.48,'2589','52043',290,455);
INSERT INTO "communes" VALUES('71','Marigny','36',150,118,22.3,'2359','51865',288,431);
INSERT INTO "communes" VALUES('71','Saint-Martin-de-Commune','13',118,103,14.57,'2406','52130',363,464);
INSERT INTO "communes" VALUES('71','Lournand','12',335,321,11.22,'2571','51618',222,506);
INSERT INTO "communes" VALUES('71','Saint-Symphorien-de-Marmagne','32',861,808,37.31,'2215','52045',286,635);
INSERT INTO "communes" VALUES('71','Grevilly','25',34,37,2.65,'2756','51683',299,401);
INSERT INTO "communes" VALUES('71','Bosjean','42',314,285,18.64,'3331','51957',181,214);
INSERT INTO "communes" VALUES('71','La Chapelle-sous-Brancion','49',126,140,9.94,'2728','51724',202,415);
INSERT INTO "communes" VALUES('71','Givry','19',3724,3598,26.03,'2674','51980',181,447);
INSERT INTO "communes" VALUES('71','Varenne-Saint-Germain','17',675,551,15.62,'1876','51588',227,278);
INSERT INTO "communes" VALUES('71','Villegaudin','45',202,108,8.96,'3068','51996',185,213);
INSERT INTO "communes" VALUES('71','Dommartin-lès-Cuiseaux','15',796,636,18.86,'3291','51666',182,226);
INSERT INTO "communes" VALUES('71','Blanzy','32',6633,7064,39.95,'2282','51893',277,399);
INSERT INTO "communes" VALUES('71','Burgy','25',108,90,2.87,'2773','51626',207,441);
INSERT INTO "communes" VALUES('71','Loisy','16',585,530,14.64,'2990','51758',172,217);
INSERT INTO "communes" VALUES('71','Ballore','21',83,84,10.75,'2257','51706',312,391);
INSERT INTO "communes" VALUES('71','Bonnay','41',300,249,11.99,'2539','51722',197,378);
INSERT INTO "communes" VALUES('71','Montagny-lès-Buxy','04',219,223,5.27,'2593','51896',245,415);
INSERT INTO "communes" VALUES('71','Saint-Agnan','17',722,605,25.72,'1715','51672',216,332);
INSERT INTO "communes" VALUES('71','Saint-Maurice-des-Champs','04',61,53,5.83,'2536','51810',275,408);
INSERT INTO "communes" VALUES('71','Tramayes','50',978,908,18.6,'2517','51453',317,755);
INSERT INTO "communes" VALUES('71','Varenne-l''Arconce','46',128,142,8.3,'2025','51487',258,372);
INSERT INTO "communes" VALUES('71','Farges-lès-Chalon','53',716,621,3.94,'2744','52037',183,204);
INSERT INTO "communes" VALUES('71','Clessé','25',829,700,10.06,'2754','51574',200,326);
INSERT INTO "communes" VALUES('71','Vareilles','11',234,216,8.62,'2138','51443',357,510);
INSERT INTO "communes" VALUES('71','Rancy','16',565,515,5.76,'3062','51775',176,199);
INSERT INTO "communes" VALUES('71','Curtil-sous-Burnand','41',126,138,8.34,'2552','51758',209,402);
INSERT INTO "communes" VALUES('71','Bourg-le-Comte','28',209,202,11.4,'1835','51454',238,316);
INSERT INTO "communes" VALUES('71','Sainte-Foy','46',124,134,8.3,'1991','51420',339,549);
INSERT INTO "communes" VALUES('71','<NAME>','21',618,645,27.77,'2349','51717',332,469);
INSERT INTO "communes" VALUES('71','Fleurville','25',478,471,3.91,'2827','51605',168,205);
INSERT INTO "communes" VALUES('71','Charmoy','32',271,279,39.54,'2218','51951',295,643);
INSERT INTO "communes" VALUES('71','Trivy','29',272,241,11.64,'2395','51540',318,511);
INSERT INTO "communes" VALUES('71','Saint-Igny-de-Roche','10',730,578,7.94,'2177','51324',339,520);
INSERT INTO "communes" VALUES('71','Anglure-sous-Dun','10',170,148,7,'2249','51370',373,601);
INSERT INTO "communes" VALUES('71','Saint-Marcelin-de-Cray','21',182,140,13.58,'2439','51732',218,445);
INSERT INTO "communes" VALUES('71','Allériot','45',979,812,13.46,'2897','52016',173,214);
INSERT INTO "communes" VALUES('71','Solutré-Pouilly','27',370,424,6.16,'2654','51441',208,530);
INSERT INTO "communes" VALUES('71','Mailly','46',153,175,5.47,'1975','51358',316,460);
INSERT INTO "communes" VALUES('71','Remigny','05',440,398,2.45,'2651','52121',208,340);
INSERT INTO "communes" VALUES('71','Saint-Symphorien-des-Bois','11',409,409,10.65,'2163','51482',365,462);
INSERT INTO "communes" VALUES('71','Saint-Julien-sur-Dheune','33',248,218,5.32,'2454','51970',252,367);
INSERT INTO "communes" VALUES('71','Céron','28',287,272,23.53,'1786','51425',247,333);
INSERT INTO "communes" VALUES('71','Perrecy-les-Forges','48',1746,1825,33.82,'2087','51794',264,353);
INSERT INTO "communes" VALUES('71','Davayé','27',679,616,4.17,'2676','51446',185,325);
INSERT INTO "communes" VALUES('71','Charbonnat','30',239,251,22.23,'1976','51988',257,472);
INSERT INTO "communes" VALUES('71','Saint-Eusèbe','33',1092,1064,21.21,'2361','51904',284,401);
INSERT INTO "communes" VALUES('71','Saint-Marcel','07',5812,4703,10.17,'2836','51973',172,194);
INSERT INTO "communes" VALUES('71','Diconne','42',334,215,15.94,'3108','51971',188,215);
INSERT INTO "communes" VALUES('71','Vitry-en-Charollais','38',1117,962,21.24,'1913','51616',229,277);
INSERT INTO "communes" VALUES('71','Ménetreuil','34',390,338,15.04,'3084','51759',174,203);
INSERT INTO "communes" VALUES('71','<NAME>','11',1884,2069,3.12,'2187','51433',336,437);
INSERT INTO "communes" VALUES('71','Clux','51',110,104,8.01,'3171','52175',176,195);
INSERT INTO "communes" VALUES('71','Santilly','04',141,107,7.22,'2620','51794',187,295);
INSERT INTO "communes" VALUES('71','Saint-Mard-de-Vaux','19',279,242,6.63,'2608','52014',249,502);
INSERT INTO "communes" VALUES('71','Brion','30',348,372,16.57,'2101','52121',279,654);
INSERT INTO "communes" VALUES('71','Mazille','12',399,376,9.48,'2516','51547',252,476);
INSERT INTO "communes" VALUES('71','Vire','25',1104,959,11.28,'2785','51610',177,441);
INSERT INTO "communes" VALUES('71','Épervans','07',1616,1464,12.5,'2850','51945',170,197);
INSERT INTO "communes" VALUES('71','Toulon-sur-Arroux','48',1618,1631,43.73,'2001','51881',245,391);
INSERT INTO "communes" VALUES('71','Saint-Gengoux-le-National','41',1049,1050,9.36,'2585','51793',193,390);
INSERT INTO "communes" VALUES('71','Sainte-Hélène','04',450,401,14.27,'2563','51952',282,496);
INSERT INTO "communes" VALUES('71','Morey','19',201,156,13.32,'2517','52000',242,438);
INSERT INTO "communes" VALUES('71','Buxy','04',2182,2097,11.92,'2622','51902',186,428);
INSERT INTO "communes" VALUES('71','Ciry-le-Noble','48',2380,2474,33.07,'2182','51784',262,422);
INSERT INTO "communes" VALUES('71','Authumes','39',253,199,12.88,'3296','52100',180,213);
INSERT INTO "communes" VALUES('71','Bey','45',796,633,8.92,'2919','52024',174,206);
INSERT INTO "communes" VALUES('71','Mornay','40',129,164,20.18,'2269','51674',290,432);
INSERT INTO "communes" VALUES('71','Saint-Loup-Géanges','51',1563,764,25.72,'2857','52163',180,221);
INSERT INTO "communes" VALUES('71','Barizey','19',133,128,5.58,'2602','51988',234,465);
INSERT INTO "communes" VALUES('71','Saint-Prix','44',211,225,34.14,'1928','52174',385,901);
INSERT INTO "communes" VALUES('71','Roussillon-en-Morvan','24',277,310,30.59,'1981','52252',370,845);
INSERT INTO "communes" VALUES('71','Virey-le-Grand','53',1281,1172,12.65,'2810','52048',178,215);
INSERT INTO "communes" VALUES('71','Uxeau','20',523,574,32.75,'1875','51848',244,505);
INSERT INTO "communes" VALUES('71','Chamilly','05',123,115,4.7,'2608','52075',304,451);
INSERT INTO "communes" VALUES('71','Châtenoy-le-Royal','57',5906,5938,12.55,'2755','51994',172,206);
INSERT INTO "communes" VALUES('71','Vaudebarrier','09',237,244,8,'2193','51571',282,358);
INSERT INTO "communes" VALUES('71','Savianges','04',76,80,6.56,'2522','51879',252,419);
INSERT INTO "communes" VALUES('71','Paris-l''Hôpital','13',252,204,2.74,'2554','52127',245,398);
INSERT INTO "communes" VALUES('71','Châteauneuf','10',116,110,1.34,'2131','51347',286,400);
INSERT INTO "communes" VALUES('71','Collonge-en-Charollais','21',134,117,12.17,'2447','51824',234,489);
INSERT INTO "communes" VALUES('71','Sassangy','04',169,144,6.25,'2559','51912',269,440);
INSERT INTO "communes" VALUES('71','Vincelles','23',424,378,5.61,'3222','51844',177,204);
INSERT INTO "communes" VALUES('71','Saint-Maurice-en-Rivière','45',554,437,18.57,'2965','52051',173,193);
INSERT INTO "communes" VALUES('71','Nanton','47',600,487,14.03,'2755','51800',182,476);
INSERT INTO "communes" VALUES('71','Saint-Léger-du-Bois','18',556,520,21.26,'2345','52241',299,413);
INSERT INTO "communes" VALUES('71','La Chapelle-Naude','23',518,437,19.06,'3172','51771',177,205);
INSERT INTO "communes" VALUES('71','Baudrières','43',892,797,27,'2973','51860',172,216);
INSERT INTO "communes" VALUES('71','La Chapelle-au-Mans','20',258,273,27.5,'1817','51807',255,401);
INSERT INTO "communes" VALUES('71','Autun','95',14256,16425,61.52,'2180','52168',280,642);
INSERT INTO "communes" VALUES('71','Curgy','52',1102,1138,31.58,'2274','52205',299,537);
INSERT INTO "communes" VALUES('71','Saint-Martin-d''Auxy','04',90,61,7.32,'2463','51913',285,463);
INSERT INTO "communes" VALUES('71','Saint-Loup-de-Varennes','07',1131,1017,8.32,'2804','51920',171,205);
INSERT INTO "communes" VALUES('71','Épinac','18',2341,2522,25.77,'2419','52213',314,475);
INSERT INTO "communes" VALUES('71','Mesvres','30',789,840,23.46,'2117','52069',273,645);
INSERT INTO "communes" VALUES('71','Bourbon-Lancy','03',5260,5632,55.73,'1596','51799',202,346);
INSERT INTO "communes" VALUES('71','Verdun-sur-le-Doubs','51',1138,1198,7.27,'2985','52107',173,180);
INSERT INTO "communes" VALUES('71','Farges-lès-Mâcon','49',207,170,5.73,'2848','51680',168,322);
INSERT INTO "communes" VALUES('71','Mervans','42',1374,1168,28.78,'3167','51998',183,214);
INSERT INTO "communes" VALUES('71','Thil-sur-Arroux','44',150,144,13.44,'1954','52001',261,472);
INSERT INTO "communes" VALUES('71','Saint-Gervais-sur-Couches','18',212,195,20.47,'2497','52134',367,510);
INSERT INTO "communes" VALUES('71','Cussy-en-Morvan','24',458,464,34.77,'2030','52322',365,720);
INSERT INTO "communes" VALUES('71','Chardonnay','25',187,162,6.37,'2807','51677',220,375);
INSERT INTO "communes" VALUES('71','Champagnat','15',496,484,13.18,'3382','51647',196,611);
INSERT INTO "communes" VALUES('71','Pouilloux','21',1034,805,18.4,'2249','51786',267,405);
INSERT INTO "communes" VALUES('71','Brienne','16',449,311,5.65,'2983','51730',172,199);
INSERT INTO "communes" VALUES('71','Passy','41',60,74,4.36,'2443','51712',227,382);
INSERT INTO "communes" VALUES('71','Sainte-Cécile','12',283,251,7.26,'2536','51543',249,544);
INSERT INTO "communes" VALUES('71','Antully','52',818,861,37.13,'2305','52115',470,579);
INSERT INTO "communes" VALUES('71','Rigny-sur-Arroux','20',654,619,48.17,'1879','51703',227,347);
INSERT INTO "communes" VALUES('71','Maltat','03',284,306,31.35,'1645','51869',220,438);
INSERT INTO "communes" VALUES('71','Mont','03',195,194,16.18,'1659','51807',248,466);
INSERT INTO "communes" VALUES('71','Cruzille','25',239,231,11.11,'2733','51675',230,476);
INSERT INTO "communes" VALUES('71','Malay','41',250,214,12.14,'2606','51741',194,320);
INSERT INTO "communes" VALUES('71','Boyer','47',689,638,16.93,'2831','51769',169,305);
INSERT INTO "communes" VALUES('72','Nouans','22',284,249,9.96,'-2350','53599',58,88);
INSERT INTO "communes" VALUES('72','Lignières-la-Carelle','11',409,353,6.75,'-2401','53817',135,156);
INSERT INTO "communes" VALUES('72','Saint-Jean-de-la-Motte','26',903,844,32.03,'-2533','53047',40,109);
INSERT INTO "communes" VALUES('72','Requeil','26',1199,1021,13.89,'-2416','53094',48,100);
INSERT INTO "communes" VALUES('72','Noyen-sur-Sarthe','17',2611,2288,43.58,'-2706','53192',27,85);
INSERT INTO "communes" VALUES('72','Peray','22',63,50,2.45,'-2191','53609',62,96);
INSERT INTO "communes" VALUES('72','Teloché','09',3016,2661,22.79,'-2295','53209',57,101);
INSERT INTO "communes" VALUES('72','Valennes','33',338,353,26.7,'-1697','53329',95,174);
INSERT INTO "communes" VALUES('72','Parigné-le-Pôlin','31',1079,892,13.85,'-2476','53167',37,113);
INSERT INTO "communes" VALUES('72','Montigny','11',40,51,3.85,'-2392','53841',133,156);
INSERT INTO "communes" VALUES('72','Brette-les-Pins','09',2105,1492,14.51,'-2222','53235',61,139);
INSERT INTO "communes" VALUES('72','Villaines-sous-Malicorne','17',1000,743,19.16,'-2708','53071',40,94);
INSERT INTO "communes" VALUES('72','Assé-le-Boisne','12',898,796,28.39,'-2605','53692',69,213);
INSERT INTO "communes" VALUES('72','<NAME>','28',549,593,18.65,'-1771','53174',67,156);
INSERT INTO "communes" VALUES('72','Rouessé-Vassé','30',802,741,31.49,'-2817','53510',107,302);
INSERT INTO "communes" VALUES('72','Pirmil','05',481,382,17.4,'-2705','53235',34,94);
INSERT INTO "communes" VALUES('72','Dangeul','22',498,510,13.64,'-2311','53609',62,104);
INSERT INTO "communes" VALUES('72','<NAME>','34',2385,2263,10.41,'-2445','53405',48,129);
INSERT INTO "communes" VALUES('72','Saint-Denis-d''Orques','15',894,816,47.17,'-2899','53365',59,228);
INSERT INTO "communes" VALUES('72','<NAME>','99',142626,146064,52.81,'-2377','53338',38,134);
INSERT INTO "communes" VALUES('72','Souillé','01',682,365,4.57,'-2393','53466',49,87);
INSERT INTO "communes" VALUES('72','Sillé-le-Guillaume','30',2364,2587,12.9,'-2740','53537',115,260);
INSERT INTO "communes" VALUES('72','Clermont-Créans','14',1256,1000,17.82,'-2613','53020',27,107);
INSERT INTO "communes" VALUES('72','Trangé','34',1385,1040,11.11,'-2473','53363',57,129);
INSERT INTO "communes" VALUES('72','Ligron','17',481,358,13.48,'-2586','53080',53,108);
INSERT INTO "communes" VALUES('72','Panon','18',38,28,2.37,'-2269','53710',112,147);
INSERT INTO "communes" VALUES('72','Chenay','11',202,108,2.16,'-2415','53833',132,156);
INSERT INTO "communes" VALUES('72','Fay','40',606,505,9.48,'-2518','53342',57,127);
INSERT INTO "communes" VALUES('72','Saint-Léonard-des-Bois','12',535,505,27.12,'-2683','53725',87,241);
INSERT INTO "communes" VALUES('72','Saint-Marceau','02',493,405,8.91,'-2455','53533',52,107);
INSERT INTO "communes" VALUES('72','Saint-Mars-d''Outillé','09',2250,1835,38.04,'-2227','53190',74,168);
INSERT INTO "communes" VALUES('72','Cures','08',529,474,11.5,'-2602','53445',77,176);
INSERT INTO "communes" VALUES('72','Mont-Saint-Jean','30',669,603,42.31,'-2715','53607',95,271);
INSERT INTO "communes" VALUES('72','Bourg-le-Roi','29',324,327,0.36,'-2449','53718',95,137);
INSERT INTO "communes" VALUES('72','Ardenay-sur-Mérize','24',488,424,11.67,'-2124','53328',65,123);
INSERT INTO "communes" VALUES('72','Poncé-sur-le-Loir','06',382,428,6.92,'-1868','53069',55,153);
INSERT INTO "communes" VALUES('72','Vancé','28',340,329,12.47,'-1878','53147',77,156);
INSERT INTO "communes" VALUES('72','Doucelles','02',241,166,4.48,'-2409','53618',67,86);
INSERT INTO "communes" VALUES('72','Moncé-en-Saosnois','22',266,236,8.81,'-2164','53639',68,112);
INSERT INTO "communes" VALUES('72','Marçon','06',1024,984,30.05,'-2028','53011',47,133);
INSERT INTO "communes" VALUES('72','Ancinnes','29',896,910,27.21,'-2400','53742',92,242);
INSERT INTO "communes" VALUES('72','Nauvay','22',15,18,2.71,'-2158','53613',64,87);
INSERT INTO "communes" VALUES('72','Saint-Vincent-du-Lorouër','13',933,830,26.96,'-2053','53140',66,166);
INSERT INTO "communes" VALUES('72','Gesnes-le-Gandelin','29',968,742,12.88,'-2578','53729',114,200);
INSERT INTO "communes" VALUES('72','Saint-Paul-le-Gaultier','12',294,259,15.15,'-2716','53690',84,243);
INSERT INTO "communes" VALUES('72','Fatines','24',760,629,5.44,'-2209','53385',52,71);
INSERT INTO "communes" VALUES('72','Nogent-sur-Loir','07',413,379,10.81,'-2155','52965',40,112);
INSERT INTO "communes" VALUES('72','Berfay','33',364,348,18.28,'-1747','53327',121,181);
INSERT INTO "communes" VALUES('72','Livet-en-Saosnois','29',76,71,1.6,'-2362','53733',117,203);
INSERT INTO "communes" VALUES('72','Pincé','27',196,187,5.76,'-3020','53108',21,53);
INSERT INTO "communes" VALUES('72','Chassé','11',174,150,7.23,'-2372','53830',133,156);
INSERT INTO "communes" VALUES('72','Saint-Calez-en-Saosnois','18',170,166,7.19,'-2258','53681',83,156);
INSERT INTO "communes" VALUES('72','Saint-Ouen-en-Belin','09',1333,1050,15.14,'-2362','53149',46,112);
INSERT INTO "communes" VALUES('72','Volnay','04',853,697,19.84,'-2077','53258',80,154);
INSERT INTO "communes" VALUES('72','Mamers','18',5473,6087,5.05,'-2186','53722',105,172);
INSERT INTO "communes" VALUES('72','Poillé-sur-Vègre','05',654,554,17.57,'-2891','53244',38,96);
INSERT INTO "communes" VALUES('72','Bethon','29',339,275,3.85,'-2498','53734',133,196);
INSERT INTO "communes" VALUES('72','Saint-Biez-en-Belin','09',721,562,9.27,'-2331','53135',56,86);
INSERT INTO "communes" VALUES('72','Mézeray','17',1824,1487,32.95,'-2616','53140',31,93);
INSERT INTO "communes" VALUES('72','Thorée-les-Pins','16',684,616,28.18,'-2550','52985',28,87);
INSERT INTO "communes" VALUES('72','Changé','37',6164,5188,35.06,'-2283','53320',49,127);
INSERT INTO "communes" VALUES('72','Dissé-sous-le-Lude','16',579,554,22.37,'-2424','52899',38,111);
INSERT INTO "communes" VALUES('72','Saint-Rémy-de-Sillé','30',760,790,11.25,'-2699','53540',119,287);
INSERT INTO "communes" VALUES('72','Saint-Christophe-du-Jambet','02',209,220,11.24,'-2556','53590',62,192);
INSERT INTO "communes" VALUES('72','Vallon-sur-Gée','15',818,695,17.15,'-2672','53292',42,101);
INSERT INTO "communes" VALUES('72','Moitron-sur-Sarthe','12',229,159,10.32,'-2561','53600',62,192);
INSERT INTO "communes" VALUES('72','Auvers-sous-Montfaucon','15',237,189,7.49,'-2674','53340',57,116);
INSERT INTO "communes" VALUES('72','Chérisay','29',308,220,7.99,'-2471','53728',89,152);
INSERT INTO "communes" VALUES('72','Louplande','31',1517,1193,18.47,'-2550','53270',43,102);
INSERT INTO "communes" VALUES('72','Saint-Cosme-en-Vairais','18',2005,1912,32.63,'-2085','53638',67,180);
INSERT INTO "communes" VALUES('72','Allonnes','40',11064,12332,18.07,'-2418','53299',38,82);
INSERT INTO "communes" VALUES('72','Beaumont-sur-Sarthe','02',2097,1985,6.64,'-2451','53585',57,103);
INSERT INTO "communes" VALUES('72','Avèze','10',757,643,20.81,'-1844','53586',85,189);
INSERT INTO "communes" VALUES('72','Torcé-en-Vallée','24',1283,815,16.86,'-2156','53482',71,146);
INSERT INTO "communes" VALUES('72','Yvré-l''Évêque','37',4375,4227,27.61,'-2300','53349',44,118);
INSERT INTO "communes" VALUES('72','Savigné-sous-le-Lude','16',431,468,33.84,'-2532','52910',38,89);
INSERT INTO "communes" VALUES('72','Arthezé','17',375,297,8.65,'-2729','53097',32,85);
INSERT INTO "communes" VALUES('72','Contilly','18',144,161,12.48,'-2186','53779',138,217);
INSERT INTO "communes" VALUES('72','Champrond','25',82,100,5.98,'-1768','53420',119,138);
INSERT INTO "communes" VALUES('72','Souvigné-sur-Sarthe','27',610,523,17.06,'-3028','53141',22,101);
INSERT INTO "communes" VALUES('72','Marollette','18',137,117,5.7,'-2206','53744',118,189);
INSERT INTO "communes" VALUES('72','Bousse','17',441,384,12.02,'-2662','53078',39,103);
INSERT INTO "communes" VALUES('72','Luceau','07',1280,1043,18.77,'-2155','53013',55,147);
INSERT INTO "communes" VALUES('72','Saint-Rémy-des-Monts','18',680,643,10.12,'-2151','53676',80,145);
INSERT INTO "communes" VALUES('72','Parcé-sur-Sarthe','27',2077,1810,40.58,'-2820','53160',22,70);
INSERT INTO "communes" VALUES('72','Boëssé-le-Sec','32',632,597,11.76,'-1970','53483',72,163);
INSERT INTO "communes" VALUES('72','Courcelles-la-Forêt','17',425,406,19.6,'-2615','53094',36,108);
INSERT INTO "communes" VALUES('72','Joué-en-Charnie','15',629,517,23.53,'-2808','53353',62,165);
INSERT INTO "communes" VALUES('72','Oisseau-le-Petit','29',704,687,8.6,'-2500','53720',96,190);
INSERT INTO "communes" VALUES('72','Saint-Mars-sous-Ballon','01',880,619,18.2,'-2323','53525',54,130);
INSERT INTO "communes" VALUES('72','Roullée','11',249,220,19.93,'-2259','53849',136,193);
INSERT INTO "communes" VALUES('72','Beaumont-sur-Dême','06',350,337,13.49,'-1964','52994',57,129);
INSERT INTO "communes" VALUES('72','Melleray','25',485,492,25.9,'-1707','53443',122,251);
INSERT INTO "communes" VALUES('72','Prévelles','32',231,145,4.81,'-2059','53503',105,158);
INSERT INTO "communes" VALUES('72','Ruillé-sur-Loir','06',1173,1202,39.48,'-1907','53056',53,149);
INSERT INTO "communes" VALUES('72','Sablé-sur-Sarthe','27',12466,12723,36.92,'-2967','53156',22,70);
INSERT INTO "communes" VALUES('72','Théligny','10',214,176,14.31,'-1707','53528',144,236);
INSERT INTO "communes" VALUES('72','Saint-Hilaire-le-Lierru','32',137,117,4.5,'-1998','53455',70,120);
INSERT INTO "communes" VALUES('72','Saint-Célerin','24',766,415,13.47,'-2117','53471',79,151);
INSERT INTO "communes" VALUES('72','Sargé-lès-le-Mans','37',3541,3477,13.85,'-2329','53371',59,126);
INSERT INTO "communes" VALUES('72','Mareil-en-Champagne','05',327,280,7.97,'-2784','53316',52,127);
INSERT INTO "communes" VALUES('72','Beaufay','01',1359,1104,23.87,'-2194','53497',61,143);
INSERT INTO "communes" VALUES('72','Nogent-le-Bernard','03',899,797,30.26,'-2053','53596',75,196);
INSERT INTO "communes" VALUES('72','Saint-Gervais-de-Vic','28',383,399,16.03,'-1773','53208',75,153);
INSERT INTO "communes" VALUES('72','Lhomme','06',910,906,18.32,'-1975','53049',49,140);
INSERT INTO "communes" VALUES('72','Chantenay-Villedieu','05',884,729,27.74,'-2775','53245',35,101);
INSERT INTO "communes" VALUES('72','Saint-Saturnin','34',2497,1997,9.66,'-2428','53397',43,100);
INSERT INTO "communes" VALUES('72','Champagne','24',3757,3293,13.94,'-2226','53359',52,126);
INSERT INTO "communes" VALUES('72','Maresché','02',869,700,15.01,'-2425','53569',56,111);
INSERT INTO "communes" VALUES('72','Saint-Corneille','24',1130,826,11.16,'-2216','53407',52,75);
INSERT INTO "communes" VALUES('72','Dollon','33',1482,1236,25.33,'-1944','53377',71,177);
INSERT INTO "communes" VALUES('72','Chevillé','05',406,323,14.23,'-2845','53276',42,121);
INSERT INTO "communes" VALUES('72','Auvers-le-Hamon','27',1524,1374,47.83,'-2987','53225',29,93);
INSERT INTO "communes" VALUES('72','Sillé-le-Philippe','24',1089,867,10.6,'-2205','53453',59,139);
INSERT INTO "communes" VALUES('72','Crissé','30',552,468,20.83,'-2664','53521',86,288);
INSERT INTO "communes" VALUES('72','Guécélard','31',2755,2593,12.18,'-2452','53195',36,70);
INSERT INTO "communes" VALUES('72','Vaas','23',1570,1546,30.14,'-2249','52966',38,119);
INSERT INTO "communes" VALUES('72','Juillé','02',472,458,5.72,'-2460','53606',61,95);
INSERT INTO "communes" VALUES('72','Souligné-Flacé','31',718,663,16.49,'-2579','53305',43,123);
INSERT INTO "communes" VALUES('72','Tassé','05',302,284,10.77,'-2748','53211',32,87);
INSERT INTO "communes" VALUES('72','Saint-Rémy-du-Val','18',561,514,16.54,'-2313','53722',98,210);
INSERT INTO "communes" VALUES('72','Courcebœufs','01',602,434,16.83,'-2277','53486',59,103);
INSERT INTO "communes" VALUES('72','Chérancé','02',383,387,10.38,'-2403','53652',72,126);
INSERT INTO "communes" VALUES('72','Saint-Symphorien','08',561,500,22.49,'-2724','53414',83,188);
INSERT INTO "communes" VALUES('72','Saint-Aubin-de-Locquenay','12',705,662,17.31,'-2570','53633',65,196);
INSERT INTO "communes" VALUES('72','Louailles','27',769,484,10.49,'-2876','53102',36,52);
INSERT INTO "communes" VALUES('72','Vouvray-sur-Huisne','32',155,89,3.34,'-1984','53431',69,112);
INSERT INTO "communes" VALUES('72','Courtillers','27',906,627,7.24,'-2932','53111',34,55);
INSERT INTO "communes" VALUES('72','<NAME>','08',832,635,8.81,'-2554','53399',82,145);
INSERT INTO "communes" VALUES('72','Malicorne-sur-Sarthe','17',1970,1684,15.13,'-2690','53126',28,70);
INSERT INTO "communes" VALUES('72','Rouillon','40',2201,2102,9.15,'-2445','53342',52,127);
INSERT INTO "communes" VALUES('72','Louzes','11',103,118,8.24,'-2261','53808',160,339);
INSERT INTO "communes" VALUES('72','Viré-en-Champagne','05',231,164,11.48,'-2919','53316',52,103);
INSERT INTO "communes" VALUES('72','Parennes','30',556,416,14.5,'-2802','53466',103,188);
INSERT INTO "communes" VALUES('72','Sainte-Osmane','28',194,154,11.88,'-1918','53212',94,165);
INSERT INTO "communes" VALUES('72','Blèves','11',95,96,2.04,'-2210','53842',141,170);
INSERT INTO "communes" VALUES('72','Avoise','27',539,495,24.56,'-2827','53185',22,70);
INSERT INTO "communes" VALUES('72','Saint-Christophe-en-Champagne','05',197,190,7.81,'-2749','53297',64,109);
INSERT INTO "communes" VALUES('72','Pruillé-l''Éguillé','13',787,546,21.18,'-2119','53153',88,167);
INSERT INTO "communes" VALUES('72','Écorpain','28',318,301,21.26,'-1861','53263',128,181);
INSERT INTO "communes" VALUES('72','Chahaignes','06',766,753,22.83,'-2024','53047',47,144);
INSERT INTO "communes" VALUES('72','Saint-Michel-de-Chavaignes','04',802,741,18.37,'-1960','53354',78,158);
INSERT INTO "communes" VALUES('72','Vouvray-sur-Loir','07',796,857,8.05,'-2082','52994',45,122);
INSERT INTO "communes" VALUES('72','Fontenay-sur-Vègre','05',336,295,11.46,'-2842','53226',37,74);
INSERT INTO "communes" VALUES('72','Saint-Germain-d''Arcé','16',382,346,29.19,'-2273','52915',36,108);
INSERT INTO "communes" VALUES('72','Sainte-Sabine-sur-Longève','08',676,562,11.82,'-2490','53490',67,167);
INSERT INTO "communes" VALUES('72','<NAME>','31',4192,3598,21.4,'-2568','53211',32,76);
INSERT INTO "communes" VALUES('72','Meurcé','22',303,259,6.16,'-2371','53594',59,82);
INSERT INTO "communes" VALUES('72','Crosmières','14',969,701,20.45,'-2764','53051',28,97);
INSERT INTO "communes" VALUES('72','Courcival','03',86,80,8.94,'-2155','53588',62,93);
INSERT INTO "communes" VALUES('72','Saint-Pierre-de-Chevillé','07',360,343,11.51,'-2107','52940',62,126);
INSERT INTO "communes" VALUES('72','Saint-Maixent','25',784,668,22.48,'-1872','53433',75,197);
INSERT INTO "communes" VALUES('72','Saosnes','18',203,189,11.25,'-2286','53695',104,171);
INSERT INTO "communes" VALUES('72','Ballon','01',1262,1382,13.41,'-2335','53529',53,106);
INSERT INTO "communes" VALUES('72','Jauzé','03',94,82,5.68,'-2177','53568',66,98);
INSERT INTO "communes" VALUES('72','Sainte-Jamme-sur-Sarthe','01',2077,1670,8.43,'-2409','53492',49,101);
INSERT INTO "communes" VALUES('72','Grandchamp','29',166,146,5.38,'-2393','53670',81,146);
INSERT INTO "communes" VALUES('72','Saint-Pierre-des-Bois','05',212,151,7.54,'-2752','53267',47,102);
INSERT INTO "communes" VALUES('72','Parigné-l''Évêque','37',4794,4500,63.4,'-2191','53263',55,151);
INSERT INTO "communes" VALUES('72','Sougé-le-Ganelon','12',900,810,18.11,'-2630','53687',77,198);
INSERT INTO "communes" VALUES('72','Vernie','02',348,285,9.9,'-2573','53537',65,157);
INSERT INTO "communes" VALUES('72','Chenu','16',426,462,30.56,'-2221','52903',47,133);
INSERT INTO "communes" VALUES('72','Dehault','10',282,213,8.94,'-1963','53567',94,164);
INSERT INTO "communes" VALUES('72','Courgenard','25',476,458,11.32,'-1778','53502',109,244);
INSERT INTO "communes" VALUES('72','Notre-Dame-du-Pé','27',588,313,7.75,'-2958','53033',22,70);
INSERT INTO "communes" VALUES('72','Lavaré','33',841,735,22.88,'-1880','53393',86,199);
INSERT INTO "communes" VALUES('72','Montmirail','25',404,462,12.53,'-1718','53448',122,227);
INSERT INTO "communes" VALUES('72','Saint-Gervais-en-Belin','09',2049,1762,9.53,'-2353','53197',40,64);
INSERT INTO "communes" VALUES('72','Coulans-sur-Gée','15',1555,1094,27.48,'-2585','53357',63,132);
INSERT INTO "communes" VALUES('72','Chemiré-en-Charnie','15',211,203,11.47,'-2821','53393',82,179);
INSERT INTO "communes" VALUES('72','Le Breil-sur-Mérize','24',1475,1113,18.35,'-2066','53342',86,157);
INSERT INTO "communes" VALUES('72','Duneau','32',1023,764,12.82,'-2019','53411',62,133);
INSERT INTO "communes" VALUES('72','Teillé','01',523,479,11.54,'-2387','53535',52,103);
INSERT INTO "communes" VALUES('72','Piacé','02',361,337,10.12,'-2469','53621',62,114);
INSERT INTO "communes" VALUES('72','<NAME>','06',1461,1546,8.3,'-1959','53032',51,132);
INSERT INTO "communes" VALUES('72','Asnières-sur-Vègre','27',406,375,12.64,'-2856','53210',30,75);
INSERT INTO "communes" VALUES('72','Coulongé','23',572,542,15.05,'-2371','52988',47,107);
INSERT INTO "communes" VALUES('72','Yvré-le-Pôlin','26',1872,1665,21.84,'-2426','53133',41,112);
INSERT INTO "communes" VALUES('72','Souligné-sous-Ballon','01',1160,1005,12.76,'-2334','53488',51,103);
INSERT INTO "communes" VALUES('72','Château-l''Hermitage','26',251,119,9.39,'-2394','53115',51,112);
INSERT INTO "communes" VALUES('72','Moncé-en-Belin','09',3425,2461,17.49,'-2376','53216',40,81);
INSERT INTO "communes" VALUES('72','Verneil-le-Chétif','23',622,520,14.81,'-2270','53036',63,136);
INSERT INTO "communes" VALUES('72','Connerré','24',2926,2595,16.6,'-2046','53401',60,145);
INSERT INTO "communes" VALUES('72','Saint-Calais','28',3419,3772,22.76,'-1771','53245',87,163);
INSERT INTO "communes" VALUES('72','Marigné-Laillé','09',1539,1415,32.73,'-2219','53132',90,177);
INSERT INTO "communes" VALUES('72','Marolles-lès-Saint-Calais','28',275,248,12.15,'-1724','53243',77,157);
INSERT INTO "communes" VALUES('72','La Fontaine-Saint-Martin','26',614,465,13.72,'-2541','53101',49,100);
INSERT INTO "communes" VALUES('72','Avesnes-en-Saosnois','22',103,116,5.68,'-2184','53626',63,111);
INSERT INTO "communes" VALUES('72','Coulaines','38',7447,7539,3.93,'-2369','53363',43,112);
INSERT INTO "communes" VALUES('72','Lucé-sous-Ballon','22',109,85,6.78,'-2357','53565',55,68);
INSERT INTO "communes" VALUES('72','Sarcé','23',292,284,10.99,'-2351','53023',52,109);
INSERT INTO "communes" VALUES('72','Longnes','15',360,261,6.4,'-2685','53356',63,111);
INSERT INTO "communes" VALUES('72','Surfonds','24',328,183,4.85,'-2083','53305',79,144);
INSERT INTO "communes" VALUES('72','<NAME>','34',2138,2094,5.93,'-2418','53373',42,128);
INSERT INTO "communes" VALUES('72','Loué','15',2139,2045,15.85,'-2766','53329',58,118);
INSERT INTO "communes" VALUES('72','Montbizot','01',1706,1162,11.38,'-2393','53497',49,91);
INSERT INTO "communes" VALUES('72','Congé-sur-Orne','22',327,291,11.24,'-2314','53556',53,73);
INSERT INTO "communes" VALUES('72','Cré','14',803,660,17.19,'-2772','52974',22,72);
INSERT INTO "communes" VALUES('72','Bérus','29',432,367,6.73,'-2538','53750',141,196);
INSERT INTO "communes" VALUES('72','Saint-Aubin-des-Coudrais','10',952,884,17.42,'-1946','53525',81,166);
INSERT INTO "communes" VALUES('72','Rouessé-Fontaine','29',267,221,12.48,'-2430','53692',82,147);
INSERT INTO "communes" VALUES('72','Brûlon','05',1540,1340,16.27,'-2857','53298',47,128);
INSERT INTO "communes" VALUES('72','Moulins-le-Carbonnel','29',730,669,16.31,'-2623','53747',118,223);
INSERT INTO "communes" VALUES('72','<NAME>','06',324,331,10.66,'-1840','53110',67,154);
INSERT INTO "communes" VALUES('72','Saint-Germain-sur-Sarthe','02',551,434,14.76,'-2488','53651',62,103);
INSERT INTO "communes" VALUES('72','Vezot','18',64,69,6.35,'-2273','53725',124,214);
INSERT INTO "communes" VALUES('72','Voivres-lès-le-Mans','31',1277,846,11.44,'-2516','53255',37,74);
INSERT INTO "communes" VALUES('72','Aigne','34',1546,1349,12.59,'-2464','53408',53,125);
INSERT INTO "communes" VALUES('72','Roézé-sur-Sarthe','31',2815,2324,26.46,'-2522','53218',33,74);
INSERT INTO "communes" VALUES('72','Lavenay','06',366,357,7.7,'-1817','53101',56,150);
INSERT INTO "communes" VALUES('72','Rouperroux-le-Coquet','03',324,277,12.07,'-2118','53585',72,133);
INSERT INTO "communes" VALUES('72','Oizé','26',1202,746,16.91,'-2481','53123',57,106);
INSERT INTO "communes" VALUES('72','Dissay-sous-Courcillon','07',1009,900,34.92,'-2071','52961',43,132);
INSERT INTO "communes" VALUES('72','Maisoncelles','04',193,204,11.1,'-1962','53262',129,171);
INSERT INTO "communes" VALUES('72','Fercé-sur-Sarthe','31',639,490,12.11,'-2631','53223',32,81);
INSERT INTO "communes" VALUES('72','Lavernat','23',635,438,22.64,'-2226','53020',65,158);
INSERT INTO "communes" VALUES('72','<NAME>','32',1381,995,12.23,'-1945','53411',77,134);
INSERT INTO "communes" VALUES('72','Luché-Pringé','16',1665,1529,49.39,'-2512','53004',28,109);
INSERT INTO "communes" VALUES('72','Saint-Vincent-des-Prés','18',502,406,10.51,'-2168','53662',69,118);
INSERT INTO "communes" VALUES('72','Douillet','12',316,279,18.99,'-2643','53637',72,164);
INSERT INTO "communes" VALUES('72','Montreuil-le-Henri','13',256,231,14.39,'-1968','53186',86,159);
INSERT INTO "communes" VALUES('72','Flée','07',558,548,17.54,'-2093','53037',47,145);
INSERT INTO "communes" VALUES('72','Pruillé-le-Chétif','40',1248,1224,10.3,'-2475','53325',52,128);
INSERT INTO "communes" VALUES('72','<NAME>','32',118,111,10.75,'-2011','53522',100,176);
INSERT INTO "communes" VALUES('72','Saint-Ouen-en-Champagne','05',197,186,11.2,'-2806','53278',52,121);
INSERT INTO "communes" VALUES('72','Saint-Georges-du-Rosay','03',430,386,17.31,'-2038','53556',112,169);
INSERT INTO "communes" VALUES('72','Laigné-en-Belin','09',2332,1907,12.72,'-2341','53198',47,95);
INSERT INTO "communes" VALUES('72','Marolles-les-Braults','22',2155,2120,20.64,'-2247','53614',59,127);
INSERT INTO "communes" VALUES('72','Saint-Paterne','29',1611,1562,7.23,'-2472','53795',130,148);
INSERT INTO "communes" VALUES('72','Château-du-Loir','07',4732,5148,11.46,'-2131','52993',44,131);
INSERT INTO "communes" VALUES('72','Saint-Jean-du-Bois','17',639,490,14.62,'-2641','53191',34,73);
INSERT INTO "communes" VALUES('72','Neuvillalais','08',579,428,18.86,'-2597','53507',76,172);
INSERT INTO "communes" VALUES('72','Champfleur','29',1421,1118,13.14,'-2454','53762',114,197);
INSERT INTO "communes" VALUES('72','<NAME>','29',623,680,5.7,'-2457','53814',130,156);
INSERT INTO "communes" VALUES('72','Commerveil','18',125,130,5.64,'-2199','53686',79,143);
INSERT INTO "communes" VALUES('72','Bernay-en-Champagne','08',458,383,10.34,'-2662','53416',80,177);
INSERT INTO "communes" VALUES('72','Montreuil-le-Chétif','12',311,287,14.64,'-2636','53606',89,229);
INSERT INTO "communes" VALUES('72','Étival-lès-le-Mans','31',2041,1957,10.34,'-2497','53285',43,101);
INSERT INTO "communes" VALUES('72','Sceaux-sur-Huisne','32',584,547,11.76,'-1948','53450',69,120);
INSERT INTO "communes" VALUES('72','Pezé-le-Robert','30',365,334,16.35,'-2661','53549',93,277);
INSERT INTO "communes" VALUES('72','Saint-Aignan','22',247,196,15.13,'-2215','53573',58,79);
INSERT INTO "communes" VALUES('72','Saint-Rigomer-des-Bois','11',419,471,17.53,'-2405','53766',134,260);
INSERT INTO "communes" VALUES('72','Saint-Martin-des-Monts','10',173,153,5.72,'-1934','53499',75,139);
INSERT INTO "communes" VALUES('72','Mulsanne','09',4402,5217,15.25,'-2319','53235',44,82);
INSERT INTO "communes" VALUES('72','Épineu-le-Chevreuil','15',286,234,14.7,'-2725','53376',72,161);
INSERT INTO "communes" VALUES('72','Terrehault','03',134,73,5.73,'-2148','53561',71,108);
INSERT INTO "communes" VALUES('72','Ruillé-en-Champagne','08',316,289,14.93,'-2689','53400',73,162);
INSERT INTO "communes" VALUES('72','Saint-Jean-des-Échelles','25',255,233,10.64,'-1803','53478',104,200);
INSERT INTO "communes" VALUES('72','Courgains','22',597,516,14.66,'-2286','53656',70,159);
INSERT INTO "communes" VALUES('72','Semur-en-Vallon','33',455,440,15.13,'-1869','53359',104,184);
INSERT INTO "communes" VALUES('72','Thoiré-sous-Contensor','29',104,89,5.99,'-2373','53679',85,133);
INSERT INTO "communes" VALUES('72','Pizieux','18',88,93,4.51,'-2228','53691',88,168);
INSERT INTO "communes" VALUES('72','Saint-Denis-des-Coudrais','32',120,91,7,'-2032','53500',97,165);
INSERT INTO "communes" VALUES('72','Vivoin','02',926,815,18.26,'-2423','53593',57,91);
INSERT INTO "communes" VALUES('72','Beillé','32',517,388,8.48,'-2029','53426',62,124);
INSERT INTO "communes" VALUES('72','<NAME>','10',9235,9242,14.96,'-1869','53541',79,146);
INSERT INTO "communes" VALUES('72','Lavardin','08',740,649,7.63,'-2527','53420',69,168);
INSERT INTO "communes" VALUES('72','Cormes','10',886,855,19,'-1813','53522',86,186);
INSERT INTO "communes" VALUES('72','Conlie','08',1869,1672,17.16,'-2615','53470',98,179);
INSERT INTO "communes" VALUES('72','Brains-sur-Gée','15',705,456,15.9,'-2625','53351',57,128);
INSERT INTO "communes" VALUES('72','Vibraye','33',2620,2588,43.62,'-1779','53399',107,199);
INSERT INTO "communes" VALUES('72','Fresnay-sur-Sarthe','12',2173,2350,2.1,'-2573','53646',67,117);
INSERT INTO "communes" VALUES('72','Degré','08',740,657,9.83,'-2520','53389',63,113);
INSERT INTO "communes" VALUES('72','Savigné-l''Évêque','37',4041,3721,28.48,'-2266','53418',53,126);
INSERT INTO "communes" VALUES('72','<NAME>','13',2043,1936,27.26,'-2074','53184',73,153);
INSERT INTO "communes" VALUES('72','Conflans-sur-Anille','28',569,606,30.8,'-1768','53273',97,178);
INSERT INTO "communes" VALUES('72','Bazouges-sur-le-Loir','14',1195,1086,29.9,'-2783','52989',22,99);
INSERT INTO "communes" VALUES('72','Chemiré-le-Gaudin','31',930,898,22.79,'-2613','53254',32,108);
INSERT INTO "communes" VALUES('72','Évaillé','28',398,316,19.43,'-1897','53223',106,167);
INSERT INTO "communes" VALUES('72','Vion','27',1423,1117,20.04,'-2861','53133',38,71);
INSERT INTO "communes" VALUES('72','Saint-Georges-le-Gaultier','12',539,537,23.36,'-2714','53664',84,174);
INSERT INTO "communes" VALUES('72','Saint-Pavace','38',1855,1802,5.16,'-2387','53376',42,91);
INSERT INTO "communes" VALUES('72','Neuvy-en-Champagne','08',378,338,14.79,'-2639','53423',80,144);
INSERT INTO "communes" VALUES('72','Tassillé','15',139,93,6.46,'-2700','53325',70,104);
INSERT INTO "communes" VALUES('72','Montfort-le-Gesnois','24',3083,2883,18.74,'-2148','53387',54,113);
INSERT INTO "communes" VALUES('72','Thorigné-sur-Dué','04',1594,1547,18.99,'-2000','53376',64,146);
INSERT INTO "communes" VALUES('72','La Chapelle-aux-Choux','16',276,324,14.43,'-2339','52925',36,102);
INSERT INTO "communes" VALUES('72','Bonnétable','03',3994,4022,40.08,'-2123','53532',77,167);
INSERT INTO "communes" VALUES('72','Briosne-lès-Sables','03',513,359,9.85,'-2156','53527',72,142);
INSERT INTO "communes" VALUES('72','Cogners','28',195,204,13.6,'-1864','53187',92,161);
INSERT INTO "communes" VALUES('72','Assé-le-Riboul','02',483,420,16.77,'-2500','53549',57,138);
INSERT INTO "communes" VALUES('72','Villaines-la-Gonais','10',527,433,10.34,'-1927','53485',72,136);
INSERT INTO "communes" VALUES('72','Domfront-en-Champagne','08',971,936,20.97,'-2565','53450',77,172);
INSERT INTO "communes" VALUES('72','<NAME>','32',894,750,19.2,'-2089','53452',64,151);
INSERT INTO "communes" VALUES('72','Ségrie','02',604,592,21.99,'-2567','53556',68,197);
INSERT INTO "communes" VALUES('72','<NAME>','02',141,105,3.89,'-2513','53535',58,130);
INSERT INTO "communes" VALUES('72','Mézières-sous-Lavardin','08',659,414,15.31,'-2563','53505',64,168);
INSERT INTO "communes" VALUES('72','Neuvillette-en-Charnie','30',304,211,14.54,'-2832','53437',113,235);
INSERT INTO "communes" VALUES('72','Rouez','30',781,715,33.65,'-2723','53489',92,171);
INSERT INTO "communes" VALUES('72','Montaillé','28',585,514,30.18,'-1817','53264',102,182);
INSERT INTO "communes" VALUES('72','Aillières-Beauvoir','11',215,237,15.07,'-2235','53784',142,337);
INSERT INTO "communes" VALUES('72','<NAME>-sur-Chédouet','11',945,845,31.41,'-2315','53831',135,296);
INSERT INTO "communes" VALUES('72','Courcemont','01',680,574,19.26,'-2205','53526',63,143);
INSERT INTO "communes" VALUES('72','Chaufour-Notre-Dame','40',1097,812,11.19,'-2513','53362',68,131);
INSERT INTO "communes" VALUES('72','Monhoudou','22',209,192,7.52,'-2235','53652',79,138);
INSERT INTO "communes" VALUES('72','La Chapelle-du-Bois','10',888,799,16.53,'-1938','53579',113,185);
INSERT INTO "communes" VALUES('72','René','22',377,354,12.52,'-2351','53643',68,126);
INSERT INTO "communes" VALUES('72','Neuville-sur-Sarthe','38',2386,2220,22.94,'-2384','53418',42,123);
INSERT INTO "communes" VALUES('72','<NAME>','30',389,370,7.45,'-2766','53544',140,266);
INSERT INTO "communes" VALUES('72','<NAME>','08',421,364,6.38,'-2506','53456',71,173);
INSERT INTO "communes" VALUES('72','Dissé-sous-Ballon','22',134,108,3.55,'-2266','53597',57,84);
INSERT INTO "communes" VALUES('72','Rahay','28',195,218,18.94,'-1672','53290',85,163);
INSERT INTO "communes" VALUES('72','Mézières-sur-Ponthouin','22',673,576,17.88,'-2264','53548',55,131);
INSERT INTO "communes" VALUES('72','Challes','37',1214,1090,25.83,'-2136','53257',74,147);
INSERT INTO "communes" VALUES('72','Tennie','08',1051,977,33.13,'-2680','53453',84,189);
INSERT INTO "communes" VALUES('72','Maigné','05',344,349,11.5,'-2657','53264',39,96);
INSERT INTO "communes" VALUES('72','Bouloire','04',2042,1879,26.77,'-1986','53304',98,176);
INSERT INTO "communes" VALUES('72','Nuillé-le-Jalais','24',488,316,5.82,'-2061','53356',80,151);
INSERT INTO "communes" VALUES('72','Ruaudin','35',3325,2858,13.78,'-2300','53272',47,66);
INSERT INTO "communes" VALUES('72','Bessé-sur-Braye','28',2322,2600,20.6,'-1763','53149',64,154);
INSERT INTO "communes" VALUES('72','Saint-Victeur','12',418,290,7.06,'-2552','53692',89,167);
INSERT INTO "communes" VALUES('72','<NAME>-sur-Loir','16',266,256,11.47,'-2208','52946',40,88);
INSERT INTO "communes" VALUES('72','Montabon','07',785,713,7.48,'-2166','52978',40,103);
INSERT INTO "communes" VALUES('72','Tresson','04',479,471,29.22,'-1959','53226',99,168);
INSERT INTO "communes" VALUES('72','Spay','31',2846,2300,14.22,'-2428','53248',37,58);
INSERT INTO "communes" VALUES('72','Jupilles','07',573,528,26.41,'-2137','53101',82,172);
INSERT INTO "communes" VALUES('72','Dureil','17',68,74,7.96,'-2759','53159',27,57);
INSERT INTO "communes" VALUES('72','Louvigny','18',183,175,8.71,'-2372','53710',92,177);
INSERT INTO "communes" VALUES('72','Juigné-sur-Sarthe','27',1184,1169,20.66,'-2915','53182',22,75);
INSERT INTO "communes" VALUES('72','Saint-Georges-du-Bois','40',1813,1762,7.23,'-2485','53304',48,102);
INSERT INTO "communes" VALUES('72','Mées','18',100,107,6.8,'-2339','53682',91,136);
INSERT INTO "communes" VALUES('72','La Flèche','14',15087,15242,74.21,'-2681','53000',23,103);
INSERT INTO "communes" VALUES('72','Saint-Longis','18',524,450,11.22,'-2212','53728',102,188);
INSERT INTO "communes" VALUES('72','Cérans-Foulletourte','26',3242,2443,32.52,'-2511','53142',37,113);
INSERT INTO "communes" VALUES('72','Joué-l''Abbé','01',1251,1008,10.39,'-2355','53456',52,95);
INSERT INTO "communes" VALUES('72','Saint-Mars-de-Locquenay','04',538,432,21.78,'-2058','53254',102,167);
INSERT INTO "communes" VALUES('72','Solesmes','27',1372,1383,11.53,'-2932','53169',22,76);
INSERT INTO "communes" VALUES('72','Aubigné-Racan','23',2076,2099,32.03,'-2298','52990',37,118);
INSERT INTO "communes" VALUES('72','<NAME>','01',1086,917,7.88,'-2380','53460',48,77);
INSERT INTO "communes" VALUES('72','Saint-Jean-d''Assé','01',1483,1039,21.29,'-2462','53501',51,135);
INSERT INTO "communes" VALUES('72','Coudrecieux','04',623,568,24.27,'-1896','53325',104,182);
INSERT INTO "communes" VALUES('72','Saint-Georges-de-la-Couée','13',173,194,11.68,'-1950','53158',77,151);
INSERT INTO "communes" VALUES('72','La Chapelle-d''Aligné','14',1543,1167,33.04,'-2859','53037',28,67);
INSERT INTO "communes" VALUES('72','Le Bailleul','17',1234,851,27.46,'-2775','53076',34,69);
INSERT INTO "communes" VALUES('72','Crannes-en-Champagne','15',354,283,11.97,'-2654','53312',52,117);
INSERT INTO "communes" VALUES('72','Saint-Ulphace','25',245,189,15.98,'-1689','53509',143,251);
INSERT INTO "communes" VALUES('72','Soulitré','24',688,560,10.99,'-2090','53346',65,151);
INSERT INTO "communes" VALUES('72','Thoigné','22',164,129,7.31,'-2315','53655',71,143);
INSERT INTO "communes" VALUES('72','Précigné','27',3141,2644,57.85,'-2956','53074',20,60);
INSERT INTO "communes" VALUES('72','Le Lude','16',4049,4204,45.99,'-2426','52939',30,93);
INSERT INTO "communes" VALUES('72','Arçonnay','29',1852,1839,7.85,'-2500','53773',133,191);
INSERT INTO "communes" VALUES('72','Souvigné-sur-Même','10',178,167,6.28,'-1889','53578',82,170);
INSERT INTO "communes" VALUES('72','Thoiré-sur-Dinan','07',432,369,17.72,'-2097','53061',66,151);
INSERT INTO "communes" VALUES('72','Villaines-sous-Lucé','13',682,572,25.46,'-2060','53184',82,163);
INSERT INTO "communes" VALUES('72','Saint-Pierre-des-Ormes','18',226,226,10.12,'-2128','53674',68,104);
INSERT INTO "communes" VALUES('72','Fyé','29',1031,859,16.31,'-2508','53696',73,152);
INSERT INTO "communes" VALUES('72','Amné','15',505,332,15.95,'-2662','53378',59,182);
INSERT INTO "communes" VALUES('72','Saint-Mars-la-Brière','24',2470,2360,34.69,'-2182','53366',52,133);
INSERT INTO "communes" VALUES('72','Lombron','24',1961,1827,24.11,'-2132','53420',59,134);
INSERT INTO "communes" VALUES('72','Tuffé','32',1633,1502,24.66,'-2025','53459',68,150);
INSERT INTO "communes" VALUES('72','Écommoy','09',4695,4316,28.5,'-2293','53143',62,168);
INSERT INTO "communes" VALUES('72','Fillé','31',1516,1083,10.07,'-2458','53221',35,73);
INSERT INTO "communes" VALUES('72','Avessé','05',376,306,18.72,'-2875','53283',46,113);
INSERT INTO "communes" VALUES('72','Beaumont-Pied-de-Bœuf','07',495,475,24.68,'-2150','53066',74,164);
INSERT INTO "communes" VALUES('72','Neufchâtel-en-Saosnois','11',978,765,23.41,'-2324','53752',121,306);
INSERT INTO "communes" VALUES('72','Saint-Pierre-du-Lorouër','13',375,338,16.55,'-2016','53117',58,147);
INSERT INTO "communes" VALUES('72','Coulombiers','02',428,351,12.34,'-2456','53664',70,116);
INSERT INTO "communes" VALUES('72','Préval','10',647,568,7.62,'-1903','53594',87,158);
INSERT INTO "communes" VALUES('72','Villaines-la-Carelle','18',171,167,14.7,'-2264','53752',128,341);
INSERT INTO "communes" VALUES('72','<NAME>','34',3630,2859,22.87,'-2424','53443',49,148);
INSERT INTO "communes" VALUES('72','Cherreau','10',858,726,11.64,'-1837','53548',85,189);
INSERT INTO "communes" VALUES('72','Cherré','10',1708,1284,18.73,'-1865','53525',78,131);
INSERT INTO "communes" VALUES('72','Sainte-Cérotte','28',325,314,14.36,'-1832','53223',104,167);
INSERT INTO "communes" VALUES('72','Aulneaux','11',106,110,8.17,'-2227','53819',143,190);
INSERT INTO "communes" VALUES('72','Mareil-sur-Loir','14',623,503,11.83,'-2584','53016',27,103);
INSERT INTO "communes" VALUES('72','Gréez-sur-Roc','25',384,397,25.38,'-1713','53486',131,251);
INSERT INTO "communes" VALUES('72','Bouër','32',310,179,12,'-1896','53424',85,192);
INSERT INTO "communes" VALUES('72','Arnage','36',5118,5564,10.76,'-2388','53251',38,56);
INSERT INTO "communes" VALUES('72','Lamnay','25',926,700,22.09,'-1814','53463',87,182);
INSERT INTO "communes" VALUES('72','Mansigné','26',1583,1357,36.31,'-2446','53053',35,104);
INSERT INTO "communes" VALUES('72','Saint-Ouen-de-Mimbré','12',948,753,10.63,'-2543','53659',73,117);
INSERT INTO "communes" VALUES('72','Mayet','23',3191,2917,53.96,'-2291','53066',50,164);
INSERT INTO "communes" VALUES('72','Courdemanche','13',640,617,24.02,'-1971','53127',59,152);
INSERT INTO "communes" VALUES('72','Chassillé','15',264,262,7.27,'-2725','53356',66,132);
INSERT INTO "communes" VALUES('72','Pontvallain','26',1654,1282,34.88,'-2384','53056',42,111);
INSERT INTO "communes" VALUES('73','Lanslebourg-Mont-Cenis','16',621,642,93.61,'5047','50317',1356,3609);
INSERT INTO "communes" VALUES('73','Montailleur','15',627,587,15.3,'4380','50686',299,2153);
INSERT INTO "communes" VALUES('73','Notre-Dame-du-Cruet','11',188,135,1.9,'4416','50411',499,1100);
INSERT INTO "communes" VALUES('73','Aix-les-Bains','97',27750,25721,12.62,'3976','50765',224,524);
INSERT INTO "communes" VALUES('73','Albiez-le-Jeune','25',121,57,12.45,'4461','50272',714,2428);
INSERT INTO "communes" VALUES('73','Hermillon','25',535,519,14.06,'4473','50331',486,2768);
INSERT INTO "communes" VALUES('73','Villarodin-Bourget','17',486,501,33.08,'4844','50238',1070,3418);
INSERT INTO "communes" VALUES('73','Crest-Voland','28',390,419,9.96,'4632','50883',680,1691);
INSERT INTO "communes" VALUES('73','<NAME>','22',3488,3101,4.66,'4204','50509',322,807);
INSERT INTO "communes" VALUES('73','Bellentre','02',944,790,23.94,'4863','50633',699,3011);
INSERT INTO "communes" VALUES('73','Saint-Vital','15',667,581,3.6,'4402','50697',304,602);
INSERT INTO "communes" VALUES('73','Sainte-Marie-d''Alvey','24',141,130,2.61,'3760','50659',326,705);
INSERT INTO "communes" VALUES('73','Cléry','15',421,226,10.9,'4396','50716',400,1851);
INSERT INTO "communes" VALUES('73','Mognard','04',418,300,4.1,'4021','50832',320,560);
INSERT INTO "communes" VALUES('73','<NAME>','02',861,661,26.26,'4813','50631',665,2960);
INSERT INTO "communes" VALUES('73','Freney','17',121,85,11.13,'4767','50216',939,2960);
INSERT INTO "communes" VALUES('73','Meyrieux-Trouet','29',281,276,11.05,'3827','50715',359,1480);
INSERT INTO "communes" VALUES('73','<NAME>','20',363,270,5.55,'4623','50546',458,1760);
INSERT INTO "communes" VALUES('73','Mollettes','18',737,547,5.47,'4136','50515',255,529);
INSERT INTO "communes" VALUES('73','Montgilbert','01',126,74,9.53,'4387','50611',318,1470);
INSERT INTO "communes" VALUES('73','Allues','08',1867,1884,85.99,'4688','50479',680,3564);
INSERT INTO "communes" VALUES('73','Villarlurin','20',297,298,5.45,'4656','50513',509,1564);
INSERT INTO "communes" VALUES('73','Saint-Bon-Tarentaise','08',1964,1876,58.94,'4778','50482',700,3054);
INSERT INTO "communes" VALUES('73','Saint-Avre','11',800,646,3.64,'4415','50392',443,1229);
INSERT INTO "communes" VALUES('73','Le Pont-de-Beauvoisin','21',2004,1572,1.83,'3706','50596',232,303);
INSERT INTO "communes" VALUES('73','<NAME>','27',285,258,18.26,'4133','50592',656,1640);
INSERT INTO "communes" VALUES('73','Saint-Pierre-de-Soucy','18',379,324,9.09,'4188','50549',256,811);
INSERT INTO "communes" VALUES('73','Avanchers-Valmorel','20',752,716,21.93,'4577','50531',680,2600);
INSERT INTO "communes" VALUES('73','Grésy-sur-Isère','15',1261,1044,9.02,'4352','50668',292,2071);
INSERT INTO "communes" VALUES('73','Déserts','34',846,662,33.59,'4083','50690',636,1845);
INSERT INTO "communes" VALUES('73','La Chapelle-du-Mont-du-Chat','19',255,133,7.08,'3908','50784',222,1003);
INSERT INTO "communes" VALUES('73','Betton-Bettonet','12',297,203,3.41,'4279','50589',287,571);
INSERT INTO "communes" VALUES('73','Lépin-le-Lac','21',433,288,5.11,'3842','50595',373,1363);
INSERT INTO "communes" VALUES('73','Montgellafrey','11',67,77,19.36,'4424','50436',821,2610);
INSERT INTO "communes" VALUES('73','Mâcot-la-Plagne','02',1782,1591,37.86,'4817','50615',653,2708);
INSERT INTO "communes" VALUES('73','Montricher-Albanne','25',661,596,27.99,'4517','50274',600,2926);
INSERT INTO "communes" VALUES('73','Hautecour','20',312,272,11.65,'4678','50565',599,2282);
INSERT INTO "communes" VALUES('73','Puygros','34',362,315,10.34,'4108','50631',393,1680);
INSERT INTO "communes" VALUES('73','Bonvillard','15',341,247,17.1,'4409','50652',380,2480);
INSERT INTO "communes" VALUES('73','Trévignin','32',751,624,6.89,'4022','50786',433,1563);
INSERT INTO "communes" VALUES('73','Frontenex','15',1676,1578,1.71,'4413','50707',308,467);
INSERT INTO "communes" VALUES('73','Loisieux','29',185,131,9.33,'3776','50724',360,860);
INSERT INTO "communes" VALUES('73','Voglans','35',1681,1446,4.62,'3955','50703',231,392);
INSERT INTO "communes" VALUES('73','Nances','21',434,330,9.9,'3844','50656',373,1243);
INSERT INTO "communes" VALUES('73','<NAME>','25',201,134,15.31,'4469','50341',560,2730);
INSERT INTO "communes" VALUES('73','Montagny','08',656,578,13.26,'4728','50507',657,2444);
INSERT INTO "communes" VALUES('73','Bourgneuf','12',660,400,6.48,'4305','50613',286,656);
INSERT INTO "communes" VALUES('73','Épierre','01',730,579,19.36,'4398','50504',348,2746);
INSERT INTO "communes" VALUES('73','Randens','01',886,663,10.36,'4415','50605',306,2162);
INSERT INTO "communes" VALUES('73','Saint-Jean-de-Couz','14',251,215,7.71,'3868','50519',584,1617);
INSERT INTO "communes" VALUES('73','Pralognan-la-Vanoise','08',754,757,88.57,'4872','50424',1208,3786);
INSERT INTO "communes" VALUES('73','<NAME>','11',1162,1109,3.2,'4404','50399',419,760);
INSERT INTO "communes" VALUES('73','Saint-Martin-de-Belleville','20',2543,2536,161.79,'4631','50422',640,3564);
INSERT INTO "communes" VALUES('73','Curienne','34',651,616,8.55,'4081','50629',360,1290);
INSERT INTO "communes" VALUES('73','Termignon','16',418,426,149.03,'4978','50308',1277,3855);
INSERT INTO "communes" VALUES('73','Saint-Colomban-des-Villards','11',188,195,81.12,'4322','50327',955,2908);
INSERT INTO "communes" VALUES('73','Saint-Pierre-de-Belleville','01',174,117,7.46,'4383','50523',348,2335);
INSERT INTO "communes" VALUES('73','Saint-Pierre-de-Genebroz','14',342,260,6.14,'3797','50503',380,1313);
INSERT INTO "communes" VALUES('73','Avrieux','17',422,341,37.85,'4871','50239',1094,3506);
INSERT INTO "communes" VALUES('73','Sainte-Hélène-du-Lac','18',697,597,7.09,'4144','50536',252,370);
INSERT INTO "communes" VALUES('73','Doucy-en-Bauges','13',98,72,12.65,'4258','50763',797,2176);
INSERT INTO "communes" VALUES('73','<NAME>','21',1187,1097,6.18,'3784','50585',250,527);
INSERT INTO "communes" VALUES('73','Tournon','15',560,391,4.86,'4423','50715',308,484);
INSERT INTO "communes" VALUES('73','Vimines','37',1769,1497,14.23,'3920','50606',320,1378);
INSERT INTO "communes" VALUES('73','La Motte-en-Bauges','13',434,310,9.96,'4214','50780',598,1474);
INSERT INTO "communes" VALUES('73','<NAME>','13',182,141,12.3,'4137','50754',698,1845);
INSERT INTO "communes" VALUES('73','Orelle','26',365,354,69.25,'4667','50232',819,3400);
INSERT INTO "communes" VALUES('73','Flumet','28',848,766,17.15,'4645','50910',854,1930);
INSERT INTO "communes" VALUES('73','Aillon-le-Vieux','13',175,169,21.63,'4174','50723',673,2040);
INSERT INTO "communes" VALUES('73','Apremont','18',961,891,17.76,'4024','50568',302,1554);
INSERT INTO "communes" VALUES('73','Grignon','30',1930,1687,9.29,'4488','50725',324,1661);
INSERT INTO "communes" VALUES('73','Saint-Paul','29',643,494,13.25,'3831','50753',284,1496);
INSERT INTO "communes" VALUES('73','Montsapey','01',79,52,26.36,'4447','50581',324,2500);
INSERT INTO "communes" VALUES('73','Yenne','29',2951,2596,23.36,'3803','50782',220,610);
INSERT INTO "communes" VALUES('73','Saint-Jean-d''Arves','25',289,216,75.6,'4374','50230',977,3504);
INSERT INTO "communes" VALUES('73','Brison-Saint-Innocent','32',2156,1868,8.75,'3949','50803',228,840);
INSERT INTO "communes" VALUES('73','Le Verneil','22',97,59,7.52,'4256','50515',555,2076);
INSERT INTO "communes" VALUES('73','La Table','22',385,253,14.85,'4261','50533',305,1992);
INSERT INTO "communes" VALUES('73','Brides-les-Bains','08',551,599,2.63,'4700','50503',556,1040);
INSERT INTO "communes" VALUES('73','Séez','07',2381,1968,42.55,'4960','50692',807,2979);
INSERT INTO "communes" VALUES('73','Valloire','26',1305,1252,137.48,'4546','50184',694,3504);
INSERT INTO "communes" VALUES('73','Fourneaux','17',759,882,5.04,'4794','50213',1051,2800);
INSERT INTO "communes" VALUES('73','Ayn','21',350,279,7.44,'3793','50636',440,720);
INSERT INTO "communes" VALUES('73','Albertville','98',18876,17335,17.54,'4507','50751',328,2030);
INSERT INTO "communes" VALUES('73','Saint-Jean-de-Maurienne','25',8242,8907,11.51,'4454','50308',489,1200);
INSERT INTO "communes" VALUES('73','Monthion','30',459,368,6.36,'4469','50701',319,2048);
INSERT INTO "communes" VALUES('73','Chanaz','23',513,442,6.75,'3840','50899',220,572);
INSERT INTO "communes" VALUES('73','Verel-Pragondran','34',433,405,6.53,'4013','50675',432,1500);
INSERT INTO "communes" VALUES('73','Aiguebelle','01',1154,896,3.85,'4410','50603',310,1008);
INSERT INTO "communes" VALUES('73','Ruffieux','23',804,666,13.21,'3897','50944',233,1021);
INSERT INTO "communes" VALUES('73','Bourdeau','19',565,435,4.83,'3910','50760',228,1460);
INSERT INTO "communes" VALUES('73','Laissaud','18',620,526,6.57,'4111','50497',245,433);
INSERT INTO "communes" VALUES('73','Saint-Marcel','20',663,680,8.76,'4692','50553',495,1600);
INSERT INTO "communes" VALUES('73','Thoiry','34',448,391,17.75,'4103','50657',458,1780);
INSERT INTO "communes" VALUES('73','Jongieux','29',344,234,6.43,'3846','50821',226,1128);
INSERT INTO "communes" VALUES('73','Villard-sur-Doron','06',661,642,22.21,'4657','50807',627,2280);
INSERT INTO "communes" VALUES('73','Pallud','05',713,597,5.2,'4509','50763',348,845);
INSERT INTO "communes" VALUES('73','Mercury','05',2841,2332,22.33,'4445','50749',359,2040);
INSERT INTO "communes" VALUES('73','Saint-Sulpice','37',744,672,8.82,'3898','50631',352,1041);
INSERT INTO "communes" VALUES('73','Saint-Pierre-d''Entremont','14',424,371,18.36,'3908','50464',593,1861);
INSERT INTO "communes" VALUES('73','Novalaise','24',1913,1429,16.26,'3817','50661',371,1160);
INSERT INTO "communes" VALUES('73','Fontaine-le-Puits','20',140,122,4.47,'4634','50508',536,1672);
INSERT INTO "communes" VALUES('73','Montmélian','18',4039,3928,5.69,'4130','50559',256,1200);
INSERT INTO "communes" VALUES('73','Myans','18',1108,730,3.58,'4055','50572',290,347);
INSERT INTO "communes" VALUES('73','Saint-Alban-de-Montbel','21',620,446,4.55,'3830','50613',372,528);
INSERT INTO "communes" VALUES('73','<NAME>','33',7794,6555,6.82,'4033','50619',285,423);
INSERT INTO "communes" VALUES('73','Bonvillaret','01',122,69,8.88,'4404','50625',304,2363);
INSERT INTO "communes" VALUES('73','Saint-Thibaud-de-Couz','14',947,736,24.17,'3897','50557',460,1676);
INSERT INTO "communes" VALUES('73','Peisey-Nancroix','02',651,629,70.64,'4911','50607',1100,3779);
INSERT INTO "communes" VALUES('73','Arith','13',375,289,24.27,'4164','50795',549,1449);
INSERT INTO "communes" VALUES('73','Drumettaz-Clarafond','35',2384,1969,11.38,'4001','50732',257,1513);
INSERT INTO "communes" VALUES('73','Lucey','29',280,239,6.14,'3834','50836',220,660);
INSERT INTO "communes" VALUES('73','Feissons-sur-Salins','08',196,161,4.8,'4693','50523',760,1756);
INSERT INTO "communes" VALUES('73','Sainte-Marie-de-Cuines','11',781,573,14.95,'4405','50378',447,2136);
INSERT INTO "communes" VALUES('73','Lanslevillard','16',465,432,39.84,'5083','50322',1439,3560);
INSERT INTO "communes" VALUES('73','Venthon','05',587,581,2.5,'4530','50764',352,1382);
INSERT INTO "communes" VALUES('73','Saint-Baldoph','33',2965,2848,6.24,'4018','50595',291,881);
INSERT INTO "communes" VALUES('73','Mouxy','35',2090,1523,6.28,'3998','50758',349,1530);
INSERT INTO "communes" VALUES('73','Saint-Pierre-d''Albigny','27',3714,3268,18.46,'4243','50633',275,2037);
INSERT INTO "communes" VALUES('73','Aillon-le-Jeune','13',449,339,34.09,'4160','50687',877,2040);
INSERT INTO "communes" VALUES('73','Hauteluce','06',828,806,62.39,'4721','50835',780,2555);
INSERT INTO "communes" VALUES('73','Verthemex','29',171,141,9.28,'3837','50699',410,1467);
INSERT INTO "communes" VALUES('73','Saint-Offenge-Dessous','32',641,490,7.92,'4073','50817',404,1410);
INSERT INTO "communes" VALUES('73','La Compôte','13',226,216,7.57,'4249','50745',662,1954);
INSERT INTO "communes" VALUES('73','Chambéry','99',57342,55762,20.99,'3982','50629',245,560);
INSERT INTO "communes" VALUES('73','Planay','08',411,412,22.41,'4846','50470',860,3365);
INSERT INTO "communes" VALUES('73','Rochefort','24',203,176,5.6,'3762','50647',298,700);
INSERT INTO "communes" VALUES('73','<NAME>','11',351,278,12.28,'4379','50465',360,2200);
INSERT INTO "communes" VALUES('73','Belmont-Tramonet','21',548,405,5.46,'3714','50622',219,360);
INSERT INTO "communes" VALUES('73','Cevins','30',679,684,32.66,'4577','50657',375,2680);
INSERT INTO "communes" VALUES('73','Domessin','21',1748,1370,9.83,'3747','50600',235,364);
INSERT INTO "communes" VALUES('73','Attignat-Oncin','14',555,418,18.46,'3821','50565',381,1427);
INSERT INTO "communes" VALUES('73','Bessans','16',343,310,128.08,'5174','50356',1673,3754);
INSERT INTO "communes" VALUES('73','Arbin','18',782,711,1.71,'4145','50565',271,499);
INSERT INTO "communes" VALUES('73','Barby','34',3308,2958,2.48,'4046','50635',292,655);
INSERT INTO "communes" VALUES('73','Challes-les-Eaux','33',5087,3929,5.65,'4052','50608',290,720);
INSERT INTO "communes" VALUES('73','Serrières-en-Chautagne','23',1129,790,16.04,'3896','50980',237,1057);
INSERT INTO "communes" VALUES('73','Saint-Nicolas-la-Chapelle','28',407,419,23.63,'4628','50899',751,2369);
INSERT INTO "communes" VALUES('73','Saint-Béron','21',1548,1219,8.66,'3770','50557',254,573);
INSERT INTO "communes" VALUES('73','Saint-Paul-sur-Isère','30',522,441,20.93,'4558','50664',365,2480);
INSERT INTO "communes" VALUES('73','Presle','22',444,376,11.58,'4224','50505',360,2335);
INSERT INTO "communes" VALUES('73','La Chapelle-Blanche','22',528,443,4.13,'4151','50498',296,732);
INSERT INTO "communes" VALUES('73','La Biolle','04',2200,1761,13.04,'3992','50840',300,849);
INSERT INTO "communes" VALUES('73','Saint-Alban-des-Hurtières','01',323,227,19.4,'4377','50537',341,2069);
INSERT INTO "communes" VALUES('73','Aime','02',3501,3222,50.74,'4791','50617',596,2589);
INSERT INTO "communes" VALUES('73','Tresserve','35',3117,2996,2.77,'3958','50748',228,331);
INSERT INTO "communes" VALUES('73','Esserts-Blay','30',746,654,15.51,'4554','50681',345,2080);
INSERT INTO "communes" VALUES('73','Bellecombe-en-Bauges','13',644,458,22.89,'4228','50819',558,1880);
INSERT INTO "communes" VALUES('73','Montvernier','25',224,136,6.68,'4452','50357',560,1726);
INSERT INTO "communes" VALUES('73','Conjux','23',183,169,1.7,'3872','50878',225,443);
INSERT INTO "communes" VALUES('73','Saint-Jean-d''Arvey','34',1479,1314,13.01,'4066','50651',328,1545);
INSERT INTO "communes" VALUES('73','Albens','04',3231,2651,15.3,'4009','50874',329,685);
INSERT INTO "communes" VALUES('73','Détrier','22',419,286,2.25,'4180','50495',332,762);
INSERT INTO "communes" VALUES('73','Saint-Pierre-de-Curtille','23',450,361,9.75,'3861','50862',229,621);
INSERT INTO "communes" VALUES('73','Allondaz','05',229,176,4.08,'4483','50784',557,1616);
INSERT INTO "communes" VALUES('73','Montaimont','11',160,136,28.35,'4456','50413',676,2815);
INSERT INTO "communes" VALUES('73','Billième','29',242,267,5.98,'3858','50799',320,1161);
INSERT INTO "communes" VALUES('73','Jacob-Bellecombette','37',3968,3582,2.47,'3974','50617',290,576);
INSERT INTO "communes" VALUES('73','Cessens','04',420,331,13.29,'3939','50888',464,982);
INSERT INTO "communes" VALUES('73','Avressieux','24',473,384,8.07,'3731','50636',234,477);
INSERT INTO "communes" VALUES('73','Chamousset','12',560,383,6.31,'4292','50618',280,325);
INSERT INTO "communes" VALUES('73','Landry','02',766,628,10.62,'4893','50635',724,2680);
INSERT INTO "communes" VALUES('73','<NAME>','30',2103,2023,22.45,'4570','50696',346,2440);
INSERT INTO "communes" VALUES('73','Lescheraines','13',724,554,8.17,'4187','50787',578,1305);
INSERT INTO "communes" VALUES('73','Valezan','02',207,157,8.01,'4841','50639',695,2409);
INSERT INTO "communes" VALUES('73','Bassens','34',3717,3507,3.11,'4005','50646',280,564);
INSERT INTO "communes" VALUES('73','Gilly-sur-Isère','30',2903,2462,7.03,'4458','50733',318,444);
INSERT INTO "communes" VALUES('73','Saint-Alban-Leysse','34',5710,5089,8.4,'4024','50645',290,1240);
INSERT INTO "communes" VALUES('73','Traize','29',281,232,9.48,'3788','50746',270,700);
INSERT INTO "communes" VALUES('73','Gresin','24',360,267,5.01,'3718','50678',238,730);
INSERT INTO "communes" VALUES('73','Champagny-en-Vanoise','08',679,595,84.96,'4840','50505',960,3855);
INSERT INTO "communes" VALUES('73','Tours-en-Savoie','30',851,733,15.37,'4559','50728',343,2440);
INSERT INTO "communes" VALUES('73','Chamoux-sur-Gelon','12',880,679,10.63,'4310','50592',287,1052);
INSERT INTO "communes" VALUES('73','<NAME>','20',1928,1773,102.86,'4596','50591',411,2815);
INSERT INTO "communes" VALUES('73','Saint-Jean-de-Belleville','20',559,417,59.6,'4609','50474',668,2822);
INSERT INTO "communes" VALUES('73','Corbel','14',131,109,10.31,'3876','50477',480,1617);
INSERT INTO "communes" VALUES('73','Saint-André','17',480,452,30.84,'4758','50223',931,3400);
INSERT INTO "communes" VALUES('73','Sainte-Foy-Tarentaise','07',767,683,100.15,'5052','50655',871,3747);
INSERT INTO "communes" VALUES('73','Saint-François-Longchamp','11',218,194,12.97,'4457','50455',808,2822);
INSERT INTO "communes" VALUES('73','Méry','35',1385,1183,9.07,'4002','50714',272,1000);
INSERT INTO "communes" VALUES('73','<NAME>','22',290,218,4.88,'4234','50554',292,736);
INSERT INTO "communes" VALUES('73','Entremont-le-Vieux','14',599,518,33.01,'3942','50502',755,1934);
INSERT INTO "communes" VALUES('73','La Croix-de-la-Rochette','22',305,182,3.04,'4202','50519',313,811);
INSERT INTO "communes" VALUES('73','Verrens-Arvey','15',802,580,10.82,'4421','50726',380,2080);
INSERT INTO "communes" VALUES('73','Motz','23',392,330,9.04,'3901','51022',240,1044);
INSERT INTO "communes" VALUES('73','Saint-Pierre-d''Alvey','29',282,170,7.7,'3784','50700',410,860);
INSERT INTO "communes" VALUES('73','Hauteville','12',324,233,2.45,'4262','50589',300,640);
INSERT INTO "communes" VALUES('73','Villard-d''Héry','18',246,186,4.9,'4223','50572',267,736);
INSERT INTO "communes" VALUES('73','Aiguebelette-le-Lac','21',240,189,7.91,'3865','50598',372,1360);
INSERT INTO "communes" VALUES('73','La Chapelle-Saint-Martin','29',148,84,2.57,'3801','50719',315,521);
INSERT INTO "communes" VALUES('73','Bonneval','20',106,103,19.58,'4575','50576',417,2493);
INSERT INTO "communes" VALUES('73','Sonnaz','09',1510,1221,6.79,'3975','50686',271,680);
INSERT INTO "communes" VALUES('73','Saint-Léger','01',235,224,11.06,'4378','50485',352,2200);
INSERT INTO "communes" VALUES('73','<NAME>','22',138,114,8.66,'4325','50554',833,1569);
INSERT INTO "communes" VALUES('73','Saint-Sorlin-d''Arves','25',343,324,39,'4331','50246',1427,3464);
INSERT INTO "communes" VALUES('73','<NAME>','18',613,394,3.06,'4154','50550',257,365);
INSERT INTO "communes" VALUES('73','Saint-Georges-des-Hurtières','01',302,210,11.85,'4389','50558',325,1470);
INSERT INTO "communes" VALUES('73','Thénésol','05',246,262,5.49,'4511','50791',364,1800);
INSERT INTO "communes" VALUES('73','Sainte-Reine','13',158,124,14.62,'4225','50680',751,2037);
INSERT INTO "communes" VALUES('73','<NAME>','28',446,493,35.2,'4621','50958',1002,2611);
INSERT INTO "communes" VALUES('73','Montvalezan','07',676,585,25.9,'5011','50680',860,2939);
INSERT INTO "communes" VALUES('73','Albiez-Montrond','25',381,387,48.58,'4449','50244',738,3320);
INSERT INTO "communes" VALUES('73','Saint-Jean-de-la-Porte','27',842,827,16.01,'4213','50618',273,1569);
INSERT INTO "communes" VALUES('73','Chavannes-en-Maurienne','11',234,206,4.69,'4384','50435',407,1240);
INSERT INTO "communes" VALUES('73','Salins-les-Thermes','20',947,942,4.17,'4658','50524',469,1320);
INSERT INTO "communes" VALUES('73','Modane','17',3495,3668,71.04,'4818','50224',1054,3560);
INSERT INTO "communes" VALUES('73','Villaroux','18',224,195,3.09,'4154','50509',360,809);
INSERT INTO "communes" VALUES('73','Queige','06',852,738,32.61,'4580','50800',424,2440);
INSERT INTO "communes" VALUES('73','Rognaix','30',436,375,8.98,'4566','50650',381,2080);
INSERT INTO "communes" VALUES('73','Aussois','17',667,629,41.94,'4894','50253',1120,3600);
INSERT INTO "communes" VALUES('73','Jarrier','25',471,453,17.79,'4422','50311',760,2173);
INSERT INTO "communes" VALUES('73','Saint-Ours','04',547,372,4.59,'4058','50842',432,690);
INSERT INTO "communes" VALUES('73','Ontex','29',91,55,4.62,'3872','50839',452,1161);
INSERT INTO "communes" VALUES('73','Saint-François-de-Sales','13',143,124,14.44,'4132','50757',697,1432);
INSERT INTO "communes" VALUES('73','Francin','18',883,686,6.93,'4109','50556',248,1130);
INSERT INTO "communes" VALUES('73','Pugny-Chatenod','32',941,707,5.36,'4020','50773',380,1539);
INSERT INTO "communes" VALUES('73','Grésy-sur-Aix','32',3986,2827,12.73,'3997','50803',253,620);
INSERT INTO "communes" VALUES('73','Saint-Genix-sur-Guiers','24',2247,1816,12.27,'3664','50667',208,489);
INSERT INTO "communes" VALUES('73','Fréterive','27',489,433,11.01,'4304','50649',285,2051);
INSERT INTO "communes" VALUES('73','Champagneux','24',594,379,10.68,'3708','50693',207,820);
INSERT INTO "communes" VALUES('73','Barberaz','33',4598,4660,3.79,'4009','50626',280,720);
INSERT INTO "communes" VALUES('73','Chindrieux','23',1235,1093,16.42,'3906','50913',227,900);
INSERT INTO "communes" VALUES('73','<NAME>','19',11101,10919,29.85,'3934','50663',232,1440);
INSERT INTO "communes" VALUES('73','Aigueblanche','20',3117,2660,19.67,'4637','50556',437,2280);
INSERT INTO "communes" VALUES('73','Saint-Oyen','20',206,194,2.11,'4608','50560',509,1102);
INSERT INTO "communes" VALUES('73','Dullin','21',402,335,5.31,'3787','50616',280,669);
INSERT INTO "communes" VALUES('73','Montagnole','37',816,669,11.3,'3969','50598',360,1445);
INSERT INTO "communes" VALUES('73','Montcel','32',858,731,15.23,'4052','50804',371,1563);
INSERT INTO "communes" VALUES('73','Arvillard','22',847,704,29.28,'4204','50491',400,2760);
INSERT INTO "communes" VALUES('73','Plancherine','15',413,297,6.86,'4422','50739',440,2173);
INSERT INTO "communes" VALUES('73','Saint-Franc','14',149,146,7.25,'3788','50546',320,725);
INSERT INTO "communes" VALUES('73','Saint-Cassin','37',758,697,14.79,'3953','50598',310,1540);
INSERT INTO "communes" VALUES('73','Saint-Rémy-de-Maurienne','11',1272,966,44.26,'4365','50436',394,2760);
INSERT INTO "communes" VALUES('73','Gerbaix','24',416,322,6.91,'3789','50677',440,858);
INSERT INTO "communes" VALUES('73','Bozel','08',2027,1857,28.8,'4791','50492',746,2589);
INSERT INTO "communes" VALUES('73','Notre-Dame-de-Bellecombe','28',512,489,21.45,'4647','50899',839,2068);
INSERT INTO "communes" VALUES('73','Saint-Girod','04',581,420,6.35,'4034','50867',334,537);
INSERT INTO "communes" VALUES('73','Saint-Germain-la-Chambotte','04',446,384,9.64,'3950','50865',229,847);
INSERT INTO "communes" VALUES('73','<NAME>','29',252,178,9.4,'3758','50785',210,689);
INSERT INTO "communes" VALUES('73','Villaroger','07',400,367,28.15,'5042','50657',859,3779);
INSERT INTO "communes" VALUES('73','Chignin','18',831,757,8.32,'4084','50582',276,1254);
INSERT INTO "communes" VALUES('73','Beaufort','06',2184,1991,149.53,'4709','50798',683,2882);
INSERT INTO "communes" VALUES('73','Argentine','01',902,691,28.03,'4418','50549',326,2696);
INSERT INTO "communes" VALUES('73','Saint-Christophe','14',517,442,11.01,'3821','50501',385,1253);
INSERT INTO "communes" VALUES('73','Épersy','04',342,290,3.22,'4026','50821',343,564);
INSERT INTO "communes" VALUES('73','Marcieux','24',185,120,4.4,'3806','50681',400,1434);
INSERT INTO "communes" VALUES('73','Saint-Étienne-de-Cuines','11',1200,1214,20.5,'4394','50380',425,2760);
INSERT INTO "communes" VALUES('73','Planaise','18',512,356,4.16,'4171','50559',272,419);
INSERT INTO "communes" VALUES('73','Jarsy','13',284,247,32.68,'4269','50730',697,2210);
INSERT INTO "communes" VALUES('73','Saint-Julien-Mont-Denis','25',1630,1649,33.04,'4520','50285',552,2824);
INSERT INTO "communes" VALUES('73','Bramans','16',392,361,92.26,'4933','50248',1194,3378);
INSERT INTO "communes" VALUES('73','Le Bourget-du-Lac','19',4410,3948,20.05,'3914','50720',226,1496);
INSERT INTO "communes" VALUES('73','École','13',254,238,29.65,'4257','50723',696,2186);
INSERT INTO "communes" VALUES('73','Saint-Pancrace','25',286,214,5.59,'4432','50300',715,2137);
INSERT INTO "communes" VALUES('73','Villard-Léger','12',491,383,6.73,'4276','50572',293,1025);
INSERT INTO "communes" VALUES('73','Feissons-sur-Isère','20',584,504,12.1,'4593','50622',394,2482);
INSERT INTO "communes" VALUES('73','Bourget-en-Huile','22',149,125,6.79,'4300','50539',795,1744);
INSERT INTO "communes" VALUES('73','Villargondran','25',988,942,6.12,'4486','50290',544,1454);
INSERT INTO "communes" VALUES('73','Coise-Saint-Jean-Pied-Gauthier','12',1182,944,10.38,'4229','50584',268,419);
INSERT INTO "communes" VALUES('73','Chapelles','07',517,366,17.31,'4881','50655',772,2964);
INSERT INTO "communes" VALUES('73','Ugine','28',7058,6957,57.36,'4537','50836',391,2407);
INSERT INTO "communes" VALUES('73','Bourg-Saint-Maurice','07',7705,6750,179.07,'4924','50685',744,3823);
INSERT INTO "communes" VALUES('73','Saint-Offenge-Dessus','32',274,216,7.71,'4077','50808',556,1449);
INSERT INTO "communes" VALUES('73','Saint-Martin-sur-la-Chambre','11',476,414,4.69,'4422','50406',492,1200);
INSERT INTO "communes" VALUES('73','Notre-Dame-des-Millières','15',924,812,10.35,'4453','50696',311,2279);
INSERT INTO "communes" VALUES('73','Saint-Jean-de-Chevelu','29',747,584,12.72,'3869','50767',295,1443);
INSERT INTO "communes" VALUES('73','Aiton','01',1774,1161,16.29,'4358','50624',286,1009);
INSERT INTO "communes" VALUES('73','Viviers-du-Lac','35',2056,1491,3.94,'3966','50720',228,389);
INSERT INTO "communes" VALUES('73','Saint-Martin-d''Arc','26',344,340,4.93,'4590','50237',695,1560);
INSERT INTO "communes" VALUES('73','<NAME>','14',417,221,6.58,'3809','50536',408,1311);
INSERT INTO "communes" VALUES('73','Moutiers','20',3821,4149,3.16,'4663','50539',465,1042);
INSERT INTO "communes" VALUES('73','Villarembert','25',261,290,9.58,'4381','50273',1089,2265);
INSERT INTO "communes" VALUES('73','Saint-Alban-des-Villards','11',89,52,24.02,'4347','50343',667,2727);
INSERT INTO "communes" VALUES('73','Saint-Martin-de-la-Porte','26',702,625,19.25,'4566','50267',655,2824);
INSERT INTO "communes" VALUES('73','Saint-Michel-de-Maurienne','26',2776,2714,36.31,'4597','50243',698,3130);
INSERT INTO "communes" VALUES('73','Vions','23',394,328,5.7,'3856','50916',224,397);
INSERT INTO "communes" VALUES('73','Val-d''Isère','07',1563,1628,94.39,'5156','50500',1785,3599);
INSERT INTO "communes" VALUES('73','Marthod','28',1372,1278,14.78,'4519','50807',372,2063);
INSERT INTO "communes" VALUES('73','Échelles','14',1219,1248,3.75,'3797','50485',364,459);
INSERT INTO "communes" VALUES('73','Saint-Maurice-de-Rotherens','24',217,166,8.17,'3735','50690',376,880);
INSERT INTO "communes" VALUES('73','Sainte-Hélène-sur-Isère','15',1109,993,14.43,'4427','50682',298,2294);
INSERT INTO "communes" VALUES('73','Cohennoz','28',156,138,13.78,'4605','50842',520,1880);
INSERT INTO "communes" VALUES('73','Villard-Sallet','22',252,225,3.14,'4224','50539',302,806);
INSERT INTO "communes" VALUES('73','Cognin','37',5913,5879,4.48,'3956','50624',269,451);
INSERT INTO "communes" VALUES('73','Rotherens','22',314,192,1.74,'4222','50525',311,531);
INSERT INTO "communes" VALUES('73','Étable','22',353,289,2.7,'4227','50515',393,860);
INSERT INTO "communes" VALUES('73','<NAME>','08',444,352,9.96,'4730','50494',599,2527);
INSERT INTO "communes" VALUES('73','Champ-Laurent','12',34,21,5.07,'4306','50565',520,1337);
INSERT INTO "communes" VALUES('73','Granier','02',371,307,30.31,'4793','50636',832,2700);
INSERT INTO "communes" VALUES('73','Bonneval-sur-Arc','16',241,239,82.72,'5233','50413',1759,3642);
INSERT INTO "communes" VALUES('73','Notre-Dame-du-Pré','20',271,273,18.2,'4730','50569',536,2556);
INSERT INTO "communes" VALUES('73','Saint-Jeoire-Prieuré','33',1067,851,5.34,'4063','50594',294,901);
INSERT INTO "communes" VALUES('73','Montgirod','02',439,378,13.62,'4733','50595',556,2255);
INSERT INTO "communes" VALUES('73','Sollières-Sardières','16',190,162,33.31,'4969','50294',1232,3241);
INSERT INTO "communes" VALUES('73','Pontamafrey-Montpascal','25',336,350,11.59,'4450','50347',464,2680);
INSERT INTO "communes" VALUES('73','Marches','18',2448,2135,15.35,'4071','50555',244,1115);
INSERT INTO "communes" VALUES('73','Valmeinier','26',432,375,54.26,'4605','50204',1200,3160);
INSERT INTO "communes" VALUES('73','<NAME>','13',658,549,18,'4223','50762',608,1920);
INSERT INTO "communes" VALUES('73','Césarches','05',391,357,2.9,'4528','50779',347,964);
INSERT INTO "communes" VALUES('73','Montendry','12',58,23,8.28,'4338','50584',400,1400);
INSERT INTO "communes" VALUES('73','Fontcouverte-la-Toussuire','25',593,503,21.52,'4406','50274',659,2305);
INSERT INTO "communes" VALUES('73','Verel-de-Montbel','21',292,228,3.74,'3771','50621',245,600);
INSERT INTO "communes" VALUES('73','Tignes','07',2178,2232,81.63,'5085','50525',1440,3747);
INSERT INTO "communes" VALUES('73','Châteauneuf','12',757,580,6.99,'4272','50605',277,429);
INSERT INTO "communes" VALUES('73','Cruet','27',1045,963,10.06,'4172','50587',272,1456);
INSERT INTO "communes" VALUES('74','Andilly','11',778,594,6.07,'4148','51189',577,857);
INSERT INTO "communes" VALUES('74','Minzier','15',862,498,8.79,'4058','51170',456,750);
INSERT INTO "communes" VALUES('74','Saint-Paul-en-Chablais','13',2172,1700,14.45,'4770','51532',698,1268);
INSERT INTO "communes" VALUES('74','Hauteville-sur-Fier','18',825,685,4.9,'4042','51004',320,524);
INSERT INTO "communes" VALUES('74','Vanzy','15',303,242,5.57,'3947','51144',287,537);
INSERT INTO "communes" VALUES('74','Chevrier','21',411,306,5.35,'3977','51232',332,932);
INSERT INTO "communes" VALUES('74','<NAME>','17',10446,8545,17.94,'4417','51186',500,1896);
INSERT INTO "communes" VALUES('74','Thorens-Glières','28',3108,2558,63.05,'4345','51108',565,2000);
INSERT INTO "communes" VALUES('74','<NAME>','16',1005,704,14.38,'4299','51248',537,1303);
INSERT INTO "communes" VALUES('74','Magland','10',3149,2800,40.32,'4759','51135',483,2649);
INSERT INTO "communes" VALUES('74','Dingy-en-Vuache','21',644,395,7.18,'4009','51213',510,1002);
INSERT INTO "communes" VALUES('74','<NAME>','32',503,375,37.36,'4665','51124',820,2749);
INSERT INTO "communes" VALUES('74','Faucigny','08',506,411,4.91,'4468','51243',477,1002);
INSERT INTO "communes" VALUES('74','Contamines-Montjoie','19',1193,1126,43.55,'4881','50913',999,3880);
INSERT INTO "communes" VALUES('74','Bassy','24',450,328,7.57,'3881','51090',260,442);
INSERT INTO "communes" VALUES('74','Épagny','29',3899,3233,6.77,'4171','51042',440,775);
INSERT INTO "communes" VALUES('74','Mûres','02',680,646,5.23,'4113','50895',380,593);
INSERT INTO "communes" VALUES('74','Saxel','07',394,347,5.63,'4510','51381',832,1297);
INSERT INTO "communes" VALUES('74','Metz-Tessy','29',2708,2005,5.29,'4189','51045',423,708);
INSERT INTO "communes" VALUES('74','Saint-Gingolph','13',759,564,7.33,'4962','51547',372,1528);
INSERT INTO "communes" VALUES('74','Cervens','34',1092,729,6.36,'4561','51429',565,1211);
INSERT INTO "communes" VALUES('74','Machilly','05',957,860,5.76,'4438','51391',459,1129);
INSERT INTO "communes" VALUES('74','Serraval','26',608,487,19.73,'4448','50892',626,2200);
INSERT INTO "communes" VALUES('74','Seynod','33',18842,16367,19.17,'4177','50988',446,1024);
INSERT INTO "communes" VALUES('74','Crempigny-Bonneguête','18',267,167,5.82,'3963','51057',340,857);
INSERT INTO "communes" VALUES('74','<NAME>','26',401,328,17.79,'4377','51001',534,1915);
INSERT INTO "communes" VALUES('74','Gets','25',1248,1352,29.98,'4815','51289',900,1820);
INSERT INTO "communes" VALUES('74','Annecy','99',50379,50324,13.65,'4214','50999',418,926);
INSERT INTO "communes" VALUES('74','Abondance','01',1342,1297,58.84,'4873','51421',840,2420);
INSERT INTO "communes" VALUES('74','Sillingy','29',4470,2878,14.84,'4110','51051',451,760);
INSERT INTO "communes" VALUES('74','Montriond','06',819,768,24.71,'4842','51330',877,2340);
INSERT INTO "communes" VALUES('74','Montagny-les-Lanches','33',590,374,4.38,'4120','50957',525,729);
INSERT INTO "communes" VALUES('74','Jonzier-Épagny','21',711,515,7.16,'4059','51190',518,733);
INSERT INTO "communes" VALUES('74','Chapeiry','02',775,598,5.76,'4112','50939',395,625);
INSERT INTO "communes" VALUES('74','Viuz-en-Sallaz','20',3889,3374,20.99,'4526','51275',550,1500);
INSERT INTO "communes" VALUES('74','Bloye','18',533,428,4.4,'4010','50918',352,494);
INSERT INTO "communes" VALUES('74','Beaumont','21',2125,1294,9.74,'4183','51216',596,1380);
INSERT INTO "communes" VALUES('74','Marlens','14',850,699,15.23,'4458','50853',437,1841);
INSERT INTO "communes" VALUES('74','Taninges','25',3398,3138,42.66,'4728','51230',609,2000);
INSERT INTO "communes" VALUES('74','Megève','22',3705,4518,44.11,'4756','50952',1027,2485);
INSERT INTO "communes" VALUES('74','Loisin','12',1406,1140,7.86,'4415','51435',427,572);
INSERT INTO "communes" VALUES('74','Excenevex','12',1010,681,6.66,'4464','51504',372,451);
INSERT INTO "communes" VALUES('74','Menthon-Saint-Bernard','30',1873,1668,4.51,'4287','50956',443,1229);
INSERT INTO "communes" VALUES('74','Marin','27',1588,1283,5.57,'4658','51529',390,661);
INSERT INTO "communes" VALUES('74','Combloux','22',2080,1992,17.27,'4783','50995',720,1784);
INSERT INTO "communes" VALUES('74','Lucinges','05',1547,1212,7.69,'4424','51323',525,1400);
INSERT INTO "communes" VALUES('74','<NAME>','08',1144,871,53.42,'4511','51112',591,2408);
INSERT INTO "communes" VALUES('74','Manigod','26',986,790,44.12,'4481','50957',719,2485);
INSERT INTO "communes" VALUES('74','Chavannaz','15',187,137,3.17,'4088','51167',438,703);
INSERT INTO "communes" VALUES('74','Vers','21',702,528,5.91,'4094','51213',530,821);
INSERT INTO "communes" VALUES('74','Valleiry','21',3195,2195,6.95,'4035','51231',355,560);
INSERT INTO "communes" VALUES('74','Duingt','33',884,798,4.39,'4296','50920',442,1202);
INSERT INTO "communes" VALUES('74','Marnaz','32',5169,4450,9.02,'4655','51177',464,2098);
INSERT INTO "communes" VALUES('74','Sciez','34',5386,4283,20.47,'4486','51480',372,725);
INSERT INTO "communes" VALUES('74','Franclens','24',466,335,5.37,'3881','51158',268,544);
INSERT INTO "communes" VALUES('74','Cornier','17',1203,936,6.78,'4403','51214',453,912);
INSERT INTO "communes" VALUES('74','Groisy','28',3062,2606,21.44,'4261','51131',529,874);
INSERT INTO "communes" VALUES('74','Feigères','21',1492,1231,7.66,'4160','51237',453,680);
INSERT INTO "communes" VALUES('74','Arâches-la-Frasse','10',1816,1695,37.69,'4772','51159',560,2466);
INSERT INTO "communes" VALUES('74','Vulbens','21',966,786,12.53,'3993','51224',327,920);
INSERT INTO "communes" VALUES('74','Lullin','27',837,602,13.25,'4649','51426',780,1530);
INSERT INTO "communes" VALUES('74','Éloise','15',862,719,8.95,'3913','51200',330,533);
INSERT INTO "communes" VALUES('74','Marcellaz-Albanais','18',1775,1405,14.54,'4072','50972',340,729);
INSERT INTO "communes" VALUES('74','Thyez','08',5671,4869,9.81,'4672','51204',461,1347);
INSERT INTO "communes" VALUES('74','Morzine','06',2908,2959,44.1,'4858','51311',890,2460);
INSERT INTO "communes" VALUES('74','Marlioz','15',691,441,8.12,'4074','51147',366,630);
INSERT INTO "communes" VALUES('74','Versonnex','18',549,312,4.18,'3989','51032',335,563);
INSERT INTO "communes" VALUES('74','Vallorcine','09',429,390,44.57,'5107','51149',1120,3098);
INSERT INTO "communes" VALUES('74','Etaux','17',1694,1089,13.69,'4397','51184',580,922);
INSERT INTO "communes" VALUES('74','Clarafond-Arcine','15',895,707,16.88,'3952','51182',330,1000);
INSERT INTO "communes" VALUES('74','Mésigny','29',686,630,6.73,'4073','51095',400,720);
INSERT INTO "communes" VALUES('74','Menthonnex-en-Bornes','11',926,611,8.48,'4263','51170',690,964);
INSERT INTO "communes" VALUES('74','Villy-le-Pelloux','30',871,456,2.97,'4218','51112',562,754);
INSERT INTO "communes" VALUES('74','Évian-les-Bains','13',8142,7278,4.29,'4726','51556',372,772);
INSERT INTO "communes" VALUES('74','<NAME>','26',1874,2026,40.62,'4540','51005',995,2611);
INSERT INTO "communes" VALUES('74','Draillant','34',711,0,10.41,'4580','51450',567,1513);
INSERT INTO "communes" VALUES('74','Menthonnex-sous-Clermont','24',638,509,10.14,'3999','51073',399,749);
INSERT INTO "communes" VALUES('74','Choisy','29',1556,1364,16.57,'4134','51103',390,903);
INSERT INTO "communes" VALUES('74','Maxilly-sur-Léman','13',1336,1018,4.07,'4774','51555',372,830);
INSERT INTO "communes" VALUES('74','Bons-en-Chablais','12',4805,3980,19.09,'4482','51405',475,1480);
INSERT INTO "communes" VALUES('74','Leschaux','33',265,258,12.52,'4210','50859',756,1666);
INSERT INTO "communes" VALUES('74','Musièges','15',364,269,2.98,'4018','51128',323,705);
INSERT INTO "communes" VALUES('74','Cusy','02',1757,1280,17.43,'4104','50850',420,1365);
INSERT INTO "communes" VALUES('74','Meythet','29',8421,7697,3.24,'4173','51017',411,460);
INSERT INTO "communes" VALUES('74','Alex','30',985,791,17.02,'4335','50988',516,1852);
INSERT INTO "communes" VALUES('74','Essert-Romand','06',442,352,6.78,'4816','51335',837,1780);
INSERT INTO "communes" VALUES('74','Thônes','26',5960,5189,52.33,'4432','50980',574,2280);
INSERT INTO "communes" VALUES('74','Thollon-les-Mémises','13',685,592,13.78,'4847','51543',760,1975);
INSERT INTO "communes" VALUES('74','<NAME>','26',237,174,18.52,'4474','50886',745,2407);
INSERT INTO "communes" VALUES('74','Saint-Jean-d''Aulps','06',1180,1028,40.19,'4799','51372',734,2240);
INSERT INTO "communes" VALUES('74','Ollières','28',839,737,11.64,'4273','51088',489,794);
INSERT INTO "communes" VALUES('74','Chêne-en-Semine','24',419,257,9.46,'3913','51163',320,553);
INSERT INTO "communes" VALUES('74','Vallières','18',1446,1278,9.03,'3999','51000',299,510);
INSERT INTO "communes" VALUES('74','Ville-la-Grand','05',7881,6983,4.49,'4345','51336',432,521);
INSERT INTO "communes" VALUES('74','Arthaz-Pont-Notre-Dame','31',1279,1167,5.96,'4367','51288',405,513);
INSERT INTO "communes" VALUES('74','Saint-Laurent','17',807,603,10.96,'4469','51163',520,1809);
INSERT INTO "communes" VALUES('74','Thusy','18',907,840,10.74,'4013','51053',377,728);
INSERT INTO "communes" VALUES('74','Aviernoz','28',776,615,15.9,'4318','51087',578,1673);
INSERT INTO "communes" VALUES('74','Vacheresse','01',775,604,31.02,'4819','51472',755,2090);
INSERT INTO "communes" VALUES('74','Présilly','21',681,622,8.66,'4157','51215',594,1311);
INSERT INTO "communes" VALUES('74','Yvoire','12',849,631,3.12,'4433','51522',372,441);
INSERT INTO "communes" VALUES('74','Saint-Sigismond','10',623,586,7.92,'4753','51191',620,1420);
INSERT INTO "communes" VALUES('74','Ayse','08',1999,1815,10.48,'4556','51203',444,1843);
INSERT INTO "communes" VALUES('74','Messery','12',2103,1435,9.22,'4395','51501',372,451);
INSERT INTO "communes" VALUES('74','Peillonnex','08',1422,1060,6.4,'4488','51257',565,753);
INSERT INTO "communes" VALUES('74','Bonneville','08',11908,10457,27.15,'4516','51199',428,1877);
INSERT INTO "communes" VALUES('74','Allonzier-la-Caille','11',1637,1080,9.62,'4200','51115',471,882);
INSERT INTO "communes" VALUES('74','Mont-Saxonnex','08',1593,1155,26.28,'4609','51171',580,2433);
INSERT INTO "communes" VALUES('74','Chessenaz','15',181,154,5.23,'3958','51149',290,595);
INSERT INTO "communes" VALUES('74','Saint-Cergues','05',3157,2487,12.55,'4428','51373',486,1480);
INSERT INTO "communes" VALUES('74','Saint-Jeoire','20',3197,2754,22.75,'4581','51265',498,1860);
INSERT INTO "communes" VALUES('74','La Chapelle-Saint-Maurice','33',130,115,6.48,'4237','50865',754,1760);
INSERT INTO "communes" VALUES('74','La Rivière-Enverse','25',451,393,7.98,'4777','51214',619,1320);
INSERT INTO "communes" VALUES('74','Lovagny','29',1171,720,5.55,'4107','51005',352,669);
INSERT INTO "communes" VALUES('74','Cordon','22',1004,878,22.35,'4751','51026',580,2520);
INSERT INTO "communes" VALUES('74','Passy','19',11492,10094,80.03,'4833','51026',542,2880);
INSERT INTO "communes" VALUES('74','Villards-sur-Thônes','26',1011,899,13.32,'4477','51008',716,2019);
INSERT INTO "communes" VALUES('74','Chevenoz','01',557,502,10.54,'4780','51489',560,1627);
INSERT INTO "communes" VALUES('74','Entremont','08',617,461,18.35,'4503','51063',755,2019);
INSERT INTO "communes" VALUES('74','Lornay','18',496,348,9.65,'3961','51018',295,1025);
INSERT INTO "communes" VALUES('74','Seyssel','24',2353,1800,16.86,'3889','51065',250,937);
INSERT INTO "communes" VALUES('74','Servoz','09',926,819,13.47,'4917','51035',758,2324);
INSERT INTO "communes" VALUES('74','Massingy','18',830,607,12.34,'3982','50922',373,825);
INSERT INTO "communes" VALUES('74','Saint-Jorioz','33',5717,5000,21.12,'4252','50926',443,1657);
INSERT INTO "communes" VALUES('74','Savigny','21',736,500,10.52,'4027','51185',489,1112);
INSERT INTO "communes" VALUES('74','Montmin','14',329,192,16.29,'4364','50892',635,2338);
INSERT INTO "communes" VALUES('74','Allinges','34',3982,3022,15.01,'4585','51483',438,750);
INSERT INTO "communes" VALUES('74','Nancy-sur-Cluses','32',442,357,14.22,'4712','51159',680,2183);
INSERT INTO "communes" VALUES('74','Vaulx','18',847,739,11.19,'4065','51033',337,712);
INSERT INTO "communes" VALUES('74','Desingy','24',792,603,18.93,'3948','51106',260,661);
INSERT INTO "communes" VALUES('74','Lugrin','13',2308,2002,13.22,'4809','51558',372,1245);
INSERT INTO "communes" VALUES('74','Villy-le-Bouveret','11',565,396,3.49,'4250','51160',626,802);
INSERT INTO "communes" VALUES('74','Fessy','12',752,590,8.53,'4527','51417',475,1297);
INSERT INTO "communes" VALUES('74','Chaumont','15',417,382,12.38,'4024','51150',338,1112);
INSERT INTO "communes" VALUES('74','Meillerie','13',314,279,3.91,'4870','51564',372,1000);
INSERT INTO "communes" VALUES('74','Onnion','20',1193,786,18.97,'4603','51302',683,1851);
INSERT INTO "communes" VALUES('74','Thonon-les-Bains','95',33925,28980,16.21,'4603','51523',371,569);
INSERT INTO "communes" VALUES('74','Habère-Poche','07',1226,729,11.96,'4595','51388',850,1560);
INSERT INTO "communes" VALUES('74','Anthy-sur-Léman','34',1958,1765,4.62,'4545','51506',372,470);
INSERT INTO "communes" VALUES('74','Chevaline','14',205,196,14.16,'4314','50847',503,2176);
INSERT INTO "communes" VALUES('74','Argonay','30',2583,1887,5.16,'4226','51050',456,738);
INSERT INTO "communes" VALUES('74','<NAME>','06',463,340,13.18,'4773','51403',660,1870);
INSERT INTO "communes" VALUES('74','Boussy','18',504,344,5.23,'4051','50951',326,567);
INSERT INTO "communes" VALUES('74','Lully','12',675,512,4.86,'4532','51426',470,584);
INSERT INTO "communes" VALUES('74','Héry-sur-Alby','02',907,709,7.33,'4085','50886',398,702);
INSERT INTO "communes" VALUES('74','Saint-Sylvestre','02',601,512,5.34,'4092','50931',355,688);
INSERT INTO "communes" VALUES('74','Monnetier-Mornex','16',2229,1792,11.4,'4300','51289',406,1268);
INSERT INTO "communes" VALUES('74','Cuvat','30',983,773,4.72,'4202','51086',540,902);
INSERT INTO "communes" VALUES('74','Étrembières','31',1887,1429,5.43,'4321','51308',393,860);
INSERT INTO "communes" VALUES('74','Annecy-le-Vieux','30',19968,18892,17.01,'4228','51021',417,1153);
INSERT INTO "communes" VALUES('74','Novel','13',53,58,9.75,'4945','51521',780,2180);
INSERT INTO "communes" VALUES('74','Saint-Martin-Bellevue','30',2445,1739,9.33,'4236','51069',489,764);
INSERT INTO "communes" VALUES('74','Frangy','15',1918,1596,9.69,'3992','51132',299,562);
INSERT INTO "communes" VALUES('74','Bluffy','30',329,248,3.74,'4313','50965',574,1800);
INSERT INTO "communes" VALUES('74','Giez','14',574,448,12.65,'4344','50836',472,1782);
INSERT INTO "communes" VALUES('74','Collonges-sous-Salève','21',3667,3163,6.13,'4232','51268',466,1301);
INSERT INTO "communes" VALUES('74','Reyvroz','27',477,420,9.82,'4693','51473',459,1531);
INSERT INTO "communes" VALUES('74','Allèves','02',359,264,8.81,'4160','50836',480,1621);
INSERT INTO "communes" VALUES('74','Saint-Jean-de-Sixt','26',1410,1007,12.21,'4526','51026',828,1860);
INSERT INTO "communes" VALUES('74','Saint-Ferréol','14',849,799,16.79,'4411','50851',479,2038);
INSERT INTO "communes" VALUES('74','Challonges','24',471,337,7.9,'3883','51133',263,534);
INSERT INTO "communes" VALUES('74','Cran-Gevrier','33',17227,16442,4.8,'4186','51004',396,528);
INSERT INTO "communes" VALUES('74','Neuvecelle','13',2564,2214,4,'4751','51550',372,770);
INSERT INTO "communes" VALUES('74','Sévrier','33',3882,3422,12.65,'4226','50961',440,1287);
INSERT INTO "communes" VALUES('74','Arenthon','17',1526,1142,11.47,'4440','51229',429,481);
INSERT INTO "communes" VALUES('74','Saint-Pierre-en-Faucigny','17',5872,5057,14.91,'4484','51177',433,1500);
INSERT INTO "communes" VALUES('74','Saint-Germain-sur-Rhône','24',410,305,7.85,'3864','51185',322,537);
INSERT INTO "communes" VALUES('74','Douvaine','12',4972,3871,10.54,'4408','51450',421,520);
INSERT INTO "communes" VALUES('74','Châtillon-sur-Cluses','10',1185,1061,9.18,'4717','51208',520,1347);
INSERT INTO "communes" VALUES('74','Vailly','27',850,613,18.89,'4675','51449',649,1890);
INSERT INTO "communes" VALUES('74','Fillinges','16',3153,2442,11.67,'4450','51287',473,1287);
INSERT INTO "communes" VALUES('74','Seythenex','14',602,478,33.41,'4403','50807',558,2210);
INSERT INTO "communes" VALUES('74','Ville-en-Sallaz','20',683,676,3.37,'4540','51273',587,1380);
INSERT INTO "communes" VALUES('74','Perrignier','34',1611,1919,7.85,'4562','51449',489,729);
INSERT INTO "communes" VALUES('74','Mégevette','20',527,366,21.66,'4623','51333',856,1760);
INSERT INTO "communes" VALUES('74','Val-de-Fier','18',551,389,10.11,'3973','51022',292,1000);
INSERT INTO "communes" VALUES('74','Margencel','34',1822,1435,7.38,'4551','51487',372,531);
INSERT INTO "communes" VALUES('74','Marigny-Saint-Marcel','18',650,630,7.35,'4055','50921',340,504);
INSERT INTO "communes" VALUES('74','Saint-Eusèbe','18',442,361,6.88,'4029','51033',359,691);
INSERT INTO "communes" VALUES('74','Bernex','13',1241,853,22.31,'4820','51513',820,2221);
INSERT INTO "communes" VALUES('74','Cernex','11',897,698,12.66,'4127','51182',407,857);
INSERT INTO "communes" VALUES('74','Ballaison','12',1329,1097,13.3,'4436','51443',473,733);
INSERT INTO "communes" VALUES('74','Féternes','13',1330,1153,14.31,'4696','51504',418,893);
INSERT INTO "communes" VALUES('74','Droisy','24',159,70,4.55,'3940','51072',558,941);
INSERT INTO "communes" VALUES('74','Reignier-Ésery','16',6956,5266,25.08,'4368','51260',410,832);
INSERT INTO "communes" VALUES('74','Gaillard','31',11181,9949,4.02,'4301','51317',392,425);
INSERT INTO "communes" VALUES('74','Arbusigny','16',1003,689,12.25,'4313','51213',675,964);
INSERT INTO "communes" VALUES('74','Marcellaz','08',775,707,4.17,'4464','51272',540,706);
INSERT INTO "communes" VALUES('74','<NAME>','11',372,333,13.72,'4255','51210',710,1340);
INSERT INTO "communes" VALUES('74','Châtel','01',1198,1195,32.19,'5005','51407',1053,2430);
INSERT INTO "communes" VALUES('74','Saint-Sixt','17',898,606,5.21,'4436','51170',550,1600);
INSERT INTO "communes" VALUES('74','Nangy','16',1506,785,4.35,'4411','51283',415,530);
INSERT INTO "communes" VALUES('74','Clermont','24',420,331,6.98,'3968','51080',500,699);
INSERT INTO "communes" VALUES('74','Sallanches','22',15531,14387,65.87,'4773','51041',515,2749);
INSERT INTO "communes" VALUES('74','Bogève','07',1080,831,7,'4548','51325',833,1313);
INSERT INTO "communes" VALUES('74','Rumilly','18',13497,11223,16.89,'4009','50963',312,589);
INSERT INTO "communes" VALUES('74','Viry','21',3525,3030,26.16,'4112','51242',357,755);
INSERT INTO "communes" VALUES('74','Sales','18',1616,1552,9.21,'4026','50972',310,426);
INSERT INTO "communes" VALUES('74','<NAME>','20',1207,1120,7.73,'4549','51259',588,1627);
INSERT INTO "communes" VALUES('74','Demi-Quartier','22',976,1031,8.9,'4757','50952',1037,1780);
INSERT INTO "communes" VALUES('74','Saint-Eustache','33',467,392,10.54,'4235','50884',600,1680);
INSERT INTO "communes" VALUES('74','Copponex','11',882,619,9.21,'4152','51167',415,1010);
INSERT INTO "communes" VALUES('74','Pringy','30',3984,2615,9.06,'4206','51052',437,860);
INSERT INTO "communes" VALUES('74','Usinens','24',359,255,7.63,'3894','51121',260,528);
INSERT INTO "communes" VALUES('74','Poisy','29',6686,5486,11.33,'4140','51025',384,675);
INSERT INTO "communes" VALUES('74','Cruseilles','11',3859,3184,25.41,'4190','51149',447,1310);
INSERT INTO "communes" VALUES('74','<NAME>','06',215,195,4.04,'4752','51469',539,1580);
INSERT INTO "communes" VALUES('74','Seytroux','06',407,285,18.44,'4756','51388',691,1802);
INSERT INTO "communes" VALUES('74','Charvonnex','30',1135,757,4.71,'4245','51086',500,741);
INSERT INTO "communes" VALUES('74','Juvigny','05',637,540,2.71,'4382','51349',458,534);
INSERT INTO "communes" VALUES('74','Cercier','11',565,518,11.46,'4124','51139',390,713);
INSERT INTO "communes" VALUES('74','Brizon','08',450,383,10.39,'4565','51164',707,1936);
INSERT INTO "communes" VALUES('74','Champanges','13',858,753,3.71,'4685','51523',640,782);
INSERT INTO "communes" VALUES('74','Pers-Jussy','16',2587,2106,18.68,'4367','51230',480,931);
INSERT INTO "communes" VALUES('74','<NAME>','25',265,175,12.24,'4813','51320',932,2240);
INSERT INTO "communes" VALUES('74','Archamps','21',2079,1256,10.69,'4217','51262',482,1350);
INSERT INTO "communes" VALUES('74','Doussard','14',3551,2780,20.14,'4315','50862',442,1804);
INSERT INTO "communes" VALUES('74','Verchaix','23',664,558,15.89,'4822','51218',654,2092);
INSERT INTO "communes" VALUES('74','<NAME>elle-d''Abondance','01',840,719,37.85,'4945','51439',975,2430);
INSERT INTO "communes" VALUES('74','Nonglard','29',495,472,4.12,'4092','51020',400,654);
INSERT INTO "communes" VALUES('74','Saint-André-de-Boëge','07',604,517,12.6,'4508','51322',640,1440);
INSERT INTO "communes" VALUES('74','<NAME>','26',2190,2130,61.42,'4543','51047',892,2749);
INSERT INTO "communes" VALUES('74','Bellevaux','27',1325,1157,48.97,'4660','51396',806,2140);
INSERT INTO "communes" VALUES('74','Habère-Lullin','07',810,634,8.86,'4573','51371',790,1597);
INSERT INTO "communes" VALUES('74','Brenthonne','12',899,670,8.38,'4508','51415',479,1004);
INSERT INTO "communes" VALUES('74','Veyrier-du-Lac','30',2218,2064,8.21,'4267','50979',441,1291);
INSERT INTO "communes" VALUES('74','Contamine-Sarzin','15',571,350,6.86,'4051','51138',342,705);
INSERT INTO "communes" VALUES('74','Villard','07',753,667,7.42,'4560','51352',750,1581);
INSERT INTO "communes" VALUES('74','Burdignin','07',649,569,9.87,'4541','51357',736,1297);
INSERT INTO "communes" VALUES('74','Nâves-Parmelan','30',913,862,5.39,'4281','51038',480,1281);
INSERT INTO "communes" VALUES('74','Annemasse','96',32196,27238,4.98,'4332','51328',399,504);
INSERT INTO "communes" VALUES('74','Vinzier','13',748,659,6.51,'4758','51500',536,920);
INSERT INTO "communes" VALUES('74','Chamonix-Mont-Blanc','09',8972,9829,116.53,'5036','51025',995,4807);
INSERT INTO "communes" VALUES('74','Domancy','22',1817,1710,7.4,'4791','51015',547,900);
INSERT INTO "communes" VALUES('74','Vétraz-Monthoux','31',6829,5300,7.11,'4354','51305',400,573);
INSERT INTO "communes" VALUES('74','Dingy-Saint-Clair','30',1338,916,34.12,'4317','51013',492,1856);
INSERT INTO "communes" VALUES('74','Chênex','21',616,365,5.38,'4065','51228',436,724);
INSERT INTO "communes" VALUES('74','Bossey','21',736,546,3.88,'4247','51280',430,1251);
INSERT INTO "communes" VALUES('74','Contamine-sur-Arve','08',1593,1345,6.92,'4449','51254',423,697);
INSERT INTO "communes" VALUES('74','Saint-Blaise','11',325,198,2.55,'4169','51184',760,1188);
INSERT INTO "communes" VALUES('74','Orcier','34',800,683,9.39,'4617','51458',576,1413);
INSERT INTO "communes" VALUES('74','Marignier','08',6159,5327,19.97,'4625','51211',453,1840);
INSERT INTO "communes" VALUES('74','Lyaud','27',1502,1042,9.17,'4650','51486',440,1413);
INSERT INTO "communes" VALUES('74','Scionzier','32',7311,6164,10.62,'4681','51175',468,1969);
INSERT INTO "communes" VALUES('74','Publier','13',6240,4951,8.92,'4675','51542',372,721);
INSERT INTO "communes" VALUES('74','Vougy','08',1482,963,3.99,'4618','51185',450,800);
INSERT INTO "communes" VALUES('74','Larringes','13',1241,974,8.07,'4707','51521',713,873);
INSERT INTO "communes" VALUES('74','Samoëns','23',2305,2324,97.29,'4878','51204',671,2665);
INSERT INTO "communes" VALUES('74','<NAME>','06',294,217,7.78,'4729','51461',520,1890);
INSERT INTO "communes" VALUES('74','Bonne','31',2776,2099,8.58,'4427','51298',459,1280);
INSERT INTO "communes" VALUES('74','Mieussy','25',2116,1739,44.45,'4651','51260',571,2011);
INSERT INTO "communes" VALUES('74','Cranves-Sales','05',5349,4361,13.61,'4394','51319',439,1440);
INSERT INTO "communes" VALUES('74','Morillon','23',563,503,14.51,'4821','51204',657,2046);
INSERT INTO "communes" VALUES('74','Sallenôves','29',574,474,3.64,'4069','51117',360,529);
INSERT INTO "communes" VALUES('74','<NAME>','17',224,178,4.27,'4337','51191',800,957);
INSERT INTO "communes" VALUES('74','Villaz','28',2818,2067,15.27,'4281','51057',463,1680);
INSERT INTO "communes" VALUES('74','Praz-sur-Arly','22',1334,1083,22.64,'4704','50930',980,2282);
INSERT INTO "communes" VALUES('74','Massongy','12',1424,1150,9.81,'4441','51462',398,680);
INSERT INTO "communes" VALUES('74','Étercy','18',698,630,4.55,'4081','50990',337,593);
INSERT INTO "communes" VALUES('74','Nernier','12',459,361,1.82,'4408','51517',372,425);
INSERT INTO "communes" VALUES('74','Chavanod','33',2263,1883,13.36,'4114','50989',356,624);
INSERT INTO "communes" VALUES('74','Clefs','26',580,472,18.47,'4435','50957',670,2338);
INSERT INTO "communes" VALUES('74','Moye','18',1030,851,23.8,'3973','50974',314,1044);
INSERT INTO "communes" VALUES('74','Neydens','21',1513,1127,6.96,'4186','51246',500,871);
INSERT INTO "communes" VALUES('74','Cons-Sainte-Colombe','14',355,261,3.47,'4432','50832',479,2063);
INSERT INTO "communes" VALUES('74','Entrevernes','33',206,168,8.31,'4280','50884',729,1775);
INSERT INTO "communes" VALUES('74','Chainaz-les-Frasses','02',605,517,5.57,'4066','50859',420,725);
INSERT INTO "communes" VALUES('74','Vovray-en-Bornes','11',363,274,6.57,'4229','51184',656,1348);
INSERT INTO "communes" VALUES('74','Thuile','14',965,729,8.76,'4296','50869',450,1640);
INSERT INTO "communes" VALUES('74','Houches','09',3018,2708,43.07,'4958','50989',796,4280);
INSERT INTO "communes" VALUES('74','Armoy','27',1184,939,4.95,'4648','51498',415,674);
INSERT INTO "communes" VALUES('74','<NAME>','29',4960,3726,16.51,'4117','51068',457,923);
INSERT INTO "communes" VALUES('74','Saint-Félix','02',2168,1617,6.6,'4039','50890',352,580);
INSERT INTO "communes" VALUES('74','Saint-Jean-de-Tholome','20',879,745,12.37,'4512','51235',613,1840);
INSERT INTO "communes" VALUES('74','Sixt-Fer-à-Cheval','23',796,708,119.07,'4932','51172',728,3098);
INSERT INTO "communes" VALUES('74','Saint-Gervais-les-Bains','19',5694,5290,63.63,'4863','50992',571,4807);
INSERT INTO "communes" VALUES('74','Viuz-la-Chiésaz','02',1262,1022,13.91,'4139','50901',440,1702);
INSERT INTO "communes" VALUES('74','Bonnevaux','01',250,239,7.82,'4815','51441',799,1870);
INSERT INTO "communes" VALUES('74','Faverges','14',6833,6305,25.86,'4397','50830',472,2063);
INSERT INTO "communes" VALUES('74','Alby-sur-Chéran','02',2012,1631,6.56,'4093','50908',360,606);
INSERT INTO "communes" VALUES('74','<NAME>','06',251,226,16.91,'4751','51425',636,1890);
INSERT INTO "communes" VALUES('74','Scientrier','16',1094,661,7.21,'4421','51243',423,490);
INSERT INTO "communes" VALUES('74','Amancy','17',2046,1757,8.62,'4436','51194',444,624);
INSERT INTO "communes" VALUES('74','Chilly','15',1109,939,18.58,'4018','51102',327,730);
INSERT INTO "communes" VALUES('74','Saint-Julien-en-Genevois','21',11836,9191,10.59,'4164','51271',424,538);
INSERT INTO "communes" VALUES('74','Cluses','10',17408,17720,10.46,'4713','51178',469,1197);
INSERT INTO "communes" VALUES('74','Boëge','07',1748,1412,16,'4520','51343',713,1480);
INSERT INTO "communes" VALUES('74','Gruffy','02',1458,1161,14.44,'4131','50875',400,1644);
INSERT INTO "communes" VALUES('74','Veigy-Foncenex','12',3568,2503,12.99,'4358','51413',394,471);
INSERT INTO "communes" VALUES('74','Évires','28',1294,1062,19.49,'4319','51153',593,955);
INSERT INTO "communes" VALUES('74','Chens-sur-Léman','12',1893,1274,10.87,'4369','51476',372,439);
INSERT INTO "communes" VALUES('74','Quintal','33',1198,882,9.13,'4165','50934',585,1533);
INSERT INTO "communes" VALUES('74','Ambilly','05',5890,5811,1.25,'4319','51328',410,434);
INSERT INTO "communes" VALUES('74','Talloires','30',1690,1447,20.69,'4308','50934',440,2320);
INSERT INTO "communes" VALUES('75','Paris','99',2243833,2125851,105.4,'9','54289',0,0);
INSERT INTO "communes" VALUES('76','Eslettes','11',1508,1395,5.12,'-1427','55051',44,167);
INSERT INTO "communes" VALUES('76','Rosay','04',274,252,10.46,'-1212','55217',80,207);
INSERT INTO "communes" VALUES('76','Varengeville-sur-Mer','39',1028,1182,10.75,'-1491','55451',0,102);
INSERT INTO "communes" VALUES('76','Biville-la-Rivière','03',104,109,2.22,'-1563','55307',47,128);
INSERT INTO "communes" VALUES('76','Neufbosc','49',366,270,5.14,'-1081','55162',140,218);
INSERT INTO "communes" VALUES('76','<NAME>','22',417,415,7.78,'-1641','55373',24,87);
INSERT INTO "communes" VALUES('76','Ancourteville-sur-Héricourt','40',263,218,3.5,'-1858','55218',84,139);
INSERT INTO "communes" VALUES('76','Saint-Riquier-ès-Plains','50',590,586,6.22,'-1856','55360',35,96);
INSERT INTO "communes" VALUES('76','Rouville','06',575,508,9.55,'-2042','55128',109,143);
INSERT INTO "communes" VALUES('76','Callengeville','38',494,455,17.13,'-907','55345',154,231);
INSERT INTO "communes" VALUES('76','Richemont','02',483,446,10.69,'-769','55343',152,221);
INSERT INTO "communes" VALUES('76','Bouelles','38',254,240,7.99,'-934','55237',89,234);
INSERT INTO "communes" VALUES('76','Veauville-lès-Quelles','40',108,102,3.21,'-1812','55266',75,145);
INSERT INTO "communes" VALUES('76','Freulleville','18',355,335,11.13,'-1223','55362',26,177);
INSERT INTO "communes" VALUES('76','Foucarmont','05',984,1048,7.28,'-853','55385',103,203);
INSERT INTO "communes" VALUES('76','Campneuseville','05',505,486,12.3,'-754','55398',107,211);
INSERT INTO "communes" VALUES('76','Torcy-le-Petit','35',489,474,3.66,'-1293','55348',22,150);
INSERT INTO "communes" VALUES('76','Malleville-les-Grès','09',155,142,3.06,'-1922','55367',5,86);
INSERT INTO "communes" VALUES('76','Cailly','11',713,739,5.44,'-1228','55088',111,176);
INSERT INTO "communes" VALUES('76','Longueil','39',560,513,11.73,'-1542','55426',1,69);
INSERT INTO "communes" VALUES('76','Sainte-Beuve-en-Rivière','38',191,165,11.57,'-898','55291',118,229);
INSERT INTO "communes" VALUES('76','Fontaine-le-Bourg','11',1426,1483,12.2,'-1304','55070',62,168);
INSERT INTO "communes" VALUES('76','Annouville-Vilmesnil','24',489,384,5.82,'-2115','55198',85,137);
INSERT INTO "communes" VALUES('76','Ernemont-la-Villette','25',195,175,7.46,'-711','54957',83,217);
INSERT INTO "communes" VALUES('76','Lanquetot','06',1040,1004,5.09,'-2013','55095',73,149);
INSERT INTO "communes" VALUES('76','Beuzeville-la-Guérard','40',183,150,6.42,'-1908','55238',106,144);
INSERT INTO "communes" VALUES('76','Fontaine-en-Bray','49',159,170,6.03,'-1011','55195',100,233);
INSERT INTO "communes" VALUES('76','Saint-Pierre-lès-Elbeuf','61',8445,8414,6.36,'-1440','54753',4,75);
INSERT INTO "communes" VALUES('76','Ocqueville','09',463,449,8.91,'-1832','55334',58,121);
INSERT INTO "communes" VALUES('76','Oherville','40',205,159,4.57,'-1842','55245',42,142);
INSERT INTO "communes" VALUES('76','Ourville-en-Caux','40',1096,1038,9.86,'-1923','55255',55,135);
INSERT INTO "communes" VALUES('76','Tourville-les-Ifs','21',562,547,8.34,'-2151','55238',30,131);
INSERT INTO "communes" VALUES('76','Grémonville','54',392,393,8.27,'-1678','55190',133,167);
INSERT INTO "communes" VALUES('76','Le Tilleul','12',691,582,6.27,'-2368','55203',0,114);
INSERT INTO "communes" VALUES('76','Saint-Pierre-de-Varengeville','16',2233,2273,13.18,'-1560','55002',1,132);
INSERT INTO "communes" VALUES('76','Pierrefiques','12',133,106,2.31,'-2338','55190',15,107);
INSERT INTO "communes" VALUES('76','Le Caule-Sainte-Beuve','02',454,402,16.71,'-831','55304',161,241);
INSERT INTO "communes" VALUES('76','Anglesqueville-la-Bras-Long','22',119,135,3.53,'-1727','55312',93,128);
INSERT INTO "communes" VALUES('76','Villequier','10',754,807,11.1,'-1847','55015',0,147);
INSERT INTO "communes" VALUES('76','Glicourt','18',213,191,4.58,'-1218','55484',56,131);
INSERT INTO "communes" VALUES('76','Notre-Dame-du-Bec','37',427,379,3.99,'-2361','55104',37,101);
INSERT INTO "communes" VALUES('76','Mirville','06',337,318,5.42,'-2105','55122',74,147);
INSERT INTO "communes" VALUES('76','Manéglise','37',1141,1190,8.35,'-2313','55072',48,118);
INSERT INTO "communes" VALUES('76','Sausseuzemare-en-Caux','24',408,360,3.88,'-2215','55184',86,137);
INSERT INTO "communes" VALUES('76','Duclair','16',4134,4163,10.02,'-1623','54983',1,122);
INSERT INTO "communes" VALUES('76','Octeville-sur-Mer','37',5788,4834,20.37,'-2466','55062',0,105);
INSERT INTO "communes" VALUES('76','Haudricourt','02',465,443,29.98,'-702','55259',125,240);
INSERT INTO "communes" VALUES('76','Le Tréport','19',5255,5893,6.77,'-1073','55623',0,103);
INSERT INTO "communes" VALUES('76','Sainte-Marguerite-sur-Mer','39',511,502,5.41,'-1544','55453',0,87);
INSERT INTO "communes" VALUES('76','Saint-Laurent-de-Brèvedent','48',1397,1488,7.79,'-2311','55029',33,108);
INSERT INTO "communes" VALUES('76','Gommerville','48',719,648,7.39,'-2189','55063',108,134);
INSERT INTO "communes" VALUES('76','Fontenay','37',1032,1144,5.61,'-2393','55068',25,106);
INSERT INTO "communes" VALUES('76','Saint-Martin-de-Boscherville','16',1421,1505,12.91,'-1527','54937',2,134);
INSERT INTO "communes" VALUES('76','Buchy','08',1415,1150,3.67,'-1086','55095',169,211);
INSERT INTO "communes" VALUES('76','Sainneville','48',810,826,6.97,'-2277','55063',54,118);
INSERT INTO "communes" VALUES('76','Pleine-Sève','50',120,108,4.07,'-1754','55353',50,101);
INSERT INTO "communes" VALUES('76','Morgny-la-Pommeraye','08',1036,895,6.48,'-1202','55012',120,168);
INSERT INTO "communes" VALUES('76','Bracquemont','14',880,828,4.84,'-1324','55490',0,97);
INSERT INTO "communes" VALUES('76','Quévreville-la-Poterie','07',932,988,4.68,'-1274','54838',40,156);
INSERT INTO "communes" VALUES('76','Touffreville-sur-Eu','19',197,207,5.69,'-1123','55557',10,100);
INSERT INTO "communes" VALUES('76','Saint-Ouen-sous-Bailly','18',226,187,5.32,'-1154','55450',41,154);
INSERT INTO "communes" VALUES('76','Tourville-la-Chapelle','18',536,472,7.71,'-1194','55493',94,147);
INSERT INTO "communes" VALUES('76','Bures-en-Bray','34',335,266,10.99,'-1113','55309',47,201);
INSERT INTO "communes" VALUES('76','Auzouville-Auberbosc','20',266,258,6.08,'-1963','55141',121,149);
INSERT INTO "communes" VALUES('76','Tancarville','48',1346,1236,7.42,'-2092','54986',0,117);
INSERT INTO "communes" VALUES('76','Saint-Martin-du-Manoir','37',1549,1542,5.13,'-2331','55036',12,102);
INSERT INTO "communes" VALUES('76','Mélamare','33',772,751,6.35,'-2096','55042',60,136);
INSERT INTO "communes" VALUES('76','Saint-Germain-d''Étables','35',269,299,7.26,'-1299','55377',14,140);
INSERT INTO "communes" VALUES('76','Saint-Aubin-Routot','48',1570,1117,6.63,'-2234','55026',19,122);
INSERT INTO "communes" VALUES('76','Bierville','08',273,260,2.22,'-1181','55044',118,173);
INSERT INTO "communes" VALUES('76','Bellencombre','04',687,662,12.91,'-1234','55231',69,199);
INSERT INTO "communes" VALUES('76','Belmesnil','35',498,433,3.03,'-1431','55299',106,127);
INSERT INTO "communes" VALUES('76','Normanville','20',578,589,9.35,'-1936','55216',93,139);
INSERT INTO "communes" VALUES('76','Gonnetot','03',155,143,2.33,'-1598','55293',95,138);
INSERT INTO "communes" VALUES('76','Trémauville','20',101,89,2.8,'-2017','55184',118,139);
INSERT INTO "communes" VALUES('76','Aubéguimont','02',205,176,4.85,'-737','55342',133,211);
INSERT INTO "communes" VALUES('76','Norville','33',895,807,11.69,'-1886','54973',0,131);
INSERT INTO "communes" VALUES('76','Saint-Honoré','35',170,172,3.02,'-1311','55316',65,157);
INSERT INTO "communes" VALUES('76','Avremesnil','03',963,873,5.42,'-1566','55389',11,82);
INSERT INTO "communes" VALUES('76','Landes-Vieilles-et-Neuves','02',135,132,7.09,'-786','55319',169,230);
INSERT INTO "communes" VALUES('76','Angerville-l''Orcher','12',1470,1218,9.91,'-2282','55098',74,130);
INSERT INTO "communes" VALUES('76','Mesnières-en-Bray','38',979,706,15.06,'-1060','55293',53,223);
INSERT INTO "communes" VALUES('76','Saint-Léger-aux-Bois','05',506,456,11.02,'-806','55371',153,221);
INSERT INTO "communes" VALUES('76','Fallencourt','05',192,148,12.08,'-854','55408',98,215);
INSERT INTO "communes" VALUES('76','Beautot','41',121,106,3.5,'-1446','55159',145,173);
INSERT INTO "communes" VALUES('76','Vieux-Manoir','08',683,650,8.13,'-1154','55075',143,189);
INSERT INTO "communes" VALUES('76','Cléon','61',5606,6032,6.47,'-1446','54795',2,37);
INSERT INTO "communes" VALUES('76','Notre-Dame-du-Parc','35',169,128,3.01,'-1346','55273',71,148);
INSERT INTO "communes" VALUES('76','Petiville','33',1057,984,16.74,'-1943','54956',0,38);
INSERT INTO "communes" VALUES('76','Berneval-le-Grand','14',1327,1047,5.56,'-1276','55509',0,110);
INSERT INTO "communes" VALUES('76','Auffay','52',1857,1867,11.3,'-1374','55242',90,162);
INSERT INTO "communes" VALUES('76','Cliponville','20',259,246,7.28,'-1864','55196',70,141);
INSERT INTO "communes" VALUES('76','<NAME>','67',21898,22329,4.35,'-1426','54923',3,33);
INSERT INTO "communes" VALUES('76','Canehan','19',324,311,6.18,'-1103','55530',16,119);
INSERT INTO "communes" VALUES('76','<NAME>','13',242,232,10.72,'-1041','54988',62,183);
INSERT INTO "communes" VALUES('76','Haussez','23',285,233,13.15,'-744','55092',110,217);
INSERT INTO "communes" VALUES('76','Sotteville-sur-Mer','22',357,388,8.09,'-1673','55424',0,69);
INSERT INTO "communes" VALUES('76','Saint-Maclou-de-Folleville','52',591,515,13.21,'-1367','55201',103,171);
INSERT INTO "communes" VALUES('76','Gerville','21',401,381,3.01,'-2230','55218',90,125);
INSERT INTO "communes" VALUES('76','Bourdainville','54',438,319,5.34,'-1547','55194',102,169);
INSERT INTO "communes" VALUES('76','Fresnoy-Folny','34',708,627,13.12,'-1009','55432',109,203);
INSERT INTO "communes" VALUES('76','Ventes-Saint-Rémy','49',228,219,6.12,'-1146','55233',114,217);
INSERT INTO "communes" VALUES('76','Preuseville','34',127,147,9.05,'-912','55412',85,197);
INSERT INTO "communes" VALUES('76','Bardouville','16',658,577,8.61,'-1566','54929',1,68);
INSERT INTO "communes" VALUES('76','Angiens','22',569,625,6.88,'-1718','55365',59,96);
INSERT INTO "communes" VALUES('76','Étaimpuis','52',711,523,10.6,'-1325','55162',132,171);
INSERT INTO "communes" VALUES('76','Rocquefort','20',337,270,5.36,'-1822','55185',76,146);
INSERT INTO "communes" VALUES('76','Flamanville','54',431,342,4.48,'-1666','55148',137,154);
INSERT INTO "communes" VALUES('76','Fultot','15',205,179,3.72,'-1723','55285',92,136);
INSERT INTO "communes" VALUES('76','Esclavelles','38',387,308,9.76,'-1054','55230',90,236);
INSERT INTO "communes" VALUES('76','Gournay-en-Bray','25',6396,6278,10.4,'-681','54979',84,133);
INSERT INTO "communes" VALUES('76','Ouville-l''Abbaye','54',631,553,7.31,'-1639','55216',134,173);
INSERT INTO "communes" VALUES('76','<NAME>','11',544,497,8.06,'-1390','55145',116,179);
INSERT INTO "communes" VALUES('76','Sauchay','18',410,393,5.74,'-1261','55470',15,114);
INSERT INTO "communes" VALUES('76','Prétot-Vicquemare','15',161,134,4.73,'-1648','55257',114,151);
INSERT INTO "communes" VALUES('76','Greny','18',144,105,4.06,'-1145','55497',87,149);
INSERT INTO "communes" VALUES('76','Angerville-Bailleul','24',214,203,4.59,'-2091','55185',93,136);
INSERT INTO "communes" VALUES('76','Saussay','54',324,308,5.17,'-1552','55150',150,177);
INSERT INTO "communes" VALUES('76','Criel-sur-Mer','19',2789,2671,21.12,'-1132','55573',0,106);
INSERT INTO "communes" VALUES('76','Calleville-les-Deux-Églises','52',326,305,5.71,'-1459','55229',133,166);
INSERT INTO "communes" VALUES('76','Saint-Martin-l''Hortier','38',253,199,5.79,'-1032','55270',64,221);
INSERT INTO "communes" VALUES('76','Rocquemont','49',827,606,12.26,'-1169','55115',136,198);
INSERT INTO "communes" VALUES('76','Houquetot','24',341,289,4.09,'-2164','55116',104,132);
INSERT INTO "communes" VALUES('76','Bois-Héroult','08',174,140,6.59,'-1034','55070',135,232);
INSERT INTO "communes" VALUES('76','Oissel','69',11516,11051,22.19,'-1384','54824',2,128);
INSERT INTO "communes" VALUES('76','Louvetot','10',685,574,7.37,'-1804','55080',37,152);
INSERT INTO "communes" VALUES('76','Aubermesnil-Beaumais','39',462,456,4.88,'-1346','55395',92,128);
INSERT INTO "communes" VALUES('76','Hautot-sur-Mer','39',1977,2129,9.46,'-1447','55441',0,103);
INSERT INTO "communes" VALUES('76','Auvilliers','38',112,107,4.89,'-845','55288',190,236);
INSERT INTO "communes" VALUES('76','Virville','24',333,260,2.46,'-2202','55102',93,127);
INSERT INTO "communes" VALUES('76','Bouville','41',922,994,12.48,'-1603','55069',72,126);
INSERT INTO "communes" VALUES('76','Nullemont','02',132,102,5.65,'-774','55298',153,227);
INSERT INTO "communes" VALUES('76','Sainte-Marguerite-sur-Duclair','16',1890,1519,7.26,'-1659','55010',35,121);
INSERT INTO "communes" VALUES('76','Goderville','24',2891,2281,7.98,'-2190','55162',97,134);
INSERT INTO "communes" VALUES('76','Lintot','06',460,413,8,'-1965','55070',50,154);
INSERT INTO "communes" VALUES('76','Bradiancourt','49',226,138,4.11,'-1054','55174',189,231);
INSERT INTO "communes" VALUES('76','Eu','19',7436,8087,17.93,'-1019','55608',2,140);
INSERT INTO "communes" VALUES('76','Grugny','11',920,972,3.18,'-1363','55135',108,170);
INSERT INTO "communes" VALUES('76','Ménerval','25',191,177,12.43,'-754','55072',107,191);
INSERT INTO "communes" VALUES('76','Saint-Aubin-sur-Scie','39',1129,1121,7.74,'-1407','55413',9,105);
INSERT INTO "communes" VALUES('76','Assigny','18',358,306,6.05,'-1160','55540',55,108);
INSERT INTO "communes" VALUES('76','Cléville','20',162,169,5.47,'-1912','55135',124,144);
INSERT INTO "communes" VALUES('76','Sainte-Croix-sur-Buchy','08',676,544,13.8,'-1096','55072',120,195);
INSERT INTO "communes" VALUES('76','Darnétal','13',9567,9223,4.93,'-1317','54939',13,143);
INSERT INTO "communes" VALUES('76','Saint-Gilles-de-Crétot','10',399,268,6.02,'-1880','55065',32,141);
INSERT INTO "communes" VALUES('76','Rebets','08',142,110,3.67,'-1052','55012',82,176);
INSERT INTO "communes" VALUES('76','Neuf-Marché','25',692,633,17.71,'-690','54915',77,210);
INSERT INTO "communes" VALUES('76','Roncherolles-sur-le-Vivier','13',1091,1091,5.35,'-1281','54963',38,169);
INSERT INTO "communes" VALUES('76','Berville-sur-Seine','16',554,552,7.01,'-1594','54969',1,24);
INSERT INTO "communes" VALUES('76','Quincampoix','11',3081,2690,20.34,'-1280','55027',80,180);
INSERT INTO "communes" VALUES('76','Cailleville','50',259,230,5.03,'-1783','55369',20,84);
INSERT INTO "communes" VALUES('76','Ry','13',799,605,5.71,'-1103','54968',68,157);
INSERT INTO "communes" VALUES('76','Clais','34',227,202,12.45,'-986','55342',86,224);
INSERT INTO "communes" VALUES('76','Roumare','66',1375,1103,9.96,'-1514','55012',8,136);
INSERT INTO "communes" VALUES('76','Carville-la-Folletière','41',396,222,4.36,'-1687','55065',75,137);
INSERT INTO "communes" VALUES('76','Val-de-la-Haye','26',720,789,10.16,'-1483','54864',2,119);
INSERT INTO "communes" VALUES('76','Cottévrard','04',393,339,7.88,'-1238','55148',133,176);
INSERT INTO "communes" VALUES('76','Arques-la-Bataille','39',2549,2527,14.68,'-1345','55423',2,129);
INSERT INTO "communes" VALUES('76','Royville','03',269,216,4.44,'-1535','55306',44,127);
INSERT INTO "communes" VALUES('76','Hautot-l''Auvray','40',328,339,7.33,'-1762','55290',77,135);
INSERT INTO "communes" VALUES('76','Flamets-Frétils','38',168,154,12.39,'-841','55259',148,242);
INSERT INTO "communes" VALUES('76','Massy','38',307,275,11.24,'-1041','55210',91,234);
INSERT INTO "communes" VALUES('76','Marques','02',205,237,13.05,'-719','55316',112,219);
INSERT INTO "communes" VALUES('76','Anquetierville','10',361,336,4.08,'-1891','55035',98,153);
INSERT INTO "communes" VALUES('76','Contremoulins','53',196,208,4.38,'-2121','55251',27,127);
INSERT INTO "communes" VALUES('76','Villers-sous-Foucarmont','05',193,205,7.01,'-859','55376',112,223);
INSERT INTO "communes" VALUES('76','Criquiers','02',676,596,23.55,'-701','55194',164,245);
INSERT INTO "communes" VALUES('76','Ouville-la-Rivière','39',549,604,6.34,'-1530','55414',7,74);
INSERT INTO "communes" VALUES('76','Harcanville','15',459,405,7.48,'-1757','55238',108,156);
INSERT INTO "communes" VALUES('76','Sahurs','26',1285,1119,11.23,'-1548','54843',2,101);
INSERT INTO "communes" VALUES('76','Saint-Eustache-la-Forêt','06',1072,1181,6.59,'-2095','55058',40,136);
INSERT INTO "communes" VALUES('76','Sainte-Marie-au-Bosc','12',337,213,3.18,'-2372','55183',33,126);
INSERT INTO "communes" VALUES('76','Étretat','12',1499,1615,4.07,'-2366','55229',0,102);
INSERT INTO "communes" VALUES('76','Saint-Aubin-Épinay','13',962,949,9.83,'-1287','54914',35,159);
INSERT INTO "communes" VALUES('76','Douvrend','18',489,463,17.96,'-1126','55410',37,186);
INSERT INTO "communes" VALUES('76','<NAME>','01',1262,1095,39.76,'-914','54958',90,219);
INSERT INTO "communes" VALUES('76','Compainville','23',149,108,6.36,'-863','55180',130,231);
INSERT INTO "communes" VALUES('76','Gouy','07',810,796,4.97,'-1321','54838',2,133);
INSERT INTO "communes" VALUES('76','<NAME>','66',4019,4396,2.97,'-1445','55009',22,128);
INSERT INTO "communes" VALUES('76','Auberville-la-Renault','24',410,347,4.96,'-2189','55202',88,124);
INSERT INTO "communes" VALUES('76','Anglesqueville-l''Esneval','12',549,473,4.36,'-2333','55148',79,133);
INSERT INTO "communes" VALUES('76','Saint-Gilles-de-la-Neuville','48',652,562,7.09,'-2179','55083',78,127);
INSERT INTO "communes" VALUES('76','Beaussault','23',388,367,18.3,'-860','55206',112,242);
INSERT INTO "communes" VALUES('76','Sainte-Austreberthe','41',605,583,6.13,'-1513','55109',77,168);
INSERT INTO "communes" VALUES('76','Derchigny','14',562,416,4.75,'-1276','55487',40,116);
INSERT INTO "communes" VALUES('76','Mont-de-l''If','41',97,96,3.5,'-1679','55099',50,140);
INSERT INTO "communes" VALUES('76','Fry','01',152,136,8.03,'-900','55033',108,216);
INSERT INTO "communes" VALUES('76','Yvetot','55',11816,10776,7.47,'-1759','55130',83,157);
INSERT INTO "communes" VALUES('76','Haucourt','23',256,204,10.18,'-752','55156',188,246);
INSERT INTO "communes" VALUES('76','Illois','02',339,265,14.54,'-764','55277',175,243);
INSERT INTO "communes" VALUES('76','Quiberville','39',549,467,3.35,'-1574','55443',0,58);
INSERT INTO "communes" VALUES('76','Grand-Couronne','26',9713,9436,16.91,'-1477','54842',2,139);
INSERT INTO "communes" VALUES('76','Ancourt','14',723,688,12.44,'-1281','55455',7,130);
INSERT INTO "communes" VALUES('76','Mesnil-Mauger','23',241,223,8.28,'-910','55192',101,202);
INSERT INTO "communes" VALUES('76','Bertreville-Saint-Ouen','35',342,285,6.67,'-1424','55341',85,122);
INSERT INTO "communes" VALUES('76','Fresles','38',236,147,10.96,'-1098','55271',66,220);
INSERT INTO "communes" VALUES('76','Mortemer','38',108,107,8.94,'-874','55279',128,230);
INSERT INTO "communes" VALUES('76','Brémontier-Merval','25',499,326,17.17,'-807','55005',103,210);
INSERT INTO "communes" VALUES('76','Blosseville','50',302,275,6.96,'-1711','55393',30,79);
INSERT INTO "communes" VALUES('76','La Londe','17',2271,2007,30.98,'-1537','54785',20,138);
INSERT INTO "communes" VALUES('76','Elbeuf-en-Bray','25',398,360,10.65,'-771','54986',98,220);
INSERT INTO "communes" VALUES('76','Bretteville-Saint-Laurent','15',173,183,3.97,'-1624','55292',95,140);
INSERT INTO "communes" VALUES('76','Guerville','05',457,408,12.46,'-914','55510',75,198);
INSERT INTO "communes" VALUES('76','La Bouille','26',780,792,1.27,'-1561','54835',2,133);
INSERT INTO "communes" VALUES('76','Mannevillette','37',828,689,4.21,'-2402','55108',62,106);
INSERT INTO "communes" VALUES('76','Thiouville','40',277,240,5.86,'-1908','55215',114,140);
INSERT INTO "communes" VALUES('76','Le Grand-Quevilly','94',24930,26688,11.11,'-1427','54896',1,68);
INSERT INTO "communes" VALUES('76','Villainville','12',299,288,3.65,'-2327','55178',27,129);
INSERT INTO "communes" VALUES('76','Bézancourt','25',335,248,17.59,'-790','54937',118,211);
INSERT INTO "communes" VALUES('76','Anceaumeville','11',699,716,4.68,'-1415','55084',55,181);
INSERT INTO "communes" VALUES('76','Gueutteville-les-Grès','50',356,302,4.39,'-1757','55377',56,88);
INSERT INTO "communes" VALUES('76','Imbleville','52',304,275,5.28,'-1538','55239',75,161);
INSERT INTO "communes" VALUES('76','Életot','53',614,537,6.81,'-2092','55321',0,118);
INSERT INTO "communes" VALUES('76','Bréauté','24',1315,1098,13.91,'-2152','55143',93,137);
INSERT INTO "communes" VALUES('76','Bornambusc','24',283,240,4.11,'-2205','55141',103,137);
INSERT INTO "communes" VALUES('76','Cauville-sur-Mer','37',1435,1242,11.19,'-2453','55106',0,105);
INSERT INTO "communes" VALUES('76','Houppeville','66',2531,2400,20.8,'-1397','55014',39,169);
INSERT INTO "communes" VALUES('76','<NAME>','11',695,379,7.68,'-1211','55071',126,182);
INSERT INTO "communes" VALUES('76','Ectot-lès-Baons','54',406,383,4.92,'-1699','55159',132,151);
INSERT INTO "communes" VALUES('76','Freneuse','61',931,951,3.18,'-1415','54787',3,75);
INSERT INTO "communes" VALUES('76','Aubermesnil-aux-Érables','05',203,203,8.48,'-855','55362',123,220);
INSERT INTO "communes" VALUES('76','Bolleville','06',542,507,9.73,'-1968','55110',128,153);
INSERT INTO "communes" VALUES('76','<NAME>','35',318,281,4.95,'-1319','55373',45,138);
INSERT INTO "communes" VALUES('76','Saumont-la-Poterie','23',405,381,15.94,'-799','55087',109,193);
INSERT INTO "communes" VALUES('76','Gruchet-Saint-Siméon','03',700,661,2.63,'-1603','55353',69,94);
INSERT INTO "communes" VALUES('76','Sorquainville','53',170,163,4.47,'-1984','55228',77,131);
INSERT INTO "communes" VALUES('76','Elbeuf-sur-Andelle','13',411,284,5.87,'-1045','54967',57,157);
INSERT INTO "communes" VALUES('76','Doudeville','15',2568,2524,14.51,'-1724','55246',85,156);
INSERT INTO "communes" VALUES('76','Crasville-la-Mallet','09',164,133,3.21,'-1804','55337',65,105);
INSERT INTO "communes" VALUES('76','Mauquenchy','23',320,275,12.64,'-965','55115',118,236);
INSERT INTO "communes" VALUES('76','Elbeuf','17',17178,16678,16.32,'-1476','54762',2,133);
INSERT INTO "communes" VALUES('76','Boissay','08',334,267,6.63,'-1088','55022',114,171);
INSERT INTO "communes" VALUES('76','Belbeuf','07',2011,2032,6.56,'-1326','54877',2,161);
INSERT INTO "communes" VALUES('76','Avesnes-en-Val','18',272,268,16.51,'-1044','55467',79,184);
INSERT INTO "communes" VALUES('76','Trois-Pierres','48',726,723,7.48,'-2134','55052',63,132);
INSERT INTO "communes" VALUES('76','Quevillon','16',594,533,11.23,'-1537','54910',2,118);
INSERT INTO "communes" VALUES('76','Saint-Martin-en-Campagne','18',1298,1001,6.85,'-1239','55508',0,128);
INSERT INTO "communes" VALUES('76','Beaurepaire','12',476,393,2.83,'-2351','55184',47,132);
INSERT INTO "communes" VALUES('76','Anneville-Ambourville','16',1214,946,20.33,'-1612','54957',1,44);
INSERT INTO "communes" VALUES('76','Notre-Dame-de-Bliquetuit','10',693,559,9.78,'-1747','54994',1,53);
INSERT INTO "communes" VALUES('76','Servaville-Salmonville','13',1059,778,7.85,'-1184','54974',148,172);
INSERT INTO "communes" VALUES('76','Mesnil-Raoul','07',880,725,6.76,'-1180','54885',126,162);
INSERT INTO "communes" VALUES('76','Morville-sur-Andelle','01',285,223,5.17,'-1006','54975',65,175);
INSERT INTO "communes" VALUES('76','Hodeng-au-Bosc','05',585,554,8.77,'-699','55402',61,205);
INSERT INTO "communes" VALUES('76','Ferrières-en-Bray','25',1628,1645,15.88,'-657','54981',86,189);
INSERT INTO "communes" VALUES('76','Guilmécourt','18',301,241,7.92,'-1149','55518',44,147);
INSERT INTO "communes" VALUES('76','Penly','18',332,354,4.06,'-1228','55533',0,129);
INSERT INTO "communes" VALUES('76','Saint-Jean-de-la-Neuville','06',562,471,7.93,'-2129','55083',49,128);
INSERT INTO "communes" VALUES('76','<NAME>','19',596,440,5.55,'-990','55524',92,156);
INSERT INTO "communes" VALUES('76','Londinières','34',1266,1160,18.79,'-1038','55369',63,203);
INSERT INTO "communes" VALUES('76','Fontaine-sous-Préaux','13',510,464,3.52,'-1298','54983',61,158);
INSERT INTO "communes" VALUES('76','Bois-Guillaume','60',21270,11972,8.85,'-1365','54956',52,171);
INSERT INTO "communes" VALUES('76','Cuverville-sur-Yères','19',216,175,11.06,'-1041','55511',32,164);
INSERT INTO "communes" VALUES('76','Colleville','53',749,703,7.39,'-2095','55277',17,124);
INSERT INTO "communes" VALUES('76','Intraville','18',263,198,4.66,'-1175','55480',91,149);
INSERT INTO "communes" VALUES('76','Longuerue','08',302,280,5.36,'-1159','55052',130,181);
INSERT INTO "communes" VALUES('76','Mentheville','24',256,158,3.08,'-2142','55212',85,132);
INSERT INTO "communes" VALUES('76','Blainville-Crevon','08',1156,1113,14.8,'-1151','55004',83,166);
INSERT INTO "communes" VALUES('76','Saint-Aubin-Celloville','07',970,1018,6.72,'-1308','54849',30,157);
INSERT INTO "communes" VALUES('76','Gancourt-Saint-Étienne','25',234,212,12.48,'-698','55053',98,216);
INSERT INTO "communes" VALUES('76','Saint-Léger-du-Bourg-Denis','13',3421,3229,2.81,'-1318','54927',20,138);
INSERT INTO "communes" VALUES('76','<NAME>','33',1974,1566,10.02,'-1958','55030',30,148);
INSERT INTO "communes" VALUES('76','Nointot','06',1367,1056,6,'-2066','55109',65,144);
INSERT INTO "communes" VALUES('76','Saint-Jean-du-Cardonnay','66',1345,1295,7.52,'-1475','55007',55,146);
INSERT INTO "communes" VALUES('76','Saint-Rémy-Boscrocourt','19',770,694,8.37,'-1046','55566',50,106);
INSERT INTO "communes" VALUES('76','Yquebeuf','11',250,218,6.51,'-1201','55108',126,183);
INSERT INTO "communes" VALUES('76','Blangy-sur-Bresle','05',2930,3404,17.45,'-787','55480',42,216);
INSERT INTO "communes" VALUES('76','Valmont','53',1019,1011,5.55,'-2025','55270',35,123);
INSERT INTO "communes" VALUES('76','Brunville','18',261,219,3.92,'-1187','55518',100,137);
INSERT INTO "communes" VALUES('76','Saint-Riquier-en-Rivière','05',163,135,9.99,'-863','55434',87,216);
INSERT INTO "communes" VALUES('76','Ambrumesnil','39',526,447,5.14,'-1492','55397',11,88);
INSERT INTO "communes" VALUES('76','Barentin','41',12108,12775,12.74,'-1536','55049',30,128);
INSERT INTO "communes" VALUES('76','Dénestanville','35',221,238,2.69,'-1378','55346',45,118);
INSERT INTO "communes" VALUES('76','Osmoy-Saint-Valery','34',329,310,16.21,'-1127','55330',40,193);
INSERT INTO "communes" VALUES('76','Drosay','50',189,185,6.43,'-1773','55327',63,129);
INSERT INTO "communes" VALUES('76','Cent-Acres','35',36,39,5.08,'-1328','55297',70,166);
INSERT INTO "communes" VALUES('76','Bénesville','15',185,142,5.51,'-1669','55283',103,148);
INSERT INTO "communes" VALUES('76','<NAME>','35',216,224,3.84,'-1320','55283',65,168);
INSERT INTO "communes" VALUES('76','Saint-Vaast-Dieppedalle','40',343,323,12.15,'-1793','55284',61,138);
INSERT INTO "communes" VALUES('76','Écretteville-sur-Mer','53',135,93,1.89,'-2057','55324',30,106);
INSERT INTO "communes" VALUES('76','Ouainville','09',516,484,7.01,'-1940','55317',71,116);
INSERT INTO "communes" VALUES('76','Lindebeuf','54',364,284,4.62,'-1588','55235',120,167);
INSERT INTO "communes" VALUES('76','Heugleville-sur-Scie','35',596,544,13.09,'-1375','55256',77,157);
INSERT INTO "communes" VALUES('76','Yébleron','20',1375,1338,10.39,'-2000','55148',122,150);
INSERT INTO "communes" VALUES('76','Bordeaux-Saint-Clair','12',623,566,10.31,'-2315','55223',10,119);
INSERT INTO "communes" VALUES('76','Monchaux-Soreng','05',644,669,10.05,'-826','55498',27,201);
INSERT INTO "communes" VALUES('76','Ectot-l''Auber','54',582,430,5,'-1563','55166',133,174);
INSERT INTO "communes" VALUES('76','Sainte-Agathe-d''Aliermont','34',327,294,7.97,'-1118','55363',85,197);
INSERT INTO "communes" VALUES('76','Hermeville','12',373,372,3.81,'-2303','55108',80,124);
INSERT INTO "communes" VALUES('76','<NAME>','40',241,273,4.32,'-1860','55255',36,142);
INSERT INTO "communes" VALUES('76','Pissy-Pôville','66',1277,1259,11.26,'-1493','55032',47,144);
INSERT INTO "communes" VALUES('76','Quièvrecourt','38',459,419,4.02,'-1016','55260',69,139);
INSERT INTO "communes" VALUES('76','<NAME>','48',1290,1108,27.93,'-2136','55008',0,127);
INSERT INTO "communes" VALUES('76','Rieux','05',632,576,7.09,'-839','55484',61,209);
INSERT INTO "communes" VALUES('76','Harfleur','63',8158,8524,4.21,'-2376','55007',0,89);
INSERT INTO "communes" VALUES('76','Ingouville','50',248,259,7.91,'-1833','55378',0,81);
INSERT INTO "communes" VALUES('76','Saint-Crespin','35',284,284,6.35,'-1361','55314',61,143);
INSERT INTO "communes" VALUES('76','Greuville','03',370,315,2.96,'-1583','55343',88,109);
INSERT INTO "communes" VALUES('76','Nolléval','01',433,308,9.93,'-950','54993',71,206);
INSERT INTO "communes" VALUES('76','Canouville','09',321,247,4.49,'-1929','55340',27,106);
INSERT INTO "communes" VALUES('76','Fresne-le-Plan','07',613,456,6.88,'-1157','54903',125,161);
INSERT INTO "communes" VALUES('76','Envronville','20',314,333,6.22,'-1852','55180',77,139);
INSERT INTO "communes" VALUES('76','Amfreville-la-Mi-Voie','07',3112,2876,3.89,'-1340','54891',3,145);
INSERT INTO "communes" VALUES('76','Froberville','21',1008,808,5.88,'-2228','55247',56,112);
INSERT INTO "communes" VALUES('76','Incheville','19',1334,1431,7.89,'-937','55568',10,142);
INSERT INTO "communes" VALUES('76','Rouvray-Catillon','23',219,195,12.22,'-949','55081',112,225);
INSERT INTO "communes" VALUES('76','Auquemesnil','18',285,246,6.34,'-1119','55494',40,150);
INSERT INTO "communes" VALUES('76','Maniquerville','21',477,304,2.55,'-2215','55214',82,119);
INSERT INTO "communes" VALUES('76','Offranville','39',3321,3471,17.34,'-1431','55412',8,92);
INSERT INTO "communes" VALUES('76','Amfreville-les-Champs','15',160,99,4.6,'-1688','55220',141,167);
INSERT INTO "communes" VALUES('76','Réalcamp','05',662,614,11.45,'-794','55392',135,216);
INSERT INTO "communes" VALUES('76','Robertot','40',189,118,2.45,'-1822','55244',50,126);
INSERT INTO "communes" VALUES('76','Torcy-le-Grand','35',710,718,8.75,'-1290','55333',32,172);
INSERT INTO "communes" VALUES('76','Dampierre-en-Bray','25',449,367,12.82,'-753','55035',102,168);
INSERT INTO "communes" VALUES('76','Ménonval','38',192,173,5.32,'-938','55302',105,229);
INSERT INTO "communes" VALUES('76','<NAME>','16',5270,5389,17.52,'-1701','54987',1,117);
INSERT INTO "communes" VALUES('76','Gerponville','53',382,300,4.91,'-1969','55280',75,132);
INSERT INTO "communes" VALUES('76','Clasville','09',263,222,3.16,'-1909','55323',10,112);
INSERT INTO "communes" VALUES('76','Millebosc','19',275,244,7.91,'-938','55525',49,159);
INSERT INTO "communes" VALUES('76','Saint-Vincent-Cramesnil','48',605,500,4.77,'-2194','55005',40,125);
INSERT INTO "communes" VALUES('76','Vassonville','52',401,330,5.65,'-1382','55217',99,162);
INSERT INTO "communes" VALUES('76','Bosc-Édeline','08',324,283,6.19,'-1011','55078',168,232);
INSERT INTO "communes" VALUES('76','Maucomble','49',353,321,5.07,'-1115','55202',149,235);
INSERT INTO "communes" VALUES('76','Bois-d''Ennebourg','13',517,511,7.04,'-1202','54921',78,160);
INSERT INTO "communes" VALUES('76','Épreville','21',1015,762,6.44,'-2189','55230',77,122);
INSERT INTO "communes" VALUES('76','Beuzevillette','06',713,651,5.63,'-2001','55080',56,154);
INSERT INTO "communes" VALUES('76','Martin-Église','14',1542,1328,9.58,'-1329','55446',2,103);
INSERT INTO "communes" VALUES('76','Foucart','20',358,318,4.28,'-1935','55127',128,149);
INSERT INTO "communes" VALUES('76','Croixdalle','34',218,230,11,'-1081','55350',80,216);
INSERT INTO "communes" VALUES('76','Saint-Mards','03',187,194,6.52,'-1472','55289',72,133);
INSERT INTO "communes" VALUES('76','Omonville','03',259,254,2.83,'-1432','55330',104,131);
INSERT INTO "communes" VALUES('76','Sandouville','48',761,754,14.8,'-2242','54997',0,108);
INSERT INTO "communes" VALUES('76','Claville-Motteville','11',268,233,9.26,'-1274','55111',97,174);
INSERT INTO "communes" VALUES('76','Grandes-Ventes','04',1766,1813,24.76,'-1233','55318',70,203);
INSERT INTO "communes" VALUES('76','Lammerville','03',321,322,8.76,'-1505','55329',40,120);
INSERT INTO "communes" VALUES('76','Sommesnil','40',89,84,3.06,'-1849','55235',47,128);
INSERT INTO "communes" VALUES('76','Vittefleur','09',635,641,8.17,'-1888','55354',2,100);
INSERT INTO "communes" VALUES('76','La Hallotière','01',174,148,3.75,'-963','55021',90,213);
INSERT INTO "communes" VALUES('76','Monchy-sur-Eu','19',565,491,8.99,'-982','55550',49,142);
INSERT INTO "communes" VALUES('76','Valliquerville','55',1271,1164,13.39,'-1830','55126',117,151);
INSERT INTO "communes" VALUES('76','Saint-Pierre-Lavis','20',197,128,4.49,'-1898','55177',128,144);
INSERT INTO "communes" VALUES('76','Tocqueville-en-Caux','03',142,128,3.17,'-1587','55313',45,129);
INSERT INTO "communes" VALUES('76','Fréauville','34',133,141,5.41,'-1022','55362',74,170);
INSERT INTO "communes" VALUES('76','Clères','11',1347,1261,11.36,'-1362','55111',63,181);
INSERT INTO "communes" VALUES('76','Betteville','41',549,486,8.57,'-1715','55057',17,132);
INSERT INTO "communes" VALUES('76','<NAME>','23',478,382,10.11,'-849','55121',138,227);
INSERT INTO "communes" VALUES('76','Isneauville','60',2490,2331,8.2,'-1327','54999',100,172);
INSERT INTO "communes" VALUES('76','Saint-Georges-sur-Fontaine','11',881,761,9.09,'-1285','55048',95,174);
INSERT INTO "communes" VALUES('76','Étoutteville','54',711,444,11.59,'-1725','55196',104,160);
INSERT INTO "communes" VALUES('76','Heuqueville','12',673,584,5.05,'-2431','55129',0,112);
INSERT INTO "communes" VALUES('76','Fresquiennes','41',1066,979,13.45,'-1480','55071',55,176);
INSERT INTO "communes" VALUES('76','Vattetot-sous-Beaumont','24',558,490,6.94,'-2100','55139',93,147);
INSERT INTO "communes" VALUES('76','Bertreville','09',100,95,3.22,'-1951','55298',99,119);
INSERT INTO "communes" VALUES('76','Saâne-Saint-Just','03',147,141,6.82,'-1567','55289',51,143);
INSERT INTO "communes" VALUES('76','Cropus','04',236,213,4.78,'-1322','55267',109,162);
INSERT INTO "communes" VALUES('76','Saint-Paër','16',1188,1326,18.36,'-1619','55019',7,126);
INSERT INTO "communes" VALUES('76','La Folletière','41',66,56,5.05,'-1706','55082',27,137);
INSERT INTO "communes" VALUES('76','La Vaupalière','66',983,1026,8,'-1491','54986',50,138);
INSERT INTO "communes" VALUES('76','Saint-Saire','38',630,477,13.32,'-938','55216',88,193);
INSERT INTO "communes" VALUES('76','Bois-Himont','55',441,393,5.84,'-1816','55094',65,150);
INSERT INTO "communes" VALUES('76','Autretot','55',704,621,3.8,'-1784','55168',126,152);
INSERT INTO "communes" VALUES('76','Bois-l''Évêque','13',483,368,7.21,'-1191','54944',100,163);
INSERT INTO "communes" VALUES('76','Autigny','22',276,224,4.1,'-1640','55328',54,114);
INSERT INTO "communes" VALUES('76','Montville','11',4736,4644,10.85,'-1401','55052',42,178);
INSERT INTO "communes" VALUES('76','Bazinval','05',357,299,7.18,'-871','55510',43,194);
INSERT INTO "communes" VALUES('76','Cideville','54',296,274,5.37,'-1601','55129',95,151);
INSERT INTO "communes" VALUES('76','Saint-Quentin-au-Bosc','18',101,88,3.5,'-1127','55488',98,153);
INSERT INTO "communes" VALUES('76','Bosc-Guérard-Saint-Adrien','11',861,777,10.41,'-1353','55045',65,178);
INSERT INTO "communes" VALUES('76','Crasville-la-Rocquefort','22',220,269,5.21,'-1619','55339',53,109);
INSERT INTO "communes" VALUES('76','Envermeu','18',2082,2005,14.58,'-1191','55440',24,154);
INSERT INTO "communes" VALUES('76','Saint-Étienne-du-Rouvray','93',28102,29090,18.25,'-1369','54864',3,87);
INSERT INTO "communes" VALUES('76','Heurteauville','10',331,304,7.26,'-1693','54939',0,80);
INSERT INTO "communes" VALUES('76','Thiergeville','53',377,296,9.25,'-2047','55244',44,132);
INSERT INTO "communes" VALUES('76','Étainhus','48',1065,1008,8.22,'-2249','55075',87,126);
INSERT INTO "communes" VALUES('76','Saint-Martin-du-Bec','12',568,619,4.12,'-2363','55114',44,106);
INSERT INTO "communes" VALUES('76','Ermenouville','22',160,154,3.7,'-1720','55333',77,109);
INSERT INTO "communes" VALUES('76','Manéhouville','35',217,181,4.28,'-1396','55372',29,107);
INSERT INTO "communes" VALUES('76','Vatierville','38',118,105,4.52,'-904','55324',105,237);
INSERT INTO "communes" VALUES('76','Luneray','03',2137,2166,5.08,'-1581','55365',66,100);
INSERT INTO "communes" VALUES('76','Saint-Germain-sous-Cailly','11',322,211,4.01,'-1256','55088',102,173);
INSERT INTO "communes" VALUES('76','Saint-Pierre-Bénouville','52',341,326,8.39,'-1517','55267',69,148);
INSERT INTO "communes" VALUES('76','Criquetot-sur-Longueville','35',194,153,7.22,'-1401','55307',75,137);
INSERT INTO "communes" VALUES('76','Gruchet-le-Valasse','06',2811,2684,14.2,'-2057','55063',12,141);
INSERT INTO "communes" VALUES('76','Saint-Aubin-le-Cauf','18',899,747,10.11,'-1285','55410',4,133);
INSERT INTO "communes" VALUES('76','Lintot-les-Bois','35',186,150,2.81,'-1404','55333',64,124);
INSERT INTO "communes" VALUES('76','Mesnil-Panneville','41',679,517,11.87,'-1606','55101',85,154);
INSERT INTO "communes" VALUES('76','Anneville-sur-Scie','35',465,405,5.41,'-1389','55368',26,118);
INSERT INTO "communes" VALUES('76','Saint-Michel-d''Halescourt','23',102,109,4.81,'-744','55120',143,238);
INSERT INTO "communes" VALUES('76','Alvimare','20',536,460,6.73,'-1894','55118',129,153);
INSERT INTO "communes" VALUES('76','<NAME>','22',187,207,4.42,'-1653','55400',39,73);
INSERT INTO "communes" VALUES('76','Déville-lès-Rouen','65',10188,10441,3.16,'-1430','54966',4,135);
INSERT INTO "communes" VALUES('76','Malaunay','66',5925,6027,9.25,'-1440','55029',34,169);
INSERT INTO "communes" VALUES('76','Bailleul-Neuville','34',179,179,13.14,'-1016','55344',79,216);
INSERT INTO "communes" VALUES('76','Forges-les-Eaux','23',3504,3464,5.22,'-880','55125',124,171);
INSERT INTO "communes" VALUES('76','Roncherolles-en-Bray','23',459,430,14.37,'-966','55129',119,234);
INSERT INTO "communes" VALUES('76','Maromme','36',11363,12408,4.01,'-1438','54980',11,137);
INSERT INTO "communes" VALUES('76','Saint-Nicolas-d''Aliermont','18',3715,3865,15.53,'-1240','55422',40,164);
INSERT INTO "communes" VALUES('76','Saint-André-sur-Cailly','11',891,824,12.28,'-1241','55054',114,176);
INSERT INTO "communes" VALUES('76','Saint-Romain-de-Colbosc','48',3791,3939,11.74,'-2200','55035',48,130);
INSERT INTO "communes" VALUES('76','Bosc-Bordel','08',440,440,11.95,'-1029','55104',192,236);
INSERT INTO "communes" VALUES('76','Gueures','03',519,530,6.07,'-1527','55382',15,84);
INSERT INTO "communes" VALUES('76','Saint-Maurice-d''Ételan','33',316,239,14.24,'-1916','54955',0,121);
INSERT INTO "communes" VALUES('76','Bec-de-Mortagne','24',686,615,11.94,'-2099','55227',32,135);
INSERT INTO "communes" VALUES('76','Cuy-Saint-Fiacre','25',644,536,9.63,'-710','55014',93,160);
INSERT INTO "communes" VALUES('76','Saint-Arnoult','10',1334,1323,13.86,'-1854','55032',9,146);
INSERT INTO "communes" VALUES('76','Villers-Écalles','41',1788,1778,7.41,'-1575','55043',21,119);
INSERT INTO "communes" VALUES('76','Bénarville','24',241,193,4.36,'-2050','55192',75,136);
INSERT INTO "communes" VALUES('76','Argueil','01',345,366,6.95,'-913','55045',100,210);
INSERT INTO "communes" VALUES('76','Sainte-Foy','35',544,393,6.72,'-1335','55329',65,154);
INSERT INTO "communes" VALUES('76','Hugleville-en-Caux','54',398,288,9.45,'-1503','55149',89,174);
INSERT INTO "communes" VALUES('76','Dancourt','05',233,264,18.3,'-879','55437',74,209);
INSERT INTO "communes" VALUES('76','Saint-Martin-du-Vivier','13',1740,1486,5,'-1303','54966',40,156);
INSERT INTO "communes" VALUES('76','Saint-Jean-de-Folleville','33',836,739,13.73,'-2034','55027',0,134);
INSERT INTO "communes" VALUES('76','Notre-Dame-de-Gravenchon','33',8101,8617,18.74,'-1961','54988',0,138);
INSERT INTO "communes" VALUES('76','Varneville-Bretteville','52',289,291,9.22,'-1435','55169',135,176);
INSERT INTO "communes" VALUES('76','Saint-Laurent-en-Caux','15',796,733,6.46,'-1618','55279',95,156);
INSERT INTO "communes" VALUES('76','Saint-Martin-aux-Buneaux','09',671,601,8.14,'-1982','55361',0,91);
INSERT INTO "communes" VALUES('76','Berville','15',547,480,6.72,'-1671','55233',123,164);
INSERT INTO "communes" VALUES('76','Auzouville-l''Esneval','54',354,354,5.66,'-1612','55158',129,173);
INSERT INTO "communes" VALUES('76','Molagnies','25',176,149,4.65,'-682','55023',97,183);
INSERT INTO "communes" VALUES('76','Bretteville-du-Grand-Caux','24',1278,1133,11.41,'-2160','55183',88,129);
INSERT INTO "communes" VALUES('76','La Chaussée','35',489,290,8.08,'-1354','55360',47,146);
INSERT INTO "communes" VALUES('76','Bosc-Bérenger','49',187,177,3.38,'-1200','55150',149,183);
INSERT INTO "communes" VALUES('76','Lestanville','03',97,76,1.63,'-1534','55274',65,144);
INSERT INTO "communes" VALUES('76','Bosc-le-Hard','04',1491,1411,10.37,'-1289','55141',128,176);
INSERT INTO "communes" VALUES('76','Franqueville-Saint-Pierre','07',5734,5095,8.56,'-1285','54890',75,162);
INSERT INTO "communes" VALUES('76','Avesnes-en-Bray','25',325,256,11.9,'-738','54966',102,229);
INSERT INTO "communes" VALUES('76','Ponts-et-Marais','19',828,829,5.9,'-990','55604',6,142);
INSERT INTO "communes" VALUES('76','Parc-d''Anxtot','06',579,481,5.83,'-2163','55091',82,130);
INSERT INTO "communes" VALUES('76','Thérouldeville','53',587,457,4.58,'-2015','55287',54,131);
INSERT INTO "communes" VALUES('76','Saint-Nicolas-de-Bliquetuit','10',564,492,9.23,'-1786','55009',1,54);
INSERT INTO "communes" VALUES('76','La Chapelle-Saint-Ouen','01',99,72,7.85,'-1002','55039',94,219);
INSERT INTO "communes" VALUES('76','<NAME>','16',607,550,6.84,'-1643','54902',1,55);
INSERT INTO "communes" VALUES('76','Saint-Hellier','04',435,419,14.22,'-1273','55257',52,189);
INSERT INTO "communes" VALUES('76','Bertheauville','09',120,85,2.43,'-1935','55283',49,120);
INSERT INTO "communes" VALUES('76','Bermonville','20',504,367,7.41,'-1891','55157',122,145);
INSERT INTO "communes" VALUES('76','Toussaint','53',748,682,4.49,'-2126','55264',30,116);
INSERT INTO "communes" VALUES('76','Triquerville','33',377,349,3.01,'-1898','55004',90,143);
INSERT INTO "communes" VALUES('76','Auzebosc','55',1071,963,4.76,'-1788','55107',94,142);
INSERT INTO "communes" VALUES('76','Épretot','48',743,644,6.84,'-2247','55045',63,121);
INSERT INTO "communes" VALUES('76','Étalondes','19',1154,1031,4.63,'-1056','55589',43,99);
INSERT INTO "communes" VALUES('76','Sainte-Marie-des-Champs','55',1476,1553,4.11,'-1730','55137',100,156);
INSERT INTO "communes" VALUES('76','Caudebec-en-Caux','10',2279,2338,4.93,'-1789','55029',1,116);
INSERT INTO "communes" VALUES('76','Notre-Dame-de-Bondeville','66',6987,7652,6.28,'-1431','54987',19,157);
INSERT INTO "communes" VALUES('76','Saint-Nicolas-de-la-Taille','33',1387,1036,9.25,'-2069','55013',2,131);
INSERT INTO "communes" VALUES('76','Bailly-en-Rivière','18',556,498,20.06,'-1112','55458',62,177);
INSERT INTO "communes" VALUES('76','Sainte-Colombe','50',200,194,5.74,'-1752','55334',77,114);
INSERT INTO "communes" VALUES('76','Montmain','07',1375,1415,6.04,'-1221','54899',67,159);
INSERT INTO "communes" VALUES('76','Hautot-Saint-Sulpice','15',606,562,8.53,'-1774','55201',75,148);
INSERT INTO "communes" VALUES('76','Grainville-sur-Ry','13',450,480,5.38,'-1151','54975',103,167);
INSERT INTO "communes" VALUES('76','Bihorel','60',8438,9053,2.51,'-1356','54950',80,157);
INSERT INTO "communes" VALUES('76','Maulévrier-Sainte-Gertrude','10',949,904,14.16,'-1795','55061',7,144);
INSERT INTO "communes" VALUES('76','Saint-Pierre-de-Manneville','26',745,775,10.21,'-1561','54881',1,114);
INSERT INTO "communes" VALUES('76','Saint-Jacques-sur-Darnétal','13',2607,2493,16.71,'-1259','54934',55,172);
INSERT INTO "communes" VALUES('76','Montreuil-en-Caux','52',486,380,9.4,'-1320','55199',124,174);
INSERT INTO "communes" VALUES('76','Yville-sur-Seine','16',464,433,8.25,'-1619','54889',1,60);
INSERT INTO "communes" VALUES('76','Saint-Wandrille-Rançon','10',1176,1173,18.11,'-1744','55030',2,122);
INSERT INTO "communes" VALUES('76','Biville-sur-Mer','18',704,532,5.3,'-1204','55536',0,128);
INSERT INTO "communes" VALUES('76','<NAME>-du-Bourgay','35',129,95,2.99,'-1320','55357',67,143);
INSERT INTO "communes" VALUES('76','Pommeréval','04',394,289,7.6,'-1136','55263',117,213);
INSERT INTO "communes" VALUES('76','Rouen','99',110933,106560,21.38,'-1371','54937',2,152);
INSERT INTO "communes" VALUES('76','Boos','07',3248,2870,14.03,'-1259','54876',67,161);
INSERT INTO "communes" VALUES('76','Tourville-sur-Arques','39',1241,1081,5.9,'-1372','55398',20,113);
INSERT INTO "communes" VALUES('76','Saint-Victor-l''Abbaye','52',695,624,8.43,'-1351','55193',115,166);
INSERT INTO "communes" VALUES('76','Rolleville','37',1136,1132,7.06,'-2361','55092',27,107);
INSERT INTO "communes" VALUES('76','Veauville-lès-Baons','55',720,717,7.96,'-1744','55170',118,152);
INSERT INTO "communes" VALUES('76','Saint-Germain-sur-Eaulne','38',204,233,8.79,'-923','55295',109,236);
INSERT INTO "communes" VALUES('76','Vibeuf','54',646,536,8.66,'-1591','55215',135,173);
INSERT INTO "communes" VALUES('76','Allouville-Bellefosse','55',1168,985,14.66,'-1842','55107',114,154);
INSERT INTO "communes" VALUES('76','Saint-Clair-sur-les-Monts','55',628,560,4.07,'-1723','55119',57,142);
INSERT INTO "communes" VALUES('76','Fréville','41',864,797,5.8,'-1673','55075',77,142);
INSERT INTO "communes" VALUES('76','Saint-Martin-le-Gaillard','19',296,315,17.8,'-1073','55532',14,158);
INSERT INTO "communes" VALUES('76','Gonneville-sur-Scie','52',436,348,8.73,'-1402','55284',72,142);
INSERT INTO "communes" VALUES('76','Sainte-Marguerite-sur-Fauville','20',262,264,3.16,'-1927','55188',114,139);
INSERT INTO "communes" VALUES('76','Blacqueville','41',599,537,10.02,'-1637','55071',37,143);
INSERT INTO "communes" VALUES('76','Néville','50',1106,1088,9.23,'-1810','55359',20,91);
INSERT INTO "communes" VALUES('76','Épinay-sur-Duclair','16',509,386,6.61,'-1669','55028',55,125);
INSERT INTO "communes" VALUES('76','Ganzeville','21',455,443,3.96,'-2139','55261',16,122);
INSERT INTO "communes" VALUES('76','Ymare','07',1134,1040,4.03,'-1290','54832',47,153);
INSERT INTO "communes" VALUES('76','Saint-Aubin-de-Crétot','10',539,474,4.73,'-1886','55077',80,154);
INSERT INTO "communes" VALUES('76','Sept-Meules','19',154,163,8.22,'-1019','55504',40,158);
INSERT INTO "communes" VALUES('76','Saint-Denis-d''Aclon','39',162,193,2.42,'-1536','55407',8,74);
INSERT INTO "communes" VALUES('76','Sotteville-sous-le-Val','61',772,580,5.27,'-1346','54801',4,84);
INSERT INTO "communes" VALUES('76','Saint-Saëns','49',2510,2556,25.5,'-1170','55191',90,229);
INSERT INTO "communes" VALUES('76','Veules-les-Roses','50',551,679,5.19,'-1708','55415',0,79);
INSERT INTO "communes" VALUES('76','Saint-Martin-Osmonville','49',1155,825,21.34,'-1152','55155',110,207);
INSERT INTO "communes" VALUES('76','Theuville-aux-Maillots','53',492,378,7.24,'-1992','55295',58,132);
INSERT INTO "communes" VALUES('76','Gonneville-la-Mallet','12',1318,1139,7.32,'-2349','55155',65,137);
INSERT INTO "communes" VALUES('76','Vattetot-sur-Mer','21',318,253,5.14,'-2284','55252',0,109);
INSERT INTO "communes" VALUES('76','Saint-Nicolas-de-la-Haie','10',396,379,3.15,'-1904','55062',77,150);
INSERT INTO "communes" VALUES('76','<NAME>','39',445,440,14.74,'-1611','55407',7,70);
INSERT INTO "communes" VALUES('76','Baons-le-Comte','55',343,359,5.38,'-1733','55158',131,154);
INSERT INTO "communes" VALUES('76','Rainfreville','03',88,83,2.58,'-1555','55323',42,118);
INSERT INTO "communes" VALUES('76','Aumale','02',2388,2577,9.06,'-649','55301',106,212);
INSERT INTO "communes" VALUES('76','Doudeauville','25',93,82,3.94,'-702','55080',108,206);
INSERT INTO "communes" VALUES('76','Bosc-Mesnil','49',287,212,9.37,'-1098','55179',139,230);
INSERT INTO "communes" VALUES('76','Saint-Denis-le-Thiboult','13',506,490,10.25,'-1082','54955',56,161);
INSERT INTO "communes" VALUES('76','Émanville','41',577,508,6.43,'-1528','55136',94,174);
INSERT INTO "communes" VALUES('76','Criquetot-le-Mauconduit','53',171,130,4.12,'-1973','55326',64,113);
INSERT INTO "communes" VALUES('76','Bertrimont','52',238,195,4.74,'-1484','55186',114,162);
INSERT INTO "communes" VALUES('76','Nesle-Hodeng','38',320,313,15.72,'-925','55229',93,244);
INSERT INTO "communes" VALUES('76','Grainville-Ymauville','24',406,392,6.29,'-2134','55175',93,135);
INSERT INTO "communes" VALUES('76','Limpiville','53',348,340,4.24,'-2038','55211',70,131);
INSERT INTO "communes" VALUES('76','<NAME>','23',228,183,10.09,'-842','55159',143,239);
INSERT INTO "communes" VALUES('76','Gonfreville-Caillot','24',324,263,4.22,'-2107','55169',112,134);
INSERT INTO "communes" VALUES('76','Carville-Pot-de-Fer','40',99,111,5.34,'-1792','55240',82,149);
INSERT INTO "communes" VALUES('76','Vergetot','12',423,348,4.31,'-2286','55132',96,134);
INSERT INTO "communes" VALUES('76','La Vieux-Rue','13',463,407,5.51,'-1209','54992',124,176);
INSERT INTO "communes" VALUES('76','Sigy-en-Bray','01',692,558,27.17,'-940','55052',90,228);
INSERT INTO "communes" VALUES('76','Sauqueville','39',359,355,3.39,'-1407','55395',21,93);
INSERT INTO "communes" VALUES('76','Catenay','08',709,654,5.88,'-1124','55014',87,170);
INSERT INTO "communes" VALUES('76','Auberville-la-Campagne','33',616,555,4.78,'-1929','55037',103,154);
INSERT INTO "communes" VALUES('76','Bacqueville-en-Caux','03',1797,1649,12.19,'-1486','55319',45,124);
INSERT INTO "communes" VALUES('76','Grandcourt','34',358,328,22.44,'-939','55460',55,204);
INSERT INTO "communes" VALUES('76','La Crique','04',367,288,10.18,'-1266','55212',90,174);
INSERT INTO "communes" VALUES('76','<NAME>-Saint-Samson','23',455,341,19.05,'-902','55087',119,196);
INSERT INTO "communes" VALUES('76','Biville-la-Baignarde','52',627,515,7.08,'-1432','55246',105,151);
INSERT INTO "communes" VALUES('76','Pommereux','23',105,87,5.39,'-792','55114',144,223);
INSERT INTO "communes" VALUES('76','Montérolier','49',535,500,11.7,'-1100','55144',132,212);
INSERT INTO "communes" VALUES('76','Jumièges','16',1736,1716,18.75,'-1684','54927',0,83);
INSERT INTO "communes" VALUES('76','Saint-Maclou-la-Brière','24',503,417,4.96,'-2078','55172',100,136);
INSERT INTO "communes" VALUES('76','Tôtes','52',1440,1083,7.61,'-1433','55199',138,172);
INSERT INTO "communes" VALUES('76','Limésy','41',1434,1307,15.01,'-1568','55126',67,173);
INSERT INTO "communes" VALUES('76','Ricarville','20',319,306,4.18,'-1921','55152',118,145);
INSERT INTO "communes" VALUES('76','Grèges','14',801,742,3.13,'-1324','55470',74,101);
INSERT INTO "communes" VALUES('76','Saint-Vigor-d''Ymonville','48',1024,860,29.43,'-2195','54995',0,124);
INSERT INTO "communes" VALUES('76','Boudeville','15',204,181,4.66,'-1617','55251',123,156);
INSERT INTO "communes" VALUES('76','Manneville-la-Goupil','24',1014,932,8.75,'-2204','55123',103,136);
INSERT INTO "communes" VALUES('76','Tocqueville-les-Murs','24',308,207,3.47,'-2036','55184',114,138);
INSERT INTO "communes" VALUES('76','Bosc-Roger-sur-Buchy','08',736,650,14.17,'-1053','55092',139,231);
INSERT INTO "communes" VALUES('76','Anvéville','40',263,248,4.23,'-1776','55221',87,152);
INSERT INTO "communes" VALUES('76','Saint-Martin-aux-Arbres','54',300,283,5.14,'-1604','55166',147,175);
INSERT INTO "communes" VALUES('76','Fontaine-le-Dun','22',882,978,5.35,'-1652','55348',44,100);
INSERT INTO "communes" VALUES('76','Héronchelles','08',121,89,6.71,'-1059','55033',95,177);
INSERT INTO "communes" VALUES('76','Longmesnil','23',61,38,3.86,'-806','55126',146,229);
INSERT INTO "communes" VALUES('76','Vatteville-la-Rue','10',1072,892,51.14,'-1835','54989',0,125);
INSERT INTO "communes" VALUES('76','Bully','38',885,791,19.64,'-1074','55252',76,236);
INSERT INTO "communes" VALUES('76','Bois-Guilbert','08',276,185,8.13,'-1024','55052',115,226);
INSERT INTO "communes" VALUES('76','Saint-Pierre-en-Val','19',1118,1018,7.73,'-988','55579',40,142);
INSERT INTO "communes" VALUES('76','Tocqueville-sur-Eu','19',211,153,3.6,'-1170','55559',0,97);
INSERT INTO "communes" VALUES('76','Nesle-Normandeuse','05',591,578,9.1,'-741','55453',53,204);
INSERT INTO "communes" VALUES('76','Mont-Saint-Aignan','65',19341,21265,7.94,'-1388','54958',44,171);
INSERT INTO "communes" VALUES('76','Melleville','19',272,294,9.09,'-960','55509',83,189);
INSERT INTO "communes" VALUES('76','Belleville-sur-Mer','14',785,629,3.07,'-1305','55499',0,103);
INSERT INTO "communes" VALUES('76','Paluel','09',464,416,10.87,'-1898','55370',0,96);
INSERT INTO "communes" VALUES('76','Manneville-ès-Plains','50',265,258,6.36,'-1758','55395',0,83);
INSERT INTO "communes" VALUES('76','Val-de-Saâne','52',1445,1330,13.87,'-1524','55227',70,158);
INSERT INTO "communes" VALUES('76','Brachy','03',724,683,11.15,'-1541','55350',24,103);
INSERT INTO "communes" VALUES('76','Serqueux','23',1014,987,5.76,'-887','55146',137,189);
INSERT INTO "communes" VALUES('76','Lamberville','03',169,172,7.33,'-1484','55303',67,127);
INSERT INTO "communes" VALUES('76','Frichemesnil','11',424,402,8.1,'-1330','55136',115,172);
INSERT INTO "communes" VALUES('76','Bonsecours','07',6567,6854,3.76,'-1343','54920',2,157);
INSERT INTO "communes" VALUES('76','Yerville','54',2329,2172,10.42,'-1600','55187',148,174);
INSERT INTO "communes" VALUES('76','Gouchaupre','18',173,152,4.34,'-1153','55478',126,154);
INSERT INTO "communes" VALUES('76','Dieppe','95',31963,34644,11.67,'-1399','55468',0,94);
INSERT INTO "communes" VALUES('76','Meulers','18',588,395,6.67,'-1231','55379',20,153);
INSERT INTO "communes" VALUES('76','Orival','17',941,1071,9.55,'-1489','54791',2,131);
INSERT INTO "communes" VALUES('76','Sassetot-le-Mauconduit','53',1013,957,8.81,'-2009','55337',0,104);
INSERT INTO "communes" VALUES('76','Estouteville-Écalles','08',469,376,8.46,'-1130','55101',159,199);
INSERT INTO "communes" VALUES('76','Saint-Jacques-d''Aliermont','18',365,325,7.86,'-1198','55387',46,178);
INSERT INTO "communes" VALUES('76','Ernemont-sur-Buchy','08',243,187,4.04,'-1084','55044',120,176);
INSERT INTO "communes" VALUES('76','Montivilliers','37',16611,16553,19.09,'-2387','55051',2,94);
INSERT INTO "communes" VALUES('76','Fontaine-la-Mallet','37',2692,2542,6.68,'-2435','55040',17,89);
INSERT INTO "communes" VALUES('76','<NAME>','12',422,316,5.81,'-2387','55191',0,114);
INSERT INTO "communes" VALUES('76','<NAME>','01',312,261,6.74,'-994','54962',75,177);
INSERT INTO "communes" VALUES('76','Villy-sur-Yères','19',196,138,8.34,'-985','55492',47,185);
INSERT INTO "communes" VALUES('76','Sotteville-lès-Rouen','92',28835,29549,7.44,'-1386','54898',3,48);
INSERT INTO "communes" VALUES('76','Croix-Mare','41',700,591,8.64,'-1651','55114',53,157);
INSERT INTO "communes" VALUES('76','Authieux-sur-le-Port-Saint-Ouen','07',1212,1176,4.53,'-1337','54823',2,86);
INSERT INTO "communes" VALUES('76','Sasseville','09',292,269,6.19,'-1839','55320',44,127);
INSERT INTO "communes" VALUES('76','Ypreville-Biville','53',541,451,10.2,'-2004','55216',70,131);
INSERT INTO "communes" VALUES('76','Sainte-Hélène-Bondeville','53',727,680,6.82,'-2086','55305',55,125);
INSERT INTO "communes" VALUES('76','Sierville','11',956,859,15.91,'-1445','55100',120,181);
INSERT INTO "communes" VALUES('76','Écalles-Alix','41',488,501,7.1,'-1680','55129',80,152);
INSERT INTO "communes" VALUES('76','Crosville-sur-Scie','35',242,236,3.51,'-1384','55358',39,112);
INSERT INTO "communes" VALUES('76','Angerville-la-Martel','53',898,673,10.19,'-2039','55291',75,126);
INSERT INTO "communes" VALUES('76','Bourville','22',297,312,6.61,'-1685','55328',63,114);
INSERT INTO "communes" VALUES('76','Vieux-Rouen-sur-Bresle','02',649,643,14.92,'-685','55371',76,210);
INSERT INTO "communes" VALUES('76','Morienne','02',173,178,8.91,'-696','55313',105,214);
INSERT INTO "communes" VALUES('76','Graimbouville','48',590,495,6.4,'-2230','55081',98,127);
INSERT INTO "communes" VALUES('76','Petit-Couronne','26',9209,8618,12.8,'-1454','54873',2,108);
INSERT INTO "communes" VALUES('76','Saint-Ouen-le-Mauger','03',222,172,6.06,'-1528','55288',90,141);
INSERT INTO "communes" VALUES('76','Saint-Denis-sur-Scie','52',505,393,8.63,'-1380','55228',96,161);
INSERT INTO "communes" VALUES('76','Neuville-Ferrières','38',594,580,13.02,'-976','55235',80,229);
INSERT INTO "communes" VALUES('76','La Fontelaye','52',34,40,3.99,'-1537','55218',91,157);
INSERT INTO "communes" VALUES('76','<NAME>','15',343,234,5.35,'-1599','55242',115,160);
INSERT INTO "communes" VALUES('76','Criquetot-sur-Ouville','54',739,610,5.83,'-1656','55196',144,172);
INSERT INTO "communes" VALUES('76','Esteville','11',523,375,5.29,'-1239','55118',156,176);
INSERT INTO "communes" VALUES('76','Routes','40',232,177,4.47,'-1770','55256',95,149);
INSERT INTO "communes" VALUES('76','Ricarville-du-Val','18',158,107,5.62,'-1178','55344',37,191);
INSERT INTO "communes" VALUES('76','Ancretiéville-Saint-Victor','54',365,272,11.54,'-1517','55170',114,172);
INSERT INTO "communes" VALUES('76','Dampierre-Saint-Nicolas','18',518,487,3.94,'-1263','55400',14,136);
INSERT INTO "communes" VALUES('76','Mauny','16',172,132,10.19,'-1613','54871',1,129);
INSERT INTO "communes" VALUES('76','Grand-Camp','33',668,652,4.91,'-1936','55065',100,154);
INSERT INTO "communes" VALUES('76','Mont-Cauvaire','11',619,567,9.02,'-1363','55079',65,176);
INSERT INTO "communes" VALUES('76','Authieux-Ratiéville','11',405,344,5.16,'-1317','55118',107,166);
INSERT INTO "communes" VALUES('76','Pavilly','41',6226,6140,14.19,'-1537','55076',50,166);
INSERT INTO "communes" VALUES('76','Butot','41',296,274,5.51,'-1454','55129',155,182);
INSERT INTO "communes" VALUES('76','Mésangueville','01',172,140,10.55,'-864','55051',114,185);
INSERT INTO "communes" VALUES('76','Épouville','37',2788,2961,5.59,'-2349','55069',17,98);
INSERT INTO "communes" VALUES('76','Préaux','13',1642,1640,18.95,'-1248','54990',80,176);
INSERT INTO "communes" VALUES('76','Flocques','19',701,614,4.93,'-1081','55596',5,97);
INSERT INTO "communes" VALUES('76','<NAME>','01',99,65,5.94,'-921','55024',90,214);
INSERT INTO "communes" VALUES('76','Pierreval','08',426,337,3.88,'-1200','55047',123,181);
INSERT INTO "communes" VALUES('76','Oudalle','48',382,368,9.65,'-2265','55006',0,109);
INSERT INTO "communes" VALUES('76','Saint-Vaast-du-Val','52',446,300,5.79,'-1473','55210',108,166);
INSERT INTO "communes" VALUES('76','Saint-Aubin-lès-Elbeuf','17',8122,8292,5.79,'-1473','54778',2,49);
INSERT INTO "communes" VALUES('76','Sassetot-le-Malgardé','03',97,84,2.56,'-1608','55302',75,130);
INSERT INTO "communes" VALUES('76','Baromesnil','19',248,259,7.98,'-1028','55541',74,140);
INSERT INTO "communes" VALUES('76','Thiétreville','53',365,356,5.33,'-2025','55240',62,129);
INSERT INTO "communes" VALUES('76','Ifs','18',52,43,4.03,'-1046','55428',135,186);
INSERT INTO "communes" VALUES('76','Cressy','04',281,221,4.35,'-1301','55248',80,163);
INSERT INTO "communes" VALUES('76','Puisenval','34',27,23,4.88,'-961','55427',100,197);
INSERT INTO "communes" VALUES('76','La Bellière','23',54,71,4.54,'-823','55114',132,189);
INSERT INTO "communes" VALUES('76','La Mailleraye-sur-Seine','10',2063,1832,44.58,'-1738','54980',0,136);
INSERT INTO "communes" VALUES('76','Saint-Germain-des-Essourts','08',404,352,9.37,'-1130','55043',101,171);
INSERT INTO "communes" VALUES('76','Caudebec-lès-Elbeuf','61',9788,9902,3.68,'-1461','54757',4,75);
INSERT INTO "communes" VALUES('76','Saint-Aubin-sur-Mer','22',251,280,6.21,'-1624','55433',0,54);
INSERT INTO "communes" VALUES('76','Grainville-la-Teinturière','09',1045,990,18.41,'-1884','55275',25,142);
INSERT INTO "communes" VALUES('76','Longroy','19',669,613,5.32,'-889','55543',20,150);
INSERT INTO "communes" VALUES('76','Sainte-Geneviève','49',284,250,14.33,'-1002','55171',103,231);
INSERT INTO "communes" VALUES('76','Gueutteville','41',79,66,2.99,'-1480','55166',140,174);
INSERT INTO "communes" VALUES('76','Canville-les-Deux-Églises','15',326,299,5.77,'-1663','55300',82,133);
INSERT INTO "communes" VALUES('76','Neufchâtel-en-Bray','38',4827,5104,11.03,'-996','55260',69,230);
INSERT INTO "communes" VALUES('76','Bernières','06',661,543,6.63,'-2065','55134',110,142);
INSERT INTO "communes" VALUES('76','Auppegard','03',718,558,7.33,'-1452','55366',73,107);
INSERT INTO "communes" VALUES('76','Ellecourt','02',131,150,4.45,'-691','55331',92,208);
INSERT INTO "communes" VALUES('76','Hénouville','16',1241,1212,10.69,'-1526','54976',2,133);
INSERT INTO "communes" VALUES('76','Saint-Pierre-des-Jonquières','34',105,126,8.31,'-983','55391',108,212);
INSERT INTO "communes" VALUES('76','<NAME>','50',24,27,1.32,'-1738','55352',69,92);
INSERT INTO "communes" VALUES('76','Longueville-sur-Scie','35',996,938,3.96,'-1363','55325',52,139);
INSERT INTO "communes" VALUES('76','Colmesnil-Manneville','39',110,141,1.91,'-1448','55387',77,90);
INSERT INTO "communes" VALUES('76','Hermanville','03',104,111,4.72,'-1498','55356',32,94);
INSERT INTO "communes" VALUES('76','Martigny','39',478,533,5.06,'-1316','55406',6,117);
INSERT INTO "communes" VALUES('76','Lillebonne','33',8944,9737,14.66,'-1999','55023',0,133);
INSERT INTO "communes" VALUES('76','Wanchy-Capval','34',340,317,19.31,'-1088','55397',57,191);
INSERT INTO "communes" VALUES('76','Sévis','04',344,283,6.4,'-1304','55231',66,172);
INSERT INTO "communes" VALUES('76','Saint-Valery-en-Caux','50',4434,4778,10.47,'-1811','55404',0,80);
INSERT INTO "communes" VALUES('76','Saint-Vaast-d''Équiqueville','18',643,560,14.04,'-1190','55353',30,182);
INSERT INTO "communes" VALUES('76','Smermesnil','34',412,250,12.81,'-960','55380',117,218);
INSERT INTO "communes" VALUES('76','Saint-Ouen-du-Breuil','41',760,686,6.3,'-1474','55154',154,182);
INSERT INTO "communes" VALUES('76','Vinnemerville','53',210,211,4.22,'-1979','55340',35,96);
INSERT INTO "communes" VALUES('76','Tourville-la-Rivière','61',2428,2277,8,'-1368','54810',2,82);
INSERT INTO "communes" VALUES('76','Fesques','38',130,128,8.8,'-955','55322',97,223);
INSERT INTO "communes" VALUES('76','Sainte-Adresse','56',7548,7879,2.26,'-2503','55007',0,100);
INSERT INTO "communes" VALUES('76','Bennetot','20',191,127,4.58,'-1983','55190',97,131);
INSERT INTO "communes" VALUES('76','Raffetot','06',497,475,6.85,'-2025','55111',127,144);
INSERT INTO "communes" VALUES('76','Bracquetuit','52',323,304,8.47,'-1298','55185',133,167);
INSERT INTO "communes" VALUES('76','Critot','49',509,451,7.05,'-1206','55124',152,187);
INSERT INTO "communes" VALUES('76','Yvecrique','15',657,634,5.97,'-1696','55208',129,167);
INSERT INTO "communes" VALUES('76','<NAME>','07',6986,6488,5.07,'-1327','54901',65,162);
INSERT INTO "communes" VALUES('76','Beaumont-le-Hareng','04',224,187,5.74,'-1238','55189',100,169);
INSERT INTO "communes" VALUES('76','Montroty','25',257,207,10.79,'-745','54933',110,221);
INSERT INTO "communes" VALUES('76','Hautot-le-Vatois','20',299,268,6.07,'-1830','55163',95,142);
INSERT INTO "communes" VALUES('76','Moulineaux','26',894,890,3.49,'-1523','54825',2,125);
INSERT INTO "communes" VALUES('76','Beuzeville-la-Grenier','06',1056,1032,6.19,'-2122','55103',94,127);
INSERT INTO "communes" VALUES('76','La Neuville-Chant-d''Oisel','07',2093,1758,21.83,'-1215','54853',74,162);
INSERT INTO "communes" VALUES('76','Veulettes-sur-Mer','09',322,296,4.71,'-1934','55386',0,81);
INSERT INTO "communes" VALUES('76','Héberville','22',105,115,3.99,'-1705','55307',90,126);
INSERT INTO "communes" VALUES('76','Trouville','06',628,565,10.38,'-1929','55082',135,154);
INSERT INTO "communes" VALUES('76','Criquebeuf-en-Caux','21',373,403,2.08,'-2226','55267',5,102);
INSERT INTO "communes" VALUES('76','Saint-Aignan-sur-Ry','08',308,282,8,'-1093','55003',80,161);
INSERT INTO "communes" VALUES('76','Fécamp','21',19207,21028,15.07,'-2175','55286',0,125);
INSERT INTO "communes" VALUES('76','Notre-Dame-d''Aliermont','18',677,538,13.31,'-1162','55392',94,196);
INSERT INTO "communes" VALUES('76','Saint-Martin-au-Bosc','05',188,173,7.2,'-751','55369',115,215);
INSERT INTO "communes" VALUES('76','Rétonval','05',192,190,5.62,'-826','55356',140,221);
INSERT INTO "communes" VALUES('76','Thil-Manneville','03',535,453,6.78,'-1493','55378',22,100);
INSERT INTO "communes" VALUES('76','Saint-Pierre-le-Viger','22',283,274,5.45,'-1652','55359',32,91);
INSERT INTO "communes" VALUES('76','Gonfreville-l''Orcher','63',9084,9939,25.81,'-2337','55006',0,102);
INSERT INTO "communes" VALUES('76','Rouxmesnil-Bouteilles','39',2028,1776,5.63,'-1385','55450',1,99);
INSERT INTO "communes" VALUES('76','Baillolet','34',120,128,8.74,'-999','55326',86,221);
INSERT INTO "communes" VALUES('76','Canteleu','36',14825,15428,17.61,'-1457','54934',2,138);
INSERT INTO "communes" VALUES('76','Ardouval','04',176,136,10.49,'-1181','55274',115,211);
INSERT INTO "communes" VALUES('76','Gonzeville','15',106,111,4.83,'-1696','55293',98,144);
INSERT INTO "communes" VALUES('76','Ancretteville-sur-Mer','53',196,178,3.15,'-2028','55320',49,108);
INSERT INTO "communes" VALUES('76','Yport','21',949,1012,2.07,'-2248','55264',0,96);
INSERT INTO "communes" VALUES('76','Belleville-en-Caux','52',603,357,4.38,'-1499','55231',89,162);
INSERT INTO "communes" VALUES('76','Graval','38',138,100,3.95,'-883','55253',145,236);
INSERT INTO "communes" VALUES('76','Cuverville','12',348,292,4.58,'-2304','55182',32,130);
INSERT INTO "communes" VALUES('76','Senneville-sur-Fécamp','21',801,628,4.73,'-2133','55303',0,124);
INSERT INTO "communes" VALUES('76','Fongueusemare','12',182,170,11.85,'-2257','55198',37,136);
INSERT INTO "communes" VALUES('76','Vénestanville','03',178,147,2.64,'-1592','55327',101,119);
INSERT INTO "communes" VALUES('76','Saint-Jouin-Bruneval','12',1836,1576,18.82,'-2415','55159',0,137);
INSERT INTO "communes" VALUES('76','Ronchois','02',187,169,8.62,'-788','55248',178,245);
INSERT INTO "communes" VALUES('76','Écrainville','24',1026,928,12.82,'-2240','55169',58,137);
INSERT INTO "communes" VALUES('76','Auzouville-sur-Ry','13',626,576,7.98,'-1139','54935',90,156);
INSERT INTO "communes" VALUES('76','Hodeng-Hodenger','01',274,202,11.54,'-853','55031',107,197);
INSERT INTO "communes" VALUES('76','Écretteville-lès-Baons','55',407,420,9.39,'-1838','55141',107,139);
INSERT INTO "communes" VALUES('76','Rogerville','48',1259,1259,9.5,'-2301','55005',0,106);
INSERT INTO "communes" VALUES('76','Beauval-en-Caux','52',461,436,15.53,'-1464','55272',84,147);
INSERT INTO "communes" VALUES('76','Bosc-Hyons','25',399,311,5.63,'-754','54942',182,229);
INSERT INTO "communes" VALUES('76','Bosville','09',539,511,8.69,'-1831','55284',50,124);
INSERT INTO "communes" VALUES('76','Gainneville','63',2688,2363,4.65,'-2317','55020',25,107);
INSERT INTO "communes" VALUES('76','Grumesnil','23',479,403,11.16,'-716','55122',167,229);
INSERT INTO "communes" VALUES('76','La Trinité-du-Mont','33',749,629,2.06,'-1979','55049',37,146);
INSERT INTO "communes" VALUES('76','Hautot-sur-Seine','26',365,352,2.16,'-1509','54846',1,58);
INSERT INTO "communes" VALUES('76','Touffreville-la-Cable','10',386,355,3.97,'-1909','55024',65,149);
INSERT INTO "communes" VALUES('76','Daubeuf-Serville','24',381,322,7.75,'-2066','55217',60,132);
INSERT INTO "communes" VALUES('76','La Remuée','48',1326,1182,7.03,'-2148','55031',103,135);
INSERT INTO "communes" VALUES('76','Montigny','66',1143,1114,7.83,'-1484','54955',34,136);
INSERT INTO "communes" VALUES('76','Touffreville-la-Corbeline','55',769,804,12.59,'-1748','55090',29,142);
INSERT INTO "communes" VALUES('76','Cany-Barville','09',3056,3367,13.57,'-1887','55320',10,126);
INSERT INTO "communes" VALUES('76','Lucy','38',168,144,9.59,'-983','55312',96,227);
INSERT INTO "communes" VALUES('76','Saint-Pierre-en-Port','53',835,802,3.89,'-2045','55341',0,96);
INSERT INTO "communes" VALUES('76','Saint-Sauveur-d''Émalleville','24',1191,972,7.48,'-2264','55125',104,137);
INSERT INTO "communes" VALUES('76','Saint-Sylvain','50',185,213,3.24,'-1849','55384',0,83);
INSERT INTO "communes" VALUES('76','Grigneuseville','04',317,328,7.59,'-1275','55171',148,172);
INSERT INTO "communes" VALUES('76','Sommery','49',828,644,21.39,'-996','55150',117,236);
INSERT INTO "communes" VALUES('76','Étalleville','15',435,365,3.55,'-1680','55265',107,152);
INSERT INTO "communes" VALUES('76','Brametot','22',160,173,3.21,'-1633','55317',82,126);
INSERT INTO "communes" VALUES('76','Goupillières','41',425,371,4.13,'-1508','55092',85,152);
INSERT INTO "communes" VALUES('76','Bolbec','06',11812,12591,12.24,'-2071','55080',29,142);
INSERT INTO "communes" VALUES('76','Fauville-en-Caux','20',2159,1938,8.11,'-1939','55170',109,141);
INSERT INTO "communes" VALUES('76','Turretot','12',1498,1318,6.07,'-2344','55119',70,122);
INSERT INTO "communes" VALUES('76','Saint-Antoine-la-Forêt','33',1011,932,6.44,'-2072','55042',10,137);
INSERT INTO "communes" VALUES('76','Saint-Pierre-le-Vieux','22',224,203,7.06,'-1627','55389',18,71);
INSERT INTO "communes" VALUES('76','Reuville','15',131,117,4.37,'-1632','55279',117,152);
INSERT INTO "communes" VALUES('76','Hattenville','20',670,554,9.32,'-1999','55170',113,139);
INSERT INTO "communes" VALUES('76','Saint-Léonard','21',1837,1693,11.92,'-2198','55269',0,114);
INSERT INTO "communes" VALUES('76','Loges','21',1153,1036,14.86,'-2281','55222',0,121);
INSERT INTO "communes" VALUES('76','Gaillefontaine','23',1311,1460,26.23,'-800','55171',143,246);
INSERT INTO "communes" VALUES('76','Beauvoir-en-Lyons','01',594,473,33.29,'-834','55004',129,231);
INSERT INTO "communes" VALUES('76','Butot-Vénesville','09',248,272,3.51,'-1943','55349',43,96);
INSERT INTO "communes" VALUES('76','<NAME>','11',732,725,8.62,'-1394','55118',112,186);
INSERT INTO "communes" VALUES('76','Mesnil-Follemprise','04',133,123,7.48,'-1155','55305',103,211);
INSERT INTO "communes" VALUES('76','Bellengreville','18',461,397,7.67,'-1245','55452',17,132);
INSERT INTO "communes" VALUES('76','Martainville-Épreville','13',734,611,7.61,'-1161','54956',138,162);
INSERT INTO "communes" VALUES('76','<NAME>','98',175497,190924,46.95,'-2461','54999',0,105);
INSERT INTO "communes" VALUES('76','Croisy-sur-Andelle','01',522,523,3.83,'-1044','54956',53,160);
INSERT INTO "communes" VALUES('76','Bénouville','12',151,128,2.86,'-2319','55241',0,99);
INSERT INTO "communes" VALUES('76','Yainville','16',1111,1181,3.31,'-1674','54947',2,68);
INSERT INTO "communes" VALUES('76','Cleuville','40',170,118,4.1,'-1893','55233',85,142);
INSERT INTO "communes" VALUES('76','Beaubec-la-Rosière','23',473,393,12.97,'-896','55162',108,201);
INSERT INTO "communes" VALUES('76','Muchedent','35',140,130,7.05,'-1283','55302',43,176);
INSERT INTO "communes" VALUES('76','Mathonville','49',259,174,4.09,'-1060','55135',170,229);
INSERT INTO "communes" VALUES('76','Héricourt-en-Caux','40',959,865,10.81,'-1820','55219',53,141);
INSERT INTO "communes" VALUES('76','Criquetot-l''Esneval','12',2337,2149,13.47,'-2300','55160',94,136);
INSERT INTO "communes" VALUES('76','Auberville-la-Manuel','09',119,103,3.02,'-1942','55364',23,85);
INSERT INTO "communes" VALUES('76','Conteville','02',526,454,13.71,'-780','55216',193,246);
INSERT INTO "communes" VALUES('76','Pierrecourt','05',484,455,9.51,'-753','55441',71,216);
INSERT INTO "communes" VALUES('76','Riville','53',316,253,7.44,'-1972','55251',70,134);
INSERT INTO "communes" VALUES('76','Motteville','54',775,729,8.68,'-1646','55150',135,157);
INSERT INTO "communes" VALUES('76','Fresnay-le-Long','52',304,201,5.22,'-1378','55165',146,176);
INSERT INTO "communes" VALUES('76','Houdetot','22',171,135,5.77,'-1704','55349',63,103);
INSERT INTO "communes" VALUES('76','Auzouville-sur-Saâne','03',148,137,3.21,'-1558','55272',62,146);
INSERT INTO "communes" VALUES('77','Jouy-le-Châtel','23',1436,1392,37.68,'880','54073',109,161);
INSERT INTO "communes" VALUES('77','Lesches','43',708,535,4.03,'492','54342',40,107);
INSERT INTO "communes" VALUES('77','Saint-Germain-sous-Doue','26',482,382,10.01,'897','54279',106,161);
INSERT INTO "communes" VALUES('77','Juilly','09',2156,1447,7.77,'408','54459',77,114);
INSERT INTO "communes" VALUES('77','Chapelles-Bourbon','27',421,330,6.42,'561','54157',108,118);
INSERT INTO "communes" VALUES('77','Marcilly','15',435,353,6.93,'601','54486',72,126);
INSERT INTO "communes" VALUES('77','Guérard','07',2251,1969,19.8,'690','54250',50,153);
INSERT INTO "communes" VALUES('77','Bassevelle','12',352,354,17.46,'1056','54364',104,206);
INSERT INTO "communes" VALUES('77','Champcenest','29',138,116,12.46,'1050','54078',142,173);
INSERT INTO "communes" VALUES('77','Germigny-l''Évêque','17',1358,1360,11.76,'674','54436',42,104);
INSERT INTO "communes" VALUES('77','Conches-sur-Gondoire','43',1740,1717,1.52,'424','54284',69,111);
INSERT INTO "communes" VALUES('77','Dammartin-sur-Tigeaux','27',889,725,9.04,'648','54244',50,133);
INSERT INTO "communes" VALUES('77','Montdauphin','26',231,181,9.84,'1213','54279',102,197);
INSERT INTO "communes" VALUES('77','Annet-sur-Marne','06',3239,2482,13.19,'425','54362',38,133);
INSERT INTO "communes" VALUES('77','Émerainville','38',7349,7033,5.46,'318','54234',83,113);
INSERT INTO "communes" VALUES('77','Aufferville','04',551,449,17.74,'303','53572',101,116);
INSERT INTO "communes" VALUES('77','Nangis','23',7979,7472,24.16,'753','53950',103,140);
INSERT INTO "communes" VALUES('77','Chauffry','26',992,850,5.16,'943','54243',75,155);
INSERT INTO "communes" VALUES('77','Limoges-Fourches','02',475,298,7.96,'366','54031',86,97);
INSERT INTO "communes" VALUES('77','Noisy-sur-École','03',2012,1818,29.91,'190','53742',63,127);
INSERT INTO "communes" VALUES('77','Isles-les-Meldeuses','15',771,602,6.94,'744','54444',42,119);
INSERT INTO "communes" VALUES('77','Varreddes','17',1858,1814,8,'658','54448',42,123);
INSERT INTO "communes" VALUES('77','Vendrest','15',730,607,17.73,'841','54496',66,206);
INSERT INTO "communes" VALUES('77','Darvault','24',805,777,7.83,'442','53635',57,137);
INSERT INTO "communes" VALUES('77','Saint-Léger','26',205,200,9.63,'1021','54265',150,184);
INSERT INTO "communes" VALUES('77','Mary-sur-Marne','15',1203,1158,2.22,'769','54461',44,123);
INSERT INTO "communes" VALUES('77','Jaignes','15',306,310,10.11,'798','54435',47,177);
INSERT INTO "communes" VALUES('77','Avon','13',13984,14026,3.83,'432','53788',42,100);
INSERT INTO "communes" VALUES('77','Carnetin','43',473,435,1.61,'409','54334',75,130);
INSERT INTO "communes" VALUES('77','Aubepierre-Ozouer-le-Repos','22',904,869,26.83,'611','54035',79,122);
INSERT INTO "communes" VALUES('77','<NAME>','22',1449,1270,17.36,'625','53944',88,129);
INSERT INTO "communes" VALUES('77','Paley','16',437,411,9.26,'581','53602',80,141);
INSERT INTO "communes" VALUES('77','Saint-Germain-Laxis','18',497,514,7.18,'416','53980',73,92);
INSERT INTO "communes" VALUES('77','Sept-Sorts','12',433,396,3.22,'852','54375',50,150);
INSERT INTO "communes" VALUES('77','<NAME>-Morin','07',1267,1109,7.26,'699','54229',51,134);
INSERT INTO "communes" VALUES('77','Gouaix','01',1452,1388,14.64,'1063','53871',54,162);
INSERT INTO "communes" VALUES('77','<NAME>','08',355,220,12.96,'738','54314',141,172);
INSERT INTO "communes" VALUES('77','Chauconin-Neufmontiers','17',2720,1495,17.39,'558','54418',58,162);
INSERT INTO "communes" VALUES('77','Pontcarré','33',2001,1816,9.46,'410','54219',111,119);
INSERT INTO "communes" VALUES('77','Ocquerre','15',419,307,10.12,'801','54487',51,163);
INSERT INTO "communes" VALUES('77','Touquin','27',1095,948,11.34,'752','54151',89,131);
INSERT INTO "communes" VALUES('77','Mauregard','09',314,237,8.67,'272','54482',98,126);
INSERT INTO "communes" VALUES('77','Faÿ-lès-Nemours','24',478,429,7.78,'375','53590',63,122);
INSERT INTO "communes" VALUES('77','Beaumont-du-Gâtinais','04',1164,980,16.59,'156','53487',83,114);
INSERT INTO "communes" VALUES('77','Chalifert','43',1212,1050,2.42,'485','54321',39,120);
INSERT INTO "communes" VALUES('77','Obsonville','04',103,89,7.08,'249','53575',105,116);
INSERT INTO "communes" VALUES('77','Montceaux-lès-Provins','29',328,337,15.35,'1223','54104',155,202);
INSERT INTO "communes" VALUES('77','Nanteuil-lès-Meaux','31',5433,5011,7.62,'623','54366',42,146);
INSERT INTO "communes" VALUES('77','Blennes','16',562,475,20.29,'763','53620',98,162);
INSERT INTO "communes" VALUES('77','Montceaux-lès-Meaux','31',608,570,4.72,'723','54381',86,172);
INSERT INTO "communes" VALUES('77','Tigeaux','27',373,366,6.12,'627','54252',50,130);
INSERT INTO "communes" VALUES('77','Noisy-Rudignon','16',586,464,4.16,'659','53706',55,126);
INSERT INTO "communes" VALUES('77','Pommeuse','07',2800,2473,12.8,'755','54240',55,146);
INSERT INTO "communes" VALUES('77','Voulx','16',1750,1763,12.6,'702','53645',82,157);
INSERT INTO "communes" VALUES('77','Beton-Bazoches','29',781,700,18.32,'1008','54113',128,183);
INSERT INTO "communes" VALUES('77','Saint-Germain-Laval','20',2773,2600,8.85,'734','53777',47,133);
INSERT INTO "communes" VALUES('77','Coutevroult','08',974,536,7.79,'573','54292',47,142);
INSERT INTO "communes" VALUES('77','Châtenoy','24',149,134,4.87,'322','53593',100,119);
INSERT INTO "communes" VALUES('77','<NAME>-Moutils','11',390,324,18.9,'1173','54194',117,197);
INSERT INTO "communes" VALUES('77','<NAME>','26',417,389,9.28,'1017','54304',68,189);
INSERT INTO "communes" VALUES('77','Grez-sur-Loing','24',1409,1276,12.97,'392','53684',52,85);
INSERT INTO "communes" VALUES('77','Doue','26',1014,1029,20.05,'918','54296',110,182);
INSERT INTO "communes" VALUES('77','Cély','32',1198,1010,6.19,'217','53844',48,96);
INSERT INTO "communes" VALUES('77','Magny-le-Hongre','43',5918,1789,4.66,'530','54292',65,135);
INSERT INTO "communes" VALUES('77','Chevry-en-Sereine','16',508,455,22.81,'674','53615',105,159);
INSERT INTO "communes" VALUES('77','Lieusaint','41',10577,6363,11.97,'236','54036',81,91);
INSERT INTO "communes" VALUES('77','Gretz-Armainvilliers','28',7984,7609,13.51,'442','54157',86,114);
INSERT INTO "communes" VALUES('77','<NAME>','24',619,579,13.16,'455','53690',51,79);
INSERT INTO "communes" VALUES('77','Armentières-en-Brie','15',1405,1256,7.27,'762','54421',47,113);
INSERT INTO "communes" VALUES('77','Meigneux','10',229,174,7.76,'852','53902',108,146);
INSERT INTO "communes" VALUES('77','Maincy','18',1702,1710,10.19,'406','53944',42,103);
INSERT INTO "communes" VALUES('77','Trilport','31',4844,4599,10.97,'681','54397',41,141);
INSERT INTO "communes" VALUES('77','Cocherel','15',592,483,8.27,'852','54467',97,209);
INSERT INTO "communes" VALUES('77','Beauvoir','22',189,193,3.94,'587','54050',85,114);
INSERT INTO "communes" VALUES('77','Vignely','31',256,159,3.58,'525','54367',42,84);
INSERT INTO "communes" VALUES('77','Dhuisy','15',276,241,8.14,'916','54487',117,211);
INSERT INTO "communes" VALUES('77','Perthes','32',2114,1897,12.22,'243','53864',45,84);
INSERT INTO "communes" VALUES('77','Chambry','17',906,842,9.75,'620','54443',71,160);
INSERT INTO "communes" VALUES('77','Vernou-la-Celle-sur-Seine','21',2652,2499,22.42,'567','53764',42,145);
INSERT INTO "communes" VALUES('77','Saint-Thibault-des-Vignes','14',6300,6384,4.7,'391','54299',39,99);
INSERT INTO "communes" VALUES('77','Sammeron','12',1030,957,6.06,'828','54387',50,154);
INSERT INTO "communes" VALUES('77','Voinsles','27',576,499,28.44,'742','54101',86,133);
INSERT INTO "communes" VALUES('77','Paroy','10',177,193,4.25,'958','53866',57,152);
INSERT INTO "communes" VALUES('77','Saint-Hilliers','25',448,400,19.13,'1022','54023',136,176);
INSERT INTO "communes" VALUES('77','Gravon','01',142,115,7.55,'871','53777',51,121);
INSERT INTO "communes" VALUES('77','Mortery','25',177,152,13.2,'1026','53999',103,148);
INSERT INTO "communes" VALUES('77','Villemer','21',676,648,18.54,'543','53668',53,106);
INSERT INTO "communes" VALUES('77','Quincy-Voisins','08',5072,4559,10.33,'597','54333',43,138);
INSERT INTO "communes" VALUES('77','Coulommes','08',402,392,3.68,'658','54324',88,159);
INSERT INTO "communes" VALUES('77','Chevry-Cossigny','02',3706,3312,16.75,'362','54139',93,108);
INSERT INTO "communes" VALUES('77','<NAME>','09',861,565,9.84,'284','54465',87,121);
INSERT INTO "communes" VALUES('77','Montry','08',3287,3068,2.86,'546','54319',43,128);
INSERT INTO "communes" VALUES('77','Châtenay-sur-Seine','10',933,950,13.03,'842','53798',49,118);
INSERT INTO "communes" VALUES('77','Augers-en-Brie','29',304,260,13.49,'1134','54089',134,168);
INSERT INTO "communes" VALUES('77','Jaulnes','01',355,320,15.84,'1040','53797',54,122);
INSERT INTO "communes" VALUES('77','Congis-sur-Thérouanne','15',1759,1502,15.12,'710','54452',42,122);
INSERT INTO "communes" VALUES('77','Saint-Sauveur-lès-Bray','01',330,289,6.52,'970','53821',50,58);
INSERT INTO "communes" VALUES('77','Saint-Ange-le-Viel','16',228,215,3.23,'627','53628',92,143);
INSERT INTO "communes" VALUES('77','Thénisy','10',277,240,5.37,'933','53877',62,138);
INSERT INTO "communes" VALUES('77','Larchant','03',742,695,29.24,'289','53650',62,141);
INSERT INTO "communes" VALUES('77','Fontaine-le-Port','05',938,836,7.89,'475','53875',41,97);
INSERT INTO "communes" VALUES('77','Forfry','09',270,183,5.8,'567','54508',75,111);
INSERT INTO "communes" VALUES('77','Montenils','26',36,40,5.3,'1268','54269',162,201);
INSERT INTO "communes" VALUES('77','Oissery','09',2133,1546,15.17,'534','54523',81,122);
INSERT INTO "communes" VALUES('77','Écrennes','05',612,639,18.54,'580','53893',96,130);
INSERT INTO "communes" VALUES('77','Moissy-Cramayel','41',17272,14278,14.28,'284','54029',83,94);
INSERT INTO "communes" VALUES('77','Poligny','24',821,811,27.34,'454','53583',63,138);
INSERT INTO "communes" VALUES('77','Vert-Saint-Denis','42',6966,7486,16.13,'317','53963',70,105);
INSERT INTO "communes" VALUES('77','Courtacon','29',198,179,11.88,'1061','54106',132,184);
INSERT INTO "communes" VALUES('77','Amponville','03',385,301,12.3,'215','53643',103,122);
INSERT INTO "communes" VALUES('77','Gouvernes','14',1113,1023,2.72,'397','54289',46,104);
INSERT INTO "communes" VALUES('77','Jouy-sur-Morin','11',2144,1929,18.45,'1041','54216',94,181);
INSERT INTO "communes" VALUES('77','Nanteau-sur-Lunain','24',671,485,13.25,'528','53619',71,146);
INSERT INTO "communes" VALUES('77','Chenou','04',302,292,13.74,'357','53517',93,118);
INSERT INTO "communes" VALUES('77','Crisenoy','22',628,610,12.87,'452','53995',85,98);
INSERT INTO "communes" VALUES('77','Servon','02',2974,2791,7.4,'279','54130',65,97);
INSERT INTO "communes" VALUES('77','Guermantes','43',1243,1392,1.26,'410','54283',97,121);
INSERT INTO "communes" VALUES('77','Champeaux','22',768,796,13.05,'523','53984',71,104);
INSERT INTO "communes" VALUES('77','Lorrez-le-Bocage-Préaux','16',1236,1268,19.9,'627','53597',89,148);
INSERT INTO "communes" VALUES('77','Soisy-Bouy','25',805,749,11.34,'1064','53902',71,162);
INSERT INTO "communes" VALUES('77','Remauville','16',470,368,10.88,'541','53571',114,136);
INSERT INTO "communes" VALUES('77','Longueville','25',1684,1693,5.61,'1012','53905',66,145);
INSERT INTO "communes" VALUES('77','Jutigny','10',576,528,4.6,'994','53887',61,136);
INSERT INTO "communes" VALUES('77','Saint-Mammès','21',3179,3088,2.24,'531','53763',42,87);
INSERT INTO "communes" VALUES('77','Montgé-en-Goële','09',688,633,11.56,'459','54475',80,200);
INSERT INTO "communes" VALUES('77','Hermé','01',604,526,15.9,'1120','53870',56,160);
INSERT INTO "communes" VALUES('77','Boissy-le-Châtel','07',3110,2662,9.95,'889','54247',72,150);
INSERT INTO "communes" VALUES('77','Lagny-sur-Marne','14',20236,19358,5.72,'411','54309',37,112);
INSERT INTO "communes" VALUES('77','Chanteloup-en-Brie','43',2121,1777,3.18,'447','54283',90,124);
INSERT INTO "communes" VALUES('77','Villemaréchal','16',833,790,14.23,'591','53631',82,148);
INSERT INTO "communes" VALUES('77','Orly-sur-Morin','26',671,560,5.87,'994','54338',65,180);
INSERT INTO "communes" VALUES('77','Dagny','11',340,322,7.89,'927','54130',112,159);
INSERT INTO "communes" VALUES('77','Courchamp','29',152,163,12.41,'1056','54040',151,176);
INSERT INTO "communes" VALUES('77','Chartrettes','05',2556,2387,10.1,'408','53875',37,94);
INSERT INTO "communes" VALUES('77','Vimpelles','10',503,438,11.33,'920','53822',51,132);
INSERT INTO "communes" VALUES('77','Valence-en-Brie','05',911,659,11.03,'615','53827',87,130);
INSERT INTO "communes" VALUES('77','Ury','03',797,757,8.21,'297','53715',108,130);
INSERT INTO "communes" VALUES('77','Ormesson','24',273,238,3.81,'352','53605',70,119);
INSERT INTO "communes" VALUES('77','Tousson','03',367,376,13.24,'135','53719',104,133);
INSERT INTO "communes" VALUES('77','Savins','10',630,509,6.6,'959','53900',84,155);
INSERT INTO "communes" VALUES('77','Saint-Pierre-lès-Nemours','24',5617,5818,21.62,'381','53628',57,123);
INSERT INTO "communes" VALUES('77','Bréau','22',351,343,1.35,'602','53957',87,113);
INSERT INTO "communes" VALUES('77','Laval-en-Brie','20',455,380,20.29,'733','53805',84,134);
INSERT INTO "communes" VALUES('77','Dampmart','43',3158,2759,5.92,'443','54319',38,124);
INSERT INTO "communes" VALUES('77','Couilly-Pont-aux-Dames','08',2132,1898,4.75,'579','54316',45,119);
INSERT INTO "communes" VALUES('77','Claye-Souilly','06',11026,10118,15.07,'389','54383',42,124);
INSERT INTO "communes" VALUES('77','Chalautre-la-Petite','25',563,567,9.37,'1083','53921',71,161);
INSERT INTO "communes" VALUES('77','Champdeuil','22',638,660,3.97,'438','54023',88,98);
INSERT INTO "communes" VALUES('77','Boissise-la-Bertrand','42',1006,889,7.8,'281','53920',37,81);
INSERT INTO "communes" VALUES('77','Bois-le-Roi','13',5650,5290,6.91,'401','53859',38,91);
INSERT INTO "communes" VALUES('77','Passy-sur-Seine','01',44,34,4.53,'1123','53806',60,74);
INSERT INTO "communes" VALUES('77','Neufmoutiers-en-Brie','27',999,856,15.9,'551','54188',111,126);
INSERT INTO "communes" VALUES('77','Soignolles-en-Brie','02',2073,1967,10.77,'403','54061',57,97);
INSERT INTO "communes" VALUES('77','Champs-sur-Marne','38',24418,24586,7.35,'295','54281',38,106);
INSERT INTO "communes" VALUES('77','Villeroy','37',694,587,5.71,'495','54426',81,130);
INSERT INTO "communes" VALUES('77','Hautefeuille','27',318,207,9.8,'700','54184',111,126);
INSERT INTO "communes" VALUES('77','Presles-en-Brie','28',2249,1685,17.39,'450','54128',78,107);
INSERT INTO "communes" VALUES('77','Sourdun','29',1430,1230,23.33,'1126','53930',92,173);
INSERT INTO "communes" VALUES('77','Sablonnières','26',696,628,13.98,'1066','54306',75,192);
INSERT INTO "communes" VALUES('77','Précy-sur-Marne','37',767,479,4.81,'486','54368',39,83);
INSERT INTO "communes" VALUES('77','Sainte-Aulde','12',650,515,8.63,'929','54438',52,201);
INSERT INTO "communes" VALUES('77','Gastins','23',667,585,14.95,'759','54032',93,139);
INSERT INTO "communes" VALUES('77','Thoury-Férottes','16',668,609,16.49,'674','53657',72,152);
INSERT INTO "communes" VALUES('77','Pomponne','14',3364,3263,7.17,'394','54313',37,120);
INSERT INTO "communes" VALUES('77','Villeneuve-les-Bordes','10',612,576,20.6,'785','53874',117,149);
INSERT INTO "communes" VALUES('77','Égreville','16',2200,1839,31.84,'594','53530',107,141);
INSERT INTO "communes" VALUES('77','Brou-sur-Chantereine','36',4254,4282,4.28,'325','54314',40,67);
INSERT INTO "communes" VALUES('77','Sancy-lès-Provins','29',330,269,18.21,'1173','54108',144,200);
INSERT INTO "communes" VALUES('77','Saint-Germain-sur-Morin','08',3565,2758,4.81,'571','54314',45,141);
INSERT INTO "communes" VALUES('77','Ormes-sur-Voulzie','01',830,822,12.22,'988','53847',54,117);
INSERT INTO "communes" VALUES('77','Bazoches-lès-Bray','01',827,768,22.68,'947','53777',50,129);
INSERT INTO "communes" VALUES('77','Le Vaudoué','03',748,719,17.16,'203','53730',66,123);
INSERT INTO "communes" VALUES('77','Cucharmoy','25',242,223,12.83,'930','53992',126,164);
INSERT INTO "communes" VALUES('77','Crouy-sur-Ourcq','15',1747,1588,19.42,'820','54545',52,165);
INSERT INTO "communes" VALUES('77','Cessoy-en-Montois','10',216,190,5.26,'900','53894',95,148);
INSERT INTO "communes" VALUES('77','Esbly','08',5759,5129,3.12,'529','54337',42,111);
INSERT INTO "communes" VALUES('77','<NAME>','27',159,152,8.73,'724','54059',89,130);
INSERT INTO "communes" VALUES('77','Noyen-sur-Seine','01',378,318,12.24,'1125','53836',55,64);
INSERT INTO "communes" VALUES('77','Jouarre','12',4188,3423,42.19,'881','54363',51,183);
INSERT INTO "communes" VALUES('77','Chelles','97',52779,45371,15.9,'281','54310',36,106);
INSERT INTO "communes" VALUES('77','Saint-Mard','09',3798,3441,6.26,'399','54487',93,166);
INSERT INTO "communes" VALUES('77','Crécy-la-Chapelle','08',4225,3822,15.78,'634','54288',45,157);
INSERT INTO "communes" VALUES('77','Torcy','35',22425,21602,6,'349','54278',37,106);
INSERT INTO "communes" VALUES('77','Mauperthuis','07',486,429,1.97,'779','54187',76,138);
INSERT INTO "communes" VALUES('77','Vaudoy-en-Brie','27',837,675,26.98,'826','54098',100,137);
INSERT INTO "communes" VALUES('77','Sognolles-en-Montois','10',427,345,10.12,'923','53902',76,161);
INSERT INTO "communes" VALUES('77','Pézarches','27',386,267,8.94,'726','54151',107,139);
INSERT INTO "communes" VALUES('77','Chalautre-la-Grande','29',689,609,18.33,'1247','53936',89,183);
INSERT INTO "communes" VALUES('77','Rupéreux','29',103,74,6.33,'1106','54040',151,179);
INSERT INTO "communes" VALUES('77','Dammarie-les-Lys','32',20722,20641,10.24,'331','53906',37,93);
INSERT INTO "communes" VALUES('77','Roissy-en-Brie','33',22321,19667,13.65,'350','54212',95,115);
INSERT INTO "communes" VALUES('77','Rozay-en-Brie','27',2741,2614,3.17,'691','54093',81,110);
INSERT INTO "communes" VALUES('77','Saint-Sauveur-sur-École','32',1088,1048,7.32,'235','53885',42,83);
INSERT INTO "communes" VALUES('77','Le Plessis-aux-Bois','37',240,172,3.41,'480','54448',98,136);
INSERT INTO "communes" VALUES('77','Fontainebleau','13',15107,15949,172.05,'406','53788',42,150);
INSERT INTO "communes" VALUES('77','Sainte-Colombe','25',1769,1695,8.16,'1029','53929',71,153);
INSERT INTO "communes" VALUES('77','Varennes-sur-Seine','20',3355,3152,10.02,'652','53749',47,83);
INSERT INTO "communes" VALUES('77','Lumigny-Nesles-Ormeaux','27',1515,1312,36.3,'683','54152',82,158);
INSERT INTO "communes" VALUES('77','Treuzy-Levelay','24',460,431,14.1,'530','53637',66,140);
INSERT INTO "communes" VALUES('77','Baby','01',85,66,4.12,'1117','53774',71,143);
INSERT INTO "communes" VALUES('77','Garentreville','24',101,79,6.35,'237','53596',107,144);
INSERT INTO "communes" VALUES('77','Mareuil-lès-Meaux','31',2194,1582,7.17,'581','54364',42,138);
INSERT INTO "communes" VALUES('77','Moussy-le-Neuf','09',2913,2386,14.81,'296','54515',92,157);
INSERT INTO "communes" VALUES('77','Trilbardou','31',639,519,7.95,'522','54380',40,96);
INSERT INTO "communes" VALUES('77','Meaux','98',50755,49348,14.95,'613','54400',39,107);
INSERT INTO "communes" VALUES('77','Bombon','22',908,906,15,'581','53969',78,122);
INSERT INTO "communes" VALUES('77','Thomery','21',3436,3200,3.71,'500','53787',42,96);
INSERT INTO "communes" VALUES('77','Courtomer','22',542,554,4.62,'629','54060',76,114);
INSERT INTO "communes" VALUES('77','Nemours','24',12745,12901,10.83,'397','53632',57,133);
INSERT INTO "communes" VALUES('77','Saint-Méry','22',389,366,9.94,'544','53975',73,113);
INSERT INTO "communes" VALUES('77','Saint-Rémy-la-Vanne','11',994,807,15.07,'996','54214',85,175);
INSERT INTO "communes" VALUES('77','Bray-sur-Seine','01',2397,2278,2.15,'1003','53794',54,82);
INSERT INTO "communes" VALUES('77','Mortcerf','27',1467,1306,17.84,'644','54211',74,140);
INSERT INTO "communes" VALUES('77','Courquetaine','28',200,173,7.82,'455','54087',75,106);
INSERT INTO "communes" VALUES('77','Rouvres','09',623,596,4.14,'422','54513',98,146);
INSERT INTO "communes" VALUES('77','Brie-Comte-Robert','02',16251,13404,19.93,'305','54103',47,104);
INSERT INTO "communes" VALUES('77','Bernay-Vilbert','27',837,755,16.92,'668','54084',77,114);
INSERT INTO "communes" VALUES('77','Fouju','22',545,523,7.81,'491','53984',84,99);
INSERT INTO "communes" VALUES('77','Bouleurs','08',1441,1226,8.25,'633','54312',65,156);
INSERT INTO "communes" VALUES('77','Othis','09',6471,6474,13.04,'378','54529',94,155);
INSERT INTO "communes" VALUES('77','Boissise-le-Roi','32',3572,3653,7.09,'264','53917',37,83);
INSERT INTO "communes" VALUES('77','Villeneuve-Saint-Denis','27',714,670,7.4,'507','54239',116,131);
INSERT INTO "communes" VALUES('77','Fontenailles','22',1060,887,27.44,'684','53948',92,130);
INSERT INTO "communes" VALUES('77','Marchémoret','09',554,332,7.04,'482','54501',98,152);
INSERT INTO "communes" VALUES('77','Mons-en-Montois','10',482,388,6.23,'900','53877',66,146);
INSERT INTO "communes" VALUES('77','Voulton','29',304,294,26.29,'1108','54021',143,181);
INSERT INTO "communes" VALUES('77','Tancrou','15',367,270,12.21,'791','54445',48,195);
INSERT INTO "communes" VALUES('77','Compans','37',711,723,5.3,'365','54438',57,101);
INSERT INTO "communes" VALUES('77','Vaires-sur-Marne','36',12293,11757,6.02,'335','54305',38,52);
INSERT INTO "communes" VALUES('77','Saint-Loup-de-Naud','25',894,856,10.95,'971','53929',71,151);
INSERT INTO "communes" VALUES('77','Lizines','10',168,158,5.77,'935','53919',105,154);
INSERT INTO "communes" VALUES('77','Moisenay','05',1194,1153,8.72,'444','53959',53,92);
INSERT INTO "communes" VALUES('77','Mousseaux-lès-Bray','01',692,616,8.67,'981','53793',54,132);
INSERT INTO "communes" VALUES('77','Penchard','17',1037,799,4.34,'581','54429',98,158);
INSERT INTO "communes" VALUES('77','Buthiers','03',755,652,19.67,'104','53653',70,122);
INSERT INTO "communes" VALUES('77','Voisenon','18',1046,1022,3.36,'364','53968',69,96);
INSERT INTO "communes" VALUES('77','Clos-Fontaine','22',257,271,5.97,'755','54008',103,134);
INSERT INTO "communes" VALUES('77','Seine-Port','34',1962,1754,8.53,'241','53952',37,85);
INSERT INTO "communes" VALUES('77','Gironville','04',179,172,13.71,'213','53539',89,114);
INSERT INTO "communes" VALUES('77','Châtres','28',579,551,15.13,'525','54123',89,117);
INSERT INTO "communes" VALUES('77','Ville-Saint-Jacques','21',720,672,10.74,'624','53715',48,118);
INSERT INTO "communes" VALUES('77','Montereau-Fault-Yonne','20',16681,17615,9.1,'679','53759',47,121);
INSERT INTO "communes" VALUES('77','Châtillon-la-Borde','05',218,204,7.25,'554','53922',86,116);
INSERT INTO "communes" VALUES('77','Boisdon','23',92,78,4.3,'987','54094',143,164);
INSERT INTO "communes" VALUES('77','Hondevilliers','26',240,215,5.53,'1081','54333',108,211);
INSERT INTO "communes" VALUES('77','Vanvillé','23',169,183,7.53,'856','53950',134,153);
INSERT INTO "communes" VALUES('77','Quiers','22',678,583,11.91,'704','54008',108,126);
INSERT INTO "communes" VALUES('77','Bailly-Romainvilliers','43',6516,3395,8.01,'541','54274',125,140);
INSERT INTO "communes" VALUES('77','Choisy-en-Brie','11',1347,1152,25.03,'978','54176',99,164);
INSERT INTO "communes" VALUES('77','Chaumes-en-Brie','28',3046,2743,20.07,'563','54075',67,116);
INSERT INTO "communes" VALUES('77','Combs-la-Ville','41',21554,20950,14.48,'252','54069',43,91);
INSERT INTO "communes" VALUES('77','Jossigny','43',629,530,9.62,'463','54264',107,149);
INSERT INTO "communes" VALUES('77','Fresnes-sur-Marne','37',654,441,7.46,'450','54377',38,88);
INSERT INTO "communes" VALUES('77','Vulaines-sur-Seine','13',2594,2065,4.42,'478','53812',42,104);
INSERT INTO "communes" VALUES('77','Rouilly','25',486,428,7.62,'1056','53982',94,170);
INSERT INTO "communes" VALUES('77','Pontault-Combault','40',35561,32956,13.64,'299','54220',87,113);
INSERT INTO "communes" VALUES('77','Salins','20',1022,918,10.55,'762','53802',59,138);
INSERT INTO "communes" VALUES('77','Balloy','01',331,357,13.22,'901','53776',50,118);
INSERT INTO "communes" VALUES('77','Villemareuil','08',396,355,10.67,'707','54358',115,173);
INSERT INTO "communes" VALUES('77','Burcy','03',148,178,7.03,'206','53599',106,144);
INSERT INTO "communes" VALUES('77','Guignes','22',3365,2410,5.68,'514','54040',73,107);
INSERT INTO "communes" VALUES('77','Dammartin-en-Goële','09',8052,7802,8.97,'383','54505',84,180);
INSERT INTO "communes" VALUES('77','Pamfou','05',930,837,10.41,'594','53846',82,128);
INSERT INTO "communes" VALUES('77','Montarlot','21',216,227,5.21,'571','53722',55,107);
INSERT INTO "communes" VALUES('77','Saint-Cyr-sur-Morin','26',1902,1684,19.1,'941','54340',55,198);
INSERT INTO "communes" VALUES('77','Melz-sur-Seine','29',375,339,18.5,'1202','53886',58,172);
INSERT INTO "communes" VALUES('77','Villevaudé','06',1731,1602,9.98,'350','54353',56,132);
INSERT INTO "communes" VALUES('77','Flagy','16',636,534,7.21,'650','53681',69,151);
INSERT INTO "communes" VALUES('77','Saint-Siméon','11',866,735,12.27,'963','54221',76,161);
INSERT INTO "communes" VALUES('77','Ichy','04',164,172,7.8,'234','53559',97,114);
INSERT INTO "communes" VALUES('77','Jablines','43',639,576,8.04,'473','54353',37,78);
INSERT INTO "communes" VALUES('77','Rumont','03',125,124,6.61,'180','53628',106,142);
INSERT INTO "communes" VALUES('77','Boutigny','08',875,803,9.88,'658','54356',60,171);
INSERT INTO "communes" VALUES('77','Guercheville','03',285,232,9.21,'246','53622',109,122);
INSERT INTO "communes" VALUES('77','Fontaine-Fourches','01',596,509,11.84,'1173','53793',61,142);
INSERT INTO "communes" VALUES('77','Donnemarie-Dontilly','10',2801,2628,12.07,'882','53865',68,139);
INSERT INTO "communes" VALUES('77','Sancy','08',384,306,5.48,'692','54318',118,164);
INSERT INTO "communes" VALUES('77','Saint-Ouen-en-Brie','22',853,704,5.69,'646','53953',91,124);
INSERT INTO "communes" VALUES('77','Diant','16',205,189,10.94,'729','53646',93,155);
INSERT INTO "communes" VALUES('77','Boissettes','42',464,427,1.54,'302','53911',37,78);
INSERT INTO "communes" VALUES('77','Chalmaison','01',736,644,10.04,'1015','53868',59,154);
INSERT INTO "communes" VALUES('77','Maisoncelles-en-Brie','07',852,683,13.57,'727','54293',119,157);
INSERT INTO "communes" VALUES('77','Crégy-lès-Meaux','17',4292,3676,3.67,'602','54421',45,122);
INSERT INTO "communes" VALUES('77','Saint-Martin-des-Champs','11',715,551,10.42,'1109','54198',112,186);
INSERT INTO "communes" VALUES('77','Saint-Augustin','07',1703,1412,10.37,'770','54205',69,152);
INSERT INTO "communes" VALUES('77','Courpalay','27',1402,1267,14.56,'692','54054',79,122);
INSERT INTO "communes" VALUES('77','Saints','07',1281,1173,20.04,'793','54177',79,156);
INSERT INTO "communes" VALUES('77','Épisy','21',514,491,7.41,'499','53705',50,96);
INSERT INTO "communes" VALUES('77','Saint-Mesmes','37',561,462,7.69,'399','54427',57,118);
INSERT INTO "communes" VALUES('77','Maisoncelles-en-Gâtinais','04',138,112,8.58,'322','53542',101,118);
INSERT INTO "communes" VALUES('77','Charmentray','37',261,234,4.67,'488','54384',40,95);
INSERT INTO "communes" VALUES('77','Marêts','29',153,135,5.38,'1086','54079',136,170);
INSERT INTO "communes" VALUES('77','Esmans','20',886,874,17.83,'711','53720',50,128);
INSERT INTO "communes" VALUES('77','Coulommiers','07',14544,13844,10.93,'830','54240',66,156);
INSERT INTO "communes" VALUES('77','Montolivet','11',245,203,16.37,'1226','54255',153,203);
INSERT INTO "communes" VALUES('77','Faremoutiers','07',2434,2285,10.93,'733','54222',89,132);
INSERT INTO "communes" VALUES('77','La Brosse-Montceaux','20',725,599,12,'759','53717',50,137);
INSERT INTO "communes" VALUES('77','Forges','20',414,345,13.32,'694','53799',97,123);
INSERT INTO "communes" VALUES('77','La Ferté-Gaucher','11',4424,4147,17.32,'1076','54203',107,188);
INSERT INTO "communes" VALUES('77','Fleury-en-Bière','32',640,545,13.87,'236','53831',60,132);
INSERT INTO "communes" VALUES('77','Villenauxe-la-Petite','01',487,372,20.81,'1081','53786',56,138);
INSERT INTO "communes" VALUES('77','Aulnoy','07',386,332,14.25,'844','54268',84,149);
INSERT INTO "communes" VALUES('77','Lescherolles','11',481,421,11.01,'1121','54180',116,192);
INSERT INTO "communes" VALUES('77','Bellot','26',809,703,16.36,'1091','54285',83,204);
INSERT INTO "communes" VALUES('77','Champagne-sur-Seine','21',6485,6629,7.28,'516','53775',42,111);
INSERT INTO "communes" VALUES('77','Férolles-Attilly','02',1123,1032,12.76,'326','54147',72,107);
INSERT INTO "communes" VALUES('77','Meilleray','11',501,398,7.77,'1211','54210',126,184);
INSERT INTO "communes" VALUES('77','Vaux-le-Pénil','18',10866,10666,11.64,'384','53918',37,96);
INSERT INTO "communes" VALUES('77','Marles-en-Brie','27',1433,1294,12.78,'603','54142',102,114);
INSERT INTO "communes" VALUES('77','Beauchery-Saint-Martin','29',410,363,27.96,'1185','54017',138,172);
INSERT INTO "communes" VALUES('77','Sigy','10',47,70,4.73,'938','53865',59,132);
INSERT INTO "communes" VALUES('77','Cesson','42',8572,7705,6.98,'294','53962',62,86);
INSERT INTO "communes" VALUES('77','Chailly-en-Bière','32',1997,2128,13.08,'301','53852',76,93);
INSERT INTO "communes" VALUES('77','Vincy-Manœuvre','15',212,193,4.96,'696','54532',82,146);
INSERT INTO "communes" VALUES('77','Saint-Germain-sur-École','32',359,328,2.53,'192','53861',45,80);
INSERT INTO "communes" VALUES('77','Léchelle','29',558,524,22.05,'1169','53975',97,172);
INSERT INTO "communes" VALUES('77','Barbizon','32',1346,1493,5.27,'298','53829',75,93);
INSERT INTO "communes" VALUES('77','Crèvecœur-en-Brie','27',301,301,9.19,'635','54171',109,122);
INSERT INTO "communes" VALUES('77','Vaux-sur-Lunain','16',200,193,8.47,'666','53586',102,152);
INSERT INTO "communes" VALUES('77','Coutençon','10',285,229,6.23,'733','53857',111,138);
INSERT INTO "communes" VALUES('77','Château-Landon','04',3112,3361,29.35,'404','53499',66,116);
INSERT INTO "communes" VALUES('77','Villiers-en-Bière','32',215,196,10.76,'292','53882',60,92);
INSERT INTO "communes" VALUES('77','Pringy','32',2498,2318,4.1,'245','53912',40,79);
INSERT INTO "communes" VALUES('77','Ozoir-la-Ferrière','33',20268,20707,15.58,'381','54188',94,122);
INSERT INTO "communes" VALUES('77','Tournan-en-Brie','28',8054,7557,15.47,'480','54156',86,116);
INSERT INTO "communes" VALUES('77','Saint-Just-en-Brie','23',244,196,7.36,'866','54015',123,154);
INSERT INTO "communes" VALUES('77','Boulancourt','03',366,325,6.44,'112','53621',72,117);
INSERT INTO "communes" VALUES('77','Noisiel','39',15660,15506,4.35,'325','54283',38,109);
INSERT INTO "communes" VALUES('77','Chevrainvilliers','24',224,227,8.95,'309','53606',85,118);
INSERT INTO "communes" VALUES('77','Rampillon','23',795,605,23.12,'811','53944',120,144);
INSERT INTO "communes" VALUES('77','Barcy','17',236,213,6.95,'605','54465',86,160);
INSERT INTO "communes" VALUES('77','Villuis','01',256,223,9.26,'1135','53790',62,147);
INSERT INTO "communes" VALUES('77','Achères-la-Forêt','03',1242,1046,12.6,'254','53717',73,126);
INSERT INTO "communes" VALUES('77','Arbonne-la-Forêt','32',1024,946,15.08,'254','53793',64,129);
INSERT INTO "communes" VALUES('77','<NAME>','27',1609,1457,12.43,'598','54172',108,121);
INSERT INTO "communes" VALUES('77','Montigny-Lencoup','10',1275,1224,20.37,'808','53837',67,149);
INSERT INTO "communes" VALUES('77','Mondreville','04',364,353,20.27,'303','53492',86,111);
INSERT INTO "communes" VALUES('77','Saint-Soupplets','09',3249,2890,13.78,'523','54487',88,179);
INSERT INTO "communes" VALUES('77','Méry-sur-Marne','12',625,496,5.77,'961','54408',52,196);
INSERT INTO "communes" VALUES('77','Giremoutiers','07',146,107,6.01,'770','54270',120,154);
INSERT INTO "communes" VALUES('77','Bagneaux-sur-Loing','24',1704,1594,5.26,'409','53590',60,126);
INSERT INTO "communes" VALUES('77','Héricy','13',2548,2519,10.68,'474','53829',42,103);
INSERT INTO "communes" VALUES('77','Messy','37',1089,843,10.32,'404','54408',49,98);
INSERT INTO "communes" VALUES('77','Cerneux','29',305,278,22.1,'1120','54104',132,192);
INSERT INTO "communes" VALUES('77','Thieux','09',804,681,12.07,'368','54456',60,107);
INSERT INTO "communes" VALUES('77','Mouroux','07',4889,4199,16.77,'779','54247',63,156);
INSERT INTO "communes" VALUES('77','Argentières','22',388,355,2.57,'590','54060',73,107);
INSERT INTO "communes" VALUES('77','<NAME>','19',3095,2759,5.85,'363','53899',36,98);
INSERT INTO "communes" VALUES('77','Souppes-sur-Loing','04',5561,5346,27.63,'443','53537',62,130);
INSERT INTO "communes" VALUES('77','Frétoy','23',155,113,6.43,'957','54116',125,162);
INSERT INTO "communes" VALUES('77','Signy-Signets','12',602,562,13.44,'812','54364',77,172);
INSERT INTO "communes" VALUES('77','Lognes','39',14560,14212,3.37,'324','54262',70,109);
INSERT INTO "communes" VALUES('77','Favières','28',1106,937,28.27,'487','54182',92,126);
INSERT INTO "communes" VALUES('77','Saint-Brice','25',693,719,11.46,'1098','53964',91,178);
INSERT INTO "communes" VALUES('77','Bougligny','04',721,646,16.31,'356','53550',98,121);
INSERT INTO "communes" VALUES('77','Changis-sur-Marne','12',1062,944,6.98,'758','54398',48,107);
INSERT INTO "communes" VALUES('77','<NAME>','03',2596,2781,15.91,'261','53687',109,140);
INSERT INTO "communes" VALUES('77','Courcelles-en-Bassée','20',228,204,10.79,'798','53789',47,136);
INSERT INTO "communes" VALUES('77','Bannost-Villegagnon','23',636,482,19.41,'950','54087',125,166);
INSERT INTO "communes" VALUES('77','Solers','02',1253,1243,6.28,'423','54064',62,102);
INSERT INTO "communes" VALUES('77','Villeneuve-sur-Bellot','26',1141,1068,9.52,'1117','54292',83,203);
INSERT INTO "communes" VALUES('77','Évry-Grégy-sur-Yerre','02',2399,2041,19.12,'331','54061',50,97);
INSERT INTO "communes" VALUES('77','Cuisy','09',442,374,3.33,'484','54466',102,185);
INSERT INTO "communes" VALUES('77','Égligny','10',317,275,16.58,'871','53809',50,135);
INSERT INTO "communes" VALUES('77','Chevru','11',1088,856,13.94,'954','54151',121,165);
INSERT INTO "communes" VALUES('77','Fromont','03',218,157,10.72,'186','53617',107,142);
INSERT INTO "communes" VALUES('77','Chamigny','12',1264,1145,14.22,'905','54415',50,198);
INSERT INTO "communes" VALUES('77','Villebéon','16',457,406,16.45,'670','53565',103,152);
INSERT INTO "communes" VALUES('77','Poincy','17',709,697,6.24,'665','54411',41,112);
INSERT INTO "communes" VALUES('77','Moret-sur-Loing','21',4330,4403,4.94,'531','53748',45,98);
INSERT INTO "communes" VALUES('77','Germigny-sous-Coulombs','15',199,170,6.53,'914','54516',83,196);
INSERT INTO "communes" VALUES('77','Provins','25',12301,11684,14.72,'1070','53954',86,168);
INSERT INTO "communes" VALUES('77','Ferrières-en-Brie','35',2198,1660,6.75,'409','54246',84,126);
INSERT INTO "communes" VALUES('77','Bransles','04',505,467,13.85,'553','53502',77,120);
INSERT INTO "communes" VALUES('77','Réau','41',1096,704,13.32,'319','54012',82,94);
INSERT INTO "communes" VALUES('77','<NAME>','23',951,780,15.44,'706','53901',104,136);
INSERT INTO "communes" VALUES('77','Misy-sur-Yonne','20',974,750,6.25,'837','53733',53,104);
INSERT INTO "communes" VALUES('77','Pécy','23',821,675,21.07,'825','54062',109,145);
INSERT INTO "communes" VALUES('77','<NAME>','27',545,374,5.59,'774','54130',93,126);
INSERT INTO "communes" VALUES('77','Andrezel','22',303,365,8.08,'530','54012',90,103);
INSERT INTO "communes" VALUES('77','Condé-Sainte-Libiaire','08',1409,1346,2.15,'550','54331',41,91);
INSERT INTO "communes" VALUES('77','Villiers-sur-Morin','08',1849,1527,6.28,'603','54289',44,134);
INSERT INTO "communes" VALUES('77','Villenoy','31',4153,3541,7.37,'583','54379',42,85);
INSERT INTO "communes" VALUES('77','Everly','01',591,569,8.76,'1014','53851',54,81);
INSERT INTO "communes" VALUES('77','Recloses','03',699,599,9.35,'339','53720',72,133);
INSERT INTO "communes" VALUES('77','La Chapelle-Saint-Sulpice','25',213,171,6.37,'935','53949',105,151);
INSERT INTO "communes" VALUES('77','<NAME>-sous-Jouarre','12',9061,8586,10.06,'881','54388',50,181);
INSERT INTO "communes" VALUES('77','Vaucourtois','08',209,202,4.68,'683','54329',122,169);
INSERT INTO "communes" VALUES('77','Reuil-en-Brie','12',842,823,5.92,'901','54401',51,185);
INSERT INTO "communes" VALUES('77','Thorigny-sur-Marne','43',9220,9031,5.17,'417','54317',38,122);
INSERT INTO "communes" VALUES('77','Bussy-Saint-Georges','35',23341,9205,13.39,'401','54269',63,130);
INSERT INTO "communes" VALUES('77','Poigny','25',499,408,6.02,'1051','53932',81,164);
INSERT INTO "communes" VALUES('77','Bourron-Marlotte','24',2712,2736,11.26,'412','53713',52,127);
INSERT INTO "communes" VALUES('77','Montigny-le-Guesdier','01',301,285,7.89,'1019','53760',64,136);
INSERT INTO "communes" VALUES('77','Montereau-sur-le-Jard','18',563,569,11.29,'390','53996',79,98);
INSERT INTO "communes" VALUES('77','Vulaines-lès-Provins','25',65,67,10.75,'981','53956',100,154);
INSERT INTO "communes" VALUES('77','Villiers-sur-Seine','01',308,316,11.37,'1154','53839',56,66);
INSERT INTO "communes" VALUES('77','Saint-Denis-lès-Rebais','26',951,780,15.12,'971','54262',90,177);
INSERT INTO "communes" VALUES('77','Gressy','37',912,815,3.34,'374','54405',51,72);
INSERT INTO "communes" VALUES('77','Grisy-sur-Seine','01',98,102,6.57,'1091','53821',54,67);
INSERT INTO "communes" VALUES('77','Fontains','23',263,247,14.36,'738','53918',102,139);
INSERT INTO "communes" VALUES('77','Mouy-sur-Seine','01',364,381,8.62,'1002','53801',52,58);
INSERT INTO "communes" VALUES('77','Montmachoux','16',231,220,4.43,'729','53687',96,155);
INSERT INTO "communes" VALUES('77','Cannes-Écluse','20',2566,2201,8.63,'724','53738',47,108);
INSERT INTO "communes" VALUES('77','Montcourt-Fromonville','24',2090,2230,8.17,'408','53673',55,85);
INSERT INTO "communes" VALUES('77','Longperrier','09',2454,2068,4.63,'364','54501',89,172);
INSERT INTO "communes" VALUES('77','Boissy-aux-Cailles','03',315,271,16.4,'185','53688',71,123);
INSERT INTO "communes" VALUES('77','Saint-Fiacre','08',384,382,2.75,'686','54358',97,168);
INSERT INTO "communes" VALUES('77','Marolles-en-Brie','11',401,355,9.05,'920','54196',99,161);
INSERT INTO "communes" VALUES('77','Échouboulains','05',512,515,20.91,'677','53849',94,131);
INSERT INTO "communes" VALUES('77','Voulangis','08',1537,1263,9.58,'622','54280',45,136);
INSERT INTO "communes" VALUES('77','Marolles-sur-Seine','20',1600,1357,20.19,'772','53762',46,70);
INSERT INTO "communes" VALUES('77','Grisy-Suisnes','02',2428,1986,18.34,'367','54094',56,106);
INSERT INTO "communes" VALUES('77','Lissy','02',190,171,6.85,'400','54030',87,97);
INSERT INTO "communes" VALUES('77','Fontenay-Trésigny','27',5135,4619,22.12,'592','54120',75,123);
INSERT INTO "communes" VALUES('77','Nandy','34',5814,6156,8.56,'255','53982',37,87);
INSERT INTO "communes" VALUES('77','Amillis','11',774,686,20.06,'880','54157',102,163);
INSERT INTO "communes" VALUES('77','Coulombs-en-Valois','15',611,561,22.41,'877','54522',62,198);
INSERT INTO "communes" VALUES('77','Chaintreaux','04',902,785,23.92,'537','53555',88,133);
INSERT INTO "communes" VALUES('77','Blandy','05',760,721,13.99,'495','53962',59,104);
INSERT INTO "communes" VALUES('77','<NAME>','06',1183,1067,6.7,'325','54349',49,135);
INSERT INTO "communes" VALUES('77','Saâcy-sur-Marne','12',1747,1664,13.8,'972','54403',52,207);
INSERT INTO "communes" VALUES('77','Beautheil','07',712,565,18.37,'835','54182',89,157);
INSERT INTO "communes" VALUES('77','Melun','99',39589,35660,8.04,'358','53933',37,102);
INSERT INTO "communes" VALUES('77','Gurcy-le-Châtel','10',566,383,12.59,'834','53857',94,149);
INSERT INTO "communes" VALUES('77','Gesvres-le-Chapitre','09',169,143,4.23,'572','54494',95,118);
INSERT INTO "communes" VALUES('77','Savigny-le-Temple','34',28599,22331,11.97,'274','53973',58,91);
INSERT INTO "communes" VALUES('77','Serris','43',7595,2320,5.65,'500','54273',123,133);
INSERT INTO "communes" VALUES('77','Leudon-en-Brie','11',149,141,4.24,'1037','54148',155,173);
INSERT INTO "communes" VALUES('77','Saint-Mars-Vieux-Maisons','11',268,185,19.02,'1092','54158',130,183);
INSERT INTO "communes" VALUES('77','Samoreau','13',2317,2155,5.65,'464','53806',41,147);
INSERT INTO "communes" VALUES('77','Chartronges','11',279,271,8.2,'1036','54163',147,167);
INSERT INTO "communes" VALUES('77','Le Mée-sur-Seine','42',20609,21201,5.34,'328','53931',37,80);
INSERT INTO "communes" VALUES('77','Bussières','12',461,425,8.81,'1000','54359',105,203);
INSERT INTO "communes" VALUES('77','Collégien','35',3145,2985,4.27,'374','54263',82,116);
INSERT INTO "communes" VALUES('77','Moussy-le-Vieux','09',1014,1012,7.19,'321','54496',81,131);
INSERT INTO "communes" VALUES('77','La Grande-Paroisse','20',2591,2489,29.07,'629','53763',45,147);
INSERT INTO "communes" VALUES('77','Yèbles','22',659,560,11.68,'482','54042',62,106);
INSERT INTO "communes" VALUES('77','Nonville','24',622,558,11.43,'507','53648',57,100);
INSERT INTO "communes" VALUES('77','Veneux-les-Sablons','21',4799,4616,4.03,'507','53753',42,93);
INSERT INTO "communes" VALUES('77','Liverdy-en-Brie','28',1278,1033,9.12,'487','54111',73,109);
INSERT INTO "communes" VALUES('77','Barbey','20',193,151,4.32,'798','53740',50,59);
INSERT INTO "communes" VALUES('77','<NAME>','04',337,355,6.16,'409','53559',62,123);
INSERT INTO "communes" VALUES('77','Montigny-sur-Loing','21',2791,2796,9.2,'451','53709',49,136);
INSERT INTO "communes" VALUES('77','Saint-Barthélemy','11',386,361,14.99,'1137','54240',159,203);
INSERT INTO "communes" VALUES('77','Puisieux','15',313,283,9.21,'644','54517',70,133);
INSERT INTO "communes" VALUES('77','Livry-sur-Seine','19',1919,1878,4.97,'387','53901',37,85);
INSERT INTO "communes" VALUES('77','Coupvray','43',2705,2706,8.09,'508','54324',41,132);
INSERT INTO "communes" VALUES('77','Douy-la-Ramée','15',290,234,7.97,'606','54518',73,127);
INSERT INTO "communes" VALUES('77','Dormelles','21',882,789,13.02,'627','53684',62,136);
INSERT INTO "communes" VALUES('77','Saint-Fargeau-Ponthierry','32',12462,11245,16.57,'231','53925',37,86);
INSERT INTO "communes" VALUES('77','Lizy-sur-Ourcq','15',3633,3377,11.16,'762','54472',45,136);
INSERT INTO "communes" VALUES('77','Saint-Pathus','09',5723,4828,5.36,'515','54523',89,113);
INSERT INTO "communes" VALUES('77','Trocy-en-Multien','15',274,225,7.46,'696','54492',65,141);
INSERT INTO "communes" VALUES('77','Grandpuits-Bailly-Carrois','22',992,949,24.5,'699','53982',98,137);
INSERT INTO "communes" VALUES('77','Charny','37',1220,1148,12.54,'473','54413',65,120);
INSERT INTO "communes" VALUES('77','Bezalles','23',229,162,2.66,'1007','54087',144,169);
INSERT INTO "communes" VALUES('77','Monthyon','09',1642,1330,12.11,'545','54453',89,168);
INSERT INTO "communes" VALUES('77','Citry','12',797,682,5.04,'1002','54410',54,191);
INSERT INTO "communes" VALUES('77','Ozouer-le-Voulgis','28',1809,1544,11.3,'487','54068',62,104);
INSERT INTO "communes" VALUES('77','Étrépilly','15',850,809,13.18,'661','54484',66,140);
INSERT INTO "communes" VALUES('77','Mitry-Mory','37',18499,16863,29.95,'311','54427',53,106);
INSERT INTO "communes" VALUES('77','Iverny','37',588,488,1.76,'502','54445',94,123);
INSERT INTO "communes" VALUES('77','Isles-lès-Villenoy','31',910,687,6.97,'544','54346',40,72);
INSERT INTO "communes" VALUES('77','Villeneuve-sous-Dammartin','09',625,533,7.56,'337','54483',72,116);
INSERT INTO "communes" VALUES('77','Nanteuil-sur-Marne','12',474,456,1.25,'983','54421',53,188);
INSERT INTO "communes" VALUES('77','Samois-sur-Seine','13',2097,2243,6.33,'459','53836',41,115);
INSERT INTO "communes" VALUES('77','<NAME>','15',269,262,8.2,'726','54509',89,149);
INSERT INTO "communes" VALUES('77','Vieux-Champagne','23',180,190,8.89,'890','53977',126,162);
INSERT INTO "communes" VALUES('77','Pierre-Levée','12',466,354,12.93,'780','54333',142,172);
INSERT INTO "communes" VALUES('77','Saint-Ouen-sur-Morin','26',559,537,3.79,'954','54338',61,187);
INSERT INTO "communes" VALUES('77','Châteaubleau','23',330,263,3.4,'857','53987',120,150);
INSERT INTO "communes" VALUES('77','Sivry-Courtry','05',1016,983,22.47,'465','53920',73,104);
INSERT INTO "communes" VALUES('77','Luzancy','12',1052,814,6.58,'945','54415',52,167);
INSERT INTO "communes" VALUES('77','Rubelles','18',1885,1650,3.91,'382','53955',48,84);
INSERT INTO "communes" VALUES('77','Chessy','43',4298,1671,5.74,'474','54311',37,130);
INSERT INTO "communes" VALUES('77','Montévrain','43',8675,3158,5.44,'454','54306',38,128);
INSERT INTO "communes" VALUES('77','Le Châtelet-en-Brie','05',4416,4529,22.71,'503','53892',57,113);
INSERT INTO "communes" VALUES('77','Luisetaines','10',233,207,5.04,'937','53853',54,125);
INSERT INTO "communes" VALUES('77','Mormant','22',4387,4367,16.6,'615','54008',100,122);
INSERT INTO "communes" VALUES('77','Verdelot','26',726,653,25.6,'1144','54306',91,216);
INSERT INTO "communes" VALUES('77','Machault','05',722,634,16.28,'549','53838',72,117);
INSERT INTO "communes" VALUES('77','May-en-Multien','15',883,797,19.15,'761','54524',52,149);
INSERT INTO "communes" VALUES('77','Villeneuve-le-Comte','27',1778,1680,19.09,'547','54237',116,133);
INSERT INTO "communes" VALUES('77','Villeparisis','06',24122,21294,8.29,'300','54381',53,133);
INSERT INTO "communes" VALUES('77','Arville','04',132,121,11.31,'235','53543',97,110);
INSERT INTO "communes" VALUES('77','<NAME>','23',667,651,29.43,'820','53993',106,144);
INSERT INTO "communes" VALUES('77','Boitron','26',393,335,5.14,'1026','54331',67,196);
INSERT INTO "communes" VALUES('77','Écuelles','21',2479,2461,11.81,'539','53727',45,103);
INSERT INTO "communes" VALUES('77','Courtry','06',6156,6036,4.16,'296','54353',53,130);
INSERT INTO "communes" VALUES('77','Saint-Martin-du-Boschet','29',302,187,17.06,'1213','54151',143,201);
INSERT INTO "communes" VALUES('77','Coubert','02',1821,1276,8.36,'400','54079',78,106);
INSERT INTO "communes" VALUES('77','<NAME>','09',251,234,3.53,'497','54454',96,130);
INSERT INTO "communes" VALUES('77','Verneuil-l''Étang','22',3167,3129,7.81,'554','54049',77,119);
INSERT INTO "communes" VALUES('77','Chailly-en-Brie','07',1449,1179,17.36,'874','54211',72,159);
INSERT INTO "communes" VALUES('77','Fublaines','31',1186,1011,5.48,'666','54375',44,141);
INSERT INTO "communes" VALUES('77','Louan-Villegruis-Fontaine','29',514,418,38.05,'1268','54028',125,207);
INSERT INTO "communes" VALUES('77','Chenoise','25',1290,1201,35.85,'953','54017',119,169);
INSERT INTO "communes" VALUES('77','Villiers-sous-Grez','03',750,763,12.25,'346','53688',65,133);
INSERT INTO "communes" VALUES('77','Bussy-Saint-Martin','35',724,573,2.64,'393','54277',54,111);
INSERT INTO "communes" VALUES('77','Saint-Jean-les-Deux-Jumeaux','12',1107,1226,13.26,'757','54390',48,173);
INSERT INTO "communes" VALUES('77','Croissy-Beaubourg','35',2010,2230,11.63,'359','54254',87,116);
INSERT INTO "communes" VALUES('77','Rebais','26',2151,2019,11.05,'995','54275',119,187);
INSERT INTO "communes" VALUES('77','Maison-Rouge','23',877,693,13.91,'905','53954',105,155);
INSERT INTO "communes" VALUES('77','<NAME>','01',214,222,7.84,'837','53765',49,86);
INSERT INTO "communes" VALUES('77','Nantouillet','37',267,265,5.15,'407','54446',63,118);
INSERT INTO "communes" VALUES('77','Ussy-sur-Marne','12',979,841,13.93,'818','54395',50,166);
INSERT INTO "communes" VALUES('77','Lésigny','02',7442,7647,10.13,'310','54160',69,121);
INSERT INTO "communes" VALUES('77','Villecerf','21',738,738,10.94,'567','53697',60,139);
INSERT INTO "communes" VALUES('77','Nanteau-sur-Essonne','03',427,394,12.92,'89','53685',67,127);
INSERT INTO "communes" VALUES('77','Féricy','05',593,515,9.33,'516','53844',52,109);
INSERT INTO "communes" VALUES('77','Vinantes','09',348,287,5.27,'442','54456',80,122);
INSERT INTO "communes" VALUES('77','Villiers-Saint-Georges','29',1213,1030,33.27,'1189','54054',140,191);
INSERT INTO "communes" VALUES('77','Saint-Martin-en-Bière','32',807,754,7.81,'256','53819',64,90);
INSERT INTO "communes" VALUES('78','Chanteloup-les-Vignes','39',9626,9535,3.33,'-340','54420',38,171);
INSERT INTO "communes" VALUES('78','Vieille-Église-en-Yvelines','18',811,742,9.6,'-512','54077',161,177);
INSERT INTO "communes" VALUES('78','Sainte-Mesme','19',942,863,8.16,'-420','53923',96,162);
INSERT INTO "communes" VALUES('78','Chambourcy','21',5872,5071,7.87,'-329','54340',64,176);
INSERT INTO "communes" VALUES('78','Chaufour-lès-Bonnières','02',422,413,3.02,'-948','54462',133,158);
INSERT INTO "communes" VALUES('78','Le Tertre-Saint-Denis','02',114,101,2.91,'-812','54376',123,168);
INSERT INTO "communes" VALUES('78','Bréviaires','18',1261,1025,19.55,'-581','54120',139,186);
INSERT INTO "communes" VALUES('78','Boissy-Mauvoisin','02',624,524,5.11,'-843','54403',70,163);
INSERT INTO "communes" VALUES('78','Condé-sur-Vesgre','08',1139,1043,10.71,'-751','54157',105,175);
INSERT INTO "communes" VALUES('78','Boinville-en-Mantois','07',312,295,4.93,'-644','54367',56,145);
INSERT INTO "communes" VALUES('78','Orcemont','18',847,827,10.49,'-584','53987',142,169);
INSERT INTO "communes" VALUES('78','Rennemoulin','22',111,128,2.22,'-326','54260',86,125);
INSERT INTO "communes" VALUES('78','Adainville','08',759,824,10.16,'-760','54137',105,184);
INSERT INTO "communes" VALUES('78','Oinville-sur-Montcient','10',1115,1131,3.87,'-541','54475',36,135);
INSERT INTO "communes" VALUES('78','Bazainville','08',1425,1191,12.03,'-743','54227',99,183);
INSERT INTO "communes" VALUES('78','Meulan-en-Yvelines','14',8855,8402,3.46,'-478','54451',18,117);
INSERT INTO "communes" VALUES('78','Rambouillet','18',26159,24789,35.19,'-563','54049',140,177);
INSERT INTO "communes" VALUES('78','Marcq','15',707,596,4.72,'-575','54288',117,172);
INSERT INTO "communes" VALUES('78','Montesson','30',15193,13754,7.36,'-208','54343',23,56);
INSERT INTO "communes" VALUES('78','<NAME>','08',31,29,4.28,'-823','54110',134,174);
INSERT INTO "communes" VALUES('78','<NAME>','30',16249,15928,5,'-227','54327',26,47);
INSERT INTO "communes" VALUES('78','Maisons-Laffitte','11',22817,21907,6.75,'-213','54385',22,57);
INSERT INTO "communes" VALUES('78','Bailly','22',3914,4091,6.53,'-288','54268',92,182);
INSERT INTO "communes" VALUES('78','Maurepas','34',18679,19567,8.32,'-434','54181',87,178);
INSERT INTO "communes" VALUES('78','Tessancourt-sur-Aubette','14',947,916,4.36,'-462','54472',25,140);
INSERT INTO "communes" VALUES('78','Saint-Léger-en-Yvelines','18',1484,1315,34.52,'-634','54135',112,186);
INSERT INTO "communes" VALUES('78','Montchauvet','08',288,254,7.98,'-785','54324',62,131);
INSERT INTO "communes" VALUES('78','Béhoust','15',476,374,5.34,'-684','54255',101,149);
INSERT INTO "communes" VALUES('78','<NAME>','07',618,607,3,'-561','54383',17,134);
INSERT INTO "communes" VALUES('78','Feucherolles','22',2908,2813,12.85,'-404','54303',85,185);
INSERT INTO "communes" VALUES('78','Goussonville','07',617,557,4.66,'-635','54355',59,138);
INSERT INTO "communes" VALUES('78','Orsonville','19',332,240,9.61,'-557','53864',140,159);
INSERT INTO "communes" VALUES('78','Villiers-le-Mahieu','15',704,615,6.77,'-627','54289',94,169);
INSERT INTO "communes" VALUES('78','Galluis','15',1142,1034,4.53,'-603','54217',85,183);
INSERT INTO "communes" VALUES('78','Moisson','02',924,794,9.7,'-744','54527',11,43);
INSERT INTO "communes" VALUES('78','Dannemarie','08',242,261,3.44,'-811','54180',102,134);
INSERT INTO "communes" VALUES('78','Brueil-en-Vexin','10',687,532,7.34,'-574','54479',62,192);
INSERT INTO "communes" VALUES('78','Allainville','19',302,293,16.3,'-489','53841',145,159);
INSERT INTO "communes" VALUES('78','Cernay-la-Ville','05',1643,1728,9.77,'-402','54081',111,178);
INSERT INTO "communes" VALUES('78','<NAME>','19',934,841,22.6,'-425','54041',110,177);
INSERT INTO "communes" VALUES('78','Bourdonné','08',490,426,10.76,'-748','54173',102,178);
INSERT INTO "communes" VALUES('78','Soindres','07',597,610,5.19,'-735','54397',85,141);
INSERT INTO "communes" VALUES('78','Jeufosse','02',427,345,3.57,'-879','54483',12,143);
INSERT INTO "communes" VALUES('78','Évecquemont','14',786,671,2.5,'-435','54460',57,172);
INSERT INTO "communes" VALUES('78','Houilles','09',31557,29653,4.43,'-165','54362',27,57);
INSERT INTO "communes" VALUES('78','Gazeran','18',1238,1156,25.8,'-625','54038',131,171);
INSERT INTO "communes" VALUES('78','Flexanville','15',574,525,8.89,'-665','54282',95,140);
INSERT INTO "communes" VALUES('78','Bréval','02',1979,1644,11.38,'-892','54383',107,163);
INSERT INTO "communes" VALUES('78','Nézel','01',1042,945,1.31,'-556','54383',19,108);
INSERT INTO "communes" VALUES('78','Hargeville','07',397,319,7.08,'-662','54323',114,176);
INSERT INTO "communes" VALUES('78','Breuil-Bois-Robert','07',709,662,3.75,'-688','54384',42,147);
INSERT INTO "communes" VALUES('78','Boinville-le-Gaillard','19',617,496,12.52,'-517','53881',151,162);
INSERT INTO "communes" VALUES('78','<NAME>','13',4803,4410,1.44,'-252','54310',22,108);
INSERT INTO "communes" VALUES('78','Richebourg','08',1510,1376,10.55,'-777','54248',105,170);
INSERT INTO "communes" VALUES('78','Civry-la-Forêt','08',357,310,9.4,'-800','54296',80,157);
INSERT INTO "communes" VALUES('78','Guerville','07',2079,1900,9.98,'-668','54382',17,148);
INSERT INTO "communes" VALUES('78','Bonnières-sur-Seine','02',4344,3993,7.66,'-841','54484',13,131);
INSERT INTO "communes" VALUES('78','Mureaux','14',30859,31722,11.99,'-476','54437',18,53);
INSERT INTO "communes" VALUES('78','Fourqueux','35',4085,4156,3.67,'-301','54319',67,176);
INSERT INTO "communes" VALUES('78','Émancé','18',850,735,11.99,'-674','53989',119,167);
INSERT INTO "communes" VALUES('78','Villiers-Saint-Frédéric','15',2727,2373,5.06,'-496','54245',53,171);
INSERT INTO "communes" VALUES('78','Sartrouville','23',51150,50222,8.46,'-185','54384',22,62);
INSERT INTO "communes" VALUES('78','Rosay','07',385,364,4.54,'-732','54352',47,168);
INSERT INTO "communes" VALUES('78','Coignières','34',4527,4236,8.27,'-463','54164',99,178);
INSERT INTO "communes" VALUES('78','La Verrière','34',5993,6052,1.77,'-416','54176',166,175);
INSERT INTO "communes" VALUES('78','Aulnay-sur-Mauldre','01',1158,1107,2.23,'-551','54366',22,126);
INSERT INTO "communes" VALUES('78','Croissy-sur-Seine','04',10048,9833,3.44,'-216','54309',19,34);
INSERT INTO "communes" VALUES('78','Médan','16',1456,1393,2.85,'-378','54393',18,171);
INSERT INTO "communes" VALUES('78','Tacoignières','08',1049,965,3.17,'-735','54263',119,153);
INSERT INTO "communes" VALUES('78','Saint-Martin-de-Bréthencourt','19',635,588,16.67,'-455','53899',107,162);
INSERT INTO "communes" VALUES('78','Saint-Lambert','05',418,379,6.61,'-351','54147',95,169);
INSERT INTO "communes" VALUES('78','Paray-Douaville','19',242,162,10.28,'-510','53848',143,159);
INSERT INTO "communes" VALUES('78','Montainville','01',561,507,4.79,'-528','54313',37,131);
INSERT INTO "communes" VALUES('78','Porcheville','10',2832,2506,4.62,'-621','54413',17,61);
INSERT INTO "communes" VALUES('78','Jouy-Mauvoisin','02',553,505,2.82,'-765','54417',57,145);
INSERT INTO "communes" VALUES('78','Bois-d''Arcy','36',13693,12062,5.48,'-339','54224',130,180);
INSERT INTO "communes" VALUES('78','Flacourt','07',140,127,4.31,'-766','54365',80,161);
INSERT INTO "communes" VALUES('78','Triel-sur-Seine','25',11598,11091,13.58,'-367','54423',18,179);
INSERT INTO "communes" VALUES('78','Lainville-en-Vexin','10',812,752,7.67,'-578','54511',93,201);
INSERT INTO "communes" VALUES('78','Autouillet','15',474,349,4.93,'-592','54277',88,171);
INSERT INTO "communes" VALUES('78','Lévis-Saint-Nom','05',1705,1697,8.25,'-431','54135',103,174);
INSERT INTO "communes" VALUES('78','Courgent','08',378,403,2.02,'-752','54325',57,119);
INSERT INTO "communes" VALUES('78','Ecquevilly','01',3931,4205,11.27,'-461','54389',33,181);
INSERT INTO "communes" VALUES('78','Morainvilliers','17',2399,2189,7.24,'-444','54365',58,181);
INSERT INTO "communes" VALUES('78','Ménerville','02',202,191,3.51,'-815','54394',84,162);
INSERT INTO "communes" VALUES('78','Achères','20',19626,18929,9.44,'-298','54403',18,32);
INSERT INTO "communes" VALUES('78','Neauphlette','02',890,806,9.72,'-901','54368',100,162);
INSERT INTO "communes" VALUES('78','Freneuse','02',3930,3592,10.32,'-817','54497',14,114);
INSERT INTO "communes" VALUES('78','Mareil-Marly','35',3517,3195,1.77,'-289','54313',42,161);
INSERT INTO "communes" VALUES('78','Bennecourt','02',1810,1786,6.95,'-860','54489',10,120);
INSERT INTO "communes" VALUES('78','Boinvilliers','07',268,280,3.59,'-751','54353',75,151);
INSERT INTO "communes" VALUES('78','Bouafle','01',2132,2014,6.92,'-489','54406',31,179);
INSERT INTO "communes" VALUES('78','Mareil-le-Guyon','15',401,348,4,'-537','54212',67,112);
INSERT INTO "communes" VALUES('78','Carrières-sous-Poissy','16',15234,13468,7.19,'-331','54387',17,44);
INSERT INTO "communes" VALUES('78','Orphin','18',913,927,16.5,'-617','53976',132,166);
INSERT INTO "communes" VALUES('78','Saint-Nom-la-Bretèche','22',5147,4967,11.74,'-350','54289',87,181);
INSERT INTO "communes" VALUES('78','Fontenay-Saint-Père','10',995,989,13.06,'-650','54475',67,196);
INSERT INTO "communes" VALUES('78','Perdreauville','02',622,534,11.18,'-786','54405',40,151);
INSERT INTO "communes" VALUES('78','Follainville-Dennemont','10',1846,1912,9.69,'-692','54468',16,149);
INSERT INTO "communes" VALUES('78','Blaru','02',929,802,14.84,'-953','54499',50,152);
INSERT INTO "communes" VALUES('78','Auffreville-Brasseuil','07',586,586,2.37,'-696','54393',24,127);
INSERT INTO "communes" VALUES('78','Millemont','15',251,206,5.78,'-658','54233',111,188);
INSERT INTO "communes" VALUES('78','Poissy','97',37680,35815,13.28,'-324','54365',17,171);
INSERT INTO "communes" VALUES('78','Arnouville-lès-Mantes','07',852,743,9.98,'-674','54345',90,178);
INSERT INTO "communes" VALUES('78','Essarts-le-Roi','18',6318,6127,19.32,'-491','54130',115,181);
INSERT INTO "communes" VALUES('78','Prunay-en-Yvelines','19',813,847,26.95,'-601','53920',127,164);
INSERT INTO "communes" VALUES('78','Marly-le-Roi','13',16614,16787,6.54,'-269','54297',48,179);
INSERT INTO "communes" VALUES('78','Boissets','08',272,209,3.9,'-837','54291',105,151);
INSERT INTO "communes" VALUES('78','Davron','17',340,303,5.95,'-433','54295',72,142);
INSERT INTO "communes" VALUES('78','Carrières-sur-Seine','09',15473,12052,5.02,'-176','54342',23,58);
INSERT INTO "communes" VALUES('78','Sailly','10',379,349,5.45,'-596','54489',81,174);
INSERT INTO "communes" VALUES('78','Buchelay','33',2346,2206,4.94,'-738','54422',26,128);
INSERT INTO "communes" VALUES('78','Longnes','08',1467,1359,13.76,'-832','54356',109,160);
INSERT INTO "communes" VALUES('78','Grandchamp','08',309,231,6.05,'-817','54120',127,183);
INSERT INTO "communes" VALUES('78','Saint-Illiers-le-Bois','02',453,437,4.39,'-921','54398',129,166);
INSERT INTO "communes" VALUES('78','Gambais','08',2466,2067,23.02,'-737','54193',94,182);
INSERT INTO "communes" VALUES('78','Ablis','19',3287,2705,25.92,'-557','53907',132,164);
INSERT INTO "communes" VALUES('78','Verneuil-sur-Seine','25',15178,14533,9.43,'-403','54422',17,69);
INSERT INTO "communes" VALUES('78','Tilly','08',542,440,7.8,'-845','54314',109,152);
INSERT INTO "communes" VALUES('78','Mézy-sur-Seine','14',1949,1786,4.76,'-506','54447',17,155);
INSERT INTO "communes" VALUES('78','Saint-Germain-de-la-Grange','15',1824,1621,5.23,'-486','54260',57,170);
INSERT INTO "communes" VALUES('78','Andrésy','39',12174,12484,6.91,'-309','54423',17,168);
INSERT INTO "communes" VALUES('78','Loges-en-Josas','29',1548,1448,2.48,'-217','54181',91,159);
INSERT INTO "communes" VALUES('78','Épône','07',6503,6416,12.77,'-579','54395',17,142);
INSERT INTO "communes" VALUES('78','Bazoches-sur-Guyonne','15',591,477,5.66,'-529','54198',81,175);
INSERT INTO "communes" VALUES('78','Jambville','10',809,621,4.81,'-537','54496',43,188);
INSERT INTO "communes" VALUES('78','Montfort-l''Amaury','15',3138,3135,5.71,'-586','54197',98,183);
INSERT INTO "communes" VALUES('78','Hermeray','18',948,831,18.07,'-721','54056',119,174);
INSERT INTO "communes" VALUES('78','Plaisir','38',30958,31021,18.68,'-433','54242',92,173);
INSERT INTO "communes" VALUES('78','Magny-les-Hameaux','05',9027,8781,16.64,'-281','54138',105,171);
INSERT INTO "communes" VALUES('78','Mulcent','08',113,71,3.54,'-761','54310',67,131);
INSERT INTO "communes" VALUES('78','Mousseaux-sur-Seine','02',613,558,7.2,'-767','54492',12,68);
INSERT INTO "communes" VALUES('78','Mantes-la-Ville','33',19234,19258,6.06,'-695','54416',17,114);
INSERT INTO "communes" VALUES('78','La Queue-les-Yvelines','15',2161,1845,5.77,'-631','54228',96,188);
INSERT INTO "communes" VALUES('78','Gargenville','10',6770,6602,8.67,'-585','54436',17,191);
INSERT INTO "communes" VALUES('78','Jumeauville','07',592,556,7.77,'-609','54345',83,139);
INSERT INTO "communes" VALUES('78','La Villeneuve-en-Chevrie','02',568,533,11.79,'-900','54461',25,151);
INSERT INTO "communes" VALUES('78','Flins-Neuve-Église','08',164,150,1.23,'-841','54324',119,134);
INSERT INTO "communes" VALUES('78','Mézières-sur-Seine','07',3526,3333,10.42,'-592','54398',17,156);
INSERT INTO "communes" VALUES('78','Choisel','05',525,539,8.73,'-354','54096',89,178);
INSERT INTO "communes" VALUES('78','Limetz-Villez','02',1891,1755,9.35,'-875','54512',9,105);
INSERT INTO "communes" VALUES('78','Goupillières','15',460,381,5.63,'-635','54311',118,173);
INSERT INTO "communes" VALUES('78','L''Étang-la-Ville','22',4769,4484,5.38,'-295','54299',64,178);
INSERT INTO "communes" VALUES('78','Mondreville','08',369,347,4.4,'-871','54337',124,140);
INSERT INTO "communes" VALUES('78','Mareil-sur-Mauldre','01',1731,1760,4.33,'-519','54328',34,127);
INSERT INTO "communes" VALUES('78','Gressey','08',541,476,7.11,'-809','54260',106,158);
INSERT INTO "communes" VALUES('78','Port-Villez','02',246,176,5.35,'-905','54514',10,143);
INSERT INTO "communes" VALUES('78','Rosny-sur-Seine','33',5521,4763,19.36,'-783','54444',17,144);
INSERT INTO "communes" VALUES('78','Chavenay','22',1863,1755,6.03,'-389','54282',71,129);
INSERT INTO "communes" VALUES('78','Saint-Rémy-l''Honoré','15',1384,1282,10.15,'-506','54174',94,180);
INSERT INTO "communes" VALUES('78','Vicq','15',333,259,4.43,'-558','54239',62,110);
INSERT INTO "communes" VALUES('78','Saint-Cyr-l''École','36',17401,14585,5.01,'-304','54222',99,174);
INSERT INTO "communes" VALUES('78','Maulette','08',756,712,7.89,'-796','54214',93,129);
INSERT INTO "communes" VALUES('78','La Boissière-École','18',769,692,25.06,'-771','54093',126,184);
INSERT INTO "communes" VALUES('78','Neauphle-le-Vieux','15',751,704,7.52,'-526','54240',53,111);
INSERT INTO "communes" VALUES('78','Bonnelles','19',1913,2160,10.84,'-343','54021',92,177);
INSERT INTO "communes" VALUES('78','Orgerus','08',2358,2243,14.34,'-707','54266',77,186);
INSERT INTO "communes" VALUES('78','Garancières','15',2382,2241,10.69,'-646','54247',87,188);
INSERT INTO "communes" VALUES('78','Versailles','99',86110,85761,26.18,'-225','54227',103,180);
INSERT INTO "communes" VALUES('78','Vaux-sur-Seine','14',4813,4368,8.45,'-415','54453',18,191);
INSERT INTO "communes" VALUES('78','Gambaiseuil','18',69,54,18.92,'-672','54174',109,184);
INSERT INTO "communes" VALUES('78','Guyancourt','28',27966,25051,13,'-293','54190',110,167);
INSERT INTO "communes" VALUES('78','Buc','29',5312,5743,8.07,'-235','54193',97,176);
INSERT INTO "communes" VALUES('78','Bullion','19',1951,1798,20.9,'-378','54024',93,178);
INSERT INTO "communes" VALUES('78','Chatou','04',30173,28582,5.08,'-199','54323',22,58);
INSERT INTO "communes" VALUES('78','Auffargis','18',2005,1862,17.14,'-499','54111',120,177);
INSERT INTO "communes" VALUES('78','Guernes','10',1011,826,8.54,'-779','54457',15,71);
INSERT INTO "communes" VALUES('78','Trappes','24',29380,28797,13.47,'-372','54196',143,174);
INSERT INTO "communes" VALUES('78','Gommecourt','02',659,571,5.67,'-826','54530',14,123);
INSERT INTO "communes" VALUES('78','Thoiry','15',1139,969,7.09,'-603','54295',113,171);
INSERT INTO "communes" VALUES('78','Sonchamp','19',1577,1485,46.49,'-510','53973',121,172);
INSERT INTO "communes" VALUES('78','Toussus-le-Noble','29',958,660,4.02,'-247','54163',130,163);
INSERT INTO "communes" VALUES('78','Vernouillet','25',9399,9496,6.48,'-393','54414',19,169);
INSERT INTO "communes" VALUES('78','Alluets-le-Roi','17',1203,1266,7.39,'-464','54349',150,187);
INSERT INTO "communes" VALUES('78','Favrieux','02',148,124,3.18,'-771','54382',100,141);
INSERT INTO "communes" VALUES('78','Fontenay-le-Fleury','36',12732,12597,5.43,'-320','54237',92,176);
INSERT INTO "communes" VALUES('78','Crespières','17',1574,1466,14.91,'-461','54315',43,185);
INSERT INTO "communes" VALUES('78','<NAME>','32',28975,28505,4.24,'-229','54245',113,177);
INSERT INTO "communes" VALUES('78','Méricourt','02',391,360,2.15,'-788','54485',12,86);
INSERT INTO "communes" VALUES('78','Beynes','15',7678,7200,18.56,'-515','54285',39,134);
INSERT INTO "communes" VALUES('78','Bougival','03',8447,8426,2.76,'-219','54294',23,166);
INSERT INTO "communes" VALUES('78','Rocquencourt','32',3215,3233,2.78,'-251','54263',114,179);
INSERT INTO "communes" VALUES('78','Louveciennes','13',7245,7110,5.37,'-245','54289',24,179);
INSERT INTO "communes" VALUES('78','Guitrancourt','10',645,612,7.32,'-622','54454',41,192);
INSERT INTO "communes" VALUES('78','Drocourt','10',505,409,3.84,'-634','54508',103,172);
INSERT INTO "communes" VALUES('78','Magnanville','33',5846,5620,4.26,'-727','54408',65,132);
INSERT INTO "communes" VALUES('78','Maule','01',5801,5861,17.3,'-542','54343',27,178);
INSERT INTO "communes" VALUES('78','Mesnuls','15',874,884,6.49,'-554','54174',93,184);
INSERT INTO "communes" VALUES('78','Conflans-Sainte-Honorine','06',35380,33257,9.9,'-269','54441',17,60);
INSERT INTO "communes" VALUES('78','Flins-sur-Seine','01',2426,2209,8.61,'-515','54405',19,179);
INSERT INTO "communes" VALUES('78','Septeuil','08',2201,2033,9.4,'-728','54325',52,165);
INSERT INTO "communes" VALUES('78','Raizeux','18',847,732,10.25,'-726','54027',115,171);
INSERT INTO "communes" VALUES('78','Boissy-sans-Avoir','15',586,519,3.96,'-603','54245',77,116);
INSERT INTO "communes" VALUES('78','Prunay-le-Temple','08',394,301,6.77,'-737','54290',67,153);
INSERT INTO "communes" VALUES('78','Mantes-la-Jolie','12',42969,43679,9.38,'-689','54434',17,41);
INSERT INTO "communes" VALUES('78','Dammartin-en-Serve','08',1028,944,13.98,'-797','54337',75,168);
INSERT INTO "communes" VALUES('78','Bazemont','01',1521,1526,6.59,'-524','54365',53,185);
INSERT INTO "communes" VALUES('78','Milon-la-Chapelle','05',311,340,3.06,'-319','54140',80,164);
INSERT INTO "communes" VALUES('78','Saint-Germain-en-Laye','98',40481,38124,48.27,'-273','54329',22,107);
INSERT INTO "communes" VALUES('78','Montalet-le-Bois','10',327,290,3.01,'-567','54496',66,180);
INSERT INTO "communes" VALUES('78','Aubergenville','01',12020,11675,8.83,'-535','54398',17,142);
INSERT INTO "communes" VALUES('78','Voisins-le-Bretonneux','05',11730,12150,2.38,'-317','54176',145,169);
INSERT INTO "communes" VALUES('78','Poigny-la-Forêt','18',1034,872,23.27,'-648','54087',132,179);
INSERT INTO "communes" VALUES('78','Orvilliers','08',683,483,5.94,'-771','54288',99,138);
INSERT INTO "communes" VALUES('78','Mittainville','18',613,513,10.51,'-794','54073',121,174);
INSERT INTO "communes" VALUES('78','Maurecourt','39',4302,3489,3.65,'-305','54441',19,167);
INSERT INTO "communes" VALUES('78','Clayes-sous-Bois','38',17553,17049,6.11,'-392','54245',110,178);
INSERT INTO "communes" VALUES('78','Cravent','02',414,324,6.13,'-943','54435',105,167);
INSERT INTO "communes" VALUES('78','Le Pecq','35',16496,16342,2.84,'-256','54330',23,98);
INSERT INTO "communes" VALUES('78','Le Perray-en-Yvelines','18',6600,5839,13.47,'-536','54105',155,179);
INSERT INTO "communes" VALUES('78','Neauphle-le-Château','15',3011,2770,2.15,'-483','54238',92,172);
INSERT INTO "communes" VALUES('78','Auteuil','15',858,865,4.4,'-577','54267',82,171);
INSERT INTO "communes" VALUES('78','Villepreux','22',9871,9590,10.4,'-371','54256',82,155);
INSERT INTO "communes" VALUES('78','Osmoy','08',382,315,2.59,'-689','54293',93,128);
INSERT INTO "communes" VALUES('78','Montigny-le-Bretonneux','28',33337,35244,11.65,'-338','54189',150,171);
INSERT INTO "communes" VALUES('78','Noisy-le-Roi','22',7811,7711,5.43,'-307','54274',92,182);
INSERT INTO "communes" VALUES('78','Élancourt','34',26829,26630,8.51,'-421','54204',100,175);
INSERT INTO "communes" VALUES('78','Vert','07',788,738,3.67,'-717','54380',35,134);
INSERT INTO "communes" VALUES('78','Herbeville','01',287,312,6.4,'-500','54340',54,185);
INSERT INTO "communes" VALUES('78','Saint-Forget','05',474,521,6,'-378','54120',77,168);
INSERT INTO "communes" VALUES('78','Jouy-en-Josas','29',8187,8039,10.14,'-188','54187',77,179);
INSERT INTO "communes" VALUES('78','Juziers','10',3773,3373,9.88,'-545','54436',17,185);
INSERT INTO "communes" VALUES('78','Longvilliers','19',516,443,13.91,'-383','53977',79,160);
INSERT INTO "communes" VALUES('78','Hardricourt','14',2083,1914,3.28,'-492','54454',18,118);
INSERT INTO "communes" VALUES('78','Saint-Illiers-la-Ville','02',321,269,6.48,'-884','54418',76,167);
INSERT INTO "communes" VALUES('78','Gaillon-sur-Montcient','14',665,646,4.83,'-493','54473',22,126);
INSERT INTO "communes" VALUES('78','Viroflay','31',15905,15205,3.49,'-182','54222',92,176);
INSERT INTO "communes" VALUES('78','Villennes-sur-Seine','16',5085,4788,5.08,'-376','54377',19,132);
INSERT INTO "communes" VALUES('78','Orgeval','17',5855,4801,15.33,'-401','54356',57,182);
INSERT INTO "communes" VALUES('78','Limay','10',16302,15695,11.48,'-667','54437',17,137);
INSERT INTO "communes" VALUES('78','Jouars-Pontchartrain','15',5267,4565,9.65,'-483','54226',67,171);
INSERT INTO "communes" VALUES('78','Senlisse','05',541,484,7.9,'-394','54097',88,179);
INSERT INTO "communes" VALUES('78','Fontenay-Mauvoisin','02',418,300,3.31,'-761','54405',79,152);
INSERT INTO "communes" VALUES('78','<NAME>','11',6415,6205,3.25,'-233','54374',20,71);
INSERT INTO "communes" VALUES('78','Chevreuse','05',5768,5360,13.42,'-331','54120',72,174);
INSERT INTO "communes" VALUES('78','Saint-Martin-la-Garenne','10',920,740,15.75,'-720','54489',9,152);
INSERT INTO "communes" VALUES('78','La Celle-Saint-Cloud','03',20971,21528,5.82,'-213','54278',75,176);
INSERT INTO "communes" VALUES('78','Thiverval-Grignon','38',1006,776,11.17,'-466','54279',56,132);
INSERT INTO "communes" VALUES('78','Le Tremblay-sur-Mauldre','15',969,813,6.03,'-509','54197',67,175);
INSERT INTO "communes" VALUES('78','Vélizy-Villacoublay','37',20089,20344,8.93,'-165','54204',102,179);
INSERT INTO "communes" VALUES('78','Dampierre-en-Yvelines','05',1113,1052,11.17,'-392','54116',85,178);
INSERT INTO "communes" VALUES('78','Saint-Hilarion','18',901,800,14,'-670','54023',114,169);
INSERT INTO "communes" VALUES('78','Clairefontaine-en-Yvelines','19',790,792,17.22,'-476','54014',119,175);
INSERT INTO "communes" VALUES('78','Aigremont','21',1099,873,3,'-353','54337',69,168);
INSERT INTO "communes" VALUES('78','Méré','15',1700,1674,10.31,'-577','54207',65,184);
INSERT INTO "communes" VALUES('78','Grosrouvre','15',933,762,12.43,'-638','54202',119,185);
INSERT INTO "communes" VALUES('78','<NAME>','05',6629,6519,8.95,'-415','54160',120,177);
INSERT INTO "communes" VALUES('78','Saint-Martin-des-Champs','08',321,305,6.21,'-688','54313',71,174);
INSERT INTO "communes" VALUES('78','Rolleboise','02',412,401,2.96,'-810','54465',15,123);
INSERT INTO "communes" VALUES('78','Issou','10',4539,3381,4.8,'-604','54432',17,127);
INSERT INTO "communes" VALUES('78','Lommoye','02',644,525,9.38,'-914','54438',82,167);
INSERT INTO "communes" VALUES('78','Saulx-Marchais','15',895,600,2.13,'-556','54267',94,146);
INSERT INTO "communes" VALUES('78','<NAME>','08',176,159,4.86,'-796','54116',134,184);
INSERT INTO "communes" VALUES('78','Saint-Rémy-lès-Chevreuse','05',7922,7650,9.65,'-294','54118',66,169);
INSERT INTO "communes" VALUES('78','Houdan','08',3289,3114,10.39,'-817','54212',87,129);
INSERT INTO "communes" VALUES('78','Saint-Arnoult-en-Yvelines','19',6150,5666,12.55,'-440','53968',103,164);
INSERT INTO "communes" VALUES('78','Rochefort-en-Yvelines','19',960,774,12.59,'-387','53984',85,163);
INSERT INTO "communes" VALUES('78','Châteaufort','29',1429,1452,4.88,'-273','54152',86,164);
INSERT INTO "communes" VALUES('78','Ponthévrard','19',601,471,2.57,'-474','53946',141,164);
INSERT INTO "communes" VALUES('78','Villette','07',511,470,4.63,'-716','54364',40,142);
INSERT INTO "communes" VALUES('78','Chapet','14',1180,1123,5.1,'-448','54407',29,121);
INSERT INTO "communes" VALUES('78','Andelu','07',493,370,3.96,'-568','54312',111,133);
INSERT INTO "communes" VALUES('79','Allonne','29',648,654,22.98,'-3022','51758',145,234);
INSERT INTO "communes" VALUES('79','Frontenay-Rohan-Rohan','12',2982,2652,33.79,'-3196','51394',2,47);
INSERT INTO "communes" VALUES('79','Chenay','13',485,541,21.7,'-2634','51472',99,149);
INSERT INTO "communes" VALUES('79','Louzy','32',1287,1119,18.64,'-2802','52236',42,81);
INSERT INTO "communes" VALUES('79','Échiré','20',3336,2889,30.96,'-3058','51543',17,89);
INSERT INTO "communes" VALUES('79','Saint-Clémentin','02',516,501,13.82,'-3169','52161',87,148);
INSERT INTO "communes" VALUES('79','L''Absie','18',1041,1096,13.02,'-3237','51814',168,256);
INSERT INTO "communes" VALUES('79','Fosses','05',445,350,12.04,'-2990','51302',51,101);
INSERT INTO "communes" VALUES('79','Courlay','07',2415,2393,29.46,'-3226','51977',153,236);
INSERT INTO "communes" VALUES('79','Ensigné','05',283,270,20.3,'-2867','51209',55,149);
INSERT INTO "communes" VALUES('79','Boismé','04',1154,1075,37.8,'-3080','51972',127,227);
INSERT INTO "communes" VALUES('79','Prin-Deyrançon','14',605,459,16.12,'-3303','51358',4,37);
INSERT INTO "communes" VALUES('79','<NAME>','11',316,362,16.3,'-3152','51757',100,247);
INSERT INTO "communes" VALUES('79','Montalembert','28',274,280,11.8,'-2421','51234',118,187);
INSERT INTO "communes" VALUES('79','Bouillé-Loretz','02',1045,1059,26.78,'-2899','52310',35,86);
INSERT INTO "communes" VALUES('79','Lezay','13',2066,2092,45.63,'-2606','51405',118,173);
INSERT INTO "communes" VALUES('79','Groseillers','15',67,73,4.46,'-3044','51695',99,178);
INSERT INTO "communes" VALUES('79','Ménigoute','17',878,863,19.22,'-2662','51661',122,181);
INSERT INTO "communes" VALUES('79','Loubillé','10',378,356,21.21,'-2667','51167',84,149);
INSERT INTO "communes" VALUES('79','Mougon','06',2044,1509,21.29,'-2916','51440',44,131);
INSERT INTO "communes" VALUES('79','Fors','23',1684,1347,18.82,'-3051','51374',25,66);
INSERT INTO "communes" VALUES('79','Chiché','04',1633,1343,46.99,'-2996','51998',105,217);
INSERT INTO "communes" VALUES('79','Saint-Rémy','20',1027,820,13.64,'-3181','51523',38,87);
INSERT INTO "communes" VALUES('79','Magné','21',2820,2850,14.8,'-3204','51461',0,39);
INSERT INTO "communes" VALUES('79','Limalonges','28',873,809,24.39,'-2408','51256',112,187);
INSERT INTO "communes" VALUES('79','Avon','19',79,75,12.54,'-2574','51530',97,146);
INSERT INTO "communes" VALUES('79','Bretignolles','07',634,602,13.16,'-3270','52070',150,237);
INSERT INTO "communes" VALUES('79','Clavé','15',338,324,19.53,'-2835','51659',108,216);
INSERT INTO "communes" VALUES('79','Cerizay','07',4660,4584,18.55,'-3335','52024',143,217);
INSERT INTO "communes" VALUES('79','Availles-Thouarsais','01',211,222,10.85,'-2754','52066',62,124);
INSERT INTO "communes" VALUES('79','Fomperron','17',431,336,17.4,'-2717','51640',149,191);
INSERT INTO "communes" VALUES('79','Vitré','06',532,513,9.87,'-2817','51426',102,161);
INSERT INTO "communes" VALUES('79','La Chapelle-Pouilloux','28',192,203,7.85,'-2535','51265',144,164);
INSERT INTO "communes" VALUES('79','Parthenay','22',10478,10473,11.38,'-2870','51832',114,184);
INSERT INTO "communes" VALUES('79','Chef-Boutonne','10',2126,2215,19.81,'-2673','51233',71,146);
INSERT INTO "communes" VALUES('79','Juscorps','23',372,310,6.48,'-3025','51348',42,66);
INSERT INTO "communes" VALUES('79','Saint-Maurice-la-Fougereuse','02',541,510,35.84,'-3161','52260',84,174);
INSERT INTO "communes" VALUES('79','Auge','25',926,794,23.33,'-2915','51599',49,189);
INSERT INTO "communes" VALUES('79','Missé','31',863,826,12.34,'-2809','52165',47,117);
INSERT INTO "communes" VALUES('79','Saint-Germier','17',201,200,11.78,'-2639','51624',134,183);
INSERT INTO "communes" VALUES('79','Pompaire','22',1958,1811,12.8,'-2855','51787',133,198);
INSERT INTO "communes" VALUES('79','Marigny','03',891,782,31.72,'-3060','51331',32,98);
INSERT INTO "communes" VALUES('79','Saint-Génard','16',366,330,11.07,'-2746','51313',84,138);
INSERT INTO "communes" VALUES('79','Séligné','05',119,140,9.83,'-2911','51271',41,60);
INSERT INTO "communes" VALUES('79','Niort','98',57325,56661,68.2,'-3110','51472',2,77);
INSERT INTO "communes" VALUES('79','<NAME>','09',645,595,12.92,'-3421','52093',149,213);
INSERT INTO "communes" VALUES('79','Assais-les-Jumeaux','24',771,793,52.26,'-2662','51987',75,144);
INSERT INTO "communes" VALUES('79','Saint-Léger-de-la-Martinière','16',986,1023,25.64,'-2735','51364',107,183);
INSERT INTO "communes" VALUES('79','Saint-Paul-en-Gâtine','18',451,494,15.39,'-3281','51814',118,262);
INSERT INTO "communes" VALUES('79','Faye-l''Abbesse','04',1044,950,23.27,'-2989','52034',90,179);
INSERT INTO "communes" VALUES('79','Aigonnay','06',610,449,14.05,'-2883','51477',72,157);
INSERT INTO "communes" VALUES('79','Saint-Georges-de-Noisné','15',706,656,24.64,'-2881','51659',80,204);
INSERT INTO "communes" VALUES('79','Saint-Georges-de-Rex','14',408,374,17.63,'-3322','51420',2,37);
INSERT INTO "communes" VALUES('79','Celles-sur-Belle','06',3753,3478,37.24,'-2831','51402',60,162);
INSERT INTO "communes" VALUES('79','Vasles','17',1706,1563,89.16,'-2624','51750',130,227);
INSERT INTO "communes" VALUES('79','Villefollet','05',199,184,13.04,'-2893','51251',41,80);
INSERT INTO "communes" VALUES('79','Sainte-Néomaye','26',1339,842,10.69,'-2883','51526',42,142);
INSERT INTO "communes" VALUES('79','Beauvoir-sur-Niort','03',1738,1329,23.48,'-3123','51310',36,90);
INSERT INTO "communes" VALUES('79','Saint-Germain-de-Longue-Chaume','22',407,322,14.63,'-2981','51908',163,232);
INSERT INTO "communes" VALUES('79','Sansais','12',776,660,14.94,'-3246','51415',1,32);
INSERT INTO "communes" VALUES('79','Saint-Loup-Lamairé','24',942,1002,21.8,'-2780','51987',74,162);
INSERT INTO "communes" VALUES('79','Saint-Jean-de-Thouars','31',1344,1317,4.96,'-2831','52182',48,111);
INSERT INTO "communes" VALUES('79','Neuvy-Bouin','29',486,523,25.3,'-3108','51863',179,231);
INSERT INTO "communes" VALUES('79','Tourtenay','31',142,141,7.72,'-2727','52265',36,113);
INSERT INTO "communes" VALUES('79','Saint-André-sur-Sèvre','07',646,654,19.85,'-3350','51982',146,212);
INSERT INTO "communes" VALUES('79','Lhoumois','30',140,145,9.67,'-2730','51895',95,172);
INSERT INTO "communes" VALUES('79','Ulcot','02',58,58,6.62,'-3039','52252',101,124);
INSERT INTO "communes" VALUES('79','Oroux','30',105,107,6.56,'-2696','51880',142,177);
INSERT INTO "communes" VALUES('79','Fontenille-Saint-Martin-d''Entraigues','10',591,547,15.11,'-2742','51248',66,126);
INSERT INTO "communes" VALUES('79','Saint-Généroux','01',372,296,20.46,'-2748','52094',57,109);
INSERT INTO "communes" VALUES('79','Fressines','06',1357,1079,9.61,'-2926','51469',62,138);
INSERT INTO "communes" VALUES('79','Gourgé','24',935,917,50.43,'-2780','51920',84,164);
INSERT INTO "communes" VALUES('79','Saint-Christophe-sur-Roc','08',593,453,10.96,'-2983','51608',65,139);
INSERT INTO "communes" VALUES('79','Tillou','10',301,294,10.04,'-2731','51279',78,133);
INSERT INTO "communes" VALUES('79','<NAME>','03',765,680,19.06,'-3194','51318',33,74);
INSERT INTO "communes" VALUES('79','Xaintray','08',240,199,11.15,'-3128','51659',50,127);
INSERT INTO "communes" VALUES('79','Chauray','20',5985,4831,14.5,'-3015','51512',32,91);
INSERT INTO "communes" VALUES('79','Saint-Maixent-l''École','99',7483,6602,5.22,'-2827','51570',52,115);
INSERT INTO "communes" VALUES('79','Saint-Martin-du-Fouilloux','17',216,239,23.97,'-2730','51767',162,271);
INSERT INTO "communes" VALUES('79','Fenioux','11',688,727,33.65,'-3145','51716',53,228);
INSERT INTO "communes" VALUES('79','Chey','13',617,590,21.59,'-2652','51449',107,171);
INSERT INTO "communes" VALUES('79','Aiffres','23',5229,4596,25.72,'-3059','51429',13,57);
INSERT INTO "communes" VALUES('79','Belleville','03',120,90,11.53,'-3151','51251',36,82);
INSERT INTO "communes" VALUES('79','Beaussais','06',423,356,15.75,'-2766','51434',112,187);
INSERT INTO "communes" VALUES('79','Amuré','12',460,321,14.86,'-3293','51406',3,28);
INSERT INTO "communes" VALUES('79','Saint-Médard','06',109,112,4.13,'-2906','51348',48,93);
INSERT INTO "communes" VALUES('79','<NAME>','27',213,250,17.01,'-3020','52146',101,166);
INSERT INTO "communes" VALUES('79','Melleran','28',516,523,19.9,'-2594','51257',130,169);
INSERT INTO "communes" VALUES('79','Louin','24',756,751,20.56,'-2775','52003',73,160);
INSERT INTO "communes" VALUES('79','Massais','02',572,544,21.14,'-2977','52229',53,121);
INSERT INTO "communes" VALUES('79','<NAME>','25',5449,4683,34.5,'-2929','51512',35,127);
INSERT INTO "communes" VALUES('79','<NAME>','24',182,174,5.12,'-2750','51960',87,157);
INSERT INTO "communes" VALUES('79','Sainte-Ouenne','08',788,569,11.58,'-3092','51606',27,108);
INSERT INTO "communes" VALUES('79','Saint-Hilaire-la-Palud','14',1597,1352,34.12,'-3387','51404',1,30);
INSERT INTO "communes" VALUES('79','Gournay-Loizé','10',614,581,23.23,'-2661','51284',99,171);
INSERT INTO "communes" VALUES('79','Chail','16',541,505,12.6,'-2679','51340',124,177);
INSERT INTO "communes" VALUES('79','Thorigné','06',1267,996,18.26,'-2877','51435',78,144);
INSERT INTO "communes" VALUES('79','Épannes','12',775,712,8.01,'-3245','51367',11,52);
INSERT INTO "communes" VALUES('79','Saint-Martin-de-Saint-Maixent','26',1113,850,12.64,'-2820','51551',47,141);
INSERT INTO "communes" VALUES('79','Sauzé-Vaussais','28',1616,1661,19.08,'-2479','51261',117,187);
INSERT INTO "communes" VALUES('79','<NAME>-Saint-Héray','19',1801,1799,14.92,'-2718','51506',67,178);
INSERT INTO "communes" VALUES('79','Lusseray','05',166,165,8.14,'-2781','51273',58,111);
INSERT INTO "communes" VALUES('79','Mauzé-Thouarsais','32',2059,1989,49.53,'-2904','52197',49,120);
INSERT INTO "communes" VALUES('79','Sepvret','13',583,475,17.01,'-2696','51429',117,194);
INSERT INTO "communes" VALUES('79','Coutières','17',156,128,7.32,'-2727','51673',144,194);
INSERT INTO "communes" VALUES('79','Coulon','21',2224,2073,29.79,'-3246','51471',0,81);
INSERT INTO "communes" VALUES('79','Saint-Romans-lès-Melle','16',682,638,8.91,'-2808','51343',63,124);
INSERT INTO "communes" VALUES('79','Prailles','06',658,619,18.86,'-2839','51471',98,177);
INSERT INTO "communes" VALUES('79','Juillé','05',106,108,4.87,'-2837','51240',57,104);
INSERT INTO "communes" VALUES('79','Mauzé-sur-le-Mignon','14',2800,2384,23.62,'-3342','51328',6,46);
INSERT INTO "communes" VALUES('79','Saint-Léger-de-Montbrun','31',1214,1172,30.72,'-2727','52213',46,105);
INSERT INTO "communes" VALUES('79','Saint-Jouin-de-Milly','07',209,252,6.77,'-3286','51949',153,195);
INSERT INTO "communes" VALUES('79','Brûlain','23',683,538,24.67,'-2953','51336',46,89);
INSERT INTO "communes" VALUES('79','Lorigné','28',279,298,11.1,'-2528','51233',129,161);
INSERT INTO "communes" VALUES('79','Boussais','01',416,387,19.72,'-2872','52033',90,164);
INSERT INTO "communes" VALUES('79','Prissé-la-Charrière','03',620,586,19.94,'-3134','51281',30,73);
INSERT INTO "communes" VALUES('79','Vernoux-sur-Boutonne','05',170,174,8.12,'-2868','51290',43,70);
INSERT INTO "communes" VALUES('79','Mazières-sur-Béronne','16',404,337,9.5,'-2802','51315',57,117);
INSERT INTO "communes" VALUES('79','Villiers-en-Bois','05',144,150,18.53,'-3048','51276',49,99);
INSERT INTO "communes" VALUES('79','Sainte-Eanne','26',671,594,13.83,'-2747','51554',60,159);
INSERT INTO "communes" VALUES('79','Airvault','01',3074,3097,49.28,'-2749','52029',67,140);
INSERT INTO "communes" VALUES('79','Brion-près-Thouet','32',757,715,8.06,'-2802','52279',39,74);
INSERT INTO "communes" VALUES('79','Le Busseau','11',744,754,27.65,'-3257','51755',77,245);
INSERT INTO "communes" VALUES('79','Saint-Marc-la-Lande','15',359,316,10.22,'-3017','51689',120,217);
INSERT INTO "communes" VALUES('79','Saint-Étienne-la-Cigogne','03',135,112,4.82,'-3139','51239',39,70);
INSERT INTO "communes" VALUES('79','Romans','26',740,523,11.42,'-2848','51508',55,149);
INSERT INTO "communes" VALUES('79','Azay-sur-Thouet','29',1098,946,20.2,'-2985','51806',145,236);
INSERT INTO "communes" VALUES('79','Alleuds','28',296,285,9.15,'-2604','51293',144,171);
INSERT INTO "communes" VALUES('79','Amailloux','22',857,717,37.24,'-2948','51941',139,221);
INSERT INTO "communes" VALUES('79','Bougon','19',184,206,11.7,'-2662','51516',80,137);
INSERT INTO "communes" VALUES('79','Saint-Maixent-de-Beugné','11',356,266,11.02,'-3273','51672',54,122);
INSERT INTO "communes" VALUES('79','Nanteuil','26',1670,1474,20.62,'-2789','51569',55,182);
INSERT INTO "communes" VALUES('79','Coulonges-sur-l''Autize','11',2373,2148,18.87,'-3262','51648',27,121);
INSERT INTO "communes" VALUES('79','Villemain','10',167,171,16.68,'-2693','51137',93,148);
INSERT INTO "communes" VALUES('79','La Ferrière-en-Parthenay','30',805,755,29.12,'-2680','51841',142,185);
INSERT INTO "communes" VALUES('79','La Chapelle-Thireuil','11',434,453,17.12,'-3214','51731',68,153);
INSERT INTO "communes" VALUES('79','Hanc','10',257,227,18.12,'-2613','51195',88,165);
INSERT INTO "communes" VALUES('79','Cirières','07',963,897,16.83,'-3286','52041',162,234);
INSERT INTO "communes" VALUES('79','Le Retail','29',263,309,14.45,'-3090','51736',112,243);
INSERT INTO "communes" VALUES('79','Saint-Varent','27',2496,2458,34.42,'-2855','52099',69,132);
INSERT INTO "communes" VALUES('79','Thénezay','30',1476,1424,48.49,'-2626','51910',107,175);
INSERT INTO "communes" VALUES('79','Vausseroux','17',350,299,19.12,'-2748','51724',161,232);
INSERT INTO "communes" VALUES('79','Pioussay','10',325,303,13.77,'-2568','51194',120,166);
INSERT INTO "communes" VALUES('79','Ardilleux','10',165,147,10.35,'-2645','51220',89,139);
INSERT INTO "communes" VALUES('79','Pas-de-Jeu','31',395,377,11.11,'-2643','52195',44,86);
INSERT INTO "communes" VALUES('79','Loubigné','10',162,167,11.01,'-2692','51197',82,158);
INSERT INTO "communes" VALUES('79','Mazières-en-Gâtine','15',969,874,19.06,'-2955','51703',107,226);
INSERT INTO "communes" VALUES('79','Moncoutant','18',3170,2985,26.32,'-3250','51916',153,226);
INSERT INTO "communes" VALUES('79','Saint-Laurs','11',533,448,8.14,'-3235','51691',69,139);
INSERT INTO "communes" VALUES('79','Taizé','31',777,725,21.23,'-2726','52139',52,125);
INSERT INTO "communes" VALUES('79','Sainte-Radegonde','32',1955,2026,7.52,'-2871','52205',43,111);
INSERT INTO "communes" VALUES('79','Secondigny','29',1798,1773,37.34,'-3062','51789',157,249);
INSERT INTO "communes" VALUES('79','Pugny','18',243,183,6.99,'-3178','51919',165,232);
INSERT INTO "communes" VALUES('79','Saint-Pardoux','15',1578,1290,34.24,'-2936','51746',150,232);
INSERT INTO "communes" VALUES('79','Vernoux-en-Gâtine','29',602,654,31.2,'-3166','51817',115,241);
INSERT INTO "communes" VALUES('79','Irais','01',199,225,13.5,'-2699','52088',74,137);
INSERT INTO "communes" VALUES('79','Surin','08',610,515,13.61,'-3111','51623',44,137);
INSERT INTO "communes" VALUES('79','Lageon','22',368,327,14.02,'-2857','51924',117,165);
INSERT INTO "communes" VALUES('79','Brioux-sur-Boutonne','05',1514,1451,15.49,'-2844','51269',51,94);
INSERT INTO "communes" VALUES('79','Scillé','11',380,390,11.43,'-3217','51778',113,261);
INSERT INTO "communes" VALUES('79','Moutiers-sous-Argenton','02',588,606,36.4,'-3033','52171',68,158);
INSERT INTO "communes" VALUES('79','Bressuire','04',18615,17797,180.59,'-3139','52045',98,236);
INSERT INTO "communes" VALUES('79','Genneton','02',340,358,27.75,'-3071','52283',89,128);
INSERT INTO "communes" VALUES('79','<NAME>','18',472,419,8.25,'-3211','51910',159,221);
INSERT INTO "communes" VALUES('79','Saint-Martin-lès-Melle','16',871,709,9.16,'-2780','51356',80,152);
INSERT INTO "communes" VALUES('79','Cherveux','25',1651,1271,22.25,'-2993','51573',46,116);
INSERT INTO "communes" VALUES('79','<NAME>','08',381,318,16.93,'-2962','51638',78,200);
INSERT INTO "communes" VALUES('79','Saint-Jacques-de-Thouars','31',464,462,5.55,'-2842','52188',47,108);
INSERT INTO "communes" VALUES('79','Usseau','14',913,673,16.24,'-3241','51304',18,49);
INSERT INTO "communes" VALUES('79','Sainte-Blandine','06',697,541,16.27,'-2892','51397',46,111);
INSERT INTO "communes" VALUES('79','Vanzay','13',204,198,11.4,'-2478','51369',126,145);
INSERT INTO "communes" VALUES('79','Pamplie','08',273,271,12.29,'-3085','51708',77,167);
INSERT INTO "communes" VALUES('79','Glénay','27',545,499,21.14,'-2875','52067',87,170);
INSERT INTO "communes" VALUES('79','<NAME>-sous-Argenton','02',439,412,19.55,'-3075','52214',67,157);
INSERT INTO "communes" VALUES('79','Saint-Martin-de-Mâcon','31',328,332,12.28,'-2724','52237',38,113);
INSERT INTO "communes" VALUES('79','Largeasse','18',726,749,30.35,'-3152','51882',163,213);
INSERT INTO "communes" VALUES('79','Châtillon-sur-Thouet','22',2801,2738,16.45,'-2856','51846',117,186);
INSERT INTO "communes" VALUES('79','Bouillé-Saint-Paul','02',422,360,20.38,'-2981','52250',47,107);
INSERT INTO "communes" VALUES('79','Argenton-l''Église','97',1632,1482,25.86,'-2885','52271',35,82);
INSERT INTO "communes" VALUES('79','Saint-Aubin-du-Plain','02',550,554,14.06,'-3125','52138',93,171);
INSERT INTO "communes" VALUES('79','Villiers-sur-Chizé','05',165,168,11.37,'-2931','51222',40,107);
INSERT INTO "communes" VALUES('79','Reffannes','17',374,351,8.58,'-2806','51722',168,216);
INSERT INTO "communes" VALUES('79','Saurais','30',188,168,11.3,'-2758','51799',154,268);
INSERT INTO "communes" VALUES('79','Villiers-en-Plaine','11',1694,1284,27.89,'-3193','51565',29,84);
INSERT INTO "communes" VALUES('79','Chanteloup','18',986,898,20.71,'-3179','51963',152,232);
INSERT INTO "communes" VALUES('79','Forges','17',126,111,10.61,'-2631','51712',154,197);
INSERT INTO "communes" VALUES('79','Marnes','01',241,254,17.19,'-2617','52063',58,110);
INSERT INTO "communes" VALUES('79','Geay','27',342,379,19.25,'-2958','52089',125,187);
INSERT INTO "communes" VALUES('79','Saint-Martin-de-Bernegoue','23',793,697,17.75,'-2983','51375',28,88);
INSERT INTO "communes" VALUES('79','Verruyes','15',911,903,26.24,'-2918','51685',115,224);
INSERT INTO "communes" VALUES('79','<NAME>','30',1145,1080,46.86,'-2760','51862',102,192);
INSERT INTO "communes" VALUES('79','Thouars','95',9822,10652,12.09,'-2835','52195',47,117);
INSERT INTO "communes" VALUES('79','<NAME>','22',2030,1868,19.22,'-2926','51812',132,201);
INSERT INTO "communes" VALUES('79','Sciecq','20',582,473,4.33,'-3119','51526',12,72);
INSERT INTO "communes" VALUES('79','Souvigné','26',869,797,26.41,'-2804','51526',62,176);
INSERT INTO "communes" VALUES('79','Saint-Lin','15',365,358,11.21,'-2864','51698',133,215);
INSERT INTO "communes" VALUES('79','Saint-Martin-de-Sanzay','32',977,871,24.69,'-2819','52312',32,73);
INSERT INTO "communes" VALUES('79','Bouin','10',151,122,8.33,'-2613','51206',96,156);
INSERT INTO "communes" VALUES('79','Pouffonds','16',374,380,7.15,'-2721','51339',93,148);
INSERT INTO "communes" VALUES('79','<NAME>','15',229,250,10.98,'-3006','51729',118,218);
INSERT INTO "communes" VALUES('79','Maisontiers','24',185,186,18.29,'-2873','51974',129,166);
INSERT INTO "communes" VALUES('79','François','25',925,723,9.39,'-2974','51537',34,81);
INSERT INTO "communes" VALUES('79','Voultegon','02',558,483,17.41,'-3172','52146',94,176);
INSERT INTO "communes" VALUES('79','Puihardy','11',67,39,1.18,'-3193','51693',64,140);
INSERT INTO "communes" VALUES('79','Moutiers-sous-Chantemerle','18',609,662,25.64,'-3283','51884',158,247);
INSERT INTO "communes" VALUES('79','La Chapelle-Saint-Étienne','18',321,358,18.81,'-3235','51870',160,233);
INSERT INTO "communes" VALUES('79','Nueil-les-Aubiers','09',5444,2115,98.83,'-3251','52153',94,211);
INSERT INTO "communes" VALUES('79','Saivres','25',1393,1175,21.24,'-2859','51591',52,185);
INSERT INTO "communes" VALUES('79','Cersay','02',999,981,36.78,'-2989','52274',59,112);
INSERT INTO "communes" VALUES('79','Beaulieu-sous-Parthenay','15',664,623,26.72,'-2856','51751',143,228);
INSERT INTO "communes" VALUES('79','Couture-d''Argenson','10',413,388,24.16,'-2690','51103',82,131);
INSERT INTO "communes" VALUES('79','Saint-Aubin-le-Cloud','29',1760,1781,41.83,'-2989','51835',132,231);
INSERT INTO "communes" VALUES('79','Mairé-Levescault','28',569,505,17.38,'-2505','51283',130,159);
INSERT INTO "communes" VALUES('79','Luzay','27',567,516,20.98,'-2813','52137',57,112);
INSERT INTO "communes" VALUES('79','Chérigné','05',131,149,7.88,'-2787','51248',58,115);
INSERT INTO "communes" VALUES('79','Combrand','07',1141,1121,24.62,'-3362','52071',140,222);
INSERT INTO "communes" VALUES('79','Boisserolles','03',62,65,8.64,'-3120','51237',52,96);
INSERT INTO "communes" VALUES('79','Saint-Pierre-des-Échaubrognes','09',1371,1250,28.92,'-3423','52211',102,195);
INSERT INTO "communes" VALUES('79','Vouillé','23',3248,2659,22.3,'-2998','51463',39,93);
INSERT INTO "communes" VALUES('79','Adilly','22',309,285,12.92,'-2939','51878',143,221);
INSERT INTO "communes" VALUES('79','Saint-Amand-sur-Sèvre','09',1287,1229,32.36,'-3479','52076',137,212);
INSERT INTO "communes" VALUES('79','Vançais','13',266,253,16.99,'-2539','51445',117,139);
INSERT INTO "communes" VALUES('79','<NAME>','02',248,189,8.4,'-3119','52163',88,155);
INSERT INTO "communes" VALUES('79','Saint-Jouin-de-Marnes','01',585,560,22.77,'-2655','52091',51,132);
INSERT INTO "communes" VALUES('79','Priaires','14',120,126,6.84,'-3270','51269',19,52);
INSERT INTO "communes" VALUES('79','Sainte-Gemme','27',380,315,8.84,'-2916','52112',112,146);
INSERT INTO "communes" VALUES('79','Étusson','02',341,318,20.97,'-3167','52238',93,156);
INSERT INTO "communes" VALUES('79','Exoudun','19',589,618,25.95,'-2687','51494',80,188);
INSERT INTO "communes" VALUES('79','Coulonges-Thouarsais','27',439,383,17.26,'-2953','52139',99,172);
INSERT INTO "communes" VALUES('79','Exireuil','26',1563,1093,21.06,'-2809','51593',59,191);
INSERT INTO "communes" VALUES('79','Germond-Rouvre','08',1152,880,17.88,'-3063','51617',33,123);
INSERT INTO "communes" VALUES('79','Vallans','12',762,568,9.03,'-3210','51349',17,56);
INSERT INTO "communes" VALUES('79','Pougne-Hérisson','29',372,356,11.86,'-3039','51846',183,231);
INSERT INTO "communes" VALUES('79','Saint-Vincent-la-Châtre','16',608,574,21.18,'-2636','51357',142,177);
INSERT INTO "communes" VALUES('79','Doux','30',238,236,9.85,'-2581','51932',103,153);
INSERT INTO "communes" VALUES('79','Fénery','22',304,325,12.63,'-2997','51875',169,236);
INSERT INTO "communes" VALUES('79','Messé','13',178,159,12.31,'-2469','51405',121,149);
INSERT INTO "communes" VALUES('79','Granzay-Gript','03',902,805,21.55,'-3117','51349',24,63);
INSERT INTO "communes" VALUES('79','Ardin','11',1218,1148,29.59,'-3216','51638',30,141);
INSERT INTO "communes" VALUES('79','Pamproux','19',1678,1626,36.3,'-2658','51551',77,183);
INSERT INTO "communes" VALUES('79','Clussais-la-Pommeraie','28',600,637,31.03,'-2560','51318',127,166);
INSERT INTO "communes" VALUES('79','Saint-Pompain','11',937,805,24.28,'-3263','51602',22,73);
INSERT INTO "communes" VALUES('79','<NAME>','10',77,96,6.28,'-2716','51207',77,159);
INSERT INTO "communes" VALUES('79','Saint-Coutant','13',261,260,11.94,'-2594','51349',124,164);
INSERT INTO "communes" VALUES('79','Mauléon','09',8172,7326,120.64,'-3429','52137',104,226);
INSERT INTO "communes" VALUES('79','Viennay','22',1103,1018,15.71,'-2866','51879',125,178);
INSERT INTO "communes" VALUES('79','Paizay-le-Tort','16',476,454,11.28,'-2777','51311',67,119);
INSERT INTO "communes" VALUES('79','Salles','19',343,337,7.77,'-2707','51539',72,143);
INSERT INTO "communes" VALUES('79','<NAME>','12',919,783,14.17,'-3301','51439',0,29);
INSERT INTO "communes" VALUES('79','Arçais','12',608,575,15.12,'-3364','51440',1,36);
INSERT INTO "communes" VALUES('79','<NAME>','14',530,366,8.3,'-3288','51371',6,26);
INSERT INTO "communes" VALUES('79','Saint-Romans-des-Champs','23',177,169,4.1,'-2980','51338',54,76);
INSERT INTO "communes" VALUES('79','Chantecorps','17',331,296,19.1,'-2770','51663',156,211);
INSERT INTO "communes" VALUES('79','Pliboux','28',201,185,15.29,'-2455','51298',126,154);
INSERT INTO "communes" VALUES('79','Aubigné','10',210,214,29.15,'-2754','51173',99,159);
INSERT INTO "communes" VALUES('79','Asnières-en-Poitou','05',193,188,19.06,'-2816','51226',60,142);
INSERT INTO "communes" VALUES('79','Chizé','05',913,878,23.5,'-2982','51240',37,105);
INSERT INTO "communes" VALUES('79','Pers','28',75,70,4.73,'-2522','51354',127,151);
INSERT INTO "communes" VALUES('79','Saint-Cyr-la-Lande','31',351,312,8.83,'-2756','52280',39,56);
INSERT INTO "communes" VALUES('79','Luché-Thouarsais','27',421,327,13.46,'-2931','52120',101,159);
INSERT INTO "communes" VALUES('79','Soudan','19',452,379,23.29,'-2719','51581',120,183);
INSERT INTO "communes" VALUES('79','Montravers','07',379,286,10.12,'-3394','52032',141,198);
INSERT INTO "communes" VALUES('79','<NAME>','07',1069,1023,19.09,'-3323','52068',117,232);
INSERT INTO "communes" VALUES('79','Pressigny','30',204,198,12.12,'-2698','51942',102,162);
INSERT INTO "communes" VALUES('79','<NAME>','19',262,286,16.36,'-2773','51466',119,189);
INSERT INTO "communes" VALUES('79','Sompt','16',311,285,12.09,'-2710','51286',94,160);
INSERT INTO "communes" VALUES('79','Crézières','10',55,65,4.25,'-2748','51203',96,149);
INSERT INTO "communes" VALUES('79','Azay-le-Brûlé','25',1806,1445,22.1,'-2915','51554',41,131);
INSERT INTO "communes" VALUES('79','Bessines','12',1589,1357,11.41,'-3169','51447',2,30);
INSERT INTO "communes" VALUES('79','Saint-Gelais','20',1743,1456,16.4,'-3029','51536',30,93);
INSERT INTO "communes" VALUES('79','Béceleuf','11',698,601,19.04,'-3160','51634',39,122);
INSERT INTO "communes" VALUES('79','Pierrefitte','27',333,307,15.91,'-2931','52077',110,168);
INSERT INTO "communes" VALUES('79','Brieuil-sur-Chizé','05',117,66,8.06,'-2955','51243',40,82);
INSERT INTO "communes" VALUES('79','Brie','31',199,211,11.96,'-2641','52133',50,71);
INSERT INTO "communes" VALUES('79','Oiron','31',961,946,36.75,'-2687','52168',47,133);
INSERT INTO "communes" VALUES('79','Trayes','18',133,131,7.2,'-3127','51874',179,212);
INSERT INTO "communes" VALUES('79','La Chapelle-Bertrand','22',512,400,19.39,'-2786','51802',123,254);
INSERT INTO "communes" VALUES('79','Caunay','28',167,173,14.42,'-2496','51333',128,155);
INSERT INTO "communes" VALUES('79','Sainte-Verge','32',1438,1329,12.83,'-2832','52231',39,87);
INSERT INTO "communes" VALUES('79','Secondigné-sur-Belle','05',545,460,24.39,'-2928','51293',42,83);
INSERT INTO "communes" VALUES('79','Clessé','18',934,894,29.08,'-3047','51907',138,236);
INSERT INTO "communes" VALUES('79','Rom','13',842,785,52.38,'-2468','51437',110,154);
INSERT INTO "communes" VALUES('79','La Chapelle-Saint-Laurent','18',1854,1725,28.85,'-3126','51940',149,235);
INSERT INTO "communes" VALUES('79','Tessonnière','24',313,289,14.6,'-2808','52014',108,159);
INSERT INTO "communes" VALUES('79','Cours','08',541,414,14.92,'-3055','51663',63,169);
INSERT INTO "communes" VALUES('79','Luché-sur-Brioux','05',143,139,5.16,'-2762','51256',63,101);
INSERT INTO "communes" VALUES('79','<NAME>','05',128,140,11.81,'-3035','51215',35,97);
INSERT INTO "communes" VALUES('79','Faye-sur-Ardin','11',632,403,15.03,'-3165','51609',44,110);
INSERT INTO "communes" VALUES('79','Saint-Maxire','20',1131,1127,14.41,'-3127','51555',16,66);
INSERT INTO "communes" VALUES('79','Champdeniers-Saint-Denis','08',1675,1491,21.81,'-3046','51649',67,171);
INSERT INTO "communes" VALUES('79','Saint-Symphorien','12',1800,1508,19.01,'-3142','51404',5,55);
INSERT INTO "communes" VALUES('79','Sainte-Soline','13',348,367,25.65,'-2556','51385',117,145);
INSERT INTO "communes" VALUES('79','<NAME>','14',561,429,8.55,'-3247','51340',27,72);
INSERT INTO "communes" VALUES('79','Thorigny-sur-le-Mignon','03',85,59,5.26,'-3211','51281',26,43);
INSERT INTO "communes" VALUES('79','Maisonnay','16',258,286,5.17,'-2664','51321',145,175);
INSERT INTO "communes" VALUES('79','Argenton-les-Vallées','02',1602,1038,29.06,'-3096','52205',74,121);
INSERT INTO "communes" VALUES('79','Soutiers','15',265,199,5.43,'-2906','51744',142,208);
INSERT INTO "communes" VALUES('79','Prahecq','23',2069,1650,24.95,'-2980','51399',24,78);
INSERT INTO "communes" VALUES('79','Mellé','16',3657,3845,9.76,'-2757','51358',87,174);
INSERT INTO "communes" VALUES('79','Périgné','05',1020,905,21.18,'-2879','51320',45,103);
INSERT INTO "communes" VALUES('79','<NAME>','07',2294,2225,55.94,'-3318','51967',147,227);
INSERT INTO "communes" VALUES('79','Aubigny','30',178,182,11.98,'-2729','51934',123,166);
INSERT INTO "communes" VALUES('79','Vautebis','17',122,123,7.26,'-2766','51705',161,211);
INSERT INTO "communes" VALUES('79','Vouhé','15',368,333,13.95,'-2872','51731',149,226);
INSERT INTO "communes" VALUES('79','Paizay-le-Chapt','05',265,257,20.34,'-2793','51203',76,149);
INSERT INTO "communes" VALUES('80','Moyenneville','29',679,626,14.12,'-652','55636',17,106);
INSERT INTO "communes" VALUES('80','Bussu','33',222,229,6.79,'711','55495',52,129);
INSERT INTO "communes" VALUES('80','Marquaix','36',219,210,5.29,'821','55494',65,142);
INSERT INTO "communes" VALUES('80','Crouy-Saint-Pierre','34',328,303,10.51,'-277','55522',10,96);
INSERT INTO "communes" VALUES('80','Beaumetz','12',217,170,6.16,'-240','55712',93,144);
INSERT INTO "communes" VALUES('80','Méricourt-en-Vimeu','25',117,106,3.31,'-431','55440',53,125);
INSERT INTO "communes" VALUES('80','Templeux-le-Guérard','36',210,213,6.48,'902','55515',79,145);
INSERT INTO "communes" VALUES('80','Mailly-Raineval','05',243,193,14.3,'131','55273',39,115);
INSERT INTO "communes" VALUES('80','Famechon','35',236,173,4.84,'-328','55289',75,183);
INSERT INTO "communes" VALUES('80','Canchy','31',316,307,6.47,'-510','55763',32,79);
INSERT INTO "communes" VALUES('80','Fontaine-le-Sec','32',149,151,7.44,'-586','55493',65,129);
INSERT INTO "communes" VALUES('80','Méricourt-l''Abbé','14',571,482,6.95,'254','55502',33,114);
INSERT INTO "communes" VALUES('80','Mézerolles','12',199,165,6.44,'-113','55764',41,116);
INSERT INTO "communes" VALUES('80','Bus-lès-Artois','03',147,146,6.74,'228','55671',108,153);
INSERT INTO "communes" VALUES('80','Villers-Bocage','41',1437,1308,14.17,'-21','55552',85,136);
INSERT INTO "communes" VALUES('80','Gruny','38',325,300,7.01,'538','55255',84,97);
INSERT INTO "communes" VALUES('80','Balâtre','38',84,54,3.3,'588','55233',82,94);
INSERT INTO "communes" VALUES('80','Warsy','27',119,108,2.98,'347','55221',52,105);
INSERT INTO "communes" VALUES('80','Vauchelles-lès-Domart','20',125,106,3.92,'-312','55617',42,114);
INSERT INTO "communes" VALUES('80','Mézières-en-Santerre','28',554,493,10.71,'243','55318',63,105);
INSERT INTO "communes" VALUES('80','Fontaine-sur-Maye','19',152,129,5.67,'-456','55819',33,75);
INSERT INTO "communes" VALUES('80','Morisel','28',524,427,6.43,'154','55299',32,109);
INSERT INTO "communes" VALUES('80','Vironchaux','39',419,383,16.14,'-572','55877',24,72);
INSERT INTO "communes" VALUES('80','Croix-Moligneaux','24',314,309,7.88,'741','55350',59,88);
INSERT INTO "communes" VALUES('80','Biaches','33',380,416,6.52,'636','55472',47,91);
INSERT INTO "communes" VALUES('80','Ignaucourt','28',91,82,4.19,'263','55362',46,99);
INSERT INTO "communes" VALUES('80','Saint-Maulvis','32',258,227,6.21,'-557','55450',98,157);
INSERT INTO "communes" VALUES('80','Bernay-en-Ponthieu','39',250,202,9.97,'-658','55854',2,47);
INSERT INTO "communes" VALUES('80','Quevauvillers','26',1099,1055,8.82,'-281','55360',95,157);
INSERT INTO "communes" VALUES('80','Hombleux','30',1058,1009,13.47,'721','55265',52,76);
INSERT INTO "communes" VALUES('80','Vecquemont','18',545,498,1.87,'127','55443',22,50);
INSERT INTO "communes" VALUES('80','Maison-Roland','04',117,110,4.91,'-350','55698',63,123);
INSERT INTO "communes" VALUES('80','<NAME>','18',523,519,9.12,'260','55444',28,101);
INSERT INTO "communes" VALUES('80','Berneuil','20',264,214,5.51,'-184','55661',78,146);
INSERT INTO "communes" VALUES('80','Clairy-Saulchoix','26',388,385,6.52,'-175','55395',59,124);
INSERT INTO "communes" VALUES('80','Vaudricourt','46',402,450,2.98,'-874','55690',37,68);
INSERT INTO "communes" VALUES('80','Avesnes-Chaussoy','32',69,52,6.12,'-514','55446',74,147);
INSERT INTO "communes" VALUES('80','Tailly','26',62,64,4.05,'-433','55478',32,87);
INSERT INTO "communes" VALUES('80','Barly','12',167,172,11.64,'-70','55780',47,156);
INSERT INTO "communes" VALUES('80','Franleu','40',513,523,8.43,'-773','55665',38,90);
INSERT INTO "communes" VALUES('80','Bernes','36',299,331,7.61,'847','55454',77,114);
INSERT INTO "communes" VALUES('80','Froyelles','19',111,66,2.79,'-454','55809',49,82);
INSERT INTO "communes" VALUES('80','Lanches-Saint-Hilaire','20',126,109,5.45,'-219','55671',48,136);
INSERT INTO "communes" VALUES('80','Englebelmer','03',262,242,9.41,'303','55623',95,146);
INSERT INTO "communes" VALUES('80','Doullens','21',6717,6277,33.4,'4','55730',52,152);
INSERT INTO "communes" VALUES('80','Miannay','29',553,552,8.81,'-686','55663',7,82);
INSERT INTO "communes" VALUES('80','Aumâtre','32',202,196,5.57,'-627','55466',86,151);
INSERT INTO "communes" VALUES('80','Vauchelles-les-Quesnoy','01',871,830,6.14,'-497','55670',19,79);
INSERT INTO "communes" VALUES('80','Marieux','03',111,82,4.07,'118','55673',75,133);
INSERT INTO "communes" VALUES('80','Flixecourt','34',3255,2986,11.84,'-284','55570',6,105);
INSERT INTO "communes" VALUES('80','Lucheux','21',593,569,27.65,'82','55774',70,174);
INSERT INTO "communes" VALUES('80','Courcelette','06',147,133,4.66,'456','55620',109,156);
INSERT INTO "communes" VALUES('80','Nampty','17',244,205,5.21,'-148','55327',40,145);
INSERT INTO "communes" VALUES('80','Maurepas','16',203,215,10.88,'567','55544',50,138);
INSERT INTO "communes" VALUES('80','Eaucourt-sur-Somme','02',412,376,4.42,'-501','55627',6,103);
INSERT INTO "communes" VALUES('80','Naours','20',1147,1121,16.55,'-67','55595',61,154);
INSERT INTO "communes" VALUES('80','Béhencourt','41',355,353,7.06,'129','55528',43,122);
INSERT INTO "communes" VALUES('80','Saint-Riquier','04',1261,1184,14.48,'-433','55703',19,97);
INSERT INTO "communes" VALUES('80','Louvrechy','05',199,162,5.78,'65','55259',88,140);
INSERT INTO "communes" VALUES('80','Forceville','03',171,161,7.57,'245','55624',100,150);
INSERT INTO "communes" VALUES('80','Quend','39',1381,1200,37.78,'-778','55907',2,29);
INSERT INTO "communes" VALUES('80','Aumont','25',140,116,3.31,'-455','55427',90,145);
INSERT INTO "communes" VALUES('80','Saint-Gratien','41',369,371,6.95,'80','55518',48,113);
INSERT INTO "communes" VALUES('80','Oisemont','32',1189,1239,8.04,'-633','55506',80,135);
INSERT INTO "communes" VALUES('80','Port-le-Grand','31',288,313,11.28,'-654','55724',2,64);
INSERT INTO "communes" VALUES('80','Boufflers','19',113,129,5.62,'-351','55847',17,89);
INSERT INTO "communes" VALUES('80','Bettembos','35',98,97,4.16,'-508','55338',169,192);
INSERT INTO "communes" VALUES('80','Liéramont','36',212,182,7.29,'792','55549',113,152);
INSERT INTO "communes" VALUES('80','Cavillon','34',107,94,5.46,'-281','55469',40,126);
INSERT INTO "communes" VALUES('80','Fricourt','06',502,448,11.3,'420','55554',54,134);
INSERT INTO "communes" VALUES('80','Malpart','27',66,59,4.25,'180','55214',80,112);
INSERT INTO "communes" VALUES('80','Vaux-sur-Somme','18',308,339,5.18,'238','55468',27,111);
INSERT INTO "communes" VALUES('80','Woignarue','11',822,734,16.51,'-935','55678',0,87);
INSERT INTO "communes" VALUES('80','Rainneville','41',804,761,7.11,'20','55526',79,131);
INSERT INTO "communes" VALUES('80','Mouflers','04',87,83,3.53,'-320','55608',30,113);
INSERT INTO "communes" VALUES('80','Cartigny','33',737,699,15.15,'748','55460',55,107);
INSERT INTO "communes" VALUES('80','Équennes-Éramecourt','35',313,247,9.08,'-418','55260',107,187);
INSERT INTO "communes" VALUES('80','Cerisy','14',481,387,10.94,'336','55452',32,92);
INSERT INTO "communes" VALUES('80','Montigny-sur-l''Hallue','41',215,197,4.91,'118','55533',43,116);
INSERT INTO "communes" VALUES('80','Lihons','15',384,377,12.42,'477','55360',84,112);
INSERT INTO "communes" VALUES('80','Allenay','11',247,278,2.18,'-939','55652',62,117);
INSERT INTO "communes" VALUES('80','Cayeux-en-Santerre','28',120,79,5.44,'292','55356',49,96);
INSERT INTO "communes" VALUES('80','Harponville','03',168,125,2.75,'184','55595',69,147);
INSERT INTO "communes" VALUES('80','Rouy-le-Petit','30',126,125,3.27,'680','55303',52,77);
INSERT INTO "communes" VALUES('80','Fleury','17',241,200,9.42,'-242','55268',55,185);
INSERT INTO "communes" VALUES('80','Guyencourt-sur-Noye','13',164,200,3.81,'38','55311',37,115);
INSERT INTO "communes" VALUES('80','Bourdon','34',383,373,6.97,'-290','55542',8,78);
INSERT INTO "communes" VALUES('80','Tilloy-lès-Conty','17',256,228,6.34,'-178','55283',48,135);
INSERT INTO "communes" VALUES('80','Frettemeule','22',295,238,7.45,'-769','55556',61,127);
INSERT INTO "communes" VALUES('80','Allery','23',802,745,13.07,'-485','55516',28,127);
INSERT INTO "communes" VALUES('80','Argoules','39',335,338,9.45,'-560','55936',6,77);
INSERT INTO "communes" VALUES('80','Champien','38',295,250,8.77,'582','55216',82,99);
INSERT INTO "communes" VALUES('80','Folleville','05',148,72,6.09,'32','55196',62,158);
INSERT INTO "communes" VALUES('80','Contoire','28',408,339,7.14,'245','55246',41,115);
INSERT INTO "communes" VALUES('80','<NAME>','19',392,426,11.68,'-391','55857',12,92);
INSERT INTO "communes" VALUES('80','Sauvillers-Mongival','05',186,179,5.18,'148','55250',47,112);
INSERT INTO "communes" VALUES('80','Namps-Maisnil','17',1010,1002,21.96,'-255','55337',55,149);
INSERT INTO "communes" VALUES('80','Sentelie','17',208,215,5.53,'-344','55249',122,187);
INSERT INTO "communes" VALUES('80','Thézy-Glimont','13',467,419,6.76,'104','55348',30,114);
INSERT INTO "communes" VALUES('80','Framicourt','22',169,148,5.02,'-737','55508',119,166);
INSERT INTO "communes" VALUES('80','Dominois','19',195,141,6.15,'-538','55924',7,74);
INSERT INTO "communes" VALUES('80','Blangy-Tronville','13',549,553,12.44,'97','55422',22,117);
INSERT INTO "communes" VALUES('80','Millencourt-en-Ponthieu','31',375,329,8.62,'-483','55724',14,87);
INSERT INTO "communes" VALUES('80','Bray-sur-Somme','14',1238,1310,16.81,'423','55489',32,122);
INSERT INTO "communes" VALUES('80','Lanchères','40',1041,836,16.39,'-869','55732',1,47);
INSERT INTO "communes" VALUES('80','Bouzincourt','06',541,509,8.11,'306','55585',67,134);
INSERT INTO "communes" VALUES('80','Hallu','37',173,154,3.85,'503','55325',76,91);
INSERT INTO "communes" VALUES('80','Bazentin','06',76,77,5.1,'474','55589',94,159);
INSERT INTO "communes" VALUES('80','Bacouel-sur-Selle','17',474,572,6.24,'-125','55367',36,121);
INSERT INTO "communes" VALUES('80','Guillaucourt','37',387,305,6.37,'327','55380',52,96);
INSERT INTO "communes" VALUES('80','Tilloloy','38',369,388,6.37,'457','55159',87,109);
INSERT INTO "communes" VALUES('80','Vron','39',860,723,20.67,'-648','55903',2,68);
INSERT INTO "communes" VALUES('80','Hem-Hardinval','21',364,277,10.25,'-39','55737',47,165);
INSERT INTO "communes" VALUES('80','Cizancourt','30',45,37,1.83,'651','55383',48,88);
INSERT INTO "communes" VALUES('80','Inval-Boiron','32',93,90,3.32,'-654','55426',75,176);
INSERT INTO "communes" VALUES('80','Boismont','40',462,497,15.57,'-724','55725',0,46);
INSERT INTO "communes" VALUES('80','Chaulnes','15',1954,1905,8.46,'520','55351',80,104);
INSERT INTO "communes" VALUES('80','Monchy-Lagache','24',681,739,15.44,'787','55391',57,95);
INSERT INTO "communes" VALUES('80','Saint-Maxent','29',414,368,6.38,'-675','55563',93,118);
INSERT INTO "communes" VALUES('80','Neufmoulin','01',348,345,4.43,'-473','55699',11,86);
INSERT INTO "communes" VALUES('80','Villers-lès-Roye','38',224,204,6.31,'440','55229',62,99);
INSERT INTO "communes" VALUES('80','Arrest','40',869,823,11.15,'-800','55699',7,72);
INSERT INTO "communes" VALUES('80','Hérissart','03',546,494,7.39,'89','55586',79,151);
INSERT INTO "communes" VALUES('80','Halloy-lès-Pernois','20',367,355,6.2,'-155','55611',38,128);
INSERT INTO "communes" VALUES('80','Guillemont','16',131,114,3.27,'543','55571',94,156);
INSERT INTO "communes" VALUES('80','Béalcourt','12',103,105,3.61,'-169','55783',35,103);
INSERT INTO "communes" VALUES('80','Bouquemaison','21',519,486,7.15,'1','55791',95,159);
INSERT INTO "communes" VALUES('80','Bellancourt','01',480,429,5.98,'-474','55656',38,95);
INSERT INTO "communes" VALUES('80','Fonches-Fonchette','38',150,134,5.02,'534','55306',64,89);
INSERT INTO "communes" VALUES('80','Ercourt','29',136,124,4.2,'-683','55603',58,113);
INSERT INTO "communes" VALUES('80','Rogy','05',138,94,6.77,'-142','55234',98,167);
INSERT INTO "communes" VALUES('80','Noyelles-en-Chaussée','19',259,246,10.47,'-396','55787',58,106);
INSERT INTO "communes" VALUES('80','Gorges','12',43,47,4.87,'-177','55679',95,147);
INSERT INTO "communes" VALUES('80','Sailly-Saillisel','16',495,410,9.39,'640','55590',108,157);
INSERT INTO "communes" VALUES('80','Morvillers-Saint-Saturnin','35',394,360,12.78,'-568','55312',188,216);
INSERT INTO "communes" VALUES('80','Senlis-le-Sec','03',283,302,8.28,'269','55584',72,137);
INSERT INTO "communes" VALUES('80','Outrebois','12',303,253,9.57,'-94','55750',42,130);
INSERT INTO "communes" VALUES('80','Ville-sur-Ancre','14',279,235,5.95,'306','55514',37,110);
INSERT INTO "communes" VALUES('80','Saint-Vaast-en-Chaussée','41',518,563,4.72,'-146','55522',20,95);
INSERT INTO "communes" VALUES('80','Bray-lès-Mareuil','02',250,220,5.43,'-535','55616',4,104);
INSERT INTO "communes" VALUES('80','Yvrench','19',301,247,9.29,'-369','55754',85,130);
INSERT INTO "communes" VALUES('80','Chuignolles','14',158,137,4.86,'433','55446',36,88);
INSERT INTO "communes" VALUES('80','Louvencourt','03',268,263,7.74,'181','55660',95,152);
INSERT INTO "communes" VALUES('80','Brévillers','21',105,87,1.83,'46','55795',130,156);
INSERT INTO "communes" VALUES('80','Treux','14',243,244,2.24,'283','55509',37,110);
INSERT INTO "communes" VALUES('80','Grattepanche','13',293,269,6.43,'-47','55319',69,125);
INSERT INTO "communes" VALUES('80','Péronne','33',7887,8387,14.16,'666','55480',47,117);
INSERT INTO "communes" VALUES('80','Montonvillers','41',95,71,1.48,'-45','55548',104,130);
INSERT INTO "communes" VALUES('80','Hervilly','36',175,204,6.18,'866','55484',72,133);
INSERT INTO "communes" VALUES('80','Pertain','30',382,318,7.88,'592','55346',79,91);
INSERT INTO "communes" VALUES('80','Autheux','12',112,108,8.27,'-119','55715',77,161);
INSERT INTO "communes" VALUES('80','Marcelcave','18',1089,977,12.49,'264','55389',47,102);
INSERT INTO "communes" VALUES('80','Daours','18',773,769,8.65,'125','55447',22,96);
INSERT INTO "communes" VALUES('80','Limeux','23',140,131,8.62,'-578','55577',32,112);
INSERT INTO "communes" VALUES('80','Y','24',85,88,2.73,'728','55337',56,82);
INSERT INTO "communes" VALUES('80','Cardonnette','41',447,416,5.46,'25','55502',56,117);
INSERT INTO "communes" VALUES('80','Bosquel','17',295,293,9.48,'-132','55266',74,157);
INSERT INTO "communes" VALUES('80','Beaucamps-le-Jeune','25',191,187,6.72,'-627','55351',155,211);
INSERT INTO "communes" VALUES('80','Ault','11',1697,2072,5.99,'-987','55668',0,107);
INSERT INTO "communes" VALUES('80','Biencourt','22',124,116,2.22,'-716','55529',98,129);
INSERT INTO "communes" VALUES('80','Friville-Escarbotin','46',4541,4646,8.86,'-874','55656',55,112);
INSERT INTO "communes" VALUES('80','Bernaville','12',1094,997,17.34,'-192','55702',94,158);
INSERT INTO "communes" VALUES('80','Morlancourt','14',365,318,11.87,'325','55501',51,113);
INSERT INTO "communes" VALUES('80','Breuil','38',54,66,2.17,'688','55264',57,73);
INSERT INTO "communes" VALUES('80','Beaucamps-le-Vieux','25',1437,1385,5.02,'-619','55383',127,201);
INSERT INTO "communes" VALUES('80','Buverchy','30',40,43,1.85,'704','55256',56,64);
INSERT INTO "communes" VALUES('80','Havernas','20',420,375,4.48,'-112','55596',51,139);
INSERT INTO "communes" VALUES('80','Neuville-Coppegueule','32',583,538,8.66,'-646','55387',75,204);
INSERT INTO "communes" VALUES('80','Pont-de-Metz','44',2195,1659,7.69,'-105','55422',22,85);
INSERT INTO "communes" VALUES('80','Guignemicourt','26',244,245,4.48,'-180','55411',74,117);
INSERT INTO "communes" VALUES('80','Esclainvillers','05',148,130,5.58,'64','55211',95,158);
INSERT INTO "communes" VALUES('80','Soyécourt','15',185,204,5.16,'510','55403',65,87);
INSERT INTO "communes" VALUES('80','Grivillers','27',65,58,3.39,'412','55179',87,102);
INSERT INTO "communes" VALUES('80','Fresnes-Mazancourt','15',123,134,5.7,'588','55391',60,87);
INSERT INTO "communes" VALUES('80','Vermandovillers','15',135,119,5.83,'495','55389',78,97);
INSERT INTO "communes" VALUES('80','Matigny','24',520,511,6.99,'746','55328',57,82);
INSERT INTO "communes" VALUES('80','Framerville-Rainecourt','15',454,295,9.91,'418','55401',49,94);
INSERT INTO "communes" VALUES('80','Arry','39',193,164,7.34,'-684','55865',2,39);
INSERT INTO "communes" VALUES('80','Talmas','41',1093,1051,19.2,'-11','55589',87,154);
INSERT INTO "communes" VALUES('80','<NAME>','28',659,567,10.17,'240','55278',53,109);
INSERT INTO "communes" VALUES('80','Athies','24',623,633,10.67,'713','55394',47,88);
INSERT INTO "communes" VALUES('80','Forest-l''Abbaye','31',324,305,3.3,'-571','55780',29,63);
INSERT INTO "communes" VALUES('80','Verpillières','38',166,169,4.87,'541','55186',74,85);
INSERT INTO "communes" VALUES('80','Coisy','41',286,246,6.08,'-10','55511',71,129);
INSERT INTO "communes" VALUES('80','Fienvillers','12',629,547,11.69,'-120','55687',97,167);
INSERT INTO "communes" VALUES('80','Rubempré','41',762,675,10.08,'55','55577',89,147);
INSERT INTO "communes" VALUES('80','Chaussoy-Epagny','05',585,621,11.59,'-6','55252',52,143);
INSERT INTO "communes" VALUES('80','Ovillers-la-Boisselle','06',417,371,9.61,'401','55591',80,153);
INSERT INTO "communes" VALUES('80','Aigneville','22',845,659,10.76,'-800','55595',89,124);
INSERT INTO "communes" VALUES('80','Saint-Aubin-Montenoy','26',226,209,10.41,'-379','55385',66,160);
INSERT INTO "communes" VALUES('80','Hallencourt','23',1416,1348,20.55,'-511','55546',35,121);
INSERT INTO "communes" VALUES('80','Domvast','31',341,215,12.85,'-461','55777',39,83);
INSERT INTO "communes" VALUES('80','<NAME>','27',99,50,2.37,'159','55142',72,135);
INSERT INTO "communes" VALUES('80','Béthencourt-sur-Somme','30',133,110,2.87,'697','55328',53,83);
INSERT INTO "communes" VALUES('80','L''Étoile','34',1239,1305,7.9,'-338','55582',7,113);
INSERT INTO "communes" VALUES('80','Nesle','30',2501,2451,7.72,'637','55287',57,82);
INSERT INTO "communes" VALUES('80','Montdidier','27',6119,6333,12.58,'259','55165',55,113);
INSERT INTO "communes" VALUES('80','Bettencourt-Saint-Ouen','34',623,410,8.04,'-250','55584',17,103);
INSERT INTO "communes" VALUES('80','Laucourt','38',176,193,6.37,'468','55194',74,97);
INSERT INTO "communes" VALUES('80','Fontaine-sur-Somme','23',539,469,15.18,'-442','55589',7,102);
INSERT INTO "communes" VALUES('80','Picquigny','34',1357,1388,10.31,'-214','55494',11,107);
INSERT INTO "communes" VALUES('80','Tincourt-Boucly','36',384,389,12.8,'784','55488',59,133);
INSERT INTO "communes" VALUES('80','Éclusier-Vaux','14',88,69,6.34,'508','55496',37,115);
INSERT INTO "communes" VALUES('80','Ercheu','38',805,703,14.15,'672','55224',58,95);
INSERT INTO "communes" VALUES('80','Querrieu','41',673,686,10.03,'104','55487',32,104);
INSERT INTO "communes" VALUES('80','Grécourt','30',23,26,2.34,'722','55250',61,71);
INSERT INTO "communes" VALUES('80','Heucourt-Croquoison','32',117,101,5,'-504','55479',48,129);
INSERT INTO "communes" VALUES('80','Gamaches','22',2817,2959,9.92,'-866','55541',19,126);
INSERT INTO "communes" VALUES('80','Omiécourt','15',241,223,5.54,'566','55343',79,91);
INSERT INTO "communes" VALUES('80','Brassy','17',66,51,2.41,'-326','55255',129,187);
INSERT INTO "communes" VALUES('80','Herleville','15',149,99,6.05,'461','55402',48,91);
INSERT INTO "communes" VALUES('80','Harbonnières','37',1470,1305,15.37,'370','55388',60,94);
INSERT INTO "communes" VALUES('80','Roye','38',6326,6528,15.55,'504','55222',67,96);
INSERT INTO "communes" VALUES('80','Courcelles-sous-Thoix','17',53,55,4.37,'-286','55247',72,187);
INSERT INTO "communes" VALUES('80','Hancourt','36',103,98,4.06,'818','55448',82,110);
INSERT INTO "communes" VALUES('80','Crémery','38',155,68,2.58,'542','55269',78,96);
INSERT INTO "communes" VALUES('80','Buire-Courcelles','33',245,284,7.76,'753','55475',56,133);
INSERT INTO "communes" VALUES('80','Villers-Campsart','25',137,156,4.45,'-557','55409',128,176);
INSERT INTO "communes" VALUES('80','Marquivillers','27',155,161,5.78,'397','55193',58,100);
INSERT INTO "communes" VALUES('80','Carrépuis','38',288,218,5.5,'539','55227',83,97);
INSERT INTO "communes" VALUES('80','Bussy-lès-Daours','18',337,325,8.1,'106','55456',31,86);
INSERT INTO "communes" VALUES('80','Hornoy-le-Bourg','25',1664,1449,51.23,'-484','55384',68,201);
INSERT INTO "communes" VALUES('80','Licourt','30',395,391,6.93,'620','55361',53,104);
INSERT INTO "communes" VALUES('80','Faverolles','27',155,139,6.7,'315','55165',80,109);
INSERT INTO "communes" VALUES('80','Thennes','28',470,356,8,'149','55345',32,110);
INSERT INTO "communes" VALUES('80','Méréaucourt','35',7,10,3.04,'-447','55255',120,187);
INSERT INTO "communes" VALUES('80','Salouël','13',4186,4160,4.58,'-105','55411',27,105);
INSERT INTO "communes" VALUES('80','Rancourt','16',185,143,2.91,'636','55560',109,151);
INSERT INTO "communes" VALUES('80','Lœuilly','17',853,807,17.21,'-179','55307',42,152);
INSERT INTO "communes" VALUES('80','Éterpigny','33',176,184,4.05,'654','55434',47,82);
INSERT INTO "communes" VALUES('80','<NAME>','32',105,97,3.8,'-627','55419',81,192);
INSERT INTO "communes" VALUES('80','Puchevillers','03',522,487,14.24,'82','55617',77,151);
INSERT INTO "communes" VALUES('80','Moyencourt-lès-Poix','35',164,158,10.45,'-335','55337',104,177);
INSERT INTO "communes" VALUES('80','Remaugies','27',119,97,4.14,'367','55142',89,115);
INSERT INTO "communes" VALUES('80','Estrées-sur-Noye','13',281,257,5.96,'-7','55319',79,126);
INSERT INTO "communes" VALUES('80','Sailly-le-Sec','14',356,267,6.74,'273','55467',27,112);
INSERT INTO "communes" VALUES('80','Beaufort-en-Santerre','37',188,138,4.59,'369','55306',84,98);
INSERT INTO "communes" VALUES('80','Rouy-le-Grand','30',109,103,3.81,'691','55306',52,79);
INSERT INTO "communes" VALUES('80','Fricamps','35',142,104,5.55,'-377','55355',118,179);
INSERT INTO "communes" VALUES('80','Thory','05',172,150,5.19,'109','55244',85,132);
INSERT INTO "communes" VALUES('80','Grébault-Mesnil','29',228,113,2.58,'-684','55584',93,113);
INSERT INTO "communes" VALUES('80','Rollot','27',768,631,12,'353','55102',83,126);
INSERT INTO "communes" VALUES('80','Maisnières','22',515,505,12.73,'-800','55573',39,116);
INSERT INTO "communes" VALUES('80','Jumel','05',358,368,8.89,'17','55288',48,135);
INSERT INTO "communes" VALUES('80','Roiglise','38',174,163,5.67,'549','55203',67,97);
INSERT INTO "communes" VALUES('80','Villers-Tournelle','27',161,146,5.93,'141','55171',75,155);
INSERT INTO "communes" VALUES('80','Courtemanche','27',96,83,4.15,'225','55180',50,116);
INSERT INTO "communes" VALUES('80','Marestmontiers','27',104,77,2.48,'215','55208',45,107);
INSERT INTO "communes" VALUES('80','Sourdon','05',283,257,5.12,'68','55234',93,149);
INSERT INTO "communes" VALUES('80','Aubigny','18',496,536,9.75,'162','55445',22,90);
INSERT INTO "communes" VALUES('80','Abbeville','98',24155,24568,26.42,'-557','55673',2,76);
INSERT INTO "communes" VALUES('80','Cléry-sur-Somme','33',534,514,18.78,'610','55508',45,144);
INSERT INTO "communes" VALUES('80','Bettencourt-Rivière','26',213,212,7.38,'-399','55552',11,94);
INSERT INTO "communes" VALUES('80','Bayencourt','03',83,73,1.84,'263','55702',110,157);
INSERT INTO "communes" VALUES('80','Cerisy-Buleux','22',256,262,5.6,'-664','55529',96,127);
INSERT INTO "communes" VALUES('80','Cachy','13',251,227,6.11,'160','55391',54,112);
INSERT INTO "communes" VALUES('80','Ételfay','27',391,391,8.12,'314','55180',88,110);
INSERT INTO "communes" VALUES('80','Boussicourt','27',78,53,3.32,'266','55226',44,108);
INSERT INTO "communes" VALUES('80','Franqueville','20',167,108,6.26,'-255','55660',53,127);
INSERT INTO "communes" VALUES('80','Berteaucourt-lès-Thennes','28',419,431,2.62,'142','55348',33,107);
INSERT INTO "communes" VALUES('80','Bonneville','20',346,348,10.2,'-97','55647',78,166);
INSERT INTO "communes" VALUES('80','Tertry','24',182,186,4.93,'815','55403',62,96);
INSERT INTO "communes" VALUES('80','Miraumont','06',707,655,13.96,'437','55661',77,142);
INSERT INTO "communes" VALUES('80','Épagne-Épagnette','02',577,552,6.56,'-516','55636',3,93);
INSERT INTO "communes" VALUES('80','Cramont','04',300,262,9.56,'-313','55720',70,136);
INSERT INTO "communes" VALUES('80','Saleux','13',2410,2502,8.02,'-109','55398',30,116);
INSERT INTO "communes" VALUES('80','Conty','17',1752,1658,23.72,'-205','55267',46,182);
INSERT INTO "communes" VALUES('80','Plachy-Buyon','17',892,927,10.13,'-131','55351',37,122);
INSERT INTO "communes" VALUES('80','Bouvaincourt-sur-Bresle','22',848,693,6.82,'-941','55590',7,123);
INSERT INTO "communes" VALUES('80','Guizancourt','35',128,105,5.94,'-380','55262',90,184);
INSERT INTO "communes" VALUES('80','Heudicourt','36',520,502,12.71,'825','55581',107,144);
INSERT INTO "communes" VALUES('80','Boves','13',2976,2800,25.37,'60','55384',22,110);
INSERT INTO "communes" VALUES('80','Nesle-l''Hôpital','32',171,157,4.8,'-718','55452',56,177);
INSERT INTO "communes" VALUES('80','Wargnies','20',93,88,2.82,'-90','55594',55,146);
INSERT INTO "communes" VALUES('80','<NAME>','34',661,688,12.52,'-209','55504',12,97);
INSERT INTO "communes" VALUES('80','Villers-Bretonneux','18',4187,3951,14.51,'204','55408',45,107);
INSERT INTO "communes" VALUES('80','Vaux-en-Amiénois','41',424,390,11.18,'-98','55514',34,104);
INSERT INTO "communes" VALUES('80','Rivery','09',3435,3400,6.37,'-11','55447',22,76);
INSERT INTO "communes" VALUES('80','Bécordel-Bécourt','06',164,122,3.57,'388','55544',50,110);
INSERT INTO "communes" VALUES('80','Saigneville','40',393,388,12.86,'-694','55708',2,59);
INSERT INTO "communes" VALUES('80','Vergies','32',193,151,8,'-544','55482',58,129);
INSERT INTO "communes" VALUES('80','Liercourt','23',349,320,5.53,'-485','55599',7,104);
INSERT INTO "communes" VALUES('80','Carnoy','16',111,85,3,'464','55538',79,126);
INSERT INTO "communes" VALUES('80','Herly','38',49,47,3.75,'597','55284',62,87);
INSERT INTO "communes" VALUES('80','Riencourt','26',183,196,10.16,'-319','55469',28,124);
INSERT INTO "communes" VALUES('80','Saint-Quentin-la-Motte-Croix-au-Bailly','11',1322,1307,6.91,'-983','55638',5,121);
INSERT INTO "communes" VALUES('80','Quivières','24',170,178,6.83,'779','55358',74,89);
INSERT INTO "communes" VALUES('80','Estrées-lès-Crécy','19',382,362,11.19,'-454','55837',33,84);
INSERT INTO "communes" VALUES('80','Hargicourt','27',403,358,5.19,'216','55234',40,109);
INSERT INTO "communes" VALUES('80','Curlu','16',142,111,5.89,'533','55515',42,122);
INSERT INTO "communes" VALUES('80','Thieulloy-l''Abbaye','25',315,276,14.66,'-435','55362',122,182);
INSERT INTO "communes" VALUES('80','Buigny-lès-Gamaches','22',386,403,4.77,'-856','55583',84,116);
INSERT INTO "communes" VALUES('80','Éplessier','35',382,339,14.09,'-422','55315',110,186);
INSERT INTO "communes" VALUES('80','Woincourt','46',1450,1529,4.18,'-888','55629',80,129);
INSERT INTO "communes" VALUES('80','Cottenchy','13',441,372,10.73,'51','55344',31,112);
INSERT INTO "communes" VALUES('80','Ferrières','34',460,426,3.47,'-177','55436',59,115);
INSERT INTO "communes" VALUES('80','Sancourt','24',268,279,7.2,'780','55304',57,82);
INSERT INTO "communes" VALUES('80','Yvrencheux','19',159,138,6.01,'-383','55757',73,119);
INSERT INTO "communes" VALUES('80','Rouvrel','05',272,238,7.16,'84','55301',65,121);
INSERT INTO "communes" VALUES('80','Foucaucourt-en-Santerre','15',285,223,6.91,'488','55416',50,87);
INSERT INTO "communes" VALUES('80','Puzeaux','15',253,211,3.75,'539','55331',79,89);
INSERT INTO "communes" VALUES('80','Bonnay','18',250,251,5.86,'194','55484',31,113);
INSERT INTO "communes" VALUES('80','Pargny','30',166,124,3.68,'683','55348',52,83);
INSERT INTO "communes" VALUES('80','Montigny-les-Jongleurs','12',84,82,5,'-225','55756',70,142);
INSERT INTO "communes" VALUES('80','Rouvroy-en-Santerre','37',198,218,7.35,'414','55299',87,103);
INSERT INTO "communes" VALUES('80','Vraignes-lès-Hornoy','25',87,82,5.65,'-474','55364',142,181);
INSERT INTO "communes" VALUES('80','Villeroy','32',210,216,6.02,'-681','55489',119,159);
INSERT INTO "communes" VALUES('80','Saveuse','07',751,776,3.99,'-132','55444',39,105);
INSERT INTO "communes" VALUES('80','Contré','17',137,91,9.75,'-267','55276',61,178);
INSERT INTO "communes" VALUES('80','Chuignes','15',122,127,4.56,'463','55445',41,87);
INSERT INTO "communes" VALUES('80','Proyart','15',637,523,9.86,'412','55430',32,93);
INSERT INTO "communes" VALUES('80','Nampont','39',251,228,19.39,'-657','55943',2,67);
INSERT INTO "communes" VALUES('80','Camps-en-Amiénois','26',174,165,4.54,'-408','55422',85,129);
INSERT INTO "communes" VALUES('80','<NAME>','12',168,131,6.93,'-157','55746',55,142);
INSERT INTO "communes" VALUES('80','Saint-Aubin-Rivière','32',113,113,3.08,'-625','55411',87,188);
INSERT INTO "communes" VALUES('80','Dompierre-Becquincourt','15',630,644,11.05,'521','55453',54,92);
INSERT INTO "communes" VALUES('80','Foucaucourt-Hors-Nesle','32',72,68,2.94,'-681','55463',143,177);
INSERT INTO "communes" VALUES('80','Longuevillette','21',77,60,2.06,'-70','55699',109,157);
INSERT INTO "communes" VALUES('80','Tully','46',623,663,1.88,'-911','55650',75,112);
INSERT INTO "communes" VALUES('80','Allaines','33',424,395,8.36,'676','55513',47,136);
INSERT INTO "communes" VALUES('80','Lesbœufs','16',157,151,5.97,'585','55603',112,154);
INSERT INTO "communes" VALUES('80','Authie','03',300,238,9.93,'169','55689',73,157);
INSERT INTO "communes" VALUES('80','Vrély','37',455,431,5.66,'396','55331',68,97);
INSERT INTO "communes" VALUES('80','Domléger-Longvillers','19',284,271,8.91,'-279','55734',100,142);
INSERT INTO "communes" VALUES('80','Caix','37',732,656,11.95,'344','55352',53,97);
INSERT INTO "communes" VALUES('80','Nouvion','31',1241,1208,15.73,'-625','55791',7,55);
INSERT INTO "communes" VALUES('80','Embreville','22',578,576,5.33,'-882','55589',65,119);
INSERT INTO "communes" VALUES('80','Thieulloy-la-Ville','35',119,94,3.28,'-452','55275',130,189);
INSERT INTO "communes" VALUES('80','Davenescourt','27',507,470,11.73,'288','55233',44,114);
INSERT INTO "communes" VALUES('80','Saint-Sauflieu','13',912,899,7.76,'-93','55322',79,137);
INSERT INTO "communes" VALUES('80','Hescamps','35',519,434,34.56,'-517','55254',127,211);
INSERT INTO "communes" VALUES('80','Damery','38',211,180,4.83,'451','55257',88,101);
INSERT INTO "communes" VALUES('80','Toutencourt','03',517,494,14.37,'138','55595',63,153);
INSERT INTO "communes" VALUES('80','Hédauville','03',102,100,4.04,'257','55606',83,142);
INSERT INTO "communes" VALUES('80','Hénencourt','18',192,194,3.26,'253','55559',83,121);
INSERT INTO "communes" VALUES('80','Bouillancourt-la-Bataille','27',135,106,3.59,'216','55217',42,109);
INSERT INTO "communes" VALUES('80','Bresle','18',119,74,3.54,'245','55538',55,123);
INSERT INTO "communes" VALUES('80','Fresnoy-lès-Roye','38',307,266,7.65,'488','55264',84,96);
INSERT INTO "communes" VALUES('80','Cannessières','32',85,85,3.75,'-636','55488',85,141);
INSERT INTO "communes" VALUES('80','Courcelles-au-Bois','03',86,74,2.02,'275','55671',120,156);
INSERT INTO "communes" VALUES('80','Villers-Carbonnel','33',321,305,7.66,'622','55418',47,85);
INSERT INTO "communes" VALUES('80','Beauchamps','22',1056,987,7.22,'-920','55575',10,110);
INSERT INTO "communes" VALUES('80','Lignières-en-Vimeu','32',113,110,3.29,'-666','55455',143,171);
INSERT INTO "communes" VALUES('80','Esmery-Hallon','24',788,763,18.9,'748','55241',57,87);
INSERT INTO "communes" VALUES('80','Cantigny','27',108,125,4.03,'173','55182',64,112);
INSERT INTO "communes" VALUES('80','Gueudecourt','16',103,103,4.87,'562','55621',104,147);
INSERT INTO "communes" VALUES('80','Bovelles','26',391,342,6.87,'-212','55425',49,122);
INSERT INTO "communes" VALUES('80','Pont-Noyelles','41',742,789,8.62,'116','55489',32,123);
INSERT INTO "communes" VALUES('80','Beuvraignes','38',826,696,14.45,'480','55161',77,104);
INSERT INTO "communes" VALUES('80','Coigneux','03',48,50,2.88,'239','55700',100,150);
INSERT INTO "communes" VALUES('80','Voyennes','30',604,592,8.87,'719','55302',52,77);
INSERT INTO "communes" VALUES('80','Roisel','36',1773,1930,10.16,'846','55495',67,142);
INSERT INTO "communes" VALUES('80','Ramburelles','22',256,210,4.59,'-696','55519',104,133);
INSERT INTO "communes" VALUES('80','Doingt','33',1329,1384,8.61,'699','55470',47,113);
INSERT INTO "communes" VALUES('80','Languevoisin-Quiquery','30',207,211,4.83,'661','55275',57,78);
INSERT INTO "communes" VALUES('80','Ailly-sur-Somme','34',3157,3322,15.06,'-159','55474',12,117);
INSERT INTO "communes" VALUES('80','Fort-Mahon-Plage','39',1318,1141,13.04,'-853','55935',1,30);
INSERT INTO "communes" VALUES('80','Huchenneville','29',663,665,11.54,'-596','55612',14,112);
INSERT INTO "communes" VALUES('80','Gratibus','27',169,172,5.33,'226','55208',46,111);
INSERT INTO "communes" VALUES('80','Ailly-le-Haut-Clocher','04',895,832,10.81,'-379','55642',72,115);
INSERT INTO "communes" VALUES('80','Heilly','18',381,398,9.37,'223','55504',31,107);
INSERT INTO "communes" VALUES('80','Fay','15',118,71,3.9,'524','55429',52,82);
INSERT INTO "communes" VALUES('80','Brutelles','40',186,179,6.29,'-905','55712',3,59);
INSERT INTO "communes" VALUES('80','Maizicourt','12',191,171,5.8,'-238','55773',53,136);
INSERT INTO "communes" VALUES('80','Bus-la-Mésière','27',145,121,6.85,'421','55152',91,114);
INSERT INTO "communes" VALUES('80','Boisbergues','12',83,76,4.31,'-120','55727',59,152);
INSERT INTO "communes" VALUES('80','Fransu','20',149,104,5.64,'-270','55677',67,122);
INSERT INTO "communes" VALUES('80','Mesnil-Martinsart','06',241,233,8.76,'346','55615',62,144);
INSERT INTO "communes" VALUES('80','Rue','39',3145,3076,29.06,'-743','55858',2,12);
INSERT INTO "communes" VALUES('80','Saint-Fuscien','13',938,964,9.92,'-24','55375',38,113);
INSERT INTO "communes" VALUES('80','Saint-Valery-sur-Somme','40',2818,2691,10.5,'-786','55765',1,43);
INSERT INTO "communes" VALUES('80','Fossemanant','17',108,110,2.7,'-154','55337',40,128);
INSERT INTO "communes" VALUES('80','Caours','01',604,592,6.13,'-505','55701',6,87);
INSERT INTO "communes" VALUES('80','Dury','13',1267,1140,10.99,'-74','55384',59,117);
INSERT INTO "communes" VALUES('80','Buigny-l''Abbé','04',338,333,7.22,'-444','55665',59,108);
INSERT INTO "communes" VALUES('80','Prouzel','17',483,502,5.19,'-148','55351',38,129);
INSERT INTO "communes" VALUES('80','Frise','14',182,158,6.15,'535','55491',41,99);
INSERT INTO "communes" VALUES('80','Courcelles-sous-Moyencourt','35',131,141,6.78,'-325','55348',97,162);
INSERT INTO "communes" VALUES('80','Dernancourt','06',443,437,6.63,'327','55527',39,107);
INSERT INTO "communes" VALUES('80','Léalvillers','03',181,166,2.23,'193','55627',116,157);
INSERT INTO "communes" VALUES('80','Bussus-Bussuel','04',300,247,8.16,'-374','55678',47,112);
INSERT INTO "communes" VALUES('80','Villers-sous-Ailly','04',189,146,6.26,'-355','55624',40,112);
INSERT INTO "communes" VALUES('80','Candas','12',1047,887,17.27,'-86','55675',97,166);
INSERT INTO "communes" VALUES('80','Longueval','16',282,248,8.53,'519','55584',123,157);
INSERT INTO "communes" VALUES('80','Chepy','29',1312,1276,7.35,'-766','55625',57,111);
INSERT INTO "communes" VALUES('80','Mirvaux','41',143,144,2.29,'65','55559',77,132);
INSERT INTO "communes" VALUES('80','Flers','16',169,138,6.27,'539','55610',108,151);
INSERT INTO "communes" VALUES('80','Flesselles','41',2066,2141,20.49,'-85','55557',57,134);
INSERT INTO "communes" VALUES('80','Ville-le-Marclet','34',510,510,8.93,'-276','55581',17,113);
INSERT INTO "communes" VALUES('80','Estrées-Deniécourt','15',321,245,6.45,'541','55417',69,85);
INSERT INTO "communes" VALUES('80','Bailleul','23',278,232,14.06,'-541','55588',7,112);
INSERT INTO "communes" VALUES('80','Arvillers','28',748,646,12.68,'345','55272',49,108);
INSERT INTO "communes" VALUES('80','Démuin','28',495,431,11.23,'222','55356',40,104);
INSERT INTO "communes" VALUES('80','Folies','37',129,86,5.63,'372','55290',92,106);
INSERT INTO "communes" VALUES('80','Domart-sur-la-Luce','28',422,427,8.59,'164','55356',32,104);
INSERT INTO "communes" VALUES('80','Saulchoy-sous-Poix','35',53,34,3.72,'-445','55285',117,186);
INSERT INTO "communes" VALUES('80','Briquemesnil-Floxicourt','26',158,153,7.35,'-278','55427',53,126);
INSERT INTO "communes" VALUES('80','Driencourt','36',90,85,5,'748','55510',65,139);
INSERT INTO "communes" VALUES('80','Heuzecourt','12',154,134,7.2,'-189','55748',63,153);
INSERT INTO "communes" VALUES('80','Sailly-Laurette','14',310,266,6.38,'300','55458',31,112);
INSERT INTO "communes" VALUES('80','Erches','27',169,125,8.21,'371','55247',90,106);
INSERT INTO "communes" VALUES('80','Camon','10',4590,4368,12.9,'10','55430',22,84);
INSERT INTO "communes" VALUES('80','Warloy-Baillon','18',807,707,15.27,'208','55567',57,142);
INSERT INTO "communes" VALUES('80','Rosières-en-Santerre','37',2924,2957,12.98,'407','55349',70,106);
INSERT INTO "communes" VALUES('80','Méharicourt','37',578,538,7.01,'439','55332',78,94);
INSERT INTO "communes" VALUES('80','Fresnoy-au-Val','26',248,225,8.07,'-312','55372',70,139);
INSERT INTO "communes" VALUES('80','Belloy-sur-Somme','34',757,785,13.24,'-226','55517',12,109);
INSERT INTO "communes" VALUES('80','Muille-Villette','24',829,783,6.53,'811','55253',58,75);
INSERT INTO "communes" VALUES('80','Warlus','26',233,224,8.12,'-436','55471',37,130);
INSERT INTO "communes" VALUES('80','Dancourt-Popincourt','38',143,128,5.9,'440','55185',82,101);
INSERT INTO "communes" VALUES('80','Lamotte-Buleux','31',350,288,6.16,'-561','55764',48,69);
INSERT INTO "communes" VALUES('80','Hallivillers','05',141,116,7.12,'-54','55223',86,158);
INSERT INTO "communes" VALUES('80','Lignières','27',143,121,6.33,'351','55196',64,109);
INSERT INTO "communes" VALUES('80','Oneux','04',382,310,12.49,'-406','55717',32,117);
INSERT INTO "communes" VALUES('80','Hailles','13',429,332,5.07,'114','55340',32,110);
INSERT INTO "communes" VALUES('80','Villers-sur-Authie','39',412,363,12.01,'-715','55908',2,33);
INSERT INTO "communes" VALUES('80','Bouchavesnes-Bergen','33',334,324,10.09,'650','55539',79,152);
INSERT INTO "communes" VALUES('80','Croixrault','35',436,355,8.96,'-384','55324',111,187);
INSERT INTO "communes" VALUES('80','Bouchoir','37',285,226,5.88,'375','55276',96,106);
INSERT INTO "communes" VALUES('80','Brailly-Cornehotte','19',239,240,11.5,'-419','55797',47,91);
INSERT INTO "communes" VALUES('80','Drucat','01',866,861,10.84,'-517','55715',6,81);
INSERT INTO "communes" VALUES('80','Billancourt','38',183,137,4.95,'619','55263',63,91);
INSERT INTO "communes" VALUES('80','Authieule','21',364,356,4.58,'38','55715',57,142);
INSERT INTO "communes" VALUES('80','Irles','06',116,104,5.38,'463','55666',82,132);
INSERT INTO "communes" VALUES('80','Forceville-en-Vimeu','32',268,262,2.97,'-595','55517',72,119);
INSERT INTO "communes" VALUES('80','Ham','24',4991,5400,9.5,'818','55274',57,84);
INSERT INTO "communes" VALUES('80','Fouquescourt','37',162,127,5.45,'461','55300',83,101);
INSERT INTO "communes" VALUES('80','Bourseville','46',737,774,8.07,'-904','55672',33,97);
INSERT INTO "communes" VALUES('80','Métigny','26',109,88,6.68,'-454','55495',29,119);
INSERT INTO "communes" VALUES('80','Mailly-Maillet','03',616,602,11.14,'297','55644',94,157);
INSERT INTO "communes" VALUES('80','Lamotte-Brebière','18',216,242,4.25,'60','55428',22,70);
INSERT INTO "communes" VALUES('80','Aizecourt-le-Bas','36',58,60,3.57,'775','55535',93,149);
INSERT INTO "communes" VALUES('80','Hangest-sur-Somme','34',704,692,12.46,'-302','55534',6,108);
INSERT INTO "communes" VALUES('80','Moislains','33',1257,1366,20.62,'697','55544',62,152);
INSERT INTO "communes" VALUES('80','Huppy','23',802,693,10.81,'-634','55584',60,113);
INSERT INTO "communes" VALUES('80','Longpré-les-Corps-Saints','23',1664,1562,8.06,'-379','55569',6,98);
INSERT INTO "communes" VALUES('80','Crécy-en-Ponthieu','19',1550,1580,56.55,'-504','55836',19,82);
INSERT INTO "communes" VALUES('80','Longavesnes','36',85,105,4.09,'803','55523',94,144);
INSERT INTO "communes" VALUES('80','Hyencourt-le-Grand','15',86,81,2.95,'552','55357',75,98);
INSERT INTO "communes" VALUES('80','Houssoye','18',413,325,4.09,'161','55502',55,127);
INSERT INTO "communes" VALUES('80','Frémontiers','17',147,180,12.89,'-291','55288',67,165);
INSERT INTO "communes" VALUES('80','Moyencourt','38',304,242,4.15,'684','55246',56,77);
INSERT INTO "communes" VALUES('80','Marché-Allouarde','38',71,77,2.07,'590','55253',84,95);
INSERT INTO "communes" VALUES('80','Yzeux','34',265,219,5.05,'-253','55528',10,85);
INSERT INTO "communes" VALUES('80','Cocquerel','04',207,172,9.54,'-430','55604',7,113);
INSERT INTO "communes" VALUES('80','Berny-en-Santerre','15',152,153,4.43,'570','55405',62,87);
INSERT INTO "communes" VALUES('80','Brie','33',349,301,6.89,'661','55418',47,87);
INSERT INTO "communes" VALUES('80','Andainville','32',228,196,8.35,'-613','55436',135,176);
INSERT INTO "communes" VALUES('80','Fontaine-lès-Cappy','15',48,53,3.47,'494','55443',47,91);
INSERT INTO "communes" VALUES('80','Mons-Boubert','40',531,480,9.53,'-750','55699',5,71);
INSERT INTO "communes" VALUES('80','Fresnoy-Andainville','32',97,80,3.96,'-603','55457',122,152);
INSERT INTO "communes" VALUES('80','Saint-Léger-sur-Bresle','32',84,57,1.09,'-685','55410',71,179);
INSERT INTO "communes" VALUES('80','Baizieux','18',213,215,5.09,'203','55548',61,127);
INSERT INTO "communes" VALUES('80','Marchélepot','30',468,418,5.27,'588','55372',67,104);
INSERT INTO "communes" VALUES('80','Fresnoy-en-Chaussée','28',108,111,3.8,'277','55303',83,105);
INSERT INTO "communes" VALUES('80','Saint-Blimont','40',943,948,6.63,'-847','55690',18,67);
INSERT INTO "communes" VALUES('80','Gauville','35',385,396,7.32,'-606','55313',115,213);
INSERT INTO "communes" VALUES('80','Wiencourt-l''Équipée','28',256,205,5.86,'305','55384',49,95);
INSERT INTO "communes" VALUES('80','Saint-Léger-lès-Domart','20',1870,1755,7.05,'-221','55610',22,131);
INSERT INTO "communes" VALUES('80','Franvillers','18',514,491,4.77,'190','55518',87,121);
INSERT INTO "communes" VALUES('80','Vauvillers','15',275,263,6.22,'409','55388',84,93);
INSERT INTO "communes" VALUES('80','Thièvres','03',61,44,3.67,'132','55698',71,141);
INSERT INTO "communes" VALUES('80','Neuville-lès-Lœuilly','17',126,102,3.17,'-170','55323',42,134);
INSERT INTO "communes" VALUES('80','Fourcigny','35',179,131,4.55,'-568','55288',193,214);
INSERT INTO "communes" VALUES('80','Ribemont-sur-Ancre','18',611,615,9.23,'255','55511',32,115);
INSERT INTO "communes" VALUES('80','Armancourt','38',19,21,2.16,'417','55198',72,101);
INSERT INTO "communes" VALUES('80','Misery','30',130,103,3.28,'611','55388',55,102);
INSERT INTO "communes" VALUES('80','Friaucourt','11',716,670,4.16,'-957','55655',70,114);
INSERT INTO "communes" VALUES('80','Francières','04',190,124,5.81,'-439','55636',33,110);
INSERT INTO "communes" VALUES('80','Pierregot','41',250,243,2.46,'48','55558',95,134);
INSERT INTO "communes" VALUES('80','Wiry-au-Mont','23',121,96,4.81,'-552','55514',45,119);
INSERT INTO "communes" VALUES('80','Mesnil-Saint-Georges','27',178,147,6.04,'209','55155',63,102);
INSERT INTO "communes" VALUES('80','Offignies','35',66,69,4.47,'-538','55332',177,206);
INSERT INTO "communes" VALUES('80','Machy','39',129,109,3.29,'-595','55857',12,62);
INSERT INTO "communes" VALUES('80','Andechy','27',265,213,7.77,'414','55239',58,104);
INSERT INTO "communes" VALUES('80','Yonval','02',239,212,3.93,'-608','55655',6,82);
INSERT INTO "communes" VALUES('80','Agenvillers','31',193,181,5.98,'-463','55754',58,85);
INSERT INTO "communes" VALUES('80','Saint-Sauveur','08',1400,1526,9.04,'-140','55486',12,84);
INSERT INTO "communes" VALUES('80','Favières','39',457,405,12.62,'-748','55820',2,5);
INSERT INTO "communes" VALUES('80','Auchonvillers','06',129,147,5.72,'326','55645',117,157);
INSERT INTO "communes" VALUES('80','Chirmont','05',120,108,7.85,'54','55236',59,149);
INSERT INTO "communes" VALUES('80','Laboissière-en-Santerre','27',145,120,7.15,'379','55184',66,107);
INSERT INTO "communes" VALUES('80','Occoches','12',129,121,7.09,'-73','55749',45,136);
INSERT INTO "communes" VALUES('80','Domart-en-Ponthieu','20',1171,1124,17.93,'-235','55638',32,132);
INSERT INTO "communes" VALUES('80','Thiepval','06',124,97,4.4,'392','55616',70,154);
INSERT INTO "communes" VALUES('80','Bertrancourt','03',211,199,6.09,'244','55660',125,157);
INSERT INTO "communes" VALUES('80','Gorenflos','04',222,232,6.17,'-318','55661',77,117);
INSERT INTO "communes" VALUES('80','Bouchon','34',153,140,4.6,'-341','55594',15,105);
INSERT INTO "communes" VALUES('80','Agenville','12',114,91,3.3,'-260','55740',88,136);
INSERT INTO "communes" VALUES('80','Acheux-en-Vimeu','29',528,503,12.33,'-732','55628',38,111);
INSERT INTO "communes" VALUES('80','Mouflières','32',94,72,2.76,'-660','55469',114,152);
INSERT INTO "communes" VALUES('80','Étricourt-Manancourt','16',528,399,11.02,'721','55594',77,145);
INSERT INTO "communes" VALUES('80','Long','04',658,629,9.19,'-395','55599',6,111);
INSERT INTO "communes" VALUES('80','Fressenneville','46',2257,2333,8.66,'-844','55631',63,129);
INSERT INTO "communes" VALUES('80','Herbécourt','14',194,133,4.5,'561','55469',69,98);
INSERT INTO "communes" VALUES('80','Arquèves','03',152,144,7.64,'147','55635',100,152);
INSERT INTO "communes" VALUES('80','Thoix','17',131,144,11.12,'-297','55229',82,188);
INSERT INTO "communes" VALUES('80','<NAME>','25',286,300,1.43,'-598','55403',95,175);
INSERT INTO "communes" VALUES('80','Aizecourt-le-Haut','33',81,100,3.65,'719','55515',78,147);
INSERT INTO "communes" VALUES('80','Étréjust','32',45,39,3.78,'-497','55458',52,128);
INSERT INTO "communes" VALUES('80','Gapennes','31',257,218,11.37,'-426','55759',44,102);
INSERT INTO "communes" VALUES('80','Morcourt','14',274,268,7.56,'350','55436',31,93);
INSERT INTO "communes" VALUES('80','Rethonvillers','38',343,300,7.12,'588','55259',73,95);
INSERT INTO "communes" VALUES('80','Fescamps','27',145,140,5.08,'385','55156',88,107);
INSERT INTO "communes" VALUES('80','Neslette','32',90,93,2.07,'-744','55471',52,171);
INSERT INTO "communes" VALUES('80','Devise','24',53,76,2.75,'742','55397',54,92);
INSERT INTO "communes" VALUES('80','Gentelles','13',525,461,5.57,'134','55384',65,118);
INSERT INTO "communes" VALUES('80','Ribeaucourt','20',235,185,5.42,'-242','55686',83,136);
INSERT INTO "communes" VALUES('80','Punchy','37',78,65,3.04,'526','55324',72,88);
INSERT INTO "communes" VALUES('80','Piennes-Onvillers','27',352,336,12.29,'339','55144',82,119);
INSERT INTO "communes" VALUES('80','Ailly-sur-Noye','05',2805,2638,25.35,'30','55285',43,143);
INSERT INTO "communes" VALUES('80','Grivesnes','05',365,291,18.75,'149','55209',63,131);
INSERT INTO "communes" VALUES('80','Hautvillers-Ouville','31',518,379,6.06,'-579','55747',44,68);
INSERT INTO "communes" VALUES('80','Fins','36',280,256,6.87,'784','55594',93,138);
INSERT INTO "communes" VALUES('80','Rubescourt','27',141,134,3.97,'261','55118',63,94);
INSERT INTO "communes" VALUES('80','Machiel','39',160,171,6.61,'-568','55853',17,76);
INSERT INTO "communes" VALUES('80','Béhen','29',456,437,9.83,'-646','55617',64,114);
INSERT INTO "communes" VALUES('80','Ponches-Estruval','19',111,125,7.04,'-490','55900',10,69);
INSERT INTO "communes" VALUES('80','Remiencourt','13',186,170,4.82,'51','55314',37,114);
INSERT INTO "communes" VALUES('80','Mametz','06',165,165,7.25,'444','55552',68,135);
INSERT INTO "communes" VALUES('80','Saint-Acheul','12',28,22,3.04,'-192','55767',37,110);
INSERT INTO "communes" VALUES('80','Surcamps','20',72,56,2.97,'-291','55633',63,117);
INSERT INTO "communes" VALUES('80','Belleuse','17',347,280,7.8,'-244','55229',95,194);
INSERT INTO "communes" VALUES('80','Longueau','10',5686,5210,3.42,'22','55411',23,64);
INSERT INTO "communes" VALUES('80','Tœufles','29',275,312,8.88,'-691','55629',30,114);
INSERT INTO "communes" VALUES('80','Avelesges','26',48,58,4.87,'-445','55463',43,123);
INSERT INTO "communes" VALUES('80','Martainneville','22',396,343,7.58,'-700','55556',84,114);
INSERT INTO "communes" VALUES('80','Dommartin','13',352,387,6.55,'61','55334',32,115);
INSERT INTO "communes" VALUES('80','Forest-Montiers','31',430,374,10.22,'-659','55828',4,44);
INSERT INTO "communes" VALUES('80','Ablaincourt-Pressoir','15',265,227,9.46,'539','55378',67,88);
INSERT INTO "communes" VALUES('80','Brucamps','04',142,109,6.37,'-310','55637',54,115);
INSERT INTO "communes" VALUES('80','Douilly','24',263,224,9.88,'807','55326',57,87);
INSERT INTO "communes" VALUES('80','Corbie','18',6388,6315,16.25,'190','55455',26,108);
INSERT INTO "communes" VALUES('80','<NAME>uesnel','28',737,539,11.38,'320','55307',72,104);
INSERT INTO "communes" VALUES('80','<NAME>','22',223,182,5.61,'-734','55522',109,139);
INSERT INTO "communes" VALUES('80','Caulières','35',216,186,5.41,'-497','55311',168,193);
INSERT INTO "communes" VALUES('80','Coullemelle','05',322,236,9.32,'96','55187',100,156);
INSERT INTO "communes" VALUES('80','Becquigny','27',104,99,6.04,'318','55217',50,107);
INSERT INTO "communes" VALUES('80','Maison-Ponthieu','19',280,278,10.95,'-326','55786',62,123);
INSERT INTO "communes" VALUES('80','Neuvillette','21',204,179,3.13,'-19','55787',85,147);
INSERT INTO "communes" VALUES('80','Belloy-Saint-Léonard','25',86,102,6.55,'-481','55452',48,130);
INSERT INTO "communes" VALUES('80','Yaucourt-Bussus','04',207,176,7.03,'-400','55671',35,112);
INSERT INTO "communes" VALUES('80','Braches','28',223,201,7.21,'189','55259',37,112);
INSERT INTO "communes" VALUES('80','Pendé','40',1152,980,16.43,'-836','55733',2,56);
INSERT INTO "communes" VALUES('80','Cambron','02',720,709,12.61,'-630','55679',3,76);
INSERT INTO "communes" VALUES('80','Le Titre','31',384,290,4.51,'-595','55765',33,53);
INSERT INTO "communes" VALUES('80','Meigneux','35',162,151,3.97,'-491','55294',173,199);
INSERT INTO "communes" VALUES('80','Barleux','33',264,312,7.46,'615','55441',47,87);
INSERT INTO "communes" VALUES('80','Woirel','32',41,24,1.85,'-570','55510',58,118);
INSERT INTO "communes" VALUES('80','Sailly-Flibeaucourt','31',1014,949,10.64,'-630','55758',18,56);
INSERT INTO "communes" VALUES('80','Assainvillers','27',144,156,7.3,'303','55133',68,100);
INSERT INTO "communes" VALUES('80','Ligescourt','19',230,194,5.12,'-512','55877',42,74);
INSERT INTO "communes" VALUES('80','Oissy','26',240,213,5.52,'-318','55450',37,119);
INSERT INTO "communes" VALUES('80','Guerbigny','27',263,234,8.27,'360','55223',52,101);
INSERT INTO "communes" VALUES('80','Lafresguimont-Saint-Martin','25',512,453,26.54,'-586','55350',100,210);
INSERT INTO "communes" VALUES('80','Mesnil-Bruntel','33',302,330,7.31,'691','55441',48,85);
INSERT INTO "communes" VALUES('80','Buigny-Saint-Maclou','31',517,523,7.3,'-581','55728',33,71);
INSERT INTO "communes" VALUES('80','Contalmaison','06',123,98,5.67,'437','55581',87,161);
INSERT INTO "communes" VALUES('80','Rumigny','13',581,568,7.83,'-63','55342',79,125);
INSERT INTO "communes" VALUES('80','Bouvincourt-en-Vermandois','33',154,137,1.94,'783','55436',84,101);
INSERT INTO "communes" VALUES('80','Chipilly','14',187,135,6.85,'348','55454',32,105);
INSERT INTO "communes" VALUES('80','Millencourt','06',236,217,5.79,'278','55557',59,120);
INSERT INTO "communes" VALUES('80','Montauban-de-Picardie','16',219,197,7.67,'492','55563',89,143);
INSERT INTO "communes" VALUES('80','Hiermont','19',136,168,5.01,'-289','55773',70,125);
INSERT INTO "communes" VALUES('80','Saint-Germain-sur-Bresle','25',196,183,8.69,'-670','55367',83,208);
INSERT INTO "communes" VALUES('80','Méricourt-sur-Somme','14',191,164,7.14,'375','55451',32,92);
INSERT INTO "communes" VALUES('80','Oresmaux','17',838,760,11.03,'-73','55298',89,151);
INSERT INTO "communes" VALUES('80','Fresneville','32',110,78,3.4,'-567','55433',105,158);
INSERT INTO "communes" VALUES('80','Liomer','25',415,369,3.89,'-578','55396',99,180);
INSERT INTO "communes" VALUES('80','Pys','06',110,81,5.05,'467','55652',87,133);
INSERT INTO "communes" VALUES('80','Cahon','29',216,224,7.04,'-681','55689',3,69);
INSERT INTO "communes" VALUES('80','Brouchy','24',567,578,8.07,'849','55241',62,94);
INSERT INTO "communes" VALUES('80','Acheux-en-Amiénois','03',569,514,7.07,'218','55637',118,152);
INSERT INTO "communes" VALUES('80','Fluy','26',307,331,6.38,'-266','55398',68,131);
INSERT INTO "communes" VALUES('80','Grand-Laviers','01',333,371,9.5,'-614','55700',2,67);
INSERT INTO "communes" VALUES('80','Fransures','05',141,107,4.26,'-116','55237',120,169);
INSERT INTO "communes" VALUES('80','Fontaine-sous-Montdidier','27',121,119,9.03,'202','55174',46,127);
INSERT INTO "communes" VALUES('80','Belloy-en-Santerre','15',166,167,5.49,'576','55426',57,86);
INSERT INTO "communes" VALUES('80','Hattencourt','38',248,237,3.61,'502','55299',78,92);
INSERT INTO "communes" VALUES('80','Poix-de-Picardie','35',2407,2285,11.66,'-391','55307',94,190);
INSERT INTO "communes" VALUES('80','Bergicourt','35',159,131,6.85,'-347','55275',78,185);
INSERT INTO "communes" VALUES('80','Parvillers-le-Quesnoy','37',214,221,9.5,'447','55274',89,106);
INSERT INTO "communes" VALUES('80','Vaire-sous-Corbie','18',269,263,6.74,'232','55462',27,104);
INSERT INTO "communes" VALUES('80','Regnière-Écluse','39',141,122,9.54,'-633','55868',5,60);
INSERT INTO "communes" VALUES('80','Bavelincourt','41',125,85,7.75,'131','55540',42,128);
INSERT INTO "communes" VALUES('80','Pierrepont-sur-Avre','28',571,475,4.3,'228','55236',42,110);
INSERT INTO "communes" VALUES('80','Épécamps','12',6,11,1.6,'-202','55681',75,146);
INSERT INTO "communes" VALUES('80','Combles','16',738,673,9.87,'588','55566',83,153);
INSERT INTO "communes" VALUES('80','Villers-aux-Érables','28',137,104,4.34,'223','55319',87,106);
INSERT INTO "communes" VALUES('80','Monsures','17',239,203,8.98,'-184','55233',62,185);
INSERT INTO "communes" VALUES('80','Molliens-au-Bois','41',334,326,7.28,'54','55543',62,129);
INSERT INTO "communes" VALUES('80','<NAME>','28',271,268,4.18,'198','55269',37,104);
INSERT INTO "communes" VALUES('80','Hardecourt-aux-Bois','16',72,84,5.23,'535','55544',75,146);
INSERT INTO "communes" VALUES('80','Domesmont','12',40,44,1.94,'-210','55691',90,150);
INSERT INTO "communes" VALUES('80','Arguel','25',30,35,2.54,'-594','55407',109,177);
INSERT INTO "communes" VALUES('80','Estrébœuf','40',260,229,6.24,'-799','55729',2,47);
INSERT INTO "communes" VALUES('80','Cagny','42',1252,1403,5.29,'7','55401',23,107);
INSERT INTO "communes" VALUES('80','Beaucourt-en-Santerre','28',175,114,5.95,'277','55326',58,99);
INSERT INTO "communes" VALUES('80','Berteaucourt-les-Dames','20',1165,1111,4.64,'-204','55607',24,122);
INSERT INTO "communes" VALUES('80','Valines','46',639,663,5.25,'-794','55640',65,98);
INSERT INTO "communes" VALUES('80','Beauval','21',2145,2242,22.56,'-8','55674',67,164);
INSERT INTO "communes" VALUES('80','Marlers','35',146,147,3.93,'-542','55291',167,210);
INSERT INTO "communes" VALUES('80','Laleu','26',98,99,1.56,'-449','55491',27,63);
INSERT INTO "communes" VALUES('80','Mesnil-en-Arrouaise','16',141,124,6.5,'676','55605',99,152);
INSERT INTO "communes" VALUES('80','L''Échelle-Saint-Aurin','38',54,50,5.1,'416','55217',61,97);
INSERT INTO "communes" VALUES('80','Saint-Ouen','20',2028,2200,4.35,'-238','55597',19,110);
INSERT INTO "communes" VALUES('80','Beaucourt-sur-l''Ancre','06',98,87,3.51,'388','55644',73,139);
INSERT INTO "communes" VALUES('80','Suzanne','14',188,148,8.66,'479','55500',37,123);
INSERT INTO "communes" VALUES('80','Airaines','26',2304,2094,24.88,'-437','55517',15,116);
INSERT INTO "communes" VALUES('80','Goyencourt','38',95,88,5.38,'477','55251',77,99);
INSERT INTO "communes" VALUES('80','Mérélessart','23',201,183,3.74,'-541','55524',84,122);
INSERT INTO "communes" VALUES('80','Tours-en-Vimeu','29',881,722,13.39,'-730','55596',60,116);
INSERT INTO "communes" VALUES('80','Bouillancourt-en-Séry','22',559,486,16.11,'-787','55514',63,181);
INSERT INTO "communes" VALUES('80','Doudelainville','23',321,194,4.99,'-629','55558',69,121);
INSERT INTO "communes" VALUES('80','Rambures','22',393,366,9.9,'-704','55492',122,181);
INSERT INTO "communes" VALUES('80','Grandcourt','06',188,176,8.38,'414','55644',72,154);
INSERT INTO "communes" VALUES('80','Ugny-l''Équipée','24',41,46,2.85,'806','55352',71,91);
INSERT INTO "communes" VALUES('80','Feuillères','33',146,151,5.89,'567','55497',43,100);
INSERT INTO "communes" VALUES('80','Ergnies','04',211,152,1.96,'-332','55651',84,117);
INSERT INTO "communes" VALUES('80','Beaucourt-sur-l''Hallue','41',254,226,5.47,'120','55541',43,132);
INSERT INTO "communes" VALUES('80','Buire-sur-l''Ancre','06',324,312,5.28,'284','55517',38,102);
INSERT INTO "communes" VALUES('80','Dromesnil','25',96,120,5.38,'-520','55422',79,167);
INSERT INTO "communes" VALUES('80','Breilly','34',469,462,5.73,'-174','55483',12,101);
INSERT INTO "communes" VALUES('80','Fouilloy','18',1866,1735,5.73,'186','55444',28,98);
INSERT INTO "communes" VALUES('80','Beauquesne','21',1344,1176,20.04,'61','55650',98,164);
INSERT INTO "communes" VALUES('80','Remaisnil','12',39,35,2.92,'-101','55778',65,153);
INSERT INTO "communes" VALUES('80','Mesnil-Saint-Nicaise','30',571,515,6.8,'650','55310',65,82);
INSERT INTO "communes" VALUES('80','Étalon','38',137,112,4.56,'577','55293',62,89);
INSERT INTO "communes" VALUES('80','Fouencamps','13',232,240,3.65,'79','55361',27,99);
INSERT INTO "communes" VALUES('80','Eppeville','24',1861,2012,4.95,'793','55269',57,74);
INSERT INTO "communes" VALUES('80','Velennes','17',151,127,3.96,'-270','55293',66,164);
INSERT INTO "communes" VALUES('80','Beaumont-Hamel','06',188,218,8.31,'356','55649',70,148);
INSERT INTO "communes" VALUES('80','Saint-Quentin-en-Tourmont','39',306,331,32.89,'-830','55872',2,36);
INSERT INTO "communes" VALUES('80','Quesnoy-sur-Airaines','26',437,444,16.14,'-384','55507',50,124);
INSERT INTO "communes" VALUES('80','Mesnil-Domqueur','04',95,57,3.49,'-295','55706',98,134);
INSERT INTO "communes" VALUES('80','Noyelles-sur-Mer','31',773,741,20.01,'-697','55760',0,42);
INSERT INTO "communes" VALUES('80','Saint-Christ-Briost','30',463,407,7.82,'659','55393',47,87);
INSERT INTO "communes" VALUES('80','Argoeuves','08',530,543,10.21,'-122','55478',12,74);
INSERT INTO "communes" VALUES('80','Colincamps','03',92,88,4.38,'293','55667',134,157);
INSERT INTO "communes" VALUES('80','Fransart','37',150,121,3,'485','55297',84,94);
INSERT INTO "communes" VALUES('80','Gézaincourt','21',404,466,6.97,'-19','55712',54,142);
INSERT INTO "communes" VALUES('80','Mareuil-Caubert','02',895,892,9.08,'-564','55633',3,87);
INSERT INTO "communes" VALUES('80','Aveluy','06',501,525,6.64,'357','55582',57,129);
INSERT INTO "communes" VALUES('80','Fresnes-Tilloloy','32',172,137,3.52,'-633','55538',89,116);
INSERT INTO "communes" VALUES('80','Terramesnil','21',284,230,2.66,'50','55674',105,146);
INSERT INTO "communes" VALUES('80','Quesnoy-le-Montant','29',584,519,7.04,'-721','55677',13,79);
INSERT INTO "communes" VALUES('80','Glisy','13',570,482,5.55,'69','55420',21,70);
INSERT INTO "communes" VALUES('80','Saint-Léger-lès-Authie','03',90,98,4.29,'195','55696',87,157);
INSERT INTO "communes" VALUES('80','Senarpont','32',676,765,7,'-687','55433',61,177);
INSERT INTO "communes" VALUES('80','Bayonvillers','37',355,344,8.1,'323','55402',82,95);
INSERT INTO "communes" VALUES('80','Nibas','46',840,754,12.65,'-831','55668',27,97);
INSERT INTO "communes" VALUES('80','Laviéville','06',155,134,2.15,'266','55546',72,107);
INSERT INTO "communes" VALUES('80','Cressy-Omencourt','38',113,105,7.67,'639','55247',67,91);
INSERT INTO "communes" VALUES('80','Creuse','26',190,193,5.02,'-191','55377',53,124);
INSERT INTO "communes" VALUES('80','Brocourt','25',96,121,2.41,'-571','55392',107,176);
INSERT INTO "communes" VALUES('80','Grouches-Luchuel','21',598,469,9.02,'51','55757',63,159);
INSERT INTO "communes" VALUES('80','Potte','30',119,84,3.27,'628','55331',67,87);
INSERT INTO "communes" VALUES('80','Flaucourt','33',319,324,7.36,'586','55459',58,94);
INSERT INTO "communes" VALUES('80','Sorel','36',173,163,7.94,'793','55582',99,148);
INSERT INTO "communes" VALUES('80','Authuille','06',170,167,3.58,'369','55603',65,143);
INSERT INTO "communes" VALUES('80','Essertaux','17',239,199,6.6,'-102','55267',100,154);
INSERT INTO "communes" VALUES('80','Gueschart','19',328,324,12.89,'-360','55823',45,102);
INSERT INTO "communes" VALUES('80','Prouville','12',305,258,8.81,'-235','55720',85,149);
INSERT INTO "communes" VALUES('80','Lawarde-Mauger-l''Hortoy','05',182,132,9.32,'-63','55231',89,167);
INSERT INTO "communes" VALUES('80','Moreuil','28',4025,4100,23.43,'163','55305',32,113);
INSERT INTO "communes" VALUES('80','Vercourt','39',114,85,4.67,'-706','55889',3,31);
INSERT INTO "communes" VALUES('80','Neuilly-l''Hôpital','31',323,290,7.69,'-510','55743',22,84);
INSERT INTO "communes" VALUES('80','Varennes','03',204,176,7.24,'219','55611',83,156);
INSERT INTO "communes" VALUES('80','Amiens','99',133448,135449,49.46,'-43','55436',14,106);
INSERT INTO "communes" VALUES('80','Assevillers','15',287,228,5.47,'554','55440',57,84);
INSERT INTO "communes" VALUES('80','Fréchencourt','41',233,226,5.59,'116','55517',37,116);
INSERT INTO "communes" VALUES('80','Offoy','24',217,224,7.1,'750','55290',52,77);
INSERT INTO "communes" VALUES('80','Feuquières-en-Vimeu','29',2509,2370,7.99,'-813','55624',88,121);
INSERT INTO "communes" VALUES('80','Yzengremer','11',556,518,3.4,'-910','55623',102,127);
INSERT INTO "communes" VALUES('80','Condé-Folie','34',893,817,10.37,'-354','55567',7,96);
INSERT INTO "communes" VALUES('80','Conteville','19',195,172,6.46,'-291','55754',80,136);
INSERT INTO "communes" VALUES('80','Neuville-au-Bois','32',172,183,2.93,'-608','55525',89,118);
INSERT INTO "communes" VALUES('80','Vers-sur-Selles','13',725,770,11.18,'-117','55379',33,107);
INSERT INTO "communes" VALUES('80','Soues','34',143,127,8.64,'-314','55508',19,101);
INSERT INTO "communes" VALUES('80','Méaulte','06',1318,1256,10.75,'360','55535',42,112);
INSERT INTO "communes" VALUES('80','Albert','06',9774,10068,13.8,'351','55558',42,121);
INSERT INTO "communes" VALUES('80','Warvillers','37',135,104,4.18,'390','55311',92,99);
INSERT INTO "communes" VALUES('80','Bougainville','26',451,409,10.21,'-327','55411',54,128);
INSERT INTO "communes" VALUES('80','Falvy','30',128,100,6.32,'692','55360',51,91);
INSERT INTO "communes" VALUES('80','Pœuilly','36',100,105,6.22,'854','55424',62,104);
INSERT INTO "communes" VALUES('80','Revelles','26',544,506,14.41,'-239','55388',71,133);
INSERT INTO "communes" VALUES('80','La Neuville-lès-Bray','14',270,260,4.03,'424','55481',32,85);
INSERT INTO "communes" VALUES('80','Oust-Marest','11',646,704,5.8,'-975','55603',7,113);
INSERT INTO "communes" VALUES('80','Cayeux-sur-Mer','40',2736,2777,26.29,'-935','55756',0,15);
INSERT INTO "communes" VALUES('80','Ayencourt','27',173,170,4.67,'243','55140',60,97);
INSERT INTO "communes" VALUES('80','Étinehem','14',347,279,11.08,'393','55476',32,103);
INSERT INTO "communes" VALUES('80','Frohen-sur-Authie','12',224,174,7.08,'-145','55781',36,120);
INSERT INTO "communes" VALUES('80','Méneslies','11',301,310,4.04,'-933','55620',55,124);
INSERT INTO "communes" VALUES('80','Coulonvillers','04',240,226,9.47,'-366','55714',60,132);
INSERT INTO "communes" VALUES('80','Béthencourt-sur-Mer','11',1042,997,2.95,'-926','55642',75,119);
INSERT INTO "communes" VALUES('80','Bermesnil','32',237,203,4.1,'-668','55443',135,179);
INSERT INTO "communes" VALUES('80','Poulainville','45',1271,1373,12.6,'-25','55497',33,131);
INSERT INTO "communes" VALUES('80','Vauchelles-lès-Authie','03',131,113,4.7,'154','55664',83,143);
INSERT INTO "communes" VALUES('80','Fieffes-Montrelet','20',330,299,9.68,'-118','55651',63,147);
INSERT INTO "communes" VALUES('80','Raincheval','03',293,244,6.8,'113','55637',89,151);
INSERT INTO "communes" VALUES('80','Villers-Faucon','36',658,628,11.42,'847','55530',75,144);
INSERT INTO "communes" VALUES('80','Épaumesnil','32',122,108,4.74,'-537','55458',68,129);
INSERT INTO "communes" VALUES('80','Hesbécourt','36',57,65,3.62,'881','55494',89,141);
INSERT INTO "communes" VALUES('80','Lamaronde','35',73,68,2.55,'-484','55339',164,187);
INSERT INTO "communes" VALUES('80','Nurlu','33',385,380,6.53,'759','55563',115,154);
INSERT INTO "communes" VALUES('80','Aubercourt','28',73,43,3.8,'236','55363',45,101);
INSERT INTO "communes" VALUES('80','Bernâtre','12',34,47,4.59,'-272','55775',60,137);
INSERT INTO "communes" VALUES('80','Pissy','26',288,298,6.63,'-229','55402',90,127);
INSERT INTO "communes" VALUES('80','Guyencourt-Saulcourt','36',133,148,5,'826','55555',110,147);
INSERT INTO "communes" VALUES('80','Équancourt','16',325,280,7.79,'758','55596',88,147);
INSERT INTO "communes" VALUES('80','Hem-Monacu','16',123,98,3.66,'559','55505',42,112);
INSERT INTO "communes" VALUES('80','Épénancourt','30',116,128,3.5,'661','55359',50,92);
INSERT INTO "communes" VALUES('80','Ronssoy','36',561,611,7.53,'915','55536',100,147);
INSERT INTO "communes" VALUES('80','Frucourt','23',138,121,5.27,'-586','55551',48,114);
INSERT INTO "communes" VALUES('80','Vignacourt','34',2372,2186,29.1,'-157','55568',37,134);
INSERT INTO "communes" VALUES('80','Bussy-lès-Poix','35',94,89,4.4,'-354','55356',99,178);
INSERT INTO "communes" VALUES('80','Ginchy','16',66,56,5.92,'551','55582',85,157);
INSERT INTO "communes" VALUES('80','Vadencourt','41',99,104,4.92,'170','55564',53,120);
INSERT INTO "communes" VALUES('80','Vaux-Marquenneville','23',77,67,3.97,'-612','55539',70,122);
INSERT INTO "communes" VALUES('80','Maricourt','16',166,143,7.52,'498','55534',55,129);
INSERT INTO "communes" VALUES('80','Blangy-sous-Poix','35',193,158,8.01,'-371','55296',85,189);
INSERT INTO "communes" VALUES('80','Morchain','30',314,245,5.84,'641','55336',61,83);
INSERT INTO "communes" VALUES('80','Épehy','36',1200,1092,17.33,'880','55564',99,147);
INSERT INTO "communes" VALUES('80','Saint-Mard','38',194,193,4.15,'474','55215',62,95);
INSERT INTO "communes" VALUES('80','Hamelet','18',473,409,5.93,'213','55451',28,107);
INSERT INTO "communes" VALUES('80','Pernois','20',716,645,8.83,'-169','55614',31,143);
INSERT INTO "communes" VALUES('80','Pozières','06',250,244,3.24,'429','55601',115,161);
INSERT INTO "communes" VALUES('80','<NAME>','34',187,150,8.73,'-315','55495',25,112);
INSERT INTO "communes" VALUES('80','Frettecuisse','32',72,69,5.27,'-583','55471',83,143);
INSERT INTO "communes" VALUES('80','Montagne-Fayel','26',169,160,6.93,'-395','55461',66,132);
INSERT INTO "communes" VALUES('80','Allonville','45',760,568,10.37,'29','55490',59,114);
INSERT INTO "communes" VALUES('80','Bouttencourt','22',1017,1015,7.73,'-784','55484',31,161);
INSERT INTO "communes" VALUES('80','Vraignes-en-Vermandois','36',165,145,4.22,'810','55430',67,103);
INSERT INTO "communes" VALUES('80','Vitz-sur-Authie','19',114,127,4.66,'-301','55837',22,94);
INSERT INTO "communes" VALUES('80','Domqueur','04',290,262,8.37,'-319','55683',63,118);
INSERT INTO "communes" VALUES('80','Flers-sur-Noye','05',403,343,4.65,'-93','55258',113,159);
INSERT INTO "communes" VALUES('80','Lamotte-Warfusée','18',626,513,9.36,'288','55413',35,101);
INSERT INTO "communes" VALUES('80','Fourdrinoy','34',347,326,9.12,'-256','55464',42,120);
INSERT INTO "communes" VALUES('80','Hangard','28',118,100,6.34,'195','55359',35,102);
INSERT INTO "communes" VALUES('80','Hébécourt','13',506,371,5.04,'-84','55348',65,124);
INSERT INTO "communes" VALUES('80','Neuilly-le-Dien','19',101,108,4.9,'-326','55804',40,101);
INSERT INTO "communes" VALUES('80','Sains-en-Amiénois','13',1170,1074,9.92,'-21','55352',49,117);
INSERT INTO "communes" VALUES('80','Molliens-Dreuil','26',844,830,22.8,'-353','55426',40,129);
INSERT INTO "communes" VALUES('80','Chilly','37',202,166,4.85,'478','55327',78,93);
INSERT INTO "communes" VALUES('80','Fignières','27',142,124,6.6,'278','55204',69,112);
INSERT INTO "communes" VALUES('80','Ochancourt','46',278,235,3.95,'-802','55671',45,79);
INSERT INTO "communes" VALUES('80','Dargnies','22',1300,1441,3.67,'-901','55602',81,129);
INSERT INTO "communes" VALUES('80','Canaples','20',618,597,10.26,'-132','55618',40,153);
INSERT INTO "communes" VALUES('80','Ponthoile','31',614,546,19.41,'-693','55795',2,31);
INSERT INTO "communes" VALUES('80','Humbercourt','21',255,279,8.25,'131','55789',95,173);
INSERT INTO "communes" VALUES('80','Lignières-Châtelain','35',339,284,6.54,'-526','55306',186,209);
INSERT INTO "communes" VALUES('80','Quiry-le-Sec','05',308,270,6.88,'50','55192',100,157);
INSERT INTO "communes" VALUES('80','Dreuil-lès-Amiens','07',1273,1476,3.18,'-119','55462',12,87);
INSERT INTO "communes" VALUES('80','Tilloy-Floriville','22',387,324,8.09,'-807','55542',33,127);
INSERT INTO "communes" VALUES('80','La Faloise','05',231,210,9.75,'5','55222',57,158);
INSERT INTO "communes" VALUES('80','Sainte-Segrée','35',59,56,2.27,'-471','55284',132,189);
INSERT INTO "communes" VALUES('80','La Chavatte','37',62,39,1.89,'478','55285',84,95);
INSERT INTO "communes" VALUES('80','Chapelle','35',68,51,2.51,'-421','55295',109,183);
INSERT INTO "communes" VALUES('80','Contay','41',368,353,8.41,'155','55561',47,133);
INSERT INTO "communes" VALUES('80','Hangest-en-Santerre','28',1025,843,15.08,'299','55282',84,109);
INSERT INTO "communes" VALUES('80','Cappy','14',540,484,11.91,'468','55476',36,96);
INSERT INTO "communes" VALUES('80','<NAME>','39',2219,2440,16.32,'-791','55796',2,14);
INSERT INTO "communes" VALUES('80','Maucourt','37',158,152,3.68,'464','55326',86,94);
INSERT INTO "communes" VALUES('80','Dompierre-sur-Authie','19',417,404,22.73,'-465','55893',12,101);
INSERT INTO "communes" VALUES('80','Citerne','23',275,262,6.4,'-570','55536',83,123);
INSERT INTO "communes" VALUES('80','Mers-les-Bains','11',2960,3392,5.39,'-1054','55630',0,99);
INSERT INTO "communes" VALUES('80','Saisseval','26',227,230,7.32,'-249','55438',50,119);
INSERT INTO "communes" VALUES('80','Biarre','38',64,71,2.4,'603','55246',81,91);
INSERT INTO "communes" VALUES('80','Pont-Remy','04',1421,1401,9.93,'-482','55615',6,109);
INSERT INTO "communes" VALUES('80','Érondelle','23',507,434,4,'-504','55613',6,87);
INSERT INTO "communes" VALUES('80','<NAME>','20',253,195,4.84,'-17','55614',100,163);
INSERT INTO "communes" VALUES('80','Liancourt-Fosse','38',271,231,6.44,'532','55283',71,96);
INSERT INTO "communes" VALUES('80','Vismes','22',427,305,13.26,'-738','55569',71,124);
INSERT INTO "communes" VALUES('80','Estrées-Mons','33',569,608,15.3,'745','55420',56,102);
INSERT INTO "communes" VALUES('80','Aubvillers','05',131,96,4.88,'162','55238',49,118);
INSERT INTO "communes" VALUES('80','Curchy','38',323,299,9.63,'581','55307',62,88);
INSERT INTO "communes" VALUES('80','Bertangles','41',585,654,8.57,'-41','55523',51,131);
INSERT INTO "communes" VALUES('80','Templeux-la-Fosse','36',143,171,7.23,'765','55519',73,152);
INSERT INTO "communes" VALUES('80','Villecourt','24',62,58,2.19,'705','55333',52,75);
INSERT INTO "communes" VALUES('80','Seux','26',162,158,3.53,'-255','55415',80,126);
INSERT INTO "communes" VALUES('80','Sorel-en-Vimeu','23',236,187,4.09,'-477','55567',35,117);
INSERT INTO "communes" VALUES('80','Ennemain','24',219,248,6.44,'699','55385',47,86);
INSERT INTO "communes" VALUES('81','Saint-Avit','11',255,121,4.86,'-250','48351',177,237);
INSERT INTO "communes" VALUES('81','Moulayrès','13',175,154,8.85,'-341','48552',205,375);
INSERT INTO "communes" VALUES('81','Virac','20',224,211,11.44,'-324','48941',200,340);
INSERT INTO "communes" VALUES('81','Rouairoux','28',369,340,28.48,'257','48324',279,863);
INSERT INTO "communes" VALUES('81','Lacapelle-Ségalar','09',96,89,6.83,'-383','49017',204,446);
INSERT INTO "communes" VALUES('81','Appelle','24',66,70,3.87,'-425','48424',228,340);
INSERT INTO "communes" VALUES('81','Villefranche-d''Albigeois','36',1138,955,22.09,'-7','48774',183,526);
INSERT INTO "communes" VALUES('81','Montgaillard','30',356,304,14.95,'-823','48788',127,235);
INSERT INTO "communes" VALUES('81','Garrevaques','11',374,252,6.86,'-395','48322',183,214);
INSERT INTO "communes" VALUES('81','Albi','96',48916,46299,44.26,'-212','48809',130,308);
INSERT INTO "communes" VALUES('81','Saint-Jean-de-Marcel','32',367,329,18.25,'-101','48954',250,486);
INSERT INTO "communes" VALUES('81','Trébas','33',412,347,5.67,'162','48826',206,523);
INSERT INTO "communes" VALUES('81','Larroque','07',171,122,17.97,'-718','48893',115,462);
INSERT INTO "communes" VALUES('81','Saint-Gauzens','13',790,650,18.42,'-486','48609',109,284);
INSERT INTO "communes" VALUES('81','Castelnau-de-Lévis','37',1522,1407,21.42,'-281','48820',133,280);
INSERT INTO "communes" VALUES('81','Ferrières','31',144,149,11.85,'125','48514',337,725);
INSERT INTO "communes" VALUES('81','Taïx','39',356,306,4.76,'-237','48898',275,347);
INSERT INTO "communes" VALUES('81','Naves','46',699,703,9.75,'-125','48407',158,286);
INSERT INTO "communes" VALUES('81','Veilhes','17',108,95,5.59,'-570','48460',184,272);
INSERT INTO "communes" VALUES('81','<NAME>','31',299,310,47.63,'191','48670',498,859);
INSERT INTO "communes" VALUES('81','Cahuzac-sur-Vère','07',1054,1027,30.58,'-473','48870',173,288);
INSERT INTO "communes" VALUES('81','Teyssode','29',373,338,22.88,'-446','48500',127,327);
INSERT INTO "communes" VALUES('81','Terssac','45',1023,908,5.43,'-292','48809',133,162);
INSERT INTO "communes" VALUES('81','Nages','22',338,331,47.11,'492','48529',700,1181);
INSERT INTO "communes" VALUES('81','Albine','28',554,546,17.15,'225','48289',276,1033);
INSERT INTO "communes" VALUES('81','Lasfaillades','03',75,84,8.32,'175','48416',668,826);
INSERT INTO "communes" VALUES('81','Castelnau-de-Montmiral','07',957,897,88.81,'-573','48851',153,485);
INSERT INTO "communes" VALUES('81','Gaillac','12',13293,11070,50.93,'-487','48779',105,288);
INSERT INTO "communes" VALUES('81','Montdragon','16',608,422,12.19,'-260','48638',159,302);
INSERT INTO "communes" VALUES('81','Durfort','11',275,271,4.54,'-299','48265',262,660);
INSERT INTO "communes" VALUES('81','Lamontélarié','03',64,71,21.58,'295','48471',600,1111);
INSERT INTO "communes" VALUES('81','Jonquières','16',471,460,12.2,'-234','48499',165,243);
INSERT INTO "communes" VALUES('81','Milhars','34',253,262,16.28,'-508','49030',130,461);
INSERT INTO "communes" VALUES('81','Lédas-et-Penthiès','33',161,169,12.53,'52','48983',406,552);
INSERT INTO "communes" VALUES('81','Grazac','25',504,411,32.02,'-754','48714',117,235);
INSERT INTO "communes" VALUES('81','Montauriol','23',57,49,5.3,'-16','48981',418,606);
INSERT INTO "communes" VALUES('81','Busque','13',728,579,8.38,'-420','48647',136,332);
INSERT INTO "communes" VALUES('81','Roumégoux','26',240,188,13.43,'-84','48670',249,390);
INSERT INTO "communes" VALUES('81','Saint-Juéry','36',6797,6630,9.21,'-141','48832',157,332);
INSERT INTO "communes" VALUES('81','Almayrac','23',293,275,10.97,'-189','49001',248,372);
INSERT INTO "communes" VALUES('81','Roussayrolles','34',71,63,5.38,'-559','49002',240,497);
INSERT INTO "communes" VALUES('81','Frausseilles','09',97,85,5.87,'-452','48920',205,301);
INSERT INTO "communes" VALUES('81','Montvalen','30',204,157,11.73,'-830','48738',116,223);
INSERT INTO "communes" VALUES('81','Lisle-sur-Tarn','18',4277,3684,86.56,'-584','48726',95,285);
INSERT INTO "communes" VALUES('81','Saint-Lieux-Lafenasse','26',449,397,12.19,'-119','48631',197,365);
INSERT INTO "communes" VALUES('81','Magrin','29',133,113,8.07,'-459','48457',212,331);
INSERT INTO "communes" VALUES('81','Lempaut','24',729,575,14.18,'-302','48364',170,245);
INSERT INTO "communes" VALUES('81','<NAME>','04',44,49,17.89,'294','48490',736,1070);
INSERT INTO "communes" VALUES('81','Arthès','43',2463,2174,10.01,'-143','48838',157,342);
INSERT INTO "communes" VALUES('81','<NAME>','43',1163,1124,22.88,'-193','48900',178,359);
INSERT INTO "communes" VALUES('81','Beauvais-sur-Tescou','30',305,205,12.1,'-852','48789',128,230);
INSERT INTO "communes" VALUES('81','Sémalens','35',1979,1846,11.12,'-251','48435',146,280);
INSERT INTO "communes" VALUES('81','Marssac-sur-Tarn','45',2930,2407,7.17,'-343','48797',135,167);
INSERT INTO "communes" VALUES('81','<NAME>-Saint-Jean','30',238,214,15.82,'-786','48856',138,245);
INSERT INTO "communes" VALUES('81','Donnazac','09',84,86,4.74,'-435','48905',244,301);
INSERT INTO "communes" VALUES('81','Mazamet','99',9995,10539,72.08,'41','48324',213,1176);
INSERT INTO "communes" VALUES('81','Labessière-Candeil','05',732,674,21.98,'-368','48668',167,290);
INSERT INTO "communes" VALUES('81','Montans','12',1353,1061,32.43,'-501','48740',95,209);
INSERT INTO "communes" VALUES('81','Lacapelle-Pinet','33',69,65,8.15,'2','48964',352,602);
INSERT INTO "communes" VALUES('81','Algans','10',212,200,14.43,'-493','48441',191,312);
INSERT INTO "communes" VALUES('81','Vénès','16',732,584,27.42,'-160','48587',184,328);
INSERT INTO "communes" VALUES('81','Caucalières','42',318,297,12.8,'-27','48358',178,324);
INSERT INTO "communes" VALUES('81','Montgey','10',287,223,9.91,'-439','48343',182,332);
INSERT INTO "communes" VALUES('81','Prades','29',149,119,5.24,'-403','48459',177,330);
INSERT INTO "communes" VALUES('81','Sainte-Cécile-du-Cayrou','07',122,160,7.95,'-585','48893',170,384);
INSERT INTO "communes" VALUES('81','Lacaze','31',308,342,46.16,'204','48598',392,805);
INSERT INTO "communes" VALUES('81','Saint-André','01',100,107,7.27,'137','48815',206,563);
INSERT INTO "communes" VALUES('81','Saint-Amans-Valtoret','28',940,978,35.58,'172','48312',240,826);
INSERT INTO "communes" VALUES('81','Vieux','07',175,155,6.95,'-516','48881',170,271);
INSERT INTO "communes" VALUES('81','Espérausses','15',157,133,12.2,'219','48548',473,802);
INSERT INTO "communes" VALUES('81','Campagnac','07',115,114,7.43,'-546','48923',206,371);
INSERT INTO "communes" VALUES('81','Saint-Amancet','11',174,158,12.33,'-262','48295',208,784);
INSERT INTO "communes" VALUES('81','Fraissines','33',93,97,6.34,'193','48857',205,552);
INSERT INTO "communes" VALUES('81','Noailhac','14',827,716,20.77,'17','48415',212,475);
INSERT INTO "communes" VALUES('81','Rayssac','21',248,296,29.95,'86','48687',357,711);
INSERT INTO "communes" VALUES('81','Fréjairolles','44',1319,977,17.41,'-117','48756',216,333);
INSERT INTO "communes" VALUES('81','Lugan','17',423,263,10.13,'-688','48590',129,231);
INSERT INTO "communes" VALUES('81','Tauriac','30',255,194,9.92,'-827','48760',124,231);
INSERT INTO "communes" VALUES('81','Cabanès','29',223,155,8.86,'-439','48588',174,340);
INSERT INTO "communes" VALUES('81','Mont-Roc','21',177,173,14.18,'36','48669',319,625);
INSERT INTO "communes" VALUES('81','Lagardiolle','11',225,233,10.25,'-270','48338',179,230);
INSERT INTO "communes" VALUES('81','Saint-Antonin-de-Lacalm','26',258,237,28.09,'-34','48651',230,529);
INSERT INTO "communes" VALUES('81','Labastide-Gabausse','39',449,374,12.18,'-267','48932',230,345);
INSERT INTO "communes" VALUES('81','Mailhoc','37',255,222,12.67,'-296','48894',249,343);
INSERT INTO "communes" VALUES('81','Sorèze','11',2610,2167,41.64,'-300','48281',204,781);
INSERT INTO "communes" VALUES('81','Cordes-sur-Ciel','09',1011,999,8.27,'-426','48959',159,320);
INSERT INTO "communes" VALUES('81','Lautrec','16',1756,1556,54.64,'-220','48562',165,360);
INSERT INTO "communes" VALUES('81','Fréjeville','35',661,474,9.48,'-217','48455',145,231);
INSERT INTO "communes" VALUES('81','Treban','23',43,51,3.17,'8','48994',419,590);
INSERT INTO "communes" VALUES('81','Garrigues','17',287,213,10.51,'-686','48548',148,244);
INSERT INTO "communes" VALUES('81','Valence-d''Albigeois','33',1295,1147,20.47,'75','48911',302,520);
INSERT INTO "communes" VALUES('81','Brousse','16',369,265,14.77,'-293','48575',196,371);
INSERT INTO "communes" VALUES('81','Rouffiac','38',569,528,11.13,'-298','48759',165,271);
INSERT INTO "communes" VALUES('81','Mézens','25',398,310,5.9,'-741','48653',97,247);
INSERT INTO "communes" VALUES('81','Marnaves','34',78,81,10.29,'-499','48997',150,488);
INSERT INTO "communes" VALUES('81','Saint-Lieux-lès-Lavaur','17',878,539,9.54,'-641','48628',95,136);
INSERT INTO "communes" VALUES('81','Montredon-Labessonnié','21',2078,2032,110.88,'-11','48578',196,644);
INSERT INTO "communes" VALUES('81','Milhavet','37',86,94,4.28,'-344','48921',255,322);
INSERT INTO "communes" VALUES('81','Bout-du-Pont-de-Larn','28',1078,1070,7.63,'75','48334',218,512);
INSERT INTO "communes" VALUES('81','Marzens','17',303,262,11.26,'-551','48503',139,301);
INSERT INTO "communes" VALUES('81','Saint-Marcel-Campes','09',241,221,22.34,'-386','48978',158,448);
INSERT INTO "communes" VALUES('81','Lamillarié','26',435,358,13.95,'-198','48719',209,307);
INSERT INTO "communes" VALUES('81','Brens','12',2178,1599,22.79,'-474','48766',103,196);
INSERT INTO "communes" VALUES('81','Lacougotte-Cadoul','17',163,137,8.81,'-566','48490',184,291);
INSERT INTO "communes" VALUES('81','Ambialet','36',447,381,30.04,'47','48830',180,502);
INSERT INTO "communes" VALUES('81','Castelnau-de-Brassac','04',763,803,72.88,'197','48499',396,1137);
INSERT INTO "communes" VALUES('81','Montcabrier','17',231,173,5.43,'-674','48474',158,254);
INSERT INTO "communes" VALUES('81','Dourgne','11',1287,1186,22.75,'-220','48317',186,804);
INSERT INTO "communes" VALUES('81','Réalmont','26',3294,2850,14.33,'-163','48640',181,333);
INSERT INTO "communes" VALUES('81','Trévien','20',193,188,16.26,'-237','49012',219,466);
INSERT INTO "communes" VALUES('81','Saint-Jean-de-Rives','17',408,242,6.02,'-624','48604',95,207);
INSERT INTO "communes" VALUES('81','Cadix','33',233,227,18.13,'156','48862',207,525);
INSERT INTO "communes" VALUES('81','Aguts','10',239,187,9.79,'-462','48367',182,320);
INSERT INTO "communes" VALUES('81','Dénat','26',706,550,15.01,'-146','48718',211,325);
INSERT INTO "communes" VALUES('81','Cambon-lès-Lavaur','10',262,208,12.14,'-537','48430',176,272);
INSERT INTO "communes" VALUES('81','Puycalvel','16',208,210,12.27,'-272','48533',182,341);
INSERT INTO "communes" VALUES('81','Sieurac','26',210,170,8.72,'-260','48672',195,265);
INSERT INTO "communes" VALUES('81','Brassac','04',1396,1432,23.87,'180','48477',463,828);
INSERT INTO "communes" VALUES('81','Sérénac','32',483,323,17.02,'-2','48849',174,407);
INSERT INTO "communes" VALUES('81','Saint-Agnan','17',226,161,6.88,'-669','48551',155,243);
INSERT INTO "communes" VALUES('81','Montels','07',103,86,3.23,'-492','48847',219,285);
INSERT INTO "communes" VALUES('81','Puygouzon','38',2916,2725,12.53,'-185','48769',182,308);
INSERT INTO "communes" VALUES('81','Payrin-Augmontel','19',2188,2004,12.84,'14','48354',185,370);
INSERT INTO "communes" VALUES('81','Blan','24',1070,742,13.3,'-365','48363',175,232);
INSERT INTO "communes" VALUES('81','Rabastens','25',5051,4176,66.29,'-679','48691',95,252);
INSERT INTO "communes" VALUES('81','Cuq-Toulza','10',677,518,23.05,'-504','48410',182,296);
INSERT INTO "communes" VALUES('81','Fauch','26',490,392,17.32,'-92','48702',236,391);
INSERT INTO "communes" VALUES('81','Mouzens','10',126,96,4.87,'-500','48366',207,295);
INSERT INTO "communes" VALUES('81','Montrosier','34',30,34,3.39,'-555','49043',110,394);
INSERT INTO "communes" VALUES('81','Labastide-Rouairoux','28',1539,1754,23.67,'336','48306',364,940);
INSERT INTO "communes" VALUES('81','Murat-sur-Vèbre','22',839,816,93.87,'575','48539',543,1205);
INSERT INTO "communes" VALUES('81','Técou','05',882,631,19.4,'-430','48715',160,325);
INSERT INTO "communes" VALUES('81','Ambres','17',945,735,19.11,'-581','48591',100,225);
INSERT INTO "communes" VALUES('81','Lacabarède','28',290,304,14.5,'273','48300',320,963);
INSERT INTO "communes" VALUES('81','Saint-Jean-de-Vals','27',73,55,4.75,'-90','48544',243,389);
INSERT INTO "communes" VALUES('81','Mouzieys-Teulet','36',417,312,13.21,'-67','48739',230,383);
INSERT INTO "communes" VALUES('81','Viviers-lès-Montagnes','14',1783,1636,17.91,'-178','48394',167,281);
INSERT INTO "communes" VALUES('81','Viterbe','29',352,254,6.51,'-452','48531',119,162);
INSERT INTO "communes" VALUES('81','Belleserre','11',167,103,4.76,'-312','48322',187,246);
INSERT INTO "communes" VALUES('81','Saint-Martin-Laguépie','09',451,401,21.51,'-403','49047',133,344);
INSERT INTO "communes" VALUES('81','Rosières','06',764,635,10.55,'-171','48938',235,354);
INSERT INTO "communes" VALUES('81','Sauveterre','28',179,154,12.39,'240','48305',279,986);
INSERT INTO "communes" VALUES('81','Labastide-Saint-Georges','17',1752,1235,6.23,'-547','48556',110,203);
INSERT INTO "communes" VALUES('81','Senaux','15',39,28,4.73,'313','48620',551,896);
INSERT INTO "communes" VALUES('81','Aiguefonde','42',2731,2630,19.13,'-22','48326',180,893);
INSERT INTO "communes" VALUES('81','Livers-Cazelles','09',235,229,13.05,'-376','48947',191,325);
INSERT INTO "communes" VALUES('81','Lasgraisses','05',374,323,12.22,'-332','48689',182,270);
INSERT INTO "communes" VALUES('81','Guitalens-L''Albarède','35',816,264,9.36,'-327','48494',138,290);
INSERT INTO "communes" VALUES('81','Bellegarde','36',420,317,11.1,'-71','48785',226,386);
INSERT INTO "communes" VALUES('81','Montirat','20',262,319,27.78,'-260','49066',170,516);
INSERT INTO "communes" VALUES('81','Salles','20',195,173,8.19,'-334','48970',190,346);
INSERT INTO "communes" VALUES('81','Moulin-Mage','22',319,364,15.06,'521','48569',834,1022);
INSERT INTO "communes" VALUES('81','Tonnac','09',124,136,11.23,'-521','48960',230,523);
INSERT INTO "communes" VALUES('81','Briatexte','13',1936,1662,15,'-476','48612',119,294);
INSERT INTO "communes" VALUES('81','Lacaune','15',2603,2920,91.36,'395','48565',598,1274);
INSERT INTO "communes" VALUES('81','Saint-Beauzile','07',116,108,9.23,'-562','48912',192,466);
INSERT INTO "communes" VALUES('81','Labastide-de-Lévis','12',983,864,14.29,'-362','48807',135,220);
INSERT INTO "communes" VALUES('81','Vaour','34',328,247,14.12,'-594','48969',240,507);
INSERT INTO "communes" VALUES('81','Gijounet','15',134,125,15.13,'310','48571',530,1060);
INSERT INTO "communes" VALUES('81','Andouque','32',384,370,26.21,'-36','48914',267,488);
INSERT INTO "communes" VALUES('81','Montpinier','16',175,168,7.6,'-149','48531',193,301);
INSERT INTO "communes" VALUES('81','Vielmur-sur-Agout','35',1444,1064,11.61,'-275','48467',145,195);
INSERT INTO "communes" VALUES('81','Alos','07',110,130,6.32,'-510','48916',198,286);
INSERT INTO "communes" VALUES('81','Puylaurens','24',3191,2792,81.82,'-361','48413',147,372);
INSERT INTO "communes" VALUES('81','Lavaur','17',10148,8543,62.83,'-575','48554',105,274);
INSERT INTO "communes" VALUES('81','Serviès','35',597,524,12.8,'-344','48511',136,312);
INSERT INTO "communes" VALUES('81','Peyrole','18',491,306,20.59,'-487','48672',154,325);
INSERT INTO "communes" VALUES('81','Crespin','32',122,121,14.15,'-42','48946',291,595);
INSERT INTO "communes" VALUES('81','Combefa','20',153,125,2.93,'-267','48950',213,330);
INSERT INTO "communes" VALUES('81','Itzac','34',144,111,11.24,'-530','48935',220,466);
INSERT INTO "communes" VALUES('81','Castanet','12',186,198,7.21,'-341','48861',188,302);
INSERT INTO "communes" VALUES('81','Lacrouzette','27',1731,1762,28.77,'13','48516',193,700);
INSERT INTO "communes" VALUES('81','Carbes','35',177,182,7.4,'-200','48491',165,221);
INSERT INTO "communes" VALUES('81','Sainte-Gemme','23',807,715,20.16,'-151','48988',248,394);
INSERT INTO "communes" VALUES('81','Villeneuve-sur-Vère','37',461,363,15.89,'-342','48891',227,321);
INSERT INTO "communes" VALUES('81','Fénols','05',227,210,6,'-315','48719',174,225);
INSERT INTO "communes" VALUES('81','Saussenac','32',502,409,17.39,'-64','48874',218,498);
INSERT INTO "communes" VALUES('81','Cuq','35',479,439,14.99,'-271','48497',152,322);
INSERT INTO "communes" VALUES('81','Puycelsi','07',474,495,39.2,'-696','48881',132,367);
INSERT INTO "communes" VALUES('81','Padiès','33',195,199,14.69,'30','48936',340,552);
INSERT INTO "communes" VALUES('81','Curvalle','01',446,493,38.63,'146','48826',206,696);
INSERT INTO "communes" VALUES('81','Saliès','38',781,645,3.55,'-231','48768',182,274);
INSERT INTO "communes" VALUES('81','Cadalen','05',1473,1206,40.41,'-394','48722',163,325);
INSERT INTO "communes" VALUES('81','Pratviel','29',82,79,7.11,'-503','48487',167,311);
INSERT INTO "communes" VALUES('81','Saint-Grégoire','32',449,328,12.75,'-83','48847',160,368);
INSERT INTO "communes" VALUES('81','Barre','22',211,217,15.07,'544','48613',857,1065);
INSERT INTO "communes" VALUES('81','Verdalle','11',948,718,24.24,'-196','48346',195,847);
INSERT INTO "communes" VALUES('81','Escroux','15',49,53,10.24,'322','48620',570,906);
INSERT INTO "communes" VALUES('81','Saint-Cirgue','33',219,195,18.7,'38','48850',180,457);
INSERT INTO "communes" VALUES('81','Viane','15',620,580,38.37,'274','48597',475,904);
INSERT INTO "communes" VALUES('81','Cahuzac','11',359,141,5.69,'-287','48301',199,288);
INSERT INTO "communes" VALUES('81','Saint-Genest-de-Contest','16',245,265,13.71,'-212','48622',177,321);
INSERT INTO "communes" VALUES('81','Loupiac','25',396,271,10.82,'-616','48697',95,157);
INSERT INTO "communes" VALUES('81','Saint-Julien-du-Puy','16',405,354,19.38,'-284','48620',159,311);
INSERT INTO "communes" VALUES('81','Blaye-les-Mines','39',3074,2950,8.88,'-198','48926',241,344);
INSERT INTO "communes" VALUES('81','Villeneuve-lès-Lavaur','17',136,143,6.16,'-611','48444',163,251);
INSERT INTO "communes" VALUES('81','<NAME>','19',52,40,7.64,'139','48402',581,783);
INSERT INTO "communes" VALUES('81','Andillac','07',116,102,5.44,'-495','48888',189,283);
INSERT INTO "communes" VALUES('81','Bournazel','09',177,152,7.41,'-409','48991',193,330);
INSERT INTO "communes" VALUES('81','Labarthe-Bleys','09',83,83,9.06,'-477','48974',150,367);
INSERT INTO "communes" VALUES('81','Roquevidal','10',122,129,7.71,'-526','48473',206,306);
INSERT INTO "communes" VALUES('81','Alban','01',992,848,9.82,'137','48766',357,644);
INSERT INTO "communes" VALUES('81','Grave','12',1828,1269,9.46,'-383','48775',135,205);
INSERT INTO "communes" VALUES('81','Massaguel','11',422,401,10.09,'-196','48325',251,764);
INSERT INTO "communes" VALUES('81','Bannières','17',177,130,7.31,'-650','48473',161,255);
INSERT INTO "communes" VALUES('81','Paulinet','01',530,569,73.75,'103','48721',360,704);
INSERT INTO "communes" VALUES('81','Graulhet','13',11955,12656,56.75,'-387','48623',126,373);
INSERT INTO "communes" VALUES('81','Coufouleux','25',2260,2037,27.16,'-673','48686',95,148);
INSERT INTO "communes" VALUES('81','Saint-Amans-Soult','28',1677,1679,24.87,'170','48308',239,1172);
INSERT INTO "communes" VALUES('81','Teillet','01',456,442,24.22,'3','48705',339,534);
INSERT INTO "communes" VALUES('81','Saint-Pierre-de-Trivisy','31',626,612,36.09,'109','48623',373,769);
INSERT INTO "communes" VALUES('81','Pont-de-Larn','19',2874,2705,34.51,'77','48338',202,701);
INSERT INTO "communes" VALUES('81','Viviers-lès-Lavaur','17',201,159,10.02,'-595','48480',181,272);
INSERT INTO "communes" VALUES('81','Massac-Séran','29',321,177,8.52,'-529','48514',147,274);
INSERT INTO "communes" VALUES('81','Angles','03',531,563,85.62,'249','48404',358,967);
INSERT INTO "communes" VALUES('81','Saint-Michel-de-Vax','34',68,68,5.9,'-597','49008',158,413);
INSERT INTO "communes" VALUES('81','Assac','33',156,154,15.06,'115','48861',200,525);
INSERT INTO "communes" VALUES('81','Saint-Salvi-de-Carcavès','31',92,101,10.96,'289','48673',594,931);
INSERT INTO "communes" VALUES('81','Ronel','26',278,199,9.89,'-125','48683',235,370);
INSERT INTO "communes" VALUES('81','Aussillon','42',6459,6869,10.26,'32','48331',198,805);
INSERT INTO "communes" VALUES('81','Penne','34',563,523,64.04,'-674','48975',93,489);
INSERT INTO "communes" VALUES('81','Saint-Sernin-lès-Lavaur','24',120,96,4.21,'-403','48387',187,275);
INSERT INTO "communes" VALUES('81','Le Verdier','07',238,213,9.54,'-550','48876',169,290);
INSERT INTO "communes" VALUES('81','Cunac','36',1493,1145,6.38,'-129','48809',191,291);
INSERT INTO "communes" VALUES('81','Damiatte','29',971,767,31.78,'-401','48503',125,350);
INSERT INTO "communes" VALUES('81','Laparrouquial','20',103,109,8.43,'-345','49013',181,502);
INSERT INTO "communes" VALUES('81','Cambounet-sur-le-Sor','24',830,638,7.65,'-249','48419',158,250);
INSERT INTO "communes" VALUES('81','Saint-Benoît-de-Carmaux','06',2152,2266,4.49,'-230','48947',217,330);
INSERT INTO "communes" VALUES('81','Saïx','46',3307,3278,13.79,'-169','48424',147,263);
INSERT INTO "communes" VALUES('81','Moularès','23',271,281,16.81,'-48','48968',315,593);
INSERT INTO "communes" VALUES('81','Vindrac-Alayrac','09',153,168,9.82,'-471','48961',150,340);
INSERT INTO "communes" VALUES('81','Carlus','38',665,549,10.6,'-253','48765',164,282);
INSERT INTO "communes" VALUES('81','Saint-Sulpice','17',8091,4805,23.99,'-722','48638',95,195);
INSERT INTO "communes" VALUES('81','<NAME>','04',812,717,32.13,'155','48453',353,813);
INSERT INTO "communes" VALUES('81','Sainte-Croix','37',355,287,7.22,'-299','48858',195,307);
INSERT INTO "communes" VALUES('81','Orban','26',310,273,8.76,'-281','48714',188,252);
INSERT INTO "communes" VALUES('81','Puéchoursi','10',87,94,3.55,'-477','48353',206,322);
INSERT INTO "communes" VALUES('81','Senouillac','12',1059,838,15.01,'-429','48824',147,245);
INSERT INTO "communes" VALUES('81','Mirandol-Bourgnounac','23',1084,1082,38.19,'-189','49047',214,435);
INSERT INTO "communes" VALUES('81','Puybegon','13',597,485,19.01,'-490','48656',117,322);
INSERT INTO "communes" VALUES('81','Péchaudier','10',180,185,6.8,'-435','48384',183,242);
INSERT INTO "communes" VALUES('81','Crespinet','32',156,175,9.15,'-42','48838',160,385);
INSERT INTO "communes" VALUES('81','Montfa','27',398,281,10.69,'-104','48553',214,390);
INSERT INTO "communes" VALUES('81','Labastide-Dénat','26',375,239,7.43,'-161','48741',217,333);
INSERT INTO "communes" VALUES('81','Saint-Affrique-les-Montagnes','14',744,600,7.86,'-145','48375',181,333);
INSERT INTO "communes" VALUES('81','Laboutarie','26',449,387,5.39,'-243','48648',169,271);
INSERT INTO "communes" VALUES('81','Massals','01',113,154,16.3,'208','48724',527,813);
INSERT INTO "communes" VALUES('81','Parisot','18',883,563,28.99,'-561','48665',115,296);
INSERT INTO "communes" VALUES('81','Arifat','21',156,162,20.28,'31','48649',267,583);
INSERT INTO "communes" VALUES('81','Bruguière','14',6231,5485,60.73,'-82','48377',174,1027);
INSERT INTO "communes" VALUES('81','Saint-Germain-des-Prés','24',851,589,16.97,'-302','48401',165,350);
INSERT INTO "communes" VALUES('81','Broze','12',104,93,4.02,'-495','48837',178,285);
INSERT INTO "communes" VALUES('81','Croisille','10',127,130,6.67,'-451','48426',213,315);
INSERT INTO "communes" VALUES('81','<NAME>','34',119,130,5.01,'-474','49057',130,280);
INSERT INTO "communes" VALUES('81','Courris','33',82,79,9.42,'79','48842',183,458);
INSERT INTO "communes" VALUES('81','Saint-Michel-Labadié','33',83,88,9.78,'110','48894',262,573);
INSERT INTO "communes" VALUES('81','<NAME>','38',1543,1344,5.42,'-264','48797',162,256);
INSERT INTO "communes" VALUES('81','Faussergues','33',136,141,14.84,'115','48931',400,583);
INSERT INTO "communes" VALUES('81','Terre-Clapier','26',239,212,12.1,'-40','48727',271,457);
INSERT INTO "communes" VALUES('81','<NAME>','19',85,70,11.38,'140','48361',396,742);
INSERT INTO "communes" VALUES('81','<NAME>','36',387,372,29.63,'94','48775',239,631);
INSERT INTO "communes" VALUES('81','Missècle','13',93,100,5.77,'-383','48574',215,371);
INSERT INTO "communes" VALUES('81','Lagarrigue','14',1774,1640,4.86,'-67','48419',185,266);
INSERT INTO "communes" VALUES('81','Saint-Germier','27',128,120,4.16,'-119','48531',220,317);
INSERT INTO "communes" VALUES('81','Bertre','24',108,66,4.14,'-440','48443',224,330);
INSERT INTO "communes" VALUES('81','Burlats','27',1902,1821,32.62,'-21','48485',176,682);
INSERT INTO "communes" VALUES('81','Berlats','15',105,110,10.45,'254','48552',556,896);
INSERT INTO "communes" VALUES('81','Lescure-d''Albigeois','43',4186,3657,14.18,'-185','48837',154,302);
INSERT INTO "communes" VALUES('81','Pampelonne','23',761,670,36.4,'-100','49027',250,561);
INSERT INTO "communes" VALUES('81','Amarens','09',70,79,4.88,'-470','48931',175,292);
INSERT INTO "communes" VALUES('81','Fiac','29',865,699,25,'-477','48557',115,252);
INSERT INTO "communes" VALUES('81','Saint-Salvy-de-la-Balme','19',556,569,18.36,'69','48457',305,704);
INSERT INTO "communes" VALUES('81','<NAME>','20',237,242,18.91,'-309','49009',190,512);
INSERT INTO "communes" VALUES('81','Soual','11',2308,1987,14.17,'-245','48395',163,221);
INSERT INTO "communes" VALUES('81','Tanus','23',526,436,19.07,'-21','49002',293,568);
INSERT INTO "communes" VALUES('81','Fayssac','12',368,276,7.62,'-405','48838',168,261);
INSERT INTO "communes" VALUES('81','Arfons','11',182,176,40.71,'-187','48255',566,904);
INSERT INTO "communes" VALUES('81','Miolles','01',103,118,12.1,'234','48765',310,821);
INSERT INTO "communes" VALUES('81','Cabannes','09',352,320,6.16,'-440','48963',152,310);
INSERT INTO "communes" VALUES('81','Cagnac-les-Mines','37',2284,2086,24.7,'-217','48873',153,324);
INSERT INTO "communes" VALUES('81','Cestayrols','12',478,453,17.03,'-391','48867',188,282);
INSERT INTO "communes" VALUES('81','Palleville','11',424,273,6.44,'-379','48335',181,213);
INSERT INTO "communes" VALUES('81','Marsal','36',279,225,8.29,'-55','48811',163,367);
INSERT INTO "communes" VALUES('81','Carmaux','97',10116,10232,14.16,'-198','48943',228,340);
INSERT INTO "communes" VALUES('81','Cambounès','04',338,352,22.58,'115','48429',333,785);
INSERT INTO "communes" VALUES('81','Aussac','05',276,214,6.06,'-329','48739',165,233);
INSERT INTO "communes" VALUES('81','Poulan-Pouzols','26',430,386,11.86,'-244','48733',187,292);
INSERT INTO "communes" VALUES('81','Souel','09',186,167,9.7,'-423','48923',184,306);
INSERT INTO "communes" VALUES('81','Castres','98',42314,43451,98.17,'-107','48451',151,367);
INSERT INTO "communes" VALUES('81','Vabre','31',806,822,28.43,'100','48548',274,668);
INSERT INTO "communes" VALUES('81','Saint-Julien-Gaulène','33',212,204,11.84,'10','48877',300,456);
INSERT INTO "communes" VALUES('81','Peyregoux','16',94,81,4.5,'-148','48558',199,289);
INSERT INTO "communes" VALUES('81','Roquemaure','25',386,287,15.77,'-792','48682',108,231);
INSERT INTO "communes" VALUES('81','Roquecourbe','27',2281,2212,16.65,'-50','48516',202,409);
INSERT INTO "communes" VALUES('81','Salvagnac','30',1078,928,33.41,'-721','48784',139,280);
INSERT INTO "communes" VALUES('81','Saint-Christophe','20',130,123,14.47,'-321','49057',156,484);
INSERT INTO "communes" VALUES('81','Boissezon','19',389,391,19.36,'49','48417',247,734);
INSERT INTO "communes" VALUES('81','Cambon','36',1917,1386,7.71,'-138','48792',189,333);
INSERT INTO "communes" VALUES('81','Bernac','12',174,159,5.54,'-347','48843',174,225);
INSERT INTO "communes" VALUES('81','Loubers','09',93,75,4.23,'-491','48936',184,294);
INSERT INTO "communes" VALUES('81','Monestiés','20',1381,1385,26.83,'-266','48968',190,437);
INSERT INTO "communes" VALUES('81','Valderiès','32',838,754,20.42,'-116','48902',216,424);
INSERT INTO "communes" VALUES('81','<NAME>','33',128,125,9.32,'154','48909',315,583);
INSERT INTO "communes" VALUES('81','Saint-Urcisse','30',240,177,12.05,'-802','48822',135,226);
INSERT INTO "communes" VALUES('81','Saint-Paul-Cap-de-Joux','29',1071,961,17.01,'-401','48497',127,300);
INSERT INTO "communes" VALUES('81','Mouzieys-Panens','09',223,180,13.13,'-449','48991',150,328);
INSERT INTO "communes" VALUES('81','Noailles','09',206,166,11.59,'-391','48900',210,307);
INSERT INTO "communes" VALUES('81','Cammazes','11',298,211,7.68,'-286','48235',410,653);
INSERT INTO "communes" VALUES('81','Valdurenque','14',824,699,5.99,'-31','48410',191,329);
INSERT INTO "communes" VALUES('81','Escoussens','14',643,521,23.62,'-138','48334',235,958);
INSERT INTO "communes" VALUES('81','Florentin','05',706,583,12.62,'-337','48765',153,250);
INSERT INTO "communes" VALUES('81','Lescout','24',587,409,6.72,'-257','48375',165,223);
INSERT INTO "communes" VALUES('81','Jouqueviel','23',101,105,12.15,'-221','49095',196,531);
INSERT INTO "communes" VALUES('81','Giroussens','17',1365,1040,41.67,'-623','48625',95,272);
INSERT INTO "communes" VALUES('81','Belcastel','17',196,176,10.81,'-644','48499',173,271);
INSERT INTO "communes" VALUES('81','Maurens-Scopont','10',174,158,8.6,'-580','48440',166,272);
INSERT INTO "communes" VALUES('81','Poudis','24',222,198,4.62,'-391','48356',179,215);
INSERT INTO "communes" VALUES('81','Rivières','12',890,723,9.57,'-415','48793',115,158);
INSERT INTO "communes" VALUES('81','Montdurausse','30',323,246,15.92,'-853','48831',134,226);
INSERT INTO "communes" VALUES('81','Laboulbène','40',138,134,4.65,'-147','48530',214,292);
INSERT INTO "communes" VALUES('81','<NAME>','26',127,136,8.44,'-6','48676',304,480);
INSERT INTO "communes" VALUES('81','Lombers','26',1046,860,38.79,'-207','48671',177,321);
INSERT INTO "communes" VALUES('81','Teulat','17',484,400,10.07,'-709','48484',156,245);
INSERT INTO "communes" VALUES('82','Saint-Vincent','05',299,296,16.27,'-961','49068',96,212);
INSERT INTO "communes" VALUES('82','Montagudet','09',189,192,12.18,'-1383','49160',91,237);
INSERT INTO "communes" VALUES('82','Meauzac','25',1155,890,11.77,'-1219','48987',67,88);
INSERT INTO "communes" VALUES('82','Saint-Michel','01',246,218,13.41,'-1546','48925',53,163);
INSERT INTO "communes" VALUES('82','Gimat','02',185,181,10.1,'-1549','48724',106,202);
INSERT INTO "communes" VALUES('82','Cayrac','05',499,365,6.21,'-940','49012',79,152);
INSERT INTO "communes" VALUES('82','Montjoi','22',181,177,14.67,'-1574','49107',80,217);
INSERT INTO "communes" VALUES('82','Saint-Projet','06',299,254,26.14,'-604','49227',213,402);
INSERT INTO "communes" VALUES('82','Golfech','22',912,707,9.72,'-1650','49015',47,71);
INSERT INTO "communes" VALUES('82','Saint-Paul-d''Espis','11',607,633,26.07,'-1520','49049',68,191);
INSERT INTO "communes" VALUES('82','Montricoux','19',1091,969,26.44,'-797','48973',90,275);
INSERT INTO "communes" VALUES('82','Albefeuille-Lagarde','25',625,641,8.03,'-1176','48963',73,102);
INSERT INTO "communes" VALUES('82','Puycornet','12',669,518,27.46,'-1131','49061',94,198);
INSERT INTO "communes" VALUES('82','Mirabel','05',992,840,32.07,'-1018','49049',79,217);
INSERT INTO "communes" VALUES('82','Génébrières','13',591,448,18.45,'-928','48886',114,222);
INSERT INTO "communes" VALUES('82','Saint-Cirice','01',168,136,8.92,'-1653','48945',59,198);
INSERT INTO "communes" VALUES('82','Saint-Étienne-de-Tulmont','19',3529,2558,21.14,'-972','48942',80,190);
INSERT INTO "communes" VALUES('82','Saint-Sardos','23',887,555,26.56,'-1336','48778',99,212);
INSERT INTO "communes" VALUES('82','Montbeton','17',3442,2098,15.98,'-1168','48901',76,105);
INSERT INTO "communes" VALUES('82','Maumusson','10',55,46,5.04,'-1593','48797',157,261);
INSERT INTO "communes" VALUES('82','Castelsarrasin','97',12770,11353,76.77,'-1366','48933',61,97);
INSERT INTO "communes" VALUES('82','Marignac','02',106,66,5.07,'-1583','48715',107,192);
INSERT INTO "communes" VALUES('82','Escazeaux','02',300,222,16.05,'-1460','48706',126,268);
INSERT INTO "communes" VALUES('82','Auty','12',111,122,7.42,'-966','49101',123,218);
INSERT INTO "communes" VALUES('82','Saint-Nauphary','24',1712,1225,24.43,'-1009','48850',90,222);
INSERT INTO "communes" VALUES('82','Auterive','02',61,50,3.68,'-1522','48733',107,152);
INSERT INTO "communes" VALUES('82','Fajolles','21',104,77,9.32,'-1469','48853',99,186);
INSERT INTO "communes" VALUES('82','Saint-Cirq','05',488,381,15.96,'-812','49051',108,215);
INSERT INTO "communes" VALUES('82','Bressols','17',3580,2659,20.39,'-1109','48853',75,111);
INSERT INTO "communes" VALUES('82','Caumont','21',321,262,15.22,'-1484','48910',77,164);
INSERT INTO "communes" VALUES('82','Coutures','21',104,104,6.9,'-1500','48836',104,213);
INSERT INTO "communes" VALUES('82','Lafitte','21',232,200,4.74,'-1352','48858',76,159);
INSERT INTO "communes" VALUES('82','Saint-Georges','05',221,134,9.09,'-770','49136',157,281);
INSERT INTO "communes" VALUES('82','Durfort-Lacapelette','09',798,679,35.83,'-1313','49096',91,205);
INSERT INTO "communes" VALUES('82','Saint-Amans-du-Pech','14',193,166,6.76,'-1608','49240',99,228);
INSERT INTO "communes" VALUES('82','Mansonville','10',273,273,15.45,'-1662','48907',67,202);
INSERT INTO "communes" VALUES('82','Reyniès','24',928,815,9.94,'-1042','48797',75,204);
INSERT INTO "communes" VALUES('82','Canals','07',653,537,7.35,'-1161','48724',102,159);
INSERT INTO "communes" VALUES('82','Labarthe','12',365,340,23.24,'-1132','49120',105,242);
INSERT INTO "communes" VALUES('82','Valence','22',5137,4780,13.44,'-1608','49011',56,186);
INSERT INTO "communes" VALUES('82','Nohic','07',1192,969,12.61,'-998','48767',75,111);
INSERT INTO "communes" VALUES('82','Bruniquel','13',607,564,33.2,'-746','48951',90,382);
INSERT INTO "communes" VALUES('82','Maubec','02',143,148,12.73,'-1577','48677',109,192);
INSERT INTO "communes" VALUES('82','Saint-Aignan','21',414,409,4.85,'-1402','48909',67,138);
INSERT INTO "communes" VALUES('82','Donzac','01',1027,801,13.17,'-1685','49011',47,163);
INSERT INTO "communes" VALUES('82','Cumont','02',58,60,7.35,'-1596','48751',115,263);
INSERT INTO "communes" VALUES('82','Bardigues','01',257,219,11.67,'-1608','48933',77,185);
INSERT INTO "communes" VALUES('82','Mas-Grenier','23',1164,932,24.66,'-1267','48767',84,174);
INSERT INTO "communes" VALUES('82','Varennes','24',633,386,14.76,'-932','48779',88,202);
INSERT INTO "communes" VALUES('82','Saint-Antonin-Noble-Val','20',1864,1897,105.46,'-646','49058',110,395);
INSERT INTO "communes" VALUES('82','Castelsagrat','22',548,516,22.5,'-1544','49093',69,203);
INSERT INTO "communes" VALUES('82','Merles','01',238,204,7.02,'-1519','48954',56,83);
INSERT INTO "communes" VALUES('82','Lafrançaise','08',2854,2688,50.82,'-1218','49031',65,213);
INSERT INTO "communes" VALUES('82','Labastide-Saint-Pierre','07',3680,3054,20.64,'-1076','48798',75,119);
INSERT INTO "communes" VALUES('82','Balignac','10',32,28,4.09,'-1625','48839',129,234);
INSERT INTO "communes" VALUES('82','Saint-Vincent-Lespinasse','11',231,204,9.44,'-1537','49020',67,185);
INSERT INTO "communes" VALUES('82','Montalzat','18',639,527,27.5,'-930','49120',115,306);
INSERT INTO "communes" VALUES('82','Labastide-de-Penne','18',128,142,13.68,'-826','49204',167,327);
INSERT INTO "communes" VALUES('82','Labourgade','21',166,127,5.49,'-1373','48833',85,171);
INSERT INTO "communes" VALUES('82','Montbarla','09',162,165,7.38,'-1382','49134',82,209);
INSERT INTO "communes" VALUES('82','Barry-d''Islemade','25',849,575,11.35,'-1213','48973',73,95);
INSERT INTO "communes" VALUES('82','Loze','06',130,115,11.05,'-603','49207',216,383);
INSERT INTO "communes" VALUES('82','Lamothe-Capdeville','15',1006,956,11.92,'-1074','48972',73,205);
INSERT INTO "communes" VALUES('82','Bioule','19',1055,764,20.44,'-887','48988',84,208);
INSERT INTO "communes" VALUES('82','Grisolles','07',3641,2915,17.6,'-1156','48698',94,208);
INSERT INTO "communes" VALUES('82','Saint-Loup','01',492,359,14.21,'-1644','48984',51,163);
INSERT INTO "communes" VALUES('82','Saint-Beauzeil','14',124,132,9.84,'-1597','49260',127,240);
INSERT INTO "communes" VALUES('82','Laguépie','20',701,717,14.86,'-407','49049',140,387);
INSERT INTO "communes" VALUES('82','Chapelle','10',125,118,10.87,'-1660','48873',75,228);
INSERT INTO "communes" VALUES('82','Goudourville','22',901,838,11.27,'-1564','49016',57,182);
INSERT INTO "communes" VALUES('82','Lacourt-Saint-Pierre','17',1118,871,14.77,'-1192','48873',81,111);
INSERT INTO "communes" VALUES('82','Moissac','98',12192,12326,85.95,'-1390','49005',59,199);
INSERT INTO "communes" VALUES('82','Angeville','21',213,169,8.33,'-1455','48889',87,163);
INSERT INTO "communes" VALUES('82','Malause','11',1075,872,11.9,'-1515','48989',56,195);
INSERT INTO "communes" VALUES('82','Vazerac','12',759,698,32.68,'-1169','49101',93,266);
INSERT INTO "communes" VALUES('82','Montaigu-de-Quercy','14',1410,1432,76.44,'-1465','49267',131,295);
INSERT INTO "communes" VALUES('82','Saint-Porquier','17',1375,1022,15.7,'-1288','48894',73,101);
INSERT INTO "communes" VALUES('82','Puygaillard-de-Quercy','13',360,271,17.4,'-773','48914',100,247);
INSERT INTO "communes" VALUES('82','Espalais','22',412,285,7.87,'-1593','48974',52,70);
INSERT INTO "communes" VALUES('82','Comberouger','23',293,224,12.22,'-1371','48735',125,235);
INSERT INTO "communes" VALUES('82','Piquecos','08',399,285,7.79,'-1129','48999',71,209);
INSERT INTO "communes" VALUES('82','Poupas','10',97,97,10.26,'-1662','48853',79,212);
INSERT INTO "communes" VALUES('82','Perville','22',122,113,9.27,'-1619','49089',72,203);
INSERT INTO "communes" VALUES('82','Montfermier','18',108,109,6.55,'-1030','49132',125,229);
INSERT INTO "communes" VALUES('82','Sérignac','02',487,490,32.43,'-1461','48801',89,230);
INSERT INTO "communes" VALUES('82','Espinas','06',176,163,16.15,'-564','49107',151,392);
INSERT INTO "communes" VALUES('82','Campsas','07',1219,871,15.01,'-1122','48775',104,144);
INSERT INTO "communes" VALUES('82','Orgueil','07',1462,986,14.03,'-1028','48783',75,116);
INSERT INTO "communes" VALUES('82','Marsac','10',177,198,14.89,'-1683','48825',80,248);
INSERT INTO "communes" VALUES('82','Finhan','17',1395,946,11.48,'-1240','48792',83,104);
INSERT INTO "communes" VALUES('82','La Ville-Dieu-du-Temple','17',2845,1751,26.16,'-1244','48928',83,105);
INSERT INTO "communes" VALUES('82','Corbarieu','24',1663,1279,13.03,'-1076','48827',75,213);
INSERT INTO "communes" VALUES('82','Lamothe-Cumont','02',123,86,5.35,'-1579','48753',128,261);
INSERT INTO "communes" VALUES('82','Lavit','10',1508,1574,26.28,'-1574','48841',116,245);
INSERT INTO "communes" VALUES('82','Roquecor','14',431,447,20.55,'-1548','49247',106,265);
INSERT INTO "communes" VALUES('82','<NAME>','02',148,127,9.32,'-1519','48668',125,278);
INSERT INTO "communes" VALUES('82','Saint-Nazaire-de-Valentane','03',325,359,17.44,'-1471','49138',74,207);
INSERT INTO "communes" VALUES('82','Pompignan','07',1383,1011,12.17,'-1138','48685',102,216);
INSERT INTO "communes" VALUES('82','Brassac','03',260,249,20.37,'-1515','49127',87,233);
INSERT INTO "communes" VALUES('82','Saint-Arroumex','21',145,139,9.63,'-1488','48881',90,172);
INSERT INTO "communes" VALUES('82','Lizac','26',482,415,9.42,'-1278','49006',63,168);
INSERT INTO "communes" VALUES('82','Cazals','20',243,160,11.73,'-690','49024',110,325);
INSERT INTO "communes" VALUES('82','Lavaurette','05',207,166,13.63,'-740','49117',171,315);
INSERT INTO "communes" VALUES('82','Goas','02',43,33,2.69,'-1527','48683',118,220);
INSERT INTO "communes" VALUES('82','Pommevic','22',575,435,5.75,'-1559','49000',57,77);
INSERT INTO "communes" VALUES('82','La Salvetat-Belmontet','13',663,514,18.63,'-893','48849',114,222);
INSERT INTO "communes" VALUES('82','Escatalens','17',1066,690,17.99,'-1275','48872',75,101);
INSERT INTO "communes" VALUES('82','Gasques','22',433,397,13.43,'-1576','49060',64,196);
INSERT INTO "communes" VALUES('82','Castéra-Bouzet','10',114,130,17.75,'-1575','48889',95,215);
INSERT INTO "communes" VALUES('82','Esparsac','02',246,245,17.44,'-1550','48781',115,253);
INSERT INTO "communes" VALUES('82','L''Honor-de-Cos','08',1571,1334,32.07,'-1097','49025',72,215);
INSERT INTO "communes" VALUES('82','Savenès','23',741,454,22.57,'-1262','48700',110,168);
INSERT INTO "communes" VALUES('82','Vaïssac','19',789,596,37.21,'-852','48926',99,225);
INSERT INTO "communes" VALUES('82','Montgaillard','10',99,69,9.5,'-1623','48814',139,256);
INSERT INTO "communes" VALUES('82','Caussade','05',6623,5984,45.73,'-889','49068',95,208);
INSERT INTO "communes" VALUES('82','Saint-Clair','22',276,229,8.35,'-1544','49070',67,181);
INSERT INTO "communes" VALUES('82','Labastide-du-Temple','25',1077,802,10.92,'-1268','48983',69,94);
INSERT INTO "communes" VALUES('82','Faudoas','02',291,295,18.95,'-1532','48693',108,271);
INSERT INTO "communes" VALUES('82','Bourret','23',791,559,16.48,'-1298','48826',79,171);
INSERT INTO "communes" VALUES('82','Verfeil','20',314,320,18.46,'-511','49096',150,383);
INSERT INTO "communes" VALUES('82','Gramont','10',153,145,13.58,'-1744','48819',81,222);
INSERT INTO "communes" VALUES('82','Albias','19',2956,2340,21.6,'-986','48989',78,107);
INSERT INTO "communes" VALUES('82','Vigueron','02',124,100,6.33,'-1424','48760',96,232);
INSERT INTO "communes" VALUES('82','Montastruc','08',275,218,4.67,'-1158','49001',73,213);
INSERT INTO "communes" VALUES('82','Belbèse','02',118,61,3.65,'-1407','48780',94,208);
INSERT INTO "communes" VALUES('82','Touffailles','03',396,346,24.34,'-1429','49192',118,276);
INSERT INTO "communes" VALUES('82','Féneyrols','20',170,166,14.88,'-574','49034',114,422);
INSERT INTO "communes" VALUES('82','Montain','21',116,80,4.04,'-1363','48824',86,174);
INSERT INTO "communes" VALUES('82','Septfonds','05',2140,1859,27.05,'-798','49087',128,247);
INSERT INTO "communes" VALUES('82','Monclar-de-Quercy','13',1763,1263,37.75,'-836','48852',133,247);
INSERT INTO "communes" VALUES('82','Saint-Amans-de-Pellagal','09',235,206,14.51,'-1364','49142',93,227);
INSERT INTO "communes" VALUES('82','Verdun-sur-Garonne','23',4112,3067,36.26,'-1223','48726',90,166);
INSERT INTO "communes" VALUES('82','Fabas','07',554,322,6.3,'-1096','48734',120,154);
INSERT INTO "communes" VALUES('82','Bessens','07',1350,664,9.27,'-1205','48755',90,146);
INSERT INTO "communes" VALUES('82','Montech','17',5631,3505,50.14,'-1230','48841',82,133);
INSERT INTO "communes" VALUES('82','Bouillac','23',574,448,30.45,'-1353','48714',115,253);
INSERT INTO "communes" VALUES('82','Cazes-Mondenard','09',1213,1238,58.23,'-1260','49141',93,253);
INSERT INTO "communes" VALUES('82','Gariès','02',106,106,14.15,'-1451','48674',163,277);
INSERT INTO "communes" VALUES('82','Sainte-Juliette','09',122,101,7.3,'-1297','49207',115,243);
INSERT INTO "communes" VALUES('82','Molières','12',1174,1045,38.46,'-1082','49104',102,223);
INSERT INTO "communes" VALUES('82','Dunes','01',1176,893,23.19,'-1740','48986',57,186);
INSERT INTO "communes" VALUES('82','Gensac','10',109,123,11.59,'-1535','48837',115,230);
INSERT INTO "communes" VALUES('82','Barthes','25',488,412,8.2,'-1296','48996',62,91);
INSERT INTO "communes" VALUES('82','Auvillar','01',960,875,15.6,'-1596','48966',52,166);
INSERT INTO "communes" VALUES('82','Cayriech','05',259,208,7.59,'-806','49132',137,184);
INSERT INTO "communes" VALUES('82','Lacour','03',181,185,14.33,'-1543','49213',106,233);
INSERT INTO "communes" VALUES('82','Léojac','27',1089,801,12.8,'-988','48892',107,221);
INSERT INTO "communes" VALUES('82','Varen','20',674,748,23.13,'-492','49065',118,372);
INSERT INTO "communes" VALUES('82','Lacapelle-Livron','06',184,179,13.79,'-614','49185',211,389);
INSERT INTO "communes" VALUES('82','Villemade','15',700,677,9.21,'-1166','48973',73,90);
INSERT INTO "communes" VALUES('82','Puylagarde','06',348,332,23.14,'-553','49218',260,422);
INSERT INTO "communes" VALUES('82','Puylaroque','18',671,617,35.87,'-806','49168',149,320);
INSERT INTO "communes" VALUES('82','Sauveterre','09',167,194,17.4,'-1183','49184',133,270);
INSERT INTO "communes" VALUES('82','Montpezat-de-Quercy','18',1480,1387,44.02,'-956','49154',126,309);
INSERT INTO "communes" VALUES('82','Cordes-Tolosannes','21',272,256,15.77,'-1320','48873',74,164);
INSERT INTO "communes" VALUES('82','Lapenche','18',170,163,8.11,'-845','49138',128,192);
INSERT INTO "communes" VALUES('82','Beaumont-de-Lomagne','02',3852,3696,46.16,'-1498','48759',96,252);
INSERT INTO "communes" VALUES('82','Castelmayran','21',1119,817,15.96,'-1442','48921',65,140);
INSERT INTO "communes" VALUES('82','Puygaillard-de-Lomagne','10',61,58,7.08,'-1600','48853',119,232);
INSERT INTO "communes" VALUES('82','Saint-Jean-du-Bouzet','10',65,67,7.74,'-1624','48878',107,228);
INSERT INTO "communes" VALUES('82','Verlhac-Tescou','24',473,421,22.69,'-887','48810',110,220);
INSERT INTO "communes" VALUES('82','Parisot','20',552,507,27.86,'-533','49184',230,425);
INSERT INTO "communes" VALUES('82','Bouloc','09',231,208,14.81,'-1345','49222',116,265);
INSERT INTO "communes" VALUES('82','Tréjouls','09',260,260,13.86,'-1223','49186',111,255);
INSERT INTO "communes" VALUES('82','Caylus','06',1536,1333,97.45,'-629','49151',170,385);
INSERT INTO "communes" VALUES('82','Saint-Nicolas-de-la-Grave','21',2140,2008,29.34,'-1460','48960',59,88);
INSERT INTO "communes" VALUES('82','Montesquieu','26',785,631,28.65,'-1397','49096',72,197);
INSERT INTO "communes" VALUES('82','Villebrumier','24',1240,925,11.38,'-982','48785',75,201);
INSERT INTO "communes" VALUES('82','Beaupuy','23',303,171,11.81,'-1354','48690',145,246);
INSERT INTO "communes" VALUES('82','Sistels','01',205,142,13.57,'-1725','48956',98,199);
INSERT INTO "communes" VALUES('82','Réalville','05',1849,1542,25.09,'-952','49016',79,210);
INSERT INTO "communes" VALUES('82','Ginals','20',202,187,24.15,'-526','49110',191,463);
INSERT INTO "communes" VALUES('82','Dieupentale','07',1426,733,6.14,'-1186','48736',95,154);
INSERT INTO "communes" VALUES('82','Bourg-de-Visa','03',398,421,14.41,'-1532','49181',115,233);
INSERT INTO "communes" VALUES('82','Montbartier','17',1248,793,15.01,'-1182','48792',99,141);
INSERT INTO "communes" VALUES('82','Asques','10',140,134,10.61,'-1541','48877',80,187);
INSERT INTO "communes" VALUES('82','Belvèze','14',211,206,13.88,'-1383','49255',154,271);
INSERT INTO "communes" VALUES('82','Garganvillar','21',628,511,22.34,'-1409','48864',75,188);
INSERT INTO "communes" VALUES('82','Nègrepelisse','19',5168,3499,49.22,'-906','48972',79,207);
INSERT INTO "communes" VALUES('82','Lamagistère','22',1162,1173,9.1,'-1681','49028',45,65);
INSERT INTO "communes" VALUES('82','Glatens','02',69,54,2.31,'-1577','48771',133,255);
INSERT INTO "communes" VALUES('82','Monbéqui','07',587,354,6.78,'-1219','48770',88,104);
INSERT INTO "communes" VALUES('82','Valeilles','14',233,266,13.75,'-1571','49293',85,247);
INSERT INTO "communes" VALUES('82','Aucamville','23',1024,789,22.91,'-1246','48670',97,168);
INSERT INTO "communes" VALUES('82','Miramont-de-Quercy','03',353,337,14.9,'-1412','49145',81,224);
INSERT INTO "communes" VALUES('82','Mouillac','06',92,66,9.08,'-744','49186',187,326);
INSERT INTO "communes" VALUES('82','Lauzerte','09',1506,1500,44.56,'-1332','49173',98,270);
INSERT INTO "communes" VALUES('82','Montauban','99',56271,51889,135.17,'-1091','48908',72,207);
INSERT INTO "communes" VALUES('82','Castelferrus','21',419,389,8.39,'-1388','48899',68,145);
INSERT INTO "communes" VALUES('82','Castanet','20',241,222,22.07,'-429','49185',252,506);
INSERT INTO "communes" VALUES('82','Fauroux','03',221,221,13.12,'-1480','49159',106,237);
INSERT INTO "communes" VALUES('82','Boudou','11',692,576,12.3,'-1470','48996',62,194);
INSERT INTO "communes" VALUES('82','Monteils','05',1303,1077,12.08,'-857','49081',110,187);
INSERT INTO "communes" VALUES('82','<NAME>','01',120,128,4.71,'-1520','48928',69,137);
INSERT INTO "communes" VALUES('82','Larrazet','02',640,556,14.91,'-1393','48812',85,187);
INSERT INTO "communes" VALUES('83','Seillons-Source-d''Argens','02',2173,1611,25.11,'3941','48329',263,580);
INSERT INTO "communes" VALUES('83','Néoules','20',2486,1620,25.08,'4084','48123',305,700);
INSERT INTO "communes" VALUES('83','Solliès-Toucas','25',5131,4391,30.09,'4098','48006',84,783);
INSERT INTO "communes" VALUES('83','Cogolin','14',11108,9050,27.93,'4659','48058',0,390);
INSERT INTO "communes" VALUES('83','Villecroze','23',1201,1082,20.68,'4377','48425',224,520);
INSERT INTO "communes" VALUES('83','<NAME>-Maures','17',4070,3486,73.64,'4449','48213',52,628);
INSERT INTO "communes" VALUES('83','Claviers','06',583,552,15.9,'4697','48446',192,728);
INSERT INTO "communes" VALUES('83','<NAME>-les-Maures','36',9870,8741,79.29,'4331','47931',0,601);
INSERT INTO "communes" VALUES('83','Pontevès','02',712,572,41.07,'4103','48393',240,801);
INSERT INTO "communes" VALUES('83','Brue-Auriac','02',1210,885,36.73,'4009','48364',199,466);
INSERT INTO "communes" VALUES('83','Régusse','26',2156,1142,35.3,'4217','48506',360,932);
INSERT INTO "communes" VALUES('83','Plan-d''Aups-Sainte-Baume','21',1577,764,24.91,'3756','48144',510,1148);
INSERT INTO "communes" VALUES('83','Figanières','06',2547,2228,28.17,'4623','48410',227,719);
INSERT INTO "communes" VALUES('83','Sainte-Maxime','14',12938,11778,81.61,'4779','48121',0,532);
INSERT INTO "communes" VALUES('83','Solliès-Pont','25',11090,10852,17.73,'4116','47989',39,343);
INSERT INTO "communes" VALUES('83','Rians','19',4197,3626,96.87,'3800','48452',291,651);
INSERT INTO "communes" VALUES('83','Saint-Cyr-sur-Mer','03',11819,8902,21.15,'3747','47982',0,254);
INSERT INTO "communes" VALUES('83','Mazaugues','20',822,514,53.79,'3983','48164',312,1055);
INSERT INTO "communes" VALUES('83','Cabasse','04',1988,1281,45.49,'4317','48251',162,404);
INSERT INTO "communes" VALUES('83','Nans-les-Pins','21',4132,3145,47.99,'3828','48189',308,772);
INSERT INTO "communes" VALUES('83','Cavalaire-sur-Mer','22',6884,5268,16.74,'4658','47968',0,528);
INSERT INTO "communes" VALUES('83','Flassans-sur-Issole','04',3093,1945,43.68,'4316','48187',203,527);
INSERT INTO "communes" VALUES('83','Ramatuelle','22',2183,2137,35.57,'4750','48018',0,324);
INSERT INTO "communes" VALUES('83','<NAME>','16',2293,1533,37.53,'4408','48280',75,444);
INSERT INTO "communes" VALUES('83','Saint-Zacharie','21',4914,4250,27.02,'3744','48205',239,756);
INSERT INTO "communes" VALUES('83','<NAME>','08',26,22,25.39,'4647','48649',763,1245);
INSERT INTO "communes" VALUES('83','<NAME>','42',25930,25299,15.54,'4082','47916',0,206);
INSERT INTO "communes" VALUES('83','Puget-sur-Argens','37',6587,6371,26.9,'4831','48284',0,180);
INSERT INTO "communes" VALUES('83','Sanary-sur-Mer','18',16429,17025,19.23,'3851','47910',0,446);
INSERT INTO "communes" VALUES('83','Bras','02',2449,1321,34.93,'4019','48302',233,580);
INSERT INTO "communes" VALUES('83','Hyères','97',54600,51412,132.38,'4213','47910',0,364);
INSERT INTO "communes" VALUES('83','La Valette-du-Var','41',20754,21727,15.5,'4051','47930',37,701);
INSERT INTO "communes" VALUES('83','Méounes-lès-Montrieux','20',2001,1293,40.92,'4037','48090',178,784);
INSERT INTO "communes" VALUES('83','Ollioules','18',12774,12203,19.89,'3900','47933',0,520);
INSERT INTO "communes" VALUES('83','Sillans-la-Cascade','26',631,414,20.17,'4270','48409',267,476);
INSERT INTO "communes" VALUES('83','Saint-Maximin-la-Sainte-Baume','21',14505,12405,64.13,'3917','48281',261,778);
INSERT INTO "communes" VALUES('83','Saint-Antonin-du-Var','09',633,482,17.64,'4389','48341',95,396);
INSERT INTO "communes" VALUES('83','Callian','12',3208,2447,25.42,'4907','48469',96,581);
INSERT INTO "communes" VALUES('83','Solliès-Ville','25',2464,2241,14.1,'4113','47980',40,680);
INSERT INTO "communes" VALUES('83','Rayol-Canadel-sur-Mer','22',727,697,6.83,'4583','47954',0,494);
INSERT INTO "communes" VALUES('83','La Celle','05',1305,1080,21,'4115','48216',219,827);
INSERT INTO "communes" VALUES('83','Le Plan-de-la-Tour','14',2875,2380,36.8,'4678','48156',25,540);
INSERT INTO "communes" VALUES('83','Vins-sur-Caramy','05',916,561,16.3,'4228','48260',170,396);
INSERT INTO "communes" VALUES('83','Flayosc','11',4419,3922,45.95,'4511','48371',140,752);
INSERT INTO "communes" VALUES('83','Bauduen','01',320,271,47.45,'4266','48593',475,1142);
INSERT INTO "communes" VALUES('83','Camps-la-Source','05',1713,1278,22.47,'4175','48207',259,637);
INSERT INTO "communes" VALUES('83','Bargemon','06',1496,1210,35.14,'4682','48467',319,1089);
INSERT INTO "communes" VALUES('83','Tanneron','12',1468,1309,52.78,'5043','48434',11,516);
INSERT INTO "communes" VALUES('83','Fox-Amphoux','26',455,386,40.76,'4174','48441',376,691);
INSERT INTO "communes" VALUES('83','Aups','01',2095,1908,64.15,'4320','48476',385,1076);
INSERT INTO "communes" VALUES('83','Taradeau','16',1748,1618,17.31,'4545','48282',44,259);
INSERT INTO "communes" VALUES('83','Saint-Julien','19',2063,1282,75.88,'3967','48546',297,596);
INSERT INTO "communes" VALUES('83','<NAME>','08',183,133,20.37,'4735','48635',876,1589);
INSERT INTO "communes" VALUES('83','Lorgues','16',8976,7311,64.37,'4472','48326',70,343);
INSERT INTO "communes" VALUES('83','Arcs','16',6515,5335,54.26,'4602','48293',16,342);
INSERT INTO "communes" VALUES('83','Roquebrune-sur-Argens','37',12822,11136,106.1,'4779','48270',0,480);
INSERT INTO "communes" VALUES('83','Entrecasteaux','09',1065,863,32.11,'4339','48351',97,354);
INSERT INTO "communes" VALUES('83','Callas','06',1816,1391,49.26,'4668','48437',60,811);
INSERT INTO "communes" VALUES('83','Ollières','21',635,448,39.66,'3881','48314',311,621);
INSERT INTO "communes" VALUES('83','Rougiers','21',1531,1061,20.53,'3905','48214',309,741);
INSERT INTO "communes" VALUES('83','Pourcieux','21',1136,923,21.23,'3833','48300',278,870);
INSERT INTO "communes" VALUES('83','Évenos','18',2137,1946,41.95,'3881','47967',78,804);
INSERT INTO "communes" VALUES('83','Carnoules','10',3241,2530,25.49,'4280','48113',115,485);
INSERT INTO "communes" VALUES('83','<NAME>','42',11506,10962,9.97,'4096','47895',0,273);
INSERT INTO "communes" VALUES('83','Bargème','08',155,115,27.95,'4707','48589',824,1589);
INSERT INTO "communes" VALUES('83','Bormes-les-Mimosas','07',7406,6326,97.32,'4452','47946',0,642);
INSERT INTO "communes" VALUES('83','Seillans','12',2530,2116,88.66,'4785','48485',137,1303);
INSERT INTO "communes" VALUES('83','Pourrières','21',4475,4004,56.32,'3775','48338',239,872);
INSERT INTO "communes" VALUES('83','Pignans','04',3357,2598,34.87,'4322','48112',146,766);
INSERT INTO "communes" VALUES('83','Carqueiranne','36',9886,8456,14.48,'4152','47883',0,305);
INSERT INTO "communes" VALUES('83','Tavernes','26',1250,739,31.15,'4089','48437',300,691);
INSERT INTO "communes" VALUES('83','Adrets-de-l''Estérel','13',2629,2054,22.26,'4975','48362',60,420);
INSERT INTO "communes" VALUES('83','Fayence','12',5109,4250,27.68,'4841','48470',184,665);
INSERT INTO "communes" VALUES('83','Six-Fours-les-Plages','40',34897,32715,26.58,'3892','47882',0,352);
INSERT INTO "communes" VALUES('83','Châteauvieux','08',76,73,14.97,'4713','48641',843,1271);
INSERT INTO "communes" VALUES('83','Carcès','09',3332,2467,35.76,'4274','48307',110,396);
INSERT INTO "communes" VALUES('83','Vidauban','17',10165,7297,73.93,'4550','48252',29,354);
INSERT INTO "communes" VALUES('83','Garéoult','20',5613,4886,15.75,'4122','48142',295,659);
INSERT INTO "communes" VALUES('83','Varages','02',1117,883,35.11,'4026','48442',259,573);
INSERT INTO "communes" VALUES('83','Draguignan','11',36391,32815,53.75,'4588','48377',153,603);
INSERT INTO "communes" VALUES('83','Saint-Martin','02',212,154,26.33,'3942','48432',343,582);
INSERT INTO "communes" VALUES('83','Esparron','02',324,183,30.04,'3902','48435',327,641);
INSERT INTO "communes" VALUES('83','Barjols','02',3059,2429,30.06,'4079','48398',183,473);
INSERT INTO "communes" VALUES('83','Montauroux','12',5801,4019,33.54,'4921','48465',72,437);
INSERT INTO "communes" VALUES('83','Saint-Paul-en-Forêt','12',1675,1139,20.26,'4839','48408',172,471);
INSERT INTO "communes" VALUES('83','Moissac-Bellevue','26',284,151,20.59,'4255','48503',430,982);
INSERT INTO "communes" VALUES('83','<NAME>','05',4174,3362,39.34,'4152','48266',140,540);
INSERT INTO "communes" VALUES('83','Trans-en-Provence','11',5531,4796,16.99,'4610','48337',100,272);
INSERT INTO "communes" VALUES('83','<NAME>','37',9050,7827,66.58,'4700','48303',7,561);
INSERT INTO "communes" VALUES('83','Fréjus','13',51839,46770,102.27,'4888','48259',0,616);
INSERT INTO "communes" VALUES('83','Correns','09',842,661,37.06,'4159','48319',139,561);
INSERT INTO "communes" VALUES('83','Signes','03',2801,2044,133.1,'3918','48101',271,1148);
INSERT INTO "communes" VALUES('83','<NAME>','20',2372,1678,37.05,'4044','48156',311,827);
INSERT INTO "communes" VALUES('83','Riboux','03',33,22,13.48,'3800','48115',419,1054);
INSERT INTO "communes" VALUES('83','Châteauvert','02',135,107,27.52,'4099','48333',162,561);
INSERT INTO "communes" VALUES('83','Montmeyan','26',560,399,39.43,'4140','48496',358,691);
INSERT INTO "communes" VALUES('83','Montferrat','06',1344,642,34.01,'4605','48457',420,952);
INSERT INTO "communes" VALUES('83','Vérignon','01',11,16,36.9,'4374','48504',696,1142);
INSERT INTO "communes" VALUES('83','Cuers','10',10246,8174,50.53,'4149','48042',71,700);
INSERT INTO "communes" VALUES('83','Grimaud','14',4171,3775,44.58,'4650','48081',0,503);
INSERT INTO "communes" VALUES('83','Besse-sur-Issole','04',2918,1779,37.19,'4266','48165',230,637);
INSERT INTO "communes" VALUES('83','Mons','12',863,671,76.63,'4864','48546',235,1712);
INSERT INTO "communes" VALUES('83','Comps-sur-Artuby','08',325,280,63.49,'4636','48567',736,1178);
INSERT INTO "communes" VALUES('83','<NAME>','36',16786,14479,37.87,'4153','47944',15,270);
INSERT INTO "communes" VALUES('83','Tourrettes','12',2743,2185,33.99,'4851','48470',155,592);
INSERT INTO "communes" VALUES('83','Le Lavandou','07',5546,5471,29.65,'4479','47931',0,485);
INSERT INTO "communes" VALUES('83','Salernes','23',3670,3260,39.3,'4330','48404',177,484);
INSERT INTO "communes" VALUES('83','Salles-sur-Verdon','01',228,186,4.97,'4303','48638',476,665);
INSERT INTO "communes" VALUES('83','Gassin','22',2853,2727,24.74,'4721','48032',0,324);
INSERT INTO "communes" VALUES('83','Baudinard-sur-Verdon','01',189,120,21.97,'4220','48574',399,785);
INSERT INTO "communes" VALUES('83','Forcalqueiret','20',2421,1679,10.33,'4160','48151',284,528);
INSERT INTO "communes" VALUES('83','<NAME>','11',2930,2346,28.12,'4665','48326',10,320);
INSERT INTO "communes" VALUES('83','Toulon','99',164532,160712,42.84,'3993','47917',0,589);
INSERT INTO "communes" VALUES('83','<NAME>','22',1067,799,45.28,'4588','48009',15,529);
INSERT INTO "communes" VALUES('83','Puget-Ville','10',3801,3084,36.83,'4222','48099',87,572);
INSERT INTO "communes" VALUES('83','Le Beausset','03',9115,7727,35.95,'3851','47998',80,560);
INSERT INTO "communes" VALUES('83','La Verdière','19',1543,781,68.16,'3999','48487',327,692);
INSERT INTO "communes" VALUES('83','La Cadière-d''Azur','03',5385,4242,37.42,'3799','47995',23,460);
INSERT INTO "communes" VALUES('83','Belgentier','25',2424,1723,13.38,'4070','48050',126,620);
INSERT INTO "communes" VALUES('83','Châteaudouble','06',465,381,40.91,'4571','48442',210,1039);
INSERT INTO "communes" VALUES('83','Aiguines','01',261,221,114.33,'4341','48640',470,1572);
INSERT INTO "communes" VALUES('83','Tourtour','23',589,487,28.69,'4406','48433',360,903);
INSERT INTO "communes" VALUES('83','Brignoles','05',16368,12501,70.53,'4139','48229',190,767);
INSERT INTO "communes" VALUES('83','Saint-Raphaël','39',33603,30233,89.59,'4923','48250',0,560);
INSERT INTO "communes" VALUES('83','Collobrières','07',1866,1597,112.68,'4414','48041',58,776);
INSERT INTO "communes" VALUES('83','Sainte-Anastasie-sur-Issole','20',1922,1528,10.71,'4209','48158',269,580);
INSERT INTO "communes" VALUES('83','<NAME>','14',1746,1620,76.64,'4592','48130',60,674);
INSERT INTO "communes" VALUES('83','<NAME>','22',3429,2750,22.28,'4702','48009',0,369);
INSERT INTO "communes" VALUES('83','Rocbaron','20',3595,3025,20.28,'4171','48116',272,592);
INSERT INTO "communes" VALUES('83','<NAME>','17',9498,7285,44.16,'4418','48216',79,400);
INSERT INTO "communes" VALUES('83','<NAME>','08',205,124,11.76,'4764','48594',928,1686);
INSERT INTO "communes" VALUES('83','Brenon','08',24,22,5.59,'4672','48633',782,1264);
INSERT INTO "communes" VALUES('83','Artignosc-sur-Verdon','26',297,221,18.53,'4171','48559',401,600);
INSERT INTO "communes" VALUES('83','Montfort-sur-Argens','09',1209,869,11.92,'4206','48304',129,344);
INSERT INTO "communes" VALUES('83','Artigues','19',199,110,31.85,'3860','48437',351,641);
INSERT INTO "communes" VALUES('83','Gonfaron','04',4192,2802,40.42,'4392','48134',98,766);
INSERT INTO "communes" VALUES('83','Cotignac','09',2201,2047,44.26,'4236','48365',144,712);
INSERT INTO "communes" VALUES('83','Tourves','05',4855,3422,65.62,'3986','48231',238,542);
INSERT INTO "communes" VALUES('83','Saint-Tropez','22',4532,5480,11.18,'4780','48078',0,115);
INSERT INTO "communes" VALUES('83','Pierrefeu-du-Var','10',5548,4343,58.36,'4232','48027',45,442);
INSERT INTO "communes" VALUES('83','<NAME>-les-Eaux','41',3693,3440,24.07,'3989','47974',50,804);
INSERT INTO "communes" VALUES('83','<NAME>','25',8304,6873,8.31,'4118','47964',41,640);
INSERT INTO "communes" VALUES('83','Saint-Mandrier-sur-Mer','38',5750,5241,5.12,'3990','47862',0,123);
INSERT INTO "communes" VALUES('83','<NAME>','03',4099,3790,44.77,'3822','48003',21,503);
INSERT INTO "communes" VALUES('83','Bandol','18',8028,7914,8.59,'3796','47929',0,221);
INSERT INTO "communes" VALUES('83','Ampus','11',925,707,82.77,'4495','48452',205,1174);
INSERT INTO "communes" VALUES('83','<NAME>','98',62082,60070,22.17,'3935','47892',0,352);
INSERT INTO "communes" VALUES('83','<NAME>','08',240,192,26.98,'4770','48581',904,1700);
INSERT INTO "communes" VALUES('83','Vinon-sur-Verdon','19',4198,2991,36,'3861','48583',254,450);
INSERT INTO "communes" VALUES('83','Bagnols-en-Forêt','13',2440,1669,42.9,'4846','48375',56,561);
INSERT INTO "communes" VALUES('83','Mayons','17',639,552,28.86,'4468','48125',79,742);
INSERT INTO "communes" VALUES('83','Trigance','08',163,150,60.6,'4564','48624',630,1270);
INSERT INTO "communes" VALUES('83','Ginasservis','19',1496,993,37.47,'3903','48523',312,490);
INSERT INTO "communes" VALUES('84','Villes-sur-Auzon','15',1296,1029,27.08,'3219','48953',240,856);
INSERT INTO "communes" VALUES('84','Visan','22',1932,1621,41.07,'2904','49239',112,386);
INSERT INTO "communes" VALUES('84','Rasteau','21',798,677,18.81,'2945','49145',117,366);
INSERT INTO "communes" VALUES('84','Saint-Saturnin-lès-Apt','01',2658,2341,75.79,'3386','48827',217,1093);
INSERT INTO "communes" VALUES('84','Bédarrides','05',5146,5103,24.79,'2846','48934',20,119);
INSERT INTO "communes" VALUES('84','Brantes','14',84,65,28.18,'3330','49104',425,1911);
INSERT INTO "communes" VALUES('84','Oppède','07',1359,1224,24.1,'3147','48716',103,733);
INSERT INTO "communes" VALUES('84','Uchaux','16',1386,1464,18.48,'2738','49122',46,285);
INSERT INTO "communes" VALUES('84','Saignon','01',1024,998,19.6,'3435','48737',230,634);
INSERT INTO "communes" VALUES('84','Bédoin','15',3207,2611,91.03,'3159','49026',240,1911);
INSERT INTO "communes" VALUES('84','Saint-Martin-de-Castillon','01',751,559,38.21,'3528','48733',268,1072);
INSERT INTO "communes" VALUES('84','Caromb','09',3179,3116,17.98,'3079','49012',129,453);
INSERT INTO "communes" VALUES('84','Malaucène','14',2665,2537,45.33,'3106','49082',238,1132);
INSERT INTO "communes" VALUES('84','Grillon','22',1705,1689,14.92,'2881','49328',154,248);
INSERT INTO "communes" VALUES('84','Saint-Pierre-de-Vassols','15',493,432,4.93,'3111','49001',180,362);
INSERT INTO "communes" VALUES('84','Lioux','12',252,249,38.89,'3295','48830',237,885);
INSERT INTO "communes" VALUES('84','Castellet','01',116,106,9.84,'3490','48710',279,1120);
INSERT INTO "communes" VALUES('84','Cabrières-d''Aigues','19',841,650,18.96,'3512','48649',300,1122);
INSERT INTO "communes" VALUES('84','Mormoiron','15',1927,1562,25.03,'3163','48964',179,450);
INSERT INTO "communes" VALUES('84','Villelaure','08',3223,2921,18.25,'3441','48567',159,369);
INSERT INTO "communes" VALUES('84','<NAME>','02',16731,15582,10.77,'2804','48849',16,30);
INSERT INTO "communes" VALUES('84','Saint-Trinit','20',123,99,16.66,'3477','49003',780,914);
INSERT INTO "communes" VALUES('84','Faucon','21',416,379,8.65,'3122','49178',236,459);
INSERT INTO "communes" VALUES('84','Saint-Christol','20',1350,556,46.08,'3506','48921',810,1108);
INSERT INTO "communes" VALUES('84','Mérindol','08',1966,1795,26.59,'3185','48618',100,620);
INSERT INTO "communes" VALUES('84','Châteauneuf-du-Pape','17',2140,2078,25.85,'2772','48951',20,130);
INSERT INTO "communes" VALUES('84','Cavaillon','11',24951,24572,45.96,'3001','48707',49,200);
INSERT INTO "communes" VALUES('84','Beaumes-de-Venise','04',2305,2051,18.89,'2993','49025',44,442);
INSERT INTO "communes" VALUES('84','Modène','15',422,275,4.73,'3096','49004',164,409);
INSERT INTO "communes" VALUES('84','Méthamis','15',396,397,36.81,'3208','48905',228,891);
INSERT INTO "communes" VALUES('84','Lamotte-du-Rhône','06',407,415,11.97,'2604','49184',38,57);
INSERT INTO "communes" VALUES('84','Vedène','05',10580,8669,11.18,'2852','48864',23,117);
INSERT INTO "communes" VALUES('84','Cadenet','08',4085,3878,25.08,'3374','48594',147,376);
INSERT INTO "communes" VALUES('84','<NAME>-d''Aigues','19',3947,3861,41.3,'3568','48584',220,510);
INSERT INTO "communes" VALUES('84','Althen-des-Paluds','10',2685,1978,6.4,'2913','48894',27,38);
INSERT INTO "communes" VALUES('84','Morières-lès-Avignon','23',7676,6546,10.35,'2853','48824',25,116);
INSERT INTO "communes" VALUES('84','Puyméras','21',648,609,14.59,'3102','49189',275,846);
INSERT INTO "communes" VALUES('84','Caumont-sur-Durance','11',4635,4253,18.23,'2900','48772',39,134);
INSERT INTO "communes" VALUES('84','Jonquières','16',4576,3924,23.87,'2847','49017',46,85);
INSERT INTO "communes" VALUES('84','Richerenches','22',696,616,10.96,'2862','49288',115,174);
INSERT INTO "communes" VALUES('84','Peypin-d''Aigues','19',599,473,17.36,'3592','48653',349,1040);
INSERT INTO "communes" VALUES('84','Pernes-les-Fontaines','18',10405,10160,51.12,'3025','48886',36,263);
INSERT INTO "communes" VALUES('84','Sannes','19',173,168,4.6,'3504','48619',273,360);
INSERT INTO "communes" VALUES('84','<NAME>','14',643,566,16.04,'3070','49041',218,670);
INSERT INTO "communes" VALUES('84','Lafare','04',113,96,4.54,'3016','49052',129,528);
INSERT INTO "communes" VALUES('84','Sarrians','09',5809,5456,37.49,'2927','48981',26,118);
INSERT INTO "communes" VALUES('84','Sorgues','05',18046,17520,33.4,'2818','48898',14,114);
INSERT INTO "communes" VALUES('84','<NAME>','19',1308,964,27.74,'3664','48650',348,725);
INSERT INTO "communes" VALUES('84','Violès','16',1553,1537,14.79,'2909','49069',78,124);
INSERT INTO "communes" VALUES('84','Viens','01',606,491,34.59,'3589','48772',332,784);
INSERT INTO "communes" VALUES('84','Camaret-sur-Aigues','16',4518,3561,17.53,'2819','49070',56,97);
INSERT INTO "communes" VALUES('84','Blauvac','15',447,337,20.8,'3180','48923',224,831);
INSERT INTO "communes" VALUES('84','Vitrolles-en-Lubéron','19',186,145,16.15,'3621','48679',345,940);
INSERT INTO "communes" VALUES('84','Lagarde-Paréol','06',304,297,9.29,'2794','49142',84,253);
INSERT INTO "communes" VALUES('84','Lagnes','13',1681,1473,16.93,'3087','48770',64,622);
INSERT INTO "communes" VALUES('84','Vacqueyras','04',1050,1061,8.97,'2939','49043',68,254);
INSERT INTO "communes" VALUES('84','Puget','08',674,590,17.9,'3258','48617',123,703);
INSERT INTO "communes" VALUES('84','Malemort-du-Comtat','15',1510,1202,11.92,'3137','48912',160,364);
INSERT INTO "communes" VALUES('84','Auribeau','01',75,59,7.5,'3469','48707',513,1122);
INSERT INTO "communes" VALUES('84','Gigondas','04',556,648,27.14,'2964','49071',87,698);
INSERT INTO "communes" VALUES('84','Villars','01',786,686,30.05,'3410','48804',247,1184);
INSERT INTO "communes" VALUES('84','Rustrel','01',749,609,28.26,'3498','48805',279,1073);
INSERT INTO "communes" VALUES('84','Séguret','21',869,897,21.04,'2985','49118',125,513);
INSERT INTO "communes" VALUES('84','Saint-Marcellin-lès-Vaison','21',340,284,3.56,'3069','49145',200,444);
INSERT INTO "communes" VALUES('84','Mondragon','06',3691,3353,40.65,'2640','49154',34,217);
INSERT INTO "communes" VALUES('84','Cabrières-d''Avignon','13',1810,1428,14.68,'3125','48769',105,626);
INSERT INTO "communes" VALUES('84','Saint-Saturnin-lès-Avignon','13',4894,3842,6.25,'2882','48841',34,117);
INSERT INTO "communes" VALUES('84','Savoillan','14',94,79,8.81,'3375','49089',489,1387);
INSERT INTO "communes" VALUES('84','Châteauneuf-de-Gadagne','13',3259,2843,13.48,'2900','48808',41,124);
INSERT INTO "communes" VALUES('84','Robion','11',4120,3845,17.7,'3084','48717',76,656);
INSERT INTO "communes" VALUES('84','Entrechaux','14',1071,869,14.91,'3113','49131',210,463);
INSERT INTO "communes" VALUES('84','Roaix','21',647,587,5.83,'2975','49161',149,384);
INSERT INTO "communes" VALUES('84','Gordes','12',2113,2089,48.04,'3182','48790',115,635);
INSERT INTO "communes" VALUES('84','Saint-Roman-de-Malegarde','21',326,255,8.21,'2918','49189',125,366);
INSERT INTO "communes" VALUES('84','Mornas','06',2305,2205,26.09,'2657','49114',31,234);
INSERT INTO "communes" VALUES('84','Sault','20',1362,1174,111.15,'3413','48990',650,1591);
INSERT INTO "communes" VALUES('84','Ansouis','19',1125,1036,17.63,'3474','48597',203,390);
INSERT INTO "communes" VALUES('84','L''Isle-sur-la-Sorgue','13',19048,16968,44.57,'3016','48799',52,246);
INSERT INTO "communes" VALUES('84','Goult','12',1161,1279,23.77,'3230','48737',121,335);
INSERT INTO "communes" VALUES('84','Piolenc','17',5006,4308,24.8,'2694','49086',22,170);
INSERT INTO "communes" VALUES('84','Lourmarin','08',1005,1116,20.18,'3362','48626',169,818);
INSERT INTO "communes" VALUES('84','Saint-Romain-en-Viennois','21',856,730,9,'3081','49176',219,447);
INSERT INTO "communes" VALUES('84','Ménerbes','07',1104,1011,30.27,'3189','48703',112,693);
INSERT INTO "communes" VALUES('84','Valréas','22',9800,9431,57.97,'2949','49316',158,530);
INSERT INTO "communes" VALUES('84','Gignac','01',56,48,8.15,'3545','48799',366,834);
INSERT INTO "communes" VALUES('84','Bonnieux','07',1420,1428,51.12,'3300','48692',153,715);
INSERT INTO "communes" VALUES('84','Buoux','07',116,112,17.54,'3379','48701',253,902);
INSERT INTO "communes" VALUES('84','Vaugines','08',526,466,15.55,'3420','48643',211,902);
INSERT INTO "communes" VALUES('84','Puyvert','08',757,541,9.78,'3340','48621',141,615);
INSERT INTO "communes" VALUES('84','Carpentras','98',29278,26084,37.92,'3013','48950',56,212);
INSERT INTO "communes" VALUES('84','Courthézon','05',5387,5358,32.78,'2830','48986',27,126);
INSERT INTO "communes" VALUES('84','Beaumont-du-Ventoux','14',311,285,28.16,'3143','49092',357,1911);
INSERT INTO "communes" VALUES('84','Buisson','21',278,264,9.49,'2957','49200',156,395);
INSERT INTO "communes" VALUES('84','Sablet','04',1219,1283,11.1,'2966','49103',112,419);
INSERT INTO "communes" VALUES('84','Entraigues-sur-la-Sorgue','10',7795,6612,16.57,'2878','48892',20,42);
INSERT INTO "communes" VALUES('84','Saint-Pantaléon','12',186,179,0.78,'3199','48756',184,277);
INSERT INTO "communes" VALUES('84','Murs','12',422,415,31.27,'3228','48835',240,805);
INSERT INTO "communes" VALUES('84','Mirabeau','19',1184,907,31.66,'3688','48560',214,628);
INSERT INTO "communes" VALUES('84','Lagarde-d''Apt','01',37,26,21.79,'3485','48871',829,1252);
INSERT INTO "communes" VALUES('84','Saumane-de-Vaucluse','13',856,684,20.81,'3077','48818',60,671);
INSERT INTO "communes" VALUES('84','Venasque','18',1156,1002,35.01,'3122','48884',137,639);
INSERT INTO "communes" VALUES('84','Velleron','18',2958,2832,16.39,'2992','48842',40,246);
INSERT INTO "communes" VALUES('84','Mazan','10',5792,4950,37.92,'3102','48952',111,450);
INSERT INTO "communes" VALUES('84','Caseneuve','01',448,356,18.11,'3497','48763',244,599);
INSERT INTO "communes" VALUES('84','Le Beaucet','18',363,352,9.04,'3092','48871',169,665);
INSERT INTO "communes" VALUES('84','Sérignan-du-Comtat','16',2403,2247,19.82,'2786','49099',53,240);
INSERT INTO "communes" VALUES('84','Taillades','11',1959,1793,6.86,'3060','48707',78,527);
INSERT INTO "communes" VALUES('84','Aubignan','09',4864,3839,15.7,'2987','49000',41,153);
INSERT INTO "communes" VALUES('84','Fontaine-de-Vaucluse','13',668,605,7.14,'3100','48803',68,652);
INSERT INTO "communes" VALUES('84','<NAME>','19',1350,1009,14.63,'3538','48637',295,1060);
INSERT INTO "communes" VALUES('84','Monieux','20',338,250,47.12,'3358','48963',439,1022);
INSERT INTO "communes" VALUES('84','<NAME>','19',736,675,5.9,'3590','48556',258,479);
INSERT INTO "communes" VALUES('84','Beaumont-de-Pertuis','19',1055,934,56.07,'3724','48597',230,602);
INSERT INTO "communes" VALUES('84','Bollène','06',13843,14107,54.03,'2680','49200',42,312);
INSERT INTO "communes" VALUES('84','Villedieu','21',514,508,11.38,'2998','49204',176,443);
INSERT INTO "communes" VALUES('84','Monteux','10',10989,9555,39.02,'2956','48928',26,80);
INSERT INTO "communes" VALUES('84','Flassan','15',412,341,20.6,'3228','48999',337,1058);
INSERT INTO "communes" VALUES('84','<NAME>-sur-Pernes','18',431,447,11.03,'3080','48865',142,502);
INSERT INTO "communes" VALUES('84','Roussillon','12',1305,1162,29.77,'3285','48780',159,365);
INSERT INTO "communes" VALUES('84','Orange','99',29135,27999,74.2,'2747','49042',24,127);
INSERT INTO "communes" VALUES('84','Avignon','97',89683,85937,64.91,'2746','48832',10,122);
INSERT INTO "communes" VALUES('84','Aurel','20',182,156,28.9,'3435','49033',615,1600);
INSERT INTO "communes" VALUES('84','Saint-Léger-du-Ventoux','14',33,24,19.29,'3265','49125',355,1911);
INSERT INTO "communes" VALUES('84','<NAME>','04',64,54,4.87,'3031','49048',150,517);
INSERT INTO "communes" VALUES('84','Saint-Martin-de-la-Brasque','19',748,656,5.64,'3556','48633',293,421);
INSERT INTO "communes" VALUES('84','Sivergues','07',49,30,9.39,'3407','48698',430,993);
INSERT INTO "communes" VALUES('84','Jonquerettes','13',1358,1232,2.57,'2885','48830',38,119);
INSERT INTO "communes" VALUES('84','Beaumettes','12',239,192,2.59,'3184','48732',119,229);
INSERT INTO "communes" VALUES('84','Cairanne','21',983,851,22.51,'2885','49148',98,339);
INSERT INTO "communes" VALUES('84','Pertuis','19',18931,17823,66.23,'3518','48549',171,472);
INSERT INTO "communes" VALUES('84','Maubec','11',1874,1581,9.13,'3114','48715',97,663);
INSERT INTO "communes" VALUES('84','<NAME>','13',8281,6630,35.53,'2953','48810',38,111);
INSERT INTO "communes" VALUES('84','Suzette','04',119,128,6.75,'3035','49076',224,722);
INSERT INTO "communes" VALUES('84','Lacoste','07',413,404,10.66,'3263','48702',153,716);
INSERT INTO "communes" VALUES('84','Grambois','19',1110,1111,31.2,'3613','48625',278,628);
INSERT INTO "communes" VALUES('84','Travaillan','16',665,675,17.65,'2851','49092',75,112);
INSERT INTO "communes" VALUES('84','Apt','01',11755,11160,44.57,'3400','48751',170,567);
INSERT INTO "communes" VALUES('84','Sainte-Cécile-les-Vignes','06',2295,2102,19.82,'2833','49162',83,138);
INSERT INTO "communes" VALUES('84','Lauris','08',3655,3106,21.81,'3307','48608',128,680);
INSERT INTO "communes" VALUES('84','Vaison-la-Romaine','21',6169,5899,26.99,'3042','49157',156,493);
INSERT INTO "communes" VALUES('84','Cucuron','08',1830,1792,32.68,'3447','48637',235,1105);
INSERT INTO "communes" VALUES('84','Lapalud','06',3832,3262,17.37,'2614','49227',42,59);
INSERT INTO "communes" VALUES('84','Caderousse','17',2735,2498,32.39,'2688','49003',23,40);
INSERT INTO "communes" VALUES('84','Loriol-du-Comtat','09',2390,1870,11.29,'2960','48974',31,93);
INSERT INTO "communes" VALUES('84','Crestet','21',458,432,11.48,'3068','49131',199,567);
INSERT INTO "communes" VALUES('84','Saint-Hippolyte-le-Graveyron','09',164,179,4.94,'3042','49025',135,438);
INSERT INTO "communes" VALUES('84','Crillon-le-Brave','15',448,398,7.63,'3119','49020',208,443);
INSERT INTO "communes" VALUES('84','Joucas','12',326,317,8.29,'3239','48806',178,447);
INSERT INTO "communes" VALUES('84','Gargas','01',2929,2924,14.9,'3358','48780',201,461);
INSERT INTO "communes" VALUES('84','Saint-Didier','18',2128,1848,3.62,'3081','48896',127,262);
INSERT INTO "communes" VALUES('84','Cheval-Blanc','11',4138,3524,58.56,'3029','48668',76,725);
INSERT INTO "communes" VALUES('85','<NAME>','15',2969,2570,30.33,'-3779','52159',90,203);
INSERT INTO "communes" VALUES('85','Damvix','12',801,705,11.66,'-3412','51460',0,10);
INSERT INTO "communes" VALUES('85','Saint-Hilaire-de-Loulay','14',4235,3568,40.62,'-4075','52226',18,72);
INSERT INTO "communes" VALUES('85','Sainte-Radégonde-des-Noyers','02',804,705,31.13,'-3775','51528',0,7);
INSERT INTO "communes" VALUES('85','Bretignolles-sur-Mer','26',4157,2687,27.32,'-4657','51809',0,38);
INSERT INTO "communes" VALUES('85','Mormaison','22',1053,853,15.44,'-4207','52119',27,71);
INSERT INTO "communes" VALUES('85','<NAME>','17',387,296,11.5,'-4123','51600',2,35);
INSERT INTO "communes" VALUES('85','Liez','12',268,225,8.38,'-3377','51522',1,15);
INSERT INTO "communes" VALUES('85','Vairé','24',1504,1003,28.12,'-4547','51780',0,71);
INSERT INTO "communes" VALUES('85','Saint-Martin-de-Fraigneau','28',835,786,13.56,'-3424','51594',10,37);
INSERT INTO "communes" VALUES('85','Vouvant','05',852,866,20.2,'-3451','51747',35,110);
INSERT INTO "communes" VALUES('85','Saint-Vincent-Sterlanges','04',718,607,4.46,'-3804','51935',48,84);
INSERT INTO "communes" VALUES('85','Breuil-Barret','05',645,695,14.74,'-3354','51837',93,246);
INSERT INTO "communes" VALUES('85','Poiroux','30',902,619,25.38,'-4301','51672',19,74);
INSERT INTO "communes" VALUES('85','Saint-Jean-de-Beugné','27',571,417,13.36,'-3804','51691',9,51);
INSERT INTO "communes" VALUES('85','Loge-Fougereuse','05',363,370,10.37,'-3364','51792',90,166);
INSERT INTO "communes" VALUES('85','Lairoux','11',603,532,13.19,'-4004','51609',0,32);
INSERT INTO "communes" VALUES('85','Saint-Vincent-sur-Graon','17',1320,1062,48.79,'-4140','51686',0,79);
INSERT INTO "communes" VALUES('85','Saint-Germain-de-Prinçay','04',1495,1367,24.34,'-3731','51912',51,98);
INSERT INTO "communes" VALUES('85','<NAME>','14',2706,2344,22.84,'-3985','52184',33,84);
INSERT INTO "communes" VALUES('85','Le Poiré-sur-Velluire','07',627,633,16.95,'-3592','51568',1,42);
INSERT INTO "communes" VALUES('85','Saligny','20',1754,1183,23.36,'-4179','52009',47,91);
INSERT INTO "communes" VALUES('85','Saint-Sulpice-en-Pareds','05',392,381,13.33,'-3524','51780',63,111);
INSERT INTO "communes" VALUES('85','Landeronde','16',2172,1816,17.96,'-4342','51842',29,72);
INSERT INTO "communes" VALUES('85','Talmont-Saint-Hilaire','30',6991,5361,89.53,'-4394','51630',0,57);
INSERT INTO "communes" VALUES('85','Saint-Valérien','09',493,444,14.3,'-3640','51698',32,74);
INSERT INTO "communes" VALUES('85','Fontaines','07',820,870,10.56,'-3515','51583',0,28);
INSERT INTO "communes" VALUES('85','Auzay','07',614,523,13.79,'-3559','51602',1,52);
INSERT INTO "communes" VALUES('85','<NAME>-sur-Vie','20',7837,5787,71.9,'-4272','51965',17,83);
INSERT INTO "communes" VALUES('85','Saint-Benoist-sur-Mer','17',349,319,15.53,'-4101','51583',1,26);
INSERT INTO "communes" VALUES('85','Réaumur','21',814,746,22.09,'-3487','51911',98,187);
INSERT INTO "communes" VALUES('85','Saint-Georges-de-Montaigu','14',3877,3175,33.61,'-4035','52163',27,79);
INSERT INTO "communes" VALUES('85','Maillezais','12',968,935,20.33,'-3417','51524',1,18);
INSERT INTO "communes" VALUES('85','Saint-Laurent-sur-Sèvre','15',3446,3312,15.79,'-3588','52176',98,199);
INSERT INTO "communes" VALUES('85','Rocheservière','22',2970,2240,28.15,'-4273','52154',15,72);
INSERT INTO "communes" VALUES('85','Bois-de-Céné','03',1669,1264,41.89,'-4691','52153',0,42);
INSERT INTO "communes" VALUES('85','Saint-Georges-de-Pointindoux','16',1545,1130,15.37,'-4399','51828',18,72);
INSERT INTO "communes" VALUES('85','Saint-André-Treize-Voies','22',1333,951,18.96,'-4165','52150',33,69);
INSERT INTO "communes" VALUES('85','Mallièvre','15',241,268,0.2,'-3555','52123',122,160);
INSERT INTO "communes" VALUES('85','Belleville-sur-Vie','20',3859,2971,15.16,'-4186','51981',55,84);
INSERT INTO "communes" VALUES('85','Mesnard-la-Barotière','08',1248,891,11.83,'-3818','52066',73,109);
INSERT INTO "communes" VALUES('85','Saint-Juire-Champgillon','27',418,448,20.75,'-3737','51753',25,116);
INSERT INTO "communes" VALUES('85','<NAME>','27',355,334,15.1,'-3658','51732',29,97);
INSERT INTO "communes" VALUES('85','Saint-Paul-Mont-Penit','19',689,489,16.58,'-4441','51997',12,71);
INSERT INTO "communes" VALUES('85','Moutiers-les-Mauxfaits','17',1856,1420,9.23,'-4181','51657',17,71);
INSERT INTO "communes" VALUES('85','La Couture','13',197,161,7.03,'-4000','51690',2,60);
INSERT INTO "communes" VALUES('85','Château-d''Olonne','24',13353,12908,31.22,'-4526','51671',0,59);
INSERT INTO "communes" VALUES('85','Saint-Mars-la-Réorthe','08',895,760,9.28,'-3625','52069',101,262);
INSERT INTO "communes" VALUES('85','Coëx','26',3025,2419,39.56,'-4552','51886',2,61);
INSERT INTO "communes" VALUES('85','Cheffois','05',964,821,18.63,'-3475','51854',75,199);
INSERT INTO "communes" VALUES('85','Saint-Sulpice-le-Verdon','22',901,609,14.07,'-4175','52104',54,74);
INSERT INTO "communes" VALUES('85','<NAME>','17',428,273,12.42,'-4150','51626',2,72);
INSERT INTO "communes" VALUES('85','Velluire','07',555,511,9.54,'-3589','51561',0,32);
INSERT INTO "communes" VALUES('85','Saint-Maixent-sur-Vie','26',929,515,10.71,'-4619','51934',2,37);
INSERT INTO "communes" VALUES('85','L''Île-d''Elle','02',1447,1361,19.09,'-3651','51479',1,30);
INSERT INTO "communes" VALUES('85','Saint-Michel-le-Cloucq','28',1260,1206,17.69,'-3433','51649',10,107);
INSERT INTO "communes" VALUES('85','Mareuil-sur-Lay-Dissais','13',2737,2282,25.65,'-3949','51705',0,78);
INSERT INTO "communes" VALUES('85','Saint-Jean-de-Monts','29',8192,6886,61.72,'-4885','51992',0,30);
INSERT INTO "communes" VALUES('85','Saint-Mathurin','16',1936,1257,23.51,'-4501','51739',1,44);
INSERT INTO "communes" VALUES('85','Rosnay','13',558,427,14.11,'-4050','51711',2,78);
INSERT INTO "communes" VALUES('85','<NAME>','20',1735,1394,13.12,'-4277','51919',56,81);
INSERT INTO "communes" VALUES('85','La Copechagnière','25',901,672,9.68,'-4093','52055',64,82);
INSERT INTO "communes" VALUES('85','Mervent','28',1068,1059,22.23,'-3436','51692',13,112);
INSERT INTO "communes" VALUES('85','Saint-Aubin-des-Ormeaux','15',1299,1150,12.63,'-3755','52213',52,141);
INSERT INTO "communes" VALUES('85','<NAME>','16',1745,1009,21.57,'-4426','51766',7,58);
INSERT INTO "communes" VALUES('85','Pineaux','13',587,447,17.44,'-3908','51773',18,84);
INSERT INTO "communes" VALUES('85','<NAME>','26',4328,3214,17.81,'-4708','51911',0,32);
INSERT INTO "communes" VALUES('85','Saint-Hilaire-la-Forêt','30',636,424,10.88,'-4292','51609',2,38);
INSERT INTO "communes" VALUES('85','Sainte-Foy','24',1816,1357,15.62,'-4452','51717',1,59);
INSERT INTO "communes" VALUES('85','Beaulieu-sous-la-Roche','16',2053,1725,25.47,'-4385','51863',20,69);
INSERT INTO "communes" VALUES('85','<NAME>','17',2728,2520,17.63,'-4195','51494',0,25);
INSERT INTO "communes" VALUES('85','Monsireigne','21',913,740,20.5,'-3649','51939',45,137);
INSERT INTO "communes" VALUES('85','Sainte-Pexine','13',240,217,15.76,'-3862','51735',7,68);
INSERT INTO "communes" VALUES('85','Saint-Denis-du-Payré','11',378,338,16.24,'-4006','51564',1,29);
INSERT INTO "communes" VALUES('85','La Réorthe','27',1029,820,23.88,'-3762','51786',15,104);
INSERT INTO "communes" VALUES('85','Vix','12',1760,1574,28.53,'-3551','51516',0,34);
INSERT INTO "communes" VALUES('85','Saint-André-Goule-d''Oie','25',1672,1307,20.19,'-3920','52039',42,107);
INSERT INTO "communes" VALUES('85','Chavagnes-en-Paillers','25',3335,2963,40.57,'-3988','52103',36,92);
INSERT INTO "communes" VALUES('85','Grand''Landes','19',517,381,20.49,'-4430','52023',20,71);
INSERT INTO "communes" VALUES('85','Saint-Denis-la-Chevasse','20',2132,1665,39.47,'-4105','52025',43,88);
INSERT INTO "communes" VALUES('85','Grosbreuil','30',2052,1258,36.33,'-4394','51710',10,72);
INSERT INTO "communes" VALUES('85','Bazoges-en-Paillers','25',1118,844,11.45,'-3856','52119',53,107);
INSERT INTO "communes" VALUES('85','La Bernardière','14',1672,1171,14.3,'-4003','52277',33,76);
INSERT INTO "communes" VALUES('85','L''Herbergement','22',2733,1896,16.75,'-4126','52121',39,72);
INSERT INTO "communes" VALUES('85','La Pommeraie-sur-Sèvre','21',1058,933,15.56,'-3458','52041',140,212);
INSERT INTO "communes" VALUES('85','Chaillé-sous-les-Ormeaux','31',1269,1015,17.5,'-4117','51759',6,77);
INSERT INTO "communes" VALUES('85','Longèves','07',1226,909,11.72,'-3545','51645',2,52);
INSERT INTO "communes" VALUES('85','Moreilles','02',360,219,19.68,'-3801','51579',0,6);
INSERT INTO "communes" VALUES('85','Nieul-le-Dolent','16',2278,1855,27.5,'-4273','51750',34,81);
INSERT INTO "communes" VALUES('85','Bouin','01',2200,2242,51.31,'-4820','52193',0,6);
INSERT INTO "communes" VALUES('85','Fontenay-le-Comte','07',14339,13783,34.05,'-3492','51630',2,68);
INSERT INTO "communes" VALUES('85','Notre-Dame-de-Riez','26',1927,1210,14.62,'-4715','51939',0,19);
INSERT INTO "communes" VALUES('85','Péault','13',531,430,9.09,'-3952','51670',2,34);
INSERT INTO "communes" VALUES('85','Saint-Michel-en-l''Herm','11',2186,1936,54.8,'-3983','51505',1,17);
INSERT INTO "communes" VALUES('85','<NAME>','16',873,532,25.1,'-4373','51742',14,72);
INSERT INTO "communes" VALUES('85','Sainte-Florence','06',1123,857,17.09,'-3876','51997',48,107);
INSERT INTO "communes" VALUES('85','<NAME>','25',860,689,8.26,'-3996','52068',42,77);
INSERT INTO "communes" VALUES('85','<NAME>','05',1298,1182,20.48,'-3411','51845',98,232);
INSERT INTO "communes" VALUES('85','Palluau','19',1020,659,7.43,'-4396','52006',18,64);
INSERT INTO "communes" VALUES('85','L''Île-d''Olonne','24',2710,1821,19.23,'-4576','51735',0,32);
INSERT INTO "communes" VALUES('85','Saint-Martin-des-Tilleuls','15',953,758,14.03,'-3764','52193',60,189);
INSERT INTO "communes" VALUES('85','La Bretonnière-la-Claye','13',619,440,16.48,'-3992','51648',0,33);
INSERT INTO "communes" VALUES('85','Saint-Malô-du-Bois','15',1476,1189,14.28,'-3597','52143',117,221);
INSERT INTO "communes" VALUES('85','Olonne-sur-Mer','24',13618,10076,45.61,'-4566','51707',0,49);
INSERT INTO "communes" VALUES('85','Saint-Hilaire-de-Voust','05',647,637,18.86,'-3318','51768',67,142);
INSERT INTO "communes" VALUES('85','L''Aiguillon-sur-Mer','11',2312,2207,8.74,'-4045','51481',0,8);
INSERT INTO "communes" VALUES('85','Saint-Martin-Lars-en-Sainte-Hermine','27',396,403,18.81,'-3686','51768',37,118);
INSERT INTO "communes" VALUES('85','Bouillé-Courdault','12',481,435,9.73,'-3362','51545',2,22);
INSERT INTO "communes" VALUES('85','La Caillère-Saint-Hilaire','27',1071,1080,15.28,'-3608','51798',49,137);
INSERT INTO "communes" VALUES('85','Pouzauges','21',5460,5382,36.65,'-3526','51980',92,280);
INSERT INTO "communes" VALUES('85','Essarts','06',5063,4188,56.24,'-3960','51971',55,116);
INSERT INTO "communes" VALUES('85','Mouilleron-le-Captif','23',4647,3492,19.73,'-4213','51908',49,83);
INSERT INTO "communes" VALUES('85','Foussais-Payré','28',1211,1194,34.42,'-3356','51700',38,117);
INSERT INTO "communes" VALUES('85','Dompierre-sur-Yon','06',4066,3192,33.6,'-4135','51931',56,94);
INSERT INTO "communes" VALUES('85','Challans','03',18686,16136,64.84,'-4684','52051',1,64);
INSERT INTO "communes" VALUES('85','<NAME>','16',847,558,17.94,'-4507','51871',6,62);
INSERT INTO "communes" VALUES('85','Doix','12',883,793,13.31,'-3492','51547',1,18);
INSERT INTO "communes" VALUES('85','Saint-Germain-l''Aiguiller','05',408,309,8.43,'-3531','51875',94,161);
INSERT INTO "communes" VALUES('85','<NAME>','02',551,436,11.57,'-3627','51533',0,7);
INSERT INTO "communes" VALUES('85','<NAME>','26',939,597,2.71,'-4615','51831',2,43);
INSERT INTO "communes" VALUES('85','Sallertaine','03',2770,2235,49.45,'-4771','52067',0,18);
INSERT INTO "communes" VALUES('85','Givrand','26',1957,1307,11.69,'-4690','51857',2,33);
INSERT INTO "communes" VALUES('85','Saint-Martin-des-Fontaines','09',162,206,5.64,'-3601','51712',35,87);
INSERT INTO "communes" VALUES('85','Châteauneuf','03',892,531,15.92,'-4719','52131',1,34);
INSERT INTO "communes" VALUES('85','Saint-Urbain','01',1663,770,16.39,'-4828','52084',0,11);
INSERT INTO "communes" VALUES('85','Apremont','19',1597,1114,29.73,'-4530','51945',2,58);
INSERT INTO "communes" VALUES('85','Sainte-Hermine','27',2612,2256,34.47,'-3769','51729',12,83);
INSERT INTO "communes" VALUES('85','Sérigné','09',1021,928,18.69,'-3536','51667',11,98);
INSERT INTO "communes" VALUES('85','<NAME>','03',4493,3576,59.49,'-4630','52101',8,52);
INSERT INTO "communes" VALUES('85','Saint-Vincent-sur-Jard','30',1229,875,14.65,'-4316','51572',1,23);
INSERT INTO "communes" VALUES('85','L''Oie','06',1143,835,14.06,'-3851','51998',48,110);
INSERT INTO "communes" VALUES('85','Treize-Vents','15',1144,956,19.12,'-3538','52134',113,215);
INSERT INTO "communes" VALUES('85','<NAME>','15',3747,3545,43.11,'-3702','52179',57,213);
INSERT INTO "communes" VALUES('85','Saint-Cyr-des-Gâts','09',521,464,21.08,'-3579','51744',49,132);
INSERT INTO "communes" VALUES('85','Commequiers','26',3021,2296,40.26,'-4637','51959',0,55);
INSERT INTO "communes" VALUES('85','Corpe','13',912,725,17.1,'-3909','51672',7,43);
INSERT INTO "communes" VALUES('85','Rochetrejoux','04',869,738,10.92,'-3703','51988',62,128);
INSERT INTO "communes" VALUES('85','Luçon','11',9636,9306,31.52,'-3891','51617',1,40);
INSERT INTO "communes" VALUES('85','L''Épine','18',1743,1684,8.95,'-5116','52198',0,17);
INSERT INTO "communes" VALUES('85','Oulmes','28',738,638,9.28,'-3333','51555',4,48);
INSERT INTO "communes" VALUES('85','Sainte-Cécile','06',1497,1218,32.73,'-3834','51938',37,107);
INSERT INTO "communes" VALUES('85','Thouarsais-Bouildroux','05',715,643,17.37,'-3574','51799',62,128);
INSERT INTO "communes" VALUES('85','Longeville-sur-Mer','30',2377,1965,38.05,'-4251','51583',0,30);
INSERT INTO "communes" VALUES('85','Sables-d''Olonne','24',14603,15531,8.83,'-4579','51663',0,26);
INSERT INTO "communes" VALUES('85','Bournezeau','04',3071,2435,60.49,'-3898','51817',12,104);
INSERT INTO "communes" VALUES('85','Saint-Laurent-de-la-Salle','09',371,345,19.22,'-3616','51743',37,136);
INSERT INTO "communes" VALUES('85','Saint-Maurice-le-Girard','05',603,532,11.42,'-3490','51826',64,136);
INSERT INTO "communes" VALUES('85','Faymoreau','28',232,267,10.99,'-3294','51726',54,121);
INSERT INTO "communes" VALUES('85','Clouzeaux','31',2529,2108,26.49,'-4272','51811',37,77);
INSERT INTO "communes" VALUES('85','<NAME>','98',52664,49292,87.52,'-4182','51855',32,94);
INSERT INTO "communes" VALUES('85','Antigny','05',1029,1127,22.17,'-3451','51800',47,138);
INSERT INTO "communes" VALUES('85','Thorigny','31',1112,881,32.15,'-3974','51791',19,97);
INSERT INTO "communes" VALUES('85','<NAME>','21',2445,1844,29.19,'-3552','52036',99,272);
INSERT INTO "communes" VALUES('85','Saint-Gilles-Croix-de-Vie','26',7250,6796,10.25,'-4756','51886',0,28);
INSERT INTO "communes" VALUES('85','Brouzils','25',2595,2032,41.25,'-4064','52097',37,78);
INSERT INTO "communes" VALUES('85','Angles','17',2433,1581,34.27,'-4155','51565',1,22);
INSERT INTO "communes" VALUES('85','Saint-Aubin-la-Plaine','27',480,304,11.63,'-3773','51674',4,52);
INSERT INTO "communes" VALUES('85','Falleron','19',1511,1097,28.64,'-4489','52091',22,69);
INSERT INTO "communes" VALUES('85','Chaix','07',433,422,7.37,'-3546','51592',2,37);
INSERT INTO "communes" VALUES('85','Marillet','05',115,102,4.25,'-3302','51741',64,114);
INSERT INTO "communes" VALUES('85','<NAME>','21',1539,1499,20.13,'-3537','51935',86,240);
INSERT INTO "communes" VALUES('85','Maché','19',1354,1093,18.13,'-4470','51951',10,62);
INSERT INTO "communes" VALUES('85','Chasnais','11',651,479,10.77,'-3962','51622',0,30);
INSERT INTO "communes" VALUES('85','Saint-Maurice-des-Noues','05',640,572,21.42,'-3399','51781',51,129);
INSERT INTO "communes" VALUES('85','Marsais-Sainte-Radégonde','09',519,477,14.77,'-3575','51709',34,98);
INSERT INTO "communes" VALUES('85','Le Gué-de-Velluire','02',556,467,12.81,'-3621','51526',0,39);
INSERT INTO "communes" VALUES('85','Soullans','29',4088,3424,41.09,'-4707','51995',0,23);
INSERT INTO "communes" VALUES('85','Brem-sur-Mer','26',2582,2054,15.85,'-4631','51783',0,55);
INSERT INTO "communes" VALUES('85','Chauché','25',2249,1924,41.99,'-4010','52033',49,101);
INSERT INTO "communes" VALUES('85','Saint-Cyr-en-Talmondais','17',349,301,13.91,'-4081','51623',0,35);
INSERT INTO "communes" VALUES('85','Saint-Gervais','01',2289,1650,41.9,'-4816','52113',1,34);
INSERT INTO "communes" VALUES('85','<NAME>','16',2631,2051,8.73,'-4439','51799',17,61);
INSERT INTO "communes" VALUES('85','Saint-Fulgent','25',3590,3077,36.82,'-3905','52059',46,106);
INSERT INTO "communes" VALUES('85','Landes-Genusson','15',2290,1991,31.33,'-3839','52184',53,121);
INSERT INTO "communes" VALUES('85','Saint-Pierre-le-Vieux','12',966,881,23.19,'-3429','51541',0,25);
INSERT INTO "communes" VALUES('85','Xanton-Chassenon','28',724,651,19.24,'-3370','51614',7,81);
INSERT INTO "communes" VALUES('85','Moutiers-sur-le-Lay','13',658,541,18.28,'-3883','51727',7,57);
INSERT INTO "communes" VALUES('85','Chantonnay','04',8248,7535,82.91,'-3763','51875',18,112);
INSERT INTO "communes" VALUES('85','Lucs-sur-Boulogne','20',3264,2702,53.15,'-4256','52049',29,80);
INSERT INTO "communes" VALUES('85','Mortagne-sur-Sèvre','15',6028,5939,21.94,'-3656','52213',57,151);
INSERT INTO "communes" VALUES('85','Saint-Révérend','26',1332,911,15.82,'-4628','51888',2,47);
INSERT INTO "communes" VALUES('85','Montournais','21',1717,1714,29.14,'-3444','51935',103,251);
INSERT INTO "communes" VALUES('85','Saint-Florent-des-Bois','31',2574,2353,36.76,'-4058','51771',18,83);
INSERT INTO "communes" VALUES('85','Froidfond','03',1514,929,21.51,'-4550','52077',17,64);
INSERT INTO "communes" VALUES('85','Landevieille','26',1228,791,13.57,'-4603','51823',2,59);
INSERT INTO "communes" VALUES('85','Chambretaud','15',1457,1277,16.1,'-3668','52135',148,245);
INSERT INTO "communes" VALUES('85','<NAME>','27',592,545,8.27,'-3666','51826',41,116);
INSERT INTO "communes" VALUES('85','Saint-Hilaire-de-Riez','26',10488,8769,48.85,'-4758','51912',0,33);
INSERT INTO "communes" VALUES('85','<NAME>','12',422,439,8.23,'-3345','51483',1,12);
INSERT INTO "communes" VALUES('85','Magnils-Reigniers','11',1504,1395,17.96,'-3952','51643',0,36);
INSERT INTO "communes" VALUES('85','Saint-Julien-des-Landes','16',1364,1105,28.31,'-4500','51823',7,66);
INSERT INTO "communes" VALUES('85','Saint-Philbert-de-Bouaine','22',2976,2257,50.16,'-4286','52206',7,55);
INSERT INTO "communes" VALUES('85','Saint-Sigismond','12',415,365,10.46,'-3363','51500',1,11);
INSERT INTO "communes" VALUES('85','Le Champ-Saint-Père','17',1674,1319,24.67,'-4092','51676',1,75);
INSERT INTO "communes" VALUES('85','Chaillé-les-Marais','02',1946,1604,39.96,'-3732','51552',0,23);
INSERT INTO "communes" VALUES('85','Jard-sur-Mer','30',2543,2231,16.57,'-4348','51574',1,24);
INSERT INTO "communes" VALUES('85','Epesses','08',2644,2108,31.29,'-3597','52092',118,254);
INSERT INTO "communes" VALUES('85','Vouillé-les-Marais','02',690,528,9.14,'-3667','51542',0,12);
INSERT INTO "communes" VALUES('85','La Chapelle-Palluau','19',921,688,13.01,'-4399','51982',11,64);
INSERT INTO "communes" VALUES('85','Saint-Avaugourd-des-Landes','17',941,656,20.85,'-4245','51682',35,77);
INSERT INTO "communes" VALUES('85','La Châtaigneraie','05',2691,2762,7.94,'-3419','51833',77,177);
INSERT INTO "communes" VALUES('85','L''Île-d''Yeu','10',4591,4811,23.32,'-5205','51916',0,32);
INSERT INTO "communes" VALUES('85','Venansault','23',4490,3513,44.49,'-4277','51873',33,79);
INSERT INTO "communes" VALUES('85','Treize-Septiers','14',2956,2373,21.84,'-3963','52205',48,89);
INSERT INTO "communes" VALUES('85','Saint-Christophe-du-Ligneron','19',2478,1630,42.42,'-4555','52027',15,69);
INSERT INTO "communes" VALUES('85','Beauvoir-sur-Mer','01',3904,3398,35.19,'-4866','52129',0,26);
INSERT INTO "communes" VALUES('85','La Chapelle-aux-Lys','05',250,280,10.56,'-3327','51810',87,230);
INSERT INTO "communes" VALUES('85','Tallud-Sainte-Gemme','21',472,376,18.57,'-3580','51874',50,142);
INSERT INTO "communes" VALUES('85','La Chaize-le-Vicomte','31',3414,2443,49.51,'-4032','51858',32,112);
INSERT INTO "communes" VALUES('85','Nesmy','31',2615,1977,24.52,'-4153','51768',32,79);
INSERT INTO "communes" VALUES('85','Bazoges-en-Pareds','05',1167,1052,33.83,'-3614','51840',37,122);
INSERT INTO "communes" VALUES('85','Herbiers','08',15229,13937,88.78,'-3722','52079',69,245);
INSERT INTO "communes" VALUES('85','Châtelliers-Châteaumur','21',705,683,18.13,'-3507','52061',134,240);
INSERT INTO "communes" VALUES('85','Saint-Mesmin','21',1788,1747,26.28,'-3412','51993',142,248);
INSERT INTO "communes" VALUES('85','L''Hermenault','09',849,842,11.42,'-3598','51688',22,72);
INSERT INTO "communes" VALUES('85','Sigournais','04',835,812,18.3,'-3692','51896',42,106);
INSERT INTO "communes" VALUES('85','Chavagnes-les-Redoux','21',793,736,13.34,'-3617','51908',45,114);
INSERT INTO "communes" VALUES('85','Château-Guibert','13',1461,1108,35.16,'-3970','51757',5,84);
INSERT INTO "communes" VALUES('85','Pouillé','09',647,502,17.48,'-3651','51674',19,62);
INSERT INTO "communes" VALUES('85','Nalliers','09',2209,1881,33.61,'-3739','51634',1,44);
INSERT INTO "communes" VALUES('85','Avrillé','30',1238,1009,25.03,'-4256','51633',2,64);
INSERT INTO "communes" VALUES('85','Bourneau','09',787,624,16.36,'-3504','51711',38,122);
INSERT INTO "communes" VALUES('85','Montreuil','07',807,644,12.03,'-3527','51565',1,23);
INSERT INTO "communes" VALUES('85','Mouilleron-en-Pareds','05',1314,1177,19.97,'-3540','51862',60,182);
INSERT INTO "communes" VALUES('85','Menomblet','05',639,652,20.95,'-3387','51924',127,215);
INSERT INTO "communes" VALUES('85','Boulogne','06',765,546,12.23,'-4064','51994',64,93);
INSERT INTO "communes" VALUES('85','La Faute-sur-Mer','17',828,906,6.94,'-4066','51480',0,17);
INSERT INTO "communes" VALUES('85','Grues','11',811,773,47.18,'-4045','51554',1,15);
INSERT INTO "communes" VALUES('85','<NAME>','30',1055,629,27.37,'-4228','51598',2,55);
INSERT INTO "communes" VALUES('85','Montaigu','14',5050,4708,3.03,'-4051','52192',23,57);
INSERT INTO "communes" VALUES('85','La Boissière-de-Montaigu','14',2093,1568,29.1,'-3920','52168',35,97);
INSERT INTO "communes" VALUES('85','L''Orbrie','07',833,774,9.63,'-3468','51654',5,104);
INSERT INTO "communes" VALUES('85','Sainte-Flaive-des-Loups','16',2135,1578,36.11,'-4351','51791',14,77);
INSERT INTO "communes" VALUES('85','Maillé','12',764,689,17.66,'-3474','51492',1,13);
INSERT INTO "communes" VALUES('85','Puyravault','02',657,531,17.07,'-3799','51531',0,7);
INSERT INTO "communes" VALUES('85','La Bruffière','14',3640,3101,40.42,'-3927','52237',28,103);
INSERT INTO "communes" VALUES('85','La Guérinière','18',1478,1486,7.82,'-5076','52186',0,20);
INSERT INTO "communes" VALUES('85','Pissotte','07',1219,1101,11.96,'-3493','51662',8,107);
INSERT INTO "communes" VALUES('85','Martinet','16',870,604,18.11,'-4462','51863',12,63);
INSERT INTO "communes" VALUES('85','Cezais','05',318,267,12.22,'-3506','51766',51,118);
INSERT INTO "communes" VALUES('85','Aubigny','31',3046,2332,25.79,'-4211','51774',33,77);
INSERT INTO "communes" VALUES('85','Saint-Étienne-de-Brillouet','27',516,372,18.93,'-3707','51694',19,60);
INSERT INTO "communes" VALUES('85','Curzon','17',459,356,5.9,'-4051','51608',0,23);
INSERT INTO "communes" VALUES('85','Triaize','11',1039,956,58.8,'-3927','51549',0,17);
INSERT INTO "communes" VALUES('85','Champagné-les-Marais','02',1700,1328,49.82,'-3845','51535',0,6);
INSERT INTO "communes" VALUES('85','Mouchamps','08',2676,2442,55,'-3777','51978',47,121);
INSERT INTO "communes" VALUES('85','Sainte-Gemme-la-Plaine','11',1951,1575,35.52,'-3831','51649',0,44);
INSERT INTO "communes" VALUES('85','Beaurepaire','08',2185,1570,24.19,'-3806','52123',62,129);
INSERT INTO "communes" VALUES('85','<NAME>','07',1102,1009,23.74,'-3651','51598',0,39);
INSERT INTO "communes" VALUES('85','<NAME>','29',1859,1502,33.22,'-4810','52022',0,4);
INSERT INTO "communes" VALUES('85','Saint-Paul-en-Pareds','08',1204,925,12.32,'-3690','52026',83,181);
INSERT INTO "communes" VALUES('85','Mouzeuil-Saint-Martin','09',1141,1107,25.85,'-3690','51629',1,44);
INSERT INTO "communes" VALUES('85','Puy-de-Serre','28',303,319,13.81,'-3337','51736',58,124);
INSERT INTO "communes" VALUES('85','Tiffauges','15',1489,1328,9.92,'-3831','52237',42,113);
INSERT INTO "communes" VALUES('85','Noirmoutier-en-l''Île','18',4567,5002,19.59,'-5089','52224',0,20);
INSERT INTO "communes" VALUES('85','<NAME>','31',640,468,9.28,'-4089','51750',7,81);
INSERT INTO "communes" VALUES('85','Saint-Hilaire-des-Loges','28',1957,1840,35.2,'-3335','51635',16,93);
INSERT INTO "communes" VALUES('85','Nieul-sur-l''Autise','28',1243,988,22.63,'-3351','51582',6,58);
INSERT INTO "communes" VALUES('85','Saint-Prouant','04',1479,1305,12.86,'-3659','51954',54,118);
INSERT INTO "communes" VALUES('85','Vendrennes','08',1492,1073,16.92,'-3845','52028',68,111);
INSERT INTO "communes" VALUES('85','Le Boupère','21',2956,2765,43.48,'-3625','51994',67,155);
INSERT INTO "communes" VALUES('85','Aizenay','20',8107,6094,81.06,'-4383','51933',10,76);
INSERT INTO "communes" VALUES('85','La Boissière-des-Landes','17',1300,1084,23.74,'-4221','51739',32,82);
INSERT INTO "communes" VALUES('85','Fougeré','31',1072,841,26.89,'-3965','51843',53,110);
INSERT INTO "communes" VALUES('85','Benet','12',3696,3200,50.01,'-3260','51520',1,84);
INSERT INTO "communes" VALUES('85','Cugand','14',3269,2771,13.47,'-3990','52292',13,71);
INSERT INTO "communes" VALUES('85','Saint-Étienne-du-Bois','19',1940,1449,29.44,'-4368','52035',17,64);
INSERT INTO "communes" VALUES('85','Saint-Martin-des-Noyers','06',2228,2005,41.74,'-3905','51913',58,118);
INSERT INTO "communes" VALUES('85','Saint-Hilaire-le-Vouhis','04',980,764,28.91,'-3852','51875',29,109);
INSERT INTO "communes" VALUES('85','Saint-Pierre-du-Chemin','05',1355,1405,29.65,'-3374','51885',133,237);
INSERT INTO "communes" VALUES('85','Beaufou','20',1177,907,29.06,'-4297','52026',28,74);
INSERT INTO "communes" VALUES('85','Petosse','09',606,444,15.9,'-3606','51645',20,58);
INSERT INTO "communes" VALUES('85','Thiré','27',563,417,11.6,'-3715','51721',26,59);
INSERT INTO "communes" VALUES('85','Bessay','13',412,338,10.79,'-3879','51709',2,48);
INSERT INTO "communes" VALUES('85','La Merlatière','06',908,646,14.86,'-4041','51965',69,106);
INSERT INTO "communes" VALUES('85','Notre-Dame-de-Monts','29',1876,1532,20.62,'-4964','52034',1,20);
INSERT INTO "communes" VALUES('85','Boufféré','14',2922,1774,16.55,'-4085','52179',13,59);
INSERT INTO "communes" VALUES('85','Barbâtre','18',1793,1421,12.47,'-5019','52160',0,18);
INSERT INTO "communes" VALUES('85','<NAME>','29',2157,1809,27.81,'-4949','52093',0,26);
INSERT INTO "communes" VALUES('85','Saint-Michel-Mont-Mercure','21',1984,1731,25.76,'-3577','52034',119,290);
INSERT INTO "communes" VALUES('85','La Ferrière','06',4858,3943,47.17,'-4057','51904',55,105);
INSERT INTO "communes" VALUES('85','L''Aiguillon-sur-Vie','26',1693,1111,23.22,'-4628','51856',2,49);
INSERT INTO "communes" VALUES('86','Paizay-le-Sec','04',455,371,34.65,'-1732','51754',113,143);
INSERT INTO "communes" VALUES('86','Mignaloux-Beauvoir','33',3973,3345,21.56,'-2134','51715',99,141);
INSERT INTO "communes" VALUES('86','Saïx','27',248,185,22.55,'-2596','52375',34,117);
INSERT INTO "communes" VALUES('86','Ligugé','35',3062,2819,22.77,'-2230','51687',72,149);
INSERT INTO "communes" VALUES('86','Vouzailles','15',551,444,15.77,'-2492','51898',111,154);
INSERT INTO "communes" VALUES('86','<NAME>','20',583,576,23.57,'-1761','51825',102,141);
INSERT INTO "communes" VALUES('86','Voulon','06',399,305,8.31,'-2323','51507',92,145);
INSERT INTO "communes" VALUES('86','Celle-Lévescault','13',1350,1060,42.67,'-2388','51582',90,159);
INSERT INTO "communes" VALUES('86','Coussay','18',264,265,20.14,'-2371','52042',80,149);
INSERT INTO "communes" VALUES('86','Payré','06',1008,869,26.13,'-2362','51489',97,154);
INSERT INTO "communes" VALUES('86','Coulombiers','13',1083,1017,27.93,'-2391','51650',127,156);
INSERT INTO "communes" VALUES('86','Chatain','02',289,327,22.05,'-2116','51193',125,193);
INSERT INTO "communes" VALUES('86','Craon','16',199,196,21.58,'-2570','51970',83,142);
INSERT INTO "communes" VALUES('86','Dienne','28',519,387,16.56,'-1987','51602',101,139);
INSERT INTO "communes" VALUES('86','Ceaux-en-Couhé','06',510,493,16.22,'-2340','51468',102,150);
INSERT INTO "communes" VALUES('86','<NAME>','25',350,350,32.09,'-1681','51816',69,143);
INSERT INTO "communes" VALUES('86','Magné','08',631,504,20.01,'-2160','51508',109,144);
INSERT INTO "communes" VALUES('86','Aulnay','16',104,134,8.01,'-2494','52117',66,87);
INSERT INTO "communes" VALUES('86','Pindray','17',255,257,26.74,'-1694','51657',81,155);
INSERT INTO "communes" VALUES('86','Ouzilly','11',871,706,10.63,'-2194','51974',62,102);
INSERT INTO "communes" VALUES('86','Mairé','20',171,169,20.57,'-1763','52065',46,144);
INSERT INTO "communes" VALUES('86','Amberre','15',525,424,15.63,'-2413','51963',88,123);
INSERT INTO "communes" VALUES('86','Saint-Rémy-sur-Creuse','07',403,422,12.94,'-1824','52171',43,123);
INSERT INTO "communes" VALUES('86','Chalandray','30',781,670,24.97,'-2598','51845',131,171);
INSERT INTO "communes" VALUES('86','Trois-Moutiers','27',1067,928,35.94,'-2573','52292',32,123);
INSERT INTO "communes" VALUES('86','Chiré-en-Montreuil','30',880,804,21.41,'-2456','51821',107,159);
INSERT INTO "communes" VALUES('86','Leugny','07',448,403,15.74,'-1817','52125',43,144);
INSERT INTO "communes" VALUES('86','Vernon','28',623,582,38.38,'-2067','51600',113,139);
INSERT INTO "communes" VALUES('86','Antran','10',1155,1061,23.82,'-1992','52059',37,158);
INSERT INTO "communes" VALUES('86','<NAME>','30',730,630,8.93,'-2426','51896',110,148);
INSERT INTO "communes" VALUES('86','Millac','09',508,588,40.59,'-1833','51322',98,216);
INSERT INTO "communes" VALUES('86','<NAME>','09',669,777,64.36,'-1874','51361',85,191);
INSERT INTO "communes" VALUES('86','Mazeuil','16',233,254,13.63,'-2503','51986',83,125);
INSERT INTO "communes" VALUES('86','<NAME>','02',353,390,29.68,'-2158','51317',142,165);
INSERT INTO "communes" VALUES('86','Cherves','15',560,499,25.81,'-2576','51909',118,169);
INSERT INTO "communes" VALUES('86','Gizay','28',384,370,20.76,'-2125','51600',112,138);
INSERT INTO "communes" VALUES('86','Luchapt','09',284,288,26.39,'-1727','51307',128,229);
INSERT INTO "communes" VALUES('86','Jardres','24',1124,902,20.74,'-1968','51743',80,133);
INSERT INTO "communes" VALUES('86','Port-de-Piles','07',545,513,5.32,'-1930','52225',37,49);
INSERT INTO "communes" VALUES('86','Montmorillon','17',6387,6895,57,'-1629','51585',82,168);
INSERT INTO "communes" VALUES('86','Ceaux-en-Loudun','12',599,579,28.89,'-2331','52251',46,109);
INSERT INTO "communes" VALUES('86','Ormes','07',1640,1432,24.22,'-1922','52191',37,116);
INSERT INTO "communes" VALUES('86','Chabournay','19',924,724,5.84,'-2310','51909',77,110);
INSERT INTO "communes" VALUES('86','Availles-en-Châtellerault','31',1619,1225,15.46,'-1953','51950',47,135);
INSERT INTO "communes" VALUES('86','Pleumartin','20',1211,1117,23.92,'-1742','51931',85,144);
INSERT INTO "communes" VALUES('86','Avanton','19',1815,1414,10.8,'-2259','51848',98,132);
INSERT INTO "communes" VALUES('86','La Roche-Rigault','12',535,503,25.64,'-2398','52188',59,121);
INSERT INTO "communes" VALUES('86','Voulême','05',376,326,11.12,'-2339','51221',92,167);
INSERT INTO "communes" VALUES('86','<NAME>','26',971,1023,41.65,'-1440','51630',97,183);
INSERT INTO "communes" VALUES('86','Roiffé','27',693,657,24.3,'-2538','52361',35,118);
INSERT INTO "communes" VALUES('86','Chapelle-Viviers','04',453,408,14.53,'-1789','51648',109,152);
INSERT INTO "communes" VALUES('86','Saint-Saviol','05',497,467,10.81,'-2342','51266',97,143);
INSERT INTO "communes" VALUES('86','Berthegon','18',279,297,10.61,'-2304','52108',66,136);
INSERT INTO "communes" VALUES('86','Prinçay','18',236,194,16.59,'-2324','52148',62,146);
INSERT INTO "communes" VALUES('86','Vendeuvre-du-Poitou','19',3019,2435,41.62,'-2252','51928',69,158);
INSERT INTO "communes" VALUES('86','Morton','27',372,285,7.99,'-2622','52343',31,49);
INSERT INTO "communes" VALUES('86','Châtillon','06',231,119,5.92,'-2378','51465',102,147);
INSERT INTO "communes" VALUES('86','Leigné-sur-Usseau','10',457,414,11.23,'-2072','52126',92,162);
INSERT INTO "communes" VALUES('86','Saint-Clair','16',204,188,10.67,'-2526','52090',57,82);
INSERT INTO "communes" VALUES('86','Genouillé','02',542,512,29.8,'-2221','51230',116,179);
INSERT INTO "communes" VALUES('86','Moussac','09',484,504,24.69,'-1833','51424',80,184);
INSERT INTO "communes" VALUES('86','<NAME>','16',177,179,13.58,'-2473','52095',72,91);
INSERT INTO "communes" VALUES('86','Vouneuil-sous-Biard','35',5095,4121,25.98,'-2295','51748',77,149);
INSERT INTO "communes" VALUES('86','Saint-Macoux','05',485,450,10.68,'-2337','51242',96,144);
INSERT INTO "communes" VALUES('86','Chasseneuil-du-Poitou','37',4492,3841,17.61,'-2182','51835',63,124);
INSERT INTO "communes" VALUES('86','Lavoux','24',1116,1009,15.03,'-2008','51773',99,129);
INSERT INTO "communes" VALUES('86','Montreuil-Bonnin','30',651,649,25.76,'-2439','51724',105,159);
INSERT INTO "communes" VALUES('86','Lésigny','20',529,519,13.21,'-1743','52054',47,138);
INSERT INTO "communes" VALUES('86','<NAME>','16',384,402,19.09,'-2576','52009',76,121);
INSERT INTO "communes" VALUES('86','Jazeneuil','13',835,763,31.82,'-2520','51628',107,157);
INSERT INTO "communes" VALUES('86','Pouant','18',403,516,26.57,'-2295','52229',47,112);
INSERT INTO "communes" VALUES('86','Lusignan','13',2625,2676,37.82,'-2460','51594',99,159);
INSERT INTO "communes" VALUES('86','Buxerolles','22',10047,8776,9.1,'-2208','51775',65,124);
INSERT INTO "communes" VALUES('86','Liglet','26',298,347,52.53,'-1391','51677',87,169);
INSERT INTO "communes" VALUES('86','Jaunay-Clan','23',5811,5635,27.48,'-2185','51873',61,125);
INSERT INTO "communes" VALUES('86','Béthines','25',481,511,37.02,'-1512','51719',83,146);
INSERT INTO "communes" VALUES('86','Leignes-sur-Fontaine','04',580,514,32.37,'-1733','51673',82,157);
INSERT INTO "communes" VALUES('86','Sérigny','10',289,342,24.92,'-2208','52118',56,162);
INSERT INTO "communes" VALUES('86','Civray','05',2866,2637,8.7,'-2268','51276',105,157);
INSERT INTO "communes" VALUES('86','Thuré','38',2870,2512,43.47,'-2086','52036',52,166);
INSERT INTO "communes" VALUES('86','Brion','08',246,203,16.08,'-2084','51506',109,141);
INSERT INTO "communes" VALUES('86','Saint-Léger-de-Montbrillais','27',389,405,10.4,'-2645','52301',39,115);
INSERT INTO "communes" VALUES('86','Queaux','09',588,600,52.64,'-1854','51474',72,160);
INSERT INTO "communes" VALUES('86','Naintré','32',5830,5291,24.86,'-2056','51960',49,131);
INSERT INTO "communes" VALUES('86','Blanzay','05',815,798,35.45,'-2312','51336',119,147);
INSERT INTO "communes" VALUES('86','Dissay','23',3013,2635,23.71,'-2116','51890',60,144);
INSERT INTO "communes" VALUES('86','Liniers','24',531,487,16.19,'-2000','51789',97,138);
INSERT INTO "communes" VALUES('86','Maisonneuve','15',299,273,8.97,'-2533','51913',113,140);
INSERT INTO "communes" VALUES('86','<NAME>','20',1559,1445,35.31,'-1693','51985',52,139);
INSERT INTO "communes" VALUES('86','Chouppes','18',750,693,31.72,'-2414','52013',79,157);
INSERT INTO "communes" VALUES('86','Linazay','05',211,194,9.14,'-2394','51294',117,135);
INSERT INTO "communes" VALUES('86','Bournand','27',706,642,32.42,'-2509','52319',37,108);
INSERT INTO "communes" VALUES('86','Poitiers','99',87697,83507,42.11,'-2224','51757',65,144);
INSERT INTO "communes" VALUES('86','Fontaine-le-Comte','35',3661,3111,18.66,'-2305','51699',101,151);
INSERT INTO "communes" VALUES('86','Nouaillé-Maupertuis','28',2761,2405,22.13,'-2136','51676',93,139);
INSERT INTO "communes" VALUES('86','Saint-Romain','02',422,364,20.48,'-2190','51358',119,159);
INSERT INTO "communes" VALUES('86','Champagné-Saint-Hilaire','08',945,821,46.36,'-2236','51466',99,195);
INSERT INTO "communes" VALUES('86','Charrais','19',1005,674,14.63,'-2349','51894',98,137);
INSERT INTO "communes" VALUES('86','Civaux','14',964,850,26.39,'-1856','51605',67,149);
INSERT INTO "communes" VALUES('86','Moulismes','17',413,397,29.06,'-1691','51477',108,206);
INSERT INTO "communes" VALUES('86','Gençay','08',1773,1605,4.74,'-2146','51525',105,138);
INSERT INTO "communes" VALUES('86','Cuhon','15',404,344,16.34,'-2489','51954',93,126);
INSERT INTO "communes" VALUES('86','Marnay','29',631,532,45.1,'-2216','51551',96,144);
INSERT INTO "communes" VALUES('86','Journet','26',368,397,58.51,'-1521','51626',97,153);
INSERT INTO "communes" VALUES('86','Vouillé','30',3581,2775,33.95,'-2408','51823',97,155);
INSERT INTO "communes" VALUES('86','Saint-Laurent-de-Jourdes','14',170,160,17.96,'-1992','51547',103,141);
INSERT INTO "communes" VALUES('86','Maulay','12',195,189,23.01,'-2355','52198',62,121);
INSERT INTO "communes" VALUES('86','Saint-Gaudent','05',297,305,11.76,'-2275','51240',113,153);
INSERT INTO "communes" VALUES('86','Saint-Savin','25',893,1008,18.8,'-1636','51740',72,142);
INSERT INTO "communes" VALUES('86','Surin','02',123,172,11.91,'-2184','51198',138,188);
INSERT INTO "communes" VALUES('86','Mirebeau','15',2175,2255,13.84,'-2394','51984',89,158);
INSERT INTO "communes" VALUES('86','Messemé','12',222,206,9.84,'-2400','52235',76,108);
INSERT INTO "communes" VALUES('86','Saires','18',142,128,14.05,'-2326','52094',72,147);
INSERT INTO "communes" VALUES('86','Bellefonds','31',233,209,8.5,'-1939','51829',55,138);
INSERT INTO "communes" VALUES('86','Scorbé-Clairvaux','11',2346,2126,22.85,'-2137','52014',58,171);
INSERT INTO "communes" VALUES('86','Joussé','02',342,413,7.59,'-2073','51363',124,171);
INSERT INTO "communes" VALUES('86','Charroux','02',1169,1319,44.29,'-2148','51272',115,178);
INSERT INTO "communes" VALUES('86','Saint-Maurice-la-Clouère','08',1200,1059,39.6,'-2138','51532',105,139);
INSERT INTO "communes" VALUES('86','Asnois','02',143,150,16.26,'-2138','51236',120,182);
INSERT INTO "communes" VALUES('86','Sammarçolles','12',625,513,21.22,'-2434','52259',54,102);
INSERT INTO "communes" VALUES('86','Jouhet','17',507,452,25.53,'-1663','51657',78,153);
INSERT INTO "communes" VALUES('86','Bonneuil-Matours','31',2040,1711,42.8,'-1962','51869',51,141);
INSERT INTO "communes" VALUES('86','Ranton','27',189,202,6.07,'-2628','52222',45,123);
INSERT INTO "communes" VALUES('86','Savigny-Lévescault','24',1066,939,22.14,'-2066','51706',106,137);
INSERT INTO "communes" VALUES('86','Chalais','12',520,553,14.87,'-2483','52199',56,122);
INSERT INTO "communes" VALUES('86','Loudun','12',6989,7707,43.77,'-2503','52233',47,120);
INSERT INTO "communes" VALUES('86','Archigny','31',1054,987,66.68,'-1872','51859',72,141);
INSERT INTO "communes" VALUES('86','Arçay','12',401,406,14.05,'-2580','52187',50,122);
INSERT INTO "communes" VALUES('86','Benassay','30',887,790,42.41,'-2544','51732',130,187);
INSERT INTO "communes" VALUES('86','Vaux-sur-Vienne','10',600,579,7,'-1972','52125',37,125);
INSERT INTO "communes" VALUES('86','Bouresse','14',570,628,36.62,'-1920','51513',112,160);
INSERT INTO "communes" VALUES('86','Coulonges','26',268,257,18.35,'-1313','51558',133,204);
INSERT INTO "communes" VALUES('86','Couhé','06',1855,1787,9.11,'-2395','51443',107,153);
INSERT INTO "communes" VALUES('86','Gouex','14',477,511,18.16,'-1829','51518',71,142);
INSERT INTO "communes" VALUES('86','Plaisance','17',184,185,13.11,'-1626','51480',138,211);
INSERT INTO "communes" VALUES('86','Payroux','02',502,501,30.05,'-2057','51350',125,167);
INSERT INTO "communes" VALUES('86','Beaumont','31',1846,1625,21.44,'-2120','51931',56,151);
INSERT INTO "communes" VALUES('86','Asnières-sur-Blour','09',201,191,32.49,'-1707','51294',163,232);
INSERT INTO "communes" VALUES('86','Montamisé','37',3217,2612,31.71,'-2125','51801',66,144);
INSERT INTO "communes" VALUES('86','Oyré','07',979,890,33.19,'-1898','52081',61,147);
INSERT INTO "communes" VALUES('86','Martaizé','16',386,393,19.48,'-2528','52130',53,84);
INSERT INTO "communes" VALUES('86','Chenevelles','20',487,406,29.3,'-1870','51920',72,143);
INSERT INTO "communes" VALUES('86','Curzay-sur-Vonne','13',468,426,16.52,'-2545','51657',109,159);
INSERT INTO "communes" VALUES('86','Romagne','06',855,829,40.84,'-2260','51411',103,150);
INSERT INTO "communes" VALUES('86','Saint-Pierre-de-Maillé','25',909,913,74.89,'-1659','51865',64,147);
INSERT INTO "communes" VALUES('86','Château-Garnier','08',631,599,35.89,'-2123','51399',117,159);
INSERT INTO "communes" VALUES('86','Bourg-Archambault','17',196,194,24.33,'-1481','51536',123,201);
INSERT INTO "communes" VALUES('86','Vézières','27',353,360,26.31,'-2485','52319',39,107);
INSERT INTO "communes" VALUES('86','Anché','06',326,282,16.23,'-2302','51494',92,157);
INSERT INTO "communes" VALUES('86','Champagné-le-Sec','05',217,200,7.99,'-2383','51322',126,144);
INSERT INTO "communes" VALUES('86','Aslonnes','28',1033,890,23,'-2225','51604',81,139);
INSERT INTO "communes" VALUES('86','Persac','14',860,881,59.41,'-1812','51493',72,196);
INSERT INTO "communes" VALUES('86','Saint-Laon','12',125,141,11.93,'-2614','52199',45,117);
INSERT INTO "communes" VALUES('86','Leigné-les-Bois','20',582,464,29.97,'-1811','51955',83,142);
INSERT INTO "communes" VALUES('86','Pouançay','27',241,273,5.46,'-2678','52311',35,102);
INSERT INTO "communes" VALUES('86','<NAME>','08',350,293,27.22,'-2160','51468',114,150);
INSERT INTO "communes" VALUES('86','Usson-du-Poitou','08',1309,1364,72.64,'-2010','51420',118,161);
INSERT INTO "communes" VALUES('86','Cissé','19',2571,1976,16.92,'-2343','51828',103,151);
INSERT INTO "communes" VALUES('86','Mouterre-sur-Blourde','09',177,156,20.18,'-1758','51335',122,219);
INSERT INTO "communes" VALUES('86','Dangé-Saint-Romain','07',3145,3135,34.99,'-1923','52152',37,127);
INSERT INTO "communes" VALUES('86','Brux','06',692,670,35.91,'-2381','51373',117,154);
INSERT INTO "communes" VALUES('86','Villiers','19',824,662,10.87,'-2403','51861',118,150);
INSERT INTO "communes" VALUES('86','Mondion','10',133,149,8.91,'-2058','52153',78,134);
INSERT INTO "communes" VALUES('86','Frozes','30',504,372,8.72,'-2448','51844',113,153);
INSERT INTO "communes" VALUES('86','Coussay-les-Bois','20',903,803,43.32,'-1771','52009',62,144);
INSERT INTO "communes" VALUES('86','Guesnes','18',232,262,12.98,'-2415','52130',61,91);
INSERT INTO "communes" VALUES('86','Saint-Gervais-les-Trois-Clochers','10',1315,1168,39.15,'-2143','52112',70,163);
INSERT INTO "communes" VALUES('86','Nueil-sous-Faye','18',252,228,15.99,'-2285','52199',54,116);
INSERT INTO "communes" VALUES('86','Villemort','25',111,114,4.42,'-1572','51724',107,136);
INSERT INTO "communes" VALUES('86','Latillé','30',1480,1356,25.17,'-2512','51799',117,163);
INSERT INTO "communes" VALUES('86','Colombiers','38',1503,1275,20.77,'-2123','51969',56,153);
INSERT INTO "communes" VALUES('86','Pouillé','24',629,510,13.96,'-1955','51707',105,137);
INSERT INTO "communes" VALUES('86','Saint-Georges-lès-Baillargeaux','23',3993,3178,33.9,'-2152','51857',61,143);
INSERT INTO "communes" VALUES('86','Brigueil-le-Chantre','26',507,595,53.79,'-1387','51551',120,203);
INSERT INTO "communes" VALUES('86','Mouterre-Silly','12',712,678,30.89,'-2546','52195',53,122);
INSERT INTO "communes" VALUES('86','Verrières','14',928,799,19.58,'-1937','51569',97,151);
INSERT INTO "communes" VALUES('86','Fleix','04',156,152,9.15,'-1768','51728',112,144);
INSERT INTO "communes" VALUES('86','L''Isle-Jourdain','09',1215,1287,5.92,'-1834','51369',87,183);
INSERT INTO "communes" VALUES('86','Availles-Limouzine','01',1306,1306,57.9,'-1868','51246',120,224);
INSERT INTO "communes" VALUES('86','Blaslay','19',537,452,19.67,'-2324','51929',81,127);
INSERT INTO "communes" VALUES('86','Neuville-de-Poitou','19',5119,4060,17.06,'-2324','51872',91,140);
INSERT INTO "communes" VALUES('86','Saint-Benoît','34',6991,6995,13.58,'-2217','51722',72,136);
INSERT INTO "communes" VALUES('86','Usseau','10',652,573,18.95,'-2031','52085',71,163);
INSERT INTO "communes" VALUES('86','Beuxes','12',530,482,11.19,'-2395','52327',36,68);
INSERT INTO "communes" VALUES('86','Lauthiers','04',77,71,8.16,'-1780','51779',117,141);
INSERT INTO "communes" VALUES('86','Vellèches','10',388,358,19.64,'-2005','52158',58,135);
INSERT INTO "communes" VALUES('86','Maillé','30',590,426,12.32,'-2494','51865',124,153);
INSERT INTO "communes" VALUES('86','Saint-Jean-de-Sauves','16',1329,1294,56.58,'-2493','52045',60,130);
INSERT INTO "communes" VALUES('86','Thurageau','15',823,702,35.29,'-2327','51965',71,161);
INSERT INTO "communes" VALUES('86','Sainte-Radegonde','04',148,163,13.18,'-1816','51817',100,138);
INSERT INTO "communes" VALUES('86','Adriers','09',728,796,68.09,'-1710','51397',110,231);
INSERT INTO "communes" VALUES('86','Orches','11',394,367,19.22,'-2239','52092',70,167);
INSERT INTO "communes" VALUES('86','Senillé','32',701,609,17.94,'-1913','51976',57,146);
INSERT INTO "communes" VALUES('86','Sanxay','13',541,649,24.13,'-2604','51660',117,176);
INSERT INTO "communes" VALUES('86','Savigny-sous-Faye','11',343,298,15,'-2278','52078',75,149);
INSERT INTO "communes" VALUES('86','Quinçay','30',2138,1663,29.66,'-2333','51785',82,146);
INSERT INTO "communes" VALUES('86','Saulgé','17',965,989,62.31,'-1623','51531',87,202);
INSERT INTO "communes" VALUES('86','Sèvres-Anxaumont','24',1907,1778,15.49,'-2079','51744',98,129);
INSERT INTO "communes" VALUES('86','Nieuil-l''Espoir','28',2354,1906,20.64,'-2091','51647',108,136);
INSERT INTO "communes" VALUES('86','Lhommaizé','14',829,760,30.59,'-1931','51596',85,140);
INSERT INTO "communes" VALUES('86','Sommières-du-Clain','08',804,664,26.21,'-2197','51422',107,152);
INSERT INTO "communes" VALUES('86','Saint-Sauveur','03',1063,947,32.37,'-1904','52009',72,144);
INSERT INTO "communes" VALUES('86','<NAME>','24',645,513,17.11,'-1968','51833',55,141);
INSERT INTO "communes" VALUES('86','Châtellerault','97',32459,34192,51.93,'-1990','52019',42,134);
INSERT INTO "communes" VALUES('86','Roches-Prémarie-Andillé','28',1816,1543,22.37,'-2184','51647',82,138);
INSERT INTO "communes" VALUES('86','Vicq-sur-Gartempe','20',696,715,33.22,'-1638','51912',57,142);
INSERT INTO "communes" VALUES('86','Saint-Pierre-d''Exideuil','05',812,795,19.32,'-2296','51279',100,147);
INSERT INTO "communes" VALUES('86','Ingrandes','07',1774,1729,35.03,'-1966','52084',37,135);
INSERT INTO "communes" VALUES('86','Saint-Martin-l''Ars','01',402,389,41.76,'-2007','51355',132,169);
INSERT INTO "communes" VALUES('86','Lizant','05',469,443,16.95,'-2286','51206',92,157);
INSERT INTO "communes" VALUES('86','Curçay-sur-Dive','27',227,217,15.79,'-2660','52235',39,122);
INSERT INTO "communes" VALUES('86','Pressac','01',629,576,49.21,'-1962','51240',141,216);
INSERT INTO "communes" VALUES('86','Angles-sur-l''Anglin','25',385,365,14.75,'-1613','51884',63,139);
INSERT INTO "communes" VALUES('86','Saint-Sauvant','13',1316,1290,59.58,'-2534','51511',122,159);
INSERT INTO "communes" VALUES('86','Verrue','18',377,350,28.44,'-2405','52070',69,140);
INSERT INTO "communes" VALUES('86','Vaux','06',738,630,25.84,'-2351','51442',106,151);
INSERT INTO "communes" VALUES('86','Massognes','15',283,228,13.59,'-2528','51935',90,140);
INSERT INTO "communes" VALUES('86','Lavausseau','30',798,702,24.71,'-2515','51733',117,159);
INSERT INTO "communes" VALUES('86','Yversay','19',287,246,5.95,'-2357','51865',109,142);
INSERT INTO "communes" VALUES('86','Varennes','15',367,329,12.8,'-2375','51954',88,159);
INSERT INTO "communes" VALUES('86','Saint-Christophe','10',356,303,15.2,'-2182','52134',69,140);
INSERT INTO "communes" VALUES('86','Biard','36',1659,1502,7.47,'-2256','51753',75,136);
INSERT INTO "communes" VALUES('86','Berrie','27',267,266,16.64,'-2672','52297',36,124);
INSERT INTO "communes" VALUES('86','Ternay','27',180,168,10.05,'-2654','52261',38,124);
INSERT INTO "communes" VALUES('86','Saint-Germain','25',1002,1026,20.23,'-1625','51738',72,137);
INSERT INTO "communes" VALUES('86','Lathus-Saint-Rémy','17',1237,1256,98.28,'-1531','51482',94,228);
INSERT INTO "communes" VALUES('86','Croutelle','35',819,648,1.48,'-2276','51707',100,147);
INSERT INTO "communes" VALUES('86','Marigny-Chemereau','29',553,417,11.51,'-2356','51584',87,142);
INSERT INTO "communes" VALUES('86','Nalliers','25',300,327,16.03,'-1633','51780',72,134);
INSERT INTO "communes" VALUES('86','Rouillé','13',2530,2129,52.01,'-2552','51578',122,183);
INSERT INTO "communes" VALUES('86','Mazerolles','14',785,769,21.25,'-1836','51561',70,151);
INSERT INTO "communes" VALUES('86','Marçay','29',935,695,30.32,'-2341','51625',98,151);
INSERT INTO "communes" VALUES('86','Cloué','13',444,446,12.21,'-2413','51602',95,147);
INSERT INTO "communes" VALUES('86','Nérignac','09',146,139,4.46,'-1788','51439',108,198);
INSERT INTO "communes" VALUES('86','Champniers','05',359,348,20.03,'-2222','51353',124,157);
INSERT INTO "communes" VALUES('86','Saint-Léomer','26',182,183,28.67,'-1492','51596',112,181);
INSERT INTO "communes" VALUES('86','Thollet','26',170,173,29.92,'-1348','51579',105,195);
INSERT INTO "communes" VALUES('86','Château-Larcher','29',955,817,15.35,'-2247','51575',85,135);
INSERT INTO "communes" VALUES('86','Chaunay','06',1191,1175,38.64,'-2414','51341',122,148);
INSERT INTO "communes" VALUES('86','Migné-Auxances','21',6053,5802,28.96,'-2247','51807',65,143);
INSERT INTO "communes" VALUES('86','Moncontour','16',1012,982,41.06,'-2615','52091',51,115);
INSERT INTO "communes" VALUES('86','Mauprévoir','01',678,654,48.59,'-2022','51303',132,188);
INSERT INTO "communes" VALUES('86','Dercé','18',162,170,12.28,'-2355','52157',62,136);
INSERT INTO "communes" VALUES('86','Champigny-le-Sec','15',1085,799,24.31,'-2424','51906',93,141);
INSERT INTO "communes" VALUES('86','Lencloître','11',2477,2253,19.04,'-2231','52016',65,107);
INSERT INTO "communes" VALUES('86','<NAME>','28',1542,1327,7.16,'-2187','51617',119,145);
INSERT INTO "communes" VALUES('86','Saint-Julien-l''Ars','24',2395,2059,18.46,'-2029','51732',104,130);
INSERT INTO "communes" VALUES('86','La Chapelle-Montreuil','30',662,565,24.53,'-2469','51706',110,156);
INSERT INTO "communes" VALUES('86','Monts-sur-Guesnes','18',704,641,11.4,'-2361','52132',66,146);
INSERT INTO "communes" VALUES('86','Sillars','14',625,594,60.79,'-1742','51576',93,154);
INSERT INTO "communes" VALUES('86','Ayron','30',1112,990,28.3,'-2510','51845',117,169);
INSERT INTO "communes" VALUES('86','Iteuil','29',2860,2814,22.05,'-2250','51654',77,146);
INSERT INTO "communes" VALUES('86','Béruges','30',1307,1103,32.63,'-2366','51742',87,152);
INSERT INTO "communes" VALUES('86','Antigny','25',604,598,43.93,'-1647','51706',75,148);
INSERT INTO "communes" VALUES('86','Fleuré','28',1008,801,16.68,'-2016','51642',98,136);
INSERT INTO "communes" VALUES('86','Angliers','16',651,666,23.31,'-2466','52162',54,83);
INSERT INTO "communes" VALUES('86','Cernay','11',443,386,3.29,'-2258','52037',74,110);
INSERT INTO "communes" VALUES('86','Haims','26',241,233,32.25,'-1575','51669',92,152);
INSERT INTO "communes" VALUES('86','Vivonne','29',3776,3028,41.16,'-2302','51589',81,149);
INSERT INTO "communes" VALUES('86','Saint-Secondin','08',552,508,38.14,'-2048','51476',115,149);
INSERT INTO "communes" VALUES('86','Sossais','11',446,399,12.04,'-2167','52065',90,161);
INSERT INTO "communes" VALUES('86','Savigné','05',1329,1355,36.35,'-2239','51287',110,161);
INSERT INTO "communes" VALUES('86','Raslay','27',118,133,3.98,'-2599','52347',32,51);
INSERT INTO "communes" VALUES('86','Bonnes','24',1702,1475,34.28,'-1934','51782',56,141);
INSERT INTO "communes" VALUES('86','Bignoux','24',1046,989,14.52,'-2074','51777',92,131);
INSERT INTO "communes" VALUES('86','Saint-Cyr','23',1026,787,15.03,'-2092','51907',56,144);
INSERT INTO "communes" VALUES('86','Cenon-sur-Vienne','31',1836,1902,8.6,'-2000','51972',47,105);
INSERT INTO "communes" VALUES('86','Doussay','11',633,538,27.1,'-2290','52049',70,141);
INSERT INTO "communes" VALUES('86','Buxeuil','07',931,904,11.96,'-1827','52191',38,115);
INSERT INTO "communes" VALUES('86','Glénouze','27',120,110,9.65,'-2605','52218',50,123);
INSERT INTO "communes" VALUES('86','Basses','12',342,372,10.25,'-2464','52264',63,97);
INSERT INTO "communes" VALUES('86','Vouneuil-sur-Vienne','31',1988,1837,36.8,'-1996','51908',47,139);
INSERT INTO "communes" VALUES('86','Tercé','24',1073,1015,23.53,'-1970','51685',96,136);
INSERT INTO "communes" VALUES('86','Lussac-les-Châteaux','14',2346,2529,28.06,'-1789','51559',70,148);
INSERT INTO "communes" VALUES('86','Chauvigny','04',6754,7012,95.82,'-1878','51743',61,149);
INSERT INTO "communes" VALUES('86','Valdivienne','04',2562,2305,61.24,'-1888','51675',62,149);
INSERT INTO "communes" VALUES('86','Cheneché','19',338,287,5.15,'-2284','51931',77,119);
INSERT INTO "communes" VALUES('86','Saint-Genest-d''Ambière','11',1236,1143,32.06,'-2188','52022',64,161);
INSERT INTO "communes" VALUES('86','Monthoiron','31',679,588,16.66,'-1907','51926',63,141);
INSERT INTO "communes" VALUES('86','Smarves','28',2535,2154,20.09,'-2207','51679',72,141);
INSERT INTO "communes" VALUES('86','Marigny-Brizay','19',1173,969,20.81,'-2178','51939',61,154);
INSERT INTO "communes" VALUES('87','Saint-Sornin-Leulac','07',652,623,32.28,'-1155','51333',246,365);
INSERT INTO "communes" VALUES('87','Salles-Lavauguyon','22',173,198,12.32,'-1824','50827',194,301);
INSERT INTO "communes" VALUES('87','Saint-Ouen-sur-Gartempe','08',225,217,22.12,'-1410','51293',167,277);
INSERT INTO "communes" VALUES('87','Saint-Martial-sur-Isop','16',138,126,23.44,'-1651','51297',177,266);
INSERT INTO "communes" VALUES('87','Ladignac-le-Long','29',1128,1088,47.21,'-1359','50647',240,430);
INSERT INTO "communes" VALUES('87','Saint-Pardoux','04',540,467,23.23,'-1172','51176',327,533);
INSERT INTO "communes" VALUES('87','Javerdat','24',644,523,25.52,'-1502','51060',228,336);
INSERT INTO "communes" VALUES('87','Lavignac','05',149,133,6.04,'-1352','50802',256,345);
INSERT INTO "communes" VALUES('87','Saint-Bazile','20',142,131,8.58,'-1677','50814',246,333);
INSERT INTO "communes" VALUES('87','Chalus','05',1628,1761,27.98,'-1507','50728',310,444);
INSERT INTO "communes" VALUES('87','Saint-Auvent','25',939,836,33.46,'-1561','50895',194,348);
INSERT INTO "communes" VALUES('87','Saint-Amand-Magnazeix','07',547,443,30.71,'-1091','51305',267,389);
INSERT INTO "communes" VALUES('87','Rochechouart','22',3796,3665,53.88,'-1684','50914',159,313);
INSERT INTO "communes" VALUES('87','Balledent','07',211,205,12.28,'-1253','51234',195,350);
INSERT INTO "communes" VALUES('87','Saint-Germain-les-Belles','23',1157,1112,37.28,'-935','50683',315,489);
INSERT INTO "communes" VALUES('87','Saint-Yrieix-sous-Aixe','01',408,313,8.73,'-1399','50954',180,365);
INSERT INTO "communes" VALUES('87','<NAME>','36',2049,1704,29.51,'-1164','50835',220,423);
INSERT INTO "communes" VALUES('87','Rilhac-Rancon','02',4227,3648,17.42,'-1131','50997',254,377);
INSERT INTO "communes" VALUES('87','Coussac-Bonneval','29',1338,1378,66.73,'-1125','50568',280,454);
INSERT INTO "communes" VALUES('87','Champsac','20',614,550,23.94,'-1533','50781',267,399);
INSERT INTO "communes" VALUES('87','Meuzac','23',739,691,43.4,'-995','50615',324,495);
INSERT INTO "communes" VALUES('87','Bussière-Galant','05',1395,1387,53.86,'-1444','50697',338,551);
INSERT INTO "communes" VALUES('87','Surdoux','06',42,44,3.88,'-762','50673',460,689);
INSERT INTO "communes" VALUES('87','Saint-Priest-Taurion','02',2784,2611,27,'-1041','50985',223,428);
INSERT INTO "communes" VALUES('87','Nedde','09',522,560,52.73,'-561','50799',431,754);
INSERT INTO "communes" VALUES('87','Saint-Jean-Ligoure','21',418,418,30.3,'-1138','50766',226,395);
INSERT INTO "communes" VALUES('87','Rempnat','09',151,159,20.91,'-497','50763',502,777);
INSERT INTO "communes" VALUES('87','Isle','31',7534,7689,20.18,'-1233','50894',208,346);
INSERT INTO "communes" VALUES('87','Saint-Barbant','16',363,370,42.47,'-1652','51302',144,247);
INSERT INTO "communes" VALUES('87','Videix','22',225,244,16.63,'-1779','50879',219,307);
INSERT INTO "communes" VALUES('87','Moissannes','26',361,299,24.64,'-857','50972',314,560);
INSERT INTO "communes" VALUES('87','Beynac','01',626,478,12.57,'-1298','50852',207,356);
INSERT INTO "communes" VALUES('87','Saint-Vitte-sur-Briance','23',347,295,20.66,'-878','50695',352,497);
INSERT INTO "communes" VALUES('87','Neuvic-Entier','06',939,1025,39.34,'-806','50802',290,600);
INSERT INTO "communes" VALUES('87','Saint-Junien','98',11455,10657,56.82,'-1595','50986',157,317);
INSERT INTO "communes" VALUES('87','<NAME>','08',1757,1963,23.77,'-1395','51350',177,271);
INSERT INTO "communes" VALUES('87','Grands-Chézeaux','28',254,256,13.51,'-1048','51503',256,341);
INSERT INTO "communes" VALUES('87','Saint-Hilaire-la-Treille','15',409,395,29.14,'-1131','51390',256,348);
INSERT INTO "communes" VALUES('87','Bujaleuf','09',874,926,41.17,'-785','50885',290,536);
INSERT INTO "communes" VALUES('87','Janailhac','18',477,387,18.73,'-1217','50708',296,420);
INSERT INTO "communes" VALUES('87','Pageas','05',603,593,27.76,'-1485','50753',288,520);
INSERT INTO "communes" VALUES('87','Veyrac','19',1992,1538,33.7,'-1367','50996',220,391);
INSERT INTO "communes" VALUES('87','Feytiat','37',5981,5301,24.74,'-1116','50900',254,393);
INSERT INTO "communes" VALUES('87','Saillat-sur-Vienne','38',807,905,6.29,'-1689','50969',153,254);
INSERT INTO "communes" VALUES('87','<NAME>','26',815,738,19.35,'-966','50873',335,484);
INSERT INTO "communes" VALUES('87','Glanges','23',527,425,22.85,'-981','50745',290,456);
INSERT INTO "communes" VALUES('87','Bonnac-la-Côte','02',1566,1165,26.06,'-1169','51046',324,560);
INSERT INTO "communes" VALUES('87','Saint-Bonnet-Briance','21',561,486,30.06,'-956','50786',310,459);
INSERT INTO "communes" VALUES('87','Champagnac-la-Rivière','20',560,557,24.46,'-1582','50789',278,473);
INSERT INTO "communes" VALUES('87','Linards','06',1094,1058,36.3,'-894','50780',332,532);
INSERT INTO "communes" VALUES('87','<NAME>','17',198,191,6.55,'-1260','51151',270,431);
INSERT INTO "communes" VALUES('87','Magnac-Bourg','23',1086,796,15.11,'-1006','50686',374,477);
INSERT INTO "communes" VALUES('87','Eyjeaux','21',1193,885,24.23,'-1049','50863',260,453);
INSERT INTO "communes" VALUES('87','Fromental','04',518,451,22.65,'-1045','51288',279,430);
INSERT INTO "communes" VALUES('87','Châteauponsac','07',2160,2252,68.79,'-1178','51260',196,471);
INSERT INTO "communes" VALUES('87','Mézières-sur-Issoire','16',860,873,44.16,'-1584','51231',182,271);
INSERT INTO "communes" VALUES('87','Limoges','99',139150,133924,78.03,'-1194','50927',209,431);
INSERT INTO "communes" VALUES('87','Saint-Gence','19',2019,1488,21.77,'-1332','51024',256,432);
INSERT INTO "communes" VALUES('87','Saint-Cyr','25',722,616,21.3,'-1531','50889',230,396);
INSERT INTO "communes" VALUES('87','Saint-Yrieix-la-Perche','29',6910,7251,100.98,'-1259','50572',283,498);
INSERT INTO "communes" VALUES('87','Oradour-sur-Vayres','20',1518,1635,39.09,'-1633','50814',246,370);
INSERT INTO "communes" VALUES('87','Droux','15',444,425,23.98,'-1315','51288',181,316);
INSERT INTO "communes" VALUES('87','Mailhac-sur-Benaize','28',310,313,21.2,'-1119','51469',224,292);
INSERT INTO "communes" VALUES('87','Maisonnais-sur-Tardoire','27',442,453,31.89,'-1830','50791',165,306);
INSERT INTO "communes" VALUES('87','Folles','04',524,508,31.18,'-973','51238',277,438);
INSERT INTO "communes" VALUES('87','Flavignac','05',1040,955,30.79,'-1383','50783',276,410);
INSERT INTO "communes" VALUES('87','Boisseuil','21',2688,1969,18.92,'-1117','50856',223,403);
INSERT INTO "communes" VALUES('87','La Chapelle-Montbrandeix','27',249,265,19.83,'-1653','50718',319,482);
INSERT INTO "communes" VALUES('87','Blanzac','03',485,414,23.5,'-1359','51260',179,283);
INSERT INTO "communes" VALUES('87','Saint-Genest-sur-Roselle','21',474,385,19.22,'-1012','50781',270,421);
INSERT INTO "communes" VALUES('87','Saint-Sornin-la-Marche','08',270,239,24.39,'-1497','51314',147,277);
INSERT INTO "communes" VALUES('87','Pierre-Buffière','21',1150,1107,5.75,'-1086','50772',240,374);
INSERT INTO "communes" VALUES('87','Dinsac','08',258,282,19.43,'-1355','51368',179,272);
INSERT INTO "communes" VALUES('87','Rilhac-Lastours','18',353,314,16.32,'-1351','50721',315,557);
INSERT INTO "communes" VALUES('87','Oradour-Saint-Genest','08',387,392,37.9,'-1446','51376',160,249);
INSERT INTO "communes" VALUES('87','Saint-Sulpice-les-Feuilles','28',1213,1274,35.63,'-1076','51466',239,364);
INSERT INTO "communes" VALUES('87','Aureil','37',927,777,10.17,'-1049','50895',330,481);
INSERT INTO "communes" VALUES('87','Vicq-sur-Breuilh','23',1303,1089,50.89,'-1061','50718',272,437);
INSERT INTO "communes" VALUES('87','Saint-Mathieu','27',1160,1233,40.39,'-1753','50785',225,435);
INSERT INTO "communes" VALUES('87','Bussière-Poitevine','16',928,960,41.71,'-1591','51373',122,242);
INSERT INTO "communes" VALUES('87','Beaumont-du-Lac','09',160,132,23.91,'-557','50857',496,799);
INSERT INTO "communes" VALUES('87','Condat-sur-Vienne','36',4692,4248,15.47,'-1228','50881',210,351);
INSERT INTO "communes" VALUES('87','Jouac','28',200,209,20.31,'-1195','51505',170,271);
INSERT INTO "communes" VALUES('87','Saint-Priest-sous-Aixe','01',1591,1473,23.15,'-1374','50908',180,383);
INSERT INTO "communes" VALUES('87','Gorre','25',395,376,16.17,'-1504','50823',255,382);
INSERT INTO "communes" VALUES('87','Saint-Paul','21',1251,1022,37.39,'-1005','50834',276,460);
INSERT INTO "communes" VALUES('87','Saint-Martin-le-Mault','28',114,127,12.5,'-1242','51515',155,238);
INSERT INTO "communes" VALUES('87','Bussière-Boffy','16',357,332,27.44,'-1647','51167',170,344);
INSERT INTO "communes" VALUES('87','Glandon','29',803,771,27.47,'-1233','50531',262,422);
INSERT INTO "communes" VALUES('87','Laurière','10',573,578,20.77,'-957','51196',307,620);
INSERT INTO "communes" VALUES('87','Cieux','17',962,898,41.06,'-1435','51102',258,410);
INSERT INTO "communes" VALUES('87','Magnac-Laval','15',1810,1978,72.22,'-1300','51350',189,324);
INSERT INTO "communes" VALUES('87','<NAME>','08',154,163,10.19,'-1378','51383',177,281);
INSERT INTO "communes" VALUES('87','Saint-Hilaire-les-Places','18',878,780,23.06,'-1308','50717',320,492);
INSERT INTO "communes" VALUES('87','Razès','04',1108,997,24.14,'-1109','51147',360,576);
INSERT INTO "communes" VALUES('87','Saint-Jouvent','19',1633,1388,24.96,'-1258','51064',305,437);
INSERT INTO "communes" VALUES('87','Saint-Maurice-les-Brousses','18',965,545,10.87,'-1223','50777',319,413);
INSERT INTO "communes" VALUES('87','Blond','03',747,677,64.69,'-1465','51161',194,514);
INSERT INTO "communes" VALUES('87','Breuilaufa','17',151,117,4.6,'-1369','51158',236,315);
INSERT INTO "communes" VALUES('87','<NAME>','18',846,831,28.11,'-1247','50685',315,411);
INSERT INTO "communes" VALUES('87','Verneuil-sur-Vienne','01',4347,3187,34.52,'-1344','50943',180,402);
INSERT INTO "communes" VALUES('87','Bersac-sur-Rivalier','10',622,630,32.54,'-1011','51201',285,612);
INSERT INTO "communes" VALUES('87','Thiat','08',170,213,11.35,'-1514','51407',123,226);
INSERT INTO "communes" VALUES('87','Berneuil','17',420,431,26.09,'-1367','51188',192,321);
INSERT INTO "communes" VALUES('87','Verneuil-Moustiers','08',147,173,19.39,'-1335','51489',157,226);
INSERT INTO "communes" VALUES('87','Jourgnac','01',1030,756,14.39,'-1247','50799',209,404);
INSERT INTO "communes" VALUES('87','Peyrat-de-Bellac','03',1124,1112,31.2,'-1444','51269',162,272);
INSERT INTO "communes" VALUES('87','Saint-Priest-Ligoure','18',658,567,41.13,'-1161','50724',269,472);
INSERT INTO "communes" VALUES('87','<NAME>','23',605,619,31.34,'-880','50646',399,539);
INSERT INTO "communes" VALUES('87','Dournazac','27',665,735,35.97,'-1578','50694',288,498);
INSERT INTO "communes" VALUES('87','<NAME>','29',305,246,12.42,'-1340','50610',237,362);
INSERT INTO "communes" VALUES('87','Eymoutiers','09',2041,2115,70.22,'-660','50821',316,758);
INSERT INTO "communes" VALUES('87','Rancon','07',528,518,33.31,'-1282','51257',185,337);
INSERT INTO "communes" VALUES('87','Thouron','17',510,427,13.73,'-1242','51110',287,430);
INSERT INTO "communes" VALUES('87','Royères','26',826,796,17.42,'-1007','50943',235,484);
INSERT INTO "communes" VALUES('87','Nexon','18',2474,2325,40.79,'-1277','50754',295,446);
INSERT INTO "communes" VALUES('87','Dompierre-les-Églises','15',373,370,30.62,'-1204','51362',225,348);
INSERT INTO "communes" VALUES('87','Marval','27',584,553,38.5,'-1709','50697',245,476);
INSERT INTO "communes" VALUES('87','<NAME>','10',802,773,15.59,'-965','51110',346,688);
INSERT INTO "communes" VALUES('87','Chamboret','17',772,716,21.59,'-1334','51117',246,373);
INSERT INTO "communes" VALUES('87','Nouic','16',526,488,35.95,'-1574','51178',185,360);
INSERT INTO "communes" VALUES('87','Saint-Martin-Terressus','26',552,476,23.53,'-993','51021',242,445);
INSERT INTO "communes" VALUES('87','Sainte-Marie-de-Vaux','25',191,134,5.55,'-1432','50961',177,344);
INSERT INTO "communes" VALUES('87','Saint-Victurnien','24',1686,1458,21.04,'-1470','50975',172,323);
INSERT INTO "communes" VALUES('87','Saint-Sylvestre','02',898,715,30.91,'-1066','51107',379,651);
INSERT INTO "communes" VALUES('87','Vayres','22',827,873,38.13,'-1696','50844',199,333);
INSERT INTO "communes" VALUES('87','Saint-Martin-le-Vieux','01',870,759,17.49,'-1354','50828',220,331);
INSERT INTO "communes" VALUES('87','Saint-Martin-de-Jussac','24',518,442,14.4,'-1551','50975',167,297);
INSERT INTO "communes" VALUES('87','Séreilhac','01',1836,1595,38.63,'-1394','50855',218,420);
INSERT INTO "communes" VALUES('87','Compreignac','17',1730,1435,47.62,'-1180','51102',301,587);
INSERT INTO "communes" VALUES('87','Domps','09',122,144,13.54,'-698','50734',413,666);
INSERT INTO "communes" VALUES('87','Jabreilles-les-Bordes','10',270,229,19.05,'-913','51131',354,651);
INSERT INTO "communes" VALUES('87','Châteauneuf-la-Forêt','06',1640,1615,29.25,'-812','50792',336,644);
INSERT INTO "communes" VALUES('87','Lussac-les-Églises','28',490,588,41.02,'-1291','51495',145,255);
INSERT INTO "communes" VALUES('87','Saint-Brice-sur-Vienne','24',1565,1394,20.85,'-1537','50977',165,298);
INSERT INTO "communes" VALUES('87','Montrol-Sénard','16',246,226,27.17,'-1531','51145',268,492);
INSERT INTO "communes" VALUES('87','Saint-Laurent-sur-Gorre','25',1393,1418,39.92,'-1532','50856',236,410);
INSERT INTO "communes" VALUES('87','Saint-Junien-les-Combes','03',186,215,20.59,'-1348','51207',223,307);
INSERT INTO "communes" VALUES('87','Cars','05',598,583,16.72,'-1404','50756',319,544);
INSERT INTO "communes" VALUES('87','Le Châtenet-en-Dognon','26',420,419,20.39,'-923','51006',271,457);
INSERT INTO "communes" VALUES('87','Saint-Sulpice-Laurière','10',866,881,14.31,'-962','51170',332,623);
INSERT INTO "communes" VALUES('87','Saint-Laurent-les-Églises','02',851,692,27.37,'-932','51055',249,632);
INSERT INTO "communes" VALUES('87','La Roche-l''Abeille','18',607,561,36.56,'-1217','50663',323,505);
INSERT INTO "communes" VALUES('87','Chaillac-sur-Vienne','38',1133,951,15.14,'-1627','50977',155,292);
INSERT INTO "communes" VALUES('87','Sauviat-sur-Vige','26',935,1044,30.85,'-810','51007',373,586);
INSERT INTO "communes" VALUES('87','Nantiat','17',1595,1621,25.42,'-1292','51121',258,422);
INSERT INTO "communes" VALUES('87','Cussac','20',1203,1123,31.7,'-1650','50784',264,476);
INSERT INTO "communes" VALUES('87','Bessines-sur-Gartempe','04',2818,2743,55.41,'-1076','51232',250,533);
INSERT INTO "communes" VALUES('87','Saint-Gilles-les-Forêts','06',54,55,8.28,'-745','50699',420,730);
INSERT INTO "communes" VALUES('87','Saint-Léger-Magnazeix','15',515,533,55.71,'-1211','51431',199,322);
INSERT INTO "communes" VALUES('87','Cognac-la-Forêt','25',1026,890,31.56,'-1474','50927',171,418);
INSERT INTO "communes" VALUES('87','Cheissoux','09',188,209,10.21,'-765','50926',334,548);
INSERT INTO "communes" VALUES('87','Bosmie-l''Aiguille','01',2335,2193,8.01,'-1245','50853',210,375);
INSERT INTO "communes" VALUES('87','Aixe-sur-Vienne','01',5472,5466,22.85,'-1334','50885',190,343);
INSERT INTO "communes" VALUES('87','La Croisille-sur-Briance','06',708,699,43.61,'-838','50701',387,709);
INSERT INTO "communes" VALUES('87','<NAME>','08',184,186,12.74,'-1496','51290',157,275);
INSERT INTO "communes" VALUES('87','Ambazac','02',5542,4831,57.83,'-1040','51064',243,666);
INSERT INTO "communes" VALUES('87','Saint-Léonard-de-Noblat','26',4640,4766,55.59,'-940','50931',250,444);
INSERT INTO "communes" VALUES('87','Masléon','06',349,318,8.72,'-854','50849',290,418);
INSERT INTO "communes" VALUES('87','Mortemart','16',116,128,3.6,'-1533','51158',254,355);
INSERT INTO "communes" VALUES('87','Chaptelat','19',1817,1463,17.92,'-1197','51010',324,481);
INSERT INTO "communes" VALUES('87','Chéronnac','22',325,307,18.9,'-1747','50843',217,323);
INSERT INTO "communes" VALUES('87','Château-Chervix','23',785,710,51.05,'-1092','50675',313,534);
INSERT INTO "communes" VALUES('87','Cromac','28',264,301,24.15,'-1152','51491',181,277);
INSERT INTO "communes" VALUES('87','Saint-Georges-les-Landes','28',249,255,16.21,'-1111','51491',218,302);
INSERT INTO "communes" VALUES('87','Eybouleuf','26',408,281,10.83,'-949','50884',270,433);
INSERT INTO "communes" VALUES('87','Couzeix','33',8259,6632,30.69,'-1220','50974',260,440);
INSERT INTO "communes" VALUES('87','Arnac-la-Poste','28',1021,978,46.62,'-1070','51406',249,384);
INSERT INTO "communes" VALUES('87','Saint-Léger-la-Montagne','10',306,342,32.62,'-1019','51144',418,701);
INSERT INTO "communes" VALUES('87','Darnac','08',376,403,25.93,'-1530','51359',125,267);
INSERT INTO "communes" VALUES('87','Saint-Symphorien-sur-Couze','17',227,238,19.99,'-1224','51176',305,443);
INSERT INTO "communes" VALUES('87','Solignac','36',1506,1367,16.54,'-1179','50839',212,392);
INSERT INTO "communes" VALUES('87','Saint-Méard','06',382,330,24.51,'-876','50739',330,560);
INSERT INTO "communes" VALUES('87','Pensol','27',184,178,15.04,'-1678','50678',288,382);
INSERT INTO "communes" VALUES('87','Burgnac','01',781,544,11.5,'-1317','50807',229,352);
INSERT INTO "communes" VALUES('87','Nieul','19',1608,1350,16.97,'-1295','51027',282,432);
INSERT INTO "communes" VALUES('87','Saint-Denis-des-Murs','26',525,449,23.81,'-880','50873',270,479);
INSERT INTO "communes" VALUES('87','Azat-le-Ris','08',263,294,56.22,'-1419','51466',170,282);
INSERT INTO "communes" VALUES('87','Saint-Amand-le-Petit','09',113,126,15.31,'-650','50861',446,718);
INSERT INTO "communes" VALUES('87','Billanges','02',307,288,22.61,'-892','51071',280,451);
INSERT INTO "communes" VALUES('87','Sussac','06',352,368,25.42,'-766','50738',376,709);
INSERT INTO "communes" VALUES('87','Augne','09',109,123,17.59,'-702','50871',314,614);
INSERT INTO "communes" VALUES('87','Tersannes','08',157,161,24.64,'-1349','51442',196,282);
INSERT INTO "communes" VALUES('87','Peyrilhac','19',1200,1067,38.63,'-1334','51055',257,383);
INSERT INTO "communes" VALUES('87','Panazol','37',10392,9727,20.05,'-1140','50932',215,351);
INSERT INTO "communes" VALUES('87','Roussac','17',475,406,24.18,'-1261','51198',265,413);
INSERT INTO "communes" VALUES('87','Bellac','03',4317,4576,24.42,'-1430','51247',175,301);
INSERT INTO "communes" VALUES('87','Saint-Just-le-Martel','37',2487,1958,31.7,'-1054','50958',224,426);
INSERT INTO "communes" VALUES('87','Vaulry','17',406,392,16.03,'-1390','51136',233,502);
INSERT INTO "communes" VALUES('87','Sainte-Anne-Saint-Priest','09',143,141,16.54,'-726','50787',372,638);
INSERT INTO "communes" VALUES('87','Saint-Bonnet-de-Bellac','03',535,517,34.51,'-1536','51298',148,271);
INSERT INTO "communes" VALUES('87','Le Palais-sur-Vienne','35',5986,5722,10.33,'-1126','50960',220,360);
INSERT INTO "communes" VALUES('87','Peyrat-le-Château','09',983,1080,52.96,'-627','50903',390,776);
INSERT INTO "communes" VALUES('87','Saint-Hilaire-Bonneval','21',894,691,28.49,'-1069','50799',229,383);
INSERT INTO "communes" VALUES('87','Oradour-sur-Glane','24',2246,2024,38.16,'-1450','51035',227,312);
INSERT INTO "communes" VALUES('87','Roziers-Saint-Georges','06',187,153,11.66,'-877','50834',295,454);
INSERT INTO "communes" VALUES('87','Villefavard','15',155,181,9.22,'-1254','51298',215,335);
INSERT INTO "communes" VALUES('87','Saint-Julien-le-Petit','09',299,278,29.13,'-701','50915',339,626);
INSERT INTO "communes" VALUES('87','Gajoubert','16',172,171,14.11,'-1673','51237',180,247);
INSERT INTO "communes" VALUES('87','Champnétery','26',562,489,30.6,'-850','50924',289,531);
INSERT INTO "communes" VALUES('87','Meilhac','18',512,308,14.84,'-1311','50793',259,366);
INSERT INTO "communes" VALUES('88','La Croix-aux-Mines','13',547,578,16.8,'5236','53578',460,1130);
INSERT INTO "communes" VALUES('88','Le Syndicat','23',1907,1791,18.29,'4831','53360',392,822);
INSERT INTO "communes" VALUES('88','Harmonville','09',226,185,15.13,'3914','53864',295,398);
INSERT INTO "communes" VALUES('88','Hennezel','10',424,434,32.13,'4201','53394',272,468);
INSERT INTO "communes" VALUES('88','Senonges','10',142,166,5.84,'4139','53496',292,394);
INSERT INTO "communes" VALUES('88','Malaincourt','04',91,93,6.05,'3807','53578',318,491);
INSERT INTO "communes" VALUES('88','Dinozé','12',544,462,2.89,'4600','53489',328,477);
INSERT INTO "communes" VALUES('88','Haréville','28',535,475,6.56,'4071','53562',339,412);
INSERT INTO "communes" VALUES('88','Morelmaison','07',197,177,5.48,'3976','53689',307,338);
INSERT INTO "communes" VALUES('88','Villoncourt','06',113,83,6.4,'4638','53625',314,362);
INSERT INTO "communes" VALUES('88','<NAME>-et-la-Rouillie','04',126,125,9.36,'3835','53499',333,446);
INSERT INTO "communes" VALUES('88','Frénois','10',44,55,4.94,'4206','53543',290,385);
INSERT INTO "communes" VALUES('88','Éloyes','23',3272,3255,12.51,'4748','53440',361,781);
INSERT INTO "communes" VALUES('88','Pair-et-Grandrupt','24',517,439,4.58,'5202','53646',354,474);
INSERT INTO "communes" VALUES('88','Forges','30',1996,1806,7.14,'4507','53530',350,461);
INSERT INTO "communes" VALUES('88','Mont-lès-Neufchâteau','18',281,266,11.51,'3672','53729',282,451);
INSERT INTO "communes" VALUES('88','<NAME>','01',141,118,7.34,'4319','53405',349,461);
INSERT INTO "communes" VALUES('88','Brantigny','05',192,149,3.01,'4378','53714',279,402);
INSERT INTO "communes" VALUES('88','Morville','04',54,60,3.41,'3848','53596',339,416);
INSERT INTO "communes" VALUES('88','<NAME>','13',90,98,19.64,'5208','53442',704,1304);
INSERT INTO "communes" VALUES('88','Gendreville','04',116,109,8.08,'3756','53594',312,480);
INSERT INTO "communes" VALUES('88','Crainvilliers','04',182,211,10.45,'3884','53496',343,480);
INSERT INTO "communes" VALUES('88','Madonne-et-Lamerey','11',397,384,7.02,'4334','53580',294,433);
INSERT INTO "communes" VALUES('88','Jeuxey','12',675,688,8.49,'4612','53558',315,420);
INSERT INTO "communes" VALUES('88','Rochesson','25',702,661,21.49,'4944','53358',497,1060);
INSERT INTO "communes" VALUES('88','Entre-deux-Eaux','13',501,452,8.47,'5172','53591',372,732);
INSERT INTO "communes" VALUES('88','Bruyères','03',3248,3365,16.02,'4869','53565',390,704);
INSERT INTO "communes" VALUES('88','Uzemain','29',1133,1044,27.3,'4454','53429',305,467);
INSERT INTO "communes" VALUES('88','Grandrupt-de-Bains','01',86,90,3.6,'4277','53406',400,467);
INSERT INTO "communes" VALUES('88','Domjulien','28',194,193,11.94,'4067','53614',322,455);
INSERT INTO "communes" VALUES('88','<NAME>-aux-Bois','29',668,710,30.65,'4440','53374',292,582);
INSERT INTO "communes" VALUES('88','Renauvoid','30',120,103,9.36,'4496','53493',369,478);
INSERT INTO "communes" VALUES('88','Uriménil','29',1362,1397,15.62,'4516','53446',338,465);
INSERT INTO "communes" VALUES('88','Rehaupal','08',195,188,4.72,'4884','53466',474,763);
INSERT INTO "communes" VALUES('88','Thons','15',122,142,10.09,'3943','53322',234,402);
INSERT INTO "communes" VALUES('88','Vaudeville','12',167,145,3.22,'4673','53589',328,362);
INSERT INTO "communes" VALUES('88','Granges-sur-Vologne','08',2301,2466,29.64,'4947','53495',473,922);
INSERT INTO "communes" VALUES('88','Rozerotte','28',197,185,6.46,'4161','53602',287,445);
INSERT INTO "communes" VALUES('88','Jubainville','09',84,68,4.33,'3785','53845',280,420);
INSERT INTO "communes" VALUES('88','Ruppes','09',121,131,7.44,'3815','53857',273,313);
INSERT INTO "communes" VALUES('88','<NAME>','26',52,56,4.01,'5211','53788',397,730);
INSERT INTO "communes" VALUES('88','Légéville-et-Bonfays','11',54,59,5.21,'4238','53540',287,380);
INSERT INTO "communes" VALUES('88','Deinvillers','21',64,54,5.6,'4690','53792',253,305);
INSERT INTO "communes" VALUES('88','<NAME>','12',633,559,9.01,'4706','53512',365,489);
INSERT INTO "communes" VALUES('88','Pouxeux','23',1980,1857,14.36,'4700','53453',347,583);
INSERT INTO "communes" VALUES('88','Fiménil','03',263,195,5.13,'4864','53538',419,665);
INSERT INTO "communes" VALUES('88','Mandres-sur-Vair','04',427,329,11.93,'3951','53582',319,421);
INSERT INTO "communes" VALUES('88','Allarmont','22',234,271,13.21,'5196','53869',332,813);
INSERT INTO "communes" VALUES('88','Rouges-Eaux','02',81,72,5.9,'4961','53625',377,620);
INSERT INTO "communes" VALUES('88','Hagnéville-et-Roncourt','04',82,89,8.55,'3847','53615',340,487);
INSERT INTO "communes" VALUES('88','Pierrepont-sur-l''Arentèle','03',155,106,6.23,'4791','53626',322,380);
INSERT INTO "communes" VALUES('88','Domrémy-la-Pucelle','09',150,167,8.99,'3709','53825',268,407);
INSERT INTO "communes" VALUES('88','Aumontzey','08',506,442,3.37,'4932','53519',454,732);
INSERT INTO "communes" VALUES('88','Oëlleville','16',286,278,10.08,'4093','53705',308,391);
INSERT INTO "communes" VALUES('88','Colroy-la-Grande','20',551,609,11.86,'5306','53685',408,790);
INSERT INTO "communes" VALUES('88','Rollainville','18',322,326,8.13,'3780','53735',300,410);
INSERT INTO "communes" VALUES('88','Vomécourt-sur-Madon','05',68,73,3.53,'4255','53735',252,318);
INSERT INTO "communes" VALUES('88','Pont-sur-Madon','05',159,130,3.42,'4241','53744',250,357);
INSERT INTO "communes" VALUES('88','Châtenois','07',1774,1905,17.57,'3884','53670',303,484);
INSERT INTO "communes" VALUES('88','Tendon','23',517,446,21.85,'4825','53469',409,807);
INSERT INTO "communes" VALUES('88','Bouzemont','11',57,44,4.97,'4332','53610',297,413);
INSERT INTO "communes" VALUES('88','La Neuveville-devant-Lépanges','03',459,355,8.77,'4807','53513',383,649);
INSERT INTO "communes" VALUES('88','Autrey','21',306,297,17.42,'4836','53663',306,535);
INSERT INTO "communes" VALUES('88','Saint-Nabord','23',4090,3852,38.5,'4715','53388',367,632);
INSERT INTO "communes" VALUES('88','Xamontarupt','03',152,137,5,'4796','53481',393,671);
INSERT INTO "communes" VALUES('88','Vroville','16',137,131,6.83,'4262','53652',272,392);
INSERT INTO "communes" VALUES('88','Bleurville','17',349,362,20.25,'4029','53401',248,383);
INSERT INTO "communes" VALUES('88','Bocquegney','11',129,103,4.57,'4407','53578',332,411);
INSERT INTO "communes" VALUES('88','Begnécourt','11',172,141,4.57,'4247','53562',283,366);
INSERT INTO "communes" VALUES('88','Saint-Amé','23',2156,2006,8.07,'4814','53361',385,773);
INSERT INTO "communes" VALUES('88','Bulgnéville','04',1436,1283,13.33,'3887','53564',328,439);
INSERT INTO "communes" VALUES('88','Thiéfosse','25',576,602,7.62,'4881','53302',419,890);
INSERT INTO "communes" VALUES('88','Darney','10',1221,1332,7.92,'4121','53428',260,351);
INSERT INTO "communes" VALUES('88','Pont-lès-Bonfays','10',88,89,4.47,'4218','53521',292,377);
INSERT INTO "communes" VALUES('88','Docelles','03',970,1010,8.74,'4757','53495',373,630);
INSERT INTO "communes" VALUES('88','Hymont','16',480,553,4.17,'4228','53629',270,353);
INSERT INTO "communes" VALUES('88','Norroy','04',236,276,7.22,'3981','53573',323,454);
INSERT INTO "communes" VALUES('88','Tignécourt','15',115,111,18.97,'3952','53382',242,373);
INSERT INTO "communes" VALUES('88','Saint-Michel-sur-Meurthe','31',2023,1957,15.54,'5056','53686',301,658);
INSERT INTO "communes" VALUES('88','Saint-Julien','15',133,146,14.11,'3955','53355',236,333);
INSERT INTO "communes" VALUES('88','Brû','21',585,550,8.95,'4829','53720',295,391);
INSERT INTO "communes" VALUES('88','Trémonzey','01',223,237,9.07,'4333','53304',269,403);
INSERT INTO "communes" VALUES('88','<NAME>','25',4605,4927,57.94,'5043','53340',580,1363);
INSERT INTO "communes" VALUES('88','Raon-aux-Bois','23',1212,1014,24.05,'4649','53396',385,591);
INSERT INTO "communes" VALUES('88','Trampot','18',104,125,13.14,'3445','53735',364,441);
INSERT INTO "communes" VALUES('88','Vagney','25',4011,3791,24.91,'4866','53343',396,860);
INSERT INTO "communes" VALUES('88','Vincey','05',2264,2154,12.81,'4436','53708',272,382);
INSERT INTO "communes" VALUES('88','Saint-Baslemont','10',86,79,12.71,'4063','53502',293,457);
INSERT INTO "communes" VALUES('88','Moriville','06',433,401,25.05,'4550','53721',300,383);
INSERT INTO "communes" VALUES('88','Voivres','01',347,301,12.81,'4398','53368',280,422);
INSERT INTO "communes" VALUES('88','<NAME>','20',112,116,2.4,'5261','53668',386,570);
INSERT INTO "communes" VALUES('88','Rocourt','15',27,27,1.86,'3781','53449',336,433);
INSERT INTO "communes" VALUES('88','Godoncourt','17',131,152,11.38,'3983','53332',234,362);
INSERT INTO "communes" VALUES('88','Ménil-sur-Belvitte','21',310,284,8.6,'4839','53767',272,384);
INSERT INTO "communes" VALUES('88','Bellefontaine','19',1012,856,39.11,'4562','53348',440,614);
INSERT INTO "communes" VALUES('88','Socourt','05',251,214,3.85,'4347','53774',259,389);
INSERT INTO "communes" VALUES('88','Dombrot-sur-Vair','04',253,253,9.04,'3946','53628',310,399);
INSERT INTO "communes" VALUES('88','Évaux-et-Ménil','05',351,253,5,'4402','53694',293,437);
INSERT INTO "communes" VALUES('88','Autreville','09',162,124,11.09,'3902','53871',287,364);
INSERT INTO "communes" VALUES('88','<NAME>','19',4032,4448,73.33,'4607','53250',328,761);
INSERT INTO "communes" VALUES('88','Mattaincourt','16',850,911,5.95,'4218','53643',267,375);
INSERT INTO "communes" VALUES('88','Robécourt','15',117,118,8.78,'3734','53490',324,406);
INSERT INTO "communes" VALUES('88','Saint-Paul','07',134,120,4.9,'3948','53699',303,365);
INSERT INTO "communes" VALUES('88','Seraumont','09',49,40,10.29,'3624','53815',305,438);
INSERT INTO "communes" VALUES('88','Bertrimoutier','24',358,336,3.72,'5242','53635',373,596);
INSERT INTO "communes" VALUES('88','Rehaincourt','06',338,309,15.22,'4592','53736',314,390);
INSERT INTO "communes" VALUES('88','Saint-Remimont','04',218,230,4.6,'3958','53605',318,406);
INSERT INTO "communes" VALUES('88','Vittel','28',5452,6171,24.13,'4014','53558',322,457);
INSERT INTO "communes" VALUES('88','Xaronval','05',91,67,5.25,'4279','53750',250,329);
INSERT INTO "communes" VALUES('88','Ménil-de-Senones','26',149,126,7.22,'5176','53752',380,690);
INSERT INTO "communes" VALUES('88','Racécourt','11',145,151,7.23,'4280','53620',275,366);
INSERT INTO "communes" VALUES('88','Autigny-la-Tour','09',186,161,15.86,'3803','53777',282,406);
INSERT INTO "communes" VALUES('88','Madegney','11',89,74,3.05,'4390','53654',309,423);
INSERT INTO "communes" VALUES('88','Chermisey','09',97,93,10.75,'3592','53797',350,446);
INSERT INTO "communes" VALUES('88','Doncières','21',148,123,7.63,'4777','53771',264,314);
INSERT INTO "communes" VALUES('88','Marainville-sur-Madon','05',83,85,4.88,'4258','53776',247,307);
INSERT INTO "communes" VALUES('88','Roville-aux-Chênes','21',418,293,8.59,'4741','53761',260,321);
INSERT INTO "communes" VALUES('88','Damas-aux-Bois','06',268,236,29.46,'4572','53776',279,366);
INSERT INTO "communes" VALUES('88','Harol','11',590,502,27.34,'4345','53502',311,428);
INSERT INTO "communes" VALUES('88','Celles-sur-Plaine','22',857,841,20.09,'5126','53840',300,831);
INSERT INTO "communes" VALUES('88','Dombrot-le-Sec','28',382,358,18.89,'3971','53495',357,485);
INSERT INTO "communes" VALUES('88','Coinches','24',350,331,5.69,'5206','53614',366,720);
INSERT INTO "communes" VALUES('88','Épinal','99',32842,35782,59.24,'4572','53526',315,492);
INSERT INTO "communes" VALUES('88','Villers','16',224,214,4.97,'4263','53669',280,386);
INSERT INTO "communes" VALUES('88','Remomeix','24',458,446,4.73,'5183','53632',352,480);
INSERT INTO "communes" VALUES('88','Raves','24',442,336,4.02,'5237','53626',367,550);
INSERT INTO "communes" VALUES('88','Golbey','30',8230,7925,9.49,'4556','53551',313,386);
INSERT INTO "communes" VALUES('88','Vaubexy','11',129,122,6.52,'4332','53644',286,397);
INSERT INTO "communes" VALUES('88','Cheniménil','03',1135,1232,9.28,'4742','53487',362,617);
INSERT INTO "communes" VALUES('88','Thaon-les-Vosges','06',7989,7796,11.7,'4537','53612',296,377);
INSERT INTO "communes" VALUES('88','Ferdrupt','27',763,855,14.6,'4858','53231',444,903);
INSERT INTO "communes" VALUES('88','Saulxures-sur-Moselotte','25',2748,3070,31.87,'4925','53277',430,1005);
INSERT INTO "communes" VALUES('88','Bainville-aux-Saules','11',126,139,5.61,'4223','53563',283,382);
INSERT INTO "communes" VALUES('88','Beaufremont','18',70,77,9.02,'3798','53619',348,492);
INSERT INTO "communes" VALUES('88','Mont-lès-Lamarche','15',101,93,7.1,'3857','53357',312,487);
INSERT INTO "communes" VALUES('88','Gorhey','11',165,158,6.31,'4386','53550',313,404);
INSERT INTO "communes" VALUES('88','Gemmelaincourt','28',161,138,7.42,'4035','53640',328,431);
INSERT INTO "communes" VALUES('88','Padoux','03',502,430,19.35,'4703','53645',296,366);
INSERT INTO "communes" VALUES('88','Sainte-Marguerite','24',2447,2261,5.55,'5155','53632',344,426);
INSERT INTO "communes" VALUES('88','Dommartin-aux-Bois','30',421,336,15.7,'4376','53510',327,427);
INSERT INTO "communes" VALUES('88','Gerbépal','08',555,504,19.18,'5095','53500',583,1083);
INSERT INTO "communes" VALUES('88','Ollainville','07',69,75,6.31,'3855','53630',323,438);
INSERT INTO "communes" VALUES('88','Archettes','12',1080,1025,13.93,'4665','53472',338,505);
INSERT INTO "communes" VALUES('88','Portieux','05',1334,1407,7.9,'4453','53715',275,363);
INSERT INTO "communes" VALUES('88','Harchéchamp','18',101,110,7.41,'3822','53762',290,421);
INSERT INTO "communes" VALUES('88','Remoncourt','28',596,603,14.52,'4128','53588',295,444);
INSERT INTO "communes" VALUES('88','Dombasle-devant-Darney','10',89,90,8.73,'4156','53474',282,416);
INSERT INTO "communes" VALUES('88','Velotte-et-Tatignécourt','11',164,150,5.36,'4265','53625',272,362);
INSERT INTO "communes" VALUES('88','Gugney-aux-Aulx','11',154,134,8.67,'4370','53670',295,421);
INSERT INTO "communes" VALUES('88','Dommartin-sur-Vraine','07',320,281,7.1,'3966','53707',305,491);
INSERT INTO "communes" VALUES('88','Bois-de-Champ','02',115,93,17.69,'4949','53617',375,633);
INSERT INTO "communes" VALUES('88','Vouxey','07',162,150,23.28,'3876','53724',297,453);
INSERT INTO "communes" VALUES('88','Houéville','18',42,47,3.21,'3858','53749',297,433);
INSERT INTO "communes" VALUES('88','Fresse-sur-Moselle','27',1839,2177,18.41,'4945','53195',494,1190);
INSERT INTO "communes" VALUES('88','Liézey','14',282,320,13.27,'4965','53438',584,923);
INSERT INTO "communes" VALUES('88','Raon-sur-Plaine','22',159,143,3.54,'5289','53902',405,744);
INSERT INTO "communes" VALUES('88','Lironcourt','15',71,65,4.84,'3953','53300',232,402);
INSERT INTO "communes" VALUES('88','Frenelle-la-Petite','16',51,50,3.49,'4142','53722',292,319);
INSERT INTO "communes" VALUES('88','Ameuvelle','17',59,87,5.56,'4010','53270',238,307);
INSERT INTO "communes" VALUES('88','Châtillon-sur-Saône','15',145,179,9.21,'3942','53276',229,398);
INSERT INTO "communes" VALUES('88','Jussarupt','08',288,268,6.57,'4907','53511',453,761);
INSERT INTO "communes" VALUES('88','Vrécourt','04',346,330,12.46,'3741','53527',317,385);
INSERT INTO "communes" VALUES('88','Vienville','08',126,106,3.38,'4993','53527',503,740);
INSERT INTO "communes" VALUES('88','Fremifontaine','02',469,347,9.56,'4831','53634',329,469);
INSERT INTO "communes" VALUES('88','Plainfaing','13',1835,1771,38.56,'5197','53525',518,1302);
INSERT INTO "communes" VALUES('88','Moyenmoutier','26',3284,3350,34.21,'5085','53755',285,642);
INSERT INTO "communes" VALUES('88','Ambacourt','16',290,277,6.76,'4227','53719',252,357);
INSERT INTO "communes" VALUES('88','Vieux-Moulin','26',322,290,3.89,'5180','53773',355,512);
INSERT INTO "communes" VALUES('88','Gerbamont','25',373,310,9.69,'4909','53339',409,1023);
INSERT INTO "communes" VALUES('88','Vaudoncourt','04',143,117,5.67,'3855','53577',320,368);
INSERT INTO "communes" VALUES('88','Ramonchamp','27',1989,1912,15.74,'4892','53213',454,903);
INSERT INTO "communes" VALUES('88','Champdray','08',158,184,9.49,'4907','53484',589,809);
INSERT INTO "communes" VALUES('88','Arrentès-de-Corcieux','08',166,186,17,'5031','53494',580,960);
INSERT INTO "communes" VALUES('88','Neuvillers-sur-Fave','24',337,254,5.12,'5223','53643',363,524);
INSERT INTO "communes" VALUES('88','Rainville','07',291,274,8.61,'3942','53731',302,481);
INSERT INTO "communes" VALUES('88','Ortoncourt','21',82,75,4.39,'4639','53741',297,391);
INSERT INTO "communes" VALUES('88','Coussey','09',718,706,16.02,'3718','53787',267,422);
INSERT INTO "communes" VALUES('88','Maroncourt','11',10,13,2.24,'4244','53610',276,338);
INSERT INTO "communes" VALUES('88','Isches','15',184,198,13.6,'3881','53352',265,483);
INSERT INTO "communes" VALUES('88','Laveline-devant-Bruyères','03',649,687,3.1,'4914','53538',440,706);
INSERT INTO "communes" VALUES('88','<NAME>','20',91,59,5.04,'5241','53690',440,870);
INSERT INTO "communes" VALUES('88','Martigny-les-Gerbonvaux','09',120,126,9.04,'3842','53829',288,395);
INSERT INTO "communes" VALUES('88','Fignévelle','17',59,60,4.4,'3973','53324',234,339);
INSERT INTO "communes" VALUES('88','Méménil','03',155,122,9.15,'4749','53578',343,582);
INSERT INTO "communes" VALUES('88','Ainvelle','15',163,148,9.03,'3880','53330',259,444);
INSERT INTO "communes" VALUES('88','Nayemont-les-Fosses','24',891,824,8.91,'5188','53663',345,890);
INSERT INTO "communes" VALUES('88','Aroffe','07',99,82,8.51,'3958','53779',347,460);
INSERT INTO "communes" VALUES('88','Marey','15',66,78,7.9,'3960','53446',285,432);
INSERT INTO "communes" VALUES('88','Bayecourt','06',286,236,6.92,'4613','53629',307,366);
INSERT INTO "communes" VALUES('88','Mazeley','06',261,256,10.39,'4447','53602',320,415);
INSERT INTO "communes" VALUES('88','Vallois','10',111,96,5.25,'4201','53509',296,393);
INSERT INTO "communes" VALUES('88','Jarménil','23',423,423,5.1,'4706','53460',352,647);
INSERT INTO "communes" VALUES('88','Xonrupt-Longemer','14',1569,1497,30.71,'5099','53423',642,1302);
INSERT INTO "communes" VALUES('88','Saint-Ouen-lès-Parey','04',490,539,21.09,'3808','53536',322,435);
INSERT INTO "communes" VALUES('88','Hurbache','26',305,282,9.93,'5109','53722',304,592);
INSERT INTO "communes" VALUES('88','Tranqueville-Graux','09',84,68,14.94,'3902','53818',313,403);
INSERT INTO "communes" VALUES('88','Saint-Jean-d''Ormont','26',148,182,5.29,'5168','53703',370,830);
INSERT INTO "communes" VALUES('88','Esley','10',172,189,11,'4134','53522',314,421);
INSERT INTO "communes" VALUES('88','Provenchères-sur-Fave','20',896,755,7.27,'5269','53675',393,651);
INSERT INTO "communes" VALUES('88','Maconcourt','07',91,63,4.9,'4004','53740',318,455);
INSERT INTO "communes" VALUES('88','Saint-Pierremont','21',158,162,5.51,'4711','53820',249,340);
INSERT INTO "communes" VALUES('88','Viménil','03',214,179,8.05,'4773','53585',349,563);
INSERT INTO "communes" VALUES('88','Soulosse-sous-Saint-Élophe','09',617,559,19.32,'3781','53788',272,445);
INSERT INTO "communes" VALUES('88','Removille','07',201,206,7.55,'3892','53735',297,458);
INSERT INTO "communes" VALUES('88','Lesseux','24',160,110,2.94,'5273','53650',382,660);
INSERT INTO "communes" VALUES('88','Rebeuville','18',247,264,8.72,'3741','53705',282,425);
INSERT INTO "communes" VALUES('88','Dogneville','12',1424,1467,11.42,'4579','53582',308,390);
INSERT INTO "communes" VALUES('88','Ménarmont','21',54,55,5.24,'4785','53801',265,347);
INSERT INTO "communes" VALUES('88','Gironcourt-sur-Vraine','07',982,932,7.51,'3997','53680',311,378);
INSERT INTO "communes" VALUES('88','Châtel-sur-Moselle','06',1645,1659,11.86,'4507','53683',280,393);
INSERT INTO "communes" VALUES('88','Estrennes','28',92,93,5.99,'4126','53620',300,423);
INSERT INTO "communes" VALUES('88','Domvallier','16',125,137,3.24,'4163','53677',281,377);
INSERT INTO "communes" VALUES('88','Herpelmont','08',249,218,5.58,'4892','53522',439,700);
INSERT INTO "communes" VALUES('88','Boulaincourt','16',70,37,2.51,'4161','53747',292,342);
INSERT INTO "communes" VALUES('88','Poulières','02',252,194,2.98,'4949','53553',451,663);
INSERT INTO "communes" VALUES('88','Puzieux','16',161,134,5.42,'4179','53703',268,345);
INSERT INTO "communes" VALUES('88','Mortagne','02',165,151,22.2,'4908','53633',341,654);
INSERT INTO "communes" VALUES('88','Poussay','16',715,733,8.69,'4208','53690',256,327);
INSERT INTO "communes" VALUES('88','Bazegney','11',109,81,5.81,'4322','53629',280,390);
INSERT INTO "communes" VALUES('88','<NAME>','01',40,32,3.53,'4267','53296',242,347);
INSERT INTO "communes" VALUES('88','Domfaing','02',244,227,3.9,'4902','53594',361,507);
INSERT INTO "communes" VALUES('88','Florémont','05',427,407,8.09,'4353','53741',262,377);
INSERT INTO "communes" VALUES('88','Anould','13',3349,2992,24.23,'5121','53540',419,933);
INSERT INTO "communes" VALUES('88','Regney','11',94,71,3.9,'4409','53655',314,440);
INSERT INTO "communes" VALUES('88','Vicherey','07',168,177,5.88,'4000','53759',356,463);
INSERT INTO "communes" VALUES('88','La Grande-Fosse','20',113,91,6.79,'5259','53710',449,820);
INSERT INTO "communes" VALUES('88','Longchamp-sous-Châtenois','07',92,89,4.85,'3879','53655',309,405);
INSERT INTO "communes" VALUES('88','Dompaire','11',1101,920,16.63,'4317','53580',278,387);
INSERT INTO "communes" VALUES('88','Bouxières-aux-Bois','11',123,123,7.68,'4422','53626',339,443);
INSERT INTO "communes" VALUES('88','Clézentaine','21',220,212,13.11,'4669','53787',265,351);
INSERT INTO "communes" VALUES('88','Urville','04',66,64,4.02,'3789','53542',327,429);
INSERT INTO "communes" VALUES('88','Gugnécourt','03',200,145,5.11,'4763','53605',335,368);
INSERT INTO "communes" VALUES('88','Monthureux-le-Sec','28',165,168,11.36,'4099','53524',345,448);
INSERT INTO "communes" VALUES('88','Saint-Stail','26',72,52,6.21,'5258','53750',550,802);
INSERT INTO "communes" VALUES('88','Sanchey','30',804,692,5.51,'4474','53525',341,456);
INSERT INTO "communes" VALUES('88','Certilleux','18',226,249,5.86,'3768','53679',294,450);
INSERT INTO "communes" VALUES('88','Fays','03',242,235,4.83,'4821','53550',417,610);
INSERT INTO "communes" VALUES('88','Frizon','06',456,378,11.75,'4474','53651',297,381);
INSERT INTO "communes" VALUES('88','Langley','05',192,179,2.73,'4431','53733',271,336);
INSERT INTO "communes" VALUES('88','Landaville','18',301,314,13.06,'3785','53654',311,483);
INSERT INTO "communes" VALUES('88','<NAME>','29',582,525,32.93,'4428','53288',307,574);
INSERT INTO "communes" VALUES('88','Gigney','06',60,74,5.09,'4446','53589',327,395);
INSERT INTO "communes" VALUES('88','Nomexy','06',2220,2280,7.95,'4498','53674',283,375);
INSERT INTO "communes" VALUES('88','Frapelle','24',221,209,4.55,'5252','53660',375,560);
INSERT INTO "communes" VALUES('88','Pompierre','18',243,210,12.42,'3707','53623',303,445);
INSERT INTO "communes" VALUES('88','Battexey','05',31,30,2.72,'4271','53766',249,328);
INSERT INTO "communes" VALUES('88','Arches','12',1690,1679,17.5,'4657','53465',335,521);
INSERT INTO "communes" VALUES('88','Darney-aux-Chênes','07',68,48,2.44,'3869','53646',319,415);
INSERT INTO "communes" VALUES('88','Blevaincourt','15',104,134,8.75,'3716','53473',328,417);
INSERT INTO "communes" VALUES('88','<NAME>','31',858,714,16.56,'4989','53679',353,625);
INSERT INTO "communes" VALUES('88','Relanges','10',216,237,13.87,'4088','53459',279,403);
INSERT INTO "communes" VALUES('88','Attignéville','18',213,254,14.61,'3857','53762',295,450);
INSERT INTO "communes" VALUES('88','Dolaincourt','07',85,67,2.6,'3863','53711',319,455);
INSERT INTO "communes" VALUES('88','Pierrefitte','10',99,83,8.78,'4266','53521',295,389);
INSERT INTO "communes" VALUES('88','Sainte-Barbe','21',278,251,30.38,'4873','53774',286,476);
INSERT INTO "communes" VALUES('88','Saint-Maurice-sur-Mortagne','21',183,163,6.78,'4719','53763',257,325);
INSERT INTO "communes" VALUES('88','Raon-l''Étape','22',6528,6747,23.71,'5005','53784',279,610);
INSERT INTO "communes" VALUES('88','Gelvécourt-et-Adompt','11',85,88,3.94,'4256','53556',289,381);
INSERT INTO "communes" VALUES('88','Ahéville','11',59,67,5.84,'4284','53650',308,401);
INSERT INTO "communes" VALUES('88','Saint-Maurice-sur-Moselle','27',1492,1443,37,'4986','53176',530,1251);
INSERT INTO "communes" VALUES('88','Jorxey','11',94,85,5.4,'4335','53670',305,421);
INSERT INTO "communes" VALUES('88','Chauffecourt','16',36,32,1.89,'4239','53703',255,347);
INSERT INTO "communes" VALUES('88','Cornimont','25',3546,3859,40.23,'5003','53292',493,1205);
INSERT INTO "communes" VALUES('88','Avranville','09',89,68,10.89,'3546','53804',327,442);
INSERT INTO "communes" VALUES('88','<NAME>','08',571,622,19.54,'5019','53551',436,750);
INSERT INTO "communes" VALUES('88','<NAME>','31',437,308,4.71,'4989','53692',336,528);
INSERT INTO "communes" VALUES('88','Avrainville','05',101,71,4.57,'4306','53750',262,384);
INSERT INTO "communes" VALUES('88','Avillers','05',90,88,6.92,'4302','53680',272,395);
INSERT INTO "communes" VALUES('88','Denipaire','26',258,287,7.02,'5144','53714',333,650);
INSERT INTO "communes" VALUES('88','Parey-sous-Montfort','04',137,154,7.04,'4008','53613',327,431);
INSERT INTO "communes" VALUES('88','<NAME>','26',321,342,9.83,'5228','53793',395,910);
INSERT INTO "communes" VALUES('88','Lignéville','28',308,309,12.53,'4016','53518',362,457);
INSERT INTO "communes" VALUES('88','Charmes','05',4627,4656,23.49,'4395','53746',258,385);
INSERT INTO "communes" VALUES('88','Bazien','21',92,46,3.21,'4823','53790',283,371);
INSERT INTO "communes" VALUES('88','Baudricourt','16',311,280,3.48,'4131','53681',291,378);
INSERT INTO "communes" VALUES('88','Balléville','07',114,101,6.25,'3902','53701',300,427);
INSERT INTO "communes" VALUES('88','Ménil-en-Xaintois','16',169,125,4.23,'4042','53675',322,403);
INSERT INTO "communes" VALUES('88','Repel','16',63,67,3.46,'4040','53717',319,373);
INSERT INTO "communes" VALUES('88','Bazoilles-sur-Meuse','18',595,631,21.25,'3692','53673',284,408);
INSERT INTO "communes" VALUES('88','Haillainville','06',171,172,12.26,'4606','53770',293,381);
INSERT INTO "communes" VALUES('88','<NAME>','26',844,913,9.09,'5176','53785',345,800);
INSERT INTO "communes" VALUES('88','Savigny','05',190,188,6.17,'4314','53727',267,384);
INSERT INTO "communes" VALUES('88','Grandvillers','03',693,720,17.46,'4804','53599',334,522);
INSERT INTO "communes" VALUES('88','Senaide','15',188,215,12.17,'3852','53301',253,435);
INSERT INTO "communes" VALUES('88','Oncourt','06',175,139,3.94,'4487','53613',310,377);
INSERT INTO "communes" VALUES('88','Ubexy','05',168,199,5.01,'4374','53706',272,410);
INSERT INTO "communes" VALUES('88','Beauménil','03',125,143,3.3,'4879','53534',429,686);
INSERT INTO "communes" VALUES('88','They-sous-Montfort','28',150,177,10.21,'4042','53590',330,470);
INSERT INTO "communes" VALUES('88','Deycimont','03',294,236,6.32,'4793','53520',383,587);
INSERT INTO "communes" VALUES('88','Belrupt','10',107,110,9.14,'4175','53431',278,358);
INSERT INTO "communes" VALUES('88','Lépanges-sur-Vologne','03',925,949,7.57,'4816','53525',394,667);
INSERT INTO "communes" VALUES('88','Saint-Étienne-lès-Remiremont','23',3891,4057,33.81,'4742','53359',370,819);
INSERT INTO "communes" VALUES('88','Ableuvenettes','11',67,69,4.49,'4277','53545',293,387);
INSERT INTO "communes" VALUES('88','Fomerey','30',152,120,5.03,'4447','53579',333,381);
INSERT INTO "communes" VALUES('88','Bonvillet','10',341,373,10.09,'4133','53444',264,342);
INSERT INTO "communes" VALUES('88','Housseras','21',483,460,19.61,'4862','53679',311,530);
INSERT INTO "communes" VALUES('88','Martinvelle','17',126,135,24.73,'4068','53306',249,370);
INSERT INTO "communes" VALUES('88','Sercœur','06',262,273,9.18,'4662','53616',319,363);
INSERT INTO "communes" VALUES('88','La Neuveville-sous-Châtenois','07',374,327,7.41,'3933','53659',306,363);
INSERT INTO "communes" VALUES('88','Frenelle-la-Grande','16',129,121,5.5,'4165','53729',282,321);
INSERT INTO "communes" VALUES('88','Lusse','20',451,446,19.49,'5296','53658',390,950);
INSERT INTO "communes" VALUES('88','Mazirot','16',221,234,6.55,'4233','53692',255,390);
INSERT INTO "communes" VALUES('88','Punerot','09',190,136,13.77,'3858','53869',283,361);
INSERT INTO "communes" VALUES('88','Sapois','25',648,624,16.89,'4900','53352',423,1003);
INSERT INTO "communes" VALUES('88','Romont','21',343,313,19.26,'4721','53730',265,346);
INSERT INTO "communes" VALUES('88','Aulnois','04',150,123,4.44,'3830','53619',328,430);
INSERT INTO "communes" VALUES('88','Zincourt','06',90,77,4.47,'4559','53676',305,393);
INSERT INTO "communes" VALUES('88','Bussang','27',1565,1777,27.63,'5019','53206',568,1221);
INSERT INTO "communes" VALUES('88','Girmont','06',971,951,12.73,'4557','53624',299,376);
INSERT INTO "communes" VALUES('88','Gérardmer','14',8755,8830,54.78,'5047','53414',584,1125);
INSERT INTO "communes" VALUES('88','Aingeville','04',74,68,5.77,'3815','53563',318,349);
INSERT INTO "communes" VALUES('88','Madecourt','16',59,72,4.49,'4204','53601',290,415);
INSERT INTO "communes" VALUES('88','Valleroy-le-Sec','28',157,189,5.87,'4082','53541',365,436);
INSERT INTO "communes" VALUES('88','Basse-sur-le-Rupt','25',884,818,13.73,'4923','53321',409,1060);
INSERT INTO "communes" VALUES('88','Fontenoy-le-Château','01',623,666,34.6,'4292','53304',247,461);
INSERT INTO "communes" VALUES('88','Hennecourt','11',348,323,7.17,'4387','53563',304,419);
INSERT INTO "communes" VALUES('88','Pargny-sous-Mureau','18',192,180,17.97,'3631','53742',288,443);
INSERT INTO "communes" VALUES('88','Mandray','13',627,619,12.36,'5177','53576',398,770);
INSERT INTO "communes" VALUES('88','Chaumousey','30',864,785,8.71,'4443','53526',338,419);
INSERT INTO "communes" VALUES('88','Gircourt-lès-Viéville','05',171,171,8.44,'4286','53712',259,376);
INSERT INTO "communes" VALUES('88','Sartes','18',99,92,6.86,'3711','53606',308,466);
INSERT INTO "communes" VALUES('88','Hagécourt','11',115,150,7.6,'4242','53596',276,345);
INSERT INTO "communes" VALUES('88','Girmont-Val-d''Ajol','19',231,273,16.67,'4694','53282',430,752);
INSERT INTO "communes" VALUES('88','Juvaincourt','16',188,164,8.82,'4135','53701',293,348);
INSERT INTO "communes" VALUES('88','Girecourt-sur-Durbion','03',303,306,6.92,'4737','53608',330,357);
INSERT INTO "communes" VALUES('88','Fouchécourt','15',46,65,4.66,'3915','53343',238,336);
INSERT INTO "communes" VALUES('88','Pleuvezain','07',84,81,3.8,'3983','53754',359,467);
INSERT INTO "communes" VALUES('88','Senones','26',2627,2907,18.73,'5161','53773',328,722);
INSERT INTO "communes" VALUES('88','Jainvillotte','18',87,89,7.44,'3734','53620',303,458);
INSERT INTO "communes" VALUES('88','Liffol-le-Grand','18',2384,2519,33.91,'3605','53688',299,450);
INSERT INTO "communes" VALUES('88','Uxegney','30',2186,1912,8.94,'4482','53549',329,381);
INSERT INTO "communes" VALUES('88','Frebécourt','09',304,332,10.53,'3708','53770',272,435);
INSERT INTO "communes" VALUES('88','Morizécourt','15',123,139,10.68,'3915','53411',279,422);
INSERT INTO "communes" VALUES('88','Fraize','13',3059,2990,15.59,'5183','53540',468,1131);
INSERT INTO "communes" VALUES('88','Saulxures-lès-Bulgnéville','04',256,261,9.54,'3856','53552',322,451);
INSERT INTO "communes" VALUES('88','Biécourt','16',87,109,5.94,'4019','53691',311,349);
INSERT INTO "communes" VALUES('88','Domptail','21',336,239,18.63,'4755','53830',252,372);
INSERT INTO "communes" VALUES('88','Montmotier','01',55,59,4.24,'4266','53304',247,309);
INSERT INTO "communes" VALUES('88','Domèvre-sur-Durbion','06',266,299,12.51,'4593','53651',299,365);
INSERT INTO "communes" VALUES('88','Vervezelle','02',143,124,1.92,'4892','53580',374,510);
INSERT INTO "communes" VALUES('88','Saint-Benoît-la-Chipotte','21',429,370,20.77,'4887','53731',324,524);
INSERT INTO "communes" VALUES('88','Saulcy-sur-Meurthe','24',2406,2104,16.37,'5137','53596',359,740);
INSERT INTO "communes" VALUES('88','Hergugney','05',135,140,5.46,'4294','53763',262,382);
INSERT INTO "communes" VALUES('88','Damas-et-Bettegney','11',366,319,15.07,'4363','53567',296,425);
INSERT INTO "communes" VALUES('88','Saint-Vallier','11',105,62,4.44,'4420','53644',332,442);
INSERT INTO "communes" VALUES('88','Mirecourt','16',5848,6381,12.12,'4215','53665',261,378);
INSERT INTO "communes" VALUES('88','Houécourt','07',429,386,9.91,'3952','53665',306,398);
INSERT INTO "communes" VALUES('88','<NAME>','27',1149,1116,20.38,'4940','53230',509,1106);
INSERT INTO "communes" VALUES('88','Valfroicourt','28',247,257,13.8,'4176','53553',295,419);
INSERT INTO "communes" VALUES('88','Belval','26',180,159,6.84,'5239','53788',455,905);
INSERT INTO "communes" VALUES('88','Varmonzey','05',27,25,2.57,'4389','53693',287,395);
INSERT INTO "communes" VALUES('88','Chavelot','06',1500,1484,6.16,'4556','53597',306,355);
INSERT INTO "communes" VALUES('88','Hardancourt','21',42,36,3.33,'4702','53754',269,332);
INSERT INTO "communes" VALUES('88','Sionne','09',141,124,11.79,'3670','53770',274,435);
INSERT INTO "communes" VALUES('88','Rugney','05',109,123,5.73,'4354','53719',272,411);
INSERT INTO "communes" VALUES('88','Grandrupt','26',92,86,6.34,'5255','53749',450,807);
INSERT INTO "communes" VALUES('88','Soncourt','07',54,64,3.91,'3969','53770',355,429);
INSERT INTO "communes" VALUES('88','Saint-Dié-des-Vosges','98',21447,22590,46.15,'5125','53649',310,891);
INSERT INTO "communes" VALUES('88','Saint-Léonard','13',1383,1222,14.57,'5119','53574',397,691);
INSERT INTO "communes" VALUES('88','Domèvre-sur-Avière','30',428,486,9.16,'4493','53571',319,376);
INSERT INTO "communes" VALUES('88','Saint-Genest','21',123,125,6.26,'4653','53727',296,367);
INSERT INTO "communes" VALUES('88','Laveline-du-Houx','03',221,207,8.21,'4848','53486',444,710);
INSERT INTO "communes" VALUES('88','Dommartin-lès-Vallois','10',55,66,4.93,'4166','53506',323,406);
INSERT INTO "communes" VALUES('88','Rozières-sur-Mouzon','15',85,96,4.78,'3744','53467',330,406);
INSERT INTO "communes" VALUES('88','Charmois-l''Orgueilleux','29',600,618,35.92,'4371','53448',297,446);
INSERT INTO "communes" VALUES('88','Hadol','29',2281,2065,49.05,'4602','53435',340,586);
INSERT INTO "communes" VALUES('88','La Forge','23',568,545,4.72,'4875','53406',469,813);
INSERT INTO "communes" VALUES('88','Vecoux','23',958,1098,13.6,'4777','53310',398,871);
INSERT INTO "communes" VALUES('88','Offroicourt','28',155,121,9.33,'4115','53643',293,402);
INSERT INTO "communes" VALUES('88','Remiremont','23',8024,8540,18,'4726','53352',379,762);
INSERT INTO "communes" VALUES('88','Lemmecourt','18',29,35,1.78,'3778','53624',347,442);
INSERT INTO "communes" VALUES('88','Ban-sur-Meurthe-Clefcy','13',952,800,45.04,'5158','53525',455,1143);
INSERT INTO "communes" VALUES('88','Châtas','26',55,42,5.55,'5220','53736',463,806);
INSERT INTO "communes" VALUES('88','Vomécourt','21',256,289,7.03,'4752','53676',286,334);
INSERT INTO "communes" VALUES('88','Gemaingoutte','24',119,121,3.9,'5277','53615',424,986);
INSERT INTO "communes" VALUES('88','Ventron','25',927,979,24.97,'5040','53267',570,1202);
INSERT INTO "communes" VALUES('88','Plombières-les-Bains','19',1824,1902,27.2,'4585','53296',335,576);
INSERT INTO "communes" VALUES('88','Regnévelle','17',144,167,8.62,'4038','53317',254,366);
INSERT INTO "communes" VALUES('88','La Chapelle-devant-Bruyères','08',620,610,20.23,'4946','53539',447,768);
INSERT INTO "communes" VALUES('88','Vexaincourt','22',193,169,11.38,'5232','53882',355,880);
INSERT INTO "communes" VALUES('88','Barbey-Seroux','08',141,116,7.32,'5003','53491',545,870);
INSERT INTO "communes" VALUES('88','<NAME>','27',3664,3944,15.14,'4920','53200',468,950);
INSERT INTO "communes" VALUES('88','Luvigny','22',119,94,3.94,'5258','53890',375,810);
INSERT INTO "communes" VALUES('88','Saint-Rémy','22',516,427,12.25,'4990','53719',317,524);
INSERT INTO "communes" VALUES('88','Fontenay','03',503,412,6.47,'4725','53576',328,492);
INSERT INTO "communes" VALUES('88','Dompierre','03',282,256,8.88,'4697','53614',322,354);
INSERT INTO "communes" VALUES('88','Cleurie','23',629,668,11.04,'4821','53390',416,819);
INSERT INTO "communes" VALUES('88','Jeanménil','21',1084,1081,18.24,'4835','53706',293,527);
INSERT INTO "communes" VALUES('88','Contrexéville','28',3389,3708,14.96,'3954','53538',324,442);
INSERT INTO "communes" VALUES('88','Nossoncourt','21',97,122,5.34,'4817','53777',267,371);
INSERT INTO "communes" VALUES('88','Combrimont','24',166,174,5.21,'5253','53640',372,730);
INSERT INTO "communes" VALUES('88','Rapey','05',16,18,3.03,'4352','53682',300,406);
INSERT INTO "communes" VALUES('88','Fréville','18',136,130,6.36,'3636','53696',300,445);
INSERT INTO "communes" VALUES('88','Circourt','11',86,89,5.93,'4385','53615',311,465);
INSERT INTO "communes" VALUES('88','Clérey-la-Côte','09',35,45,3.18,'3800','53870',272,427);
INSERT INTO "communes" VALUES('88','Bult','21',312,240,9.86,'4743','53660',292,352);
INSERT INTO "communes" VALUES('88','Belmont-sur-Buttant','02',284,256,8.46,'4921','53584',383,680);
INSERT INTO "communes" VALUES('88','Brechainville','18',46,46,14.15,'3500','53740',347,442);
INSERT INTO "communes" VALUES('88','Valleroy-aux-Saules','16',271,253,5.03,'4229','53609',274,373);
INSERT INTO "communes" VALUES('88','Bazoilles-et-Ménil','28',111,121,5.77,'4188','53620',280,368);
INSERT INTO "communes" VALUES('88','Igney','06',1162,1090,7.66,'4510','53639',286,373);
INSERT INTO "communes" VALUES('88','Belmont-sur-Vair','04',115,120,6.17,'3967','53617',317,429);
INSERT INTO "communes" VALUES('88','Dommartin-lès-Remiremont','23',1836,1800,21.08,'4785','53332',383,842);
INSERT INTO "communes" VALUES('88','Brouvelieures','02',489,522,7.36,'4884','53597',347,545);
INSERT INTO "communes" VALUES('88','Rancourt','28',61,57,5.57,'4191','53579',304,424);
INSERT INTO "communes" VALUES('88','La Neuveville-sous-Montfort','28',175,127,10.21,'4091','53583',324,467);
INSERT INTO "communes" VALUES('88','Auzainvilliers','04',216,210,8.25,'3893','53597',322,405);
INSERT INTO "communes" VALUES('88','Thiraucourt','16',104,90,3.02,'4151','53658',283,388);
INSERT INTO "communes" VALUES('88','Chantraine','30',3143,3056,6.2,'4561','53522',330,486);
INSERT INTO "communes" VALUES('88','Étival-Clairefontaine','22',2515,2408,27.12,'5024','53738',285,591);
INSERT INTO "communes" VALUES('88','Dounoux','29',830,788,9.23,'4564','53450',360,520);
INSERT INTO "communes" VALUES('88','Gruey-lès-Surance','01',251,226,27.1,'4275','53375',323,488);
INSERT INTO "communes" VALUES('88','Belmont-lès-Darney','10',122,111,3.99,'4083','53429',267,360);
INSERT INTO "communes" VALUES('88','Villotte','15',164,168,8.21,'3819','53445',338,448);
INSERT INTO "communes" VALUES('88','Romain-aux-Bois','15',46,40,8.14,'3758','53424',337,460);
INSERT INTO "communes" VALUES('88','Ramecourt','16',166,175,3.26,'4182','53679',274,345);
INSERT INTO "communes" VALUES('88','Hautmougey','01',159,135,7.87,'4329','53365',272,405);
INSERT INTO "communes" VALUES('88','Médonville','04',68,84,7.27,'3772','53577',316,491);
INSERT INTO "communes" VALUES('88','Gignéville','17',69,56,5.58,'3972','53454',294,434);
INSERT INTO "communes" VALUES('88','Harsault','01',410,402,10.85,'4335','53397',282,443);
INSERT INTO "communes" VALUES('88','Attigny','10',259,275,16.08,'4110','53405',247,343);
INSERT INTO "communes" VALUES('88','Longchamp','12',410,336,10.26,'4641','53583',336,395);
INSERT INTO "communes" VALUES('88','Biffontaine','02',446,398,8.88,'4965','53568',456,660);
INSERT INTO "communes" VALUES('88','Corcieux','08',1666,1598,17.4,'5048','53525',503,730);
INSERT INTO "communes" VALUES('88','Viviers-lès-Offroicourt','28',28,36,4.52,'4098','53633',309,427);
INSERT INTO "communes" VALUES('88','Blémerey','16',17,26,2.48,'4124','53733',299,383);
INSERT INTO "communes" VALUES('88','<NAME>','26',97,90,5.41,'5226','53770',400,642);
INSERT INTO "communes" VALUES('88','Champ-le-Duc','03',525,491,3.92,'4870','53549',421,514);
INSERT INTO "communes" VALUES('88','Dombasle-en-Xaintois','16',120,119,4.72,'4061','53675',328,389);
INSERT INTO "communes" VALUES('88','Fauconcourt','21',122,122,4.9,'4671','53748',274,358);
INSERT INTO "communes" VALUES('88','Grand','18',441,510,36.59,'3499','53762',331,443);
INSERT INTO "communes" VALUES('88','Nonzeville','03',44,51,1.62,'4775','53628',332,362);
INSERT INTO "communes" VALUES('88','Suriauville','04',207,180,13.44,'3919','53521',345,484);
INSERT INTO "communes" VALUES('88','Hadigny-les-Verrières','06',383,350,13.74,'4583','53692',314,391);
INSERT INTO "communes" VALUES('88','Ban-de-Laveline','24',1305,1216,26.45,'5254','53605',403,1031);
INSERT INTO "communes" VALUES('88','Nompatelize','22',563,523,6.91,'5018','53695',301,520);
INSERT INTO "communes" VALUES('88','Totainville','16',132,90,5,'4054','53695',324,356);
INSERT INTO "communes" VALUES('88','Xaffévillers','21',166,155,8.43,'4750','53788',256,321);
INSERT INTO "communes" VALUES('88','<NAME>','26',52,54,4.41,'5245','53763',458,812);
INSERT INTO "communes" VALUES('88','Destord','03',227,206,5.04,'4761','53637',311,364);
INSERT INTO "communes" VALUES('88','Laval-sur-Vologne','03',640,611,3.58,'4849','53550',409,500);
INSERT INTO "communes" VALUES('88','Lubine','20',244,214,14.85,'5350','53685',448,851);
INSERT INTO "communes" VALUES('88','Badménil-aux-Bois','06',132,122,9.14,'4647','53669',314,367);
INSERT INTO "communes" VALUES('88','Aouze','07',200,193,11.21,'3927','53750',310,479);
INSERT INTO "communes" VALUES('88','Tollaincourt','15',100,108,12.27,'3776','53441',333,458);
INSERT INTO "communes" VALUES('88','Villouxel','18',85,100,4.65,'3601','53715',298,438);
INSERT INTO "communes" VALUES('88','Saint-Menge','16',120,116,6.67,'4019','53654',320,406);
INSERT INTO "communes" VALUES('88','Darnieulles','30',1478,1110,10.1,'4462','53554',339,396);
INSERT INTO "communes" VALUES('88','Rambervillers','21',5595,6013,20.64,'4776','53718',272,348);
INSERT INTO "communes" VALUES('88','Essegney','05',691,622,8.41,'4422','53742',270,358);
INSERT INTO "communes" VALUES('88','Bouxurulles','05',149,149,6.7,'4329','53705',282,402);
INSERT INTO "communes" VALUES('88','Bettoncourt','05',91,125,3.18,'4250','53721',253,374);
INSERT INTO "communes" VALUES('88','Vioménil','01',138,159,23.59,'4272','53438',290,467);
INSERT INTO "communes" VALUES('88','Jésonville','10',130,110,6.96,'4192','53477',314,412);
INSERT INTO "communes" VALUES('88','Viviers-le-Gras','17',178,185,9.04,'4004','53472',293,455);
INSERT INTO "communes" VALUES('88','Wisembach','24',406,428,11.3,'5299','53619',420,982);
INSERT INTO "communes" VALUES('88','Sans-Vallois','10',122,105,4.43,'4189','53512',313,395);
INSERT INTO "communes" VALUES('88','Sainte-Hélène','03',470,446,17.05,'4800','53656',300,389);
INSERT INTO "communes" VALUES('88','Taintrux','31',1572,1367,31.69,'5073','53611',344,760);
INSERT INTO "communes" VALUES('88','Saint-Gorgon','21',390,330,5.77,'4791','53693',287,347);
INSERT INTO "communes" VALUES('88','Pallegney','06',160,164,5.93,'4564','53660',297,350);
INSERT INTO "communes" VALUES('88','Nonville','17',223,144,8.91,'4059','53423',269,401);
INSERT INTO "communes" VALUES('88','<NAME>','03',202,163,5.67,'4759','53520',393,560);
INSERT INTO "communes" VALUES('88','Escles','10',443,411,22.54,'4268','53477',285,420);
INSERT INTO "communes" VALUES('88','Thuillières','28',149,160,7.62,'4082','53506',293,453);
INSERT INTO "communes" VALUES('88','Ban-de-Sapt','26',346,372,22.66,'5197','53714',425,885);
INSERT INTO "communes" VALUES('88','Rouvres-en-Xaintois','16',289,299,11.19,'4106','53677',302,421);
INSERT INTO "communes" VALUES('88','Viocourt','07',149,115,4.75,'3918','53695',302,415);
INSERT INTO "communes" VALUES('88','Tilleux','18',79,61,3.88,'3767','53667',295,458);
INSERT INTO "communes" VALUES('88','Circourt-sur-Mouzon','18',220,232,10.3,'3747','53663',287,426);
INSERT INTO "communes" VALUES('88','Deyvillers','12',1511,1452,8.77,'4641','53557',325,433);
INSERT INTO "communes" VALUES('88','Dignonville','12',184,171,5.93,'4632','53604',322,400);
INSERT INTO "communes" VALUES('88','Domèvre-sous-Montfort','28',63,55,3.28,'4145','53611',294,391);
INSERT INTO "communes" VALUES('88','Sandaucourt','07',207,187,10.78,'3899','53626',320,383);
INSERT INTO "communes" VALUES('88','Neufchâteau','18',6881,7533,23.81,'3733','53728',274,373);
INSERT INTO "communes" VALUES('88','Xertigny','29',2770,2811,50.25,'4522','53384',297,617);
INSERT INTO "communes" VALUES('88','Serécourt','15',118,103,13.7,'3896','53394',280,478);
INSERT INTO "communes" VALUES('88','Derbamont','11',91,106,6.83,'4368','53632',294,414);
INSERT INTO "communes" VALUES('88','Saint-Prancher','16',75,76,4.41,'4023','53717',313,385);
INSERT INTO "communes" VALUES('88','Monthureux-sur-Saône','17',936,1002,19.02,'4039','53367',238,339);
INSERT INTO "communes" VALUES('88','Serocourt','15',101,110,11.05,'3953','53439',289,497);
INSERT INTO "communes" VALUES('88','Moyemont','21',222,206,12.3,'4669','53723',274,367);
INSERT INTO "communes" VALUES('88','Bettegney-Saint-Brice','11',141,114,5.32,'4412','53666',304,437);
INSERT INTO "communes" VALUES('88','Chamagne','05',464,415,15.29,'4382','53787',254,342);
INSERT INTO "communes" VALUES('88','Ville-sur-Illon','11',516,460,17.89,'4304','53533',299,396);
INSERT INTO "communes" VALUES('88','<NAME>','23',1581,1557,30.76,'4897','53426',484,893);
INSERT INTO "communes" VALUES('88','Midrevaux','09',205,213,14.29,'3639','53760',285,436);
INSERT INTO "communes" VALUES('88','Barville','18',89,71,8.45,'3834','53760',291,405);
INSERT INTO "communes" VALUES('88','Vaxoncourt','06',506,395,8.43,'4528','53657',286,367);
INSERT INTO "communes" VALUES('88','Girancourt','30',851,758,17.66,'4413','53515',337,461);
INSERT INTO "communes" VALUES('88','Anglemont','21',168,166,5.93,'4813','53756',269,363);
INSERT INTO "communes" VALUES('88','Rouvres-la-Chétive','07',439,391,11.33,'3826','53676',345,483);
INSERT INTO "communes" VALUES('88','Chef-Haut','16',46,52,3.18,'4087','53729',342,396);
INSERT INTO "communes" VALUES('88','Remicourt','16',75,63,4.22,'4136','53650',289,400);
INSERT INTO "communes" VALUES('88','Grignoncourt','15',46,38,5.41,'3967','53288',227,315);
INSERT INTO "communes" VALUES('88','Charmois-devant-Bruyères','03',414,405,6.61,'4729','53520',385,503);
INSERT INTO "communes" VALUES('88','Greux','09',168,144,8.04,'3711','53834',264,411);
INSERT INTO "communes" VALUES('88','Martigny-les-Bains','15',845,915,29.22,'3874','53451',342,490);
INSERT INTO "communes" VALUES('88','Sauville','04',195,198,14.38,'3774','53513',325,428);
INSERT INTO "communes" VALUES('88','Provenchères-lès-Darney','10',172,150,9.07,'4022','53476',320,459);
INSERT INTO "communes" VALUES('88','Damblain','15',263,302,13.27,'3686','53441',337,412);
INSERT INTO "communes" VALUES('88','Bains-les-Bains','01',1277,1415,25.37,'4363','53336',256,417);
INSERT INTO "communes" VALUES('88','Claudon','17',199,261,21.72,'4110','53370',248,404);
INSERT INTO "communes" VALUES('88','<NAME>','31',747,627,5.86,'5070','53704',300,380);
INSERT INTO "communes" VALUES('88','Courcelles-sous-Châtenois','07',86,79,2.33,'3866','53697',334,471);
INSERT INTO "communes" VALUES('88','Prey','03',94,89,2.13,'4832','53532',404,632);
INSERT INTO "communes" VALUES('88','Moncel-sur-Vair','09',218,241,7.3,'3739','53801',269,453);
INSERT INTO "communes" VALUES('88','Lerrain','10',479,462,12.65,'4235','53493',300,381);
INSERT INTO "communes" VALUES('88','Rupt-sur-Moselle','27',3543,3636,45.55,'4807','53252',399,898);
INSERT INTO "communes" VALUES('88','Maxey-sur-Meuse','09',258,267,10.77,'3734','53834',265,428);
INSERT INTO "communes" VALUES('88','Faucompierre','23',231,224,2.45,'4815','53487',394,649);
INSERT INTO "communes" VALUES('88','Aydoilles','03',1065,1066,10,'4706','53568',328,491);
INSERT INTO "communes" VALUES('88','Marche','15',1037,1163,33.69,'3828','53410',339,500);
INSERT INTO "communes" VALUES('88','Moussey','26',669,749,29.2,'5207','53811',360,933);
INSERT INTO "communes" VALUES('88','Frain','15',144,147,7.54,'3937','53429',289,421);
INSERT INTO "communes" VALUES('89','Bernouil','16',122,123,4.55,'1732','53222',119,259);
INSERT INTO "communes" VALUES('89','Jouy','11',487,430,17.6,'709','53519',128,151);
INSERT INTO "communes" VALUES('89','Sainte-Pallaye','34',121,97,4.07,'1482','52944',110,211);
INSERT INTO "communes" VALUES('89','Ronchères','24',114,93,11.33,'866','52954',189,273);
INSERT INTO "communes" VALUES('89','Villenavotte','22',167,175,2.22,'1002','53610',62,172);
INSERT INTO "communes" VALUES('89','Molinons','36',262,315,11.97,'1333','53591',98,236);
INSERT INTO "communes" VALUES('89','Nitry','21',367,372,34.7,'1713','52969',180,276);
INSERT INTO "communes" VALUES('89','Noé','40',456,426,8.55,'1185','53515',82,222);
INSERT INTO "communes" VALUES('89','Merry-la-Vallée','01',411,362,18.31,'1107','53110',160,292);
INSERT INTO "communes" VALUES('89','Lasson','16',122,140,7.07,'1645','53399',130,200);
INSERT INTO "communes" VALUES('89','Tonnerre','32',5243,5981,58.27,'1819','53172',129,323);
INSERT INTO "communes" VALUES('89','Verlin','26',437,326,14.1,'996','53352',100,187);
INSERT INTO "communes" VALUES('89','Dicy','10',328,316,10.24,'856','53259',125,194);
INSERT INTO "communes" VALUES('89','Cruzy-le-Châtel','15',255,272,59.52,'2084','53173',175,342);
INSERT INTO "communes" VALUES('89','Irancy','12',305,332,11.98,'1476','53015',105,298);
INSERT INTO "communes" VALUES('89','Saint-Martin-sur-Armançon','15',139,166,14.11,'1925','53192',139,277);
INSERT INTO "communes" VALUES('89','Viviers','32',145,108,9.18,'1760','53115',190,336);
INSERT INTO "communes" VALUES('89','Chemilly-sur-Yonne','28',947,863,5.72,'1361','53221',84,134);
INSERT INTO "communes" VALUES('89','Fulvy','02',136,156,3.81,'2038','53046',174,291);
INSERT INTO "communes" VALUES('89','Poilly-sur-Tholon','01',708,592,19.56,'1176','53185',112,210);
INSERT INTO "communes" VALUES('89','Chambeugle','10',58,49,7.28,'783','53178',156,203);
INSERT INTO "communes" VALUES('89','Gland','15',51,46,16.67,'2090','53135',212,312);
INSERT INTO "communes" VALUES('89','Bléneau','06',1441,1459,39.41,'680','53002',145,209);
INSERT INTO "communes" VALUES('89','Saint-Germain-des-Champs','23',390,393,35.92,'1761','52679',235,413);
INSERT INTO "communes" VALUES('89','Cry','02',185,170,11.16,'2113','53008',184,292);
INSERT INTO "communes" VALUES('89','Augy','03',1050,1066,5.05,'1415','53074',97,205);
INSERT INTO "communes" VALUES('89','Foissy-sur-Vanne','36',291,249,15.75,'1299','53583',95,213);
INSERT INTO "communes" VALUES('89','Annay-sur-Serein','21',241,264,27,'1804','53033',161,278);
INSERT INTO "communes" VALUES('89','Saint-Martin-des-Champs','24',272,265,34.22,'776','52952',172,234);
INSERT INTO "communes" VALUES('89','Vincelottes','12',338,290,1.85,'1448','53008',103,255);
INSERT INTO "communes" VALUES('89','Saint-Bris-le-Vineux','03',1107,1045,31.23,'1459','53048',102,297);
INSERT INTO "communes" VALUES('89','Villeperrot','22',323,266,8.15,'991','53625',61,189);
INSERT INTO "communes" VALUES('89','Saint-Père','35',371,383,15.28,'1587','52733',142,359);
INSERT INTO "communes" VALUES('89','Flacy','36',125,117,12.5,'1408','53585',105,232);
INSERT INTO "communes" VALUES('89','Ormes','01',288,218,8.55,'1033','53166',165,238);
INSERT INTO "communes" VALUES('89','Saint-Léger-Vauban','23',402,438,33.81,'1894','52652',325,566);
INSERT INTO "communes" VALUES('89','Moutiers-en-Puisaye','27',282,292,31.42,'932','52900',207,297);
INSERT INTO "communes" VALUES('89','Tannerre-en-Puisaye','06',299,310,28.93,'883','53039',168,242);
INSERT INTO "communes" VALUES('89','Fontenay-sous-Fouronnes','13',73,73,12.34,'1400','52907',149,273);
INSERT INTO "communes" VALUES('89','Saint-Maurice-Thizouaille','01',248,210,1.95,'1139','53149',123,195);
INSERT INTO "communes" VALUES('89','Domecy-sur-le-Vault','05',99,103,6.21,'1637','52768',167,346);
INSERT INTO "communes" VALUES('89','Prégilbert','34',195,146,6.8,'1478','52934',113,212);
INSERT INTO "communes" VALUES('89','Bœurs-en-Othe','08',327,292,22.3,'1521','53487',170,271);
INSERT INTO "communes" VALUES('89','Moulins-sur-Ouanne','33',309,220,10.19,'1111','53009',194,293);
INSERT INTO "communes" VALUES('89','Maillot','40',1079,1098,6.17,'1080','53527',69,183);
INSERT INTO "communes" VALUES('89','Évry','22',367,337,4.54,'1023','53627',61,115);
INSERT INTO "communes" VALUES('89','Chevannes','42',2314,1957,23.54,'1284','53058',126,251);
INSERT INTO "communes" VALUES('89','Dollot','11',315,307,15.28,'818','53568',122,169);
INSERT INTO "communes" VALUES('89','Fontenay-près-Vézelay','35',150,131,15.48,'1582','52687',167,345);
INSERT INTO "communes" VALUES('89','Lindry','33',1301,949,15.23,'1203','53111',140,272);
INSERT INTO "communes" VALUES('89','Paroy-sur-Tholon','19',315,287,4.21,'1152','53283',78,205);
INSERT INTO "communes" VALUES('89','Chaumont','22',607,551,8.64,'852','53693',54,184);
INSERT INTO "communes" VALUES('89','Saint-Martin-du-Tertre','30',1558,1446,6.91,'1025','53571',62,183);
INSERT INTO "communes" VALUES('89','Saligny','29',666,584,9.99,'1130','53571',86,212);
INSERT INTO "communes" VALUES('89','Béru','32',75,77,5.17,'1726','53112',168,326);
INSERT INTO "communes" VALUES('89','Thury','27',454,463,23.22,'1064','52874',222,328);
INSERT INTO "communes" VALUES('89','Chitry','09',359,333,15.2,'1514','53069',169,346);
INSERT INTO "communes" VALUES('89','Épineuil','32',621,603,6.21,'1826','53193',139,307);
INSERT INTO "communes" VALUES('89','Quenne','03',458,469,8.72,'1459','53086',125,298);
INSERT INTO "communes" VALUES('89','Gron','30',1206,1115,11.73,'1030','53508',66,181);
INSERT INTO "communes" VALUES('89','Étais-la-Sauvin','13',684,690,44.79,'1121','52781',178,365);
INSERT INTO "communes" VALUES('89','Noyers','21',676,789,35.66,'1842','52997',167,296);
INSERT INTO "communes" VALUES('89','Mouffy','14',125,90,4.89,'1311','52946',210,343);
INSERT INTO "communes" VALUES('89','Sainte-Colombe','18',193,143,18.48,'1814','52852',199,361);
INSERT INTO "communes" VALUES('89','Levis','33',246,238,12.08,'1098','52949',208,330);
INSERT INTO "communes" VALUES('89','Serbonnes','31',557,454,9.93,'964','53690',57,145);
INSERT INTO "communes" VALUES('89','Grandchamp','10',369,365,28.29,'909','53118',153,224);
INSERT INTO "communes" VALUES('89','Annéot','05',147,102,6.13,'1716','52801',152,307);
INSERT INTO "communes" VALUES('89','Venizy','07',890,824,43.68,'1525','53373',106,289);
INSERT INTO "communes" VALUES('89','Villiers-Louis','36',469,367,11.07,'1184','53546',86,226);
INSERT INTO "communes" VALUES('89','Villy','20',109,114,5.84,'1572','53186',115,220);
INSERT INTO "communes" VALUES('89','Paron','30',4404,4861,10.51,'1030','53544',62,179);
INSERT INTO "communes" VALUES('89','Fontenailles','14',70,66,2.76,'1255','52924',243,346);
INSERT INTO "communes" VALUES('89','Cheney','32',265,264,5.95,'1790','53231',126,237);
INSERT INTO "communes" VALUES('89','Molesmes','14',185,143,9.5,'1255','52905',244,367);
INSERT INTO "communes" VALUES('89','Fontenay-près-Chablis','09',135,138,5.05,'1638','53164',143,257);
INSERT INTO "communes" VALUES('89','Yrouerre','32',185,197,14.28,'1791','53104',205,331);
INSERT INTO "communes" VALUES('89','Ancy-le-Franc','02',994,1107,19.65,'2029','53085',169,302);
INSERT INTO "communes" VALUES('89','Champigny','22',2188,1889,21.28,'879','53688',54,192);
INSERT INTO "communes" VALUES('89','Angely','18',147,141,8.62,'1872','52850',192,262);
INSERT INTO "communes" VALUES('89','Leugny','33',381,336,13.34,'1154','52982',209,299);
INSERT INTO "communes" VALUES('89','Monéteau','95',3820,4224,18.19,'1380','53167',88,181);
INSERT INTO "communes" VALUES('89','Escolives-Sainte-Camille','12',731,678,7.52,'1413','53020',102,244);
INSERT INTO "communes" VALUES('89','Percey','16',258,257,9.56,'1654','53293',109,155);
INSERT INTO "communes" VALUES('89','Saint-Martin-sur-Ocre','01',58,44,4.58,'1098','53120',135,267);
INSERT INTO "communes" VALUES('89','Asquins','35',327,280,21.6,'1576','52756',134,331);
INSERT INTO "communes" VALUES('89','Bordes','37',531,430,18.68,'1160','53442',103,234);
INSERT INTO "communes" VALUES('89','Bessy-sur-Cure','34',176,121,10.53,'1560','52912',117,233);
INSERT INTO "communes" VALUES('89','Ancy-le-Libre','02',185,175,21.65,'1985','53114',155,288);
INSERT INTO "communes" VALUES('89','Villeneuve-sur-Yonne','37',5295,5403,40,'1067','53424',68,206);
INSERT INTO "communes" VALUES('89','Girolles','05',186,164,16.35,'1673','52814',145,346);
INSERT INTO "communes" VALUES('89','Montréal','17',194,181,7.41,'1888','52825',199,305);
INSERT INTO "communes" VALUES('89','Diges','33',1151,1065,35.84,'1179','53033',151,326);
INSERT INTO "communes" VALUES('89','Villemer','01',245,256,4.26,'1264','53238',98,169);
INSERT INTO "communes" VALUES('89','Perceneige','31',945,857,60.99,'1190','53725',92,209);
INSERT INTO "communes" VALUES('89','Vaudeurs','08',512,473,27.45,'1349','53482',132,259);
INSERT INTO "communes" VALUES('89','Saint-Moré','35',183,188,11.98,'1599','52862',122,262);
INSERT INTO "communes" VALUES('89','Saint-Privé','06',559,480,41.41,'738','52982',161,214);
INSERT INTO "communes" VALUES('89','Pont-sur-Yonne','22',3232,3126,13.9,'963','53651',58,194);
INSERT INTO "communes" VALUES('89','Vincelles','12',989,841,12.53,'1439','53005',103,278);
INSERT INTO "communes" VALUES('89','Cussy-les-Forges','17',337,306,13.62,'1878','52745',265,361);
INSERT INTO "communes" VALUES('89','Vallan','42',708,727,11.7,'1336','53050',133,226);
INSERT INTO "communes" VALUES('89','Préhy','09',134,145,14,'1579','53065',152,312);
INSERT INTO "communes" VALUES('89','Island','05',188,196,20.64,'1678','52745',175,325);
INSERT INTO "communes" VALUES('89','Trévilly','17',61,74,6.86,'1914','52811',202,275);
INSERT INTO "communes" VALUES('89','Beauvilliers','23',97,87,6.21,'1894','52683',310,417);
INSERT INTO "communes" VALUES('89','Maligny','20',772,685,22.28,'1587','53189',115,262);
INSERT INTO "communes" VALUES('89','Thorigny-sur-Oreuse','31',1499,1265,49.23,'1183','53658',83,206);
INSERT INTO "communes" VALUES('89','Quincerot','15',70,54,9.91,'2029','53269',221,347);
INSERT INTO "communes" VALUES('89','Vézinnes','32',174,166,6.3,'1785','53214',126,274);
INSERT INTO "communes" VALUES('89','Mailly-le-Château','13',581,609,37.28,'1443','52885',117,254);
INSERT INTO "communes" VALUES('89','Montillot','35',280,277,22.45,'1537','52798',132,319);
INSERT INTO "communes" VALUES('89','Paroy-en-Othe','07',208,0,5.32,'1370','53373',116,245);
INSERT INTO "communes" VALUES('89','Appoigny','41',3135,2991,22.09,'1324','53197',82,201);
INSERT INTO "communes" VALUES('89','Saint-Romain-le-Preux','26',187,153,10.36,'1006','53260',122,210);
INSERT INTO "communes" VALUES('89','Chichery','39',470,461,6.78,'1304','53225',83,195);
INSERT INTO "communes" VALUES('89','Champvallon','01',607,485,6.83,'1121','53261',85,217);
INSERT INTO "communes" VALUES('89','Jaulges','25',452,429,12.35,'1615','53292',103,141);
INSERT INTO "communes" VALUES('89','Bussières','23',129,111,11.62,'1908','52695',287,404);
INSERT INTO "communes" VALUES('89','Lucy-le-Bois','05',307,363,10.59,'1730','52840',199,350);
INSERT INTO "communes" VALUES('89','Courlon-sur-Yonne','31',1164,988,16.73,'921','53710',54,138);
INSERT INTO "communes" VALUES('89','Villecien','19',404,337,7.6,'1103','53341',72,214);
INSERT INTO "communes" VALUES('89','Malay-le-Grand','40',1510,1538,21.8,'1116','53528',76,221);
INSERT INTO "communes" VALUES('89','Saints','27',593,571,27.71,'1028','52912',216,325);
INSERT INTO "communes" VALUES('89','Pisy','17',64,80,12.08,'2006','52839',227,391);
INSERT INTO "communes" VALUES('89','Parly','33',798,694,20.77,'1123','53072',157,320);
INSERT INTO "communes" VALUES('89','Lézinnes','02',745,778,15.96,'1946','53112',157,273);
INSERT INTO "communes" VALUES('89','Saint-Aubin-Château-Neuf','01',535,435,24.89,'1081','53137',135,262);
INSERT INTO "communes" VALUES('89','Savigny-sur-Clairis','11',392,341,16.44,'841','53416',153,192);
INSERT INTO "communes" VALUES('89','Fontenoy','27',317,301,15.9,'1078','52943',213,307);
INSERT INTO "communes" VALUES('89','Toucy','33',2628,2602,34.85,'1063','53041',177,306);
INSERT INTO "communes" VALUES('89','Volgré','01',330,316,9.55,'1101','53242',113,232);
INSERT INTO "communes" VALUES('89','Foissy-lès-Vézelay','35',144,149,5.53,'1586','52707',148,320);
INSERT INTO "communes" VALUES('89','Saint-Clément','29',2809,2888,8.47,'1063','53575',63,211);
INSERT INTO "communes" VALUES('89','Escamps','12',855,709,22.21,'1263','53033',141,300);
INSERT INTO "communes" VALUES('89','Chichée','09',349,333,18.78,'1664','53103',133,289);
INSERT INTO "communes" VALUES('89','Thizy','17',171,160,5.55,'1909','52856',211,332);
INSERT INTO "communes" VALUES('89','Béon','19',521,476,15.41,'1095','53285',77,217);
INSERT INTO "communes" VALUES('89','Courtois-sur-Yonne','30',799,553,4.29,'1021','53584',62,172);
INSERT INTO "communes" VALUES('89','Sarry','21',164,185,25.64,'1929','52966',207,332);
INSERT INTO "communes" VALUES('89','Villeroy','11',337,254,7.1,'944','53526',145,196);
INSERT INTO "communes" VALUES('89','Vermenton','34',1182,1197,25.64,'1554','52961',112,263);
INSERT INTO "communes" VALUES('89','Domecy-sur-Cure','35',394,450,20.57,'1637','52683',158,351);
INSERT INTO "communes" VALUES('89','Vergigny','25',1541,1508,38.01,'1536','53300',90,178);
INSERT INTO "communes" VALUES('89','Beugnon','16',317,330,7.7,'1632','53356',105,136);
INSERT INTO "communes" VALUES('89','Plessis-Saint-Jean','31',218,186,11.02,'1077','53725',87,178);
INSERT INTO "communes" VALUES('89','Saint-Agnan','22',913,772,13.22,'794','53673',88,168);
INSERT INTO "communes" VALUES('89','Chailley','07',576,610,16.51,'1516','53426',143,280);
INSERT INTO "communes" VALUES('89','Butteaux','16',266,259,7.55,'1637','53309',106,152);
INSERT INTO "communes" VALUES('89','Chamoux','35',88,83,6.93,'1473','52730',190,285);
INSERT INTO "communes" VALUES('89','Coutarnoux','18',100,98,8.68,'1809','52874',214,332);
INSERT INTO "communes" VALUES('89','Vaumort','40',347,267,14.52,'1225','53505',94,239);
INSERT INTO "communes" VALUES('89','Pontaubert','05',389,377,3.91,'1692','52766',149,232);
INSERT INTO "communes" VALUES('89','Saint-Brancher','23',326,313,22.02,'1844','52696',251,412);
INSERT INTO "communes" VALUES('89','Venouse','20',299,260,7.91,'1496','53217',104,181);
INSERT INTO "communes" VALUES('89','Accolay','34',438,433,9.27,'1525','52956',110,231);
INSERT INTO "communes" VALUES('89','Passy','40',316,301,5.74,'1074','53456',69,185);
INSERT INTO "communes" VALUES('89','Villefargeau','38',956,908,13.77,'1297','53092',118,211);
INSERT INTO "communes" VALUES('89','Villethierry','22',811,697,20.88,'819','53627',108,183);
INSERT INTO "communes" VALUES('89','Vézelay','35',447,495,21.83,'1566','52740',170,339);
INSERT INTO "communes" VALUES('89','Marsangy','30',832,693,14.68,'1024','53456',68,186);
INSERT INTO "communes" VALUES('89','Coulours','08',149,158,17.4,'1389','53516',160,253);
INSERT INTO "communes" VALUES('89','Esnon','07',407,339,12.05,'1377','53316',84,247);
INSERT INTO "communes" VALUES('89','Sambourg','02',92,88,12.44,'1873','53075',188,265);
INSERT INTO "communes" VALUES('89','Saint-Sauveur-en-Puisaye','27',941,940,30.89,'956','52909',212,311);
INSERT INTO "communes" VALUES('89','Sommecaise','01',347,279,15.53,'996','53166',165,226);
INSERT INTO "communes" VALUES('89','Villefranche','10',621,511,23.27,'881','53266',136,202);
INSERT INTO "communes" VALUES('89','Cravant','34',801,824,22.54,'1505','52981',106,289);
INSERT INTO "communes" VALUES('89','Beaumont','28',588,529,6.55,'1360','53244',83,128);
INSERT INTO "communes" VALUES('89','Malay-le-Petit','40',361,335,11.04,'1162','53525',81,217);
INSERT INTO "communes" VALUES('89','Avallon','05',7248,8235,26.75,'1746','52767',163,369);
INSERT INTO "communes" VALUES('89','Villemanoche','22',663,612,14.39,'939','53667',57,194);
INSERT INTO "communes" VALUES('89','Chassy','01',473,376,16.45,'1124','53169',116,242);
INSERT INTO "communes" VALUES('89','Lailly','36',207,188,22.48,'1326','53604',101,233);
INSERT INTO "communes" VALUES('89','Chéroy','11',1607,1405,10.52,'735','53557',123,159);
INSERT INTO "communes" VALUES('89','Sauvigny-le-Bois','05',778,686,15.34,'1782','52792',230,317);
INSERT INTO "communes" VALUES('89','Montacher-Villegardin','11',781,597,29.2,'770','53525',128,164);
INSERT INTO "communes" VALUES('89','Bassou','39',780,739,4.08,'1310','53249',81,164);
INSERT INTO "communes" VALUES('89','Chaumot','37',693,503,14.86,'979','53423',90,201);
INSERT INTO "communes" VALUES('89','Champignelles','06',1039,1133,53.29,'817','53088',154,224);
INSERT INTO "communes" VALUES('89','Cheny','28',2469,2537,9.72,'1331','53281',82,145);
INSERT INTO "communes" VALUES('89','Méré','20',180,178,11.86,'1651','53221',140,228);
INSERT INTO "communes" VALUES('89','Cézy','19',1125,1038,16.02,'1116','53325',72,187);
INSERT INTO "communes" VALUES('89','Ligny-le-Châtel','20',1344,1289,27.48,'1578','53223',103,182);
INSERT INTO "communes" VALUES('89','Vignes','17',96,68,11.77,'1979','52804',215,311);
INSERT INTO "communes" VALUES('89','Voisines','36',461,342,27.12,'1175','53613',107,230);
INSERT INTO "communes" VALUES('89','Charny','10',1676,1729,18.99,'844','53207',130,201);
INSERT INTO "communes" VALUES('89','Molosmes','32',213,200,24.51,'1897','53208',150,328);
INSERT INTO "communes" VALUES('89','Dyé','16',195,174,17,'1704','53221',135,251);
INSERT INTO "communes" VALUES('89','Lalande','33',131,93,10.13,'1093','52980',199,273);
INSERT INTO "communes" VALUES('89','Mercy','07',76,74,2.66,'1437','53367',117,168);
INSERT INTO "communes" VALUES('89','Fouronnes','14',154,131,17.79,'1366','52903',183,343);
INSERT INTO "communes" VALUES('89','Aisy-sur-Armançon','02',265,277,17.97,'2099','52964',192,346);
INSERT INTO "communes" VALUES('89','Villebougis','11',610,467,11.81,'915','53561',128,185);
INSERT INTO "communes" VALUES('89','Gigny','15',94,90,10.77,'2176','53129',207,305);
INSERT INTO "communes" VALUES('89','Crain','13',395,363,9.9,'1353','52811',132,207);
INSERT INTO "communes" VALUES('89','Étigny','30',760,713,6.86,'1061','53487',66,174);
INSERT INTO "communes" VALUES('89','Pailly','31',245,198,14.89,'1096','53725',95,187);
INSERT INTO "communes" VALUES('89','Fleys','32',171,134,8.17,'1695','53128',146,316);
INSERT INTO "communes" VALUES('89','Coulanges-la-Vineuse','12',932,916,10.59,'1383','53001',115,292);
INSERT INTO "communes" VALUES('89','Rogny-les-Sept-Écluses','06',736,724,32.59,'608','53051',135,186);
INSERT INTO "communes" VALUES('89','Neuvy-Sautour','16',999,1026,19.06,'1619','53380',110,197);
INSERT INTO "communes" VALUES('89','Villechétive','08',223,149,9.42,'1305','53439',178,258);
INSERT INTO "communes" VALUES('89','Sainte-Vertu','21',105,109,14.36,'1755','53055',150,271);
INSERT INTO "communes" VALUES('89','Arthonnay','15',163,180,25.5,'2104','53258',229,353);
INSERT INTO "communes" VALUES('89','Lignorelles','20',184,178,11.55,'1546','53181',139,256);
INSERT INTO "communes" VALUES('89','Turny','07',726,785,24.87,'1566','53372',111,297);
INSERT INTO "communes" VALUES('89','Saint-Martin-d''Ordon','26',337,296,10.17,'932','53359',126,197);
INSERT INTO "communes" VALUES('89','Bonnard','39',933,779,4.02,'1318','53251',83,104);
INSERT INTO "communes" VALUES('89','Laduz','01',310,240,7.54,'1194','53202',106,207);
INSERT INTO "communes" VALUES('89','Cudot','26',351,273,19.11,'937','53315',141,202);
INSERT INTO "communes" VALUES('89','Épineau-les-Voves','39',702,661,7.05,'1262','53274',78,147);
INSERT INTO "communes" VALUES('89','Fresnes','21',73,80,4.97,'1841','53068',187,254);
INSERT INTO "communes" VALUES('89','Pontigny','20',727,750,11.92,'1527','53230',102,183);
INSERT INTO "communes" VALUES('89','Bussy-en-Othe','07',758,829,56.5,'1309','53355',100,266);
INSERT INTO "communes" VALUES('89','Molay','21',111,120,12,'1781','53039',157,273);
INSERT INTO "communes" VALUES('89','Voutenay-sur-Cure','35',230,189,10.04,'1609','52847',127,268);
INSERT INTO "communes" VALUES('89','Argenteuil-sur-Armançon','02',245,246,30.51,'1968','53056',165,289);
INSERT INTO "communes" VALUES('89','Brienon-sur-Armançon','07',3140,3242,25.87,'1422','53325',84,157);
INSERT INTO "communes" VALUES('89','Héry','28',1883,1740,21.19,'1433','53224',94,192);
INSERT INTO "communes" VALUES('89','Gurgy','28',1646,1647,13.12,'1360','53185',82,144);
INSERT INTO "communes" VALUES('89','Champs-sur-Yonne','03',1573,1380,4.39,'1405','53041',97,133);
INSERT INTO "communes" VALUES('89','Stigny','02',124,117,17.86,'2107','53082',208,328);
INSERT INTO "communes" VALUES('89','Soucy','29',1479,1340,21.62,'1097','53611',68,205);
INSERT INTO "communes" VALUES('89','Nailly','30',1258,1112,21.61,'985','53582',74,191);
INSERT INTO "communes" VALUES('89','Tanlay','15',1119,1174,38.66,'1945','53163',140,278);
INSERT INTO "communes" VALUES('89','Sacy','34',205,211,27.7,'1648','52964',137,284);
INSERT INTO "communes" VALUES('89','Mailly-la-Ville','34',558,581,23.79,'1494','52888',116,295);
INSERT INTO "communes" VALUES('89','Marchais-Beton','10',120,130,10.95,'791','53151',163,203);
INSERT INTO "communes" VALUES('89','Baon','15',83,67,8.57,'1996','53177',162,280);
INSERT INTO "communes" VALUES('89','Censy','21',57,50,4.86,'1895','52997',228,309);
INSERT INTO "communes" VALUES('89','Cisery','17',53,62,4.7,'1916','52790',207,258);
INSERT INTO "communes" VALUES('89','Collan','32',189,202,13.16,'1710','53158',175,301);
INSERT INTO "communes" VALUES('89','Tharot','05',92,108,2.35,'1692','52809',179,321);
INSERT INTO "communes" VALUES('89','Armeau','37',753,532,10.31,'1096','53384',71,211);
INSERT INTO "communes" VALUES('89','Précy-sur-Vrin','26',476,455,21.16,'1012','53297',98,193);
INSERT INTO "communes" VALUES('89','Athie','18',147,139,4.9,'1837','52821',208,302);
INSERT INTO "communes" VALUES('89','Sainpuits','27',335,299,22.84,'1025','52798',217,306);
INSERT INTO "communes" VALUES('89','Saint-Loup-d''Ordon','26',239,212,17.67,'918','53351',151,194);
INSERT INTO "communes" VALUES('89','Fouchères','11',406,399,14.72,'892','53520',158,201);
INSERT INTO "communes" VALUES('89','Beauvoir','33',344,299,6.72,'1149','53105',135,256);
INSERT INTO "communes" VALUES('89','Annoux','18',95,82,8.97,'1904','52918',250,332);
INSERT INTO "communes" VALUES('89','Dannemoine','32',422,412,10.28,'1799','53217',128,309);
INSERT INTO "communes" VALUES('89','Saint-Maurice-aux-Riches-Hommes','36',455,392,33.17,'1308','53723',101,226);
INSERT INTO "communes" VALUES('89','Arcy-sur-Cure','34',503,450,26.33,'1582','52892',121,301);
INSERT INTO "communes" VALUES('89','Cérilly','08',40,54,7.29,'1429','53536',134,238);
INSERT INTO "communes" VALUES('89','Lichères-près-Aigremont','09',173,156,16.37,'1688','53031',165,264);
INSERT INTO "communes" VALUES('89','Prunoy','10',311,290,24.89,'881','53237',137,212);
INSERT INTO "communes" VALUES('89','Mélisey','15',301,289,22.17,'1935','53240',196,320);
INSERT INTO "communes" VALUES('89','Theil-sur-Vanne','36',517,542,11.55,'1214','53520',86,222);
INSERT INTO "communes" VALUES('89','Précy-le-Sec','18',285,238,15.76,'1662','52882',135,311);
INSERT INTO "communes" VALUES('89','Moulins-en-Tonnerrois','21',112,124,15.13,'1887','53035',193,296);
INSERT INTO "communes" VALUES('89','Flogny-la-Chapelle','16',1033,1096,23.75,'1706','53281',112,183);
INSERT INTO "communes" VALUES('89','Subligny','30',491,479,7.88,'963','53519',110,201);
INSERT INTO "communes" VALUES('89','Pimelles','15',65,70,9.91,'2046','53153',183,277);
INSERT INTO "communes" VALUES('89','Guillon','17',464,452,11.94,'1952','52794',203,328);
INSERT INTO "communes" VALUES('89','Bazarnes','34',407,357,19.39,'1474','52956',109,282);
INSERT INTO "communes" VALUES('89','Villeneuve-les-Genêts','06',308,256,24.69,'839','53041',171,218);
INSERT INTO "communes" VALUES('89','Lavau','24',509,459,55.06,'723','52884',175,261);
INSERT INTO "communes" VALUES('89','Chemilly-sur-Serein','09',175,172,13,'1695','53079',141,272);
INSERT INTO "communes" VALUES('89','Sauvigny-le-Beuréal','17',62,66,4.82,'1970','52763',224,324);
INSERT INTO "communes" VALUES('89','Dracy','33',238,230,21.86,'1016','53064',168,264);
INSERT INTO "communes" VALUES('89','Chevillon','10',309,288,13.08,'933','53245',152,212);
INSERT INTO "communes" VALUES('89','Val-de-Mercy','12',371,367,13.46,'1391','52973',130,278);
INSERT INTO "communes" VALUES('89','Ravières','02',854,964,21.85,'2101','53039',179,293);
INSERT INTO "communes" VALUES('89','Saint-Fargeau','24',1793,1814,67.2,'816','52934',182,280);
INSERT INTO "communes" VALUES('89','Pacy-sur-Armançon','02',206,232,13.35,'1952','53086',163,266);
INSERT INTO "communes" VALUES('89','Marmeaux','17',81,83,10.76,'1955','52869',230,339);
INSERT INTO "communes" VALUES('89','Véron','40',1954,1647,15.91,'1079','53476',67,207);
INSERT INTO "communes" VALUES('89','Saint-Denis','30',679,594,6.73,'1033','53587',61,75);
INSERT INTO "communes" VALUES('89','Bellechaume','07',453,441,24.51,'1413','53381',119,289);
INSERT INTO "communes" VALUES('89','Branches','01',438,394,10.99,'1272','53205',110,201);
INSERT INTO "communes" VALUES('89','Lichères-sur-Yonne','35',58,68,14.31,'1395','52786',132,259);
INSERT INTO "communes" VALUES('89','Champlost','07',804,765,22.94,'1479','53363',101,293);
INSERT INTO "communes" VALUES('89','Sépeaux','26',422,384,19.91,'999','53269',108,203);
INSERT INTO "communes" VALUES('89','L''Isle-sur-Serein','18',738,718,4.44,'1853','52875',192,298);
INSERT INTO "communes" VALUES('89','Sennevoy-le-Haut','15',107,78,8.84,'2160','53120',238,320);
INSERT INTO "communes" VALUES('89','Montigny-la-Resle','20',601,549,16.19,'1493','53184',127,285);
INSERT INTO "communes" VALUES('89','Villiers-Saint-Benoît','33',513,433,34.04,'972','53091',167,247);
INSERT INTO "communes" VALUES('89','Chéu','25',542,439,7.61,'1588','53295',100,120);
INSERT INTO "communes" VALUES('89','Cuy','22',767,639,6.97,'1031','53620',61,128);
INSERT INTO "communes" VALUES('89','<NAME>','20',97,106,5.04,'1588','53162',122,252);
INSERT INTO "communes" VALUES('89','Tronchoy','16',148,157,6.59,'1783','53238',123,228);
INSERT INTO "communes" VALUES('89','Fleury-la-Vallée','01',1117,1001,15.06,'1236','53186',102,226);
INSERT INTO "communes" VALUES('89','Pierre-Perthuis','35',127,102,7.34,'1623','52707',151,279);
INSERT INTO "communes" VALUES('89','Sainte-Magnance','17',443,356,19.37,'1935','52723',230,379);
INSERT INTO "communes" VALUES('89','Rousson','37',410,381,5.62,'1029','53439',68,182);
INSERT INTO "communes" VALUES('89','Venoy','03',1767,1592,22.74,'1445','53117',121,289);
INSERT INTO "communes" VALUES('89','Laroche-Saint-Cydroine','39',1348,1363,8.95,'1275','53295',77,161);
INSERT INTO "communes" VALUES('89','Tharoiseau','35',66,76,3.43,'1631','52736',205,344);
INSERT INTO "communes" VALUES('89','Fontenouilles','10',221,208,16.48,'788','53211',141,199);
INSERT INTO "communes" VALUES('89','Roffey','16',146,153,8.55,'1760','53242',120,246);
INSERT INTO "communes" VALUES('89','Villeneuve-Saint-Salves','20',253,249,7.04,'1460','53172',123,260);
INSERT INTO "communes" VALUES('89','Villevallier','19',414,370,8.37,'1086','53361',72,211);
INSERT INTO "communes" VALUES('89','Sementron','14',117,99,11.7,'1125','52926',214,339);
INSERT INTO "communes" VALUES('89','Trichey','15',43,53,6.61,'2004','53256',225,343);
INSERT INTO "communes" VALUES('89','Sceaux','17',135,137,13.22,'1871','52810',209,306);
INSERT INTO "communes" VALUES('89','Brion','39',602,600,16.5,'1271','53329',94,249);
INSERT INTO "communes" VALUES('89','Cornant','30',351,329,5.06,'943','53481',125,197);
INSERT INTO "communes" VALUES('89','Domats','11',837,596,24.15,'811','53460',139,183);
INSERT INTO "communes" VALUES('89','Charbuy','41',1746,1608,23.4,'1255','53138',115,212);
INSERT INTO "communes" VALUES('89','Bussy-le-Repos','37',406,313,23.79,'995','53396',94,192);
INSERT INTO "communes" VALUES('89','Bagneaux','36',230,182,16.24,'1398','53592',106,236);
INSERT INTO "communes" VALUES('89','Villeblevin','22',1822,1580,7.36,'828','53694',53,118);
INSERT INTO "communes" VALUES('89','Dissangis','18',143,103,7.33,'1828','52886',190,279);
INSERT INTO "communes" VALUES('89','Migennes','39',7243,8174,16.58,'1311','53294',80,152);
INSERT INTO "communes" VALUES('89','Châtel-Censoir','35',663,657,24.62,'1441','52813',127,283);
INSERT INTO "communes" VALUES('89','Looze','19',469,425,6.36,'1226','53325',99,224);
INSERT INTO "communes" VALUES('89','Vinneuf','31',1337,1203,15.26,'887','53723',54,121);
INSERT INTO "communes" VALUES('89','Étivey','21',239,222,28.02,'2008','52975',205,342);
INSERT INTO "communes" VALUES('89','Étaule','05',413,409,8.89,'1753','52818',190,330);
INSERT INTO "communes" VALUES('89','Merry-Sec','14',170,179,14.17,'1276','52952',199,373);
INSERT INTO "communes" VALUES('89','Varennes','20',295,276,10.06,'1607','53228',122,193);
INSERT INTO "communes" VALUES('89','Brosses','35',292,250,19.97,'1505','52819',151,322);
INSERT INTO "communes" VALUES('89','Chassignelles','02',323,305,13,'2046','53066',172,307);
INSERT INTO "communes" VALUES('89','Coulangeron','12',197,166,8.52,'1259','52979',195,346);
INSERT INTO "communes" VALUES('89','Santigny','17',108,90,9.35,'1983','52853',243,354);
INSERT INTO "communes" VALUES('89','Magny','05',820,819,30.75,'1823','52756',200,381);
INSERT INTO "communes" VALUES('89','Villon','15',95,100,9.42,'2058','53233',190,352);
INSERT INTO "communes" VALUES('89','Trucy-sur-Yonne','13',141,112,8.31,'1470','52920',116,239);
INSERT INTO "communes" VALUES('89','Sermizelles','05',286,225,7.01,'1619','52818',127,265);
INSERT INTO "communes" VALUES('89','Chastellux-sur-Cure','23',154,141,10.55,'1723','52651',210,397);
INSERT INTO "communes" VALUES('89','Massangis','18',410,401,43.35,'1819','52917',182,330);
INSERT INTO "communes" VALUES('89','Sougères-en-Puisaye','27',341,315,26.5,'1102','52844',193,352);
INSERT INTO "communes" VALUES('89','Rouvray','20',380,284,7.59,'1480','53220',101,162);
INSERT INTO "communes" VALUES('89','Blannay','35',132,138,7.26,'1605','52810',132,306);
INSERT INTO "communes" VALUES('89','Provency','18',217,225,11.88,'1799','52829',229,328);
INSERT INTO "communes" VALUES('89','Joux-la-Ville','18',1221,1067,43.81,'1695','52914',183,339);
INSERT INTO "communes" VALUES('89','Menades','05',49,61,5.7,'1653','52717',200,302);
INSERT INTO "communes" VALUES('89','Argentenay','02',99,83,5.07,'1973','53128',154,273);
INSERT INTO "communes" VALUES('89','Lainsecq','27',375,331,25,'1041','52839',219,366);
INSERT INTO "communes" VALUES('89','Migé','12',447,368,14.62,'1341','52972',178,327);
INSERT INTO "communes" VALUES('89','Jussy','12',437,444,7.28,'1386','53024',114,303);
INSERT INTO "communes" VALUES('89','Courson-les-Carrières','14',859,788,34.16,'1293','52905',188,345);
INSERT INTO "communes" VALUES('89','Villiers-les-Hauts','02',151,144,19.12,'2013','53029',177,306);
INSERT INTO "communes" VALUES('89','Merry-sur-Yonne','13',214,181,23.66,'1453','52848',122,241);
INSERT INTO "communes" VALUES('89','Villeneuve-la-Guyard','22',3166,2577,16.62,'809','53711',52,158);
INSERT INTO "communes" VALUES('89','Coulanges-sur-Yonne','13',556,565,10.58,'1337','52807',137,220);
INSERT INTO "communes" VALUES('89','Rosoy','40',1042,0,5.94,'1084','53501',65,189);
INSERT INTO "communes" VALUES('89','Piffonds','37',591,557,24.55,'900','53395',133,196);
INSERT INTO "communes" VALUES('89','Thorey','15',45,56,6.93,'1984','53226',182,336);
INSERT INTO "communes" VALUES('89','Cerisiers','08',994,904,25.78,'1276','53482',119,247);
INSERT INTO "communes" VALUES('89','Taingy','14',297,254,20.81,'1186','52907',224,386);
INSERT INTO "communes" VALUES('89','Druyes-les-Belles-Fontaines','14',299,288,39.48,'1204','52831',162,347);
INSERT INTO "communes" VALUES('89','Annay-la-Côte','05',360,343,12.92,'1723','52816',160,357);
INSERT INTO "communes" VALUES('89','Guerchy','01',634,465,11.86,'1226','53215',99,182);
INSERT INTO "communes" VALUES('89','Charentenay','12',309,255,14.64,'1343','52944',168,337);
INSERT INTO "communes" VALUES('89','Dixmont','37',888,805,42.18,'1197','53425',115,246);
INSERT INTO "communes" VALUES('89','Asnières-sous-Bois','35',162,166,17.95,'1458','52759',162,272);
INSERT INTO "communes" VALUES('89','Collemiers','30',573,523,10.7,'997','53507',93,194);
INSERT INTO "communes" VALUES('89','Quarré-les-Tombes','23',723,723,46.05,'1845','52631',298,606);
INSERT INTO "communes" VALUES('89','Lixy','22',437,345,12.02,'845','53598',127,191);
INSERT INTO "communes" VALUES('89','Vireaux','02',150,128,14.58,'1903','53096',163,280);
INSERT INTO "communes" VALUES('89','Arces-Dilo','08',610,592,27.02,'1401','53434',198,288);
INSERT INTO "communes" VALUES('89','Sormery','16',372,349,30.56,'1594','53431',155,296);
INSERT INTO "communes" VALUES('89','Égriselles-le-Bocage','30',1239,966,23.69,'939','53467',103,199);
INSERT INTO "communes" VALUES('89','Saint-Julien-du-Sault','26',2364,2348,23.81,'1065','53369',70,194);
INSERT INTO "communes" VALUES('89','Soumaintrain','16',199,202,10.61,'1663','53351',107,160);
INSERT INTO "communes" VALUES('89','Égleny','33',456,399,8.02,'1144','53120',129,256);
INSERT INTO "communes" VALUES('89','Rugny','15',102,120,13.89,'2012','53220',185,353);
INSERT INTO "communes" VALUES('89','Saint-Maurice-le-Vieil','01',317,217,4.93,'1127','53137',123,210);
INSERT INTO "communes" VALUES('89','La Postolle','36',152,136,11.59,'1230','53647',123,227);
INSERT INTO "communes" VALUES('89','Saint-Valérien','11',1668,1541,22.31,'843','53533',137,181);
INSERT INTO "communes" VALUES('89','Seignelay','28',1587,1545,13.47,'1406','53226',88,192);
INSERT INTO "communes" VALUES('89','Hauterive','28',418,347,9.56,'1403','53251',88,156);
INSERT INTO "communes" VALUES('89','Compigny','31',161,117,7.79,'1044','53739',87,157);
INSERT INTO "communes" VALUES('89','Sièges','36',440,447,23.59,'1313','53533',109,257);
INSERT INTO "communes" VALUES('89','Clérimois','36',265,233,12.61,'1227','53587',110,236);
INSERT INTO "communes" VALUES('89','Sennevoy-le-Bas','15',104,114,8.69,'2171','53118',223,263);
INSERT INTO "communes" VALUES('89','<NAME>','10',557,562,30.48,'999','53217',132,233);
INSERT INTO "communes" VALUES('89','Vault-de-Lugny','05',325,327,15.2,'1682','52776',138,351);
INSERT INTO "communes" VALUES('89','Chamvres','19',676,643,5.58,'1138','53286',80,191);
INSERT INTO "communes" VALUES('89','Perrigny-sur-Armançon','02',120,115,14.04,'2111','52988',187,306);
INSERT INTO "communes" VALUES('89','Mont-Saint-Sulpice','28',788,806,19.62,'1433','53280',87,192);
INSERT INTO "communes" VALUES('89','Sens','99',24883,26906,21.92,'1052','53553',62,208);
INSERT INTO "communes" VALUES('89','Pont-sur-Vanne','36',195,184,10.47,'1229','53538',86,233);
INSERT INTO "communes" VALUES('89','Sery','34',114,89,4.26,'1497','52909',117,218);
INSERT INTO "communes" VALUES('89','Gy-l''Évêque','12',465,416,15.02,'1346','53024',165,298);
INSERT INTO "communes" VALUES('89','Mézilles','24',573,557,52.42,'930','53002',191,286);
INSERT INTO "communes" VALUES('89','<NAME>','11',256,193,8.49,'838','53496',151,177);
INSERT INTO "communes" VALUES('89','Champcevrais','06',336,344,32.73,'690','53051',153,206);
INSERT INTO "communes" VALUES('89','Pasilly','21',51,51,9.99,'1935','52997',250,315);
INSERT INTO "communes" VALUES('89','Lucy-sur-Yonne','13',151,135,8.19,'1385','52805',132,210);
INSERT INTO "communes" VALUES('89','Charmoy','39',1173,1209,7.02,'1284','53268',80,147);
INSERT INTO "communes" VALUES('89','Givry','35',177,196,8.43,'1620','52800',132,299);
INSERT INTO "communes" VALUES('89','Chigy','36',286,201,11.76,'1267','53555',90,211);
INSERT INTO "communes" VALUES('89','Sergines','31',1231,1080,18.96,'1028','53714',73,157);
INSERT INTO "communes" VALUES('89','La Celle-Saint-Cyr','26',804,793,18.57,'1059','53303',83,197);
INSERT INTO "communes" VALUES('89','Ormoy','28',680,681,13.33,'1373','53282',84,156);
INSERT INTO "communes" VALUES('89','Beine','09',519,455,21.57,'1539','53132',136,292);
INSERT INTO "communes" VALUES('89','Neuilly','01',419,406,13.39,'1224','53240',87,152);
INSERT INTO "communes" VALUES('89','Junay','32',99,127,3.63,'1791','53198',127,278);
INSERT INTO "communes" VALUES('89','Festigny','13',79,71,5.56,'1334','52838',157,223);
INSERT INTO "communes" VALUES('89','Chablis','09',2338,2596,38.83,'1623','53128',126,311);
INSERT INTO "communes" VALUES('89','Bois-d''Arcy','34',30,34,3.48,'1533','52830',175,288);
INSERT INTO "communes" VALUES('89','Saint-André-en-Terre-Plaine','17',184,186,14.26,'1914','52756',251,336);
INSERT INTO "communes" VALUES('89','Saint-Cyr-les-Colons','09',421,345,34.77,'1557','53047',161,346);
INSERT INTO "communes" VALUES('89','Villeneuve-la-Dondagre','11',241,205,14.55,'888','53487',161,201);
INSERT INTO "communes" VALUES('89','Treigny','27',897,842,52.7,'942','52834',187,367);
INSERT INTO "communes" VALUES('89','Andryes','13',466,445,29.79,'1277','52799',155,275);
INSERT INTO "communes" VALUES('89','Courtoin','11',39,44,6.15,'857','53471',164,190);
INSERT INTO "communes" VALUES('89','Grimault','21',117,117,23.77,'1834','52946',174,296);
INSERT INTO "communes" VALUES('89','Villiers-sur-Tholon','01',486,354,15.5,'1111','53209',104,236);
INSERT INTO "communes" VALUES('89','Vernoy','11',214,180,14.42,'876','53439',169,196);
INSERT INTO "communes" VALUES('89','Courgis','09',260,251,10.04,'1576','53082',169,339);
INSERT INTO "communes" VALUES('89','Poilly-sur-Serein','21',281,261,21.28,'1729','53072',142,288);
INSERT INTO "communes" VALUES('89','Villiers-Vineux','16',297,244,11.18,'1664','53270',109,159);
INSERT INTO "communes" VALUES('89','Nuits','02',415,407,11.58,'2085','53035',179,262);
INSERT INTO "communes" VALUES('89','<NAME>-sur-Oreuse','31',561,410,17.92,'1079','53655',66,185);
INSERT INTO "communes" VALUES('89','Joigny','19',10249,10030,46.67,'1178','53314',74,252);
INSERT INTO "communes" VALUES('89','Brannay','11',728,496,10.81,'868','53589',139,191);
INSERT INTO "communes" VALUES('89','Savigny-en-Terre-Plaine','17',148,149,8.69,'1943','52773',227,294);
INSERT INTO "communes" VALUES('89','Fontaines','33',470,437,25.18,'1025','52992',201,332);
INSERT INTO "communes" VALUES('89','Villeneuve-l''Archevêque','36',1217,1204,6.89,'1355','53595',102,215);
INSERT INTO "communes" VALUES('89','Pourrain','33',1447,1306,23.84,'1195','53061',148,292);
INSERT INTO "communes" VALUES('89','Fournaudin','08',116,131,9.16,'1448','53504',155,254);
INSERT INTO "communes" VALUES('89','Jouancy','21',31,24,5.94,'1886','52981',200,305);
INSERT INTO "communes" VALUES('89','Vallery','11',555,470,12.43,'789','53601',109,164);
INSERT INTO "communes" VALUES('89','Bleigny-le-Carreau','03',306,238,10.29,'1496','53151',149,291);
INSERT INTO "communes" VALUES('89','Ouanne','14',678,660,38.2,'1202','52958',226,371);
INSERT INTO "communes" VALUES('89','Serrigny','32',130,135,7.5,'1753','53150',195,326);
INSERT INTO "communes" VALUES('89','Sainte-Colombe-sur-Loing','27',179,211,14.76,'998','52855',238,345);
INSERT INTO "communes" VALUES('89','Auxerre','98',36200,37820,49.95,'1367','53108',93,217);
INSERT INTO "communes" VALUES('89','Malicorne','10',161,183,15.91,'850','53135',145,195);
INSERT INTO "communes" VALUES('89','Saint-Georges-sur-Baulche','38',3447,3143,9.6,'1329','53117',111,207);
INSERT INTO "communes" VALUES('89','Champlay','19',700,628,21.08,'1227','53279',77,223);
INSERT INTO "communes" VALUES('89','Courgenay','36',562,446,29.87,'1346','53652',110,240);
INSERT INTO "communes" VALUES('89','Chêne-Arnoult','10',123,127,9.1,'814','53225',126,188);
INSERT INTO "communes" VALUES('89','Vézannes','32',46,53,9.01,'1709','53196',155,277);
INSERT INTO "communes" VALUES('89','Saint-Sérotin','22',541,437,14.1,'913','53608',119,195);
INSERT INTO "communes" VALUES('89','Tissey','32',105,117,5.97,'1740','53169',167,278);
INSERT INTO "communes" VALUES('89','Lucy-sur-Cure','34',218,171,10.58,'1563','52921',117,241);
INSERT INTO "communes" VALUES('89','Aigremont','09',72,75,6.82,'1726','53021',176,271);
INSERT INTO "communes" VALUES('89','Senan','01',756,680,17.54,'1136','53237',89,236);
INSERT INTO "communes" VALUES('89','Châtel-Gérard','21',251,253,30.67,'1955','52925',248,363);
INSERT INTO "communes" VALUES('89','Michery','22',1036,845,17.05,'998','53677',58,180);
INSERT INTO "communes" VALUES('89','Thory','05',197,170,8.25,'1752','52850',224,344);
INSERT INTO "communes" VALUES('89','Saint-Aubin-sur-Yonne','19',452,387,8.87,'1121','53335',72,220);
INSERT INTO "communes" VALUES('89','Saint-Martin-sur-Ouanne','10',444,379,15.34,'853','53156',136,202);
INSERT INTO "communes" VALUES('89','Talcy','18',87,63,6.88,'1925','52858',216,320);
INSERT INTO "communes" VALUES('89','Perreux','10',329,270,26.37,'909','53177',147,222);
INSERT INTO "communes" VALUES('89','Perrigny','41',1151,1116,12.62,'1335','53133',95,177);
INSERT INTO "communes" VALUES('89','Carisey','16',372,316,11.29,'1678','53248',121,193);
INSERT INTO "communes" VALUES('89','Saint-Denis-sur-Ouanne','10',126,134,10.21,'882','53136',147,206);
INSERT INTO "communes" VALUES('89','Gisy-les-Nobles','22',603,498,10.91,'1009','53646',60,181);
INSERT INTO "communes" VALUES('89','Fontaine-la-Gaillarde','29',505,489,10.61,'1159','53577',111,234);
INSERT INTO "communes" VALUES('89','Aillant-sur-Tholon','01',1403,1453,18.2,'1127','53194',108,241);
INSERT INTO "communes" VALUES('89','Jully','02',143,142,19.76,'2177','53084',238,321);
INSERT INTO "communes" VALUES('89','Saint-Florentin','25',4771,5747,28.6,'1543','53335',89,192);
INSERT INTO "communes" VALUES('89','Vareilles','36',219,199,10.41,'1261','53528',91,218);
INSERT INTO "communes" VALUES('89','Bierry-les-Belles-Fontaines','17',200,229,26.9,'2053','52885',220,371);
INSERT INTO "communes" VALUES('89','Germigny','25',560,574,11.87,'1605','53328',101,137);
INSERT INTO "communes" VALUES('89','Vassy-sous-Pisy','17',79,96,7.45,'2035','52855',264,377);
INSERT INTO "communes" VALUES('89','Blacy','18',109,90,9.06,'1897','52858',197,331);
INSERT INTO "communes" VALUES('89','Lain','14',163,154,10.18,'1120','52909',217,316);
INSERT INTO "communes" VALUES('90','Courtelevant','02',432,375,5.82,'5270','52797',385,454);
INSERT INTO "communes" VALUES('90','Méziré','13',1407,1254,3.91,'5092','52812',324,395);
INSERT INTO "communes" VALUES('90','Reppe','03',317,235,3.88,'5210','52957',357,399);
INSERT INTO "communes" VALUES('90','Sermamagny','04',815,859,7.9,'4999','52992',384,423);
INSERT INTO "communes" VALUES('90','Belfort','99',50078,50406,17.1,'5014','52935',354,650);
INSERT INTO "communes" VALUES('90','Vauthiermont','03',231,202,4.74,'5218','52983',354,412);
INSERT INTO "communes" VALUES('90','Saint-Germain-le-Châtelet','05',607,525,3.36,'5135','52996',365,540);
INSERT INTO "communes" VALUES('90','Meroux','11',819,661,8.85,'5070','52884',340,406);
INSERT INTO "communes" VALUES('90','Felon','05',256,218,4.11,'5154','53008',364,520);
INSERT INTO "communes" VALUES('90','Bessoncourt','03',926,940,7.8,'5106','52940',340,381);
INSERT INTO "communes" VALUES('90','Bourogne','13',1971,1419,13.71,'5090','52847',327,427);
INSERT INTO "communes" VALUES('90','Grosne','13',323,241,3.65,'5181','52861',345,388);
INSERT INTO "communes" VALUES('90','Phaffans','03',319,315,3.24,'5109','52956',345,381);
INSERT INTO "communes" VALUES('90','Montreux-Château','03',1111,971,4.66,'5183','52900',336,366);
INSERT INTO "communes" VALUES('90','Riervescemont','04',93,50,8.52,'5049','53073',516,1091);
INSERT INTO "communes" VALUES('90','Danjoutin','11',3486,3390,5.65,'5030','52909',342,427);
INSERT INTO "communes" VALUES('90','Béthonvilliers','03',246,217,1.9,'5139','52978',365,407);
INSERT INTO "communes" VALUES('90','Lamadeleine-Val-des-Anges','05',33,33,6.52,'5085','53068',537,1075);
INSERT INTO "communes" VALUES('90','Angeot','03',316,280,6.56,'5197','52996',360,417);
INSERT INTO "communes" VALUES('90','Bermont','10',356,280,2.74,'5019','52867',331,430);
INSERT INTO "communes" VALUES('90','Denney','03',792,638,3.48,'5090','52955',348,430);
INSERT INTO "communes" VALUES('90','Autrechêne','11',312,210,2.96,'5136','52883',333,368);
INSERT INTO "communes" VALUES('90','Menoncourt','03',426,356,4.7,'5119','52967',359,461);
INSERT INTO "communes" VALUES('90','Novillard','11',256,205,3.79,'5149','52897',335,371);
INSERT INTO "communes" VALUES('90','Offemont','15',3395,3975,5.55,'5045','52959',362,494);
INSERT INTO "communes" VALUES('90','Grosmagny','04',548,483,9.46,'5052','53025',401,915);
INSERT INTO "communes" VALUES('90','Vézelois','11',928,705,9.43,'5089','52897',350,412);
INSERT INTO "communes" VALUES('90','Châtenois-les-Forges','10',2696,2681,8.67,'5013','52844',328,415);
INSERT INTO "communes" VALUES('90','Petit-Croix','03',327,307,3.79,'5151','52904',336,376);
INSERT INTO "communes" VALUES('90','Joncherey','02',1328,1309,5.18,'5183','52810',349,401);
INSERT INTO "communes" VALUES('90','Chèvremont','11',1519,1220,8.83,'5096','52921',341,391);
INSERT INTO "communes" VALUES('90','Rivière','03',307,190,4.84,'5179','52974',354,381);
INSERT INTO "communes" VALUES('90','Lepuix','04',1155,1114,29.69,'4975','53067',489,1244);
INSERT INTO "communes" VALUES('90','Charmois','11',293,261,4.17,'5112','52860',330,371);
INSERT INTO "communes" VALUES('90','Fontaine','03',611,524,6.96,'5180','52955',347,378);
INSERT INTO "communes" VALUES('90','Auxelles-Bas','04',477,461,9.41,'4938','53038',430,621);
INSERT INTO "communes" VALUES('90','Froidefontaine','13',472,444,4.55,'5123','52850',330,388);
INSERT INTO "communes" VALUES('90','Cravanche','06',2002,1804,1.35,'4995','52949',373,463);
INSERT INTO "communes" VALUES('90','Roppe','15',844,675,7.43,'5092','52967',353,511);
INSERT INTO "communes" VALUES('90','Fêche-l''Église','12',789,787,3.93,'5128','52784',352,460);
INSERT INTO "communes" VALUES('90','Auxelles-Haut','04',310,305,6.48,'4929','53048',510,1140);
INSERT INTO "communes" VALUES('90','Lachapelle-sous-Rougemont','05',560,460,4.89,'5199','53014',372,403);
INSERT INTO "communes" VALUES('90','Trévenans','10',1150,1038,5.96,'5028','52857',327,422);
INSERT INTO "communes" VALUES('90','Argiésans','10',418,381,2.73,'4984','52893',342,440);
INSERT INTO "communes" VALUES('90','Rougemont-le-Château','05',1392,1198,16.64,'5145','53040',422,1031);
INSERT INTO "communes" VALUES('90','Morvillars','13',1139,966,5.27,'5108','52830',330,403);
INSERT INTO "communes" VALUES('90','Giromagny','04',3187,3298,5.65,'4988','53047',452,800);
INSERT INTO "communes" VALUES('90','Delle','02',5916,6622,9.2,'5179','52785',353,443);
INSERT INTO "communes" VALUES('90','Valdoie','06',5165,4842,4.66,'5006','52964',370,438);
INSERT INTO "communes" VALUES('90','Boron','13',428,349,6.05,'5193','52846',360,397);
INSERT INTO "communes" VALUES('90','Croix','12',162,140,5.41,'5131','52717',548,612);
INSERT INTO "communes" VALUES('90','Moval','11',322,250,1.16,'5050','52874',346,381);
INSERT INTO "communes" VALUES('90','Étueffont','05',1469,1327,12.53,'5095','53021',399,915);
INSERT INTO "communes" VALUES('90','Grandvillars','13',3049,2963,15.17,'5152','52821',339,413);
INSERT INTO "communes" VALUES('90','Suarce','13',449,375,11.81,'5272','52849',370,407);
INSERT INTO "communes" VALUES('90','Pérouse','11',1084,902,4.9,'5060','52930',354,443);
INSERT INTO "communes" VALUES('90','Courcelles','02',125,100,5.32,'5266','52776',385,512);
INSERT INTO "communes" VALUES('90','Botans','10',286,272,2.29,'5015','52885',340,397);
INSERT INTO "communes" VALUES('90','Évette-Salbert','04',2080,2155,9.16,'4957','52972',382,474);
INSERT INTO "communes" VALUES('90','Réchésy','02',814,761,12.61,'5307','52787',397,552);
INSERT INTO "communes" VALUES('90','Bourg-sous-Châtelet','05',128,126,0.84,'5123','53002',386,481);
INSERT INTO "communes" VALUES('90','Cunelières','03',285,229,2.02,'5178','52918',340,366);
INSERT INTO "communes" VALUES('90','Frais','03',246,225,2.81,'5167','52941',346,381);
INSERT INTO "communes" VALUES('90','Leval','05',196,192,6,'5161','53032',393,456);
INSERT INTO "communes" VALUES('90','Bavilliers','10',4923,4581,4.8,'4993','52911',343,433);
INSERT INTO "communes" VALUES('90','Banvillars','10',274,242,4.67,'4976','52880',348,444);
INSERT INTO "communes" VALUES('90','Éloie','15',997,836,5.55,'5041','52989',384,490);
INSERT INTO "communes" VALUES('90','Foussemagne','03',970,602,5.1,'5188','52927',338,376);
INSERT INTO "communes" VALUES('90','Vescemont','04',722,695,7.05,'5009','53048',458,988);
INSERT INTO "communes" VALUES('90','Brebotte','13',337,260,3.78,'5151','52865',334,375);
INSERT INTO "communes" VALUES('90','Vellescot','13',254,164,3.55,'5197','52858',355,387);
INSERT INTO "communes" VALUES('90','Chavanatte','13',164,127,3.86,'5256','52866',359,391);
INSERT INTO "communes" VALUES('90','Essert','06',3169,2743,7.01,'4977','52924',349,511);
INSERT INTO "communes" VALUES('90','Urcerey','10',217,244,3.39,'4969','52898',359,463);
INSERT INTO "communes" VALUES('90','Rougegoutte','04',1007,891,8.07,'5016','53036',426,910);
INSERT INTO "communes" VALUES('90','Romagny-sous-Rougemont','05',209,199,2.47,'5146','53020',390,538);
INSERT INTO "communes" VALUES('90','Petitefontaine','05',193,173,3.13,'5190','53024',383,412);
INSERT INTO "communes" VALUES('90','Petitmagny','04',279,288,2.2,'5068','53024',419,880);
INSERT INTO "communes" VALUES('90','Andelnans','11',1267,1203,4.17,'5036','52892',340,407);
INSERT INTO "communes" VALUES('90','Saint-Dizier-l''Évêque','12',412,367,10.83,'5138','52745',374,615);
INSERT INTO "communes" VALUES('90','Sevenans','11',718,725,2.02,'5032','52873',337,372);
INSERT INTO "communes" VALUES('90','Lebetain','02',451,393,4.84,'5156','52763',380,507);
INSERT INTO "communes" VALUES('90','Lachapelle-sous-Chaux','04',691,625,11.16,'4983','53005',392,605);
INSERT INTO "communes" VALUES('90','Buc','10',306,312,2.44,'4943','52905',364,461);
INSERT INTO "communes" VALUES('90','Grange','03',106,101,0.93,'5158','52978',362,383);
INSERT INTO "communes" VALUES('90','Dorans','10',555,552,3.77,'5002','52875',337,427);
INSERT INTO "communes" VALUES('90','Thiancourt','02',248,219,2.67,'5171','52804',349,424);
INSERT INTO "communes" VALUES('90','Eguenigue','03',264,283,2.49,'5109','52967',351,461);
INSERT INTO "communes" VALUES('90','Faverois','02',516,451,6.5,'5221','52802',360,406);
INSERT INTO "communes" VALUES('90','Anjoutey','05',684,592,7.69,'5106','53001',372,505);
INSERT INTO "communes" VALUES('90','Villars-le-Sec','12',151,123,3.05,'5172','52728',519,621);
INSERT INTO "communes" VALUES('90','Chaux','04',1080,954,9.26,'5001','53006',396,530);
INSERT INTO "communes" VALUES('90','Florimont','02',430,398,18.19,'5257','52790',367,505);
INSERT INTO "communes" VALUES('90','Beaucourt','12',5060,5350,4.95,'5098','52762',375,575);
INSERT INTO "communes" VALUES('90','Vétrigne','15',540,439,2.46,'5064','52965',357,472);
INSERT INTO "communes" VALUES('90','Montbouton','12',410,438,2.81,'5092','52747',420,583);
INSERT INTO "communes" VALUES('90','Fontenelle','11',146,111,1.75,'5133','52913',338,369);
INSERT INTO "communes" VALUES('90','Chavannes-les-Grands','13',318,291,6.93,'5234','52879',354,385);
INSERT INTO "communes" VALUES('90','Lacollonge','03',256,220,1.92,'5137','52960',354,381);
INSERT INTO "communes" VALUES('90','Bretagne','13',248,191,4.67,'5179','52884',335,377);
INSERT INTO "communes" VALUES('90','Lepuix-Neuf','02',285,242,5.46,'5292','52822',389,418);
INSERT INTO "communes" VALUES('90','Recouvrance','13',75,63,1.5,'5161','52860',340,382);
INSERT INTO "communes" VALUES('91','Janvry','13',584,530,8.24,'-204','54053',113,172);
INSERT INTO "communes" VALUES('91','Brunoy','05',25377,23642,6.62,'185','54109',37,94);
INSERT INTO "communes" VALUES('91','Boissy-sous-Saint-Yon','24',3731,3566,8.04,'-141','53951',69,156);
INSERT INTO "communes" VALUES('91','Villebon-sur-Yvette','35',9625,9372,7.41,'-102','54113',43,164);
INSERT INTO "communes" VALUES('91','Monnerville','17',401,351,8.31,'-324','53719',115,146);
INSERT INTO "communes" VALUES('91','Gironville-sur-Essonne','18',806,641,13.21,'46','53748',62,146);
INSERT INTO "communes" VALUES('91','Saint-Hilaire','08',380,379,6.79,'-289','53815',82,154);
INSERT INTO "communes" VALUES('91','Évry','97',52135,49397,8.33,'119','54038',32,95);
INSERT INTO "communes" VALUES('91','Leudeville','04',1374,1187,7.84,'-12','53962',74,87);
INSERT INTO "communes" VALUES('91','Valpuiseaux','08',619,513,18.7,'-36','53771',71,147);
INSERT INTO "communes" VALUES('91','Dourdan','07',9984,9554,30.64,'-362','53921',87,163);
INSERT INTO "communes" VALUES('91','Estouches','17',207,182,5.98,'-225','53670',124,138);
INSERT INTO "communes" VALUES('91','Draveil','29',28491,28097,15.75,'81','54096',32,87);
INSERT INTO "communes" VALUES('91','Marolles-en-Beauce','17',218,190,6,'-151','53750',123,149);
INSERT INTO "communes" VALUES('91','Mennecy','16',13395,12822,11.09,'111','53962',42,97);
INSERT INTO "communes" VALUES('91','Grigny','40',26638,24499,4.87,'57','54063',32,84);
INSERT INTO "communes" VALUES('91','Vert-le-Petit','16',2636,2426,6.83,'34','53947',47,77);
INSERT INTO "communes" VALUES('91','Oncy-sur-École','18',958,877,5.37,'152','53759',62,132);
INSERT INTO "communes" VALUES('91','Guillerval','17',766,708,17.3,'-261','53738',80,151);
INSERT INTO "communes" VALUES('91','Wissous','28',5805,5158,9.11,'-10','54146',48,99);
INSERT INTO "communes" VALUES('91','Vayres-sur-Essonne','11',893,809,8.46,'25','53814',57,145);
INSERT INTO "communes" VALUES('91','Abbéville-la-Rivière','17',283,261,15.02,'-189','53718',77,147);
INSERT INTO "communes" VALUES('91','Avrainville','01',737,653,9.14,'-98','53958',81,154);
INSERT INTO "communes" VALUES('91','Ris-Orangis','23',27463,24437,8.71,'85','54057',32,82);
INSERT INTO "communes" VALUES('91','Bures-sur-Yvette','21',9535,9677,4.17,'-195','54107',56,163);
INSERT INTO "communes" VALUES('91','Palaiseau','22',30285,28959,11.51,'-96','54131',47,159);
INSERT INTO "communes" VALUES('91','Arpajon','01',10574,9059,2.4,'-99','53989',47,89);
INSERT INTO "communes" VALUES('91','Guigneville-sur-Essonne','11',926,746,9.19,'18','53853',53,146);
INSERT INTO "communes" VALUES('91','Épinay-sur-Orge','14',10104,9366,4.44,'-10','54082',36,89);
INSERT INTO "communes" VALUES('91','Blandy','17',115,106,7.91,'-88','53682',125,147);
INSERT INTO "communes" VALUES('91','Boussy-Saint-Antoine','38',6292,6361,2.9,'218','54101',39,90);
INSERT INTO "communes" VALUES('91','Villabé','06',4869,4826,4.56,'133','53987',40,89);
INSERT INTO "communes" VALUES('91','<NAME>','20',7138,5892,3.62,'-75','54067',82,162);
INSERT INTO "communes" VALUES('91','Angervilliers','24',1645,1381,9.01,'-301','53992',77,163);
INSERT INTO "communes" VALUES('91','Écharcon','16',793,578,6.81,'83','53969',44,115);
INSERT INTO "communes" VALUES('91','Ormoy','16',1858,1243,1.88,'123','53973',42,88);
INSERT INTO "communes" VALUES('91','Cerny','11',3294,3069,17.13,'-9','53863',52,152);
INSERT INTO "communes" VALUES('91','Verrières-le-Buisson','03',15418,15929,9.91,'-82','54164',52,174);
INSERT INTO "communes" VALUES('91','Boissy-le-Cutté','11',1324,1199,4.58,'-58','53857',72,148);
INSERT INTO "communes" VALUES('91','Crosne','36',9143,8148,2.48,'139','54127',30,92);
INSERT INTO "communes" VALUES('91','Moigny-sur-École','18',1302,1284,12.23,'134','53814',57,144);
INSERT INTO "communes" VALUES('91','Longpont-sur-Orge','20',6561,5843,5.05,'-50','54048',37,96);
INSERT INTO "communes" VALUES('91','Mondeville','11',680,692,6.7,'88','53879',81,156);
INSERT INTO "communes" VALUES('91','Saint-Michel-sur-Orge','33',20046,20376,5.29,'-38','54036',38,91);
INSERT INTO "communes" VALUES('91','Ballainvilliers','35',3795,2750,4.01,'-45','54084',60,106);
INSERT INTO "communes" VALUES('91','Villejust','35',2247,1657,5.36,'-111','54092',121,167);
INSERT INTO "communes" VALUES('91','Saint-Escobille','07',460,492,12,'-412','53811',140,156);
INSERT INTO "communes" VALUES('91','Saint-Pierre-du-Perray','32',8350,5797,11.59,'176','54014',32,93);
INSERT INTO "communes" VALUES('91','Mérobert','07',547,457,10.71,'-366','53795',128,154);
INSERT INTO "communes" VALUES('91','Ballancourt-sur-Essonne','16',7399,6283,11.3,'54','53917',47,142);
INSERT INTO "communes" VALUES('91','Maisse','18',2661,2623,21.58,'44','53772',59,147);
INSERT INTO "communes" VALUES('91','Chamarande','09',1091,1017,5.74,'-134','53906',62,155);
INSERT INTO "communes" VALUES('91','Milly-la-Forêt','18',4741,4604,33.8,'145','53782',60,135);
INSERT INTO "communes" VALUES('91','Breux-Jouy','24',1216,1259,4.68,'-202','53955',55,151);
INSERT INTO "communes" VALUES('91','<NAME>','04',4036,2926,7.58,'-8','54016',76,83);
INSERT INTO "communes" VALUES('91','Auvers-Saint-Georges','09',1204,1053,12.99,'-130','53880',63,156);
INSERT INTO "communes" VALUES('91','Auvernaux','16',338,257,6.5,'174','53921',72,92);
INSERT INTO "communes" VALUES('91','Morsang-sur-Seine','32',510,380,4.39,'173','53968',32,93);
INSERT INTO "communes" VALUES('91','Vigneux-sur-Seine','34',27331,25663,8.77,'90','54112',31,84);
INSERT INTO "communes" VALUES('91','Champcueil','16',2790,2535,16.35,'123','53906',77,156);
INSERT INTO "communes" VALUES('91','Courcouronnes','39',13812,13965,4.37,'78','54020',77,96);
INSERT INTO "communes" VALUES('91','Boigneville','18',416,461,15.8,'39','53706',67,143);
INSERT INTO "communes" VALUES('91','Étréchy','09',6295,6104,14.06,'-162','53881',63,156);
INSERT INTO "communes" VALUES('91','Authon-la-Plaine','07',360,306,10.59,'-422','53834',147,157);
INSERT INTO "communes" VALUES('91','Boissy-la-Rivière','17',551,453,12.47,'-202','53750',70,147);
INSERT INTO "communes" VALUES('91','Saintry-sur-Seine','32',5093,4999,3.29,'178','53990',32,92);
INSERT INTO "communes" VALUES('91','Montlhéry','20',6840,5687,3.28,'-71','54043',64,152);
INSERT INTO "communes" VALUES('91','Fleury-Mérogis','31',9121,9087,6.51,'28','54033',76,101);
INSERT INTO "communes" VALUES('91','Saint-Sulpice-de-Favières','24',324,315,4.37,'-174','53935',62,159);
INSERT INTO "communes" VALUES('91','Varennes-Jarcy','38',2373,1907,5.48,'248','54087',42,94);
INSERT INTO "communes" VALUES('91','Videlles','11',660,561,8.7,'106','53849',81,149);
INSERT INTO "communes" VALUES('91','Quincy-sous-Sénart','38',8048,7415,5.2,'219','54079',42,89);
INSERT INTO "communes" VALUES('91','Orveau','11',197,183,4.3,'-49','53831',64,147);
INSERT INTO "communes" VALUES('91','Granges-le-Roi','07',1067,873,12.68,'-353','53891',97,158);
INSERT INTO "communes" VALUES('91','Gometz-le-Châtel','13',2588,1849,5.05,'-220','54087',83,169);
INSERT INTO "communes" VALUES('91','Boutigny-sur-Essonne','11',3103,3000,16.2,'45','53818',57,147);
INSERT INTO "communes" VALUES('91','Méréville','17',3221,3075,26.99,'-278','53683',82,142);
INSERT INTO "communes" VALUES('91','Boutervilliers','08',366,293,7.01,'-312','53836',88,155);
INSERT INTO "communes" VALUES('91','Mauchamps','09',286,273,3.16,'-158','53923',122,156);
INSERT INTO "communes" VALUES('91','Igny','22',10336,9375,3.82,'-123','54158',62,154);
INSERT INTO "communes" VALUES('91','Viry-Châtillon','27',32045,30241,6.07,'44','54077',32,84);
INSERT INTO "communes" VALUES('91','Bouville','08',616,539,20.53,'-75','53813',66,152);
INSERT INTO "communes" VALUES('91','Étampes','08',23158,21842,40.92,'-194','53817',66,156);
INSERT INTO "communes" VALUES('91','Gometz-la-Ville','13',1374,984,9.86,'-232','54080',92,176);
INSERT INTO "communes" VALUES('91','Arrancourt','17',128,133,7.4,'-195','53714',77,137);
INSERT INTO "communes" VALUES('91','Bièvres','03',4643,4017,9.69,'-135','54173',68,178);
INSERT INTO "communes" VALUES('91','D''Huison-Longueville','11',1409,1233,10.04,'-18','53842',53,145);
INSERT INTO "communes" VALUES('91','Chatignonville','07',56,89,5.13,'-450','53853',152,159);
INSERT INTO "communes" VALUES('91','Dannemois','18',840,680,8.43,'156','53836',51,138);
INSERT INTO "communes" VALUES('91','Chevannes','16',1641,1401,10.23,'119','53924',72,98);
INSERT INTO "communes" VALUES('91','Forges-les-Bains','13',3723,3230,14.58,'-264','54031',92,169);
INSERT INTO "communes" VALUES('91','Angerville','17',3753,3262,25.83,'-376','53678',113,146);
INSERT INTO "communes" VALUES('91','Corbeil-Essonnes','96',43086,39384,11.01,'154','54011',32,92);
INSERT INTO "communes" VALUES('91','Le Val-Saint-Germain','24',1460,1438,12.57,'-303','53961',62,159);
INSERT INTO "communes" VALUES('91','Puiselet-le-Marais','08',270,324,11.27,'-83','53784',70,143);
INSERT INTO "communes" VALUES('91','Bois-Herpin','17',75,57,3.89,'-113','53744',94,142);
INSERT INTO "communes" VALUES('91','Orsay','21',15966,16219,7.97,'-166','54109',51,160);
INSERT INTO "communes" VALUES('91','Tigery','32',2757,1258,8.64,'191','54045',58,88);
INSERT INTO "communes" VALUES('91','Fontenay-le-Vicomte','16',1273,885,6.83,'69','53941',46,84);
INSERT INTO "communes" VALUES('91','Massy','98',42258,37704,9.43,'-67','54145',55,110);
INSERT INTO "communes" VALUES('91','<NAME>-Alais','11',3985,3547,4.55,'13','53870',53,142);
INSERT INTO "communes" VALUES('91','Yerres','36',29050,27439,9.84,'171','54129',32,116);
INSERT INTO "communes" VALUES('91','Paray-Vieille-Poste','02',7111,7195,6.14,'29','54120',82,94);
INSERT INTO "communes" VALUES('91','Saint-Germain-lès-Arpajon','01',9338,8247,6.31,'-90','53995',42,101);
INSERT INTO "communes" VALUES('91','Saint-Maurice-Montcouronne','24',1641,1359,9.03,'-234','53981',54,157);
INSERT INTO "communes" VALUES('91','Gif-sur-Yvette','30',20654,21352,11.6,'-225','54113',57,172);
INSERT INTO "communes" VALUES('91','Pussay','17',1963,1724,11.55,'-382','53721',122,147);
INSERT INTO "communes" VALUES('91','Morangis','28',12136,10611,4.8,'-2','54118',47,100);
INSERT INTO "communes" VALUES('91','Villiers-sur-Orge','14',3891,3752,1.78,'-37','54064',37,89);
INSERT INTO "communes" VALUES('91','La Forêt-Sainte-Croix','17',155,109,5.36,'-118','53761',99,144);
INSERT INTO "communes" VALUES('91','Guibeville','01',719,654,2.61,'-73','53968',84,90);
INSERT INTO "communes" VALUES('91','Chilly-Mazarin','28',18484,17731,5.57,'-23','54117',42,101);
INSERT INTO "communes" VALUES('91','Champmotteux','17',376,241,7.57,'-19','53715',102,147);
INSERT INTO "communes" VALUES('91','Bouray-sur-Juine','09',1962,1870,7.23,'-43','53911',53,139);
INSERT INTO "communes" VALUES('91','Soisy-sur-École','18',1357,1321,11.52,'176','53861',48,144);
INSERT INTO "communes" VALUES('91','Souzy-la-Briche','09',382,432,7.33,'-209','53921',73,157);
INSERT INTO "communes" VALUES('91','La Norville','01',4075,3957,4.52,'-85','53984',47,99);
INSERT INTO "communes" VALUES('91','Épinay-sous-Sénart','38',12171,12768,3.58,'199','54104',37,87);
INSERT INTO "communes" VALUES('91','Brières-les-Scellés','08',1026,843,8.65,'-219','53842',70,153);
INSERT INTO "communes" VALUES('91','Nainville-les-Roches','16',454,459,5.93,'176','53895',74,84);
INSERT INTO "communes" VALUES('91','Ulis','43',24792,25781,5.18,'-188','54091',87,170);
INSERT INTO "communes" VALUES('91','Athis-Mons','02',30393,29400,8.56,'59','54121',32,92);
INSERT INTO "communes" VALUES('91','Leuville-sur-Orge','01',4099,3757,2.49,'-80','54019',42,92);
INSERT INTO "communes" VALUES('91','Soisy-sur-Seine','32',7048,7070,8.56,'128','54052',32,86);
INSERT INTO "communes" VALUES('91','Fontenay-lès-Briis','13',1882,1707,9.72,'-201','54022',59,170);
INSERT INTO "communes" VALUES('91','Saint-Cyr-la-Rivière','17',501,428,8.81,'-210','53729',72,146);
INSERT INTO "communes" VALUES('91','Lisses','10',7173,7205,10.4,'100','53998',38,89);
INSERT INTO "communes" VALUES('91','Baulne','11',1316,1379,8.17,'26','53880',49,144);
INSERT INTO "communes" VALUES('91','Briis-sous-Forges','13',3364,3212,10.86,'-236','54027',87,173);
INSERT INTO "communes" VALUES('91','Nozay','20',4731,4277,7.34,'-104','54067',95,168);
INSERT INTO "communes" VALUES('91','Ormoy-la-Rivière','08',941,943,10.29,'-208','53782',67,147);
INSERT INTO "communes" VALUES('91','Champlan','35',2525,2460,3.68,'-69','54121',43,125);
INSERT INTO "communes" VALUES('91','Roinvilliers','17',92,61,7.16,'-106','53729',118,142);
INSERT INTO "communes" VALUES('91','Richarville','07',408,399,10.35,'-373','53857',117,154);
INSERT INTO "communes" VALUES('91','Courson-Monteloup','13',595,585,3.74,'-213','53992',72,104);
INSERT INTO "communes" VALUES('91','Congerville-Thionville','17',222,225,8.47,'-380','53753',113,151);
INSERT INTO "communes" VALUES('91','Marcoussis','20',7909,7210,16.8,'-119','54046',65,172);
INSERT INTO "communes" VALUES('91','Boullay-les-Troux','13',649,581,4.8,'-320','54087',99,177);
INSERT INTO "communes" VALUES('91','<NAME>','07',481,357,7.94,'-327','53865',108,156);
INSERT INTO "communes" VALUES('91','Vaugrigneuse','13',1269,1085,6.06,'-238','54003',70,129);
INSERT INTO "communes" VALUES('91','Janville-sur-Juine','09',1863,1788,10.67,'-75','53907',59,152);
INSERT INTO "communes" VALUES('91','Étiolles','32',3073,2544,11.65,'151','54040',32,86);
INSERT INTO "communes" VALUES('91','Linas','20',6479,4982,7.51,'-77','54037',46,168);
INSERT INTO "communes" VALUES('91','Saclas','17',1806,1662,13.66,'-235','53733',72,147);
INSERT INTO "communes" VALUES('91','Chauffour-lès-Étréchy','09',135,119,4.8,'-186','53894',95,159);
INSERT INTO "communes" VALUES('91','Saint-Jean-de-Beauregard','20',278,283,3.97,'-188','54071',100,169);
INSERT INTO "communes" VALUES('91','Morsang-sur-Orge','31',20944,19326,4.39,'16','54071',36,81);
INSERT INTO "communes" VALUES('91','Juvisy-sur-Orge','41',14634,11954,2.24,'46','54098',32,92);
INSERT INTO "communes" VALUES('91','Chalo-Saint-Mars','08',1143,1093,28.67,'-300','53808',81,152);
INSERT INTO "communes" VALUES('91','Vauhallan','03',1985,2060,3.34,'-143','54149',80,154);
INSERT INTO "communes" VALUES('91','Chalou-Moulineux','17',418,370,10.47,'-350','53761',96,148);
INSERT INTO "communes" VALUES('91','Vert-le-Grand','16',2410,1910,15.93,'24','53969',54,121);
INSERT INTO "communes" VALUES('91','Montgeron','19',22880,21884,11.22,'132','54119',31,88);
INSERT INTO "communes" VALUES('91','Saulx-les-Chartreux','35',5048,4950,7.65,'-78','54103',43,158);
INSERT INTO "communes" VALUES('91','Pecqueuse','13',623,587,7.4,'-320','54052',133,178);
INSERT INTO "communes" VALUES('91','Corbreuse','07',1703,1485,15.79,'-417','53888',104,160);
INSERT INTO "communes" VALUES('91','Brétigny-sur-Orge','04',23334,21503,14.56,'-32','54011',41,97);
INSERT INTO "communes" VALUES('91','Boissy-le-Sec','08',671,624,19.06,'-274','53864',92,157);
INSERT INTO "communes" VALUES('91','Villemoisson-sur-Orge','14',6950,6872,2.31,'-6','54072',36,79);
INSERT INTO "communes" VALUES('91','Saint-Chéron','24',4799,4445,11.44,'-235','53948',62,159);
INSERT INTO "communes" VALUES('91','Bondoufle','10',9298,9156,6.76,'49','54015',77,95);
INSERT INTO "communes" VALUES('91','<NAME>','16',4708,2808,11.44,'166','53962',32,100);
INSERT INTO "communes" VALUES('91','Roinville','07',1242,888,13.4,'-324','53924',82,163);
INSERT INTO "communes" VALUES('91','Brouy','17',125,112,8.39,'-64','53686',114,147);
INSERT INTO "communes" VALUES('91','Saint-Vrain','04',2813,2801,11.57,'-2','53935',51,83);
INSERT INTO "communes" VALUES('91','Sermaise','24',1680,1471,13.6,'-284','53929',71,159);
INSERT INTO "communes" VALUES('91','Saint-Aubin','03',690,695,3.57,'-217','54126',90,164);
INSERT INTO "communes" VALUES('91','Villeneuve-sur-Auvers','09',600,600,7.07,'-97','53862',85,157);
INSERT INTO "communes" VALUES('91','Saclay','03',3241,2882,13.65,'-181','54145',108,161);
INSERT INTO "communes" VALUES('91','Égly','01',5323,5320,3.95,'-125','53978',47,94);
INSERT INTO "communes" VALUES('91','Morigny-Champigny','08',4311,3918,30.85,'-170','53829',63,156);
INSERT INTO "communes" VALUES('91','Prunay-sur-Essonne','18',310,286,5.14,'41','53731',65,146);
INSERT INTO "communes" VALUES('91','Saint-Germain-lès-Corbeil','32',7174,7059,4.93,'170','54023',34,93);
INSERT INTO "communes" VALUES('91','Buno-Bonnevaux','18',476,517,15.99,'57','53735',63,141);
INSERT INTO "communes" VALUES('91','Torfou','09',272,248,3.5,'-122','53924',94,155);
INSERT INTO "communes" VALUES('91','Fontaine-la-Rivière','17',203,172,3.69,'-202','53729',74,149);
INSERT INTO "communes" VALUES('91','Itteville','11',6575,5352,12.2,'6','53905',47,141);
INSERT INTO "communes" VALUES('91','Breuillet','24',8319,7330,6.69,'-183','53962',50,116);
INSERT INTO "communes" VALUES('91','Villiers-le-Bâcle','03',1204,1092,6.03,'-234','54140',80,161);
INSERT INTO "communes" VALUES('91','Cheptainville','01',1905,1462,7.15,'-76','53944',77,152);
INSERT INTO "communes" VALUES('91','Lardy','09',5528,4377,7.63,'-79','53914',57,154);
INSERT INTO "communes" VALUES('91','Marolles-en-Hurepoix','04',4812,4665,6.47,'-42','53958',77,89);
INSERT INTO "communes" VALUES('91','Villeconin','09',728,636,14.45,'-237','53904',82,157);
INSERT INTO "communes" VALUES('91','Sainte-Geneviève-des-Bois','25',34195,32128,9.27,'-5','54042',37,90);
INSERT INTO "communes" VALUES('91','Bruyères-le-Châtel','01',3187,3008,12.9,'-161','53992',48,168);
INSERT INTO "communes" VALUES('91','Savigny-sur-Orge','99',36842,36219,6.97,'18','54082',33,99);
INSERT INTO "communes" VALUES('91','Saint-Cyr-sous-Dourdan','24',1011,951,9.89,'-334','53965',72,160);
INSERT INTO "communes" VALUES('91','Ollainville','01',4550,3918,11.33,'-130','53989',46,168);
INSERT INTO "communes" VALUES('91','Mespuits','17',191,156,9.95,'-72','53730',93,145);
INSERT INTO "communes" VALUES('91','Plessis-Saint-Benoist','07',308,273,9.16,'-367','53826',117,152);
INSERT INTO "communes" VALUES('91','Courdimanche-sur-Essonne','18',269,251,5.62,'46','53798',58,146);
INSERT INTO "communes" VALUES('91','Courances','18',352,350,8.31,'154','53822',54,127);
INSERT INTO "communes" VALUES('91','Limours','13',6459,6471,14.25,'-289','54051',100,177);
INSERT INTO "communes" VALUES('91','Molières','13',1961,1652,7.02,'-297','54080',100,177);
INSERT INTO "communes" VALUES('91','Longjumeau','14',21361,19978,4.84,'-46','54108',40,93);
INSERT INTO "communes" VALUES('91','Saint-Yon','24',909,811,4.66,'-168','53958',52,154);
INSERT INTO "communes" VALUES('92','Neuilly-sur-Seine','98',61754,59874,3.73,'-77','54319',27,39);
INSERT INTO "communes" VALUES('92','Châtillon','10',32619,28592,2.92,'-53','54224',78,164);
INSERT INTO "communes" VALUES('92','Bois-Colombes','05',29284,23902,1.92,'-76','54353',28,43);
INSERT INTO "communes" VALUES('92','Puteaux','33',44753,40871,3.19,'-109','54316',29,78);
INSERT INTO "communes" VALUES('92','Clamart','90',52546,48619,8.77,'-83','54223',64,175);
INSERT INTO "communes" VALUES('92','Meudon','96',45058,43694,9.9,'-107','54231',28,179);
INSERT INTO "communes" VALUES('92','Marnes-la-Coquette','11',1647,1504,3.48,'-177','54256',105,178);
INSERT INTO "communes" VALUES('92','Issy-les-Moulineaux','94',64355,52642,4.25,'-75','54248',28,96);
INSERT INTO "communes" VALUES('92','Vaucresson','11',8615,8130,3.08,'-204','54269',132,178);
INSERT INTO "communes" VALUES('92','Rueil-Malmaison','99',79426,73599,14.7,'-165','54309',24,164);
INSERT INTO "communes" VALUES('92','Antony','87',61793,59849,9.56,'-44','54170',45,103);
INSERT INTO "communes" VALUES('92','<NAME>','32',27727,21614,3.43,'-81','54204',86,172);
INSERT INTO "communes" VALUES('92','Levallois-Perret','95',64253,54750,2.41,'-54','54326',23,34);
INSERT INTO "communes" VALUES('92','Boulogne-Billancourt','89',114205,106316,6.17,'-106','54262',28,40);
INSERT INTO "communes" VALUES('92','Asnières-sur-Seine','88',82327,75832,4.82,'-57','54346',22,43);
INSERT INTO "communes" VALUES('92','Colombes','92',85398,76690,7.81,'-94','54360',23,44);
INSERT INTO "communes" VALUES('92','Fontenay-aux-Roses','43',23351,23547,2.51,'-57','54210',58,164);
INSERT INTO "communes" VALUES('92','Garches','18',18169,18026,2.69,'-166','54273',98,164);
INSERT INTO "communes" VALUES('92','Villeneuve-la-Garenne','40',25183,22308,3.2,'-10','54375',22,31);
INSERT INTO "communes" VALUES('92','Courbevoie','93',87469,69665,4.17,'-94','54330',25,56);
INSERT INTO "communes" VALUES('92','Montrouge','27',48597,37716,2.07,'-17','54241',67,85);
INSERT INTO "communes" VALUES('92','Châtenay-Malabry','85',32111,30556,6.38,'-65','54184',65,172);
INSERT INTO "communes" VALUES('92','Clichy','91',58916,50237,3.08,'-35','54337',23,35);
INSERT INTO "communes" VALUES('92','Vanves','39',27002,25416,1.56,'-53','54244',35,78);
INSERT INTO "communes" VALUES('92','Ville-d''Avray','11',10828,11393,3.67,'-159','54251',86,178);
INSERT INTO "communes" VALUES('92','Suresnes','38',46723,39697,3.79,'-122','54301',29,163);
INSERT INTO "communes" VALUES('92','Sèvres','37',22978,22555,3.91,'-140','54248',27,171);
INSERT INTO "communes" VALUES('92','Sceaux','36',19638,19398,3.6,'-51','54198',53,103);
INSERT INTO "communes" VALUES('92','Chaville','11',18668,17956,3.55,'-164','54232',63,173);
INSERT INTO "communes" VALUES('92','La Garenne-Colombes','19',27628,24072,1.78,'-103','54339',37,46);
INSERT INTO "communes" VALUES('92','Gennevilliers','86',41364,42344,11.64,'-35','54369',21,33);
INSERT INTO "communes" VALUES('92','Nanterre','97',89185,84270,12.19,'-148','54323',22,127);
INSERT INTO "communes" VALUES('92','Saint-Cloud','35',29873,28164,7.56,'-135','54274',28,164);
INSERT INTO "communes" VALUES('92','Malakoff','25',30982,29419,2.07,'-42','54241',64,95);
INSERT INTO "communes" VALUES('92','Bagneux','04',38080,37215,4.19,'-27','54220',55,111);
INSERT INTO "communes" VALUES('92','Bourg-la-Reine','09',19985,18246,1.86,'-23','54198',43,77);
INSERT INTO "communes" VALUES('93','Le Bourget','09',14864,12134,2.08,'98','54372',38,48);
INSERT INTO "communes" VALUES('93','Bagnolet','05',33883,32424,2.57,'89','54297',57,119);
INSERT INTO "communes" VALUES('93','<NAME>','10',38007,35301,7.52,'66','54368',29,60);
INSERT INTO "communes" VALUES('93','Pavillons-sous-Bois','22',21746,18411,2.92,'193','54340',50,64);
INSERT INTO "communes" VALUES('93','Sevran','31',49832,47029,7.28,'207','54379',46,66);
INSERT INTO "communes" VALUES('93','Villemomble','34',28006,26967,4.04,'194','54323',47,110);
INSERT INTO "communes" VALUES('93','Montreuil','96',102770,90735,8.92,'118','54289',52,117);
INSERT INTO "communes" VALUES('93','Livry-Gargan','14',41808,37283,7.38,'221','54354',54,125);
INSERT INTO "communes" VALUES('93','Aulnay-sous-Bois','93',82120,80030,16.2,'174','54374',40,78);
INSERT INTO "communes" VALUES('93','Dugny','09',10656,8635,3.89,'89','54393',33,47);
INSERT INTO "communes" VALUES('93','Coubron','15',4733,4620,4.14,'268','54350',61,126);
INSERT INTO "communes" VALUES('93','Villetaneuse','39',12592,11354,2.31,'8','54405',34,85);
INSERT INTO "communes" VALUES('93','<NAME>','24',13828,12964,2.24,'207','54332',56,114);
INSERT INTO "communes" VALUES('93','Saint-Denis','98',106785,85994,12.36,'19','54373',23,46);
INSERT INTO "communes" VALUES('93','Lilas','23',22228,20207,1.26,'89','54311',75,131);
INSERT INTO "communes" VALUES('93','Clichy-sous-Bois','24',29750,28274,3.95,'234','54344',66,121);
INSERT INTO "communes" VALUES('93','Noisy-le-Grand','19',62964,58193,12.95,'246','54271',36,113);
INSERT INTO "communes" VALUES('93','Romainville','25',25771,23774,3.44,'111','54315',54,123);
INSERT INTO "communes" VALUES('93','Aubervilliers','92',76087,63130,5.76,'51','54346',33,46);
INSERT INTO "communes" VALUES('93','Noisy-le-Sec','20',39733,37323,5.04,'130','54323',51,120);
INSERT INTO "communes" VALUES('93','Villepinte','40',35658,33795,10.37,'215','54401',54,81);
INSERT INTO "communes" VALUES('93','Bobigny','07',47492,44118,6.77,'114','54344',39,57);
INSERT INTO "communes" VALUES('93','Pierrefitte-sur-Seine','39',27883,25789,3.41,'27','54405',37,97);
INSERT INTO "communes" VALUES('93','Tremblay-en-France','33',34493,33852,22.44,'267','54396',58,117);
INSERT INTO "communes" VALUES('93','Vaujours','15',6452,5559,3.78,'262','54371',61,127);
INSERT INTO "communes" VALUES('93','Montfermeil','15',25269,24102,5.45,'254','54332',62,117);
INSERT INTO "communes" VALUES('93','L''Île-Saint-Denis','29',7025,6822,1.77,'3','54373',22,33);
INSERT INTO "communes" VALUES('93','Le Pré-Saint-Gervais','23',18045,16357,0.7,'75','54317',57,114);
INSERT INTO "communes" VALUES('93','Stains','32',33829,32826,5.39,'51','54395',29,61);
INSERT INTO "communes" VALUES('93','Pantin','97',54136,49919,5.01,'79','54331',38,108);
INSERT INTO "communes" VALUES('93','Neuilly-Plaisance','18',20508,18244,3.42,'193','54290',37,117);
INSERT INTO "communes" VALUES('93','Rosny-sous-Bois','26',41050,39097,5.91,'165','54304',45,116);
INSERT INTO "communes" VALUES('93','Saint-Ouen','99',47189,39719,4.31,'-4','54341',22,48);
INSERT INTO "communes" VALUES('93','Gournay-sur-Marne','19',6406,5921,1.68,'266','54289',37,61);
INSERT INTO "communes" VALUES('93','Bondy','94',53530,46829,5.47,'163','54336',44,65);
INSERT INTO "communes" VALUES('93','Épinay-sur-Seine','12',54518,46558,4.57,'-31','54394',22,60);
INSERT INTO "communes" VALUES('93','Neuilly-sur-Marne','37',33498,32755,6.86,'216','54287',36,80);
INSERT INTO "communes" VALUES('93','Drancy','95',66410,62271,7.76,'121','54359',39,51);
INSERT INTO "communes" VALUES('93','<NAME>','06',51438,46838,8.05,'138','54376',37,49);
INSERT INTO "communes" VALUES('93','Gagny','13',39056,36775,6.83,'225','54313',37,120);
INSERT INTO "communes" VALUES('94','Fontenay-sous-Bois','91',53145,50865,5.58,'156','54280',44,111);
INSERT INTO "communes" VALUES('94','Santeny','26',3724,3138,9.91,'262','54140',60,105);
INSERT INTO "communes" VALUES('94','L''Haÿ-les-Roses','12',30201,29703,3.9,'1','54199',42,109);
INSERT INTO "communes" VALUES('94','Limeil-Brévannes','02',19901,17525,6.93,'169','54163',35,94);
INSERT INTO "communes" VALUES('94','Alfortville','86',44201,36319,3.67,'97','54220',27,37);
INSERT INTO "communes" VALUES('94','<NAME>','38',19194,16651,4.32,'261','54235',88,111);
INSERT INTO "communes" VALUES('94','Choisy-le-Roi','09',40905,34324,5.43,'79','54185',31,49);
INSERT INTO "communes" VALUES('94','Saint-Mandé','22',22396,19677,0.92,'90','54268',42,54);
INSERT INTO "communes" VALUES('94','Fresnes','37',26248,25226,3.56,'-14','54177',45,89);
INSERT INTO "communes" VALUES('94','Villiers-sur-Marne','38',27338,26626,4.33,'231','54253',66,103);
INSERT INTO "communes" VALUES('94','<NAME>','16',26046,23709,1.54,'24','54233',45,115);
INSERT INTO "communes" VALUES('94','Boissy-Saint-Léger','02',16705,15280,8.94,'193','54167',37,102);
INSERT INTO "communes" VALUES('94','<NAME>','44',11381,10868,9.16,'267','54211',69,107);
INSERT INTO "communes" VALUES('94','Ormesson-sur-Marne','44',9904,9792,3.41,'224','54207',44,108);
INSERT INTO "communes" VALUES('94','Arcueil','34',19775,18064,2.33,'-1','54230',42,105);
INSERT INTO "communes" VALUES('94','Marolles-en-Brie','26',4968,5190,4.59,'238','54147',57,102);
INSERT INTO "communes" VALUES('94','Villecresnes','26',9598,8333,5.62,'219','54135',49,112);
INSERT INTO "communes" VALUES('94','<NAME>','21',32520,30076,3.96,'186','54269',35,70);
INSERT INTO "communes" VALUES('94','Valenton','47',12081,11421,5.31,'145','54161',32,88);
INSERT INTO "communes" VALUES('94','Nogent-sur-Marne','19',31637,28194,2.8,'162','54263',36,99);
INSERT INTO "communes" VALUES('94','Cachan','05',28248,24835,2.74,'-5','54213',42,111);
INSERT INTO "communes" VALUES('94','Saint-Maur-des-Fossés','97',74816,73071,11.25,'180','54221',32,53);
INSERT INTO "communes" VALUES('94','Rungis','42',5662,5418,4.2,'15','54165',58,90);
INSERT INTO "communes" VALUES('94','Thiais','25',29653,28242,6.43,'61','54183',41,96);
INSERT INTO "communes" VALUES('94','Sucy-en-Brie','46',25820,24819,10.43,'207','54189',33,110);
INSERT INTO "communes" VALUES('94','Mandres-les-Roses','26',4413,4101,3.3,'231','54114',39,97);
INSERT INTO "communes" VALUES('94','Vincennes','98',48471,43580,1.91,'114','54276',47,69);
INSERT INTO "communes" VALUES('94','Charenton-le-Pont','07',29348,26576,1.85,'84','54246',28,57);
INSERT INTO "communes" VALUES('94','Saint-Maurice','07',14512,12742,1.43,'109','54243',27,67);
INSERT INTO "communes" VALUES('94','Bry-sur-Marne','04',15625,15021,3.35,'206','54268',36,100);
INSERT INTO "communes" VALUES('94','Bonneuil-sur-Marne','03',16513,15922,5.51,'168','54194',32,74);
INSERT INTO "communes" VALUES('94','Joinville-le-Pont','15',17802,17111,2.3,'151','54246',33,61);
INSERT INTO "communes" VALUES('94','Ablon-sur-Seine','28',5171,4868,1.11,'94','54140',32,85);
INSERT INTO "communes" VALUES('94','Noiseau','44',4669,3970,4.49,'234','54197',54,104);
INSERT INTO "communes" VALUES('94','Gentilly','87',17097,16124,1.18,'9','54237',42,81);
INSERT INTO "communes" VALUES('94','Villejuif','93',55490,47414,5.34,'27','54215',62,130);
INSERT INTO "communes" VALUES('94','Vitry-sur-Seine','99',85413,78908,11.67,'63','54209',27,106);
INSERT INTO "communes" VALUES('94','Chevilly-Larue','42',18498,18149,4.22,'19','54185',83,94);
INSERT INTO "communes" VALUES('94','Chennevières-sur-Marne','08',18049,17815,5.27,'219','54220',33,108);
INSERT INTO "communes" VALUES('94','Périgny','26',2311,2017,2.79,'239','54106',42,97);
INSERT INTO "communes" VALUES('94','Champigny-sur-Marne','94',75510,74232,11.3,'199','54241',32,106);
INSERT INTO "communes" VALUES('94','Ivry-sur-Seine','95',57732,50951,6.1,'57','54238',28,68);
INSERT INTO "communes" VALUES('94','Maisons-Alfort','96',52943,51091,5.35,'112','54229',28,47);
INSERT INTO "communes" VALUES('94','Orly','20',21395,20497,6.69,'63','54160',30,89);
INSERT INTO "communes" VALUES('94','Villeneuve-le-Roi','28',18479,18293,8.4,'82','54149',30,91);
INSERT INTO "communes" VALUES('94','Villeneuve-Saint-Georges','88',32239,28427,8.75,'126','54147',30,93);
INSERT INTO "communes" VALUES('94','Créteil','90',89985,81786,11.46,'139','54212',31,74);
INSERT INTO "communes" VALUES('95','Baillet-en-France','26',1955,1708,7.91,'-41','54514',85,151);
INSERT INTO "communes" VALUES('95','Osny','29',16236,14300,12.52,'-304','54510',27,102);
INSERT INTO "communes" VALUES('95','Hodent','16',250,267,4.37,'-632','54605',49,140);
INSERT INTO "communes" VALUES('95','Montreuil-sur-Epte','16',443,350,7.15,'-731','54641',27,157);
INSERT INTO "communes" VALUES('95','Cergy','96',56988,54816,11.65,'-305','54484',21,121);
INSERT INTO "communes" VALUES('95','Chennevières-lès-Louvres','13',344,218,4.58,'238','54494',81,124);
INSERT INTO "communes" VALUES('95','Montlignon','20',2561,2426,2.84,'-59','54455',62,185);
INSERT INTO "communes" VALUES('95','Fontenay-en-Parisis','15',1912,1707,10.84,'127','54503',77,138);
INSERT INTO "communes" VALUES('95','Ézanville','08',8979,8788,5.19,'27','54475',72,118);
INSERT INTO "communes" VALUES('95','Neuville-sur-Oise','39',2014,1433,4.25,'-308','54461',19,54);
INSERT INTO "communes" VALUES('95','Sagy','27',1160,1127,10.53,'-427','54500',42,130);
INSERT INTO "communes" VALUES('95','Théméricourt','27',264,229,7.58,'-489','54541',70,137);
INSERT INTO "communes" VALUES('95','Butry-sur-Oise','34',2026,1970,2.6,'-153','54540',22,96);
INSERT INTO "communes" VALUES('95','<NAME>','15',131,140,0.9,'131','54551',56,101);
INSERT INTO "communes" VALUES('95','Jouy-le-Moutier','39',16589,17788,6.89,'-331','54457',21,175);
INSERT INTO "communes" VALUES('95','Mareil-en-France','15',694,498,7,'99','54522',109,186);
INSERT INTO "communes" VALUES('95','Bréançon','17',371,332,10.61,'-350','54603',79,203);
INSERT INTO "communes" VALUES('95','Chaussy','16',633,602,14.56,'-716','54580',45,202);
INSERT INTO "communes" VALUES('95','Vallangoujard','34',634,634,7.6,'-250','54600',46,126);
INSERT INTO "communes" VALUES('95','Magny-en-Vexin','16',5752,5657,14.02,'-611','54616',63,149);
INSERT INTO "communes" VALUES('95','Bellefontaine','15',432,482,7.53,'145','54553',59,139);
INSERT INTO "communes" VALUES('95','Haravilliers','17',539,459,10.9,'-322','54638',99,217);
INSERT INTO "communes" VALUES('95','Survilliers','15',3833,3657,5.38,'232','54553',74,156);
INSERT INTO "communes" VALUES('95','<NAME>','17',191,187,1.96,'-374','54629',124,205);
INSERT INTO "communes" VALUES('95','Courcelles-sur-Viosne','27',306,275,3.61,'-372','54531',42,108);
INSERT INTO "communes" VALUES('95','Brignancourt','17',204,205,3.06,'-437','54598',52,112);
INSERT INTO "communes" VALUES('95','Seraincourt','27',1332,1267,11.28,'-521','54484',26,124);
INSERT INTO "communes" VALUES('95','Vémars','13',2205,2058,8.18,'257','54522',96,146);
INSERT INTO "communes" VALUES('95','Domont','06',14827,14878,8.33,'-11','54475',80,202);
INSERT INTO "communes" VALUES('95','Bonneuil-en-France','38',713,774,4.71,'107','54416',35,59);
INSERT INTO "communes" VALUES('95','Montmorency','18',21194,20576,5.37,'-16','54433',43,186);
INSERT INTO "communes" VALUES('95','Bruyères-sur-Oise','03',3700,3392,8.91,'-10','54619',23,84);
INSERT INTO "communes" VALUES('95','Épiais-lès-Louvres','13',88,60,3.42,'245','54480',90,121);
INSERT INTO "communes" VALUES('95','Montgeroult','27',426,412,4.97,'-369','54536',40,101);
INSERT INTO "communes" VALUES('95','Margency','24',2852,2585,0.72,'-52','54447',54,125);
INSERT INTO "communes" VALUES('95','Pontoise','19',29548,27483,7.15,'-262','54501',22,87);
INSERT INTO "communes" VALUES('95','Menouville','17',90,84,2.78,'-252','54612',47,112);
INSERT INTO "communes" VALUES('95','Cléry-en-Vexin','27',405,412,5.1,'-553','54586',115,179);
INSERT INTO "communes" VALUES('95','Commeny','27',379,379,4.72,'-495','54585',67,126);
INSERT INTO "communes" VALUES('95','Épiais-Rhus','17',645,636,10.46,'-305','54580',56,186);
INSERT INTO "communes" VALUES('95','Vauréal','39',16180,16207,3.46,'-338','54483',22,122);
INSERT INTO "communes" VALUES('95','Bray-et-Lû','16',977,753,3.71,'-750','54599',24,127);
INSERT INTO "communes" VALUES('95','Marly-la-Ville','15',5472,5694,8.62,'181','54534',71,145);
INSERT INTO "communes" VALUES('95','<NAME>','27',548,476,5.46,'-449','54568',52,117);
INSERT INTO "communes" VALUES('95','Génicourt','34',489,545,6.44,'-298','54544',68,106);
INSERT INTO "communes" VALUES('95','Amenucourt','16',198,171,8.7,'-772','54562',19,153);
INSERT INTO "communes" VALUES('95','Condécourt','27',545,486,6.94,'-438','54492',37,127);
INSERT INTO "communes" VALUES('95','Groslay','18',8460,7347,2.95,'9','54430',51,123);
INSERT INTO "communes" VALUES('95','Menucourt','39',5287,5080,3.68,'-395','54475',85,188);
INSERT INTO "communes" VALUES('95','Saint-Witz','15',2566,1925,7.66,'257','54546',109,195);
INSERT INTO "communes" VALUES('95','Piscop','08',714,634,4.08,'8','54458',73,195);
INSERT INTO "communes" VALUES('95','Nucourt','17',735,779,7.65,'-536','54621',85,137);
INSERT INTO "communes" VALUES('95','Arronville','17',664,611,15.85,'-248','54646',52,140);
INSERT INTO "communes" VALUES('95','Herblay','31',26016,23080,12.74,'-190','54434',20,91);
INSERT INTO "communes" VALUES('95','Asnières-sur-Oise','26',2527,2476,14.07,'22','54593',22,208);
INSERT INTO "communes" VALUES('95','Presles','14',3788,3730,9.95,'-60','54572',26,210);
INSERT INTO "communes" VALUES('95','Lassy','15',187,177,1.92,'121','54552',52,139);
INSERT INTO "communes" VALUES('95','Andilly','24',2524,2013,2.7,'-41','54450',63,185);
INSERT INTO "communes" VALUES('95','Haute-Isle','16',319,295,2.57,'-754','54537',13,148);
INSERT INTO "communes" VALUES('95','Chaumontel','15',3289,3248,4.23,'103','54585',37,122);
INSERT INTO "communes" VALUES('95','Villaines-sous-Bois','26',671,581,1.89,'23','54530',111,127);
INSERT INTO "communes" VALUES('95','Ermont','10',27446,27474,4.16,'-86','54435',43,65);
INSERT INTO "communes" VALUES('95','Auvers-sur-Oise','34',6792,6839,12.69,'-180','54524',21,111);
INSERT INTO "communes" VALUES('95','Saint-Brice-sous-Forêt','08',14320,12535,6,'23','54443',60,165);
INSERT INTO "communes" VALUES('95','Arthies','16',301,258,7.4,'-607','54551',123,203);
INSERT INTO "communes" VALUES('95','Grisy-les-Plâtres','17',607,556,7.15,'-319','54591',67,185);
INSERT INTO "communes" VALUES('95','Puiseux-en-France','15',3294,2931,5.11,'182','54509',90,143);
INSERT INTO "communes" VALUES('95','Goussainville','30',30996,27350,11.52,'152','54480',56,109);
INSERT INTO "communes" VALUES('95','Moussy','17',151,113,4.75,'-474','54598',56,112);
INSERT INTO "communes" VALUES('95','Pierrelaye','28',7958,6931,9.21,'-207','54469',35,78);
INSERT INTO "communes" VALUES('95','Franconville','11',33097,33492,6.19,'-118','54431',54,167);
INSERT INTO "communes" VALUES('95','Louvres','30',9339,8792,11.33,'187','54493',64,127);
INSERT INTO "communes" VALUES('95','Gouzangrez','27',173,171,0.77,'-478','54570',101,114);
INSERT INTO "communes" VALUES('95','Le Bellay-en-Vexin','17',244,258,5.02,'-500','54612',103,130);
INSERT INTO "communes" VALUES('95','Gonesse','13',26356,24701,20.09,'124','54430',39,97);
INSERT INTO "communes" VALUES('95','La Chapelle-en-Vexin','16',331,318,3.61,'-672','54649',85,158);
INSERT INTO "communes" VALUES('95','Hédouville','34',250,282,5.28,'-185','54615',41,182);
INSERT INTO "communes" VALUES('95','Villers-en-Arthies','16',461,428,8.25,'-678','54544',89,205);
INSERT INTO "communes" VALUES('95','Saint-Martin-du-Tertre','26',2586,2345,13.23,'10','54563',56,210);
INSERT INTO "communes" VALUES('95','Seugy','26',1035,1049,1.7,'64','54579',50,121);
INSERT INTO "communes" VALUES('95','Roissy-en-France','13',2750,2366,14.09,'202','54449',67,116);
INSERT INTO "communes" VALUES('95','Boissy-l''Aillerie','29',1774,1665,6.53,'-339','54532',37,99);
INSERT INTO "communes" VALUES('95','La Frette-sur-Seine','31',4569,4390,2.02,'-176','54416',22,81);
INSERT INTO "communes" VALUES('95','Wy-dit-Joli-Village','16',327,307,8.37,'-557','54558',99,199);
INSERT INTO "communes" VALUES('95','Deuil-la-Barre','09',21509,20150,3.76,'-9','54417',34,113);
INSERT INTO "communes" VALUES('95','Bezons','04',27987,26312,4.16,'-133','54362',22,52);
INSERT INTO "communes" VALUES('95','Courdimanche','39',6495,5890,5.57,'-372','54483',95,160);
INSERT INTO "communes" VALUES('95','Ronquerolles','03',858,741,4.74,'-124','54630',44,188);
INSERT INTO "communes" VALUES('95','Saint-Gratien','40',20156,19219,2.42,'-61','54413',39,59);
INSERT INTO "communes" VALUES('95','Bernes-sur-Oise','03',2378,2221,5.45,'-40','54623',24,81);
INSERT INTO "communes" VALUES('95','Nesles-la-Vallée','34',1820,1831,13.46,'-185','54589',33,162);
INSERT INTO "communes" VALUES('95','Chars','17',1811,1718,16.71,'-444','54623',55,174);
INSERT INTO "communes" VALUES('95','Viarmes','26',4985,4681,8.19,'38','54587',28,154);
INSERT INTO "communes" VALUES('95','Neuilly-en-Vexin','17',203,210,2.96,'-400','54632',102,190);
INSERT INTO "communes" VALUES('95','Taverny','25',26144,25906,10.48,'-122','54473',55,188);
INSERT INTO "communes" VALUES('95','Bessancourt','25',6994,6998,6.39,'-137','54487',49,171);
INSERT INTO "communes" VALUES('95','Vigny','27',1077,1035,6.56,'-454','54531',58,134);
INSERT INTO "communes" VALUES('95','Ableiges','27',943,960,8.03,'-395','54545',40,128);
INSERT INTO "communes" VALUES('95','Beaumont-sur-Oise','03',8954,8388,5.6,'-56','54603',23,210);
INSERT INTO "communes" VALUES('95','Theuville','17',28,59,4.97,'-294','54616',58,125);
INSERT INTO "communes" VALUES('95','Saint-Clair-sur-Epte','16',934,807,12.18,'-730','54675',30,142);
INSERT INTO "communes" VALUES('95','Vienne-en-Arthies','16',417,351,3.76,'-687','54518',35,147);
INSERT INTO "communes" VALUES('95','Cormeilles-en-Parisis','05',23038,19645,8.48,'-151','54415',22,170);
INSERT INTO "communes" VALUES('95','Labbeville','34',569,484,8.07,'-215','54594',38,122);
INSERT INTO "communes" VALUES('95','Livilliers','34',381,369,6.53,'-269','54551',69,115);
INSERT INTO "communes" VALUES('95','Charmont','16',28,32,3.83,'-606','54596',78,153);
INSERT INTO "communes" VALUES('95','Bouffémont','06',5940,5700,4.51,'-41','54493',92,194);
INSERT INTO "communes" VALUES('95','Berville','17',332,366,8.51,'-294','54656',67,155);
INSERT INTO "communes" VALUES('95','Sannois','22',26090,25313,4.78,'-88','54413',42,169);
INSERT INTO "communes" VALUES('95','Villeron','13',811,700,5.61,'229','54509',81,140);
INSERT INTO "communes" VALUES('95','Écouen','08',7374,7117,7.59,'50','54465',61,167);
INSERT INTO "communes" VALUES('95','Saint-Cyr-en-Arthies','16',228,225,3.89,'-661','54510',75,172);
INSERT INTO "communes" VALUES('95','Saint-Prix','20',7308,6772,7.93,'-79','54462',57,193);
INSERT INTO "communes" VALUES('95','Ennery','34',2244,2035,7.43,'-256','54527',32,104);
INSERT INTO "communes" VALUES('95','Saint-Leu-la-Forêt','20',14766,15152,5.24,'-100','54463',57,191);
INSERT INTO "communes" VALUES('95','Attainville','06',1831,1732,7.16,'10','54508',82,127);
INSERT INTO "communes" VALUES('95','Belloy-en-France','26',1937,1536,9.49,'38','54544',92,165);
INSERT INTO "communes" VALUES('95','Frouville','34',369,373,7.6,'-208','54610',39,126);
INSERT INTO "communes" VALUES('95','Us','27',1318,1258,10.98,'-411','54555',46,122);
INSERT INTO "communes" VALUES('95','Champagne-sur-Oise','03',4657,3892,9.45,'-112','54595',23,176);
INSERT INTO "communes" VALUES('95','Boisemont','39',747,687,2.77,'-372','54468',99,191);
INSERT INTO "communes" VALUES('95','Chauvry','25',301,278,5,'-77','54504',81,194);
INSERT INTO "communes" VALUES('95','Ambleville','16',420,350,7.96,'-712','54610',27,157);
INSERT INTO "communes" VALUES('95','Béthemont-la-Forêt','25',420,449,3.79,'-93','54505',79,194);
INSERT INTO "communes" VALUES('95','<NAME>','13',4118,3668,3.94,'149','54450',52,104);
INSERT INTO "communes" VALUES('95','Saint-Ouen-l''Aumône','21',23608,19653,12.21,'-251','54493',22,58);
INSERT INTO "communes" VALUES('95','Maffliers','26',1664,1369,6.79,'-32','54530',58,188);
INSERT INTO "communes" VALUES('95','Noisy-sur-Oise','26',688,668,3.79,'-8','54598',23,209);
INSERT INTO "communes" VALUES('95','Nerville-la-Forêt','14',653,747,6.68,'-64','54544',65,194);
INSERT INTO "communes" VALUES('95','Persan','03',10498,9605,5.14,'-73','54615',24,55);
INSERT INTO "communes" VALUES('95','L''Isle-Adam','14',11744,11160,14.94,'-126','54568',23,113);
INSERT INTO "communes" VALUES('95','Garges-lès-Gonesse','97',40012,40060,5.47,'71','54413',34,80);
INSERT INTO "communes" VALUES('95','Montmagny','09',14250,13085,2.91,'10','54415',36,115);
INSERT INTO "communes" VALUES('95','Montigny-lès-Cormeilles','05',19041,17178,4.07,'-157','54438',61,168);
INSERT INTO "communes" VALUES('95','Cormeilles-en-Vexin','17',1112,861,9.56,'-350','54573',87,164);
INSERT INTO "communes" VALUES('95','Chérence','16',149,143,8.47,'-734','54544',60,195);
INSERT INTO "communes" VALUES('95','Omerville','16',301,337,11.98,'-686','54601',42,157);
INSERT INTO "communes" VALUES('95','Luzarches','15',4289,3906,20.49,'95','54570',35,149);
INSERT INTO "communes" VALUES('95','Aincourt','16',972,658,10.03,'-626','54525',107,201);
INSERT INTO "communes" VALUES('95','Avernes','27',805,777,12.47,'-515','54540',82,201);
INSERT INTO "communes" VALUES('95','Hérouville','34',610,598,8.42,'-226','54557',81,120);
INSERT INTO "communes" VALUES('95','Frémécourt','17',543,464,4.28,'-373','54578',80,168);
INSERT INTO "communes" VALUES('95','Frémainville','27',490,477,5.61,'-522','54517',79,197);
INSERT INTO "communes" VALUES('95','Saint-Gervais','16',958,900,13.18,'-630','54632',55,158);
INSERT INTO "communes" VALUES('95','Buhy','16',307,269,6.86,'-717','54659',43,151);
INSERT INTO "communes" VALUES('95','Eaubonne','07',24062,22867,4.42,'-63','54435',41,83);
INSERT INTO "communes" VALUES('95','Valmondois','34',1204,1206,4.59,'-162','54552',24,116);
INSERT INTO "communes" VALUES('95','Montsoult','26',3396,3515,3.84,'-29','54524',102,192);
INSERT INTO "communes" VALUES('95','Parmain','14',5531,5265,9.2,'-142','54572',24,146);
INSERT INTO "communes" VALUES('95','<NAME>','16',454,550,4.61,'-786','54535',13,143);
INSERT INTO "communes" VALUES('95','Argenteuil','99',103125,93932,17.22,'-99','54387',21,169);
INSERT INTO "communes" VALUES('95','<NAME>','28',7730,7013,2.69,'-111','54447',57,81);
INSERT INTO "communes" VALUES('95','Villiers-le-Bel','35',26736,26143,7.3,'60','54454',64,147);
INSERT INTO "communes" VALUES('95','Éragny','37',16886,15534,4.72,'-272','54464',22,56);
INSERT INTO "communes" VALUES('95','Vaudherland','13',90,88,0.09,'166','54445',61,87);
INSERT INTO "communes" VALUES('95','Gadancourt','27',99,76,4.68,'-533','54551',87,141);
INSERT INTO "communes" VALUES('95','Sarcelles','98',58614,57851,8.45,'46','54441',46,142);
INSERT INTO "communes" VALUES('95','Longuesse','27',530,511,8.5,'-449','54514',45,132);
INSERT INTO "communes" VALUES('95','Nointel','03',833,755,3.2,'-51','54587',24,210);
INSERT INTO "communes" VALUES('95','<NAME>','08',73,75,4.1,'88','54481',76,117);
INSERT INTO "communes" VALUES('95','Méry-sur-Oise','21',9260,8942,11.17,'-167','54515',22,96);
INSERT INTO "communes" VALUES('95','Mériel','14',4443,4041,5.31,'-146','54533',22,95);
INSERT INTO "communes" VALUES('95','Soisy-sous-Montmorency','24',17428,16807,3.98,'-41','54431',39,140);
INSERT INTO "communes" VALUES('95','Banthelu','16',124,138,8.1,'-580','54585',107,168);
INSERT INTO "communes" VALUES('95','Guiry-en-Vexin','27',154,176,6.16,'-541','54565',89,154);
INSERT INTO "communes" VALUES('95','Santeuil','17',603,578,5.34,'-428','54584',50,121);
INSERT INTO "communes" VALUES('95','Frépillon','25',2795,2260,3.35,'-146','54502',60,165);
INSERT INTO "communes" VALUES('95','Bouqueval','13',329,293,2.81,'99','54471',67,110);
INSERT INTO "communes" VALUES('95','Épinay-Champlâtreux','15',67,75,3.56,'84','54539',85,173);
INSERT INTO "communes" VALUES('95','Villiers-le-Sec','15',176,168,3.26,'59','54525',112,146);
INSERT INTO "communes" VALUES('95','Beauchamp','28',8737,8984,3.02,'-163','54460',47,73);
INSERT INTO "communes" VALUES('95','<NAME>','08',912,759,6.64,'69','54502',89,127);
INSERT INTO "communes" VALUES('95','Châtenay-en-France','15',69,61,3.07,'135','54519',109,172);
INSERT INTO "communes" VALUES('95','Enghien-les-Bains','09',11809,10367,1.77,'-32','54411',33,53);
INSERT INTO "communes" VALUES('95','Genainville','16',557,490,10.5,'-649','54584',60,203);
INSERT INTO "communes" VALUES('95','Marines','17',3254,2926,8.26,'-392','54606',90,204);
INSERT INTO "communes" VALUES('95','Mours','03',1352,1474,2.45,'-74','54593',23,47);
INSERT INTO "communes" VALUES('95','Arnouville','35',13538,12262,2.84,'89','54430',40,76);
INSERT INTO "communes" VALUES('95','Jagny-sous-Bois','15',254,225,4.18,'119','54531',62,164);
INSERT INTO "communes" VALUES('95','Puiseux-Pontoise','29',433,421,5.64,'-351','54508',40,116);
INSERT INTO "communes" VALUES('95','Moisselles','06',1255,962,1.46,'0','54500',78,104);
INSERT INTO "communes" VALUES('95','Vétheuil','16',887,854,4.3,'-704','54515',9,150);
INSERT INTO "communes" VALUES('95','Villiers-Adam','14',828,775,9.82,'-113','54516',47,157);
INSERT INTO "communes" VALUES('95','Maudétour-en-Vexin','16',197,176,6.55,'-624','54556',109,206);
INSERT INTO "communes" VALUES('95','Fosses','15',9565,9994,3.61,'189','54553',65,130);
INSERT INTO "communes" VALUES('2A','Cristinacce','35',60,52,20.45,'7226','46932',630,1767);
INSERT INTO "communes" VALUES('2A','Évisa','35',190,197,67.28,'7183','46948',239,2103);
INSERT INTO "communes" VALUES('2A','Serriera','35',118,106,37,'7080','47002',0,1618);
INSERT INTO "communes" VALUES('2A','Guagno','61',153,139,42.72,'7346','46854',491,2418);
INSERT INTO "communes" VALUES('2A','Azzana','51',49,56,12,'7319','46797',226,1506);
INSERT INTO "communes" VALUES('2A','Pastricciola','51',84,81,46.32,'7386','46822',333,2241);
INSERT INTO "communes" VALUES('2A','Rezza','51',58,49,13.46,'7340','46806',272,1284);
INSERT INTO "communes" VALUES('2A','Rosazia','51',56,82,19.72,'7265','46809',67,1622);
INSERT INTO "communes" VALUES('2A','Salice','51',71,73,21.89,'7293','46801',152,1622);
INSERT INTO "communes" VALUES('2A','Balogna','61',126,170,27.75,'7158','46864',108,1174);
INSERT INTO "communes" VALUES('2A','Murzo','61',83,77,21.44,'7211','46853',117,1406);
INSERT INTO "communes" VALUES('2A','Arbori','61',61,62,20.03,'7178','46824',13,882);
INSERT INTO "communes" VALUES('2A','Vico','61',885,902,52.13,'7180','46852',0,1120);
INSERT INTO "communes" VALUES('2A','Cargèse','35',1161,985,45.99,'6953','46817',0,705);
INSERT INTO "communes" VALUES('2A','Ota','35',565,449,38.16,'7119','46953',0,1326);
INSERT INTO "communes" VALUES('2A','Partinello','35',103,89,18.66,'7051','47013',0,1000);
INSERT INTO "communes" VALUES('2A','Tavera','06',389,339,32.43,'7421','46743',312,1920);
INSERT INTO "communes" VALUES('2A','Bocognano','06',485,340,71.12,'7466','46757',338,2347);
INSERT INTO "communes" VALUES('2A','Vero','06',477,351,23.39,'7329','46737',180,1244);
INSERT INTO "communes" VALUES('2A','Lopigna','51',105,112,19.53,'7230','46779',40,1038);
INSERT INTO "communes" VALUES('2A','Arro','51',76,51,8.84,'7197','46770',12,867);
INSERT INTO "communes" VALUES('2A','Casaglione','51',366,292,14.73,'7168','46742',0,412);
INSERT INTO "communes" VALUES('2A','Ambiegna','51',61,43,6.12,'7173','46760',8,441);
INSERT INTO "communes" VALUES('2A','Coggia','61',833,702,31.33,'7125','46803',0,917);
INSERT INTO "communes" VALUES('2A','Orto','61',57,54,16.21,'7328','46874',492,2280);
INSERT INTO "communes" VALUES('2A','Poggiolo','61',97,94,12.15,'7303','46863',404,1622);
INSERT INTO "communes" VALUES('2A','Soccia','61',147,122,28.27,'7305','46877',409,2100);
INSERT INTO "communes" VALUES('2A','Marignana','35',102,101,55.09,'7182','46926',13,1332);
INSERT INTO "communes" VALUES('2A','Renno','61',69,77,12.62,'7211','46901',717,1507);
INSERT INTO "communes" VALUES('2A','Bastelica','02',543,459,127.69,'7460','46669',306,2347);
INSERT INTO "communes" VALUES('2A','Peri','06',1737,1142,23.65,'7315','46671',38,1507);
INSERT INTO "communes" VALUES('2A','Ucciani','06',461,390,28.36,'7380','46716',259,1628);
INSERT INTO "communes" VALUES('2A','Carbuccia','06',333,254,14.35,'7352','46712',159,1280);
INSERT INTO "communes" VALUES('2A','Sarrola-Carcopino','06',2044,1778,27.01,'7229','46697',15,1133);
INSERT INTO "communes" VALUES('2A','Tavaco','06',281,226,10.83,'7290','46707',140,1240);
INSERT INTO "communes" VALUES('2A','Cannelle','51',48,32,3.41,'7204','46722',56,832);
INSERT INTO "communes" VALUES('2A','Sari-d''Orcino','51',312,259,22.09,'7212','46733',95,1245);
INSERT INTO "communes" VALUES('2A','Calcatoggio','51',529,356,22.65,'7145','46698',0,876);
INSERT INTO "communes" VALUES('2A','Valle-di-Mezzana','06',314,217,6.99,'7209','46695',174,827);
INSERT INTO "communes" VALUES('2A','Appietto','73',1528,1147,34.41,'7146','46682',0,876);
INSERT INTO "communes" VALUES('2A','Sant''Andréa-d''Orcino','51',74,71,8.75,'7191','46718',0,827);
INSERT INTO "communes" VALUES('2A','Letia','61',105,96,36.44,'7234','46878',235,2084);
INSERT INTO "communes" VALUES('2A','Piana','35',455,428,62.63,'6999','46932',0,1332);
INSERT INTO "communes" VALUES('2A','Palneca','62',163,155,43.81,'7596','46633',692,2036);
INSERT INTO "communes" VALUES('2A','Ciamannacce','62',138,134,25.11,'7567','46613',540,1950);
INSERT INTO "communes" VALUES('2A','Cozzano','62',271,243,25.59,'7576','46594',571,1981);
INSERT INTO "communes" VALUES('2A','Tasso','62',93,97,16.67,'7519','46605',497,1720);
INSERT INTO "communes" VALUES('2A','Sampolo','62',57,52,7.14,'7541','46602',532,1720);
INSERT INTO "communes" VALUES('2A','Tolla','02',117,98,25.45,'7373','46639',222,1507);
INSERT INTO "communes" VALUES('2A','Ocana','02',536,394,26.06,'7331','46622',36,1311);
INSERT INTO "communes" VALUES('2A','Cuttoli-Corticchiato','06',1911,1473,30.37,'7300','46654',14,1311);
INSERT INTO "communes" VALUES('2A','Afa','73',2843,2054,11.84,'7177','46649',36,682);
INSERT INTO "communes" VALUES('2A','Alata','73',2953,2462,30.37,'7118','46641',0,782);
INSERT INTO "communes" VALUES('2A','Villanova','73',349,306,11.25,'7034','46622',0,787);
INSERT INTO "communes" VALUES('2A','Osani','35',110,90,51.53,'6995','47026',0,927);
INSERT INTO "communes" VALUES('2A','Corrano','62',86,71,12.69,'7475','46544',320,1003);
INSERT INTO "communes" VALUES('2A','Zicavo','62',241,238,93.02,'7548','46564',380,2134);
INSERT INTO "communes" VALUES('2A','Guitera-les-Bains','62',117,100,14.75,'7500','46571',397,1567);
INSERT INTO "communes" VALUES('2A','Santa-Maria-Siché','48',442,360,10.67,'7379','46529',390,1240);
INSERT INTO "communes" VALUES('2A','Quasquara','48',55,50,6.11,'7415','46556',627,1446);
INSERT INTO "communes" VALUES('2A','Zévaco','62',61,57,10.04,'7459','46547',299,1289);
INSERT INTO "communes" VALUES('2A','Campo','48',84,77,3.3,'7408','46546',493,1118);
INSERT INTO "communes" VALUES('2A','Frasseto','48',124,81,16.61,'7428','46551',529,1680);
INSERT INTO "communes" VALUES('2A','Cauro','02',1287,1061,27.9,'7308','46574',11,1161);
INSERT INTO "communes" VALUES('2A','Eccica-Suarella','02',1030,684,14.47,'7300','46581',9,544);
INSERT INTO "communes" VALUES('2A','Bastelicaccia','73',3283,2767,18.21,'7208','46582',7,888);
INSERT INTO "communes" VALUES('2A','Ajaccio','98',65542,52851,82.03,'7111','46584',0,787);
INSERT INTO "communes" VALUES('2A','Sari-Solenzara','40',1334,1107,73.85,'7818','46483',0,1087);
INSERT INTO "communes" VALUES('2A','Olivese','34',259,281,29.64,'7467','46495',260,1680);
INSERT INTO "communes" VALUES('2A','Forciolo','48',72,69,6.88,'7414','46504',231,753);
INSERT INTO "communes" VALUES('2A','Azilone-Ampaza','48',142,93,7.96,'7419','46516',354,909);
INSERT INTO "communes" VALUES('2A','Zigliara','48',141,124,12.85,'7397','46496',129,682);
INSERT INTO "communes" VALUES('2A','Argiusta-Moriccio','34',82,77,10.3,'7430','46461',200,1419);
INSERT INTO "communes" VALUES('2A','Cardo-Torgia','48',37,32,3.88,'7380','46521',230,680);
INSERT INTO "communes" VALUES('2A','Grosseto-Prugna','48',2601,2150,31.56,'7363','46524',0,1161);
INSERT INTO "communes" VALUES('2A','Cognocoli-Monticchi','48',183,164,35.77,'7299','46476',9,857);
INSERT INTO "communes" VALUES('2A','Guargualé','48',123,109,10.61,'7322','46485',72,794);
INSERT INTO "communes" VALUES('2A','Urbalacone','48',71,68,8.25,'7346','46485',91,693);
INSERT INTO "communes" VALUES('2A','Albitreccia','48',1526,866,45.76,'7339','46514',0,1058);
INSERT INTO "communes" VALUES('2A','Pietrosella','48',1251,1030,35.23,'7232','46485',0,728);
INSERT INTO "communes" VALUES('2A','Conca','40',1069,769,77.96,'7774','46372',0,1445);
INSERT INTO "communes" VALUES('2A','Quenza','55',212,215,95.67,'7558','46407',134,2134);
INSERT INTO "communes" VALUES('2A','Zonza','22',2341,1799,134.46,'7593','46388',0,1480);
INSERT INTO "communes" VALUES('2A','Serra-di-Scopamène','55',105,119,20.42,'7514','46393',320,1627);
INSERT INTO "communes" VALUES('2A','Sorbollano','55',71,69,7.7,'7525','46391',358,1160);
INSERT INTO "communes" VALUES('2A','Aullène','55',182,138,40.92,'7493','46414',629,1724);
INSERT INTO "communes" VALUES('2A','Zérubia','55',29,29,13.18,'7487','46392',274,1264);
INSERT INTO "communes" VALUES('2A','Petreto-Bicchisano','34',570,548,39.27,'7382','46426',38,1397);
INSERT INTO "communes" VALUES('2A','Moca-Croce','34',226,221,27.75,'7417','46454',139,1387);
INSERT INTO "communes" VALUES('2A','Pila-Canale','48',281,278,18.8,'7303','46459',13,561);
INSERT INTO "communes" VALUES('2A','Coti-Chiavari','48',724,494,63.33,'7149','46414',0,648);
INSERT INTO "communes" VALUES('2A','Lecci','40',1357,706,27.41,'7756','46310',0,646);
INSERT INTO "communes" VALUES('2A','San-Gavino-di-Carbini','22',1060,738,47.88,'7568','46357',36,1227);
INSERT INTO "communes" VALUES('2A','Levie','22',769,694,85.85,'7540','46337',152,1366);
INSERT INTO "communes" VALUES('2A','Olmiccia','55',106,82,11.22,'7470','46326',38,560);
INSERT INTO "communes" VALUES('2A','Sainte-Lucie-de-Tallano','55',454,392,25.57,'7475','46331',60,844);
INSERT INTO "communes" VALUES('2A','Altagène','55',53,41,4.77,'7481','46340',235,1033);
INSERT INTO "communes" VALUES('2A','Cargiaca','55',58,50,7.87,'7458','46369',148,1005);
INSERT INTO "communes" VALUES('2A','Loreto-di-Tallano','55',49,35,6.93,'7445','46355',59,900);
INSERT INTO "communes" VALUES('2A','Mela','55',30,39,4.63,'7508','46329',137,908);
INSERT INTO "communes" VALUES('2A','Zoza','55',53,51,5.05,'7481','46353',158,826);
INSERT INTO "communes" VALUES('2A','Fozzano','30',197,195,19.59,'7404','46331',15,953);
INSERT INTO "communes" VALUES('2A','Santa-Maria-Figaniella','30',81,71,13.09,'7409','46341',99,1005);
INSERT INTO "communes" VALUES('2A','Casalabriva','34',180,182,15.92,'7334','46392',16,1115);
INSERT INTO "communes" VALUES('2A','Olmeto','30',1222,1115,43.82,'7313','46352',0,1055);
INSERT INTO "communes" VALUES('2A','Sollacaro','34',355,326,23.89,'7306','46382',0,814);
INSERT INTO "communes" VALUES('2A','Serra-di-Ferro','48',473,353,32.77,'7180','46366',0,653);
INSERT INTO "communes" VALUES('2A','Carbini','22',110,100,16.47,'7566','46310',257,1316);
INSERT INTO "communes" VALUES('2A','Arbellara','30',141,109,11.29,'7392','46313',23,640);
INSERT INTO "communes" VALUES('2A','Granace','53',57,61,4.08,'7412','46274',100,601);
INSERT INTO "communes" VALUES('2A','Viggianello','30',635,420,17.03,'7350','46312',5,668);
INSERT INTO "communes" VALUES('2A','Propriano','30',3399,3189,18.73,'7297','46306',0,609);
INSERT INTO "communes" VALUES('2A','Porto-Vecchio','40',11035,10310,168.65,'7714','46212',0,1316);
INSERT INTO "communes" VALUES('2A','Foce','53',142,110,20.75,'7474','46256',97,691);
INSERT INTO "communes" VALUES('2A','Sartène','53',3259,3403,200.4,'7374','46245',0,1320);
INSERT INTO "communes" VALUES('2A','Giuncheto','53',86,69,7.61,'7352','46207',120,609);
INSERT INTO "communes" VALUES('2A','Grossa','53',47,38,18.36,'7267','46233',66,566);
INSERT INTO "communes" VALUES('2A','Bilia','53',46,40,7.43,'7301','46250',153,609);
INSERT INTO "communes" VALUES('2A','Belvédère-Campomoro','53',163,135,26.37,'7198','46253',0,442);
INSERT INTO "communes" VALUES('2A','Sotta','70',1025,807,66.5,'7620','46161',17,1298);
INSERT INTO "communes" VALUES('2A','Figari','70',1276,1005,100.22,'7547','46098',0,1366);
INSERT INTO "communes" VALUES('2A','Pianottoli-Caldarello','70',887,729,42.78,'7466','46105',0,1321);
INSERT INTO "communes" VALUES('2A','Monacia-d''Aullène','70',464,396,39.85,'7417','46126',0,1188);
INSERT INTO "communes" VALUES('2A','Bonifacio','07',2955,2661,138.36,'7582','45987',0,340);
INSERT INTO "communes" VALUES('2B','Campana','37',24,24,2.37,'7794','47097',640,1766);
INSERT INTO "communes" VALUES('2B','Castineta','25',54,53,9.15,'7736','47136',255,1563);
INSERT INTO "communes" VALUES('2B','Nocario','37',59,42,3.08,'7794','47109',459,1766);
INSERT INTO "communes" VALUES('2B','Saliceto','25',66,47,12.54,'7731','47110',220,1729);
INSERT INTO "communes" VALUES('2B','Gavignano','25',46,55,10.94,'7723','47131',213,1650);
INSERT INTO "communes" VALUES('2B','Poggio-Marinaccio','39',30,18,2.83,'7797','47150',340,1231);
INSERT INTO "communes" VALUES('2B','Quercitello','39',55,40,3,'7793','47140',318,1240);
INSERT INTO "communes" VALUES('2B','<NAME>','39',221,197,5.16,'7796','47136',220,1373);
INSERT INTO "communes" VALUES('2B','Morosaglia','25',1083,1008,24.45,'7737','47150',182,1249);
INSERT INTO "communes" VALUES('2B','Aiti','54',35,24,12.17,'7675','47110',240,1120);
INSERT INTO "communes" VALUES('2B','Piedigriggio','10',141,124,10.43,'7595','47164',200,770);
INSERT INTO "communes" VALUES('2B','Prato-di-Giovellina','10',48,40,12.21,'7585','47137',235,848);
INSERT INTO "communes" VALUES('2B','Popolasca','10',50,36,10.24,'7551','47147',380,1760);
INSERT INTO "communes" VALUES('2B','Castiglione','10',34,25,23.17,'7546','47131',360,2160);
INSERT INTO "communes" VALUES('2B','Asco','25',125,134,122.81,'7440','47171',383,2706);
INSERT INTO "communes" VALUES('2B','Santa-Maria-Poggio','16',623,629,10.28,'7954','47051',0,1131);
INSERT INTO "communes" VALUES('2B','Cervione','16',1686,1447,11.45,'7950','47035',0,934);
INSERT INTO "communes" VALUES('2B','San-Giuliano','16',616,604,23.93,'7949','47016',0,295);
INSERT INTO "communes" VALUES('2B','Valle-di-Campoloro','16',331,263,5.6,'7953','47040',0,976);
INSERT INTO "communes" VALUES('2B','Santa-Reparata-di-Moriani','16',42,43,9.12,'7902','47061',489,1280);
INSERT INTO "communes" VALUES('2B','Piedipartino','37',14,19,3.25,'7802','47076',517,1697);
INSERT INTO "communes" VALUES('2B','Piedicroce','37',134,117,3.27,'7812','47082',292,847);
INSERT INTO "communes" VALUES('2B','Carpineto','37',27,11,2.44,'7825','47061',477,922);
INSERT INTO "communes" VALUES('2B','Valle-d''Orezza','37',44,49,3.93,'7846','47075',433,1200);
INSERT INTO "communes" VALUES('2B','Parata','37',32,27,2.83,'7858','47078',417,1248);
INSERT INTO "communes" VALUES('2B','Felce','37',50,43,4.67,'7867','47055',557,1252);
INSERT INTO "communes" VALUES('2B','Perelli','37',107,110,6.21,'7840','47025',426,1441);
INSERT INTO "communes" VALUES('2B','Piobetta','37',23,30,4.81,'7829','47049',559,1727);
INSERT INTO "communes" VALUES('2B','Pietricaggio','37',38,54,5.44,'7836','47039',461,1680);
INSERT INTO "communes" VALUES('2B','Tarrano','37',14,27,3.83,'7850','47055',466,1050);
INSERT INTO "communes" VALUES('2B','Rapaggio','37',20,10,2.56,'7837','47080',318,768);
INSERT INTO "communes" VALUES('2B','Stazzona','37',41,33,1.39,'7816','47079',309,581);
INSERT INTO "communes" VALUES('2B','Valle-d''Alesani','37',137,125,9.59,'7865','47029',271,1056);
INSERT INTO "communes" VALUES('2B','Carcheto-Brustico','37',27,18,5.19,'7810','47072',436,1697);
INSERT INTO "communes" VALUES('2B','Pie-d''Orezza','37',37,25,5.79,'7798','47080',541,1582);
INSERT INTO "communes" VALUES('2B','San-Lorenzo','54',145,106,10.15,'7726','47094',359,1766);
INSERT INTO "communes" VALUES('2B','Carticasi','54',33,26,12.8,'7726','47063',652,1697);
INSERT INTO "communes" VALUES('2B','Cambia','54',80,77,8.28,'7730','47070',510,1421);
INSERT INTO "communes" VALUES('2B','Érone','54',6,8,3.89,'7704','47080',429,982);
INSERT INTO "communes" VALUES('2B','Lano','54',24,21,8.15,'7679','47092',414,1335);
INSERT INTO "communes" VALUES('2B','Rusio','54',77,66,8.58,'7693','47068',640,1585);
INSERT INTO "communes" VALUES('2B','Tralonca','54',92,65,15.7,'7633','47048',410,1464);
INSERT INTO "communes" VALUES('2B','Omessa','10',565,536,24.4,'7625','47078',239,1335);
INSERT INTO "communes" VALUES('2B','Castirla','10',192,186,24.32,'7563','47081',298,1951);
INSERT INTO "communes" VALUES('2B','Soveria','10',135,68,11.73,'7586','47066',400,1951);
INSERT INTO "communes" VALUES('2B','Corscia','10',168,155,58.99,'7451','47061',436,2583);
INSERT INTO "communes" VALUES('2B','Manso','11',104,107,121.02,'7173','47073',40,2558);
INSERT INTO "communes" VALUES('2B','Galéria','11',328,303,135.16,'7013','47122',0,1717);
INSERT INTO "communes" VALUES('2B','Canale-di-Verde','24',350,335,14.61,'7936','46972',0,1093);
INSERT INTO "communes" VALUES('2B','Ortale','37',25,25,4.06,'7874','47018',176,853);
INSERT INTO "communes" VALUES('2B','Pietra-di-Verde','24',116,115,8.79,'7904','46998',146,1093);
INSERT INTO "communes" VALUES('2B','Sant''Andréa-di-Cotone','16',231,168,8.91,'7936','47015',56,1046);
INSERT INTO "communes" VALUES('2B','Campi','24',20,28,4.9,'7873','46968',199,1093);
INSERT INTO "communes" VALUES('2B','Linguizzetta','24',1042,940,64.79,'7929','46960',0,1093);
INSERT INTO "communes" VALUES('2B','Chiatra','24',210,190,8.22,'7932','46991',37,743);
INSERT INTO "communes" VALUES('2B','Pianello','24',72,76,16.73,'7804','46988',427,1724);
INSERT INTO "communes" VALUES('2B','Matra','24',49,43,6.49,'7837','46978',240,1120);
INSERT INTO "communes" VALUES('2B','Moïta','24',82,76,5.71,'7863','46976',220,1160);
INSERT INTO "communes" VALUES('2B','Novale','37',52,69,4.88,'7865','47011',320,1267);
INSERT INTO "communes" VALUES('2B','Piazzali','37',16,13,0.78,'7858','47021',386,602);
INSERT INTO "communes" VALUES('2B','Zuani','24',35,51,5.16,'7788','46968',411,1013);
INSERT INTO "communes" VALUES('2B','Sermano','54',73,76,7.62,'7701','47016',407,1420);
INSERT INTO "communes" VALUES('2B','Bustanico','54',61,77,11.52,'7737','47025',617,1727);
INSERT INTO "communes" VALUES('2B','Alzi','54',20,17,2.74,'7739','47003',577,1616);
INSERT INTO "communes" VALUES('2B','Alando','54',28,23,3.05,'7726','47007',480,1040);
INSERT INTO "communes" VALUES('2B','Mazzola','54',24,22,6.59,'7749','47001',673,1692);
INSERT INTO "communes" VALUES('2B','Sant''Andréa-di-Bozio','54',85,77,24.03,'7740','46997',297,1233);
INSERT INTO "communes" VALUES('2B','Favalello','54',53,47,5.56,'7705','46994',305,680);
INSERT INTO "communes" VALUES('2B','Castellare-di-Mercurio','54',34,25,6.12,'7678','47012',331,1416);
INSERT INTO "communes" VALUES('2B','Santa-Lucia-di-Mercurio','54',92,69,23.79,'7649','47029',318,1585);
INSERT INTO "communes" VALUES('2B','Corte','17',6915,6335,149.27,'7571','47006',299,2626);
INSERT INTO "communes" VALUES('2B','Albertacce','10',225,202,97.12,'7386','47030',785,2558);
INSERT INTO "communes" VALUES('2B','Casamaccioli','10',102,100,36.17,'7405','47019',785,2320);
INSERT INTO "communes" VALUES('2B','Lozzi','10',125,132,30.79,'7407','47050',817,2706);
INSERT INTO "communes" VALUES('2B','Calacuccia','10',307,340,18.77,'7423','47040',705,1760);
INSERT INTO "communes" VALUES('2B','Tallone','24',314,302,68.17,'7864','46924',0,577);
INSERT INTO "communes" VALUES('2B','Tox','24',93,142,14.79,'7882','46946',50,1093);
INSERT INTO "communes" VALUES('2B','Giuncaggio','54',64,76,16.15,'7810','46907',6,745);
INSERT INTO "communes" VALUES('2B','Pietraserena','54',75,80,6.72,'7788','46928',231,770);
INSERT INTO "communes" VALUES('2B','Ampriani','24',15,14,2.29,'7800','46949',320,749);
INSERT INTO "communes" VALUES('2B','Pancheraccia','54',163,184,14.35,'7816','46910',24,735);
INSERT INTO "communes" VALUES('2B','Zalana','24',154,128,13.2,'7821','46956',193,847);
INSERT INTO "communes" VALUES('2B','Erbajolo','54',105,92,15.45,'7718','46960',180,924);
INSERT INTO "communes" VALUES('2B','Focicchia','54',42,30,7.11,'7731','46945',179,1192);
INSERT INTO "communes" VALUES('2B','Altiani','54',80,95,18.29,'7727','46930',159,1192);
INSERT INTO "communes" VALUES('2B','Piedicorte-di-Gaggio','54',116,127,27.25,'7769','46928',100,1192);
INSERT INTO "communes" VALUES('2B','Poggio-di-Venaco','58',197,134,13.28,'7611','46953',226,662);
INSERT INTO "communes" VALUES('2B','Riventosa','58',169,188,6.03,'7606','46946',216,761);
INSERT INTO "communes" VALUES('2B','Venaco','58',765,657,53.72,'7596','46925',198,2626);
INSERT INTO "communes" VALUES('2B','Santo-Pietro-di-Venaco','58',239,198,7.96,'7594','46940',217,2400);
INSERT INTO "communes" VALUES('2B','Casanova','58',348,264,9.89,'7597','46949',537,2378);
INSERT INTO "communes" VALUES('2B','Antisanti','60',402,418,47.95,'7788','46852',5,780);
INSERT INTO "communes" VALUES('2B','Pietroso','60',243,286,25.76,'7704','46841',70,1389);
INSERT INTO "communes" VALUES('2B','Rospigliani','60',88,78,9.82,'7659','46878',238,1450);
INSERT INTO "communes" VALUES('2B','Vezzani','60',321,300,46.32,'7678','46860',83,1532);
INSERT INTO "communes" VALUES('2B','Ersa','42',153,132,20.45,'7826','47750',0,562);
INSERT INTO "communes" VALUES('2B','Vivario','58',516,510,79.28,'7593','46859',400,2390);
INSERT INTO "communes" VALUES('2B','Muracciole','58',49,38,14.06,'7608','46855',379,1565);
INSERT INTO "communes" VALUES('2B','Aléria','24',2067,1957,58.33,'7973','46793',0,102);
INSERT INTO "communes" VALUES('2B','Aghione','60',234,245,33.88,'7867','46786',17,459);
INSERT INTO "communes" VALUES('2B','Casevecchie','60',67,68,9.06,'7804','46825',106,729);
INSERT INTO "communes" VALUES('2B','Ghisoni','19',226,265,124.6,'7638','46782',117,2347);
INSERT INTO "communes" VALUES('2B','Poggio-di-Nazza','19',186,185,32.79,'7733','46729',21,1720);
INSERT INTO "communes" VALUES('2B','Lugo-di-Nazza','19',108,103,25.41,'7738','46749',38,1054);
INSERT INTO "communes" VALUES('2B','Ghisonaccia','19',3823,3171,68.25,'7853','46685',0,329);
INSERT INTO "communes" VALUES('2B','Serra-di-Fiumorbo','41',318,255,43.2,'7777','46650',0,1560);
INSERT INTO "communes" VALUES('2B','Prunelli-di-Fiumorbo','41',3410,2750,37.41,'7764','46678',0,580);
INSERT INTO "communes" VALUES('2B','San-Gavino-di-Fiumorbo','41',174,209,22.17,'7702','46648',225,1981);
INSERT INTO "communes" VALUES('2B','Isolaccio-di-Fiumorbo','41',382,333,40.89,'7715','46669',119,2036);
INSERT INTO "communes" VALUES('2B','Ventiseri','41',2273,2027,46.7,'7773','46603',0,1033);
INSERT INTO "communes" VALUES('2B','Chisa','41',100,93,28.92,'7697','46583',139,1850);
INSERT INTO "communes" VALUES('2B','Solaro','41',662,583,93.36,'7766','46560',0,2018);
INSERT INTO "communes" VALUES('2B','Noceta','60',58,54,18.66,'7636','46886',199,1426);
INSERT INTO "communes" VALUES('2B','Meria','42',96,85,20.43,'7907','47697',0,604);
INSERT INTO "communes" VALUES('2B','Tomino','42',206,186,5.8,'7895','47718',0,414);
INSERT INTO "communes" VALUES('2B','Morsiglia','42',148,123,13.34,'7809','47717',0,604);
INSERT INTO "communes" VALUES('2B','Centuri','42',218,229,8.3,'7814','47734',0,562);
INSERT INTO "communes" VALUES('2B','Rogliano','42',559,460,26.7,'7868','47729',0,602);
INSERT INTO "communes" VALUES('2B','Cagnano','42',195,179,14.72,'7881','47639',0,1068);
INSERT INTO "communes" VALUES('2B','Barrettali','42',148,130,18.07,'7798','47641',0,1160);
INSERT INTO "communes" VALUES('2B','Pino','42',166,151,7.04,'7794','47676',0,836);
INSERT INTO "communes" VALUES('2B','Luri','42',680,749,27.53,'7854','47663',0,1136);
INSERT INTO "communes" VALUES('2B','Pietracorbara','09',591,435,26.15,'7881','47607',0,1264);
INSERT INTO "communes" VALUES('2B','Sisco','09',988,743,24.96,'7888','47573',0,1324);
INSERT INTO "communes" VALUES('2B','Olcani','09',80,55,14.25,'7815','47567',120,1324);
INSERT INTO "communes" VALUES('2B','Canari','09',321,323,16.67,'7770','47606',0,1268);
INSERT INTO "communes" VALUES('2B','Ogliastro','09',103,96,9.49,'7777','47566',0,1324);
INSERT INTO "communes" VALUES('2B','Brando','09',1623,1527,22.22,'7932','47528',0,1306);
INSERT INTO "communes" VALUES('2B','Santa-Maria-di-Lota','45',1937,1792,13.2,'7885','47497',0,1198);
INSERT INTO "communes" VALUES('2B','Olmeta-di-Capocorso','09',141,112,21.57,'7816','47521',0,1306);
INSERT INTO "communes" VALUES('2B','Nonza','09',70,67,8.04,'7786','47538',0,841);
INSERT INTO "communes" VALUES('2B','Bastia','99',43008,37880,19.38,'7903','47444',0,963);
INSERT INTO "communes" VALUES('2B','San-Martino-di-Lota','45',2764,2527,9.54,'7910','47470',0,984);
INSERT INTO "communes" VALUES('2B','Ville-di-Pietrabugno','45',3446,2947,7.53,'7882','47459',0,900);
INSERT INTO "communes" VALUES('2B','Barbaggio','29',230,164,10.86,'7823','47433',7,940);
INSERT INTO "communes" VALUES('2B','Patrimonio','29',669,644,17.46,'7806','47442',0,1025);
INSERT INTO "communes" VALUES('2B','Farinole','29',217,179,14.76,'7810','47480',0,1120);
INSERT INTO "communes" VALUES('2B','Biguglia','08',7058,5022,22.27,'7870','47363',0,665);
INSERT INTO "communes" VALUES('2B','Furiani','71',5273,3912,18.49,'7864','47398',0,720);
INSERT INTO "communes" VALUES('2B','Poggio-d''Oletta','29',200,140,16.16,'7806','47377',0,852);
INSERT INTO "communes" VALUES('2B','Oletta','29',1408,832,26.61,'7799','47369',0,959);
INSERT INTO "communes" VALUES('2B','Saint-Florent','29',1635,1476,17.98,'7740','47423',0,356);
INSERT INTO "communes" VALUES('2B','Vallecalle','29',111,109,6.91,'7780','47332',59,519);
INSERT INTO "communes" VALUES('2B','Rapale','26',152,131,10.16,'7741','47323',16,687);
INSERT INTO "communes" VALUES('2B','Olmeta-di-Tuda','29',355,291,17.4,'7797','47346',26,804);
INSERT INTO "communes" VALUES('2B','Rutali','26',347,247,17.11,'7807','47311',35,1151);
INSERT INTO "communes" VALUES('2B','Murato','26',614,556,20.38,'7766','47308',239,1112);
INSERT INTO "communes" VALUES('2B','San-Gavino-di-Tenda','26',54,56,50.44,'7701','47332',0,1426);
INSERT INTO "communes" VALUES('2B','Santo-Pietro-di-Tenda','26',355,334,125.66,'7690','47339',0,869);
INSERT INTO "communes" VALUES('2B','Piève','26',119,85,19.7,'7723','47311',16,1427);
INSERT INTO "communes" VALUES('2B','Sorio','26',146,148,15.56,'7708','47314',119,1535);
INSERT INTO "communes" VALUES('2B','Urtaca','26',186,172,31.26,'7588','47327',37,1367);
INSERT INTO "communes" VALUES('2B','Lama','26',170,130,19.92,'7595','47307',120,1535);
INSERT INTO "communes" VALUES('2B','Novella','05',91,68,30.23,'7534','47316',14,821);
INSERT INTO "communes" VALUES('2B','Belgodère','05',482,372,13.01,'7423','47317',0,811);
INSERT INTO "communes" VALUES('2B','Palasca','05',138,117,49.56,'7451','47321',0,794);
INSERT INTO "communes" VALUES('2B','L''Île-Rousse','20',3201,2769,2.5,'7334','47372',0,151);
INSERT INTO "communes" VALUES('2B','Pigna','20',99,95,2.21,'7295','47333',15,521);
INSERT INTO "communes" VALUES('2B','Monticello','20',1686,1252,10.64,'7352','47352',0,408);
INSERT INTO "communes" VALUES('2B','Sant''Antonino','20',94,78,4.1,'7298','47321',138,521);
INSERT INTO "communes" VALUES('2B','Santa-Reparata-di-Balagna','20',984,838,10.16,'7324','47337',35,561);
INSERT INTO "communes" VALUES('2B','Corbara','20',963,703,10.19,'7300','47349',0,561);
INSERT INTO "communes" VALUES('2B','Algajola','05',296,216,1.72,'7250','47342',0,269);
INSERT INTO "communes" VALUES('2B','Vignale','08',174,165,10.69,'7827','47264',27,1151);
INSERT INTO "communes" VALUES('2B','Lucciana','08',4416,3793,29.16,'7867','47273',0,687);
INSERT INTO "communes" VALUES('2B','Borgo','08',7646,4997,37.78,'7879','47282',0,1117);
INSERT INTO "communes" VALUES('2B','Prunelli-di-Casacconi','14',166,162,6.02,'7850','47227',24,404);
INSERT INTO "communes" VALUES('2B','Scolca','14',100,62,6.82,'7806','47257',231,1234);
INSERT INTO "communes" VALUES('2B','Volpajola','14',454,366,13.03,'7797','47251',45,1231);
INSERT INTO "communes" VALUES('2B','Campitello','14',110,103,8.22,'7755','47254',112,1231);
INSERT INTO "communes" VALUES('2B','Bigorno','14',77,78,8.94,'7738','47255',132,1107);
INSERT INTO "communes" VALUES('2B','Lento','14',116,91,23.72,'7717','47247',131,1469);
INSERT INTO "communes" VALUES('2B','Pietralba','26',438,314,38.98,'7610','47274',251,1520);
INSERT INTO "communes" VALUES('2B','Vallica','05',30,27,12.07,'7461','47246',388,1117);
INSERT INTO "communes" VALUES('2B','Olmi-Cappella','05',188,143,51.1,'7425','47254',456,2389);
INSERT INTO "communes" VALUES('2B','Speloncato','05',285,222,17.67,'7383','47291',49,1331);
INSERT INTO "communes" VALUES('2B','Pioggiola','05',89,69,18.59,'7402','47263',643,1935);
INSERT INTO "communes" VALUES('2B','Costa','05',65,47,1.09,'7405','47306',160,604);
INSERT INTO "communes" VALUES('2B','Ville-di-Paraso','05',179,128,9.37,'7388','47296',32,1120);
INSERT INTO "communes" VALUES('2B','Occhiatana','05',175,163,12.62,'7414','47305',0,1163);
INSERT INTO "communes" VALUES('2B','Avapessa','05',77,65,3.29,'7287','47290',173,800);
INSERT INTO "communes" VALUES('2B','Muro','05',254,250,7.92,'7308','47273',160,1360);
INSERT INTO "communes" VALUES('2B','Zilia','11',266,211,14.01,'7294','47256',172,1935);
INSERT INTO "communes" VALUES('2B','Nessa','05',109,76,5.86,'7346','47278',258,1331);
INSERT INTO "communes" VALUES('2B','Feliceto','05',211,162,15.25,'7332','47271',105,1680);
INSERT INTO "communes" VALUES('2B','Montegrosso','11',450,354,22.78,'7264','47262',20,800);
INSERT INTO "communes" VALUES('2B','Lavatoggio','05',134,97,6.86,'7268','47304',160,689);
INSERT INTO "communes" VALUES('2B','Cateri','05',214,220,3.18,'7283','47302',157,732);
INSERT INTO "communes" VALUES('2B','Lumio','12',1255,1041,19.18,'7218','47309',0,561);
INSERT INTO "communes" VALUES('2B','Aregno','05',595,568,9.3,'7286','47312',0,326);
INSERT INTO "communes" VALUES('2B','Calvi','12',5394,5178,31.2,'7133','47297',0,700);
INSERT INTO "communes" VALUES('2B','Venzolasca','59',1666,1330,16.15,'7911','47204',0,310);
INSERT INTO "communes" VALUES('2B','Taglio-Isolaccio','39',552,536,11.47,'7926','47150',0,525);
INSERT INTO "communes" VALUES('2B','Sorbo-Ocagnano','59',772,713,10.63,'7911','47195',0,616);
INSERT INTO "communes" VALUES('2B','Castellare-di-Casinca','59',550,498,8.88,'7930','47186',0,320);
INSERT INTO "communes" VALUES('2B','Penta-di-Casinca','59',3101,2431,18.53,'7914','47186',0,640);
INSERT INTO "communes" VALUES('2B','Porri','59',56,47,4.5,'7885','47170',68,657);
INSERT INTO "communes" VALUES('2B','Vescovato','59',2458,2314,17.52,'7892','47216',0,440);
INSERT INTO "communes" VALUES('2B','Casabianca','39',91,68,3.68,'7807','47162',388,1000);
INSERT INTO "communes" VALUES('2B','Penta-Acquatella','14',41,40,3.1,'7807','47183',237,920);
INSERT INTO "communes" VALUES('2B','Piano','39',24,36,3.41,'7851','47163',192,1016);
INSERT INTO "communes" VALUES('2B','Monte','14',596,444,14.91,'7838','47187',18,1218);
INSERT INTO "communes" VALUES('2B','Loreto-di-Casinca','59',254,230,8.1,'7882','47196',240,1218);
INSERT INTO "communes" VALUES('2B','Olmo','14',190,166,4.47,'7856','47217',19,696);
INSERT INTO "communes" VALUES('2B','Silvareccio','39',116,97,4.82,'7858','47167',394,1218);
INSERT INTO "communes" VALUES('2B','Casalta','39',53,37,4.91,'7859','47158',111,600);
INSERT INTO "communes" VALUES('2B','Castello-di-Rostino','25',413,277,12.4,'7753','47182',134,1200);
INSERT INTO "communes" VALUES('2B','Giocatojo','39',44,49,2.47,'7792','47159',464,1231);
INSERT INTO "communes" VALUES('2B','Bisinchi','25',195,173,12.66,'7763','47198',113,1067);
INSERT INTO "communes" VALUES('2B','Campile','14',183,199,9.79,'7796','47214',76,1011);
INSERT INTO "communes" VALUES('2B','Ortiporio','14',128,114,5.06,'7785','47175',313,1236);
INSERT INTO "communes" VALUES('2B','Crocicchia','14',47,50,4.32,'7795','47187',195,1041);
INSERT INTO "communes" VALUES('2B','Valle-di-Rostino','25',121,83,15.6,'7715','47177',159,1155);
INSERT INTO "communes" VALUES('2B','Canavaggia','14',106,98,34.93,'7695','47226',151,1323);
INSERT INTO "communes" VALUES('2B','Moltifao','25',745,547,55.19,'7530','47207',200,2064);
INSERT INTO "communes" VALUES('2B','Castifao','25',159,152,42.15,'7528','47227',219,1049);
INSERT INTO "communes" VALUES('2B','Mausoléo','05',16,11,19.43,'7413','47244',527,2030);
INSERT INTO "communes" VALUES('2B','Calenzana','11',2168,1723,182.77,'7243','47231',0,2144);
INSERT INTO "communes" VALUES('2B','Moncale','11',256,200,7.09,'7221','47233',79,522);
INSERT INTO "communes" VALUES('2B','Santa-Lucia-di-Moriani','16',1138,1004,6.22,'7992','47095',0,413);
INSERT INTO "communes" VALUES('2B','San-Nicolao','16',1764,1316,7.73,'7987','47083',0,922);
INSERT INTO "communes" VALUES('2B','Talasani','39',657,517,10.09,'7937','47120',0,487);
INSERT INTO "communes" VALUES('2B','Pero-Casevecchie','39',122,111,4.71,'7921','47127',200,1000);
INSERT INTO "communes" VALUES('2B','Velone-Orneto','39',112,113,12.34,'7927','47112',102,1247);
INSERT INTO "communes" VALUES('2B','Pruno','39',188,182,6.44,'7892','47129',64,973);
INSERT INTO "communes" VALUES('2B','Poggio-Mezzana','39',650,403,8.9,'7954','47109',0,366);
INSERT INTO "communes" VALUES('2B','San-Giovanni-di-Moriani','16',102,85,10.19,'7935','47083',94,1280);
INSERT INTO "communes" VALUES('2B','Croce','39',84,85,6.43,'7805','47126',259,1655);
INSERT INTO "communes" VALUES('2B','Ficaja','39',50,34,5.05,'7812','47136',220,725);
INSERT INTO "communes" VALUES('2B','San-Damiano','39',45,41,5.72,'7857','47123',242,1185);
INSERT INTO "communes" VALUES('2B','Monacia-d''Orezza','37',32,30,4.52,'7846','47091',307,1200);
INSERT INTO "communes" VALUES('2B','Piazzole','37',47,43,3.86,'7850','47104',277,1185);
INSERT INTO "communes" VALUES('2B','San-Gavino-d''Ampugnani','39',85,79,3.22,'7873','47125',138,600);
INSERT INTO "communes" VALUES('2B','Verdèse','37',38,18,1.02,'7809','47102',318,653);
INSERT INTO "communes" VALUES('2B','Polveroso','39',40,22,1.96,'7809','47112',315,1048);
INSERT INTO "communes" VALUES('2B','Scata','39',44,44,2.8,'7850','47129',160,640);
INSERT INTO "communes" VALUES('971','Abymes','93',58534,63001,81,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Anse-Bertrand','03',4775,5027,62,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Baie-Mahault','04',30251,23367,46,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Baillif','36',5214,5817,24,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Basse-Terre','94',11915,12377,5,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Bouillante','07',7545,7316,43,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Capesterre-Belle-Eau','90',19321,19599,103,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Capesterre-de-Marie-Galante','09',3381,3563,46,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Gourbeyre','42',7949,7632,22,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Désirade','10',1579,1621,21,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Deshaies','33',4431,4043,31,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Grand-Bourg','12',5530,5893,55,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Gosier','91',26311,25340,45,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Goyave','43',8065,5040,59,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Lamentin','13',15913,13414,65,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Morne-à-l''Eau','95',16725,17136,64,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Moule','96',22381,20825,82,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Petit-Bourg','92',23199,20510,129,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Petit-Canal','19',8038,7746,70,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Pointe-à-Pitre','97',16427,20931,2,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Pointe-Noire','24',7006,7689,59,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Port-Louis','03',5440,5573,44,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Saint-Claude','26',10467,10191,34,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Saint-François','27',14797,10674,61,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Saint-Louis','28',2650,2997,56,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Sainte-Anne','98',24192,20385,80,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Sainte-Rose','99',20155,17605,118,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Terre-de-Bas','34',1095,1267,6,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Terre-de-Haut','34',1787,1729,6,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Trois-Rivières','35',8755,8730,31,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Vieux-Fort','35',1824,1603,7,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Vieux-Habitants','36',7703,7615,58,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Ajoupa-Bouillon','01',1735,1761,12,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','<NAME>''Arlet','02',3852,3463,25,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Basse-Pointe','03',3711,4184,27,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Carbet','04',3771,3315,36,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Case-Pilote','05',4469,4046,18,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Diamant','06',6066,3959,27,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Ducos','07',16896,15233,37,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Fonds-Saint-Denis','29',857,945,24,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Fort-de-France','99',87216,94152,44,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','François','94',19218,18533,53,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Grand''Rivière','18',605,880,16,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Gros-Morne','15',10588,10633,54,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Lamentin','95',39360,35488,62,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Lorrain','17',7526,8234,50,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Macouba','18',1193,1389,16,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Marigot','19',3603,3655,21,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Marin','20',8690,7269,31,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Morne-Rouge','21',5083,5392,37,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Prêcheur','23',1664,1844,29,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Rivière-Pilote','24',13221,13019,35,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Rivière-Salée','25',12767,12274,39,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Robert','96',23918,21174,47,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Saint-Esprit','27',9335,8200,23,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Saint-Joseph','28',16717,15759,43,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Saint-Pierre','29',4425,4439,38,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Sainte-Anne','30',4684,4152,38,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Sainte-Luce','31',9926,7724,28,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Sainte-Marie','97',18389,20087,44,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','SHOELCHER','98',20814,20839,21,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Trinité','34',13724,12883,45,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Trois-Îlets','35',7627,5150,28,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Vauclin','36',9229,7795,39,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Morne-Vert','04',1857,1934,13,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('972','Bellefontaine','05',1437,1521,11,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Régina','01',874,765,12130,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Cayenne','99',55753,50395,23,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Iracoubo','06',1976,1422,2762,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Kourou','07',25189,19074,2160,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','<NAME>','08',9640,5049,377,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Mana','09',8952,5450,6332,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Matoury','19',28110,18037,137,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Saint-Georges','12',4037,2096,2320,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Remire-Montjoly','10',19279,15538,46,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Roura','11',2601,1781,3902,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Saint-Laurent-du-Maroni','13',38367,19167,4830,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Sinnamary','14',3242,2783,1340,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Montsinéry-Tonnegrande','15',2217,1037,600,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Ouanary','12',94,92,1080,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Saül','16',155,160,4475,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Maripasoula','16',8473,3652,18360,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Camopi','12',1625,1033,10030,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Grand-Santi','16',5065,2844,2112,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Saint-Élie','14',555,239,5680,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Apatou','16',6704,3637,2020,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','Awala-Yalimapo','09',1305,887,187,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('973','<NAME>','16',4827,1652,2628,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Avirons','01',10580,7163,26,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Bras-Panon','02',11725,9671,88,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Entre-Deux','03',6133,5167,66,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Étang-Salé','04',13467,11755,38,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Petite-Île','05',11566,10157,33,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Plaine-des-Palmistes','06',5213,3433,83,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Port','91',38418,38367,16,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Possession','08',30373,21883,118,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Saint-André','92',53955,43150,53,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Saint-Benoît','90',35063,31531,229,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Saint-Denis','93',145022,131649,142,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Saint-Joseph','94',35976,30276,178,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Saint-Leu','95',30966,25310,118,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Saint-Louis','96',52038,43491,98,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Saint-Paul','97',103346,87629,241,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Saint-Pierre','98',79228,69009,95,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Saint-Philippe','26',5086,4858,153,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Sainte-Marie','30',29951,26576,87,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Sainte-Rose','31',6806,6545,177,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Sainte-Suzanne','32',22421,18137,57,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Salazie','33',7510,7400,103,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Tampon','99',73365,60311,165,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Trois-Bassins','36',7121,6597,42,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('974','Cilaos','22',5807,6115,84,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('976','Acoua','01',4714,4714,12.62,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('976','Bandraboua','02',10132,10132,32.11,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('976','Bandrele','03',7885,7885,36.46,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('976','Bouéni','04',6402,6402,14.06,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('976','Chiconi','05',7048,7048,8.26,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('976','Chirongui','06',8047,8047,28.76,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('976','Dembeni','07',10923,10923,3.88,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('976','Dzaoudzi','08',14311,14311,6.66,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('976','Kani-Kéli','09',4920,4920,20.51,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('976','Koungou','10',26488,26488,28.41,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('976','Mamoudzou','99',57281,57281,42.3,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('976','Mtsamboro','14',7805,7805,13.71,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('976','M''Tsangamouji','15',6314,6314,21.84,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('976','Ouangani','16',9834,9834,19.05,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('976','Pamandzi','17',9892,9892,4.29,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('976','Sada','18',10195,10195,10.92,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('976','Tsingoni','19',10454,10454,34.76,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Saint-Barthélemy',NULL,8938,8938,24,NULL,NULL,NULL,NULL);
INSERT INTO "communes" VALUES('971','Saint-Martin',NULL,36979,36979,53.2,NULL,NULL,NULL,NULL);
DROP TABLE IF EXISTS "departements";
CREATE TABLE "departements" ("num_departement" varchar(2) PRIMARY KEY NOT NULL ,"nom" char(32) NOT NULL ,"num_region" VARCHAR DEFAULT (null) );
INSERT INTO "departements" VALUES('01','Ain','84');
INSERT INTO "departements" VALUES('02','Aisne','32');
INSERT INTO "departements" VALUES('03','Allier','84');
INSERT INTO "departements" VALUES('04','Alpes de haute provence','93');
INSERT INTO "departements" VALUES('05','Hautes alpes','93');
INSERT INTO "departements" VALUES('06','Alpes maritimes','93');
INSERT INTO "departements" VALUES('07','Ardèche','84');
INSERT INTO "departements" VALUES('08','Ardennes','44');
INSERT INTO "departements" VALUES('09','Ariège','76');
INSERT INTO "departements" VALUES('10','Aube','44');
INSERT INTO "departements" VALUES('11','Aude','76');
INSERT INTO "departements" VALUES('12','Aveyron','76');
INSERT INTO "departements" VALUES('13','Bouches du rhône','93');
INSERT INTO "departements" VALUES('14','Calvados','28');
INSERT INTO "departements" VALUES('15','Cantal','84');
INSERT INTO "departements" VALUES('16','Charente','75');
INSERT INTO "departements" VALUES('17','Charente maritime','75');
INSERT INTO "departements" VALUES('18','Cher','24');
INSERT INTO "departements" VALUES('19','Corrèze','75');
INSERT INTO "departements" VALUES('21','Côte d''or','27');
INSERT INTO "departements" VALUES('22','Côtes d''Armor','53');
INSERT INTO "departements" VALUES('23','Creuse','75');
INSERT INTO "departements" VALUES('24','Dordogne','75');
INSERT INTO "departements" VALUES('25','Doubs','27');
INSERT INTO "departements" VALUES('26','Drôme','84');
INSERT INTO "departements" VALUES('27','Eure','28');
INSERT INTO "departements" VALUES('28','Eure et Loir','24');
INSERT INTO "departements" VALUES('29','Finistère','53');
INSERT INTO "departements" VALUES('30','Gard','76');
INSERT INTO "departements" VALUES('31','Haute garonne','76');
INSERT INTO "departements" VALUES('32','Gers','76');
INSERT INTO "departements" VALUES('33','Gironde','75');
INSERT INTO "departements" VALUES('34','Hérault','76');
INSERT INTO "departements" VALUES('35','Ile et Vilaine','53');
INSERT INTO "departements" VALUES('36','Indre','24');
INSERT INTO "departements" VALUES('37','Indre et Loire','24');
INSERT INTO "departements" VALUES('38','Isère','84');
INSERT INTO "departements" VALUES('39','Jura','27');
INSERT INTO "departements" VALUES('40','Landes','75');
INSERT INTO "departements" VALUES('41','Loir et Cher','24');
INSERT INTO "departements" VALUES('42','Loire','84');
INSERT INTO "departements" VALUES('43','Haute Loire','84');
INSERT INTO "departements" VALUES('44','Loire Atlantique','52');
INSERT INTO "departements" VALUES('45','Loiret','24');
INSERT INTO "departements" VALUES('46','Lot','76');
INSERT INTO "departements" VALUES('47','Lot et Garonne','75');
INSERT INTO "departements" VALUES('48','Lozère','76');
INSERT INTO "departements" VALUES('49','Maine et Loire','52');
INSERT INTO "departements" VALUES('50','Manche','28');
INSERT INTO "departements" VALUES('51','Marne','44');
INSERT INTO "departements" VALUES('52','Haute Marne','44');
INSERT INTO "departements" VALUES('53','Mayenne','52');
INSERT INTO "departements" VALUES('54','Meurthe et Moselle','44');
INSERT INTO "departements" VALUES('55','Meuse','44');
INSERT INTO "departements" VALUES('56','Morbihan','53');
INSERT INTO "departements" VALUES('57','Moselle','44');
INSERT INTO "departements" VALUES('58','Nièvre','27');
INSERT INTO "departements" VALUES('59','Nord','32');
INSERT INTO "departements" VALUES('60','Oise','32');
INSERT INTO "departements" VALUES('61','Orne','28');
INSERT INTO "departements" VALUES('62','Pas de Calais','32');
INSERT INTO "departements" VALUES('63','Puy de Dôme','84');
INSERT INTO "departements" VALUES('64','Pyrénées Atlantiques','75');
INSERT INTO "departements" VALUES('65','Hautes Pyrénées','76');
INSERT INTO "departements" VALUES('66','Pyrénées Orientales','76');
INSERT INTO "departements" VALUES('67','Bas Rhin','44');
INSERT INTO "departements" VALUES('68','Haut Rhin','44');
INSERT INTO "departements" VALUES('69','Rhône','84');
INSERT INTO "departements" VALUES('70','Haute Saône','27');
INSERT INTO "departements" VALUES('71','Saône et Loire','27');
INSERT INTO "departements" VALUES('72','Sarthe','52');
INSERT INTO "departements" VALUES('73','Savoie','84');
INSERT INTO "departements" VALUES('74','Haute Savoie','84');
INSERT INTO "departements" VALUES('75','Paris','11');
INSERT INTO "departements" VALUES('76','Seine Maritime','28');
INSERT INTO "departements" VALUES('77','Seine et Marne','11');
INSERT INTO "departements" VALUES('78','Yvelines','11');
INSERT INTO "departements" VALUES('79','Deux Sèvres','75');
INSERT INTO "departements" VALUES('80','Somme','32');
INSERT INTO "departements" VALUES('81','Tarn','76');
INSERT INTO "departements" VALUES('82','Tarn et Garonne','76');
INSERT INTO "departements" VALUES('83','Var','93');
INSERT INTO "departements" VALUES('84','Vaucluse','93');
INSERT INTO "departements" VALUES('85','Vendée','52');
INSERT INTO "departements" VALUES('86','Vienne','75');
INSERT INTO "departements" VALUES('87','Haute Vienne','75');
INSERT INTO "departements" VALUES('88','Vosges','44');
INSERT INTO "departements" VALUES('89','Yonne','27');
INSERT INTO "departements" VALUES('90','Territoire de Belfort','27');
INSERT INTO "departements" VALUES('91','Essonne','11');
INSERT INTO "departements" VALUES('92','Hauts de Seine','11');
INSERT INTO "departements" VALUES('93','Seine Saint Denis','11');
INSERT INTO "departements" VALUES('94','Val de Marne','11');
INSERT INTO "departements" VALUES('95','Val d''Oise','11');
INSERT INTO "departements" VALUES('2A','Corse du Sud','94');
INSERT INTO "departements" VALUES('2B','Haute Corse','94');
INSERT INTO "departements" VALUES('971','Guadeloupe','01');
INSERT INTO "departements" VALUES('972','Martinique','02');
INSERT INTO "departements" VALUES('973','Guyane','03');
INSERT INTO "departements" VALUES('974','La Réunion','04');
INSERT INTO "departements" VALUES('976','Mayotte','06');
DROP TABLE IF EXISTS "regions";
CREATE TABLE "regions" ("num_region" varchar(2) PRIMARY KEY NOT NULL DEFAULT (null) ,"nom" varchar(255) NOT NULL );
INSERT INTO "regions" VALUES('44','Alsace-Champagne-Ardenne-Lorraine');
INSERT INTO "regions" VALUES('75','Aquitaine-Limousin-Poitou-Charentes');
INSERT INTO "regions" VALUES('84','Auvergne-Rhône-Alpes');
INSERT INTO "regions" VALUES('27','Bourgogne-Franche-Comté');
INSERT INTO "regions" VALUES('53','Bretagne');
INSERT INTO "regions" VALUES('24','Centre-Val de Loire');
INSERT INTO "regions" VALUES('94','Corse');
INSERT INTO "regions" VALUES('11','Île-de-France');
INSERT INTO "regions" VALUES('76','Languedoc-Roussillon-Midi-Pyrénées');
INSERT INTO "regions" VALUES('32','Nord-Pas-de-Calais-Picardie');
INSERT INTO "regions" VALUES('28','Normandie');
INSERT INTO "regions" VALUES('52','Pays de la Loire');
INSERT INTO "regions" VALUES('93','Provence-Alpes-Côte d''Azur');
INSERT INTO "regions" VALUES('01','Guadeloupe');
INSERT INTO "regions" VALUES('02','Martinique');
INSERT INTO "regions" VALUES('03','Guyane');
INSERT INTO "regions" VALUES('04','La Réunion');
INSERT INTO "regions" VALUES('06','Mayotte');
<file_sep>/MPSI/Python/TP14.py
## IPT --- TP14 --- <NAME> ##
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import quad
from scipy.interpolate import lagrange
## 1 ##
f = lambda x : np.sqrt(1-x**2)
I=np.linspace(-1,1,200)
plt.plot(I,f(I))
plt.title("Graphe de f")
plt.show()
## 2 ##
'''
L'aire recherchée est consituée d'une fraction du cercle d'angle pi/6 et d'un triangle rectangle. On obtient ainsi I = pi/12*1² + (1/2 * arcsin(2*pi/3))/2 = pi/12 + sqrt(3)/8
'''
## 3 ##
'''
En latex :
Une primitive pour x inferieur à 1 donne :
\[\int_{0}^{x}\sqrt{1-x^{2}}dx=\int_{0}^{arcsin(x)}cos(t)^{2}dt=\int_{0}^{arcsin(x)}\frac{cos(t)+1}{2}dt=\frac{1}{2}(arcsin(x)+\frac{sin(2arcsin(x)}{2})=\frac{1}{2}(arcsin(x)+sin(arcsin(x))cos(arcsin(x)))=\frac{1}{2}(arcsin(x)+x\sqrt{1-x^{2}})\]
On retrouve bien I=pi/12 + sqrt(3)/8
'''
## 4 ##
def rectangle (f,a,b,n):
h = (b-a)/n
return h*sum(f(a+h*k) for k in range(n))
Int=np.pi/12+np.sqrt(3)/8
print("I =",Int)
print("\nMéthode des rectangles pour n variant")
for n in np.arange(10,100,20):
print("n =",n," In =",rectangle(f,0,1/2,n))
## 5 ##
n,a,b=20,0,1/2
print("\nDifférentes méthodes pour n =",n)
h=(b-a)/n
m1 = h*sum(f(a+h*k) for k in range(n)); print("Rectangles :",m1)
m2 = h*sum(f(a+h*k+h/2) for k in range(n)); print("Points-milieux:",m2)
m3 = h*((f(a)+f(b))/2 + sum(f(a+h*k) for k in range(1,n))); print("Trapèzes :",m3)
m4 = 1/3*m3 + 2/3*m2; print("Simpson :",m4)
## 6 ##
'''
On peut approximer numeriquement pour tout x de l'intervalle l'integrale de 0 à x de f. Pour éviter trop de calculs, on ne recalcule à chaque fois que l'integrale entre deux abscisses succesives.
'''
X = np.linspace(0,1, 200)
Y = np.zeros(200)
Y[0]=0
n=5
h = (X[1]-X[0])/n
for i in range(199):
Y[i+1]=Y[i]+h*sum(f(X[i+1]+h*k) for k in range(n))
plt.plot(X,Y)
plt.title("Approximation de l'integrale de f s'annulant en 0 par la méthode ses rectangles")
plt.show()
## 7 ## Les deux valeurs renvoyées sont la valeur de l'integrale de la fonction et une estimation de l'erreur commise
print("\nMéthode clé-en-main :",quad(f,a,b)[0])
## 8 ##
n=1000
pointsX, pointsY = [np.random.uniform(0,1/2) for k in range(n)],[np.random.uniform(0,1) for k in range(n)]
plt.plot(I,f(I))
plt.plot([0,0.5,0.5,0,0],[0,0,1,1,0])
plt.plot(pointsX,pointsY,"+")
plt.title("Méthode de Monte-Carlo")
plt.show()
## 9 ##
s=(1/2)*sum(1 for k in range(n) if f(pointsX[k])>=pointsY[k])/n
print("\nMéthode de Monte-Carlo :",s)
## 10 ##
a,b=0,1/2
def m1(n): h = 1/(2*n); return h*sum(f(a+h*k) for k in range(n))
m1 = np.vectorize(m1)
def m2(n): h = 1/(2*n); return h*sum(f(a+h*k+h/2) for k in range(n))
m2 = np.vectorize(m2)
def m3(n): h = 1/(2*n); return h*((f(a)+f(b))/2 + sum(f(a+h*k) for k in range(1,n)))
m3 = np.vectorize(m3)
def m4(n): h = 1/(2*n); return 1/3*m3(n) + 2/3*m2(n)
def m5(n):
S=np.zeros(150)
for i in range(150):
pointsX, pointsY = [np.random.uniform(0,1/2) for k in range(n)],[np.random.uniform(0,1) for k in range(n)]
S[i]=(1/2)*sum(1 for k in range(n) if f(pointsX[k])>=pointsY[k])/n
return abs(sum(S)/200-Int)
m5 = np.vectorize(m5)
X=np.arange(1,20,1)
plt.plot(np.log(X),np.log(m1(X)-Int),label="Rectangle")
plt.plot(np.log(X),np.log(m2(X)-Int),label="Points-milieux")
plt.plot(np.log(X),np.log(Int-m3(X)),label="Trapèzes")
plt.plot(np.log(X),np.log(Int-m4(X)),label="Simpson")
plt.plot(np.log(X),np.log(m5(X)),label="Monte-Carlo")
plt.title("Erreur relative des diférentes méthodes")
plt.legend()
plt.show()
## 11 ##
'''
Ce morceau de code permet de générer une liste de 10 points dont l'ordonné est plus ou moins proche de la courbe de la fonction x -> 2x²+x+3
'''
## 12 ##
Xechant=np.linspace(0,3,10)
Yechant=(2*Xechant**2 +Xechant + 3) + np.random.uniform(-2,2,10)
plt.plot(Xechant,Yechant,"+")
## 13 ## On dispose de 10 points. Le degré du polynome est donc 9.
P=lagrange(Xechant,Yechant)
print("\nPolynome interpolateur :",P)
## 14 ## P[2] est le coef de degré 2 alors que P(2) est l'évaluation de P en 2.
print("P[2] =",P[2]," P(2) =",P(2))
## 15 ## La fonction passe exactement par les points, mais ce n'est peut etre pas l'approche recherché (modèle affine, d'un degré quelconque, etc)
I=np.linspace(0,3,200)
plt.plot(I,P(I),label="Lagrange")
## 16 ##
A,B=np.poly1d([1,0,-1]),np.poly1d([5,4,3])
print("\nCalculs avec les polynomes :\nA =\n",A,"\nB =\n",B,"\nA+B =\n",A+B,"\nA*B =\n",A*B)
## 17 ##
def monlagrange(X,Y):
l = len(X)
def f(x):
L=np.empty(l)
for i in range(l):
m=1
for j in range(l):
if j!=i : m*=(x-X[j])/(X[i]-X[j])
L[i]=m
return sum(Y[j]*L[j] for j in range(l))
return np.vectorize(f)
## 18 ## polyfit renvoie le tableau numpy des coefs
T=np.polyfit(Xechant,Yechant,2)
## 19, 21 ##
P=np.poly1d(T)
plt.plot(I,P(I),label="moindres carré")
plt.legend()
plt.show()
## 20 ##
def transform_poly(C):
l = len(C)
return lambda x: sum(C[k]*x**(l-1-k) for k in range(l))
<file_sep>/MPSI/Python/TP4.py
L=[89,11,-1,34,1]
#for i in L:
# print("Le carre de " ,i, " est ",i**2)
def appartient(L,x):
for i in L:
if i==x:
return True
return False
#print(appartient([1,2,3],3))
def test_entiers(L):
for i in range(1,11):
if appartient(L, i):
print("L'entier ",i," est dans L")
else:
print("L'entier ",i," n'est pas dans L")
#test_entiers(L)
Lentiers=[]
for i in range(1,21):
Lentiers.append(i**2)
#print(Lentiers)
def listecarre(L):
L2=[]
for i in L:
L2.append(i**2)
return L2
#print(listecarre(L))
from random import randrange
def liste_alea(N):
L=[]
for i in range(N):
L.append(randrange(0,101))
return L
#print(liste_alea(4))
def ligne_suivante(L):
Ls=[L[0]]
for i in range(len(L)-1):
Ls.append(L[i]+L[i+1])
Ls.append(L[-1])
return Ls
#print(ligne_suivante([1,1]))
def pascal(n):
L=[1]
for i in range(n):
print(L)
L=ligne_suivante(L)
#pascal(6)
def couples_carre():
#10**2 =100
L=[]
for i in range (10):
if i**2>9:
L.append([str(i**2)[0], str(i**2)[1]])
else:
L.append([str(i**2)[0], '0'])
#print(L)
return L
#couples_carre()
def restants(L):
Lr=[i for i in range(100)]
for i in L:
if 0<=i and i<100:
Lr.remove(i)
return Lr
#print(restants([1,2,3,5,6]))
def liste_carre(L):
return [i**2 for i in L]
def liste_alea(N):
return [randrange(0,101) for i in range(N)]
#print(liste_alea(4))
#(liste_carre([1,2,3]))
L6 = [L[len(L)-i] for i in range(1,len(L))]
M= [[i+2*j for i in range(1,4)] for j in range(1,5)]
#print(M[3][2])
def produit_matrices(A,B):
def prod(l,c):
s=0
for i in range(len(A[l])):
s+= A[l][i]*B[i][c]
return s
S=[[ prod(l,c) for c in range(len(A)) ] for l in range(len(B[0])) ]
return S
#print(produit_matrices([[1,2],[2,3]],[ [2,3],[4,5] ]))
from math import sqrt
def moyenne(L):
m=0
for i in L:
m+=i
m/=len(L)
return m
def variance(L):
m = moyenne(L)
return moyenne( [(i-m)**2 for i in L] )
def ecart_type(L):
return sqrt(variance(L))
L= [10, 0, 5 , 8]
#print(moyenne(L))
#print(variance(L))
#print(ecart_type(L))
#[i for i in L]
def echange(L,i,j):
if max(i,j)<len(L):
L[i], L[j] = L[j], L[i]
else :
return
L=[1,2,3]
echange(L,1,2)
#print(L)
def copiematrice(L):
#return [[i for i in L[j] ] for j in range(len(L)) ]
return[L[j][:] for j in range(len(L)) ]
L= [[1,2],[3,4]]
L2 = copiematrice(L)
print("L1 ",L, "L2 ",L2)
L[0][0]=12
print("L1 ",L, "L2 ", L2)
<file_sep>/MPSI/Python/cube.py
import numpy as np
import matplotlib.pyplot as plt
fig=plt.figure()
ax=fig.add_subplot(1,1,1,projection='3D')
fig.show()
<file_sep>/MPSI/Python/pivotGauss_euclide.py
import numpy as np
def euclide2 (a,b):
r0,u0,v0,r1,u1,v1 = a,1,0,b,0,1
while r1!=0:
q = r0//r1
r0,u0,v0,r1,u1,v1 = r1,u1,v1,r0-q*r1,u0-q*u1,v0-q*v1
return r0,u0,v0
def euclide (l):
n=len(l)
u=np.array([0]*n)
p,a,b= euclide2(l[0],l[1])
u[0:2] = [a,b]
for i in range(2,n):
p,a,b = euclide2(p,l[i])
u*=a
u[i]=b
return p,u
def transvection(C,i,j,c,ligne=True):
if ligne :C[i]+=c*C[j]
else : C[:,i]+=c*C[:,j]
def dilatation(C,i,c,ligne=True):
if ligne : C[i]*=c
else : C[:,i]*=c
def echange(C,i,j,ligne=True):
if ligne :
for k in range(len(C[0])):
C[j,k],C[i,k] = C[i,k],C[j,k]
else :
for k in range(len(C)):
C[k,j],C[k,i] = C[k,i],C[k,j]
def mini(C,j,ligne=True):
i=j
m=abs(C[j,j])
if ligne :
for k in range(j+1,len(C)):
if (abs(C[k,j])>0 and abs(C[k,j])<m):
m=abs(C[k,j])
i=k
return i,m
else :
for k in range(j+1,len(C[0])):
if (abs(C[j,k])>0 and abs(C[j,k])<m):
m=abs(C[j,k])
i=k
return i,m
def mini2(C,k):
i,j=k,k
m=abs(C[j,j])
for l in range(j,len(C)):
for c in range(j,len(C[0])):
m2 = abs(C[l,c])
if m2>0 and m2<m :
m = m2
i,j=l,c
return i,j,m
def pivot1(A):
C=A
l1=len(C)
l2=len(C[0])
print(C)
for j in range(l2):
pivot = C[j,j]
for i in range(j+1,l1):
cible=C[i,j]
p,a,b = euclide2(pivot,cible)
dilatation(C,i,pivot//p)
transvection(C,i,j,-cible//p)
print(C)
for j in range(l2-1,-1,-1):
pivot = C[j,j]
for i in range(j):
cible=C[i,j]
p,a,b = euclide2(pivot,cible)
dilatation(C,i,pivot//p)
transvection(C,i,j,-cible//p)
print(C)
for j in range(1,l2):
#dilatatiopen(C,j,C[j-1,j-1])
p,a,b = euclide2(C[j-1,j-1],C[j,j])
dilatation(C,j,C[j-1,j-1]//p)
print(C)
return(C)
def pivot2(A):
C=A
l1=len(C)
l2=len(C[0])
for j in range(l2):
print(C)
'''Il faut repérer le plus plus petit
for k in range(j,l2):
if mini(C,k)[0]>0 : echange(C,j,mini(C,k)[0])
if mini(C,j,False)[0]>0 : echange(C,j,mini(C,j,False)[0],False)
pivot = C[j,j]
'''
l,c,m = mini2(C,j)
if l>-1 : echange(C,j,l)
if c>-1 : echange(C,j,c,False)
pivot = C[j,j]
for i in range(j+1,l1):
cible=C[i,j]
p,a,b = euclide2(pivot,cible)
dilatation(C,i,pivot//p)
transvection(C,i,j,-cible//p)
for i in range(j+1,l2):
cible=C[j,i]
p,a,b = euclide2(pivot,cible)
dilatation(C,i,pivot//p,False)
transvection(C,i,j,-cible//p,False)
print(C)
for j in range(0,l2-1):
pivot = C[j,j]
cible= C[j+1,j+1]
p,a,b = euclide(C[j,j],C[j+1,j+1])
transvection(C,j,j+1,1,False)
print(C)
dilatation(C,j,a)
print(C)
transvection(C,j,j+1,b)
print(C)
transvection(C,j+1,j,-b*cible//p,False)
transvection(C,j+1,j,1)
print(C)
return(C)
def pivot3(A):
C=A
l1=len(C)
l2=len(C[0])
#Sans à priori les relations de divisibilité
for j in range(min(l2,l1)):
arrange=False
while not arrange:
print(C)
l,c,_ = mini2(C,j)
echange(C,j,l)
echange(C,j,c,False)
pivot = C[j,j]
'''
l,_ = mini(C,j)
echange(C,j,l)
c,_ = mini(C,j,False)
echange(C,j,c,False)
pivot = C[j,j]
'''
for i in range(j+1,l1):
cible=C[i,j]
transvection(C,i,j,-cible//pivot)
for i in range(j+1,l2):
cible=C[j,i]
transvection(C,i,j,-cible//pivot,False)
arrange = mini(C,j)[0]==j and mini(C,j,False)[0]==j
#Relations de divisibilité
for j in range(min(l1,l2)-2,-1,-1):
print(C)
p,u,v = euclide2(C[j,j],C[j+1,j+1])
transvection(C,j,j+1,v,False)
transvection(C,j+1,j,(u-1))
transvection(C,j,j+1,1)
transvection(C,j+1,j,-C[j+1,j]//C[j,j])
transvection(C,j+1,j,-C[j,j+1]//C[j,j],False)
return(C)
A=np.array([[16,-5,8,45,2,8],[7,8,11,2,4,7],[16,13,-18,2,9,8],[17,2,3,2,4,7]])
pivot3(A)
<file_sep>/README.md
Cours d'info, d'IPT & documents divers
<file_sep>/MPSI/Sqlite/TP17.sql
-- TP17 -- <NAME>
.headers on
.mode column
.open geographie.sqlite
-- 1 --
SELECT nom FROM communes ;
-- 2 --
SELECT nom, population_2010 FROM communes ORDER BY population_2010 DESC LIMIT 10 ;
-- 3 --
SELECT nom, latitude FROM communes ORDER BY latitude DESC LIMIT 1 ;
-- 4 --
SELECT nom, population_2010/surface as densite FROM communes ORDER BY densite DESC LIMIT 10 ;
-- 5 --
SELECT nom, surface FROM communes ORDER BY surface LIMIT 10 ;
-- 6 --
SELECT nom, zmax-zmin AS e FROM communes WHERE e>0 ORDER BY e LIMIT 15 ;
-- 7 --
SELECT nom FROM communes WHERE population_2010 >= 2e5 ;
-- 8 --
SELECT communes.nom, population_2010 FROM communes
WHERE num_departement == 14
ORDER BY population_2010 DESC LIMIT 20 ;
-- 9 --
SELECT nom FROM departements WHERE num_region in (84,75) ;
-- 10 --
SELECT nom,population_2010 FROM communes WHERE nom LIKE "Z%" ORDER BY population_2010 DESC LIMIT 5 ;
-- 11 --
SELECT communes.nom, population_2010-population_1999 AS absolue FROM communes
WHERE num_departement == 14
ORDER BY absolue DESC LIMIT 5 ;
SELECT communes.nom, (1.*population_2010-population_1999)/population_1999*100 AS relative FROM communes
WHERE num_departement == 14
ORDER BY relative DESC LIMIT 5 ;
-- 12 --
SELECT nom FROM communes WHERE
nom LIKE "%a%" AND
nom LIKE "%e%" AND
nom LIKE "%i%" AND
nom LIKE "%o%" AND
nom LIKE "%u%" AND
nom LIKE "%y%"
ORDER BY LENGTH(nom) LIMIT 1;
-- 13 --
SELECT nom FROM communes WHERE num_departement == 14 AND
nom LIKE "%a%" AND
nom LIKE "%e%" AND
nom LIKE "%i%" AND
nom LIKE "%o%" AND
nom LIKE "%u%" AND
nom LIKE "%y%"
ORDER BY LENGTH(communes.nom) LIMIT 1;
-- 14 --
SELECT nom FROM communes WHERE nom LIKE "ca%en" ;
-- 15 --
SELECT nom FROM communes WHERE nom LIKE "%z%z%" AND nom LIKE "%x%" ;
-- 16 --
SELECT nom FROM communes WHERE LENGTH(nom) >= 40 ;
SELECT nom FROM communes WHERE LENGTH(nom) <= 2 ;
-- 17 --
SELECT SUM(population_2010) FROM communes ;
-- 18 --
SELECT nom, MAX(surface) FROM communes;
-- 19 --
SELECT COUNT(*) FROM communes WHERE num_departement == 14 ;
-- 20 --
SELECT COUNT(*) FROM communes WHERE nom LIKE "%x%x%" ;
-- 21 --
SELECT COUNT(*) FROM communes WHERE
nom LIKE "%a%" AND
nom LIKE "%e%" AND
nom LIKE "%i%" AND
nom LIKE "%o%" AND
nom LIKE "%u%" AND
nom LIKE "%y%";
-- 22 --
SELECT num_departement, COUNT(*) AS c FROM communes
GROUP BY num_departement
ORDER BY c DESC;
-- 23 --
SELECT num_departement, AVG(zmax) FROM communes
WHERE num_departement IN (14, 74)
GROUP BY num_departement;
-- 24 --
SELECT num_departement, SUM(population_2010) AS s FROM communes
GROUP BY num_departement
ORDER BY s DESC;
-- 25 --
SELECT num_departement, SUM(population_2010) AS s FROM communes
WHERE population_2010 >= 20000
GROUP BY num_departement
ORDER BY s
LIMIT 10;
-- 26 --
SELECT num_departement, SUM(population_2010) AS s FROM communes
GROUP BY num_departement
HAVING s >= 15e5
ORDER BY s DESC
LIMIT 10;
-- 27 --
SELECT LENGTH(nom) AS l, COUNT(*) FROM communes
GROUP BY l
ORDER BY l;
-- 28 --
SELECT LENGTH(nom) as l, COUNT(*), nom FROM communes
GROUP BY l
ORDER BY l;
-- 29 --
SELECT nom, COUNT(*) AS c FROM communes
GROUP BY nom
ORDER BY c DESC
LIMIT 15;
-- 30 -- Ce produit cartésien comporte 1818 enregistrements.
SELECT * FROM departements, regions ;
-- 31 --
SELECT * FROM departements JOIN regions ON departements.num_region == regions.num_region ;
-- 32 L'attribut num_region est contenu par les deux tables ! --
SELECT * FROM departements
JOIN regions ON departements.num_region == regions.num_region
WHERE num_region=28;
SELECT * FROM departements
JOIN regions ON departements.num_region == regions.num_region
WHERE regions.num_region == 28;
-- 33 --
SELECT departements.nom, COUNT(*) as c FROM departements
JOIN communes ON departements.num_departement == communes.num_departement
GROUP BY departements.nom
ORDER BY c DESC;
-- 34 --
SELECT departements.nom, SUM(population_2010) as s FROM departements
JOIN communes ON departements.num_departement == communes.num_departement
GROUP BY departements.nom
ORDER BY s DESC;
-- 35 --
SELECT departements.nom, SUM(population_2010) as s FROM departements
JOIN communes ON departements.num_departement == communes.num_departement
GROUP BY departements.nom
HAVING s >= 15e5
ORDER BY s DESC;
-- 36 --
SELECT regions.nom, COUNT(*) AS c FROM regions
JOIN departements ON departements.num_region == regions.num_region
GROUP BY regions.nom
ORDER by c;
-- 37 --
SELECT departements.nom, (1.*SUM(population_2010))/SUM(surface) as densite FROM departements
JOIN communes ON departements.num_departement == communes.num_departement
GROUP BY departements.nom
ORDER BY densite DESC;
-- 38 --
SELECT communes.nom FROM communes
JOIN departements ON departements.num_departement == communes.num_departement
WHERE num_region == 75 AND
communes.nom LIKE "%a%" AND
communes.nom LIKE "%e%" AND
communes.nom LIKE "%i%" AND
communes.nom LIKE "%o%" AND
communes.nom LIKE "%u%" AND
communes.nom LIKE "%y%";
-- 39 --
SELECT communes.nom FROM communes
JOIN departements ON departements.num_departement == communes.num_departement
WHERE INSTR( UPPER(communes.nom), UPPER(departements.nom) ) > 0;
-- 40 --
SELECT communes.nom, departements.nom, regions.nom FROM communes
JOIN departements ON communes.num_departement == departements.num_departement
JOIN regions ON departements.num_region == regions.num_region;
-- 41 --
SELECT regions.nom, SUM(population_2010) AS s FROM regions
JOIN departements ON regions.num_region == departements.num_region
JOIN communes ON departements.num_departement == communes.num_departement
GROUP BY regions.nom
ORDER BY s DESC;
-- 42 --
SELECT regions.nom, 1.*SUM(population_2010)/SUM(surface) AS densite FROM regions
JOIN departements ON regions.num_region == departements.num_region
JOIN communes ON departements.num_departement == communes.num_departement
GROUP BY regions.nom
ORDER BY densite DESC;
-- 43 --
SELECT regions.nom, COUNT(*) AS c FROM regions
JOIN departements ON regions.num_region == departements.num_region
JOIN communes ON departements.num_departement == communes.num_departement
WHERE regions.nom == "Normandie";
-- 44 --
SELECT regions.nom, SUM(population_2010) AS s, communes.nom, MAX(communes.population_2010) FROM regions
JOIN departements ON regions.num_region == departements.num_region
JOIN communes ON departements.num_departement == communes.num_departement
GROUP BY regions.nom
ORDER BY s DESC;
-- 45 --
SELECT communes.nom, departements.nom, regions.nom, zmax-zmin AS e FROM communes
JOIN departements ON departements.num_departement == communes.num_departement
JOIN regions ON departements.num_region == regions.num_region
WHERE e>0
ORDER BY e DESC
LIMIT 15;
-- 46 --
SELECT communes.nom, COUNT(*) AS c FROM communes
JOIN departements ON departements.num_departement == communes.num_departement
WHERE departements.num_region == 28
GROUP BY communes.nom
HAVING c >= 3
ORDER BY c DESC;
-- 47 --
-- Lent
SELECT nom FROM departements AS d
WHERE EXISTS (
SELECT num_departement FROM communes
WHERE num_departement == d.num_departement AND
population_2010 >= 140000
);
-- Etonnament plus rapide mais pas joli
SELECT nom from departements AS d
WHERE EXISTS (
SELECT * from communes
JOIN departements ON communes.num_departement == d.num_departement
WHERE population_2010 >= 140000
);
-- Rapide mais sans EXISTS
SELECT DISTINCT d.nom FROM departements AS d
JOIN communes ON communes.num_departement == d.num_departement
WHERE communes.population_2010 >= 140000;
-- 48 --
SELECT nom FROM departements AS d
WHERE NOT EXISTS (
SELECT num_departement FROM communes
WHERE num_departement == d.num_departement AND
population_2010 >= 30000
);
-- Encore une fois plus rapide
SELECT nom FROM departements AS d
WHERE NOT EXISTS (
SELECT * FROM communes
JOIN departements ON communes.num_departement == d.num_departement
WHERE population_2010 >= 30000
);
-- 49 --
SELECT nom FROM regions AS r
WHERE EXISTS (
SELECT nom, num_region FROM departements
WHERE num_region == r.num_region AND
nom LIKE "c%"
);
-- Idem
SELECT DISTINCT r.nom FROM regions AS r
JOIN departements ON departements.num_region == r.num_region
WHERE departements.nom LIKE "c%";
-- 50 --
SELECT nom FROM regions AS r
WHERE NOT EXISTS (
SELECT * FROM communes
JOIN departements ON communes.num_departement == departements.num_departement
WHERE departements.num_region == r.num_region AND
communes.nom LIKE "%a%" AND
communes.nom LIKE "%e%" AND
communes.nom LIKE "%i%" AND
communes.nom LIKE "%o%" AND
communes.nom LIKE "%u%" AND
communes.nom LIKE "%y%"
);
-- 51 --
SELECT c.nom FROM communes AS c
JOIN departements AS d ON c.num_departement == d.num_departement
WHERE NOT INSTR(UPPER(c.nom),UPPER(d.nom)) AND
EXISTS ( SELECT nom AS n FROM departements
WHERE INSTR((c.nom),(n)));
-- Sans EXISTS
SELECT c.nom FROM communes as c
JOIN departements AS d ON c.num_departement != d.num_departement AND
INSTR(UPPER(c.nom), UPPER(d.nom));
-- 52 --
SELECT num_departement, nom, population_2010 FROM communes
JOIN ( SELECT num_departement AS n, MAX(population_2010) AS p FROM communes
GROUP BY n
HAVING p >= 200000
) ON population_2010 == p;
-- Plus simple
SELECT d.num_departement, c.nom, MAX(population_2010) FROM departements AS d y
JOIN communes AS c ON c.num_departement = d.num_departement AND population_2010 >= 200000
GROUP BY d.num_departement;
-- 53 --
SELECT SUBSTR(nom,1,1) AS l, nom, num_departement, surface FROM communes
JOIN ( SELECT MAX(surface) AS s, SUBSTR(nom,1,1) AS l2 FROM communes
WHERE num_departement <= 95
GROUP BY l2
) ON l == l2 AND surface == s
ORDER BY l;
-- Plus simple, mais si deux communes avaient la même surface, une seule serait renvoyée
SELECT SUBSTR(nom,1,1) AS l, nom, num_departement, MAX(surface) FROM communes
WHERE num_departement <= 95
GROUP BY l;
-- 54 --
SELECT num_departement, nom, (population_1999-population_2010) AS diminution FROM communes
JOIN ( SELECT MAX(population_1999-population_2010) AS d, num_departement AS n FROM communes
GROUP BY n
) ON num_departement == n AND diminution == d;
-- Plus simple, mais ne renvoie qu'une seule des communes dont la population à le plus diminué
SELECT num_departement, nom, MAX(population_1999-population_2010) AS diminution FROM communes
GROUP BY num_departement;
-- 55 --
SELECT (100.*sc)/SUM(population_2010) from communes
JOIN ( SELECT SUM(population_2010) AS sc FROM communes
WHERE population_2010 >= 2000
);
-- 56 --
SELECT (100.*COUNT(*)) / (SELECT COUNT(*) FROM communes) FROM communes
WHERE nom LIKE "%saint%";
SELECT (100.*COUNT(*)) / (SELECT COUNT(*) FROM communes) FROM communes
WHERE nom LIKE "%ville%";
SELECT (100.*COUNT(*)) / (SELECT COUNT(*) FROM communes) FROM communes
WHERE nom LIKE "%sur%";
-- 57 --
SELECT nom, population_2010 FROM (
SELECT nom, population_2010 FROM communes
ORDER BY population_2010 DESC
LIMIT 2)
ORDER BY population_2010 ASC
LIMIT 1;
-- Ou avec les fonctions déja existantes
SELECT nom, population_2010 FROM communes
ORDER BY population_2010 DESC
LIMIT 1 OFFSET 1;
-- 58 --
SELECT c.* FROM departements AS d
JOIN ( SELECT num_departement, canton, SUM(population_2010) AS p, nom, MAX(population_2010) FROM communes
GROUP BY num_departement,canton) AS c ON c.num_departement == d.num_departement
ORDER BY c.p LIMIT 10;;
| a7ce9b5cb236b9ea7195db675f3a9a259adfe454 | [
"Markdown",
"SQL",
"Python"
] | 28 | Python | Nemepher/Prepa | a5f00e3e62ad82daf2883d24e9a6a69544f21a4c | 307e4656d8ed3cc5dc224ffc6993689a6a8c81ff |
refs/heads/master | <file_sep>const mongoose = require("mongoose");
const StorySchema = new mongoose.Schema({
title: {type: String, required: true, trim: true},
body: {type: String, required: true},
status: {type: String, default: 'public', enum:['public', 'private']},
user: {type: mongoose.SchemaTypes.ObjectId, ref:'User'},
createdAt: {type: Date, default: Date.now},
})
module.exports = mongoose.model("Story", StorySchema);<file_sep>'use strict'
/**
* Aslinda ES8 ile birlikte gelen async/await Promise yapisinda birden fazla
* .then() yerine normal senkron bir kod gibi kodunuzu yazabilirsiniz.
* try==cathc mekanizmasinida direk kullanabiliyoruz
* await === resolve() or reject()
* resolve() === try
* reject() === cathc
*/
const showAvatar = async url => {
// read github user
let githubResponse = await fetch(url) // buda bir promise
let githubUser = await githubResponse.json() // buda bir pomise tir.
//show the avatar
let img = document.createElement('img')
img.src = githubUser.avatar_url
img.className = 'promise-avatar-example'
document.body.append(img)
// if you want the img wait 3 seconds
await new Promise((resolve, reject) => setTimeout(resolve, 3000))
img.remove()
return githubUser
}
showAvatar('http://api.github.com/users/cokyaman65')
.then(githubUser => console.log(githubUser))
.catch(err => console.log(err))
<file_sep>const express = require("express");
const router = express.Router();
//login
router.get(`/`, (req,res) =>{
res.render("login", {
title : "LOGIN"
});
});
//dashbord
router.get(`/dashboard`, (req,res) =>{
res.render("dashboard", {
title : "DASHBOARD",
layout : "./layouts/globalLogin"
});
});
module.exports = router;
<file_sep>const router = require("express").Router();
const adminControllers = require("../controllers/adminControllers");
router.get("/", adminControllers.home);
router.get("/admin",adminControllers.admin_index);
router.get("/admin/add",adminControllers.admin_add_get);
router.post("/admin/add",adminControllers.admin_add_post)
router.delete("/admin/delete/:id",adminControllers.admin_delete)
module.exports = router;<file_sep>const express = require("express");
const router = express.Router();
const blogControllers = require("../controllers/blogContorllers");
router.get("/blog/:id",blogControllers.blog_single)
router.get("/about",blogControllers.blog_about);
module.exports = router<file_sep>const Blog = require("../models/blogs");
const blog_single = async (req,res) =>{
const { params} = req;
let id = params.id;
try {
let result = await Blog.findById(id);
res.render("blog",{title:"Detay", blogs:result});
} catch (error) {
res.status(404).render("404",{title: "Fault Page"})
}
}
const blog_about = (req, res) => {
res.render("about", { title: "About Page" });
}
module.exports = {
blog_single,
blog_about,
}<file_sep>const express = require("express");
const morgan = require("morgan");
const cors = require("cors");
const cookieParser = require("cookie-parser");
const path = require("path");
const connectDB = require("./config/db");
const dotenv = require("dotenv");
const admin = require("./routers/adminRouter")
const blog = require("./routers/blogRouter")
const authRoute = require("./routers/authRouter")
const {requireAuth,checkUser} = require("./middleware/authMiddleware");
const app = express();
//configure
dotenv.config({ path: "./config/.env" });
//db
connectDB();
// tamplate
app.set("view engine", "ejs");
//static
app.use(express.static(path.join(__dirname, "public")));
// middleware -3th
app.use(morgan("dev"));
app.use(cors())
app.use(cookieParser());
//body-parser
app.use(express.json());
app.use(express.urlencoded({extended: true}))
//all page run
app.get("*",checkUser);
// router
app.use("/",authRoute);
app.use(requireAuth,admin);
app.use(blog);
// middleware
app.use((req, res) => {
res.status(404).render("404", { title: "Fault Page" });
});
// run
app.listen(process.env.PORT, () => {
console.log(`on ${process.env.PORT} port running ...`);
});
<file_sep>const mongoose = require("mongoose");
const blogSchema = new mongoose.Schema({
title : {
type : String,
require : true
},
short : {
type : String,
require : true
},
long : {
type : String,
require : true
}
},{timestamps : true});
module.exports = mongoose.model("blog", blogSchema);
<file_sep>const Blog = require("../models/blogs");
const home = async (req, res) => {
try {
let result = await Blog.find().sort({createdAt : -1});
res.render("index", { title: "Home Page" , blogs : result});
} catch (error) {
res.status(404).render("404",{title: "Fault Page"})
}
}
const admin_index = async (req, res) => {
try {
let result = await Blog.find().sort({createdAt : -1});
res.render("admin", { title: "Admin Page" , blogs : result});
} catch (error) {
res.status(404).render("404",{title: "Fault Page"})
}
}
const admin_add_get = async (req, res) => {
res.render("add",{title: "Add Post"})
}
const admin_add_post = async (req,res) =>{
const {params , body} = req;
let newPost = new Blog(body);
await newPost.save();
res.redirect("/admin");
}
const admin_delete = async (req,res) => {
const {params} = req;
try {
await Blog.findByIdAndDelete(params.id);
res.json({link : "/admin"})
} catch (error) {
console.error(error);
}
}
module.exports = {
home,
admin_index,
admin_add_get,
admin_add_post,
admin_delete,
}<file_sep>const cheerio = require("cheerio");
const fetch = require("node-fetch");
const url = "https://ue.firat.edu.tr";
function getKonutlar() {
return fetch(`${url}`)
.then((response) => response.text())
.then((body) => {
const satilikKonutlar = [];
const $ = cheerio.load(body);
console.log(body);
$(".box.py-3.generalbox.sitetopic").each(function (i, el) {
const ders_adi = $(el).find("a > h3 > small > br").text();
const ders_konusu = $(el).find("a > h3").text();
const ders_linki = $(el).find(".ng-tns-c2-0").attr("href");
const ders_tarihi = $(el).find("div > h4 > span").text();
const konutlar = {
ders_tarihi,
};
satilikKonutlar.push(konutlar);
});
return satilikKonutlar;
});
}
module.exports = {
getKonutlar
};<file_sep>const jwt = require("jsonwebtoken");
const User = require("../models/users");
const requireAuth = (req, res, next) => {
// bu cookies'ta tokens kontrolunu cookie-parser yapiyor.
const token = req.cookies.tokens;
if (token) {
// token cozumleme
jwt.verify(token, process.env.jwtkeys, (err, decodedToken) => {
if (err) {
console.error("token verify hatasi :", err);
res.redirect("/login");
} else {
console.log("token decoded : ", decodedToken);
next();
}
});
} else {
res.redirect("/login");
}
};
const checkUser = (req, res, next) => {
const token = req.cookies.tokens;
if (token) {
// token cozumleme
jwt.verify(token, process.env.jwtkeys, async (err, decodedToken) => {
if (err) {
console.error("token verify hatasi :", err);
res.locals.userValied = null;
} else {
console.log("token decoded : ", decodedToken);
let user = await User.findById(decodedToken.id);
res.locals.userValied = user;
next();
}
});
} else {
res.locals.userValied = null;
next();
}
};
module.exports = { requireAuth , checkUser};
<file_sep>// get and post with Async/Await
async function get (url) {
//hazir olusmus Promise`ler
const response = await fetch(url)
const data = await response.json()
// kendi yazdigimiz bir promise ve bize datayi vermeden once 3s bekleticek
await new Promise((resolve, reject) => setTimeout(resolve, 3000))
return data
}
get('http://api.github.com/users/cokyaman65')
.then(data => console.log(data))
.catch(err => console.log(err))
<file_sep>const User = require("../models/users");
const jwt = require("jsonwebtoken");
const bcrypt = require("bcrypt");
//token
const maxAge = 60 * 60 ;
const createToken = (id) => {
return jwt.sign({ id }, process.env.jwtkeys, { expiresIn: maxAge });
};
const login_get = (req, res) => {
res.render("login", {
title: "Login"
});
};
const login_post = async (req, res) => {
const { username, password } = req.body;
const user = await User.findOne({ username });
if (user) {
const auth = await bcrypt.compare(password, user.password);
if (auth) {
// token : isteklerin ayni kisiden gidip gitmedigini dogrular.
const token = createToken(user._id);
//cookies : sitede dolasmak icin
res.cookie("tokens", token, {
httpOnly: true,
maxAge: maxAge * 1000, // ms cinsinden calisir
});
res.redirect("/admin");
} else {
throw Error("parola hatali");
}
} else {
throw Error("username hatali");
}
};
const signup_get = (req, res) => {
res.render("signup", { title: "Signup" });
};
const signup_post = async (req, res) => {
const { body, params } = req;
let newUser = new User(body);
await newUser.save();
res.redirect("/login");
};
// cookie kaldirma islemi
const logout_get = (req, res) => {
res.clearCookie("tokens")
res.redirect("/login");
};
module.exports = {
login_get,
login_post,
signup_get,
signup_post,
logout_get,
};
<file_sep>// Promise:
/*const waitThenCall = msg => {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve(msg + "success")
}, 1000)
})
}
waitThenCall('Hello_')
.finally(() => {
console.log('Promise ready..')
})
.then(
response => {
console.log(response)
return waitThenCall('Hello2_')
},
err => {}
)
.then(
response => {
console.log(response)
return waitThenCall('Hello3_')
},
err => undefined
)
.catch(err => {
console.log(err)
})
*/
// Async-Await
/**
* Async=> dedigimiz sey kesinlike bir Promise() donecegini soyluyoruz
* eger Promise() dondermez isek compiler kendisi bunu gerceklestiriyor
* Await => ise yazilan Promise()`in resolve etmesini bekler
* ve try catch bloklari ile
*/
async function run () {
let waitThenCall = new Promise((resolve, reject) => {
setTimeout(() => {
resolve(msg + ' success')
}, 1000)
})
try {
const result = await waitThenCall('Hello1')
console.log(result)
const result2 = await waitThenCall('Hello2')
console.log(result2)
console.log('Hello')
} catch (e) {
console.log(e)
}
}
run()
| 47c2ad53ff583fe033e983ba0b6493f11b074e00 | [
"JavaScript"
] | 14 | JavaScript | ckymn/node.js-learned | 350796bc7901a141cd92183960b618a42ac6c016 | e61e2db9c9ff895424a5e53c877a8c38bfaa4e64 |
refs/heads/master | <repo_name>lixiaofu/KDWB<file_sep>/README.md
KDWB
====
微博服务器端
JSP,MySQL,Tomcat
<file_sep>/KDWB/src/wpf/MyServletContextListener.java
//MyServletContextListene ������ p106
package wpf;
import java.net.ServerSocket;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
public class MyServletContextListener implements ServletContextListener{
ServerSocket ss=null;
ServerThread st=null;
public void contextIntitialized(ServletContextEvent sce){
try{
ss=new ServerSocket(8888);
st=new ServerThread(ss);
st.start();
}catch(Exception e){
e.printStackTrace();
}
}
public void contextDestroyed(ServletContextEvent sce){
try{
st.flag=false;
ss.close();
ss=null;
st=null;
}catch(Exception e){
e.printStackTrace();
}
}
public void contextInitialized(ServletContextEvent arg0) {
// TODO Auto-generated method stub
}
}<file_sep>/KDWB/src/wpf/ServerThread.java
package wpf;
//ServletThread.java ��Զ�� P107
import java.net.ServerSocket;
import java.net.Socket;
public class ServerThread extends Thread{
public ServerSocket ss;
public boolean flag=false;
public ServerThread(ServerSocket ss){
this.ss=ss;
flag=true;
}
public void run(){
while(flag){
try{
Socket socket=ss.accept();
ServerAgent sa=new ServerAgent(socket);
sa.start();
}catch(Exception e){
e.printStackTrace();
}
}
}
}
<file_sep>/KDWB/src/wpf/ServerAgent.java
//Á»½Ü 107P
package wpf;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.EOFException;
import java.io.IOException;
import java.net.Socket;
public class ServerAgent extends Thread {
public Socket socket;
public DataInputStream din;
public DataOutputStream dout;
boolean flag =false;
public ServerAgent(Socket socket){
this.socket=socket;
try{
din=new DataInputStream(socket.getInputStream());
dout=new DataOutputStream(socket.getOutputStream());
flag=true;
}
catch(IOException e){
e.printStackTrace();
}
}
public void run(){
while (flag){
try{
String msg=din.readUTF();
if(msg.startsWith("<#LIGIN#>")){
//**************
}
//**********
}
catch (EOFException eof) {
try{
dout.close();din.close();socket.close();
socket=null;flag=false;
}catch(IOException e){e.printStackTrace();}
}
catch(Exception e){e.printStackTrace();}
}
}
}<file_sep>/KDWB/sql/db.sql
create table user( // 44ºÅ¹Å²ÎÁÖ P45-P49Ò³Êý¾Ý¿â
u_no INT NOT NULL,
u_pwd VARCHAR(16) NOT NULL,
u_name VARCHAR(8),
u_email VARCHAR(18),
u_state TINYTEXT,
h_id INT,
PRIMARY KEY(u_no),
FOREIGN KEY(h_id)REFERENCES head(h_id)
);
create table friend(
f_id INT NOT NULL,
u_noz INT NOT NULL,
u_noy INT NOT NULL,
f_date TIMESTAMP,
PRIMARY KEY(f_id),
FOREIGN KEY(u_noz)REFERENCES user(u_no),
FOREIGN KEY(u_noy)REFERENCES user(u_no)10
);
create table diary(
r_id INT NOT NULL,
r_title VARCHAR(18) NOT NULL,
r_content TEXT NOT NULL,
r_date TIMESTAMP,
r_no INT NOT NULL,
PRIMARY KEY(r_id),
FOREIGN KEY(u_no)REFERENCES user(u_no)
);
create table album(
x_id INT NOT NULL,
x_name VARCHAR(18) NOT NULL,
x_no INT NOT NULL,
x_access INT DEFAULT 0,
x_date TIMESTAMP,
PRIMARY KEY(x_id),
FOREIGN KEY(u_no)REFERENCES user(u_no)
);
create table photo(
p_id INT NOT NULL,
p_name VARCHAR(18) NOT NULL,
p_des VARCHAR(50) NOT NULL,
P_data MEDIUMBLOB,
x_id INT NOT NULL,
PRIMARY KEY(p_id),
FOREIGN KEY(x_id)REFERENCES album(x_id)
);
create table comment(
c_id INT NOT NULL,
c_content TEXT NOT NULL,
c_no INT NOT NULL,
r_id INT NOT NULL,
c_date TIMESTAMP,
PRIMARY KEY(c_id),
FOREIGN KEY(u_no)REFERENCES user(u_no),
FOREIGN KEY(r_id)REFERENCES diary(r_id)
);
create table p_comment(
c_id INT NOT NULL,
c_content TEXT NOT NULL,
u_no INT NOT NULL,
p_id INT NOT NULL,
c_date TIMESTAMP,
PRIMARY KEY(c_id),
FOREIGN KEY(u_no)REFERENCES user(u_no),
FOREIGN KEY(p_id)REFERENCES diary(p_id)
);
create table(
v_id INT NOT NULL,
u_no INT NOT NULL,
v_no INT NOT NULL,
v_date INT NOT NULL,
PRIMARY KEY(v_id),
FOREIGN KEY(u_no)REFERENCES user(u_no),
FOREIGN KEY(v_no)REFERENCES diary(u_no)
);
create table(
h_id INT NOT NULL,
h_des VARCHAR(18) NOT NULL,
h_data MEDIUMBLOB,NOT NULL,
u_no INT,
PRIMARY KEY(h_id),
FOREIGN KEY(u_no)REFERENCES user(u_no),
);
create table max(
friend_max INT NOT NULL DEFAULT 0,
diary_max INT NOT NULL DEFAULT 0,
album_max INT NOT NULL DEFAULT 0,
photo_max INT NOT NULL DEFAULT 0,
comment_max INT NOT NULL DEFAULT 0,
visit_max INT NOT NULL DEFAULT 0,
user_max INT NOT NULL DEFAULT 0,
head_max INT NOT NULL DEFAULT 0,
p_comment_max INT NOT NULL DEFAULT 0
);
| 35089b151d10c36fdb5309af58528582fff79c83 | [
"Markdown",
"Java",
"SQL"
] | 5 | Markdown | lixiaofu/KDWB | 8367acec290acf79b0b3e177e2c99fe7b2d09fb7 | be0572b2f7de90b1c17b8667e33fdebbfd0976af |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Networking;
public class GameManager : NetworkManager {
public static GameManager Instance;
public bool player; // true for p1 ,false for p2
public int NowPlayer;
public bool Gaming;
public int port;
public string Name,LastAttackPlayer;
public GameObject menu, IpAddress, InGame, PlayerName, InGameText, MyCharacter,Count,CountText;
public GameObject character;
public bool solo;
GameObject p1, p2;
SpriteRenderer p1color,p2color;
Coroutine Stand;
float StartTime;
public Color FadeInColor;
// Use this for initialization
void Start ()
{
if (Instance == null) Instance = this;
if (Instance != this) Destroy(this);
DontDestroyOnLoad(this);
player = true; Gaming = false;
menu.SetActive(true);
solo = false;
FadeInColor = new Color (1, 1, 1, 0);
}
public void Exit()
{
Application.Quit();
}
public void StartGame()
{
Name = PlayerName.GetComponent<InputField>().text;
menu.SetActive(false);
SetPort();
singleton.StartHost();
}
public void JoinGame()
{
SetPort();
if (SetIPAddress())
{
menu.SetActive(false);
singleton.StartClient();
}
}
bool SetIPAddress()
{
string ipAddress = IpAddress.GetComponent<InputField>().text;
if (ipAddress == "")
{
singleton.networkAddress = "localhost";
//IpAddress.GetComponent<InputField>().placeholder.GetComponent<Text>().text = "Pleace enter IP!!";
//return false;
}
else singleton.networkAddress = ipAddress;
return true;
}
void SetPort()
{
singleton.networkPort = port;
}
public void ReGameButton()
{
if (!solo)
MyCharacter.GetComponent<CharController> ().RestartGame ();
else {
SoloMode ();
InGame.SetActive (false);
}
}
public void ReGame()
{
InGame.SetActive(false);
GameObject[] player = new GameObject[2];
player[0] = GameObject.FindGameObjectWithTag("1p");
player[1] = GameObject.FindGameObjectWithTag("2p");
player[0].GetComponent<player>().Start();
player[0].GetComponent<CharController>().Start();
player[1].GetComponent<player>().Start();
player[1].GetComponent<CharController>().Start();
StartCoroutine(StartCount ());
}
public void SoloMode()
{
menu.SetActive (false);
GetComponent<SoloMode> ().enabled = true;
if (solo) {
p1 = GameObject.FindGameObjectWithTag ("1p");
p2 = GameObject.FindGameObjectWithTag ("2p");
p1.transform.position = new Vector3 (-4, -3.565f, 0);
p2.transform.position = new Vector3 (4, -3.565f, 0);
} else {
p1 = (GameObject)Instantiate(character, new Vector3(-4, -3.565f, 0), new Quaternion());
p2 = (GameObject)Instantiate(character, new Vector3(4, -3.565f, 0), new Quaternion());
}
p1color = p1.GetComponent<SpriteRenderer> ();
p2color = p2.GetComponent<SpriteRenderer> ();
StartTime = Time.time;
if(!solo)StartCoroutine (FadeIn());
solo = true;
p1.GetComponent<player> ().enabled = false;
p2.GetComponent<player> ().enabled = false;
p1.GetComponent<CharController> ().enabled = false;
p2.GetComponent<CharController> ().enabled = false;
GetComponent<SoloMode> ().AsignPlayer (p1, p2);
StartCoroutine(StartCount ());
//Stand = StartCoroutine (standup ());
}
public IEnumerator standup()
{
while (true) {
GetComponent<SoloMode> ().stand ();
GetComponent<SoloMode> ().stand2 ();
}
yield return 0;
}
public IEnumerator StartCount()
{
yield return new WaitForSeconds (0.7f);
Count.SetActive (true);
CountText.GetComponent<Text> ().text = 3 +"";
float now = Time.time;
for (int i = 2; i > -1; i--) {
//if (i == 1)
//StopCoroutine (Stand);
yield return new WaitForSeconds(1);
CountText.GetComponent<Text> ().text = i +"";
}
Count.SetActive (false);
Gaming = true;
}
public IEnumerator FadeIn()
{
while (true) {
FadeInColor.a = (Time.time - StartTime) / 3;
if (FadeInColor.a > 1)
break;
p1color.color = FadeInColor;
p2color.color = FadeInColor;
yield return null;
}
p1color.color = Color.white;
p2color.color = Color.white;
}
}
<file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerColliderHit : MonoBehaviour {
public string hitname;
public int player;
public SoloMode Script;
void Start()
{
if (tag == "1p")
player = 1;
else if(tag == "2p")
player = 2;
Script = GameManager.Instance.GetComponent<SoloMode> ();
}
public void OnControllerColliderHit(ControllerColliderHit hit)
{
if (hitname != hit.gameObject.name)
{
if (player == 1)
{
Script.walldirection = 0;
Script.lrunable ();
hitname = hit.gameObject.name;
Script.hitname = hitname;
} else if (player == 2)
{
Script.walldirection2 = 0;
Script.lrunable2 ();
hitname = hit.gameObject.name;
Script.hitname2 = hitname;
}
}
}
}
<file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class player : MonoBehaviour {
public float wallspeed;
public float slashspeed;
public bool PlayerNum;
public bool WalkReturn;
public int Num;
public Sprite[] PlayerSprite;
public Sprite BasicSprite;
public int ci;
public bool slashing,attacking;
public Vector2 moveDirection;
CharacterController controller;
LineRenderer lr;
// Use this for initialization
private void Awake()
{
lr = GetComponent<LineRenderer>();
controller = GetComponent<CharacterController>();
PlayerSprite = Resources.LoadAll<Sprite>("");
if (GameManager.Instance.player)
{
GetComponent<LineRenderer> ().startColor = Color.red;
GetComponent<LineRenderer> ().endColor = Color.red;
PlayerNum = true;
GameManager.Instance.player = !GameManager.Instance.player;
Num = 1;
tag = "1p";
}
else
{
GetComponent<LineRenderer> ().startColor = Color.blue;
GetComponent<LineRenderer> ().endColor = Color.blue;
PlayerNum = false;
GameManager.Instance.player = !GameManager.Instance.player;
Num = 2;
tag = "2p";
}
GameManager.Instance.MyCharacter = gameObject;
}
public void Start ()
{
attacking = false;
slashing = false;
WalkReturn = true;
if(PlayerNum)
{
transform.position = new Vector3(-4, -3.565f, 0);
BasicSprite = PlayerSprite[11];
}
else
{
transform.position = new Vector3(4, -3.565f, 0);
BasicSprite = PlayerSprite[7];
}
GetComponent<SpriteRenderer>().sprite = BasicSprite;
}
public void rslash()
{
Debug.Log ("rs");
if (PlayerNum) GetComponent<SpriteRenderer>().sprite = PlayerSprite[14];
else GetComponent<SpriteRenderer>().sprite = PlayerSprite[6];
controller.radius = 0.53f;
controller.height = 0.81f;
controller.center = new Vector3(0.09f, 0.03f, 0);
if (WalkReturn) controller.Move(new Vector2(0, -0.56f));
WalkReturn = false;
}
public void lslash()
{
Debug.Log ("Ls");
if (PlayerNum) GetComponent<SpriteRenderer>().sprite = PlayerSprite[10];
else GetComponent<SpriteRenderer>().sprite = PlayerSprite[3];
controller.radius = 0.53f;
controller.height = 0.81f;
controller.center = new Vector3(0.09f, 0.03f, 0);
if (WalkReturn) controller.Move(new Vector2(0, -0.56f));
WalkReturn = false;
}
public void right()
{
Debug.Log ("r");
if(!slashing)
{
if (PlayerNum) GetComponent<SpriteRenderer>().sprite = PlayerSprite[13];
else GetComponent<SpriteRenderer>().sprite = PlayerSprite[5];
}
controller.radius = 0.53f;
controller.height = 0.81f;
controller.center = new Vector3(0.09f, 0.03f, 0);
if (WalkReturn) controller.Move(new Vector2(0, -0.56f));
WalkReturn = false;
}
public void left()
{
Debug.Log ("L");
if(!slashing)
{
if (PlayerNum) GetComponent<SpriteRenderer>().sprite = PlayerSprite[9];
else GetComponent<SpriteRenderer>().sprite = PlayerSprite[2];
}
controller.radius = 0.53f;
controller.height = 0.81f;
controller.center = new Vector3(0.09f, 0.03f, 0);
if (WalkReturn) controller.Move(new Vector2(0, -0.56f));
WalkReturn = false;
}
public void stand()
{
if (!GameManager.Instance.Gaming)
return;
GetComponent<SpriteRenderer>().sprite = BasicSprite;
controller.radius = 0.38f;
controller.height = 1.47f;
controller.center = new Vector3(-0.09f, -0.12f, 0);
if(controller.isGrounded) transform.position = new Vector3(transform.position .x, -3.565f,0);
WalkReturn = true;
}
public void bright()
{
if (PlayerNum) GetComponent<SpriteRenderer>().sprite = PlayerSprite[12];
else GetComponent<SpriteRenderer>().sprite = PlayerSprite[4];
}
public void bleft()
{
if (PlayerNum) GetComponent<SpriteRenderer>().sprite = PlayerSprite[8];
else GetComponent<SpriteRenderer>().sprite = PlayerSprite[1];
}
public void wall(int walldirection,bool islocal)
{
Vector3 pos,pos2;
lr.enabled = true;
if(transform.position.x > -8.3f && transform.position.x < 8.1f && transform.position.y < 4.35f)
{
Debug.Log("hitno");
GetComponent<CharController>().hitname = "";
}
if (walldirection == 3)
{
pos = new Vector3(transform.position.x + 0.44f, transform.position.y, 2);
pos2 = new Vector3(transform.position.x + 18.3f, transform.position.y, 2);
lr.SetPosition(0, pos);
lr.SetPosition(1, pos2);
moveDirection = Vector2.right;
moveDirection = transform.TransformDirection(moveDirection);
moveDirection *= wallspeed;
if(islocal) controller.Move(moveDirection * Time.deltaTime);
}
else if (walldirection == 1)
{
pos = new Vector3(transform.position.x, transform.position.y - 0.33f, 2);
pos2 = new Vector3(transform.position.x, transform.position.y + 18, 2);
lr.SetPosition(0, pos);
lr.SetPosition(1, pos2);
moveDirection = Vector2.up;
moveDirection = transform.TransformDirection(moveDirection);
moveDirection *= wallspeed;
if (islocal) controller.Move(moveDirection * Time.deltaTime);
}
else if (walldirection == 2)
{
pos = new Vector3(transform.position.x + 0.3f, transform.position.y + 0.28f, 2);
pos2 = new Vector3(transform.position.x + 18.3f, transform.position.y + 18, 2);
lr.SetPosition(0, pos);
lr.SetPosition(1, pos2);
moveDirection = Vector2.one;
moveDirection = transform.TransformDirection(moveDirection);
moveDirection *= wallspeed;
if (GetComponent<CharController>().hitname == "sky" || GetComponent<CharController>().hitname == "rightside") moveDirection = Vector3.zero;
if (islocal) controller.Move(moveDirection * Time.deltaTime);
}
else if (walldirection == 4)
{
if (!controller.isGrounded)
{
pos = new Vector3(transform.position.x + 0.51f, transform.position.y - 0.42f, 2);
pos2 = new Vector3(transform.position.x + 18.3f, transform.position.y - 18, 2);
lr.SetPosition(0, pos);
lr.SetPosition(1, pos2);
moveDirection = new Vector2(1, -1);
moveDirection = transform.TransformDirection(moveDirection);
moveDirection *= wallspeed;
if (GetComponent<CharController>().hitname == "rightside") moveDirection = Vector3.zero;
if (islocal) controller.Move(moveDirection * Time.deltaTime);
}
}
else if (walldirection == 5)
{
if (!controller.isGrounded)
{
pos = new Vector3(transform.position.x, transform.position.y - 0.37f, 2);
pos2 = new Vector3(transform.position.x, transform.position.y - 18, 2);
lr.SetPosition(0, pos);
lr.SetPosition(1, pos2);
moveDirection = Vector2.down;
moveDirection = transform.TransformDirection(moveDirection);
moveDirection *= wallspeed;
if (islocal) controller.Move(moveDirection * Time.deltaTime);
}
}
else if (walldirection == 6)
{
if (!controller.isGrounded)
{
pos = new Vector3(transform.position.x - 0.26f, transform.position.y - 0.35f, 2);
pos2 = new Vector3(transform.position.x - 17.7f, transform.position.y - 18, 2);
lr.SetPosition(0, pos);
lr.SetPosition(1, pos2);
moveDirection = new Vector2(-1, -1);
moveDirection = transform.TransformDirection(moveDirection);
moveDirection *= wallspeed;
if (GetComponent<CharController>().hitname == "leftside") moveDirection = Vector3.zero;
if (islocal) controller.Move(moveDirection * Time.deltaTime);
}
}
else if (walldirection == 7)
{
pos = new Vector3(transform.position.x - 0.3f, transform.position.y, 2);
pos2 = new Vector3(transform.position.x - 18, transform.position.y, 2);
lr.SetPosition(0, pos);
lr.SetPosition(1, pos2);
moveDirection = Vector2.left;
moveDirection = transform.TransformDirection(moveDirection);
moveDirection *= wallspeed;
if (islocal) controller.Move(moveDirection * Time.deltaTime);
}
else if (walldirection == 8)
{
pos = new Vector3(transform.position.x - 0.2f, transform.position.y + 0.3f, 2);
pos2 = new Vector3(transform.position.x - 18, transform.position.y + 18, 2);
lr.SetPosition(0, pos);
lr.SetPosition(1, pos2);
moveDirection = new Vector2(-1, 1);
moveDirection = transform.TransformDirection(moveDirection);
moveDirection *= wallspeed;
if (GetComponent<CharController>().hitname == "sky" || GetComponent<CharController>().hitname == "leftside") moveDirection = Vector3.zero;
if (islocal) controller.Move(moveDirection * Time.deltaTime);
}
}
public void slash()
{
CharController b;
GameObject player2;
if(PlayerNum) player2 = GameObject.FindWithTag("2p");
else player2 = GameObject.FindWithTag("1p");
float i, j,abs,absi,absj;
lr.enabled = false;
i = transform.position.x - player2.transform.position.x;
j = transform.position.y - player2.transform.position.y;
if (Mathf.Abs(i) < 1 && Mathf.Abs(j) < 0.81)
{
b = player2.GetComponent<CharController>();
if(!(GameManager.Instance.LastAttackPlayer == tag && player2.GetComponent<player>().attacking) && ((i < 0 && !b.blockl) || (i > 0 && !b.blockr) || (i == 0)))
GetComponent<CharController>().Win();
ci = 0;
GetComponent<CharController>().skystatus = 'c';
}
abs = Mathf.Abs(i) > Mathf.Abs(j) ? Mathf.Abs(i) : Mathf.Abs(j);
absi = i / abs;
absj = j / abs;
if (absi <= 0) rslash();
else lslash();
moveDirection = new Vector2(absi, absj);
moveDirection *= slashspeed;
controller.Move(-1 * moveDirection * Time.deltaTime);
}
public void close()
{
slashing = true;
if (ci > 7)
{
GameObject player2;
if (PlayerNum) player2 = GameObject.FindWithTag("2p");
else player2 = GameObject.FindWithTag("1p");
GetComponent<CharController>().skystatus = 'g';
moveDirection = new Vector2(0, 0);
attacking = false;
}
//if (GetComponent<CharController>().hitname == "rightside" || GetComponent<CharController>().hitname == "leftside")
//{
// Debug.Log("11111");
// moveDirection.x = 0;
// //moveDirection.y /= Mathf.Abs(moveDirection.y);
//}
//else if (GetComponent<CharController>().hitname == "sky")
//{
// Debug.Log("11111s");
// moveDirection.y = 0;
// //moveDirection.x /= Mathf.Abs(moveDirection.x);
//}
//else if (transform.position.y < -3.9)
//{
// moveDirection.y = 0;
// //moveDirection.x /= Mathf.Abs(moveDirection.x);
//}
controller.Move(-1 * moveDirection * Time.deltaTime);
ci++;
}
public void lrunable()
{
lr.enabled = false;
}
}
<file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Networking;
public class CharController : NetworkBehaviour
{
public Vector2 moveDirection;
public int walldirection;
player player;
CharacterController controller;
public float WalkSpeed;
public float JumpSpeed;
public bool bf;
public bool blockr;
public bool blockl;
public char skystatus;
public float gravity;
public string hitname;
GameObject player2;
int weapon;
// Use this for initialization
private void Awake()
{
moveDirection = new Vector2();
player = GetComponent<player>();
controller = GetComponent<CharacterController>();
if (isLocalPlayer && player.PlayerNum) GameManager.Instance.NowPlayer = 1;
else if (isLocalPlayer && !player.PlayerNum) GameManager.Instance.NowPlayer = 2;
weapon = 0;
}
public void Start () {
bf = false; blockr = false; blockl = false;
skystatus = 'g';
walldirection = 0;
moveDirection = new Vector2();
if (!Network.isServer)
CmdStand();
else RpcStand();
}
// Update is called once per frame
void Update()
{
if (player2 == null)
{
if (tag == "1p" && !GameManager.Instance.player) return;
if (player.PlayerNum) player2 = GameObject.FindWithTag("2p");
else player2 = GameObject.FindWithTag("1p");
if (player2 != null) {
Physics.IgnoreCollision(player2.GetComponent<Collider>(), GetComponent<Collider>());
StartCoroutine (GameManager.Instance.StartCount());
}
}
if (!isLocalPlayer)
{
return;
}
float x;
if (skystatus == 'g')
{
x = moveDirection.x;
if (!bf && controller.isGrounded)
{
if(GameManager.Instance.Gaming) moveDirection = new Vector2(Input.GetAxis("Horizontal"), 0);
if (moveDirection != Vector2.zero) player.slashing = false;
moveDirection = transform.TransformDirection(moveDirection);
if (x != moveDirection.x)
{
x = moveDirection.x;
if (!Network.isServer)
{
if (x > 0) CmdRight();
else if (x < 0) CmdLeft();
else CmdStand();
}
else
{
if (x > 0) RpcRight();
else if (x < 0) RpcLeft();
else RpcStand();
}
}
moveDirection *= WalkSpeed;
if (Input.GetButton("Jump")) moveDirection.y = JumpSpeed;
}
if(bf) moveDirection.x = 0;
moveDirection.y -= gravity * Time.deltaTime;
Debug.Log ("M");
if(GameManager.Instance.Gaming || !controller.isGrounded) controller.Move(moveDirection * Time.deltaTime);
}
else if (skystatus == 'w')
{
if (!Network.isServer)
CmdWall();
else RpcWall();
}
else if (skystatus == 's')
{
if (weapon == 0) {
if (!Network.isServer)
CmdSlash ();
else
RpcSlash ();
}
else if (weapon == 1) {
if (!Network.isServer)
CmdSlash ();
else
RpcSlash ();
}
}
else if(skystatus == 'c')
{
if (!Network.isServer)
CmdClose();
else RpcClose();
}
if (GameManager.Instance.Gaming && Input.GetButtonDown("slash") && !blockr && !blockl && skystatus != 'c')
{
if (!Network.isServer)
CmdChangeAttackP();
else RpcChangeAttackP();
skystatus = 's';
}
if (GameManager.Instance.Gaming && Input.GetButton("block"))
{
if (Input.GetAxis("Horizontal") > 0)
{
Debug.Log("blockR");
bf = true;
blockr = true;
blockl = false;
if (!Network.isServer)
CmdBright();
else RpcBright();
}
else if (Input.GetAxis("Horizontal") < 0)
{
Debug.Log("blockL");
bf = true;
blockr = false;
blockl = true;
if (!Network.isServer)
CmdBleft();
else RpcBleft();
}
}
if (GameManager.Instance.Gaming && Input.GetButtonUp("block") && isLocalPlayer)
{
if (!Network.isServer)
CmdStand();
else
RpcStand();
blockr = false;
blockl = false;
bf = false;
}
if(GameManager.Instance.Gaming)
{
if (Input.GetAxis("Vertical") > 0.4 && Input.GetAxis("Horizontal") > 0)
{
if (Input.GetButton("wall"))
{
if (walldirection != 2)
{
if (!Network.isServer)
CmdRight();
else RpcRight();
if (!Network.isServer)
CmdChangeWD(2);
else RpcChangeWD(2);
skystatus = 'w';
}
}
}
else if (Input.GetAxis("Vertical") > 0.4 && Input.GetAxis("Horizontal") < 0)
{
if (Input.GetButton("wall"))
{
if (walldirection != 8)
{
if (!Network.isServer)
CmdLeft();
else RpcLeft();
if (!Network.isServer)
CmdChangeWD(8);
else RpcChangeWD(8);
skystatus = 'w';
}
}
}
else if (Input.GetAxis("Vertical") < -0.4 && Input.GetAxis("Horizontal") > 0)
{
if (Input.GetButton("wall"))
{
if (!controller.isGrounded)
{
if (walldirection != 4)
{
if (!Network.isServer)
CmdRight();
else RpcRight();
if (!Network.isServer)
CmdChangeWD(4);
else RpcChangeWD(4);
skystatus = 'w';
}
}
}
}
else if (Input.GetAxis("Vertical") < -0.4 && Input.GetAxis("Horizontal") < 0)
{
if (Input.GetButton("wall"))
{
if (!controller.isGrounded)
{
if (walldirection != 6)
{
if (!Network.isServer)
CmdLeft();
else RpcLeft();
if (!Network.isServer)
CmdChangeWD(6);
else RpcChangeWD(6);
skystatus = 'w';
}
}
}
}
else if (Input.GetAxis("Horizontal") > 0)
{
if (Input.GetButton("wall"))
{
if (walldirection != 3)
{
if (!Network.isServer)
CmdRight();
else RpcRight();
if (!Network.isServer)
CmdChangeWD(3);
else RpcChangeWD(3);
skystatus = 'w';
}
}
}
else if (Input.GetAxis("Vertical") > 0.4)
{
if (Input.GetButton("wall"))
{
if (walldirection != 1)
{
if (!Network.isServer)
CmdChangeWD(1);
else RpcChangeWD(1);
skystatus = 'w';
}
}
}
else if (Input.GetAxis("Horizontal") < 0)
{
if (Input.GetButton("wall"))
{
if (walldirection != 7)
{
if (!Network.isServer)
CmdLeft();
else RpcLeft();
if (!Network.isServer)
CmdChangeWD(7);
else RpcChangeWD(7);
skystatus = 'w';
}
}
}
else if (Input.GetAxis("Vertical") < -0.4)
{
if (Input.GetButton("wall"))
{
if (!controller.isGrounded)
{
if (walldirection != 5)
{
if (!Network.isServer)
CmdChangeWD(5);
else RpcChangeWD(5);
skystatus = 'w';
}
}
}
}
}
}
[Command] //ONLY BY CLINT
public void CmdBright()
{
RpcBright();
}
[ClientRpc] // ONLY BY SERVER
public void RpcBright()
{
player.bright();
}
[Command]
public void CmdBleft()
{
RpcBleft();
}
[ClientRpc]
public void RpcBleft()
{
player.bleft();
}
[Command]
public void CmdRight()
{
RpcRight();
}
[ClientRpc]
public void RpcRight()
{
player.right();
}
[Command]
public void CmdChangeWD(int i)
{
RpcChangeWD(i);
}
[ClientRpc]
public void RpcChangeWD(int i)
{
walldirection = i;
}
[Command]
public void CmdLeft()
{
RpcLeft();
}
[ClientRpc]
public void RpcLeft()
{
player.left();
}
[Command]
public void CmdStand()
{
RpcStand();
}
[ClientRpc]
public void RpcStand()
{
player.stand();
}
[Command]
public void CmdWall()
{
RpcWall();
}
[ClientRpc]
public void RpcWall()
{
player.wall(walldirection,isLocalPlayer);
}
[Command]
public void CmdLRUnEnable()
{
RpcLRUnEnable();
}
[ClientRpc]
public void RpcLRUnEnable()
{
player.lrunable();
}
[Command]
public void CmdSlash()
{
RpcSlash();
}
[ClientRpc]
public void RpcSlash()
{
player.slash();
}
[Command]
public void CmdShuriken()
{
RpcShuriken();
}
[ClientRpc]
public void RpcShuriken()
{
player.slash();
}
[Command]
public void CmdClose()
{
RpcClose();
}
[ClientRpc]
public void RpcClose()
{
player.close();
}
public void FixedUpdate()
{
if (controller.isGrounded && skystatus != 's')
{
if (!(skystatus == 'w' && (walldirection == 3 || walldirection == 7)))
{
if (!Network.isServer)
CmdLRUnEnable();
else RpcLRUnEnable();
skystatus = 'g';
walldirection = 0;
}
}
}
public void OnControllerColliderHit(ControllerColliderHit hit)
{
if (hitname != hit.gameObject.name)
{
walldirection = 0;
if (!Network.isServer)
CmdLRUnEnable();
else RpcLRUnEnable();
hitname = hit.gameObject.name;
}
}
public void Win()
{
if (!Network.isServer)
CmdWin(GameManager.Instance.Name);
else RpcWin(GameManager.Instance.Name);
}
public void RestartGame()
{
if (!Network.isServer)
CmdReGame();
else RpcReGame();
}
[Command]
void CmdReGame()
{
RpcReGame();
}
[ClientRpc]
void RpcReGame()
{
GameManager.Instance.ReGame();
}
[Command]
void CmdWin(string str)
{
RpcWin(str);
}
[ClientRpc]
void RpcWin(string str)
{
GameManager.Instance.Gaming = false;
GameManager.Instance.InGame.SetActive(true);
GameManager.Instance.InGameText.GetComponent<Text>().text = str + " Win!!";
}
[Command]
void CmdChangeAttackP()
{
RpcChangeAttackP();
}
[ClientRpc]
void RpcChangeAttackP()
{
player.attacking = true;
GameManager.Instance.LastAttackPlayer = tag;
}
}
<file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine;
public class SoloMode : MonoBehaviour {
public GameObject p1, p2;
public Vector2 moveDirection,moveDirection2;
public int walldirection,walldirection2;
CharacterController controller,controller2;
public float WalkSpeed;
public float JumpSpeed;
public bool bf,bf2;
public bool blockr,blockr2;
public bool blockl,blockl2;
public char skystatus,skystatus2;
public float gravity;
public string hitname,hitname2;
public float wallspeed;
public float slashspeed;
public bool WalkReturn,WalkReturn2;
public Sprite[] PlayerSprite;
public Sprite BasicSprite,BasicSprite2;
public int ci,ci2;
public bool slashing,slashing2,attacking,attacking2;
LineRenderer lr,lr2;
private void Awake()
{
moveDirection = new Vector2();
}
// Use this for initialization
void Start () {
bf = false; blockr = false; blockl = false; bf2 = false; blockr2 = false; blockl2 = false;
skystatus = 'g'; skystatus2 = 'g';
walldirection = 0; walldirection2 = 0;
moveDirection = new Vector2(); moveDirection2 = new Vector2();
attacking = false; attacking2 = false;
slashing = false; slashing2 = false;
WalkReturn = true; WalkReturn2 = true;
}
// Update is called once per frame
void Update () {
if (p1 == null || p2 == null)
return;
float x,x2;
//player1 part
if (skystatus == 'g')
{
x = moveDirection.x;
if (!bf && controller.isGrounded)
{
if(GameManager.Instance.Gaming) moveDirection = new Vector2(Input.GetAxis("Horizontal"), 0);
if (moveDirection != Vector2.zero) slashing = false;
moveDirection = p1.transform.TransformDirection(moveDirection);
if (x != moveDirection.x)
{
x = moveDirection.x;
if (x > 0) right();
else if (x < 0) left();
else stand();
}
moveDirection *= WalkSpeed;
if (Input.GetButton("Jump")) moveDirection.y = JumpSpeed;
}
if(bf) moveDirection.x = 0;
moveDirection.y -= gravity * Time.deltaTime;
if(GameManager.Instance.Gaming || !controller.isGrounded) controller.Move(moveDirection * Time.deltaTime);
}
else if (skystatus == 'w')
{
wall (walldirection);
}
else if (skystatus == 's')
{
slash ();
}
else if(skystatus == 'c')
{
close ();
}
if (GameManager.Instance.Gaming && Input.GetButtonDown("slash") && !blockr && !blockl && skystatus != 'c')
{
attacking = true;
GameManager.Instance.LastAttackPlayer = p1.tag;
skystatus = 's';
}
if (GameManager.Instance.Gaming && Input.GetButton("block"))
{
if (Input.GetAxis("Horizontal") > 0)
{
Debug.Log("blockR");
bf = true;
blockr = true;
blockl = false;
bright ();
}
else if (Input.GetAxis("Horizontal") < 0)
{
Debug.Log("blockL");
bf = true;
blockr = false;
blockl = true;
bleft ();
}
}
if (GameManager.Instance.Gaming && Input.GetButtonUp("block"))
{
stand ();
blockr = false;
blockl = false;
bf = false;
}
if(GameManager.Instance.Gaming)
{
if (Input.GetAxis("Vertical") > 0.4f && Input.GetAxis("Horizontal") > 0)
{
if (Input.GetButton("wall"))
{
if (walldirection != 2)
{
right ();
walldirection = 2;
skystatus = 'w';
}
}
}
else if (Input.GetAxis("Vertical") > 0.4f && Input.GetAxis("Horizontal") < 0)
{
if (Input.GetButton("wall"))
{
if (walldirection != 8)
{
left ();
walldirection = 8;
skystatus = 'w';
}
}
}
else if (Input.GetAxis("Vertical") < -0.4f && Input.GetAxis("Horizontal") > 0)
{
if (Input.GetButton("wall"))
{
if (!controller.isGrounded)
{
if (walldirection != 4)
{
right ();
walldirection = 4;
skystatus = 'w';
}
}
}
}
else if (Input.GetAxis("Vertical") < -0.4f && Input.GetAxis("Horizontal") < 0)
{
if (Input.GetButton("wall"))
{
if (!controller.isGrounded)
{
if (walldirection != 6)
{
left ();
walldirection = 6;
skystatus = 'w';
}
}
}
}
else if (Input.GetAxis("Horizontal") > 0)
{
if (Input.GetButton("wall"))
{
if (walldirection != 3)
{
right ();
walldirection = 3;
skystatus = 'w';
}
}
}
else if (Input.GetAxis("Vertical") > 0.4f)
{
if (Input.GetButton("wall"))
{
if (walldirection != 1)
{
walldirection = 1;
skystatus = 'w';
}
}
}
else if (Input.GetAxis("Horizontal") < 0)
{
if (Input.GetButton("wall"))
{
if (walldirection != 7)
{
left ();
walldirection = 7;
skystatus = 'w';
}
}
}
else if (Input.GetAxis("Vertical") < -0.4f)
{
if (Input.GetButton("wall"))
{
if (!controller.isGrounded)
{
if (walldirection != 5)
{
walldirection = 5;
skystatus = 'w';
}
}
}
}
}
//player2 part
if (skystatus2 == 'g')
{
x2 = moveDirection2.x;
if (!bf2 && controller2.isGrounded)
{
if(GameManager.Instance.Gaming) moveDirection2 = new Vector2(Input.GetAxis("Horizontal2"), 0);
if (moveDirection2 != Vector2.zero) slashing2 = false;
moveDirection2 = p2.transform.TransformDirection(moveDirection2);
if (x2 != moveDirection2.x)
{
x2 = moveDirection2.x;
if (x2 > 0) right2();
else if (x2 < 0) left2();
else stand2();
}
moveDirection2 *= WalkSpeed;
if (Input.GetButton("Jump2")) moveDirection2.y = JumpSpeed;
}
if(bf2) moveDirection2.x = 0;
moveDirection2.y -= gravity * Time.deltaTime;
if(GameManager.Instance.Gaming || !controller2.isGrounded) controller2.Move(moveDirection2 * Time.deltaTime);
}
else if (skystatus2 == 'w')
{
wall2 (walldirection2);
}
else if (skystatus2 == 's')
{
slash2 ();
}
else if(skystatus2 == 'c')
{
close2 ();
}
if (GameManager.Instance.Gaming && Input.GetButtonDown("slash2") && !blockr2 && !blockl2 && skystatus2 != 'c')
{
attacking2 = true;
GameManager.Instance.LastAttackPlayer = p2.tag;
skystatus2 = 's';
}
if (GameManager.Instance.Gaming && Input.GetButton("block2"))
{
if (Input.GetAxis("Horizontal2") > 0)
{
bf2 = true;
blockr2 = true;
blockl2 = false;
bright2 ();
}
else if (Input.GetAxis("Horizontal2") < 0)
{
bf2 = true;
blockr2 = false;
blockl2 = true;
bleft2 ();
}
}
if (GameManager.Instance.Gaming && Input.GetButtonUp("block2"))
{
stand2 ();
blockr2 = false;
blockl2 = false;
bf2 = false;
}
if(GameManager.Instance.Gaming)
{
if (Input.GetAxis("Vertical2") > 0.4f && Input.GetAxis("Horizontal2") > 0)
{
if (Input.GetButton("wall2"))
{
if (walldirection2 != 2)
{
right2 ();
walldirection2 = 2;
skystatus2 = 'w';
}
}
}
else if (Input.GetAxis("Vertical2") > 0.4f && Input.GetAxis("Horizontal2") < 0)
{
if (Input.GetButton("wall2"))
{
if (walldirection2 != 8)
{
left2 ();
walldirection2 = 8;
skystatus2 = 'w';
}
}
}
else if (Input.GetAxis("Vertical2") < -0.4f && Input.GetAxis("Horizontal2") > 0)
{
if (Input.GetButton("wall2"))
{
if (!controller2.isGrounded)
{
if (walldirection2 != 4)
{
right2 ();
walldirection2 = 4;
skystatus2 = 'w';
}
}
}
}
else if (Input.GetAxis("Vertical2") < -0.4f && Input.GetAxis("Horizontal2") < 0)
{
if (Input.GetButton("wall2"))
{
if (!controller2.isGrounded)
{
if (walldirection2 != 6)
{
left2 ();
walldirection2 = 6;
skystatus2 = 'w';
}
}
}
}
else if (Input.GetAxis("Horizontal2") > 0)
{
if (Input.GetButton("wall2"))
{
if (walldirection2 != 3)
{
right2 ();
walldirection2 = 3;
skystatus2 = 'w';
}
}
}
else if (Input.GetAxis("Vertical2") > 0.4f)
{
if (Input.GetButton("wall2"))
{
if (walldirection2 != 1)
{
walldirection2 = 1;
skystatus2 = 'w';
}
}
}
else if (Input.GetAxis("Horizontal2") < 0)
{
if (Input.GetButton("wall2"))
{
if (walldirection2 != 7)
{
left2 ();
walldirection2 = 7;
skystatus2 = 'w';
}
}
}
else if (Input.GetAxis("Vertical2") < -0.4f)
{
if (Input.GetButton("wall2"))
{
if (!controller2.isGrounded)
{
if (walldirection2 != 5)
{
walldirection2 = 5;
skystatus2 = 'w';
}
}
}
}
}
}
public void AsignPlayer(GameObject thisp1,GameObject thisp2)
{
p1 = thisp1;
p2 = thisp2;
controller = p1.GetComponent<CharacterController>();
controller2 = p2.GetComponent<CharacterController>();
lr = p1.GetComponent<LineRenderer>();
lr2 = p2.GetComponent<LineRenderer>();
PlayerSprite = Resources.LoadAll<Sprite>("");
BasicSprite2 = PlayerSprite[7];
BasicSprite = PlayerSprite[11];
p1.GetComponent<SpriteRenderer>().sprite = BasicSprite;
p2.GetComponent<SpriteRenderer>().sprite = BasicSprite2;
p1.GetComponent<LineRenderer> ().startColor = Color.red;
p1.GetComponent<LineRenderer> ().endColor = Color.red;
p1.tag = "1p";
p2.GetComponent<LineRenderer> ().startColor = Color.blue;
p2.GetComponent<LineRenderer> ().endColor = Color.blue;
p2.tag = "2p";
p1.GetComponent<PlayerColliderHit> ().enabled = true;
p2.GetComponent<PlayerColliderHit> ().enabled = true;
Physics.IgnoreCollision(p1.GetComponent<Collider>(), p2.GetComponent<Collider>());
Physics.IgnoreCollision(p2.GetComponent<Collider>(), p1.GetComponent<Collider>());
stand ();stand2 ();
}
public void FixedUpdate()
{
if (controller.isGrounded && skystatus != 's')
{
if (!(skystatus == 'w' && (walldirection == 3 || walldirection == 7)))
{
lrunable ();
skystatus = 'g';
walldirection = 0;
}
}
if (controller2.isGrounded && skystatus2 != 's')
{
if (!(skystatus2 == 'w' && (walldirection2 == 3 || walldirection2 == 7)))
{
lrunable2 ();
skystatus2 = 'g';
walldirection2 = 0;
}
}
}
public void stand()
{
if (!GameManager.Instance.Gaming)
return;
p1.GetComponent<SpriteRenderer>().sprite = BasicSprite;
controller.radius = 0.38f;
controller.height = 1.47f;
controller.center = new Vector3(-0.09f, -0.12f, 0);
if(controller.isGrounded) p1.transform.position = new Vector3(p1.transform.position .x, -3.565f,0);
WalkReturn = true;
}
public void stand2()
{
if (!GameManager.Instance.Gaming)
return;
p2.GetComponent<SpriteRenderer>().sprite = BasicSprite2;
controller2.radius = 0.38f;
controller2.height = 1.47f;
controller2.center = new Vector3(-0.09f, -0.12f, 0);
if(controller2.isGrounded) p2.transform.position = new Vector3(p2.transform.position .x, -3.565f,0);
WalkReturn2 = true;
}
public void rslash()
{
p1.GetComponent<SpriteRenderer>().sprite = PlayerSprite[14];
//else GetComponent<SpriteRenderer>().sprite = PlayerSprite[6];
controller.radius = 0.53f;
controller.height = 0.81f;
controller.center = new Vector3(0.09f, 0.03f, 0);
if (WalkReturn) controller.Move(new Vector2(0, -0.56f));
WalkReturn = false;
}
public void lslash()
{
p1.GetComponent<SpriteRenderer>().sprite = PlayerSprite[10];
//else GetComponent<SpriteRenderer>().sprite = PlayerSprite[3];
controller.radius = 0.53f;
controller.height = 0.81f;
controller.center = new Vector3(0.09f, 0.03f, 0);
if (WalkReturn) controller.Move(new Vector2(0, -0.56f));
WalkReturn = false;
}
public void right()
{
if(!slashing)
{
p1.GetComponent<SpriteRenderer>().sprite = PlayerSprite[13];
//else GetComponent<SpriteRenderer>().sprite = PlayerSprite[5];
}
controller.radius = 0.53f;
controller.height = 0.81f;
controller.center = new Vector3(0.09f, 0.03f, 0);
if (WalkReturn) controller.Move(new Vector2(0, -0.56f));
WalkReturn = false;
}
public void left()
{
if(!slashing)
{
p1.GetComponent<SpriteRenderer>().sprite = PlayerSprite[9];
//else GetComponent<SpriteRenderer>().sprite = PlayerSprite[2];
}
controller.radius = 0.53f;
controller.height = 0.81f;
controller.center = new Vector3(0.09f, 0.03f, 0);
if (WalkReturn) controller.Move(new Vector2(0, -0.56f));
WalkReturn = false;
}
public void bright()
{
p1.GetComponent<SpriteRenderer>().sprite = PlayerSprite[12];
//else GetComponent<SpriteRenderer>().sprite = PlayerSprite[4];
}
public void bleft()
{
p1.GetComponent<SpriteRenderer>().sprite = PlayerSprite[8];
//else GetComponent<SpriteRenderer>().sprite = PlayerSprite[1];
}
public void wall(int walldirection)
{
Vector3 pos,pos2;
lr.enabled = true;
if(p1.transform.position.x > -8.3f && p1.transform.position.x < 8.1f && p1.transform.position.y < 4.35f)
{
hitname = "";
}
if (walldirection == 3)
{
pos = new Vector3(p1.transform.position.x + 0.44f, p1.transform.position.y, 2);
pos2 = new Vector3(p1.transform.position.x + 18.3f, p1.transform.position.y, 2);
lr.SetPosition(0, pos);
lr.SetPosition(1, pos2);
moveDirection = Vector2.right;
moveDirection = p1.transform.TransformDirection(moveDirection);
moveDirection *= wallspeed;
controller.Move(moveDirection * Time.deltaTime);
}
else if (walldirection == 1)
{
pos = new Vector3(p1.transform.position.x, p1.transform.position.y - 0.33f, 2);
pos2 = new Vector3(p1.transform.position.x,p1.transform.position.y + 18, 2);
lr.SetPosition(0, pos);
lr.SetPosition(1, pos2);
moveDirection = Vector2.up;
moveDirection = p1.transform.TransformDirection(moveDirection);
moveDirection *= wallspeed;
controller.Move(moveDirection * Time.deltaTime);
}
else if (walldirection == 2)
{
pos = new Vector3(p1.transform.position.x + 0.3f, p1.transform.position.y + 0.28f, 2);
pos2 = new Vector3(p1.transform.position.x + 18.3f, p1.transform.position.y + 18, 2);
lr.SetPosition(0, pos);
lr.SetPosition(1, pos2);
moveDirection = Vector2.one;
moveDirection = p1.transform.TransformDirection(moveDirection);
moveDirection *= wallspeed;
if (hitname == "sky" || hitname == "rightside") moveDirection = Vector3.zero;
controller.Move(moveDirection * Time.deltaTime);
}
else if (walldirection == 4)
{
if (!controller.isGrounded)
{
pos = new Vector3(p1.transform.position.x + 0.51f, p1.transform.position.y - 0.42f, 2);
pos2 = new Vector3(p1.transform.position.x + 18.3f, p1.transform.position.y - 18, 2);
lr.SetPosition(0, pos);
lr.SetPosition(1, pos2);
moveDirection = new Vector2(1, -1);
moveDirection = p1.transform.TransformDirection(moveDirection);
moveDirection *= wallspeed;
if (hitname == "rightside") moveDirection = Vector3.zero;
controller.Move(moveDirection * Time.deltaTime);
}
}
else if (walldirection == 5)
{
if (!controller.isGrounded)
{
pos = new Vector3(p1.transform.position.x, p1.transform.position.y - 0.37f, 2);
pos2 = new Vector3(p1.transform.position.x, p1.transform.position.y - 18, 2);
lr.SetPosition(0, pos);
lr.SetPosition(1, pos2);
moveDirection = Vector2.down;
moveDirection = transform.TransformDirection(moveDirection);
moveDirection *= wallspeed;
controller.Move(moveDirection * Time.deltaTime);
}
}
else if (walldirection == 6)
{
if (!controller.isGrounded)
{
pos = new Vector3(p1.transform.position.x - 0.26f, p1.transform.position.y - 0.35f, 2);
pos2 = new Vector3(p1.transform.position.x - 17.7f, p1.transform.position.y - 18, 2);
lr.SetPosition(0, pos);
lr.SetPosition(1, pos2);
moveDirection = new Vector2(-1, -1);
moveDirection = p1.transform.TransformDirection(moveDirection);
moveDirection *= wallspeed;
if (hitname == "leftside") moveDirection = Vector3.zero;
controller.Move(moveDirection * Time.deltaTime);
}
}
else if (walldirection == 7)
{
pos = new Vector3(p1.transform.position.x - 0.3f, p1.transform.position.y, 2);
pos2 = new Vector3(p1.transform.position.x - 18, p1.transform.position.y, 2);
lr.SetPosition(0, pos);
lr.SetPosition(1, pos2);
moveDirection = Vector2.left;
moveDirection = p1.transform.TransformDirection(moveDirection);
moveDirection *= wallspeed;
controller.Move(moveDirection * Time.deltaTime);
}
else if (walldirection == 8)
{
pos = new Vector3(p1.transform.position.x - 0.2f, p1.transform.position.y + 0.3f, 2);
pos2 = new Vector3(p1.transform.position.x - 18, p1.transform.position.y + 18, 2);
lr.SetPosition(0, pos);
lr.SetPosition(1, pos2);
moveDirection = new Vector2(-1, 1);
moveDirection = p1.transform.TransformDirection(moveDirection);
moveDirection *= wallspeed;
if (hitname == "sky" || hitname == "leftside") moveDirection = Vector3.zero;
controller.Move(moveDirection * Time.deltaTime);
}
}
public void slash()
{
float i, j,abs,absi,absj;
lr.enabled = false;
i = p1.transform.position.x - p2.transform.position.x;
j = p1.transform.position.y - p2.transform.position.y;
if (Mathf.Abs(i) < 1 && Mathf.Abs(j) < 0.81)
{
if(!(GameManager.Instance.LastAttackPlayer == p1.tag && attacking2) && ((i < 0 && !blockl2) || (i > 0 && !blockr2) || (i == 0)))
Win("Red");
ci = 0;
skystatus = 'c';
}
abs = Mathf.Abs(i) > Mathf.Abs(j) ? Mathf.Abs(i) : Mathf.Abs(j);
absi = i / abs;
absj = j / abs;
if (absi <= 0) rslash();
else lslash();
moveDirection = new Vector2(absi, absj);
moveDirection *= slashspeed;
controller.Move(-1 * moveDirection * Time.deltaTime);
}
public void close()
{
slashing = true;
if (ci > 7)
{
ci = -1;
skystatus = 'g';
moveDirection = new Vector2(0, 0);
attacking = false;
}
controller.Move(-1 * moveDirection * Time.deltaTime);
ci++;
}
public void lrunable()
{
lr.enabled = false;
}
//player2 execute
public void rslash2()
{
p2.GetComponent<SpriteRenderer>().sprite = PlayerSprite[6];
controller2.radius = 0.53f;
controller2.height = 0.81f;
controller2.center = new Vector3(0.09f, 0.03f, 0);
if (WalkReturn2) controller2.Move(new Vector2(0, -0.56f));
WalkReturn2 = false;
}
public void lslash2()
{
p2.GetComponent<SpriteRenderer>().sprite = PlayerSprite[3];
controller2.radius = 0.53f;
controller2.height = 0.81f;
controller2.center = new Vector3(0.09f, 0.03f, 0);
if (WalkReturn2) controller2.Move(new Vector2(0, -0.56f));
WalkReturn2 = false;
}
public void right2()
{
if(!slashing2)
{
p2.GetComponent<SpriteRenderer>().sprite = PlayerSprite[5];
}
controller2.radius = 0.53f;
controller2.height = 0.81f;
controller2.center = new Vector3(0.09f, 0.03f, 0);
if (WalkReturn2) controller2.Move(new Vector2(0, -0.56f));
WalkReturn2 = false;
}
public void left2()
{
if(!slashing2)
{
p2.GetComponent<SpriteRenderer>().sprite = PlayerSprite[2];
}
controller2.radius = 0.53f;
controller2.height = 0.81f;
controller2.center = new Vector3(0.09f, 0.03f, 0);
if (WalkReturn2) controller2.Move(new Vector2(0, -0.56f));
WalkReturn2 = false;
}
public void bright2()
{
p2.GetComponent<SpriteRenderer>().sprite = PlayerSprite[4];
}
public void bleft2()
{
p2.GetComponent<SpriteRenderer>().sprite = PlayerSprite[1];
}
public void wall2(int walldirection)
{
Vector3 pos,pos2;
lr2.enabled = true;
if(p2.transform.position.x > -8.3f && p2.transform.position.x < 8.1f && p2.transform.position.y < 4.35f)
{
hitname2 = "";
}
if (walldirection == 3)
{
pos = new Vector3(p2.transform.position.x + 0.44f, p2.transform.position.y, 2);
pos2 = new Vector3(p2.transform.position.x + 18.3f, p2.transform.position.y, 2);
lr2.SetPosition(0, pos);
lr2.SetPosition(1, pos2);
moveDirection2 = Vector2.right;
moveDirection2 = p2.transform.TransformDirection(moveDirection2);
moveDirection2 *= wallspeed;
controller2.Move(moveDirection2 * Time.deltaTime);
}
else if (walldirection == 1)
{
pos = new Vector3(p2.transform.position.x, p2.transform.position.y - 0.33f, 2);
pos2 = new Vector3(p2.transform.position.x,p2.transform.position.y + 18, 2);
lr2.SetPosition(0, pos);
lr2.SetPosition(1, pos2);
moveDirection2 = Vector2.up;
moveDirection2 = p2.transform.TransformDirection(moveDirection2);
moveDirection2 *= wallspeed;
controller2.Move(moveDirection2 * Time.deltaTime);
}
else if (walldirection == 2)
{
pos = new Vector3(p2.transform.position.x + 0.3f, p2.transform.position.y + 0.28f, 2);
pos2 = new Vector3(p2.transform.position.x + 18.3f, p2.transform.position.y + 18, 2);
lr2.SetPosition(0, pos);
lr2.SetPosition(1, pos2);
moveDirection2 = Vector2.one;
moveDirection2 = p2.transform.TransformDirection(moveDirection2);
moveDirection2 *= wallspeed;
if (hitname2 == "sky" || hitname2 == "rightside") moveDirection2 = Vector3.zero;
controller2.Move(moveDirection2 * Time.deltaTime);
}
else if (walldirection == 4)
{
if (!controller2.isGrounded)
{
pos = new Vector3(p2.transform.position.x + 0.51f, p2.transform.position.y - 0.42f, 2);
pos2 = new Vector3(p2.transform.position.x + 18.3f, p2.transform.position.y - 18, 2);
lr2.SetPosition(0, pos);
lr2.SetPosition(1, pos2);
moveDirection2 = new Vector2(1, -1);
moveDirection2 = p2.transform.TransformDirection(moveDirection2);
moveDirection2 *= wallspeed;
if (hitname2 == "rightside") moveDirection2 = Vector3.zero;
controller2.Move(moveDirection2 * Time.deltaTime);
}
}
else if (walldirection == 5)
{
if (!controller2.isGrounded)
{
pos = new Vector3(p2.transform.position.x, p2.transform.position.y - 0.37f, 2);
pos2 = new Vector3(p2.transform.position.x, p2.transform.position.y - 18, 2);
lr2.SetPosition(0, pos);
lr2.SetPosition(1, pos2);
moveDirection2 = Vector2.down;
moveDirection2 = transform.TransformDirection(moveDirection2);
moveDirection2 *= wallspeed;
controller2.Move(moveDirection2 * Time.deltaTime);
}
}
else if (walldirection == 6)
{
if (!controller2.isGrounded)
{
pos = new Vector3(p2.transform.position.x - 0.26f, p2.transform.position.y - 0.35f, 2);
pos2 = new Vector3(p2.transform.position.x - 17.7f, p2.transform.position.y - 18, 2);
lr2.SetPosition(0, pos);
lr2.SetPosition(1, pos2);
moveDirection2 = new Vector2(-1, -1);
moveDirection2 = p2.transform.TransformDirection(moveDirection2);
moveDirection2 *= wallspeed;
if (hitname2 == "leftside") moveDirection2 = Vector3.zero;
controller2.Move(moveDirection2 * Time.deltaTime);
}
}
else if (walldirection == 7)
{
pos = new Vector3(p2.transform.position.x - 0.3f, p2.transform.position.y, 2);
pos2 = new Vector3(p2.transform.position.x - 18, p2.transform.position.y, 2);
lr2.SetPosition(0, pos);
lr2.SetPosition(1, pos2);
moveDirection2 = Vector2.left;
moveDirection2 = p2.transform.TransformDirection(moveDirection2);
moveDirection2 *= wallspeed;
controller2.Move(moveDirection2 * Time.deltaTime);
}
else if (walldirection == 8)
{
pos = new Vector3(p2.transform.position.x - 0.2f, p2.transform.position.y + 0.3f, 2);
pos2 = new Vector3(p2.transform.position.x - 18, p2.transform.position.y + 18, 2);
lr2.SetPosition(0, pos);
lr2.SetPosition(1, pos2);
moveDirection2 = new Vector2(-1, 1);
moveDirection2 = p2.transform.TransformDirection(moveDirection2);
moveDirection2 *= wallspeed;
if (hitname2 == "sky" || hitname2 == "leftside") moveDirection2 = Vector3.zero;
controller2.Move(moveDirection2 * Time.deltaTime);
}
}
public void slash2()
{
float i, j,abs,absi,absj;
lr2.enabled = false;
i = p2.transform.position.x - p2.transform.position.x;
j = p2.transform.position.y - p2.transform.position.y;
if (Mathf.Abs(i) < 1 && Mathf.Abs(j) < 0.81)
{
if(!(GameManager.Instance.LastAttackPlayer == p2.tag && attacking2) && ((i < 0 && !blockl2) || (i > 0 && !blockr2) || (i == 0)))
Win("Blue");
ci2 = 0;
skystatus2 = 'c';
}
abs = Mathf.Abs(i) > Mathf.Abs(j) ? Mathf.Abs(i) : Mathf.Abs(j);
absi = i / abs;
absj = j / abs;
if (absi <= 0) rslash2();
else lslash2();
moveDirection2 = new Vector2(absi, absj);
moveDirection2 *= slashspeed;
controller2.Move(-1 * moveDirection2 * Time.deltaTime);
}
public void close2()
{
slashing2 = true;
if (ci2 > 7)
{
ci2 = -1;
skystatus2 = 'g';
moveDirection2 = new Vector2(0, 0);
attacking2 = false;
}
controller2.Move(-1 * moveDirection2 * Time.deltaTime);
ci2++;
}
public void lrunable2()
{
lr2.enabled = false;
}
void Win(string str)
{
GameManager.Instance.Gaming = false;
GameManager.Instance.InGame.SetActive(true);
GameManager.Instance.InGameText.GetComponent<Text>().text = str + " Win!!";
}
}
<file_sep># Project-N
my ninja game
| 2c93b63da82f1eab83dc81e7750e3d50a10a7f7f | [
"Markdown",
"C#"
] | 6 | C# | mcgodamn/Project-N_Legacy | 9aba0774f97d8e3f11acb7ea1a10dadd3cd935fa | 42b4aa2ce7e65c938e42a6356294cafd8637b135 |
refs/heads/main | <repo_name>wu248344353/DQN<file_sep>/NetWork.py
import torch.nn as nn
import torch
class NET(nn.Module):
"""定义神经网络类"""
def __init__(self, state_dim, action_dim):
super(NET, self).__init__()
self.lin1 = nn.Sequential(
nn.Linear(state_dim, 256),
nn.ReLU()
)
self.lin2 = nn.Sequential(
nn.Linear(256, 512),
nn.ReLU()
)
self.lin3 = nn.Sequential(
nn.Linear(512, 256),
nn.ReLU()
)
self.lin4 = nn.Linear(256, action_dim)
def forward(self, state):
state = state.to(torch.float32)
feature = self.lin1(state)
feature = self.lin2(feature)
feature = self.lin3(feature)
out_feature = self.lin4(feature)
return out_feature
<file_sep>/README.md
# DQN
# DQN训练3V3贪吃蛇环境,环境取自及第网站。
# 运行DQN_main.py即可。
| 738bda590db2cf36c0b3fbb2b93ef64d28f78226 | [
"Markdown",
"Python"
] | 2 | Python | wu248344353/DQN | d640ee15f4a16db4178fd8eae4d4abde4cf06338 | 2f0274dcd9168ea325179680f70523f697bf7e0e |
refs/heads/main | <repo_name>emily1749/mocha_chai_test2<file_sep>/test/app.test.js
const app = require('../app');
const chai = require('chai');
const chaiHttp = require('chai-http');
| 1214844a15cbb789a5a194fc9eece6ecea98e045 | [
"JavaScript"
] | 1 | JavaScript | emily1749/mocha_chai_test2 | 92a27225c13ab9a70f34814ab0589097b6390f01 | 457ae6c5102adeaedcca13694ad147deaf8293c5 |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package quiz.if2.pkg10119058.carakamuhamadrahman;
/**
*
* @author
* NAMA : <NAME>
* KELAS : PBOIF2
* NIM : 10119058
* Deskripsi Program : Progarm ini berisi program untuk menampilkan
* program kasir Rock N Roll Haircut
*/
public class interface CustomerInvoice {
public String currentTime();
}
| c397c7c8390b459c0d1be68bfbf42179bd721ebb | [
"Java"
] | 1 | Java | CarakaMuhamadRahman/QUIZ-IF2-10119058-CARAKAMUHAMADRAHMAN | 2fc8806a3150a37b22be550b9302883811837d27 | 6f8934796e8d3709e4b8baeb8be8dd0e18c22412 |
refs/heads/master | <file_sep>//
// ExtractionMethods.cpp
// startracker
//
// Created by Carlos on 4/4/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#include "ExtractionMethod.hpp"
class ExtractionMethod {
protected:
strtckr::StarTriad triad;
public:
ExtractionMethod* setTriad(strtckr::StarTriad triad) {
this->triad = triad;
return this;
}
strtckr::StarTriad getTriad() {
return this->triad;
}
std::vector<int> extract();
double norm(cv::Point point) {
return sqrt( (point.x ^ 2) + (point.y ^ 2));
}
};<file_sep>//
// Permutator.hpp
// startracker
//
// Created by Carlos on 4/10/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#ifndef CombinationsGenerator_hpp
#define CombinationsGenerator_hpp
namespace strtckr {
class CombinationsGenerator {
public:
std::vector<std::vector<int>> generate(int n, int r);
};
}
#endif /* Permutator_hpp */
<file_sep>//
// ExtractionMethods.hpp
// startracker
//
// Created by Carlos on 4/4/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#ifndef ExtractionMethod_hpp
#define ExtractionMethod_hpp
#include <stdio.h>
#include "StarTriad.cpp"
#include "opencv2/core/core.hpp"
#endif /* ExtractionMethods_hpp */<file_sep>//
// StarVision.cpp
// startracker
//
// Created by Carlos on 4/10/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#include "StarVision.h"
using namespace strtckr;
using namespace std;
using namespace cv;
StarVision* StarVision::loadFile(std::string FileLocation){
this->FileLocation = FileLocation;
this->currentImage = imgread(this->FileLocation);
return this;
}
vector <StarTriad> StarVision::getTriads(){
vector<KeyPoint> stars = this->findStars();
return this->buildTriads(stars);
}
vector <StarTriad>StarVision::buildTriads(std::vector<KeyPoint> keypoints){
// Here well get all possible unordered permutations
int totalPoints = keypoints.size();
vector <StarTriad> output;
std::vector<std::vector<int>> triads = ServiceProvider::makeCombinationsGenerator()->generate(totalPoints, 3);
for(int i = 0; i < triads.size(); i++){
StarTriad triad;
triad.a = triads[i][0];
triad.b = triads[i][1];
triad.c = triads[i][2];
output.push_back(triad);
}
return output;
}
vector<cv::KeyPoint> StarVision::findStars(){
// Some stuff we need
vector<StarTriad> triadsFound;
Mat img_gray;
Mat img_keypoints;
SimpleBlobDetector::Params params;
vector<cv::KeyPoint> keypoints;
vector<strtckr::StarTriad> triads;
// Necesasry parameters for blob analisys
params.filterByArea = true;
params.minArea = 0.01;
params.maxArea = 1000;
params.filterByColor = true;
params.blobColor = 255;
// Instantiate detector
Ptr<cv::SimpleBlobDetector> detector = cv::SimpleBlobDetector::create(params);
cvtColor(this->currentImage, img_gray, CV_RGB2GRAY);
// Fix matrix size and type to allocate final image
Mat img_bw(img_gray.size(), img_gray.type());
// Apply threshhold to convert into binary image and save to new matrix
threshold(img_gray, img_bw, 100, 255, THRESH_BINARY);
// Extract cordinates of blobs at their centroids, save to keypoints variable.
detector->detect(img_bw, keypoints);
return keypoints;
}<file_sep>//
// Config.cpp
// startracker
//
// Created by Carlos on 4/10/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#include "Config.hpp"
<file_sep>//
// Config.hpp
// startracker
//
// Created by Carlos on 4/10/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#ifndef Config_hpp
#define Config_hpp
#include "header.h"
namespace strtckr{
std::unordered_map<std::string, std::string> enabledFeatures = {
{"", ""}
};
std::unordered_map<std::string, float> float_vals = {
};
}
#endif /* Config_hpp */
<file_sep>//
// Permutator.cpp
// startracker
//
// Created by Carlos on 4/10/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#include "header.h"
using namespace strtckr;
std::vector<std::vector<int>> CombinationsGenerator::generate(int n, int r){
std::vector<int> current;
std::vector<std::vector<int>> output;
std::vector<bool> v(n);
std::fill(v.begin() + n - r, v.end(), true);
do{
for(int i = 0; i < n; ++i){
if(v[i]){
current.push_back(i+1);
}
}
output.push_back(current);
}while(std::next_permutation(v.begin(), v.end()));
return output;
}<file_sep>//
// StarVision.cpp
// startracker
//
// Created by Carlos on 4/10/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#ifndef STARVISION
#define STARVISION
#include "header.h"
using namespace std;
using namespace cv;
namespace strtckr{
class StarVision {
public:
StarVision();
StarVision * loadFile(string FileLocation);
std::vector<StarTriad> getTriads();
private:
Mat currentImage;
string FileLocation;
vector<cv::KeyPoint> findStars();
SimpleBlobDetector::Params params;
vector<StarTriad> buildTriads(vector<KeyPoint> keypoints);
};
}
#endif<file_sep>//
// include.h
// startracker
//
// Created by Carlos on 4/10/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#ifndef STRTRCK_Includes_h
#define STRTRCK_Includes_h
#include <iostream>
#include <opencv2/opencv.hpp>
#include "StarTriad.cpp"
#include "StarVision.h"
#include <string>
#include <unordered_map>
#include "ServiceProvider.hpp"
#include "CombinationsGenerator.hpp"
#endif /* Includes_h */
<file_sep>//
// ServiceProvider.cpp
// startracker
//
// Created by Carlos on 4/11/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#include "ServiceProvider.hpp"
using namespace strtckr;
CombinationsGenerator* ServiceProvider::makeCombinationsGenerator(){
if(!ServiceProvider::combinationsGeneratorObj){
ServiceProvider::combinationsGeneratorObj = new CombinationsGenerator();
}
return ServiceProvider::combinationsGeneratorObj;
}
StarVision* ServiceProvider::makeStarVision(){
if(!ServiceProvider::starVisionObj){
ServiceProvider::starVisionObj = new StarVision();
}
return ServiceProvider::starVisionObj;
}<file_sep>//
// main.cpp
// startracker
//
// Created by Carlos on 4/2/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#include "header.h"
int main() {
using namespace strtckr;
StarVision * visionProcessor = ServiceProvider::makeStarVision();
vector <StarTriad> triads;
// Set location of image
triads = visionProcessor->loadFile("/Users/cgranados/Code/startracker/media/summertriangle.jpg")->getTriads();
cout << "Found " << triads.size() << " triads in current view";
return 0;
}<file_sep>//
// ServiceProvider.hpp
// startracker
//
// Created by Carlos on 4/11/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#ifndef ServiceProvider_hpp
#define ServiceProvider_hpp
#include "header.h"
namespace strtckr{
class ServiceProvider{
private:
static CombinationsGenerator *combinationsGeneratorObj;
static StarVision *starVisionObj;
public:
static CombinationsGenerator* makeCombinationsGenerator();
static StarVision* makeStarVision();
};
}
#endif /* ServiceProvider_hpp */
| ffe54ba286dd0646296868088d82ac73a01d82b6 | [
"C++"
] | 12 | C++ | huleg/star-extractor | 46b2954c6260eac078b645044a44daf2c7caa410 | 30d5eff2dac9d72e932aa9d228a2bacc1292cfad |
refs/heads/master | <repo_name>jim1207/jim_vimrc<file_sep>/notes.txt
#tmuxifier
git clone https://github.com/jimeh/tmuxifier.git ~/.tmuxifier
echo 'export PATH="$HOME/.tmuxifier/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(tmuxifier init -)"' >> ~/.profile
<file_sep>/tmux.sh
#!/bin/bash
set -e
mkdir -p byobu_src
cd byobu_src
#byobu
wget https://launchpad.net/byobu/trunk/5.104/+download/byobu_5.104.orig.tar.gz
tar zxvf byobu_5.104.orig.tar.gz
cd byobu-5.104
./configure && make && make install
cd ..
rm -rf byobu_src
#tmux
yum install -y tmux
<file_sep>/install.sh
[ ! -L ~/.vimrc ] && ln -ns jim_vimrc/dot_vimrc ~/.vimrc
[ ! -L ~/.vim ] && ln -ns jim_vimrc/dot_vim ~/.vim
[ ! -L ~/.byobu ] && ln -ns jim_vimrc/dot_byobu ~/.byobu
[ ! -L ~/.tmux.conf ] && ln -ns jim_vimrc/dot_tmux.conf ~/.tmux.conf
[ ! -L ~/.tmuxifier ] && ln -ns jim_vimrc/dot_tmuxifier ~/.tmuxifier
#append bashrc.jim to ~/.bashrc
str=bashrc.jim
exe=`grep $str $HOME/.bashrc`
if [ x"$exe" == x ]; then
echo "source ~/jim_vimrc/$str" >> $HOME/.bashrc
fi
<file_sep>/byobu.sh
#!/bin/bash
set -e
mkdir -p byobu_src
cd byobu_src
#byobu
wget https://launchpad.net/byobu/trunk/5.104/+download/byobu_5.104.orig.tar.gz
tar zxvf byobu_5.104.orig.tar.gz
cd byobu-5.104
./configure && make && make install
cd ..
#gcc
yum install -y gcc ncurses-devel
#screen
wget http://ftp.gnu.org/gnu/screen/screen-4.3.1.tar.gz
tar zxvf screen-4.3.1.tar.gz
cd screen-4.3.1
./configure && make && make install
cd ../../
rm -rf byobu_src
<file_sep>/dot_byobu/keybindings.tmux
unbind-key -n C-a
set -g prefix ^A
set -g prefix2 ^A
bind a send-prefix
bind -n C-k clear-history
unbind C-o
unbind o
bind -r o select-pane -t :.+ \; display-pane
bind l send-keys -R\; clear-history\; display "Cleared"\
| d50289f414755ac95dc34c1f7d93cfe8cdd198a4 | [
"Text",
"Shell"
] | 5 | Text | jim1207/jim_vimrc | 0a710175251c885b31b7deac41b1a4a47a1f3c40 | 9fb650cfd1aa41767c6e0ce20de2e29cce9df101 |
refs/heads/master | <repo_name>TomsenTan/About_asyncio<file_sep>/asyncio_test.py
#Date:2018-12-10
#Author:Thomson
from threading import Thread,currentThread
import time
#阻塞检测,一个线程阻塞,另一个线程执行
def do_something(x):
time.sleep(x)
print(time.ctime())
thread1 = Thread(target=do_something,args=(1,))
thread2 = Thread(target=do_something,args=(2,))
thread3 = Thread(target=do_something,args=(3,))
thread4 = Thread(target=do_something,args=(4,))
thread5 = Thread(target=do_something,args=(5,))
threads = []
threads.append(thread1)
threads.append(thread4)
threads.append(thread3)
threads.append(thread2)
threads.append(thread5)
for thread in threads:
thread.start()
#共有数据的争夺检测
start = time.time()
def do_something(x):
global a
time.sleep(x)
for b in range(1,51): #计算从1+...+50
a+=b
print(currentThread(),":",a)
a = 0
threads = []
for i in range(1,20000):
thread = Thread(target=do_something,args=(1,))
threads.append(thread)
for thread in threads:
thread.start()
for thread in threads:
thread.join()
end = time.time()
print(end-start)
import asyncio
import time
a = 0
tasks = []
num = 0
start = time.time()
# 密集运算测试
async def do_something(x):
global a
global num
#num += 1 #num自增的位置(在阻塞前/后)不同会产生不同的结果
await asyncio.sleep(x)
for b in range(1,51): #计算从1+...+50
a+=b
num += 1
print("this is coroutetime",":",x,a)
for i in range(1,20000):
coroutine = do_something(1) #即使睡眠的时间很短,运算量大都不会产生资源争夺
#coroutine = do_something(i*0.01)
tasks.append(asyncio.ensure_future(coroutine))
loop = asyncio.get_event_loop() #创建事件循环
loop.run_until_complete(asyncio.wait(tasks)) #将协程塞进事件循环中
end = time.time()
print(end-start)
| 60d206e0d62b6e86fa35e48d25aa8c044f471394 | [
"Python"
] | 1 | Python | TomsenTan/About_asyncio | 75b47b781b0a85177a1a89e545d1d28decd4ab8c | 3431edce1837076e0e546bda0d8c45f74b84c751 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FSDConsoleApplication.MulitpleInheritance
{
public class MultipleInheritanceChildClass : MultipleInhertianceBaseClass
{
public override void FirstInterfaceDisplay()
{
base.FirstInterfaceDisplay();
Console.WriteLine("Display Override method from First Interface ");
}
public override void SecondInterfaceDisplay()
{
base.SecondInterfaceDisplay();
Console.WriteLine("Display Override method from Second Interface ");
}
}
}
<file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FSDConsoleApplication
{
public class CollectionWithDelegateAndLambda
{
public delegate List<int> MyDelegate();
public CollectionWithDelegateAndLambda()
{
m_numberList = new List<int>();
IntializeList();
}
private List<int> m_numberList;
private void IntializeList()
{
for (int i = 1; i <= 100; i++)
{
m_numberList.Add(i);
}
}
public void GetLambdaResult()
{
Console.Write("\nThe Lambda Result is : \n");
List<int> outputResult = GetListDivisibleBy3();
foreach (int i in outputResult)
{
Console.Write("{0}\t", i);
}
}
public void GetDelegateResult()
{
Console.Write("\nThe delegate Result is : \n");
//create delegate instances
MyDelegate objDelegate = new MyDelegate(GetListDivisibleBy3);
//Calling Delegate methods
List<int> outputResult = objDelegate();
foreach (int i in outputResult)
{
Console.Write("{0}\t", i);
}
}
private List<int> GetListDivisibleBy3()
{
return m_numberList.Where(x => x % 3 == 0).ToList();
}
}
}
<file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FSDConsoleApplication.MulitpleInheritance
{
interface ISecondInterface
{
void SecondInterfaceDisplay();
}
}
<file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FSDClassApplication
{
class Program
{
static void Main(string[] args)
{
Person[] objPerson = new Person[5];
objPerson[0] = new Professor("Professor1", 5);
objPerson[1] = new Professor("Professor2", 8);
objPerson[2] = new Professor("Professor3", 3);
objPerson[3] = new Student("Student1", 90);
objPerson[4] = new Student("Student2", 70);
foreach (Person per in objPerson)
{
if (per is Professor)
((Professor)per).Print();
if (per is Student)
((Student)per).Display();
}
Console.Read();
}
}
}
<file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FSDConsoleApplication.MulitpleInheritance;
namespace FSDConsoleApplication
{
class Program
{
static void Main(string[] args)
{
//1. 2d 3x3 Array
Console.WriteLine("2D 3x3 Matrix ");
TwoDimensionalArray3x3Matrix objArray = new TwoDimensionalArray3x3Matrix();
objArray.PrintArray();
Console.WriteLine();
//2. Multiple Inheritance , Virutal, Override
Console.WriteLine(" Multiple Inheritance , Virutal, Override \n");
MultipleInheritanceChildClass objChildClass = new MultipleInheritanceChildClass();
objChildClass.FirstInterfaceDisplay();
objChildClass.SecondInterfaceDisplay();
Console.WriteLine();
//3. Lambda and delegates
Console.WriteLine("Lambda and delegates \n");
CollectionWithDelegateAndLambda objCollection = new CollectionWithDelegateAndLambda();
objCollection.GetLambdaResult();
objCollection.GetDelegateResult();
Console.WriteLine();
//4. Email check using Regex
Console.WriteLine("Email check using Regex \n");
StringExtension objString = new StringExtension();
objString.CheckEmail();
Console.WriteLine();
Console.Read();
}
}
}
<file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FSDConsoleApplication.MulitpleInheritance
{
public class MultipleInhertianceBaseClass : IFirstInterface, ISecondInterface
{
public virtual void FirstInterfaceDisplay()
{
Console.WriteLine("Display Virtual method from First Interface ");
}
public virtual void SecondInterfaceDisplay()
{
Console.WriteLine("Display Virtual method from second Interface ");
}
}
}
<file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FSDClassApplication
{
public class Professor : Person
{
private int i_bookPublished;
public int BookPublished
{
get { return i_bookPublished; }
set { i_bookPublished = value; }
}
public Professor()
{
}
public Professor(string name, int bookPublished)
: base(name)
{
i_bookPublished = bookPublished;
}
public void Print()
{
if (isOutStanding())
{
Console.WriteLine(string.Format("Name : {0} Books Published : {1}", this.Name, this.BookPublished));
}
}
public override bool isOutStanding()
{
return this.BookPublished > 4;
}
}
}
<file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FSDClassApplication
{
public class Student : Person
{
private double d_Percentage;
public double Percentage
{
get { return d_Percentage; }
set { d_Percentage = value; }
}
public Student()
{
}
public Student(string name, double percentage)
: base(name)
{
d_Percentage = percentage;
}
public void Display()
{
if (isOutStanding())
{
Console.WriteLine(string.Format("Name : {0} Percentage : {1}", this.Name, this.Percentage));
}
}
public override bool isOutStanding()
{
return this.Percentage > 85;
}
}
}
<file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace FSDConsoleApplication
{
public class StringExtension
{
public const string c_EmailExpression = @"^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$";
public void CheckEmail()
{
Console.Write("\n\nRead a input string and verify it's valid format.\n");
string sInputString = Convert.ToString(Console.ReadLine());
bool value = IsValidEmail(sInputString);
Console.WriteLine(value);
}
private bool IsValidEmail(string strIn)
{
// Return true if strIn is in valid e-mail format.
return Regex.IsMatch(strIn, c_EmailExpression);
}
}
}
<file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FSDConsoleApplication.MulitpleInheritance
{
interface IFirstInterface
{
void FirstInterfaceDisplay();
}
}
| a2b547ae1d353d3ac2cc1b803b3469ae1be9a8a3 | [
"C#"
] | 10 | C# | Harishfsd/FSDPublic | fde46a7f53f6dd0afcd38bd8f2fa6989311b7e18 | 8bcfb6ff82cb99e976b431130cdaba4b24b2b66f |
refs/heads/master | <repo_name>paldar/fun2<file_sep>/f2/f2.py
from functools import reduce, partial
from itertools import compress, starmap
from operator import itemgetter, attrgetter, le, ge
from typing import Iterable, List, Any, Callable, TypeVar
T = TypeVar('T')
ReturnType = TypeVar('ReturnType')
def noop(obj: T) -> T:
return obj
def car(iterable: Iterable[T]):
return next(iterable.__iter__())
def cdr(iterable: Iterable[T]):
advanced_iter = iterable.__iter__()
next(advanced_iter)
return advanced_iter
# TODO: benchmark this
def _generic_flatten_v1(obj: Iterable[Iterable[T]]) -> List[T]:
return [val for sublist in obj for val in sublist]
class Fun:
def __init__(self, iterable: Iterable[T]):
self._data = list(iterable)
self.operations: List[Callable] = list()
def map(self, ufunc: Callable[[T], ReturnType]):
self.operations.append(partial(map, ufunc))
return self
def reduce(self, binary_op: Callable[[T, T], Any]):
self.operations.append(partial(reduce, binary_op))
return self
def filter(self, bool_op: Callable[[T], bool]):
self.operations.extend([partial(filter, bool_op), list])
return self
def sum(self):
self.operations.append(sum)
return self
def flatten(self):
self.operations.append(_generic_flatten_v1)
return self
def sorted(self, key: Callable = noop, reverse: bool = False):
self.operations.append(partial(sorted, key=key, reverse=reverse))
return self
def reversed(self):
self.operations.append(reversed)
return self
def getitem(self, *args, **kwargs):
self.operations.append(itemgetter(*args, **kwargs))
return self
def getattr(self, *args, **kwargs):
self.operations.append(attrgetter(*args, **kwargs))
return self
def mask(self, mask: Iterable[bool]):
self.operations.append(partial(compress, selectors=map(bool, mask)))
return self
def map_apply(self, ufunc):
self.operations.append(partial(starmap, ufunc))
return self
def flatmap(self, ufunc):
self.operations.extend([_generic_flatten_v1, partial(map, ufunc)])
return self
def collect(self):
for func in self.operations:
self._data = func(self._data)
try:
return list(self._data)
except TypeError:
return self._data
<file_sep>/tests/test_f2_chaining.py
import unittest
from operator import add, itemgetter
from f2 import Fun, car
def _add1(val: int):
return val + 1
class TestF2Chaining(unittest.TestCase):
def test_map(self):
range_size = 320000
result = Fun(range(range_size)).map(_add1).collect()
self.assertListEqual(list(range(1, range_size + 1)), result)
def test_map_apply(self):
range_size = 320000
leftval = Fun(range(range_size)).map(_add1).collect()
expected = list(range(1, range_size + 1))
self.assertListEqual(leftval, expected)
def test_reduce(self):
range_size = 320000
result = Fun(range(range_size)).map(_add1).reduce(add).collect()
self.assertEqual(sum(range(range_size)) + range_size, result)
def test_filter(self):
range_size = 320000
result = Fun(range(range_size)).filter(lambda x: x < 5).collect()
self.assertListEqual(result, list(range(5)))
def test_sorted(self):
data = [{
'name': 'Johanna',
'title': 'Director',
}, {
'name': 'Susanna',
'title': 'Architect',
}, {
'name': 'Edvard',
'title': 'Janitorial Engineer',
}, {
'name': 'Pekka',
'title': 'Blackboard Wiping Specialist',
}]
result = (Fun(data)
.sorted(key=itemgetter('name'), reverse=True)
.map(itemgetter('name'))
.collect())
self.assertListEqual(result, ['Susanna', 'Pekka', 'Johanna', 'Edvard'])
def test_flatmap(self):
sep = 1299
end = 3700
delta = 1
data = [list(range(sep)), list(range(sep, end))]
result = Fun(data).flatmap(lambda x: x + delta).collect()
self.assertListEqual(result, list(range(delta, end + delta)))
<file_sep>/f2/__init__.py
from .f2 import Fun, car, cdr
__all__ = ['Fun', 'car', 'cdr']
<file_sep>/README.md
# Fun2
Fun2 = *Fun*ctional *fun* = fun^2 = f2
Syntax sugar for python functional operations.
<file_sep>/f2/setup.py
from setuptools import setup
setup(name="f2",
version="0.0.1.dev",
author="<NAME>",
author_email="<EMAIL>",
url="https://github.com/peteraldaron/fun2",
tests_require=[],
py_modules=["f2"],
license="MIT",
python_requires=">=3.6")
| 0514a80632d94d4cc414f07d7f0e74590cf60e43 | [
"Markdown",
"Python"
] | 5 | Python | paldar/fun2 | 22bc58d9abb0c33f4b60b34a3774a45d5a7d4639 | 94dcd2f3125bd48c484051bcabbf87f06c661ab5 |
refs/heads/master | <file_sep>from twilio.rest import TwilioRestClient
#note this is TEST API. not my real API key lolz.
SSID = "AC3e71cbc231ed666dd74383cc98d2897f"
AuthToken = "<KEY>"
client = TwilioRestClient(SSID,AuthToken)
client.messages.create(
to = "+0",
from_ ="+0",
body = "This is an automated message from the best CS314 student ever, <NAME>",
)
<file_sep>#Below is the list of all CONFIRMED APIs we are using.
#Twilio API: https://www.twilio.com/
#Google Maps API: https://developers.google.com/maps/documentation/ Python.
#Crises API: http://api.crisis.net/
#ReliefWeb API: http://www.programmableweb.com/api/reliefweb
#possible APIs:
#Amazon Alexa API
#IBM Watson???
#context.io for getting most valuable friends via email analysis
#indeed for job search after misplacemet by natural disasters
#Microsoft Azure for cloud computing/creating dev gateways/API management
#capital one for payment systems
#or chase, or both.
#Strategy for tomorrow:
#1. get base functionality done:
#Android guys get the app design down.
#backend devs focus on those 4 APIs, additional if necessary
#frontend figure out website
#2. testing and implementation.
#3. addition of extra functionalities
#4. roll out completed versions.
#we are going for the following:
#good neighbor award: $200 first place, 100 for second
#general placing, monitors, laptops, tablet, decending order
#national instruments rapid prototyping award
#mongoDB hack award: gift cards and trip
| e29f56199156baa25b21ec0cd72720d06c130a7f | [
"Python"
] | 2 | Python | copperstick6/HackTXReferences | 8fe89037e23e237036b20c04f04c247129021357 | 71a55717374ff1391e274024babc4314fc2329b0 |
refs/heads/master | <file_sep>using System;
namespace PrintAge
{
class MainClass
{
public static void Main(string[] args)
{
Console.Write("Enter Your Age: ");
int age;
age = int.Parse(Console.ReadLine());
Console.WriteLine("Your age is " + age);
}
}
}
<file_sep>using System;
namespace DateAndTime
{
class MainClass
{
public static void Main(string[] args)
{
DateTime dateTime = DateTime.Now;
Console.WriteLine(dateTime);
Console.WriteLine(dateTime.ToString("yy/MMM/dd hh:mm"));
}
}
}
<file_sep># Learning-C-sharp
Projects that i build to learn C# for COCS307 programming course from King Abdulaziz University
<file_sep>using System;
namespace PrintNumbers
{
class MainClass
{
public static void Main(string[] args)
{
int sign = 1;
for (int i = 1; i < 10; i++)
{
Console.WriteLine(sign*(2*i-1));
sign = -sign;
}
Console.WriteLine("");
}
}
}
<file_sep>using System;
namespace SortReverseAverage
{
class MainClass
{
public static void Main(string[] args)
{
int choice = 0;
Console.Write("Enter the length of the array: ");
int length = int.Parse(Console.ReadLine());
int[] array = new int[length];
Console.WriteLine("Enter your array: ");
for (int i = 0; i < length; i++)
{
Console.WriteLine("Enter " + (i + 1) + ": ");
array[i] = int.Parse(Console.ReadLine());
}
while (choice != 4)
{
Console.Write("Enter 1. To sort the array.\nEnter 2. To reverse the array.\nEnter 3. to print the array\nEnter 4. to exit.\nYour input: ");
choice = int.Parse(Console.ReadLine());
switch (choice)
{
case 1:
array = sort(array);
break;
case 2:
array = reverse(array);
break;
case 3:
printArray(array);
break;
case 4:
break;
}
}
//Console.WriteLine("Hello World!");
//int[] array = { 22, 4, 5, 6, 0, 24, 23, 7, 1, 29 };
//for (int i = 0; i < array.Length; i++)
//{
// Console.Write(array[i]+" ");
//}
//array = sort(array);
//Console.WriteLine("");
//for(int i = 0; i < array.Length; i++)
//{
// Console.Write(array[i]+ " ");
//}
//array = reverse(array);
//Console.WriteLine("");
//for (int i = 0; i < array.Length; i++)
//{
// Console.Write(array[i] + " ");
//}
}
public static void printArray(int[] array)
{
for (int i = 0; i < array.Length; i++)
{
Console.Write(array[i]+" ");
}
Console.WriteLine("");
}
public static int[] reverse(int[] array)
{
int[] newArray = new int[array.Length];
for (int i = 0, j = array.Length - 1; i < array.Length; i++, j--)
{
newArray[i] = array[j];
}
return newArray;
}
public static int[] sort(int[] array)
{
int holder = 0;
int minIndex = 0;
for (int i = 0; i < array.Length - 1; i++)
{
for (int j = 1 + i; j < array.Length; j++)
{
if (array[j] < array[minIndex])
{
minIndex = j;
}
}
holder = array[i];
array[i] = array[minIndex];
array[minIndex] = holder;
}
return array;
}
}
}
<file_sep>using System;
namespace TryCatchTest
{
class MainClass
{
public static void Main(string[] args)
{
Console.Write("Enter two numbers to divide: ");
int firstNumber = int.Parse(Console.ReadLine());
int secondtNumber = int.Parse(Console.ReadLine());
try
{
int output = firstNumber / secondtNumber;
Console.WriteLine("The out put is: " + output);
} catch (Exception x)
{
Console.WriteLine(x);
}
}
}
}
<file_sep>using System;
namespace ForEach
{
class MainClass
{
public static void Main(string[] args)
{
int[] x = new int[10];
for (int i = 0; i < 10; i++)
{
x[i] = i;
}
foreach(int n in x)
{
Console.WriteLine(n);
}
}
}
}
<file_sep>using System;
namespace ChangeOfPurchace
{
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine(256%100);
Console.WriteLine("how much did you pay");
int paid = int.Parse(Console.ReadLine());
Console.WriteLine("how much is the cost");
int cost = int.Parse(Console.ReadLine());
int dif = paid - cost;
int[] money = { 500, 100, 50, 10, 5, 1 };
int index = 0;
for(int i = 0;i < money.Length; i++)
{
if (dif >= money[i])
{
index = i;
break;
}
}
Console.Write("your change is: "+dif+":");
do
{
Console.Write(money[index]+" ");
dif = dif - money[index];
for (int i = 0; i < money.Length; i++)
{
if (dif >= money[i])
{
index = i;
break;
}
}
} while (dif != 0);
}
}
}
| 3a5aff8a89f59997c7f1d747ae337e845e84cee7 | [
"Markdown",
"C#"
] | 8 | C# | MohammedAljahdali/Learning-C-sharp | 0b302e5f6257570044d0214951b4c0dc0f64dbed | 253ae1d9b6abd001e677cbca3367f663ec94cf63 |
refs/heads/master | <repo_name>orion/Lloyd<file_sep>/lloyd/cryptic.py
def find_all(wordlist, fn):
for word in wordlist.words:
matches = fn(wordlist, word)
if matches:
yield (word, (matches))
# TODO: screen hitlist outers like "un...ed" and "un...er",
# and words where outer is also a prefix
def find_containers(wordlist, word):
words = wordlist.words
matches = []
for i in range(1, (len(word)/2)+1):
outer = word[:i] + word[-i:]
inner = word[i:-i]
outer_ana = wordlist.anagrams_for(outer)
inner_ana = wordlist.anagrams_for(inner)
if outer_ana and inner_ana:
if outer not in words and inner not in words:
continue
if outer not in words:
outer = outer_ana
if inner not in words:
inner = inner_ana
matches.append((outer, ' <= ', inner))
return matches
<file_sep>/lloyd/util.py
import re
ALPHABET = "abcdefghijklmnopqrstuvwxyz"
DICT_FILE = "/usr/share/dict/words"
def neighborhood(wordlist, word):
for (slot, ltr) in enumerate(word):
for change_to in ALPHABET:
if ltr != change_to:
new_word = list(word)
new_word[slot] = change_to
new_word = "".join(new_word)
if new_word in wordlist:
yield new_word
# gen_replace_pattern
#
# replace each letter with a '.'
def gen_replace_patterns(word):
for (slot, ltr) in enumerate(word):
letters = list(word)
letters[slot] = "."
yield("".join(letters))
# gen_insert_pattern
#
# insert a '.' between each letter,
# in front of the word
# and at the end of the word
def gen_insert_patterns(word):
letters = list(word)
letters.append(".")
for slot in range(len(word),-1, -1):
yield "".join(letters)
tmp = letters[slot]
letters[slot] = letters[slot-1]
letters[slot-1] = tmp
def gen_delete_patterns(word):
for (slot, ltr) in enumerate(word):
letters = list(word)
del letters[slot]
yield("".join(letters))
def load_dictionary(file):
f = open(file, 'r')
r = f.read().splitlines()
f.close()
return r
def search_dictionary_with_pattern(pattern, dict):
regex = re.compile('%s'%pattern)
for word in dict:
if len(word) == len(pattern):
if regex.match(word):
yield word
if __name__ == "__main__":
dictionary = load_dictionary(DICT_FILE)
print "*" * 50
for p in gen_replace_patterns("test"):
for w in search_dictionary_with_pattern(p, dictionary):
print w
print "*" * 50
for p in gen_insert_patterns("test"):
for w in search_dictionary_with_pattern(p, dictionary):
print w
print "*" * 50
for p in gen_delete_patterns("test"):
for w in search_dictionary_with_pattern(p, dictionary):
print w
print "*" * 50
for i in neighborhood(dictionary, "test"):
print i
<file_sep>/TODO.markdown
Things that we know are within our capabilities:
Anagrams with a given dictionary, with unknown letters
Neighborhood:
* Find neighboring words within n steps of a given word
* Include add/delete/change
Word search within a string -- find all words, possibly overlapping, possibly with unknowns
Generalized word search
Figure out a sentence from an arbitrary list of characters with missing letters
Do the above with possible corruptions
Cryptogram solvers
Text-based thesaurus
Things that we'd love to be able to do if we could:
OCR a word search
OCR a crossord puzzle
<file_sep>/env.sh
alias pt=py.test
<file_sep>/lloyd/wordlist/__init__.py
from collections import defaultdict
def standard():
words = set()
with open('/usr/share/dict/words', 'r') as f:
for l in f:
words.add(l.rstrip())
return words
class WordList(object):
def __init__(self, words):
self.words = words
self.anagrams = self._find_anagrams(words)
def _anagram_key_for(self, word):
return "".join(sorted(list(word)))
def _find_anagrams(self, words):
anagrams = defaultdict(list)
for word in words:
key = self._anagram_key_for(word)
anagrams[key].append(word)
singles = [a for a in anagrams if len(anagrams[a]) == 1]
for anagram in singles:
del anagrams[anagram]
return anagrams
def anagrams_for(self, word):
key = self._anagram_key_for(word)
return self.anagrams[key]
<file_sep>/old/solver/puzzles/word_chain.py
from solver.norvig.search import *
from solver.dictionaries import bigram
class WordChain(object):
def __init__(self, words):
entries = [[w, {'word': w, 'link': None, 'prev': None, 'next': None}] for w in words]
self.chain = dict(entries)
self.unlinked_before = set(words)
self.unlinked_after = set(words)
def link(self, a, link_word, b):
# TODO: Confirm at least that b exists in the chain
self.chain[a]['link'] = link_word
self.chain[a]['next'] = self.chain[b]
self.chain[b]['prev'] = self.chain[a]
self.unlinked_before.remove(b)
self.unlinked_after.remove(a)
class WordChainProblem(Problem):
def __init__(self, initial, goal, dictionary):
super(initial, goal)
self.bigrams = dictionary
def successor(self, state):
return None
<file_sep>/README.markdown
Useful programs to solve or create various kinds of puzzles.
<file_sep>/test/test_util.py
from lloyd.util import *
class TestNeighborhood:
def setup_method(self, method):
self.wordlist = ["tone", "bone", "funk"]
def test_no_neighbors(self):
assert list(neighborhood(self.wordlist, "alone")) == []
assert list(neighborhood(self.wordlist, "funk")) == []
def test_has_neighbors(self):
assert list(neighborhood(self.wordlist, "tone")) == ["bone"]
<file_sep>/old/test/solver/puzzles/test_word_chain.py
from solver.puzzles.word_chain import *
class TestWordChain:
def setup_method(self, method):
self.words = ["racer", "wing", "child"]
self.chain = WordChain(self.words)
def test_unlinked_at_start(self):
assert self.chain.unlinked_before == set(self.words)
assert self.chain.unlinked_after == set(self.words)
def test_link(self):
self.chain.link("racer", "x", "wing")
def test_unlinked_after_link(self):
self.chain.link("racer", "x", "wing")
assert "wing" not in self.chain.unlinked_before
assert "racer" not in self.chain.unlinked_after
<file_sep>/setup.py
import os
from setuptools import setup
setup(
name='lloyd',
version='0.0.1',
author='<NAME>',
author_email='<EMAIL>',
packages=['lloyd'],
scripts=[],
#url='http://pypi.python.org/pypi/solve/',
license='LICENSE.txt',
description='Useful code to solve puzzles',
long_description=open('README.markdown').read(),
)
<file_sep>/old/solver/norvig/probability.py
"""Probability models. (Chapter 13-15)
"""
from utils import *
from logic import extend
import agents
from random import random, seed
#______________________________________________________________________________
class DTAgent(agents.Agent):
"A decision-theoretic agent. [Fig. 13.1]"
def __init__(self, belief_state):
agents.Agent.__init__(self)
def program(percept):
belief_state.observe(action, percept)
program.action = argmax(belief_state.actions(),
belief_state.expected_outcome_utility)
return program.action
program.action = None
self.program = program
#______________________________________________________________________________
class ProbDist:
"""A discrete probability distribution. You name the random variable
in the constructor, then assign and query probability of values.
>>> P = ProbDist('Flip'); P['H'], P['T'] = 0.25, 0.75; P['H']
0.25
>>> P = ProbDist('X', {'lo': 125, 'med': 375, 'hi': 500})
>>> [P['lo'], P['med'], P['hi']]
[0.125, 0.375, 0.5]
>>> P = ProbDist('X', {'lo': 0.125, 'med': 0.250, 'hi': 0.625})
>>> [P['lo'], P['med'], P['hi']]
[0.125, 0.25, 0.625]
"""
def __init__(self, varname='?', freqs=None):
"""If freqs is given, it is a dictionary of value: frequency pairs,
and the ProbDist then is normalized."""
update(self, prob={}, varname=varname, values=[])
if freqs:
for (v, p) in freqs.items():
self[v] = p
self.normalize()
def __getitem__(self, val):
"Given a value, return P(value)."
return self.prob[val]
def __setitem__(self, val, p):
"Set P(val) = p"
if val not in self.values:
self.values.append(val)
self.prob[val] = p
def normalize(self):
"""Make sure the probabilities of all values sum to 1.
Returns the normalized distribution.
Raises a ZeroDivisionError if the sum of the values is 0.
>>> P = ProbDist('Flip'); P['H'], P['T'] = 35, 65
>>> P = P.normalize()
>>> print '%5.3f %5.3f' % (P.prob['H'], P.prob['T'])
0.350 0.650
"""
total = float(sum(self.prob.values()))
if not (1.0-epsilon < total < 1.0+epsilon):
for val in self.prob:
self.prob[val] /= total
return self
def show_approx(self, ndigits=3):
"""Show the probabilities rounded and sorted by key, for the
sake of portable doctests."""
return ', '.join(['%s: %.*g' % (v, ndigits, p)
for (v, p) in sorted(self.prob.items())])
epsilon = 0.001
class JointProbDist(ProbDist):
"""A discrete probability distribute over a set of variables.
>>> P = JointProbDist(['X', 'Y']); P[1, 1] = 0.25
>>> P[1, 1]
0.25
"""
def __init__(self, variables):
update(self, prob={}, variables=variables, vals=DefaultDict([]))
def __getitem__(self, values):
"Given a tuple or dict of values, return P(values)."
if isinstance(values, dict):
values = tuple([values[var] for var in self.variables])
return self.prob[values]
def __setitem__(self, values, p):
"""Set P(values) = p. Values can be a tuple or a dict; it must
have a value for each of the variables in the joint. Also keep track
of the values we have seen so far for each variable."""
if isinstance(values, dict):
values = [values[var] for var in self.variables]
self.prob[values] = p
for var, val in zip(self.variables, values):
if val not in self.vals[var]:
self.vals[var].append(val)
def values(self, var):
"Return the set of possible values for a variable."
return self.vals[var]
def __repr__(self):
return "P(%s)" % self.variables
#______________________________________________________________________________
class BoolCpt:
"""Conditional probability table for a boolean (True/False)
random variable conditioned on its parents."""
def __init__(self, table_data):
"""Initialize the table.
table_data may have one of three forms, depending on the
number of parents:
1. If the variable has no parents, table_data MAY be
a single number (float), representing P(X = True).
2. If the variable has one parent, table_data MAY be
a dictionary containing items of the form v: p,
where p is P(X = True | parent = v).
3. If the variable has n parents, n > 1, table_data MUST be
a dictionary containing items (v1, ..., vn): p,
where p is P(P = True | parent1 = v1, ..., parentn = vn).
(Form 3 is also allowed in the case of zero or one parent.)
>>> cpt = BoolCpt(0.2)
>>> T = True; F = False
>>> cpt = BoolCpt({T: 0.2, F: 0.7})
>>> cpt = BoolCpt({(T, T): 0.2, (T, F): 0.3, (F, T): 0.5, (F, F): 0.7})
"""
# A little work here makes looking up values MUCH simpler
# later on. We transform table_data into the standard form
# of a dictionary {(value, ...): number, ...} even if
# the tuple has just 0 or 1 value.
if type(table_data) == float: # no parents, 0-tuple
self.table_data = {(): table_data}
elif type(table_data) == dict:
keys = table_data.keys()
if type(keys[0]) == bool: # one parent, 1-tuple
d = {}
for k in keys:
d[(k,)] = table_data[k]
self.table_data = d
elif type(keys[0]) == tuple: # normal case, n-tuple
self.table_data = table_data
else:
raise Exception("wrong key type: %s" % table_data)
else:
raise Exception("wrong table_data type: %s" % table_data)
def p(self, value, parent_vars, event):
"""Return the conditional probability P(value | parent_vars =
parent_values), where parent_values are the values of
parent_vars in event.
value is True or False.
parent_vars is a list or tuple of variable names (strings).
event is a dictionary of variable-name: value pairs.
Preconditions:
1. each variable in parent_vars is bound to a value in event.
2. the variables are listed in parent_vars in the same order
in which they are listed in the Cpt.
>>> cpt = burglary.variable_node('Alarm').cpt
>>> parents = ['Burglary', 'Earthquake']
>>> event = {'Burglary': True, 'Earthquake': True}
>>> print '%4.2f' % cpt.p(True, parents, event)
0.95
>>> event = {'Burglary': False, 'Earthquake': True}
>>> print '%4.2f' % cpt.p(False, parents, event)
0.71
>>> BoolCpt({T: 0.2, F: 0.625}).p(False, ['Burglary'], event)
0.375
>>> BoolCpt(0.75).p(False, [], {})
0.25
"""
return self.p_values(value, event_values(event, parent_vars))
def p_values(self, xvalue, parent_values):
"""Return P(X = xvalue | parents = parent_values),
where parent_values is a tuple, even if of only 0 or 1 element.
>>> cpt = BoolCpt(0.25)
>>> cpt.p_values(F, ())
0.75
>>> cpt = BoolCpt({T: 0.25, F: 0.625})
>>> cpt.p_values(T, (T,))
0.25
>>> cpt.p_values(F, (F,))
0.375
>>> cpt = BoolCpt({(T, T): 0.2, (T, F): 0.31,
... (F, T): 0.5, (F, F): 0.62})
>>> cpt.p_values(T, (T, F))
0.31
>>> cpt.p_values(F, (F, F))
0.38
"""
ptrue = self.table_data[parent_values] # True or False
if xvalue:
return ptrue
else:
return 1.0 - ptrue
def rand(self, parents, event):
"""Generate and return a random sample value True or False
given that the parent variables have the values they have in
event.
parents is a list of variable names (strings).
event is a dictionary of variable-name: value pairs.
>>> cpt = BoolCpt({True: 0.2, False: 0.7})
>>> cpt.rand(['A'], {'A': True}) in [True, False]
True
>>> cpt = BoolCpt({(True, True): 0.1, (True, False): 0.3,
... (False, True): 0.5, (False, False): 0.7})
>>> cpt.rand(['A', 'B'], {'A': True, 'B': False}) in [True, False]
True
"""
return (random() <= self.p(True, parents, event))
def event_values (event, vars):
"""Return a tuple of the values of variables vars in event.
>>> event_values ({'A': 10, 'B': 9, 'C': 8}, ['C', 'A'])
(8, 10)
"""
return tuple([event[parent] for parent in vars])
#______________________________________________________________________________
def enumerate_joint_ask(X, e, P):
"""Return a probability distribution over the values of the variable X,
given the {var:val} observations e, in the JointProbDist P.
Works for Boolean variables only. [Fig. 13.4].
X is a string (variable name).
e is a dictionary of variable-name value pairs.
P is an instance of JointProbDist."""
Q = ProbDist(X) # probability distribution for X, initially empty
Y = [v for v in P.variables if v != X and v not in e] # hidden vars.
for xi in P.values(X):
ext = extend(e, X, xi) # copies e and adds X: xi
Q[xi] = enumerate_joint(Y, ext, P)
return Q.normalize()
def enumerate_joint(vars, values, P):
"As in Fig 13.4, except x and e are already incorporated in values."
if not vars:
return P[values]
Y = vars[0]; rest = vars[1:]
return sum([enumerate_joint(rest, extend(values, Y, y), P)
for y in P.values(Y)])
#______________________________________________________________________________
class BayesNet:
"""Bayesian network containing only boolean variable nodes."""
def __init__(self, nodes=[]):
update(self, nodes=[], vars=[], evidence={})
for node in nodes:
self.add(node)
def add(self, node):
self.nodes.append(node)
self.vars.append(node.variable)
def observe(self, var, val):
self.evidence[var] = val
def variable_node(self, var):
"""Returns the node for the variable named var.
>>> burglary.variable_node('Burglary').variable
'Burglary'
"""
for n in self.nodes:
if n.variable == var:
return n
raise Exception("No such variable: %s" % var)
def variables(self):
"""Returns the list of names of the variables.
>>> burglary.variables()
['Burglary', 'Earthquake', 'Alarm', 'JohnCalls', 'MaryCalls']
"""
return [n.variable for n in self.nodes]
def variable_values(self, var):
return [True, False]
class BayesNode:
def __init__(self, variable, parents, cpt):
if isinstance(parents, str): parents = parents.split()
update(self, variable=variable, parents=parents, cpt=cpt)
node = BayesNode
# Burglary example [Fig. 14.2]
T, F = True, False
burglary = BayesNet([
# It seems important in enumerate_all that variables (nodes)
# be ordered with parents before their children.
node('Burglary', '', BoolCpt(0.001)),
node('Earthquake', '', BoolCpt(0.002)),
node('Alarm', 'Burglary Earthquake',
BoolCpt({(T, T): 0.95, (T, F): 0.94, (F, T): 0.29, (F, F): 0.001})),
node('JohnCalls', 'Alarm', BoolCpt({T: 0.90, F: 0.05})),
node('MaryCalls', 'Alarm', BoolCpt({T: 0.70, F: 0.01}))
])
#______________________________________________________________________________
def enumeration_ask (X, e, bn):
"""Returns a distribution of X given e from bayes net bn. [Fig. 14.9]
X is a string (variable name).
e is a dictionary of variablename: value pairs.
bn is an instance of BayesNet.
>>> p = enumeration_ask('Earthquake', {}, burglary)
>>> [p[True], p[False]]
[0.002, 0.998]
>>> p = enumeration_ask('Burglary',
... {'JohnCalls': True, 'MaryCalls': True}, burglary)
>>> p.show_approx()
'False: 0.716, True: 0.284'
"""
Q = ProbDist(X) # empty probability distribution for X
for xi in bn.variable_values(X):
Q[xi] = enumerate_all(bn.variables(), extend(e, X, xi), bn)
# Assume that parents precede children in bn.variables.
# Otherwise, in enumerate_all, the values of Y's parents
# may be unspecified.
return Q.normalize()
def enumerate_all (vars, e, bn):
"""Returns the probability that X = xi given e.
vars is a list of variables, the parents of X in bn.
e is a dictionary of variable-name: value pairs
bn is an instance of BayesNet.
Precondition: no variable in vars precedes its parents."""
if vars == []:
return 1.0
else:
Y = vars[0]
rest = vars[1:]
Ynode = bn.variable_node(Y)
parents = Ynode.parents
cpt = Ynode.cpt
if e.has_key(Y):
y = e[Y]
cp = cpt.p(y, parents, e) # P(y | parents(Y))
result = cp * enumerate_all(rest, e, bn)
else:
result = 0
for y in bn.variable_values(Y):
cp = cpt.p(y, parents, e) # P(y | parents(Y))
result += cp * enumerate_all(rest, extend(e, Y, y), bn)
return result
#______________________________________________________________________________
# elimination_ask: implementation is incomplete
def elimination_ask(X, e, bn):
"[Fig. 14.10]"
factors = []
for var in reverse(bn.vars):
factors.append(Factor(var, e))
if is_hidden(var, X, e):
factors = sum_out(var, factors)
return pointwise_product(factors).normalize()
def pointwise_product(factors):
pass
def sum_out(var, factors):
pass
#______________________________________________________________________________
# Fig. 14.11a: sprinkler network
sprinkler = BayesNet([
node('Cloudy', '', BoolCpt(0.5)),
node('Sprinkler', 'Cloudy', BoolCpt({T: 0.10, F: 0.50})),
node('Rain', 'Cloudy', BoolCpt({T: 0.80, F: 0.20})),
node('WetGrass', 'Sprinkler Rain',
BoolCpt({(T, T): 0.99, (T, F): 0.90, (F, T): 0.90, (F, F): 0.00}))])
#______________________________________________________________________________
def prior_sample(bn):
"""[Fig. 14.12]
Argument: bn is an instance of BayesNet.
Returns: one sample, a dictionary of variable-name: value pairs.
>>> s = prior_sample(burglary)
>>> s['Burglary'] in [True, False]
True
>>> s['Alarm'] in [True, False]
True
>>> s['JohnCalls'] in [True, False]
True
>>> len(s)
5
"""
sample = {} # boldface x in Fig. 14.12
for node in bn.nodes:
var = node.variable
sample[var] = node.cpt.rand(node.parents, sample)
return sample
#_______________________________________________________________________________
def rejection_sampling (X, e, bn, N):
"""Estimates probability distribution of X given evidence e
in BayesNet bn, using N samples. [Fig. 14.13]
Arguments:
X is a variable name (string).
e is a dictionary of variable-name: value pairs.
bn is an instance of BayesNet.
N is an integer > 0.
Returns: an instance of ProbDist representing P(X | e).
Raises a ZeroDivisionError if all the N samples are rejected,
i.e., inconsistent with e.
>>> seed(21); p = rejection_sampling('Earthquake', {}, burglary, 1000)
>>> [p[True], p[False]]
[0.001, 0.999]
>>> seed(47)
>>> p = rejection_sampling('Burglary',
... {'JohnCalls': True, 'MaryCalls': True}, burglary, 10000)
>>> p.show_approx()
'False: 0.7, True: 0.3'
"""
counts = {True: 0, False: 0} # boldface N in Fig. 14.13
for j in xrange(N):
sample = prior_sample(bn) # boldface x in Fig. 14.13
if consistent_with(sample, e):
counts[sample[X]] += 1
return ProbDist(X, counts)
def consistent_with (sample, evidence):
"""Returns True if sample is consistent with evidence, False otherwise.
sample is a dictionary of variable-name: value pairs.
evidence is a dictionary of variable-name: value pairs.
The variable names in evidence are a subset of the variable names
in sample.
>>> s = {'A': True, 'B': False, 'C': True, 'D': False}
>>> consistent_with(s, {})
True
>>> consistent_with(s, s)
True
>>> consistent_with(s, {'A': False})
False
>>> consistent_with(s, {'D': True})
False
"""
for (k, v) in evidence.items():
if sample[k] != v:
return False
return True
#_______________________________________________________________________________
def likelihood_weighting (X, e, bn, N):
"""Returns an estimate of P(X | e). [Fig. 14.14]
Arguments:
X is a variable name (string).
e is a dictionary of variable-name: value pairs (the evidence).
bn is an instance of BayesNet.
N is an integer, the number of samples to be generated.
Returns an instance of ProbDist.
>>> seed(71); p = likelihood_weighting('Earthquake', {}, burglary, 1000)
>>> [p[True], p[False]]
[0.002, 0.998]
>>> seed(1017)
>>> p = likelihood_weighting('Burglary',
... {'JohnCalls': True, 'MaryCalls': True}, burglary, 10000)
>>> p.show_approx()
'False: 0.702, True: 0.298'
"""
weights = {True: 0.0, False: 0.0} # boldface W in Fig. 14.14
for j in xrange(N):
sample, weight = weighted_sample(bn, e) # boldface x, w in Fig. 14.14
sample_X = sample[X] # value of X in sample
weights[sample_X] += weight
return ProbDist(X, weights)
def weighted_sample (bn, e):
"""Returns an event (a sample) and a weight."""
event = {} # boldface x in Fig. 14.14
weight = 1.0 # w in Fig. 14.14
for node in bn.nodes:
X = node.variable # X sub i in Fig. 14.14
parents = node.parents
cpt = node.cpt
if e.has_key(X):
value = e[X]
event[X] = value
weight *= cpt.p(value, parents, event)
else:
event[X] = cpt.rand(parents, event)
return event, weight
#_______________________________________________________________________________
# MISSING
# Fig. 14.15: mcmc_ask
__doc__ += """
## We can build up a probability distribution like this (p. 469):
>>> P = ProbDist()
>>> P['sunny'] = 0.7
>>> P['rain'] = 0.2
>>> P['cloudy'] = 0.08
>>> P['snow'] = 0.02
## and query it like this: (Never mind this ELLIPSIS option
## added to make the doctest portable.)
>>> P['rain'] #doctest:+ELLIPSIS
0.2...
## A Joint Probability Distribution is dealt with like this (p. 475):
>>> P = JointProbDist(['Toothache', 'Cavity', 'Catch'])
>>> T, F = True, False
>>> P[T, T, T] = 0.108; P[T, T, F] = 0.012; P[F, T, T] = 0.072; P[F, T, F] = 0.008
>>> P[T, F, T] = 0.016; P[T, F, F] = 0.064; P[F, F, T] = 0.144; P[F, F, F] = 0.576
>>> P[T, T, T]
0.108
## Ask for P(Cavity|Toothache=T)
>>> PC = enumerate_joint_ask('Cavity', {'Toothache': T}, P)
>>> PC.show_approx()
'False: 0.4, True: 0.6'
>>> 0.6-epsilon < PC[T] < 0.6+epsilon
True
>>> 0.4-epsilon < PC[F] < 0.4+epsilon
True
"""
| d06a5f2dc3c7e9c00719aacc4431052a448be624 | [
"Markdown",
"Python",
"Shell"
] | 11 | Python | orion/Lloyd | 52b25cefa45014bf7314726dbcff3806225ab4eb | af2d1c0ff4838856063c774a07e1905381c7f896 |
refs/heads/master | <file_sep>require 'bundler/gem_tasks'
desc 'Run all tests'
task :test do
$LOAD_PATH.unshift 'test'
Dir.glob('./test/**/*_test.rb') { |f| require f }
end
task default: :test
| fb5a79467bf43b228f5692ef42c00067f495a357 | [
"Ruby"
] | 1 | Ruby | JamesForks/desktop | ad8c015000f6323cf852001eed48758415424acd | d2f23d7a3939479dac1e351e536dd22a2de5be23 |
refs/heads/main | <file_sep># A* Algorithm
A* algorithm implementation with C.
This is a simple A* implementation in C, this project is part of my master's degree.
There are two files. readfile.c just reads the map data from a .csv file and stores it. And astar.c which reads the stored file and and runs the A* algorithm.
TODO:
- I need to find the .csv file containing the data for spain.
- Implement some sort of user interface so the user can select two different points and calculate the optimal route. Right now the starting node and the final node have to be written in the code.
<file_sep>#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#define M_PI 3.14159265358979323846
typedef struct{
unsigned long id;
char *nombre;
double longitud, latitud;
unsigned short n_sucesores;
unsigned long *sucesores;
short estado;
}nodo;
typedef struct lista{
nodo *nodo_i;
double coste, coste_h;
nodo *padre;
struct lista *siguiente;
}lista;
nodo *b_search(unsigned long id, nodo *nodos, int n_nodos, nodo *nodo_errores){
nodo *puntero;
int i_max = n_nodos-1, i_min = 0, contador = 0, c_max = 1000;
int i = i_min + (i_max - i_min) / 2;
if((id>nodos[i_max].id)||(id<nodos[i_min].id)) {
puntero = nodo_errores;
return puntero;}
unsigned long x = nodos[i].id;
while((x != id)&&(contador<c_max)){
if(x>id) i_max = i;
else if(x<id) i_min = i;
else break;
i = i_min + (i_max - i_min) / 2;
x = nodos[i].id;
contador++;
}
puntero = &nodos[i];
if(x!=id) puntero = nodo_errores;
return puntero;
}
//This function computes the distance between a certain node and the final one.
double h(nodo *nodo2, nodo *final){
double distancia, a, b, lat_dif, long_dif, R, lat1, lat2, long1, long2;
R = 6371;
lat1 = final->latitud*M_PI/180; lat2 = nodo2->latitud*M_PI/180;
long1 = final->longitud*M_PI/180; long2 = nodo2->longitud*M_PI/180;
lat_dif = fabs(lat1 - lat2);
long_dif = fabs(long1 - long2);
a = pow(sin(lat_dif/2), 2) + cos(lat1) * cos(lat2) * pow(sin(long_dif/2), 2);
b = 2 * atan2(sqrt(a), sqrt(1 - a));
distancia = R * b;
return distancia;
}
//This function returns a pointer to a node in a list.
lista *busqueda_lista(lista *listado, nodo *ptr_nodo){
lista *variable;
variable = listado;
while(variable!=NULL){
if(variable->nodo_i == ptr_nodo) break;
variable = variable->siguiente;
}
return variable;
}
//Function adds a node to a list properly ordering it.
lista *poner_lista(lista **listado, nodo *ptr_nodo, double val){
lista *variable, *anterior, *nuevo, *original;
int count=0;
variable = *listado;
original = variable;
anterior = NULL;
//printf("//////////////////////////////////////////////////////////\n");
//printf("Valor a introducir: %f\n", val);
while(variable != NULL){
if(variable->coste_h > val){
//printf("check 2\n");
nuevo = (lista*)malloc(sizeof(lista));
anterior->siguiente = nuevo;
nuevo->nodo_i = ptr_nodo;
nuevo->siguiente = variable;
nuevo->coste_h = val;
if(count==0) *listado = anterior->siguiente;
if(count>3) printf("%f\t%f\t%f\n", original->coste_h, original->siguiente->coste_h, original->siguiente->siguiente->coste_h);
break;
}
else{
anterior = variable;
variable = variable->siguiente;
count++;
}
}
return nuevo;
}
int quitar_lista(lista **listado, nodo *ptr_nodo){
lista *variable, *anterior;
variable = *listado;
anterior = NULL;
int count=0;
while(variable != NULL){
if(variable->nodo_i->id == ptr_nodo->id){
if(count==0) {*listado = variable->siguiente;}
else {anterior->siguiente = variable->siguiente;}
free(variable);
return 1;
}
else{
anterior = variable;
variable = variable->siguiente;
count++;
}
}
return 1;
}
int main(){
int n_nodos, i;
unsigned long *sucesores, tot_sucesores, id_inicio, id_final;
nodo *nodos, *inicio, *final, *actual, *nodo_errores;
FILE *filepointer;
filepointer = fopen("info_nodos.bin", "r");
fread(&n_nodos, sizeof(int), 1, filepointer);
fread(&tot_sucesores, sizeof(unsigned long), 1, filepointer);
printf("%d\t%ld\n", n_nodos, tot_sucesores);
nodos = malloc(sizeof(nodo)*n_nodos);
if(nodos == NULL) printf("Error al asignar memória");
sucesores = (unsigned long*)malloc(sizeof(unsigned long)*tot_sucesores);
if(sucesores == NULL) printf("Error al asignar la memória");
if(fread(nodos, sizeof(nodo), n_nodos, filepointer)!=n_nodos) printf("Error");
fread(sucesores, sizeof(unsigned long), tot_sucesores, filepointer);
fclose(filepointer);
for(i=0; i<n_nodos; i++) if(nodos[i].n_sucesores){
nodos[i].sucesores = sucesores;
sucesores += nodos[i].n_sucesores;
}
//nodos de inicio y final
id_inicio = 771979683; //(Girona)
id_final = 429854583; //(Lleida)
inicio = b_search(id_inicio, nodos, n_nodos, nodo_errores);
final = b_search(id_final, nodos, n_nodos, nodo_errores);
printf("%f\t%f\n", final->latitud, final->longitud);
printf("%f\t%f\n", inicio->latitud, inicio->longitud);
double distancia;
distancia = h(inicio, final);
printf("%fkm\n", distancia);
/*-----------------------------------------ASTAR----------------------------------------*/
unsigned long id_sucesor;
double coste_sucesor, coste_sucesor_h;
nodo *sucesor;
lista *lista_open, *ptr_lista_open, *lista_closed, *ptr_lista_closed;
lista_open = (lista*)malloc(sizeof(lista));
lista_open->siguiente = (lista*)malloc(sizeof(lista));
lista_open->siguiente->coste_h = 9999999;
if(lista_open == NULL) printf("Error creando lista open\n");
lista_closed = (lista*)malloc(sizeof(lista));
lista_closed->siguiente = (lista*)malloc(sizeof(lista));
if(lista_closed == NULL) printf("Error creando lista closed\n");
lista_closed->coste_h = 0;
lista_closed->siguiente->coste_h = 9999999;
lista_open->nodo_i = inicio;
lista_open->coste_h = h(inicio, final);
while(lista_open != NULL){
if(lista_open->nodo_i == final) break;
printf("Es: %ld\n", lista_open->nodo_i->id);
for(i=0; i<lista_open->nodo_i->n_sucesores; i++){
id_sucesor = lista_open->nodo_i->sucesores[i];
sucesor = b_search(id_sucesor, nodos, n_nodos, nodo_errores);
coste_sucesor = lista_open->coste + h(lista_open->nodo_i, sucesor);
coste_sucesor_h = coste_sucesor + h(sucesor, final);
if(sucesor->estado == 1){
ptr_lista_open = busqueda_lista(lista_open, sucesor);
if(ptr_lista_open->coste <= coste_sucesor) goto label;
quitar_lista(&lista_open, sucesor);
ptr_lista_open = poner_lista(&lista_open, sucesor, coste_sucesor_h);
}
else if(sucesor->estado == 2){
ptr_lista_closed = busqueda_lista(lista_closed, sucesor);
if(ptr_lista_closed->coste <= coste_sucesor) goto label;
quitar_lista(&lista_closed, sucesor);
ptr_lista_open = poner_lista(&lista_open, sucesor, coste_sucesor_h);
ptr_lista_open->nodo_i->estado = 1;
}
else {
//printf("Entrando en el else: %f\n", coste_sucesor_h);
ptr_lista_open = poner_lista(&lista_open, sucesor, coste_sucesor_h);
ptr_lista_open->nodo_i->estado = 1;
}
ptr_lista_open->coste = coste_sucesor;
ptr_lista_open->padre = lista_open->nodo_i;
label:;
}
poner_lista(&lista_closed, lista_open->nodo_i, lista_open->coste_h);
lista_open->nodo_i->estado = 2;
quitar_lista(&lista_open, lista_open->nodo_i);
}
if(lista_closed->nodo_i != final) printf("Error, no funcionaaaaaAAAAHHH\n");
/*-----------------------------------------ASTAR----------------------------------------*/
//Prints para hacer check.
printf("%ld\n%f\t%f\n%d\n", nodos[0].id, nodos[0].longitud, nodos[0].latitud, nodos[0].n_sucesores);
printf("Los sucesores del nodo 233242 (id=%ld) son:\n", nodos[233241].id);
for (i=0; i<nodos[233241].n_sucesores; i++){
printf("%ld\t", nodos[233241].sucesores[i]);
}
printf("\n");
printf("Direccion de memoria del primer nodo %p\nDireccion de memoria del nodo 1000: %p\n", &nodos[0], &nodos[999]);
printf("La id del primer nodo es: %ld\t La id del nodo 1000 es: %ld\n", nodos[0].id, nodos[n_nodos-1].id);
printf("La latitud y longitud del primer nodo son: %f y %f\nDel nodo 1000 son: %f y %f\n", nodos[0].latitud, nodos[0].longitud, nodos[999].latitud, nodos[999].longitud);
//printf("El nombre del nodo 2.958.799 es: %s\n", nodos[2958798].nombre);
free(nodos);
//free(sucesores);
return 0;
}<file_sep>#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
typedef struct{
unsigned long id;
char *nombre;
double longitud, latitud;
unsigned short n_sucesores;
unsigned long *sucesores;
short estado;
}nodo;
//Función que cuenta el número de nodos.
int numnodos(FILE *filepointer){
int n=0;
size_t max = 100000;
char *buffer = NULL;
while(getline(&buffer, &max, filepointer)!=-1){
if(strncmp(buffer, "n", 1) == 0){
n++;
}
else break;
}
return n;
}
//Búsqueda por el método de la bisección. Devuelve un puntero de nodo con el que tiene una id a la de entrada.
nodo *b_search(unsigned long id, nodo *nodos, int n_nodos, nodo *nodo_errores){
nodo *puntero;
int i_max = n_nodos-1, i_min = 0, contador = 0, c_max = 1000;
int i = i_min + (i_max - i_min) / 2;
if((id>nodos[i_max].id)||(id<nodos[i_min].id)) {
puntero = nodo_errores;
return puntero;}
unsigned long x = nodos[i].id;
while((x != id)&&(contador<c_max)){
if(x>id) i_max = i;
else if(x<id) i_min = i;
else break;
i = i_min + (i_max - i_min) / 2;
x = nodos[i].id;
contador++;
}
puntero = &nodos[i];
if(x!=id) puntero = nodo_errores;
return puntero;
}
//Recuento de los sucesores de cada nodo.
void nn_sucesores(FILE *filepointer, nodo *nodos, int n_nodos, nodo *nodo_errores){
char *buffer = NULL, *buffer_part = NULL, *puntero;
int line;
int oneway=1, line_counter = 0;;
size_t max=0, a;
unsigned long id;
nodo *busqueda, *busqueda2;
for (line = 0; line<=n_nodos; line++){
getline(&buffer, &max, filepointer);
}
int flag = 1, error;
while(strncmp(buffer, "w", 1) == 0){
buffer_part = strsep(&buffer, "|");
while(buffer_part != NULL){
if((buffer_part[0]!=0)&&(flag>10)){
id = strtoul(buffer_part, &puntero, 10);
busqueda2 = b_search(id, nodos, n_nodos, nodo_errores);
if(busqueda2 == nodo_errores) {}
else {
busqueda->n_sucesores++;
busqueda = busqueda2;
if(error!=1) busqueda -> n_sucesores = busqueda->n_sucesores + oneway;
error = 0;
}
}
else if(flag==10){
id = strtoul(buffer_part, &puntero, 10);
busqueda = b_search(id, nodos, n_nodos, nodo_errores);
if(busqueda == nodo_errores) error = 1;
}
else if((flag==8)&&(buffer_part[0]!=0)) {oneway = 0;}
buffer_part = strsep(&buffer, "|");
flag++;
}
getline(&buffer, &max, filepointer);
line_counter++;
flag = 1;
oneway = 1;
}
free(buffer);
free(buffer_part);
printf("%d lineas en total\n", line_counter);
}
void v_sucesores(FILE *filepointer, nodo *nodos, int n_nodos, nodo *nodo_errores){
char *buffer = NULL, *buffer_part = NULL, *puntero;
int line;
int oneway=1;
size_t max=0, a;
unsigned long id, *v, id2;
nodo *busqueda, *busqueda2;
for (line = 0; line<=n_nodos; line++){
getline(&buffer, &max, filepointer);
}
int flag = 1, error=0;
while(strncmp(buffer, "w", 1) == 0){
buffer_part = strsep(&buffer, "|");
while(buffer_part != NULL){
if(flag == 10) {
id = strtoul(buffer_part, &puntero, 10);
busqueda = b_search(id, nodos, n_nodos, nodo_errores);
if(busqueda==nodo_errores) error = 1;
v = busqueda->sucesores;
}
else if((flag==8)&&(buffer_part[0]!=0)) {oneway = 0;}
else if((buffer_part!=0)&&(flag>10)){
id2 = id;
id = strtoul(buffer_part, &puntero, 10);
busqueda2 = b_search(id, nodos, n_nodos, nodo_errores);
if(busqueda2==nodo_errores) {}
else{
if(error!=1) {v[busqueda->n_sucesores] = id; busqueda->n_sucesores++;}
busqueda = busqueda2;
v = busqueda->sucesores;
if(oneway==1&&error!=1) {v[busqueda->n_sucesores] = id2; busqueda->n_sucesores++;}
error = 0;
}
}
buffer_part = strsep(&buffer, "|");
flag++;
}
getline(&buffer, &max, filepointer);
flag = 1;
oneway = 1;
}
free(buffer);
free(buffer_part);
}
//Primera lectura del fichero.
void lectura_nodos(FILE *filepointer, nodo *nodos, int n_nodos){
rewind(filepointer);
char *buffer, *buffer_part;
unsigned short flag; int i; char *puntero; size_t max=10000;
for(i=0; i<n_nodos; i++){
getline(&buffer, &max, filepointer);
for (flag=1; flag < 12; flag++){
buffer_part = strsep(&buffer, "|");
if(*buffer_part == 0) ;
else if (flag == 2) nodos[i].id = strtoul(buffer_part, &puntero, 10);
else if(flag == 10) nodos[i].latitud = atof(buffer_part);
else if(flag == 11) nodos[i].longitud = atof(buffer_part);
else if(flag == 3) nodos[i].nombre = buffer_part;
}
}
}
int main(){
FILE*filepointer, *ptr;
filepointer = fopen("cataluna.csv" , "r");
if (filepointer == NULL) printf("Error al abrir el achivo.\n");
int n_nodos;
clock_t start, end;
double cpu_time_used;
start = clock();
//Calcula el número de nodos.
n_nodos = numnodos(filepointer);
printf("Numero de nodos: %d\n", n_nodos);
//Asignación de la memória para los nodos.
nodo *nodos;
nodos = malloc(sizeof(nodo) * n_nodos);
if(nodos == NULL) printf("Error al asignar la memoria para los nodos");
nodo *nodo_errores;
nodo_errores = malloc(sizeof(nodo));
if(nodo_errores == NULL) printf("Error al asignar la memoria para los nodos");
//Lectura del fichero.
lectura_nodos(filepointer, nodos, n_nodos);
int i;
rewind(filepointer);
//check del numero de sucesores.
nn_sucesores(filepointer, nodos, n_nodos, nodo_errores);
printf("Número de sucesores del nodo 233242, con (id=%ld): %hu\n", nodos[233241].id, nodos[233241].n_sucesores);
printf("Numero de nodos que no aparecen en la lista: %hu\n", nodo_errores->n_sucesores);
//Asignación de memória para los vectores con los nodos.
unsigned long tot_sucesores = 0;
for(i=0; i<n_nodos; i++){
nodos[i].sucesores = malloc(sizeof(unsigned long) * nodos[i].n_sucesores);
tot_sucesores = tot_sucesores + nodos[i].n_sucesores;
if(nodos[i].sucesores == NULL) printf("Error al asignar la memória para los sucesores");
//Se resetea el valor de n_sucesores a 0.
nodos[i].n_sucesores = 0; nodos[i].estado = 0;
}
printf("En total hay %ld sucesores\n", tot_sucesores);
nodo_errores->sucesores = malloc(sizeof(unsigned long));
if(nodo_errores->sucesores == NULL) printf("Error!");
rewind(filepointer);
//Función que va a rellenar los vectores de sucesores con las ids.
v_sucesores(filepointer, nodos, n_nodos, nodo_errores);
printf("Los sucesores del nodo 233242 son:\n");
for (i=0; i<nodos[233241].n_sucesores; i++){
printf("%ld\t", nodos[233241].sucesores[i]);
}
printf("\n");
//Creación del archivo .bin
ptr = fopen("info_nodos.bin", "wb");
if(fwrite(&n_nodos, sizeof(int), 1, ptr) + fwrite(&tot_sucesores, sizeof(unsigned long), 1, ptr) != 2)
printf("Error initializing binary file");
if(fwrite(nodos, sizeof(nodo), n_nodos, ptr) != n_nodos)
printf("Error initializing nodes");
for(i=0; i<n_nodos; i++) {
if(fwrite(nodos[i].sucesores, sizeof(unsigned long), nodos[i].n_sucesores, ptr) != nodos[i].n_sucesores)
printf("Error initializing succesors");
}
fclose(ptr);
//Prints para hacer check.
printf("Direccion de memoria del primer nodo %p\nDireccion de memoria del nodo 1000: %p\n", &nodos[0], &nodos[999]);
printf("La id del primer nodo es: %ld\t La id del nodo 1000 es: %ld\n", nodos[0].id, nodos[n_nodos-1].id);
printf("La latitud y longitud del primer nodo son: %f y %f\nDel nodo 1000 son: %f y %f\n", nodos[0].latitud, nodos[0].longitud, nodos[999].latitud, nodos[999].longitud);
rewind(filepointer);
fclose(filepointer);
free(nodos);
end = clock();
cpu_time_used = ((double) (end - start)) / CLOCKS_PER_SEC;
printf("Reading the file took %f seconds.\n", cpu_time_used);
return 0;
} | 8fd5f9da401b3a6847f85f8e62f03ecb18bf59e2 | [
"Markdown",
"C"
] | 3 | Markdown | davidaranega96/A-Algorithm- | cff507c19754d945bbe1b26266e153bf21892fee | 32769d2f9b0316e73c6930217adc64891216a20c |
refs/heads/master | <file_sep>/**
* 表格类
* 依赖: Logger, valid, common
* 1. 行数据刷新;
* 2. 可编辑单元格使用自定义模板([data-editable]);
* 3. action被改变事件(激活不同的行数据) -> 由selection点击事件实现
* 4. 列顺序调整
* 5. 选中/取消选中所有数据行
* 6. 表格嵌套时, 事件只委托到当前插件对象
*/
;(function (c) {
'use strict';
c.Table = Table;
Table.logger = c.Logger ? c.Logger('Table') : null;
// K - Table Key
// V - Table instance
Table.cache = {};
// 创建相关
Object.defineProperties(Table.creator = {}, {
table: {
get: function () {
return $('<table>').addClass(Table.style.table);
}
},
tbody: {
get: function () {
return $('<tbody>');
}
},
tr: {
get: function () {
return $('<tr>').addClass(Table.style.table_row);
}
},
td: {
get: function () {
return $('<td>').addClass(Table.style.table_cell);
}
},
radio: {
get: function () {
return $('<input>', {type: 'radio', name: 'table_selection_'})
.addClass(Table.style.selection)
.addClass(Table.style.selection_radio);
}
},
checkbox: {
get: function () {
return $('<input>', {type: 'checkbox', name: 'table_selection_'})
.addClass(Table.style.selection)
.addClass(Table.style.selection_checkbox);
}
},
expander: {
get: function () {
return $('<i>').addClass('fa fa-angle-right').addClass(Table.style.expander);
}
},
columnModifier: {
get: function () {
return $('<div>').addClass(Table.style.column_modifier);
}
},
expandContainer: {
value: function (headerCount) {
var $row = $('<tr>').addClass(Table.style.expand_container_row),
$cell = this.td.attr({colspan: headerCount || 1}).appendTo($row);
$('<div>').addClass(Table.style.expand_container).appendTo($cell);
return $row;
}
}
});
// 可编辑相关
Object.defineProperties(Table.writableCreator = {}, {
text: {
value: function (param) {
return $('<input>', {
name: param.headConf.prop,
type: 'text',
'data-date-format': param.headConf.dateFormat
}).addClass(Table.style.writable).val(param.value);
}
},
date: {
value: function (param) {
if (param.headConf.dateFormat)
param.value = c.dates.format(param.value, param.headConf.dateFormat);
return Table.writableCreator.text(param);
}
},
enum: {
value: function (param) {
return c.$common.selectFill(param.headConf.prop, param.value, param.options);
}
},
html: {
value: function (param) {
return $('<textarea>', {name: param.headConf.prop}).val(param.value);
}
},
editableContainer: {
value: function () {
return $('<span>').addClass(Table.style.editable_container);
}
}
});
// class样式列表
Object.defineProperties(Table.style = {}, {
bounds: {value: 'jsu-table-bounds'},
use_fixed_header: {value: 'jsu-table-use-fixed-header'},
use_fixed_left_header: {value: 'jsu-table-use-fixed-left-header'},
use_fixed_right_header: {value: 'jsu-table-use-fixed-right-header'},
table: {value: 'jsu-table'},
main_container: {value: 'jsu-table-main-container'},
table_header: {value: 'jsu-table-header'},
table_header_row: {value: 'jsu-table-header-row'},
table_header_cell: {value: 'jsu-table-header-cell'},
table_body: {value: 'jsu-table-body'},
table_row: {value: 'jsu-table-row'},
table_row_hover: {value: 'jsu-table-row-hover'},
table_cell: {value: 'jsu-table-cell'},
table_empty_row: {value: 'jsu-table-empty-row'},
empty_td: {value: 'jsu-table-empty-td'},
selection: {value: 'jsu-selection'},
selection_radio: {value: 'jsu-selection-radio'},
selection_checkbox: {value: 'jsu-selection-checkbox'},
expander: {value: 'jsu-expander'},
expander_opened: {value: 'jsu-expander-opened'},
expand_container_row: {value: 'jsu-expand-container-row'},
expand_container: {value: 'jsu-expand-container'},
editable_container: {value: 'jsu-writable-container'},
writable: {value: 'jsu-writable'},
column_modifier: {value: 'jsu-column-modifier'},
column_width_editing: {value: 'jsu-column-width-editing'},
trigger_action: {value: 'jsu-trigger-action'},
swapper_action: {value: 'jsu-swapper-action'},
fixed_header_container: {value: 'jsu-fixed-header-container'},
fixed_left_header_container: {value: 'jsu-fixed-left-header-container'},
fixed_right_header_container: {value: 'jsu-fixed-right-header-container'},
fixed_left_top_header_container: {value: 'jsu-fixed-left-top-header-container'},
fixed_right_top_header_container: {value: 'jsu-fixed-right-top-header-container'},
pager_container: {value: 'jsu-table-pager-container'},
hide: {value: 'jsu-table-hide_impl'},
// scrolling_vertical: {value: 'jsu-table-scrolling'},
scrolling_vertical: {value: 'jsu-table-scrolling-vertical'},
scrolling_horizontal: {value: 'jsu-table-scrolling-horizontal'},
scrolling_down: {value: 'jsu-table-scrolling-down'},
scrolling_right: {value: 'jsu-table-scrolling-right'},
scroll_to_right: {value: 'jsu-table-scroll-to-right'},
overflow_x: {value: 'jsu-table-overflow-x'}
});
// 自定义HTML属性名
Object.defineProperties(Table.defineHtmlKey = {}, {
bounds_key: {value: 'data-jsu-bounds-uk'},
row_data_key: {value: '<KEY>'},
editable_previous_value: {value: 'data-jsu-previous'},
editable_template: {value: 'data-writable'},
column_activator_from_x: {value: 'data-from-x'},
column_activator_to_x: {value: 'data-to-x'}
});
// 其他常量
Object.defineProperties(Table.otherFinalKey = {}, {
scroll_width: {value: 18},
scroll_height: {value: 17}
});
/**
* @constructor
* @param $container {jQuery|Element} 表格容器, 实例化后使用 Form.template 替换. 如果当前控件是Table直接替换,
* 否则从 $container 中查找第一个 Table 控件. 如果找不到抛出异常
* @param [autoInit=false] {Boolean} true-自动初始化
* @param [dev=false] {Boolean} true-开启调试模式(打印更多日志)
* @return {Table}
* @see Table.init()
*/
function Table($container, autoInit, dev) {
if (!(this instanceof Table))
return new Table($container, autoInit, dev);
autoInit = autoInit || false;
dev = dev || false;
// 生成缓存Key
Object.defineProperty(this, 'key', {
value: 'uk' + (Math.random() + '').substring(2)
});
// 初始化配置
var conf = getConf(this, $container, false);
// 调试模式
if (dev) {
Object.defineProperty(this, '[[conf]]', {
value: conf
});
conf.dev = dev;
} else {
Table.logger = null;
}
// 自动初始化
if (autoInit)
this.init();
Table.logger && Table.logger.info('初始化Form对象完成', this);
}
/**
* 初始化, 使用模板控件替换表格容器控件($container)
* @return {Table}
*/
Table.prototype.init = function () {
var conf = getConf(this, null, false);
if (conf.loaded) {
Table.logger && Table.logger.info('跳过重复初始化');
return this;
}
Table.logger && Table.logger.info('开始初始化 >>> ', conf);
conf.loaded = true;
conf.destroyed = false;
conf.expandIndexedCache = {};
conf.uniqueIndexedData = {};
conf.selectionDataUniqueIndex.length = 0;
// 表格容器校验
var $table = conf.$container;
if (!/^table$/i.test($table[0].tagName))
$table = conf.$container.find('table:eq(0)');
if (!$table.length) throw "未找到有效表格容器";
parseTableConfig($table, conf);
// 解析表头
var
hasSelectionColumn = false, // selection只允许配置一列
hasExpandColumn = false, // expand 只允许存在一列
err, html, errAttrIndex;
conf.headers = [];
$table.find('tr:eq(0)>th').each(function () {
var
$th = $(this),
headConf = parseHeaderConfig($th);
switch (headConf.type) {
case 'selection':
if (hasSelectionColumn) {
err = '无效的表头配置, 选择列只允许配置一种selection类型且只能存在一列';
html = $th[0].outerHTML.split('\n')[0];
err += '\n' + html;
errAttrIndex = html.indexOf('data-type');
err += '\n' + c.strings.repeat(' ', errAttrIndex) + '^^^^';
throw err;
} else {
conf.headers.push(headConf);
hasSelectionColumn = true;
}
break;
case 'expand':
if (hasExpandColumn) {
err = '无效的表头配置, 选择列只允许配置一列expand';
html = $th[0].outerHTML.split('\n')[0];
err += '\n' + html;
errAttrIndex = html.indexOf('data-type');
err += '\n' + c.strings.repeat(' ', errAttrIndex) + '^^^^';
throw err;
} else {
conf.headers.push(headConf);
hasExpandColumn = true;
}
break;
default:
conf.headers.push(headConf);
}
});
// 获取左右固定列, 并按照左右固定列修正表头顺序
var fixedLRMap = c.arrays.group(conf.headers, 'fixed');
jsu.common.each(conf.fixedHeaders, function (val, key) {
conf.fixedHeaders[key] = fixedLRMap[key] || [];
});
jsu.common.each(conf.fixedHeaders, function (list, direction) {
c.arrays.remove(conf.headers, list);
switch (direction) {
case 'left':
c.arrays.appendBefore(conf.headers, list);
break;
case 'right':
c.arrays.push(conf.headers, list);
break;
}
});
// 存在展开列时, 暂不支持左右固定
if (hasExpandColumn && (conf.fixedHeaders.left.length || conf.fixedHeaders.right.length))
throw new Error('当前版本暂不支持同时配置 expand 和 data-fixed="left|right"');
// 获取表格模板
replaceWithTemplate(conf);
// 初始化表格数据
var data = this.data();
this.data((data && data.length) ? data : []);
// 激活委托事件
activeRegisterEvents(conf);
// 启用分页条 pagination
if (conf.pagination._enable)
activatePagination(conf);
Table.logger && Table.logger.info('初始化完成 <<< ', conf);
return this;
};
/**
* 设置/获取表格数据
* @param [append=false] {Boolean} true-追加, false|undefined|null-覆盖
* @param [data} {*} 设置表格数据
* @return {*} 获取表格数据
*/
Table.prototype.data = function (data, append) {
var conf = getConf(this, null, true);
if (!conf.loaded)
this.init();
if (c.valid.nullOrUndefined(data))
return conf.data;
if (data && !c.valid.isArray(data))
throw '表格数据必须是 Array 类型';
if (append) {
[].push.apply(conf.data, data);
} else {
conf.data = data;
}
// 填充主视图
fillRows(conf.templates.$main, conf);
c.common.timer(function () {
var $widthModifier = conf.templates.$bounds.find('.' + Table.style.column_modifier);
$widthModifier.addClass(Table.style.hide);
activeColumnWidthModifier(conf);
checkScroll(conf);
$widthModifier.removeClass(Table.style.hide);
});
// 填充左侧固定视图
if (conf.templates.$left)
(function () {
var $tbody = conf.templates.$left.find('.' + Table.style.table_body + ':first').html('');
if (!$tbody.length)
($tbody = Table.creator.tbody).appendTo(conf.templates.$left).addClass(Table.style.table_body);
var mainSelector = '>.' + Table.style.table_body + '>.' + Table.style.table_row;
c.common.each(conf.data, function (row, rowIndex) {
var
$row = Table.creator.tr,
$mainRow = conf.templates.$main.find(mainSelector).eq(rowIndex);
$row.height($mainRow.height());
$tbody.append($row);
c.common.each(conf.fixedHeaders.left, function (headConf, cellIndex) {
var $cell = createCell(headConf, row, cellIndex, rowIndex, conf);
$row.append($cell);
});
});
})();
// 填充右侧固定视图
if (conf.templates.$right)
(function () {
var $tbody = conf.templates.$right.find('.' + Table.style.table_body + ':first').html('');
if (!$tbody.length)
($tbody = Table.creator.tbody).appendTo(conf.templates.$right).addClass(Table.style.table_body);
var mainSelector = '>.' + Table.style.table_body + '>.' + Table.style.table_row;
c.common.each(conf.data, function (row, rowIndex) {
var
$row = Table.creator.tr,
$mainRow = conf.templates.$main.find(mainSelector).eq(rowIndex);
$row.height($mainRow.height());
$tbody.append($row);
c.common.each(conf.fixedHeaders.right, function (headConf, cellIndex) {
var $cell = createCell(headConf, row, cellIndex, rowIndex, conf);
$row.append($cell);
});
});
})();
c.common.apply(conf.events.updated, conf.templates.$bounds, data, this);
};
/**
* 获取行数据
* @param cell {jQuery|Element} 行内控件
* @return {Object|null|*} 行数据
*/
Table.prototype.rowData = function (cell) {
if (!c.valid.isJQuery(cell))
cell = $(cell);
var
$row = cell.parents('.' + Table.style.table_row),
dataKey = $row.attr(Table.defineHtmlKey.row_data_key),
conf = getConf(this, null, true);
return conf.uniqueIndexedData[dataKey];
};
/**
* 刷新一行数据所有列
* @param row {*} 行数据
* @param uniqueKeyName {String} 行数据唯一索引属性名
* @param [invokeByValue=row.uniqueKeyName] {*} 行数据索引属性值
*/
Table.prototype.updateRow = function (row, uniqueKeyName, invokeByValue) {
if (!c.valid.isString(uniqueKeyName))
throw '参数rowKey不允许为空';
var
conf = getConf(this),
map = c.arrays.asMap(conf.data, uniqueKeyName, false),
existData = map[invokeByValue];
// 不存在指定数据, 更新失败
if (!existData)
return false;
// 查找行索引
var rowUK = '';
c.common.each(conf.uniqueIndexedData, function (data, key) {
if (existData === data) {
rowUK = key;
return false;
}
});
// 使用新视图替换
var rowIndex = conf.data.indexOf(existData);
conf.templates.$bounds.find('.' + Table.style.table_row + '[' + Table.defineHtmlKey.row_data_key + '="' + rowUK + '"]').each(function () {
var
$row = $(this),
$replace = createRow(row, conf, rowIndex);
$row.replaceWith($replace);
// 修复行索引
var expiredRowUK = $replace.attr(Table.defineHtmlKey.row_data_key);
$replace.attr(Table.defineHtmlKey.row_data_key, rowUK);
delete conf.uniqueIndexedData[expiredRowUK];
});
// 更新缓存数据
conf.data.splice(rowIndex, 1, row);
conf.uniqueIndexedData[rowUK] = row;
};
/**
* 卸载Table插件
*/
Table.prototype.destroy = function () {
var conf = getConf(this, null, true);
conf.templates.$bounds.replaceWith(conf.$table);
conf.loaded = false;
conf.destroyed = true;
};
/**
* 设置/获取监听事件
* @param events {*} 设置监听事件
* @return {*} 已存在监听事件
*/
Table.prototype.events = function (events) {
var conf = getConf(this);
if (c.valid.isObject(events))
c.common.each(conf.events, function (v, ek) {
var fn = events[ek];
conf.events[ek] = c.valid.isFunction(fn) ? fn : null;
});
return conf.events;
};
/**
* 设置/获取pagination委托事件, 需要配置[data-pagination]属性;
* 必须在Table初始化完成前执行
* @param events {*} 设置监听事件
* @return {*} 已存在监听事件
*/
Table.prototype.paginationEvents = function (events) {
var conf = getConf(this);
if (c.valid.isObject(events)) {
conf.pagination.events = events;
conf.pagination.pager.events(events);
}
return conf.pagination.events;
};
/**
* 设置/获取选中的行
* @param actions {Object|Array} 设置需要选中数据(Object-单行数据, Array-多行数据), selection=radio只获取第一个元素, selection=checkbox应用所有数据
* @return {Array} 成功选中的行
*/
Table.prototype.actionRows = function (actions) {
var conf = getConf(this, null, true);
// 找到表头配置: type=selection
var map = c.arrays.asMap(conf.headers, 'type');
if (!map.selection) {
Table.logger && Table.logger.log('当前表格数据行不可被选中');
return [];
}
if (c.valid.nullOrUndefined(actions))
return c.objects.values(conf.uniqueIndexedData, conf.selectionDataUniqueIndex);
if (!c.valid.isArray(actions))
actions = [actions];
// 获取被选中数据行索引
var rowKeys = [];
c.common.each(conf.uniqueIndexedData, function (row, rowKey) {
if (-1 !== actions.indexOf(row))
rowKeys.push(rowKey);
});
// 单选按钮只保留第一条索引
var selectionHeadConf = map.selection;
if ('radio' === selectionHeadConf.selection)
rowKeys = [rowKeys[0]];
// 选中指定行
conf.selectionDataUniqueIndex.length = 0;
c.arrays.push(conf.selectionDataUniqueIndex, rowKeys);
conf.templates.$bounds.find('.' + Table.style.selection)
.prop('checked', false)
.each(function () {
var
$this = $(this),
$row = $this.parents('.' + Table.style.table_row),
rowKey = $row.attr(Table.defineHtmlKey.row_data_key);
if (-1 !== conf.selectionDataUniqueIndex.indexOf(rowKey))
$this.prop('checked', true);
});
// 获取已选中数据
return c.objects.values(conf.uniqueIndexedData, conf.selectionDataUniqueIndex);
};
/**
* 清理选中行
* @return {*} 清理前选中的数据
*/
Table.prototype.clearActions = function () {
var
conf = getConf(this),
rows = c.objects.values(conf.uniqueIndexedData, conf.selectionDataUniqueIndex),
ret = c.objects.clone(rows);
conf.templates.$bounds.find('.' + Table.style.selection).prop('checked', false);
conf.selectionDataUniqueIndex.length = 0;
return ret;
};
/**
* 激活分页插件
* @param conf {*} 配置对象
*/
function activatePagination(conf) {
var
$c = conf.pagination.$container = $('<div>').addClass(Table.style.pager_container),
$pager = conf.pagination.$pager = $('<div>').appendTo($c);
c.common.each(conf.pagination, function (v, k) {
if (!/^[_\$]/.test(k))
$pager.attr('data-' + k, v);
});
$c.appendTo(conf.templates.$bounds.parent());
conf.pagination.pager = new c.Pager($pager, true, conf.dev);
var
events = conf.pagination.events || {},
after = events.after;
events.after = function (data) {
Table.logger && Table.logger.log('从Pagination获取到数据', arguments);
conf.self.data(data.data);
if (c.valid.isFunction(after))
return after.apply(this, arguments);
};
conf.self.paginationEvents(events);
}
/**
* 校验滚动条
* @param conf {*} 配置对象
*/
function checkScroll(conf) {
// 修复顶部固定表头最右侧滚动条宽度
if (conf.templates.$top)
(function () {
var parent = conf.templates.$main.parent()[0];
var
hasScrollVertical = 0 < (parent.scrollHeight - parent.clientHeight),
verticalFn = hasScrollVertical ? 'addClass' : 'removeClass';
conf.templates.$bounds[verticalFn](Table.style.scrolling_vertical);
var
hasScrollHorizontal = 0 < (parent.scrollWidth - parent.clientWidth),
horizontalFn = hasScrollVertical ? 'addClass' : 'removeClass';
conf.templates.$bounds[verticalFn](Table.style.scrolling_horizontal);
})();
// 修复左侧固定列,底部滚动条高度
if (conf.templates.$left)
(function () {
var
parent = conf.templates.$main.parent()[0],
hasScroll = 0 < (parent.scrollWidth - parent.clientWidth);
if (hasScroll) {
var maxHeight = parseFloat($(parent).css('max-height'));
conf.templates.$left.parent().css('max-height', maxHeight - Table.otherFinalKey.scroll_height);
conf.templates.$right.parent().css('max-height', maxHeight - Table.otherFinalKey.scroll_height);
}
})();
calcColumnWidthByModifierTrigger(conf);
}
/**
* 激活事件
* @param conf {*} 表格插件配置
*/
function activeRegisterEvents(conf) {
var style = Table.style;
// 滚动事件
(function () {
var trigger = null, mainScrolling = false;
conf.templates.$main.parent()
.scroll(function () {
if (conf.templates.$main !== trigger) return;
var $this = $(this);
mainScrolling = true;
// 已经向下滚动
var fnName = (0 < $this.scrollTop()) ? 'addClass' : 'removeClass';
conf.templates.$bounds[fnName](Table.style.scrolling_down);
// 已经向右滚动
fnName = (0 < $this.scrollLeft()) ? 'addClass' : 'removeClass';
conf.templates.$bounds[fnName](Table.style.scrolling_right);
// 是否已经滚动到最右边
var isRight = (this.scrollWidth === (+this.scrollLeft + +this.clientWidth));
fnName = isRight ? 'addClass' : 'removeClass';
conf.templates.$bounds[fnName](Table.style.scroll_to_right);
// 固定表头左右滚动条
if (conf.templates.$top)
conf.templates.$top.parent().scrollLeft($this.scrollLeft());
// 左侧固定视图上下滚动
if (conf.templates.$left) {
c.common.timer(function () {
conf.templates.$left.parent().css({'padding-right': 5.00001});
c.common.timer(function () {
conf.templates.$left.parent().css({'padding-right': 5});
});
});
conf.templates.$left.parent().scrollTop($this.scrollTop());
}
// 右侧固定视图上下滚动
if (conf.templates.$right) {
c.common.timer(function () {
conf.templates.$right.parent().css({'padding-left': 5.00001});
c.common.timer(function () {
conf.templates.$right.parent().css({'padding-left': 5});
});
});
conf.templates.$right.parent().scrollTop($this.scrollTop());
}
})
.mouseenter(function () {
trigger = conf.templates.$main;
})
.mouseleave(function () {
trigger = null;
});
// 左侧固定列滚动
// 禁用主视图滚动, 禁用右侧滚动
if (conf.templates.$left)
conf.templates.$left.parent()
.scroll(function () {
if (conf.templates.$left !== trigger) return;
var $this = $(this);
var fnName = (0 < $this.scrollTop()) ? 'addClass' : 'removeClass';
conf.templates.$bounds[fnName](Table.style.scrolling_down);
conf.templates.$main.parent().scrollTop($this.scrollTop());
if (conf.templates.$right)
conf.templates.$right.parent().scrollTop($this.scrollTop());
})
.mouseenter(function () {
trigger = conf.templates.$left;
})
.mouseleave(function () {
trigger = null;
});
// 右侧固定列滚动
// 禁用主视图滚动, 禁用左侧滚动
if (conf.templates.$right)
conf.templates.$right.parent()
.scroll(function () {
if (conf.templates.$right !== trigger) return;
var $this = $(this);
var fnName = (0 < $this.scrollTop()) ? 'addClass' : 'removeClass';
conf.templates.$bounds[fnName](Table.style.scrolling_down);
conf.templates.$main.parent().scrollTop($this.scrollTop());
if (conf.templates.$left)
conf.templates.$left.parent().scrollTop($this.scrollTop());
})
.mouseenter(function () {
trigger = conf.templates.$right;
})
.mouseleave(function () {
trigger = null;
});
})();
// 列顺序调整
(function () {
var headerSelector = '.' + style.table_header + '>.' + style.table_header_row + '>.' + style.table_header_cell;
c.$common.uniqueDelegate(conf.templates.$bounds, headerSelector, 'mousedown', function (e) {
c.$common.stopPropagation(e);
var $this = conf.swapper.$start = $(this);
$this.addClass(Table.style.swapper_action);
var index = $this.index();
Table.logger && Table.logger.log('列顺序调整结束准备就绪, 开始列索引[' + index + ']', conf.headers[index], $this);
});
c.$common.uniqueDelegate(conf.templates.$bounds, headerSelector, 'mouseenter', function (e) {
c.$common.stopPropagation(e);
if (!conf.swapper.$start)
return;
var
$this = $(this),
targetIndex = $this.index(),
startIndex = conf.swapper.$start.index(),
moveToAfter = (targetIndex > startIndex);
conf.swapper.$target = $this;
if (startIndex === targetIndex) {
// $.after/$.before 执行后,
// 鼠标在交换后的单元格移动触发的无用事件
return;
}
Table.logger && Table.logger.log('列顺序调整, [' + startIndex + '] ' + (moveToAfter ? '->' : '<-') + ' [' + targetIndex + ']');
var fnKey = moveToAfter ? 'after' : 'before';
$this[fnKey](conf.swapper.$start);
conf.templates.$main.find('>.' + Table.style.table_body + '>.' + Table.style.table_row).each(function () {
var
$row = $(this),
$startCol = $row.find('>.' + Table.style.table_cell).eq(startIndex),
$targetCol = $row.find('>.' + Table.style.table_cell).eq(targetIndex);
$targetCol[fnKey]($startCol);
});
if (conf.templates.$top) {
var
$startHeader = conf.templates.$top.find('.' + Table.style.table_header_cell + ':eq(' + startIndex + ')'),
$targetIndex = conf.templates.$top.find('.' + Table.style.table_header_cell + ':eq(' + targetIndex + ')');
jsu.common.timer(function () {
$targetIndex[fnKey]($startHeader);
activeColumnWidthModifier(conf);
}, 10);
}
});
var
boundsSelector = '[' + Table.defineHtmlKey.bounds_key + '="' + conf._key + '"]',
boundsParent = conf.templates.$bounds.parent();
c.$common.uniqueDelegate(boundsParent, boundsSelector, 'mouseup', swapOver);
c.$common.uniqueDelegate(boundsParent, boundsSelector, 'mouseleave', swapOver);
/**
* 交换结束, 初始化交换相关缓存
*/
function swapOver() {
if (conf.swapper.$start) {
conf.swapper.$start.removeClass(Table.style.swapper_action);
conf.swapper.$start = null;
conf.swapper.$target = null;
}
}
})();
// 列宽调整
(function () {
/*
* 1. 遍历表头, 并在每列末尾的left偏移量上添加 $mover -> $bounds
* 2. 在$mover鼠标事件(mouse down)中记录当前$mover的left开始量
* 3. 在 $bounds 鼠标事件 (mouse move) 中记录left结果值
* 4. 在 $bounds 鼠标事件 (mouse up/leave) 中调整列宽并重新生成 $mover
*/
c.$common.uniqueDelegate(conf.templates.$bounds, '.' + Table.style.column_modifier, 'mousedown', function (e) {
if (conf.templates.$top)
conf.templates.$top.hide();
var
$this = conf.widthModifier.$trigger = $(this);
$this.attr(Table.defineHtmlKey.column_activator_from_x, e.clientX);
conf.templates.$bounds.addClass(Table.style.column_width_editing);
$this.addClass(Table.style.trigger_action);
Table.logger && Table.logger.log('激活列宽调整', $this);
});
conf.templates.$bounds
.mousemove(function (e) {
var
$trigger = conf.widthModifier.$trigger,
box = c.$common.box($trigger);
if ($trigger)
$trigger.attr(Table.defineHtmlKey.column_activator_to_x, e.clientX - box.width * 1.5)
.css({left: e.clientX});
})
.mouseup(function () {
calcColumnWidthByModifierTrigger(conf);
if (conf.templates.$top)
conf.templates.$top.show();
})
.mouseleave(function () {
calcColumnWidthByModifierTrigger(conf);
});
})();
// 鼠标进入数据行
// 鼠标离开数据行
// 点击数据行
var rowClassSelector = '.' + style.table_body + '> .' + style.table_row;
(function () {
c.$common.uniqueDelegate(conf.templates.$bounds, rowClassSelector, 'mouseenter', function (e) {
var
$row = $(this),
rowIndex = $row.index(),
rowDataKey = $row.attr(Table.defineHtmlKey.row_data_key),
row = conf.uniqueIndexedData[rowDataKey];
mouseEnter(conf.templates.$main);
mouseEnter(conf.templates.$left);
mouseEnter(conf.templates.$right);
if (!$row.hasClass(Table.style.table_empty_row)) {
Table.logger && Table.logger.info('鼠标进入表格行');
c.common.apply(conf.events.mouseEnter, $row, row, e, $row);
}
function mouseEnter($table) {
if ($table) {
var
$rows = $($table).find('>.' + Table.style.table_body + '>tr').removeClass(Table.style.table_row_hover),
$row = $rows.eq(rowIndex);
$row.addClass(Table.style.table_row_hover);
}
}
});
c.$common.uniqueDelegate(conf.templates.$bounds, rowClassSelector, 'mouseleave', function (e) {
var
$row = $(this),
rowIndex = $row.index(),
rowDataKey = $row.attr(Table.defineHtmlKey.row_data_key),
row = conf.uniqueIndexedData[rowDataKey];
if (!$row.hasClass(Table.style.table_empty_row)) {
Table.logger && Table.logger.info('鼠标离开表格行');
c.common.apply(conf.events.mouseLeave, $row, row, e, $row);
}
mouseLeave(conf.templates.$main);
mouseLeave(conf.templates.$left);
mouseLeave(conf.templates.$right);
checkScroll(conf);
function mouseLeave($table) {
if ($table)
$($table).find(rowClassSelector).eq(rowIndex).removeClass(Table.style.table_row_hover);
}
});
c.$common.uniqueDelegate(conf.templates.$bounds, rowClassSelector, 'click', function (e) {
Table.logger && Table.logger.info('点击表格行');
c.$common.stopPropagation(e);
var
$row = $(this),
rowDataKey = $row.attr(Table.defineHtmlKey.row_data_key),
row = conf.uniqueIndexedData[rowDataKey];
if (!$row.hasClass(Table.style.table_empty_row))
c.common.apply(conf.events.rowClick, $row, row, e, $row);
});
c.$common.uniqueDelegate(conf.templates.$bounds, rowClassSelector + '>.' + Table.style.table_cell, 'click', function (e) {
Table.logger && Table.logger.info('点击单元格');
c.$common.stopPropagation(e);
var
$cell = $(this),
$row = $cell.parent(),
rowDataKey = $row.attr(Table.defineHtmlKey.row_data_key),
row = conf.uniqueIndexedData[rowDataKey];
if (!$row.hasClass(Table.style.table_empty_row)) {
if (false !== c.common.apply(conf.events.cellClick, $cell, row, e, $cell))
$row.click();
}
});
})();
// 功能列
var cellSelector = rowClassSelector + ' > .' + style.table_cell;
(function () {
// extend
c.$common.uniqueDelegate(conf.templates.$bounds, cellSelector + ' > .' + style.expander, 'click', function (e) {
Table.logger && Table.logger.info('点击扩展');
c.$common.stopPropagation(e);
var
$this = $(this),
$row = $this.parents('.' + Table.style.table_row),
rowDataKey = $row.attr(Table.defineHtmlKey.row_data_key),
row = conf.uniqueIndexedData[rowDataKey];
var $expandRow = conf.expandIndexedCache[rowDataKey];
// 展开逻辑
if (!$expandRow) {
var colSpanValue = conf.headers.length;
$expandRow = Table.creator.expandContainer(colSpanValue);
if (false === c.common.apply(conf.events.expandOpen, $row, row, $expandRow, e, $row)) {
Table.logger && Table.logger.log('expandOpen 事件阻止打开扩展行');
} else {
conf.expandIndexedCache[rowDataKey] = $expandRow;
var
typedHeaderMap = c.arrays.asMap(conf.headers, 'type'),
headConf = typedHeaderMap['expand'],
$tpl = headConf.template.clone(true);
$expandRow.find('.' + Table.style.expand_container).append($tpl);
$row.after($expandRow);
$this.addClass(Table.style.expander_opened);
c.common.timer(function () {
c.common.apply(conf.events.expandOpened, $row, row, $expandRow, e, $row);
}, 50);
Table.logger && Table.logger.log('添加扩展模板');
}
} else {
// 关闭逻辑
if (false === c.common.apply(conf.events.expandClose, $row, row, $expandRow, e, $row)) {
Table.logger && Table.logger.log('expandClose 事件阻止关闭扩展行');
} else {
$expandRow.remove();
delete conf.expandIndexedCache[rowDataKey];
$this.removeClass(Table.style.expander_opened);
c.common.timer(function () {
c.common.apply(conf.events.expandClosed, $row, row, $expandRow, e, $row);
}, 50);
Table.logger && Table.logger.log('删除扩展模板');
}
}
checkScroll(conf);
});
// selection radio
var bodyRadioClassSelector = rowClassSelector + ' > .' + style.table_cell + ' > .' + style.selection_radio;
c.$common.uniqueDelegate(conf.templates.$bounds, bodyRadioClassSelector, 'click', function (e) {
c.$common.stopPropagation(e);
Table.logger && Table.logger.info('点击单选框');
var
$this = $(this),
$row = $this.parents('.' + Table.style.table_row),
rowDataKey = $row.attr(Table.defineHtmlKey.row_data_key),
row = conf.uniqueIndexedData[rowDataKey];
conf.selectionDataUniqueIndex.length = 0;
conf.selectionDataUniqueIndex.push(rowDataKey);
c.common.apply(conf.events.action, $row, row, [row], e, $row);
});
// selection checkbox
var bodyCheckboxClassSelector = rowClassSelector + ' > .' + style.table_cell + ' > .' + style.selection_checkbox;
c.$common.uniqueDelegate(conf.templates.$bounds, bodyCheckboxClassSelector, 'click', function (e) {
c.$common.stopPropagation(e);
Table.logger && Table.logger.info('点击复选框');
var
$this = $(this),
$row = $this.parents('.' + Table.style.table_row),
rowDataKey = $row.attr(Table.defineHtmlKey.row_data_key),
row = conf.uniqueIndexedData[rowDataKey];
if ($this.is(':checked')) {
conf.selectionDataUniqueIndex.push(rowDataKey);
c.arrays.unique(conf.selectionDataUniqueIndex);
} else {
c.arrays.remove(conf.selectionDataUniqueIndex, rowDataKey);
}
var rows = c.objects.values(conf.uniqueIndexedData, conf.selectionDataUniqueIndex);
c.common.apply(conf.events.action, row, row, rows, $row);
});
})();
// [data-writable]数据被改变
(function () {
var bodyEditorClassSelector = cellSelector + ' > .' + style.editable_container + ' [name]';
c.$common.uniqueDelegate(conf.templates.$bounds, bodyEditorClassSelector, 'click', function (e) {
e.stopPropagation();
});
c.$common.uniqueDelegate(conf.templates.$bounds, bodyEditorClassSelector, 'focus', function (e) {
e.stopPropagation();
});
c.$common.uniqueDelegate(conf.templates.$bounds, bodyEditorClassSelector, 'change', function () {
var
$this = $(this),
$cell = $this.parents('.' + Table.style.table_cell),
cellIndex = $cell.index(),
headConf = conf.headers[cellIndex],
$row = $this.parents('.' + Table.style.table_row),
rowDataKey = $row.attr(Table.defineHtmlKey.row_data_key),
row = conf.uniqueIndexedData[rowDataKey];
Table.logger && Table.logger.log('数据被修改', row);
if (!row) {
Table.logger && Table.logger.log('未找到相关数据 rowDataKey[' + rowDataKey + ']');
return;
}
if (!headConf)
throw '未找到当前列表头配置, 列索引[' + cellIndex + ']';
try {
updateCells($row, row, headConf, $this.val(), conf);
} catch (e) {
var defaultValue = $this.attr(Table.defineHtmlKey.editable_previous_value);
$this.val(defaultValue);
throw e;
}
});
})();
// 表头激活(选中)/释放(取消)所有数据行
(function () {
var headerCheckboxClassSelector
= '.' + style.table_header
+ '>.' + style.table_header_row
+ '>.' + style.table_header_cell
+ '>.' + style.selection_checkbox;
c.$common.uniqueDelegate(conf.templates.$bounds, headerCheckboxClassSelector, 'click', function (e) {
e.stopPropagation();
var
$this = $(this),
isAction = $this.is(':checked');
Table.logger && Table.logger.log((isAction ? '激活' : '释放') + '所有数据行');
conf.templates.$bounds.find('.' + Table.style.selection_checkbox).prop('checked', isAction);
conf.selectionDataUniqueIndex.length = 0;
if (isAction)
conf.selectionDataUniqueIndex = c.objects.keys(conf.uniqueIndexedData);
var
$lastRow = conf.templates.$main.find(' > .' + Table.style.table_body + ':first' + ' > .' + Table.style.table_row + ':last'),
rows = c.objects.values(conf.uniqueIndexedData, conf.selectionDataUniqueIndex),
rowDataKey = $lastRow.attr(Table.defineHtmlKey.row_data_key),
row = conf.uniqueIndexedData[rowDataKey];
c.common.apply(conf.events.action, row, row, rows, $lastRow);
});
})();
}
/**
* 重新计算列宽
* @param conf {*} 表格插件配置
*/
function calcColumnWidthByModifierTrigger(conf) {
conf.templates.$bounds.removeClass(Table.style.column_width_editing);
var $trigger = conf.widthModifier.$trigger;
if ($trigger) {
var
triggerIndex = $trigger.index(),
fromX = $trigger.attr(Table.defineHtmlKey.column_activator_from_x),
toX = $trigger.attr(Table.defineHtmlKey.column_activator_to_x),
movedSize = toX - fromX;
// 表头单元格调整
// 数据行自动根据表头宽度适应
var $header = conf.templates.$main
.find('>.' + Table.style.table_header + '>.' + Table.style.table_header_row)
.find('>.' + Table.style.table_header_cell)
.eq(triggerIndex);
$header.width($header.width() + movedSize);
// 释放触发器
conf.widthModifier.$trigger.removeClass(Table.style.trigger_action);
conf.widthModifier.$trigger = null;
}
// 刷新触发器位置
activeColumnWidthModifier(conf);
}
/**
* 更新所有单元格(与指定单元格拥有相同prop配置)
* @param $row {jQuery} 数据行控件
* @param row {*} 行数据
* @param headConf {*} 触发单元格控件
* @param newlyValue {*} 新值
* @param conf {*} 表格插件配置
*/
function updateCells($row, row, headConf, newlyValue, conf) {
// 匹配所有相关列索引
var cellIndexes = [];
c.common.each(conf.headers, function (hc, hi) {
if (hc.prop === headConf.prop)
cellIndexes.push(hi);
});
// 值格式化按照第一个已存在的配置
// date 需要做格式化处理
var firstHeadConf = conf.headers[cellIndexes[0]];
if ('date' === firstHeadConf.type) {
var date = c.dates.parse(newlyValue, firstHeadConf.dateFormat);
if (!c.valid.isDate(date))
throw '无效日期字符串[' + newlyValue + ']规则[' + firstHeadConf.dateFormat + ']';
newlyValue = date.getTime();
}
row[headConf.prop] = newlyValue;
// 渲染相关列视图
var rowIndex = $row.index();
c.common.each(cellIndexes, function (headIndex) {
var _headConf = conf.headers[headIndex];
if (headConf !== _headConf) {
var $cell = createCell(_headConf, row, headIndex, rowIndex, conf);
$row.find('.' + Table.style.table_cell + ':eq(' + headIndex + ')').replaceWith($cell);
}
});
}
/**
* 填充数据行
* @param $table {jQuery} 表格控件
* @param conf {*} 表格配置
*/
function fillRows($table, conf) {
var $tbody = $table.find('tbody');
if (!$tbody.length)
($tbody = Table.creator.tbody).appendTo($table).addClass(Table.style.table_body);
if (!conf.data.length) {
createEmptyRow($tbody, conf);
return;
}
// 填充数据行
$tbody.html('');
c.common.each(conf.data, function (row, rowIndex) {
var $row = createRow(row, conf, rowIndex);
$tbody.append($row);
});
}
/**
* 创建行控件
* @param row {*} 行数据
* @param conf {*} 表格插件配置
* @param rowIndex {number} 行索引
*/
function createRow(row, conf, rowIndex) {
var
$row = Table.creator.tr,
uniqueKey;
do {
uniqueKey = 'uk' + (Math.random() + '').substring(2);
} while (conf.uniqueIndexedData[uniqueKey]) ;
conf.uniqueIndexedData[uniqueKey] = row;
$row.attr(Table.defineHtmlKey.row_data_key, uniqueKey);
c.common.each(conf.headers, function (headConf, cellIndex) {
var $cell = createCell(headConf, row, cellIndex, rowIndex, conf);
$row.append($cell);
});
return $row;
}
/**
* 创建单元格控件
* @param headConf {*} 表头配置
* @param row {*} 行数据
* @param index {number|string} 单元格索引/下标
* @param rowIndex {number} 行索引
* @param conf {*} 表格插件配置
* @return {*} 单元格控件
*/
function createCell(headConf, row, index, rowIndex, conf) {
var
$cell = Table.creator.td,
val = c.ognl.getValue(row, headConf.prop),
typeHandlers = {
index: function () {
Table.logger && Table.logger.info('创建 index 列');
$cell.text(+rowIndex + 1);
},
selection: function () {
Table.logger && Table.logger.info('创建 selection 列');
var $box = Table.creator[('radio' === headConf.selection) ? 'radio' : 'checkbox'];
$cell.append($box);
},
expand: function () {
Table.logger && Table.logger.info('创建 expand 列');
$cell.prepend(Table.creator.expander);
},
text: function () {
Table.logger && Table.logger.info('创建 text 列');
$cell.text(val);
},
enum: function () {
Table.logger && Table.logger.info('创建 enum 列');
$cell.text(val ? headConf.enum[val] : '');
},
date: function () {
Table.logger && Table.logger.info('创建 date 列');
var formattedDate = val ? c.dates.format(val, headConf.dateFormat) : '';
$cell.text(formattedDate)
},
html: function () {
Table.logger && Table.logger.info('创建 html 列');
$cell.html(val);
},
template: function () {
Table.logger && Table.logger.info('创建 template 列');
$cell.html('').append(headConf.template.clone(true));
}
};
c.common.apply(typeHandlers[headConf.type], typeHandlers);
if (headConf.writable) {
var $editable = renderWritable(row, headConf, val);
$cell.html($editable);
}
if (headConf.width)
$cell.addClass(Table.style.overflow_x);
return $cell;
}
/**
* 渲染可编辑控件
* @param row {*} 行数据
* @param headConf {*} 表头配置
* @param val {String} 值
* @return {*} 可编辑控件
*/
function renderWritable(row, headConf, val) {
// 使用 [data-writable] 模板
if (headConf.$writable) {
var
$writable = headConf.$writable.clone(true),
typeHandlers = {
text: function (val) {
return val;
},
enum: function (val) {
return val;
},
date: function (val) {
return val ? c.dates.format(val, headConf.dateFormat) : '';
},
html: function (val) {
return val;
}
};
var handler = typeHandlers[headConf.type];
if (!c.valid.isFunction(handler))
throw '该类型(' + headConf.type + ')不支持可编辑逻辑';
c.common.apply(handler, typeHandlers);
$writable.addClass(Table.style.editable_container).find('[name]').val(val);
return $writable;
}
// 无 [data-writable] 模板
var creator = Table.writableCreator[headConf.type];
if (c.valid.isFunction(creator)) {
var
param = {
value: val,
options: c.objects.asArrayByFirstProperty(headConf.enum, 'value', 'text'),
headConf: headConf
};
var
$child = c.common.apply(creator, row, param),
$editableContainer = Table.writableCreator.editableContainer();
$child.attr(Table.defineHtmlKey.editable_previous_value, param.value);
return $editableContainer.html($child);
} else {
Table.logger && Table.logger.log('[ ' + headConf.type + ' ]类型不支持可编辑逻辑(data-writable)');
}
}
/**
* 删除空数据行
* @param $tbody {jQuery} Table TBody控件
*/
function clearEmptyRow($tbody) {
$tbody.find('.' + Table.style.table_empty_row).remove();
}
/**
* 创建空数据行
* @param $tbody {jQuery} Table TBody 控件
* @param conf {*} 表格插件配置
*/
function createEmptyRow($tbody, conf) {
$tbody.html('');
var
$row = Table.creator.tr.addClass(Table.style.table_row).addClass(Table.style.table_empty_row),
$td = Table.creator.td.addClass(Table.style.empty_td).text('没有数据')
.attr({colSpan: conf.headers.length, 'style': 'text-align:center;'});
$row.append($td).appendTo($tbody);
}
/**
* 模板替换
* @param conf {*} 表格组件配置
*/
function replaceWithTemplate(conf) {
var $template = $('<div>').attr(Table.defineHtmlKey.bounds_key, conf._key).addClass(Table.style.bounds);
conf.templates.$bounds = $template;
// 主视图容器
conf.templates.$main = $('<table>').addClass(Table.style.table);
$('<div>').addClass(Table.style.main_container).append(conf.templates.$main).appendTo($template);
createHeaders(conf, conf.templates.$main);
// 顶部固定视图
if (0 < conf.maxHeight)
(function () {
conf.templates.$bounds.addClass(Table.style.use_fixed_header);
conf.templates.$main.parent().css({'max-height': conf.maxHeight});
var $topContainer = $('<div>').addClass(Table.style.fixed_header_container).appendTo(conf.templates.$bounds);
conf.templates.$top = $('<table>').addClass(Table.style.table).appendTo($topContainer);
createHeaders(conf, conf.templates.$top);
})();
// 左侧固定列视图
if (0 < conf.fixedHeaders.left.length)
(function () {
conf.templates.$bounds.addClass(Table.style.use_fixed_left_header);
var $leftContainer = $('<div>').addClass(Table.style.fixed_left_header_container).appendTo(conf.templates.$bounds);
if (conf.maxHeight) $leftContainer.css({'max-height': conf.maxHeight});
conf.templates.$left = $('<table>').addClass(Table.style.table).appendTo($leftContainer);
var
$head = $('<thead>').appendTo(conf.templates.$left).addClass(Table.style.table_header),
$row = $('<tr>').appendTo($head).addClass(Table.style.table_header_row);
c.common.each(conf.fixedHeaders.left, function (headConf) {
createHeader(headConf).width(headConf.width).appendTo($row);
});
// 支持表头固定
if (0 < conf.maxHeight) {
var
$topContainer = $('<div>').addClass(Table.style.fixed_left_top_header_container).appendTo(conf.templates.$bounds),
$table = $('<table>').addClass(Table.style.table).appendTo($topContainer);
$topContainer.width(conf.templates.$left.parent());
var
$topHead = $('<thead>').appendTo($table).addClass(Table.style.table_header),
$topRow = $('<tr>').appendTo($topHead).addClass(Table.style.table_header_row);
c.common.each(conf.fixedHeaders.left, function (headConf) {
createHeader(headConf).width(headConf.width).appendTo($topRow);
});
}
}());
// TODO 右侧固定视图
if (0 < conf.fixedHeaders.right.length)
(function () {
conf.templates.$bounds.addClass(Table.style.use_fixed_right_header);
var $rightContainer = $('<div>').addClass(Table.style.fixed_right_header_container).appendTo(conf.templates.$bounds);
if (conf.maxHeight) $rightContainer.css({'max-height': conf.maxHeight});
conf.templates.$right = $('<table>').addClass(Table.style.table).appendTo($rightContainer);
var
$head = $('<thead>').appendTo(conf.templates.$right).addClass(Table.style.table_header),
$row = $('<tr>').appendTo($head).addClass(Table.style.table_header_row);
c.common.each(conf.fixedHeaders.right, function (headConf) {
createHeader(headConf).width(headConf.width).appendTo($row);
});
// 支持表头固定
if (0 < conf.maxHeight) {
var
$topContainer = $('<div>').addClass(Table.style.fixed_right_top_header_container).appendTo(conf.templates.$bounds),
$table = $('<table>').addClass(Table.style.table).appendTo($topContainer);
$topContainer.width(conf.templates.$right.parent());
var
$topHead = $('<thead>').appendTo($table).addClass(Table.style.table_header),
$topRow = $('<tr>').appendTo($topHead).addClass(Table.style.table_header_row);
c.common.each(conf.fixedHeaders.right, function (headConf) {
createHeader(headConf).width(headConf.width).appendTo($topRow);
});
}
})();
conf.$table.replaceWith($template);
activeColumnWidthModifier(conf);
}
/**
* 创建表头
* @param conf {*} 配置对象
* @param $table {jQuery} 表格对象
*/
function createHeaders(conf, $table) {
var
$head = $('<thead>').appendTo($table).addClass(Table.style.table_header),
$row = $('<tr>').appendTo($head).addClass(Table.style.table_header_row);
c.common.each(conf.headers, function (headConf) {
var $th = createHeader(headConf);
if (headConf.width)
$th.width(headConf.width);
$row.append($th);
});
}
/**
* 激活列宽调整
* @param conf {*} 插件配置
*/
function activeColumnWidthModifier(conf) {
conf.templates.$bounds.find('.' + Table.style.column_modifier).remove();
// 主视图
(function () {
var
style = Table.style,
leftOffset = 0;
conf.templates.$main
.find('>.' + style.table_header + '>.' + style.table_header_row + '>.' + style.table_header_cell)
.each(function () {
var
$this = $(this),
outerWidth = $this.outerWidth(),
$mover = Table.creator.columnModifier;
$mover.css({
left: outerWidth + leftOffset - 2,
height: $this.outerHeight()
});
leftOffset += outerWidth;
conf.templates.$main.before($mover);
});
conf.templates.$bounds.find('.' + Table.style.column_modifier + ':last').remove();
})();
// 固定表头
if (conf.templates.$top)
(function () {
conf.templates.$top.width(conf.templates.$main.width());
conf.templates.$top.parent().css({overflow: 'hidden'}).width(conf.templates.$main.parent().width() - Table.otherFinalKey.scroll_width);
var $headers = conf.templates.$top.find('.' + Table.style.table_header + ' .' + Table.style.table_header_cell);
// 倒数第二列自动调整宽度无需指定
var $lastHeader = $($headers[$headers.length - 1]);
$lastHeader.width('auto');
delete $headers[$headers.length - 1];
$headers.length -= 1;
conf.templates.$main
.find('.' + Table.style.table_header_row + ':first>.' + Table.style.table_header_cell)
.each(function (index) {
var
$header = $($headers[index]),
width = $(this).width();
$header.width(width);
});
})();
// 左侧固定
if (0 < conf.fixedHeaders.left.length)
(function () {
jsu.common.each(conf.fixedHeaders.left, function (headConf, index) {
var
$th = conf.templates.$left.find('.' + Table.style.table_header_row + ':first>.' + Table.style.table_header_cell).eq(index),
$topTh = conf.templates.$bounds.find('.' + Table.style.fixed_left_top_header_container).find('.' + Table.style.table_header_row + ':first>.' + Table.style.table_header_cell).eq(index),
$mainTh = conf.templates.$main.find('.' + Table.style.table_header_row + ':first>.' + Table.style.table_header_cell).eq(index);
$th.width($mainTh.width());
$th.height($mainTh.height());
$topTh.width($mainTh.width());
$topTh.height($mainTh.height());
});
// 行高与主视图一致
var rowSelector = '>.' + Table.style.table_body + '>.' + Table.style.table_row;
conf.templates.$main
.find(rowSelector + '[' + Table.defineHtmlKey.row_data_key + ']')
.each(function (index) {
var $row = conf.templates.$left.find(rowSelector).eq(index);
$row.height($(this).height());
});
})();
// 右侧固定
if (0 < conf.fixedHeaders.right.length)
(function () {
var
headerLen = conf.headers.length,
offset = headerLen - conf.fixedHeaders.right.length;
jsu.common.each(conf.fixedHeaders.right, function (headConf, index) {
var
$th = conf.templates.$right.find('.' + Table.style.table_header_row + ':first>.' + Table.style.table_header_cell).eq(index),
$topTh = conf.templates.$bounds.find('.' + Table.style.fixed_right_top_header_container + ' .' + Table.style.table_header_row + ':first>.' + Table.style.table_header_cell).eq(index),
$mainTh = conf.templates.$main.find('.' + Table.style.table_header_row + ':first>.' + Table.style.table_header_cell).eq(offset + index);
$th.width($mainTh.width());
$th.height($mainTh.height());
$topTh.width($mainTh.width());
$topTh.height($mainTh.height());
});
// 行高与主视图一致
var rowSelector = '>.' + Table.style.table_body + '>.' + Table.style.table_row;
conf.templates.$main
.find(rowSelector + '[' + Table.defineHtmlKey.row_data_key + ']')
.each(function (index) {
var $row = conf.templates.$left.find(rowSelector).eq(index);
$row.height($(this).height());
});
})();
}
/**
* 创建表头
* @param headConf {*} 表头配置
*/
function createHeader(headConf) {
var $th = $('<th>').text(headConf.text).addClass(Table.style.table_header_cell);
if (('selection' === headConf.type) && ('checkbox' === headConf.selection)) {
var $thSelection = $('<input>', {type: 'checkbox', class: Table.style.selection_checkbox});
$thSelection.prependTo($th);
}
return $th;
}
/**
* 解析表头配置值
* @param $th {jQuery} 表头控件
* @return {*}
*/
function parseHeaderConfig($th) {
Table.logger && Table.logger.log('开始解析表头 >>>', $th);
var
dataSet = $th[0].dataset || {},
headConfig = {
type: dataSet.type || 'text', // 'index|selection|expand|text|enum|date|html|template',
selection: null, // 'radio|checkbox',
prop: dataSet.prop || '',
'enum': null,
dateFormat: dataSet.dateFormat || '', // 'yyyy-MM-dd hh:mm:ss:S',
text: null, //dataSet.text || $th.text() || '',
template: null,
$origin: $th,
writable: false,
$writable: null,
fixed: dataSet.fixed, // 'left|right'
width: dataSet.width
};
if (headConfig.fixed && -1 === ['left', 'right'].indexOf(headConfig.fixed)) {
headConfig.fixed = null;
Table.logger.warn('data-fixed配置无效, 只允许"left"或"right"两个值');
}
if (headConfig.width && 0 >= headConfig.width) {
Table.logger.warn('data-width配置无效, 必须是大于0[' + headConfig.width + ']');
headConfig.width = null;
} else {
headConfig.width = +headConfig.width || null;
}
// [data-writable]
headConfig.writable = !c.valid.nullOrUndefined(dataSet.writable);
if (headConfig.writable) {
var $definition = $th.find('[' + Table.defineHtmlKey.editable_template + ']:first');
headConfig.$writable = ($definition.length && $definition.find('[name]:first').length) ? $definition : null;
}
if (!(headConfig.text = dataSet.text)) {
c.common.each($th[0].childNodes, function (node) {
if (c.valid.isTextNode(node)) {
headConfig.text = node.textContent;
return false;
}
});
}
headConfig.text = $.trim(headConfig.text);
// selection: type=radio|checkbox
if ('selection' === headConfig.type) {
(function () {
var selection = dataSet.selection || 'checkbox';
switch (selection.toLowerCase()) {
case 'radio':
case 'checkbox':
headConfig.selection = selection;
break;
default:
var
err = '无效的表头配置',
html = $th[0].outerHTML.split('\n')[0];
err += '\n' + html;
var index = html.indexOf('data-selection');
err += '\n' + c.strings.repeat(' ', index) + '^^^^';
throw err;
}
})();
}
// expand: type=expand
else if ('expand' === headConfig.type) {
(function () {
var $tpl = $th.find('[data-expand]:first').hide();
headConfig.template = $tpl.clone(true).show();
if (!headConfig.template.length) {
var
err = '无效的表头配置, 表头控件内未找到expand模板 (<div data-expand>扩张行模板内容</div>)',
html = $th[0].outerHTML.split('\n')[0];
err += '\n' + html;
var index = html.indexOf('data-type="expand"');
err += '\n' + c.strings.repeat(' ', index) + '^^^^';
throw err;
}
})();
}
// enum: type=enum
else if ('enum' === headConfig.type) {
(function () {
var
enumStr = dataSet['enum'],
_enum = null;
// 常规JSON转换
try {
_enum = JSON.parse(enumStr);
} catch (ignore) {
}
// 非常规JSON转换
try {
_enum = eval('(' + enumStr + ')');
} catch (e) {
}
if (!(_enum && c.valid.isObject(_enum))) {
var
err = '无效的表头配置',
html = $th[0].outerHTML.split('\n')[0];
err += '\n' + html;
var index = html.indexOf('data-enum');
err += '\n' + c.strings.repeat(' ', index) + '^^^^';
throw err;
}
headConfig['enum'] = _enum;
})();
}
// template: type=template
else if ('template' === headConfig.type) {
(function () {
var $tpl = $th.find('[data-template]:first').hide();
headConfig.template = $tpl.clone(true).show();
if (!headConfig.template.length) {
var
err = '无效的表头配置, 表头控件内未找到template模板 (<div data-template>模板内容</div>)',
html = $th[0].outerHTML.split('\n')[0];
err += '\n' + html;
var index = html.indexOf('data-type="template"');
err += '\n' + c.strings.repeat(' ', index) + '^^^^';
throw err;
}
})();
}
Table.logger && Table.logger.log('完成解析表头 >>>', $th, headConfig);
return headConfig;
}
/**
* 解析表格容器配置
* @param $table {jQuery} 表格控件
* @param conf {*} 表格组件配置
*/
function parseTableConfig($table, conf) {
conf.$table = $table;
var tableDataSet = $table[0].dataset || {
pagination: null,
url: null,
reload: null,
sizes: null,
count: null,
layout: null,
maxHeight: -1
};
// 启用pagination插件
if (!c.valid.nullOrUndefined(tableDataSet.pagination)) {
c.objects.copyProps(tableDataSet, conf.pagination);
conf.pagination._enable = true;
delete conf.pagination.pagination;
if (!c.valid.isFunction(c.Pager))
throw '未检测到Pager插件';
}
// 启用固定表头
if (tableDataSet.maxHeight) {
if (0 < tableDataSet.maxHeight)
conf.maxHeight = +tableDataSet.maxHeight;
else
Table.logger.warn('固定高度配置无效[data-max-height=' + tableDataSet.maxHeight + '], 只接受数值类型');
}
}
/**
* 获取配置
* @param self {Table} 表格对象
* @param [$c] {jQuery|Element} 表格容器对象
* @param [checkAlive=true] {Boolean} true-destroy校验
* @return {*}
*/
function getConf(self, $c, checkAlive) {
var conf = Table.cache[self.key] = (Table.cache[self.key] || {
_key: self.key,
self: self,
data: null, // 原数据
uniqueIndexedData: {}, // 原数据额外索引: K-RowDataUniqueIndex, V-RowData
expandIndexedCache: {}, // 展开行缓存: K-RowDataUniqueIndex,V-jQuery,
selectionDataUniqueIndex: [], // 选中的数据索引
events: {
cellReady: null, // 单元格准备就绪, 挂载到行视图前
rowReady: null, // 行视图准备就绪, 挂载到表格控件前
updated: null, // 表格刷新后
mouseEnter: null, // 鼠标进入数据行
mouseLeave: null, // 鼠标离开数据行
rowClick: null, // 行点击数据行
cellClick: null, // 单元格点击数据行
action: null, // 选中数据行
expandOpen: null, // 扩展行打开前
expandOpened: null, // 扩展行打开后
expandClose: null, // 扩展行关闭前
expandClosed: null // 扩展行关闭后
},
$container: c.valid.isJQuery($c) ? $c : $($c),
$table: null, // 原表格控件
templates: {
$bounds: null, // 主容器
$main: null, // 主视图
$left: null, // 左侧列定位
$right: null, // 右侧列定位
$top: null // 表头定位
},
headers: [],
fixedHeaders: {
left: [], // 左侧固定列
right: [] // 右侧固定列
},
swapper: {
$start: null, // 起始列
$target: null // 结束列
},
widthModifier: {
$trigger: null // 激活的宽度调节器
},
pagination: {
_enable: false, // 是否启用Pager插件,
events: {}, // 委托事件
$container: null, // Pager容器
$pager: null, // Pager插件依赖视图
pager: null, // Pager插件实例
url: null,
reload: null,
sizes: null,
count: null,
layout: null
},
maxHeight: -1,
loaded: false,
destroyed: false,
dev: false
});
if ((checkAlive || c.valid.nullOrUndefined(checkAlive)) && conf.destroyed)
throw '已卸载插件, 无法继续使用';
return conf;
}
Table.logger && Table.logger.info('载入Logger API', Table.dir = {
api: Table.prototype,
'[[constructor]]': 'Table($container, autoInit, dev), $container-表格(容器使用内部使用table:first), autoInit-自动初始化, dev-调试模式打印更多日志',
eg: 'var table = new jsu.Table($tableContainer);',
egPagination: '自动加载分页插件需要配置示例:\n' +
'<table class="table"\n' +
' data-pagination\n' +
' data-url=\'Page.jsp\'\n' +
' data-reload=\'true\'\n' +
' data-sizes=\'10,20,50,100\'\n' +
' data-count=\'7\'\n' +
' data-layout="total, sizes, prev, pager, next, jumper">'
});
})(window.jsu = (window.jsu || {}));
<file_sep>/* ************************************
* common 常规工具
* ************************************/
;(function (c) {
'use strict';
c.common = {
/**
* 数组/对象遍历
* @param obj {Array|Object} 数组/对象
* @param each {function(val:*, key:number|string):?boolean} 处理器
*/
each: function (obj, each) {
if (c.valid.isArray(obj)) {
for (var i = 0, len = obj.length; i < len; i++)
if (false === c.common.apply(each, obj[i], obj[i], i))
break;
}
else {
for (var i in obj)
if (false === c.common.apply(each, obj[i], obj[i], i))
break;
}
},
/**
* 执行函数
* @param fn {Function} 函数
* @param [ctxt] {Object} 执行上下文
* @param [psn] {*} 执行参数, param_1, param_2, ...param_n
* @return {*|Object|void} 执行结果
*/
apply: function (fn, ctxt, psn) {
if (c.valid.isFunction(fn))
return fn.apply(ctxt, Array.prototype.slice.call(arguments, 2));
},
/**
* 依赖于 fontawesome 实现 loading 幕布
* @param show {boolean} undefined|true-显示, false-隐藏
* @param $container 需要遮盖的容器, 默认 $body
*/
loading: function (show, $container) {
$container = $($container);
var $head = $("head");
if (!$container.length)
$container = $("body");
if (!$head.find("#loading-link").length) {
var css = ".loading-body{overflow:hidden; position:relative; pointer-events:none;}" +
".loading-screen{position:absolute;top:0;left:0;width:100%;height:100%;opacity:.2;background:#000;z-index:999999999;}" +
".c{position:absolute;top:50%;left:50%;text-align:center;color:#FFF;z-index:999999999;font-size:1.5rem;}" +
// ".c:after{content:'加载中';display:block;}" +
".loading-screen .fa{font-size:28px;}";
$("<style>", {id: "loading-link"}).text(css).appendTo($head);
}
if (!$container.find(".loading-screen").length) {
var
screen = $("<div>").addClass("loading-screen").appendTo($container),
content = $("<div>").addClass("c").appendTo(screen);
$("<i>").addClass("fa fa-spinner fa-pulse fa-3x fa-fw margin-bottom").appendTo(content);
}
if (undefined === show || show)
$container
.addClass("loading-body")
.find(".loading-screen").show();
else
$container
.removeClass("loading-body")
.find(".loading-screen").hide();
},
/**
* 获取请求路径
* @param useFirstDir {Boolean} truth-使用location.path第一个查询路径
* @param path {String} 需要追加的路径
* @return {string} 完整请求地址
*/
requestUrl: function (useFirstDir, path) {
if (self.fullUrl(path))
return path;
path = self.getRelativePath(path);
var
base = location.origin + "/",
url = base,
mather = location.pathname.match(/[^\/\\]+/);
var index = path.indexOf(location.origin);
if (-1 !== index)
path = path.substr(location.origin.length);
if (useFirstDir && mather)
url += self.getRelativePath(mather[0]) + "/";
return url + path;
},
/**
* arguments 转成数组
* @param args {Object} arguments
* @returns {Array}
*/
argumentsAsArray: function (args) {
var ret = [];
// for (var i = 0, l = args.length; i < l; i++)
// ret.push(args[i]);
ret.push.apply(ret, args);
return ret;
},
/**
* 计时器
* @param invoker {function()} 执行函数
* @param [time=20] {Number} 间隔时间
* @param [loop=false] {Boolean} true-循环执行
* @return {function()} true===loop, 执行返回函数后停止
*/
timer: function (invoker, time, loop) {
var id = setInterval(function () {
if (true !== loop)
clearInterval(id);
c.common.apply(invoker);
}, isNaN(time) ? 20 : time);
return function () {
clearInterval(id);
}
},
/**
* 简单遍历
* @param start {Number|*} 开始值(包含)
* @param step=1 {Number|function(prev):next|undefined|null} 下个值, 返回null/undefined终止. 如果start是对象该值必须是函数
* @param [end=0] {Number|*} 结束值(不包含), 如果start是对象该值为处理器函数
* @param fn {function(val):boolean} 处理函数, 返回false终止
*/
forNext: function (start, step, end, fn) {
if (c.valid.nullOrUndefined(start))
return;
var byNumber = c.valid.isNumber(start);
if (byNumber) {
if (start > end) {
for (; start > end; start -= step)
if (false === c.common.apply(fn, start, start))
break;
} else {
for (; start < end; start += step)
if (false === c.common.apply(fn, start, start))
break;
}
return;
}
// 对象必须使用函数来处理
if (!c.valid.isFunction(step))
throw 'start为对象时, step必须为函数';
if (c.valid.isFunction(end)) {
fn = end;
end = null;
}
do {
if (false === c.common.apply(fn, start, start))
break;
start = c.common.apply(step, start, start)
} while (!c.valid.nullOrUndefined(start));
},
/**
* 生成GUID
* @param toUpperCase {boolean} true-转换为大写, 默认为小写
* @param notSeparator {boolean} true-删除分隔符,仅保留字母数字
* @returns {string} GUID字符串
*/
uuid: function (toUpperCase, notSeparator) {
var s = (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());
if (toUpperCase) s = s.toUpperCase();
if (notSeparator) s = s.replace(/(-)/g, '');
return s;
function S4() {
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
}
}
};
})(window.jsu = (window.jsu || {}));
/* ************************************
* objects 对象工具集
* ************************************/
(function (c) {
'use strict';
c.objects = ({
/**
* 对象数据克隆
* @param obj {object|Array} 目标对象
* @param [useful=false] {boolean} true-只保留非{@link null}和{@link undefined}值
* @return {*} 被克隆数据
*/
clone: function (obj, useful) {
if (!c.valid.isObject(obj)) return obj;
var co = JSON.parse(JSON.stringify(obj));
if (useful)
c.common.each(co, function (v, k) {
if (null === v || undefined === v)
delete co[k];
});
return co;
},
/**
* 属性复制
* @param src {object} 数据来源
* @param [useful=false] {boolean} true-只保留非{@link null}和{@link undefined}值
* @param [dest={}] {object} 目标对象
* @return {*|{}}
*/
copyProps: function (src, dest, useful) {
dest = dest || {};
c.common.each(c.objects.clone(src, useful), function (v, k) {
dest[k] = v;
});
return dest;
},
/**
* ognl属性还原为对象
* @param data 源数据
* @return {object} 还原后对象
*/
parseOgnlAttrs: function (data) {
var ret = {};
c.common.each(data, function (v, k) {
c.ognl.setValue(k, v, ret);
});
return ret;
},
/**
* 展开对象为一级属性
* @param o {object} 源数据
* @param skipNullOrUndef=true {boolean} 过滤null&undefined值
* @param ret={} {object} 保存展开属性
* @return {*} 只包含一级属性的对象
*/
asPrimary: function (o, skipNullOrUndef, ret) {
skipNullOrUndef = true || (undefined === skipNullOrUndef);
ret = ret || {};
ext(this.clone(o), null, ret);
return ret;
function ext(json, prefix, ret) {
var isArr = c.valid.isArray(json);
c.common.each(json, function (v, k) {
if (skipNullOrUndef && (c.valid.nullOrUndefined(v) || '' === v))
return true;
// 数组或数字属性名都是用中括号'[]'
var nk;
if (isArr || !isNaN(k)) nk = prefix ? (prefix + "[" + k + "]") : k;
else nk = prefix ? (prefix + "." + k) : k;
// 赋值
if (!c.valid.isObject(v)) ret[nk] = v;
else ext(v, nk, ret);
});
return ret;
}
},
/**
* 展开对象一级属性(排除函数)并保存到对象数组中
* @param o {Object} 对象
* @param keyName {String} 用于保存对象属性名的数组项属性名
* @param valueName {String} 用于保存对象属性值的数组项属性名
* @return {Array|null} 一级属性对象数组, [{keyName:key_1, valueMame:value_1}...{keyName:key_n, valueMame:value_n}]
*/
asArrayByFirstProperty: function (o, keyName, valueName) {
if (c.valid.isObject(o)) {
var ret = [];
c.common.each(o, function (v, k) {
var el = {};
el[keyName] = k;
el[valueName] = v;
ret.push(el)
});
return ret;
} else {
return null;
}
},
/**
* 获取对象值列表
* @param o {Object} 对象
* @param keys {String|Array|function(v,k,o)|undefined} 属性名(列表), 或滤函数返回true, 或不指定获取所有属性值
* @return {Array} 值列表
*/
values: function (o, keys) {
if (c.valid.isString(keys))
keys = [keys];
var filter;
if (c.valid.isArray(keys))
filter = function (v, k) {
return -1 !== keys.indexOf(k);
};
if (!c.valid.isFunction(filter))
filter = function () {
return true;
};
var ret = [];
c.common.each(o, function (v, k) {
if (false !== filter(v, k, o))
ret.push(v);
});
return ret;
},
/**
* 获取对象键列表
* @param {Object|Array} o 对象
* @param {Function} [fn] 前置处理器, 参数:v, k, o, 返回值:false-跳过
* @return {Array} 键列表
*/
keys: function (o, fn) {
var keys = [];
c.common.each(o, function (v, k) {
if (false !== c.common.apply(fn, o, v, k, o))
keys.push(k);
});
return keys;
},
/**
* 获取第一个与v相同值的key
* @param o {Object} 对象
* @param v {Object|function(ov:*, k:number|string, o:*):boolean} 参考值或函数返回true表示找到
* @return {undefined|*} 第一个匹配到的属性名(与顺序无关)
*/
getKeyByValue: function (o, v) {
if (c.valid.nullOrUndefined(o)) throw '参数o不是Object类型';
var predicate = v;
if (c.valid.nullOrUndefined(v)) predicate = function (ov) {
return c.valid.nullOrUndefined(ov);
};
else if (!c.valid.isFunction(v)) predicate = function (ov) {
return ov === v;
};
var ret = undefined;
c.common.each(o, function (ov, k) {
if (true === predicate(ov, k, o)) {
ret = k;
return false;
}
});
return ret;
},
/**
* 指定值获取拥有该值的属性名列表
* @param o {*} 对象
* @param v {Object|function(v:*,k:number|string,o:*):boolean} 参考值或函数返回true表示找到
* @return {Array}
*/
getKeysByValue: function (o, v) {
if (c.valid.nullOrUndefined(o)) throw '参数o不是Object类型';
var predicate = v;
if (c.valid.nullOrUndefined(v)) predicate = function (ov) {
return c.valid.nullOrUndefined(ov);
};
else if (!c.valid.isFunction(v)) predicate = function (ov) {
return ov === v;
};
var keys = [];
c.common.each(o, function (v, k) {
if (true === predicate(v, k, o)) keys.push(k);
});
return keys;
},
/**
* 删除对象指定属性名
* @param o {*} 对象
* @param keys {Object|Array|function(v:*,k:*,o:*):boolean}
* @return {*|undefined} 成功移除的属性
*/
removeKeys: function (o, keys) {
if (c.valid.nullOrUndefined(o)) throw '参数o不是Object类型';
if (c.valid.nullOrUndefined(keys)) throw '参数keys必须是Object|Array|Function类型';
var predicate;
if (c.valid.isFunction(keys)) predicate = keys;
else {
if (!c.valid.isArray(keys)) keys = [keys];
predicate = function (v, k) {
return -1 !== keys.indexOf(k);
}
}
var ret = {}, optionSuccess = false;
c.common.each(o, function (v, k) {
if (true === predicate(v, k, o)) {
ret[k] = v;
delete o[k];
optionSuccess = true;
}
});
if (optionSuccess)
return ret;
}
});
})(window.jsu = (window.jsu || {}));
/* ************************************
* $common jQuery增强工具
* ************************************/
(function (c) {
'use strict';
c.$common = {
/**
* 获取指定控件盒模型
* @param $el
* @return {{$el: *, offset: (*|{left, top}|{top, left}), position: (*|{top, left}), width, realWidth: *, boxWidth: *, height, realHeight: *, boxHeight: *}}
*/
box: function ($el) {
$el = $($el);
return {
$el: $el,
offset: $el.offset(),
position: $el.position(),
width: $el.width(),
realWidth: $el.outerWidth(),
boxWidth: $el.outerWidth(true),
height: $el.height(),
realHeight: $el.outerHeight(),
boxHeight: $el.outerHeight(true),
padding: {
top: parseInt($el.css("padding-top")),
right: parseInt($el.css("padding-right")),
bottom: parseInt($el.css("padding-bottom")),
left: parseInt($el.css("padding-left")),
asStyle: function () {
var unit = "px ";
return this.top + unit + this.right + unit + this.bottom + unit + this.left + unit;
}
},
margin: {
top: parseInt($el.css("margin-top")),
right: parseInt($el.css("margin-right")),
bottom: parseInt($el.css("margin-bottom")),
left: parseInt($el.css("margin-left")),
asStyle: function () {
var unit = "px ";
return this.top + unit + this.right + unit + this.bottom + unit + this.left + unit;
}
}
};
},
/**
* 注册唯一委托事件
* @param ctxt {jQuery} 被委托对象
* @param selector {String} 选择器
* @param events {String} 事件名, 多个事件使用空格分割
* @param fn {Function} 事件处理器
* @returns 被委托对象
*/
uniqueDelegate: function (ctxt, selector, events, fn) {
ctxt = $(ctxt);
if (!c.valid.isJQuery(ctxt)) throw new Error("Delegatable must be instance of jQuery");
ctxt.undelegate(selector, events);
if (c.valid.isFunction(fn))
ctxt.delegate(selector, events, fn);
return ctxt;
},
/**
* 阻止事件冒泡
* @param e {Object} 事件对象
*/
stopPropagation: function (e) {
c.common.apply(e.stopPropagation, e);
},
/**
* 一个或一组字符串转换为同级关联样式类
* @param arguments 目标字符串(s), 或s1, s2, ...SN
* @returns {string}
*/
asClass: function () {
var cls = "";
var ps = c.common.argumentsAsArray(arguments);
c.common.each(ps, function (v) {
var s = (v + "").replace(/\s+/g, ".");
s = s.replace(/\.+/g, ".");
if (0 === s.indexOf(".")) s = s.substr(1);
cls += "." + s;
});
return cls;
},
_elCreatorReady: false,
/**
* 使用jQuery创建元素
* @returns {jQuery}
*/
get els() {
if (this._elCreatorReady) return this._els;
this._elCreatorReady = true;
var watchProps = {};
c.common.each(
[
"a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big",
"blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "command",
"datalist", "dd", "del", "details", "div", "dfn", "dialog", "dl", "dt", "em", "embed", "fieldset",
"figcaption", "figure", "footer", "form", "frame", "frameset", "h1", "head", "header", "hr", "html",
"i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "map",
"mark", "menu", "menuitem", "meta", "meter", "nav", "noframes", "noscript", "object", "ol", "optgroup",
"option", "output", "p", "param", "pre", "progress", "q", "rp", "rt", "ruby", "samp", "script",
"section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table",
"tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "tt", "ul",
"var", "video", "wbr"
],
function (v) {
watchProps[v] = {
get: function () {
return $("<" + v + ">");
}
}
}
);
var data = {};
Object.defineProperties(data, watchProps);
Object.defineProperty(this, "_els", {value: data});
return data;
},
/**
* 填充select控件
* @param name {String} name属性值
* @param value {String} 填充完成后选中值
* @param options {Array<{text, value}>} 选项数据, text-选项文本, value-选项值
* @param [$select] {jQuery} select控件包装对象, 如果为null使用全新select控件
* @return {*} $select控件
*/
selectFill: function (name, value, options, $select) {
if (!c.valid.isJQuery($select))
$select = $('<select>');
if (!/^select$/ig.test($select[0].tagName))
throw '参数 $select 不是html select控件';
$select.html('').attr({name: name});
c.common.each(options, function (opt) {
$('<option>', {html: opt.text, value: opt.value}).appendTo($select);
});
return $select.val(value);
}
};
})(window.jsu = (window.jsu || {}));
/* ************************************
* strings 字符串工具集
* ************************************/
(function (c) {
'use strict';
c.strings = {
/**
* 重复指定字符
* @param s {Number|Boolean|String} 字符串
* @param times {Number} 重复次数
* @return {string} 结果字符串
*/
repeat: function (s, times) {
if (c.valid.isFunction(Array.prototype.fill)) {
var arr = new Array(times);
arr.fill(s, 0);
return arr.join('');
}
var ret = '';
while (--len >= 0) ret += s;
return ret;
},
/**
* 去除指定字符串两端空格
* @param s {String|*} 目标字符串, undefined|null总是返回空字符串
* @return {*} 两端无空白字符串
*/
trim: function (s) {
if (c.valid.nullOrUndefined(s))
return '';
s += '';
if (c.valid.isFunction(s.trim))
return s.trim();
return $.trim(s);
}
};
})(window.jsu = (window.jsu || {}));
/* ************************************
* arrays 数组工具集
* ************************************/
(function (c) {
'use strict';
c.arrays = {
/**
* 从数据中移除元素
* @param arr {Array} 源数组
* @param el {object|Array} 要移除的元素
* @param [predicate] {string|function(object, object):boolean} 断言字段名或函数(true-移除)
* @return {Array} 被移除的元素
*/
remove: function (arr, el, predicate) {
if (!c.valid.isArray(arr)) throw new Error("参数 arr 不是一个数组");
if (!c.valid.isArray(el)) el = [el];
var p = predicate;
if (c.valid.isString(predicate))
p = function (el1, el2) {
return el1[predicate] === el2[predicate];
};
if (!c.valid.isFunction(p))
p = function (a, b) {
return a === b;
};
var delIdxs = [];
c.common.each(el, function (v) {
c.common.each(arr, function (v1, i) {
if (p(v, v1)) {
delIdxs.push(i);
return false;
}
});
});
delIdxs.sort();
delIdxs.reverse();
var ret = [];
c.common.each(delIdxs, function (delIdx) {
ret.push(arr.splice(delIdx, 1)[0]);
});
ret.reverse();
return ret;
},
/**
* 尾部追加元素
* @param arr {Array} 源数组
* @param el {object|Array} 追加的元素
* @param [distinct=true] {boolean} true-保证数据元素唯一性
* @return {Array} 源数组
*/
push: function (arr, el, distinct) {
if (!c.valid.isArray(arr)) throw new Error("参数 arr 不是一个数组");
if (!c.valid.isArray(el)) el = [el];
Array.prototype.push.apply(arr, el);
if (distinct || c.valid.nullOrUndefined(distinct))
c.arrays.unique(arr);
return arr;
},
/**
* 头部追加元素
* @param arr {Array} 源数组
* @param el {object|Array} 追加的元素
* @param [distinct=true] {boolean} true-保证数据元素唯一性
* @return {Array} 源数组
*/
appendBefore: function (arr, el, distinct) {
if (!c.valid.isArray(arr)) throw new Error("参数 arr 不是一个数组");
if (!c.valid.isArray(el)) el = [el];
Array.prototype.unshift.apply(arr, el);
if (distinct || c.valid.nullOrUndefined(distinct))
c.arrays.unique(arr);
return arr;
},
/**
* 确保数组元素唯一性
* @param arr {Array} 数组
* @param [k] {string} 匹配属性
* @return {Array} 源数组
*/
unique: function (arr, k) {
if (!c.valid.isArray(arr)) throw new Error("参数 arr 不是一个数组");
if (!c.valid.nullOrUndefined(k)) {
var map = {}, kmap = {};
c.common.each(arr, function (v, i) {
var val = v[k];
map[val] = v;
kmap[val] = i;
});
return c.common.values(map);
}
var tmp = [];
c.common.each(arr, function (v) {
if (-1 === tmp.indexOf(v)) tmp.push(v);
});
arr.length = 0;
Array.prototype.push.apply(arr, tmp);
return arr;
},
/**
* 提取每个元素的值
* @param arr {Array} 目标数组
* @param prop {string} 属性名
* @return {Array} 属性值列表
*/
extValues: function (arr, prop) {
if (!c.valid.isArray(arr)) throw new Error("参数 arr 不是一个数组");
var ret = [];
c.common.each(arr, function (v) {
ret.push(v[prop]);
});
return ret;
},
/**
* 获取数组元素最大值
* @param arr {Array} 目标数组
* @param [key] {String} key-元素属性, 如果不指定则直接比较两个元素; 如果元素不是{number}类型, 返回NaN
* @return {number} 最大值
*/
max: function (arr, key) {
if (!c.valid.isArray(arr)) throw new Error("参数 arr 不是一个数组");
var ret = null;
c.common.each(arr, function (data) {
ret = Math.max(ret, +(key ? data[key] : data));
});
return ret;
},
/**
* 查找指定值在数组中的位置
* @param ps
* @param ps.list {Array} 目标数组
* @param ps.value {object} 要匹配的值
* @param [ps.key] {String} 属性名, 支持OGNL表达式
* @return {number}
*/
indexOf: function (ps) {
if (!c.valid.isArray(ps.list)) throw new Error("参数 arr 不是一个数组");
var index = -1;
c.common.each(ps.list, function (el, k) {
var v = ps.key ? el[ps.key] : el;
if (ps.value === v) {
index = k;
return false;
}
});
return index;
},
/**
* 展开数组, 并展开为一级属性(带下表)
* @param conf {Object} 配置
* @param conf.prefix {String} 参数前缀, VO对象属性名; 仅对conf.list数组元素有效
* @param conf.list {Array} 对象数组
* @param [conf.useAll=false] {boolean} true-递归展开所有数组元素, 前缀为属性名
* @param [conf.suffix] {String} 属性后缀; 仅对conf.list数组元素有效
* @param [conf.keysAlias] {{key:value}} key-源数姓名, value:目标数姓名 别名属性;非空时仅保留别名中包含的属性
* @param [conf.each] {function(data, index)} 为每个元素提供转换之前修改数据的能力
* @return {Object} HTML请求参数, eg.{conf.prefix[i]:value, ...}
*/
asPrimaryKey: function (conf) {
if (!c.valid.isArray(conf.list)) throw new Error("参数conf.list不是一个数组");
var
data = {},
suffix = c.valid.nullOrUndefined(conf.suffix) ? "" : ("." + conf.suffix);
c.common.each(conf.list, function (d, index) {
if (!d) return true;
c.common.invoke(data, conf.each, d, index);
var pre = conf.prefix + "[" + index + "]";
// 一级属性
if (c.valid.isObject(d)) {
data[pre + suffix] = d;
return true;
}
// 二级属性
c.common.each(d, function (v, k) {
if (c.valid.isObject(conf.keysAlias)) k = conf.keysAlias[k];
if (!k) return true;
var fk = pre + "." + k + suffix;
data[fk] = v;
});
});
if (!conf.useAll) return data;
findAll();
return data;
function findAll() {
var found = false;
c.common.each(data, function (v, k) {
if (c.valid.isArray(v)) {
found = true;
delete data[k];
var cd = c.arrays.asPrimaryKey({
prefix: k,
list: v
});
c.objects.copyProps(cd, data, true);
}
});
if (found) findAll();
}
},
/**
* 对象数组转换为对象映射关系
* @param arr {Array} 对象数组
* @param key {String} 元素属性名,不指定时使用下标代替
* @param [defIndex=true] {boolean} true|undefined-属性名不存在时使用下标代替, false-跳过
* @return {Object} 对象映射关系
*/
asMap: function (arr, key, defIndex) {
if (!c.valid.isArray(arr)) return {};
var
map = {},
notKey = c.valid.nullOrUndefined(key),
useIndex = (defIndex || (undefined === defIndex)) ? true : defIndex;
c.common.each(arr, function (d, index) {
// 未指定key, 直接使用下标作为索引
if (notKey) map[index] = d;
// key存在, 使用key指定的value作为索引
else if (key in d) map[c.ognl.getValue(d, key)] = d;
// key不存在但允许使用下标作为索引
else if (useIndex) map[index] = d;
});
return map;
},
/**
* 数组列表分组
* @param arr {Array} 数组列表
* @param key {string|function(el:*,index:number, arr:Array):string} (函数需返回)分组属性名, 相同值将分为同一组
* @param [useUndefinedKey=false] {boolean} true-数组元素不存在指定属性时任然保留, undefined|false-过滤不存在指定属性(或返回null|undefined)的元素
* @return {*} K:string - 指定属性值, V:Array - 与K匹配的元素列表
*/
group: function (arr, key, useUndefinedKey) {
if (!c.valid.isArray(arr)) throw new Error('参数arr不是一个Array类型');
var keyFn;
if (c.valid.isFunction(key)) keyFn = key;
else if (c.valid.isString(key)) keyFn = function (el) {
if (c.valid.nullOrUndefined(el))
return undefined;
return el[key];
};
else throw new Error('参数key无效, 可接受类型: {string|function(el, index, arr):string|*}');
var group = {};
c.common.each(arr, function (el, index) {
var groupKey = keyFn(el, index, arr);
if (c.valid.nullOrUndefined(groupKey) && !useUndefinedKey)
return;
groupKey += '';
var list = group[groupKey] = group[groupKey] || [];
list.push(el);
});
return group;
},
/**
* 数组排序
* @param arr {Array} 目标数组
* @param [key=undefined] {String|number|null|undefined} 用于排序的key, 默认不使用
* @return {*} 排序后的数组
*/
sortBy: function (arr, key) {
if (!c.valid.isArray(arr)) throw new Error("参数 arr 不是一个数组");
var matchEl = c.valid.nullOrUndefined(key);
arr.sort(function (a, b) {
if (matchEl) return a - b;
else return c.ognl.getValue(a, key) - c.ognl.getValue(b, key);
});
return arr;
},
/**
* 去除元素两端空白字符(注意: 该函数会将所有元素转换为字符串)
* @param arr {Array<String>} 字符串数组
* @param [after] {function(_el, index, el):*} 后置处理器, 返回元素值
* @return {*} 参数arr
*/
trims: function (arr, after) {
if (!c.valid.isArray(arr))
throw '参数arr不是Array实例';
c.common.each(arr, function (el, index) {
var
_el = c.strings.trim(el),
newlyEl = c.common.apply(after, _el, _el, index, el);
_el = c.valid.nullOrUndefined(newlyEl) ? _el : newlyEl;
arr.splice(index, 1, _el);
});
return arr;
},
/**
* 添加或移除指定数组元素
* @param arr {Array} 数组对象
* @param el {*} 指定元素(存在执行删除, 不存在就添加)
* @return {number} el在arr修改前的位置, 如果不存在返回-1
*/
toggle: function (arr, el) {
if (!c.valid.isArray(arr))
throw '参数arr不是数组';
var index = arr.indexOf(el);
if (-1 === index)
arr.push(el);
else
c.arrays.remove(arr, el);
return index;
},
/**
* 校验指定对象是否存在数组中
* @param arr {Array} 数组
* @param el {Object|function(ele:*,index:number):?boolean} Object类型使用'===比较, Function返回true表示找到
* @param [predicate] {string|function(ele:*,index:number):?boolean} string类型指定比较的属性名, Function返回true表示找到
* @return {boolean} true-存在, false-不存在
*/
contains: function (arr, el, predicate) {
if (!c.valid.isArray(arr))
throw '参数arr不是Array实例';
// 未指定el修复
if (c.valid.isFunction(el)) {
predicate = el;
el = {};
}
// 使用断言属性名
if (c.valid.isString(predicate)) {
var
key = predicate,
inEl = (key in el);
predicate = function (ele) {
return c.valid.isObject(ele) && (key in ele) && inEl && (ele[key] === el[key]);
};
}
// 未指定断言函数
// 默认断言函数
if (!c.valid.isFunction(predicate))
predicate = function (ele) {
return ele === el;
};
var exist = false;
c.common.each(arr, function (ele, index) {
if (true === predicate(ele, index)) {
exist = true;
return false;
}
});
return exist;
},
/**
* 翻转数组
* @param arr {Array|null|undefined} 数组
* @param newly {boolean} true-使用新数组作为返回值
* @param allowEmpty {boolean} true-允许接受null|undefined
* @return {*} 翻转后数组
*/
reverse: function (arr, newly, allowEmpty) {
if (!c.valid.isArray(arr)) {
if (allowEmpty)
return [];
else
throw '参数arr不是Array实例';
}
var ret = c.arrays.push([], arr);
ret.reverse();
if (newly) return ret;
arr.length = 0;
return c.arrays.push(arr, ret);
}
};
})(window.jsu = (window.jsu || {}));
/* ************************************
* dates 日期工具, 提供格式化日期对象、按规则解析日期字符串、格式化毫秒值等操作
* ************************************/
(function (c) {
'use strict';
c.dates = {
/**
* 日期格式化
* @param date {Date} 日期对象
* @param format {String} 格式化规则(yyyyMMddhhmmssS), 默认:"yyyy-MM-dd hh:mm:ss:S"
* @returns {String} 格式化日期字符串
*/
format: function (date, format) {
function formatter(format) {
format = (format || "yyyy-MM-dd hh:mm:ss");
var time = this.getTime();
if (isNaN(time)) {
return;
}
var o = {
"M+": this.getMonth() + 1,
"d+": this.getDate(),
"h+": this.getHours(),
"m+": this.getMinutes(),
"s+": this.getSeconds(),
"q+": Math.floor((this.getMonth() + 3) / 3),
"S": this.getMilliseconds()
};
if (/(y+)/.test(format))
format = format.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(format))
format = format.replace(RegExp.$1, RegExp.$1["length"] === 1
? o[k]
: ("00" + o[k]).substr(("" + o[k]).length));
return format;
}
if (c.valid.nullOrUndefined(date)) return null;
if (c.valid.isNumber(date)) date = new Date(+date);
if (!c.valid.isDate(date)) throw "Error Type: Parameters 'date' must be a date type";
return formatter.call(date, format);
},
/**
* 当前日期格式化
* @param format {String} 格式化规则(yyyyMMddhhmmssS), 默认:"yyyy-MM-dd hh:mm:ss:S"
* @returns {String} 格式化日期字符串
*/
formatNow: function (format) {
return c.dates.format(new Date(), format);
},
/**
* 日期字符串解析
* @param dateStr {String} 格式化字符串
* @param pattern {String} 日期格式化规则
* @returns {Date|null} 解析成功返回日期对象, 否则返回null
*/
parse: function (dateStr, pattern) {
return c.dates.parser.apply(new Date(), arguments);
},
/**
* 解析器必须在{@link Date}环境中使用
* @param dateStr 日期字符串
* @param pattern 解析规则: yMdHmsS
* @returns {Date|null} 解析成功返回日期对象, 否则返回null
*/
parser: function (dateStr, pattern) {
var metaPatterns = {
/**
* 元规则决策表, 每项决策中会新增三个属性:
* <p>
* beginIndex: {Number}<br>
* pLength: {Number}<br>
* original: {String}
* </p>
*/
metas: {
/** 年规则 */
y: {
name: "Year", setYear: function (date) {
date.setFullYear(this.original || 0);
}
},
/** 月规则 */
M: {
name: "Month", setMonth: function (date) {
date.setMonth(isNaN(this.original) ? 0 : (this.original - 1));
}
},
/** 月中的天数规则 */
d: {
name: "Day", setDay: function (date) {
date.setDate(this.original || 0);
}
},
/** 小时规则 */
h: {
name: "Hour", setHour: function (date) {
date.setHours(this.original || 0);
}
},
/** 分钟规则 */
m: {
name: "Minute", setMinute: function (date) {
date.setMinutes(this.original || 0);
}
},
/** 秒规则 */
s: {
name: "Second", setSecond: function (date) {
date.setSeconds(this.original || 0);
}
},
/** 毫秒规则 */
S: {
name: "Millisecond", setMillisecond: function (date) {
date.setMilliseconds(this.original || 0);
}
}
},
/**
* 设值
* @param date {Date|*} 目标日期
* @returns {Date} 修改后日期
*/
setValues: function (date) {
this.metas.y.setYear(date);
this.metas.M.setMonth(date);
this.metas.d.setDay(date);
this.metas.h.setHour(date);
this.metas.m.setMinute(date);
this.metas.s.setSecond(date);
this.metas.S.setMillisecond(date);
return date;
},
/**
* 校验器
* @param orgiDateStr {String} 日期字符串
* @param tgtPattern {String} 解析规则
* @returns {Boolean} true-解析成功, false-规则不能匹配日期字符串
*/
validate: function (orgiDateStr, tgtPattern) {
var
NUMBER_PATTERN = "\\d",
MX_PATTERN = "\\d+",
replacedPattern = (tgtPattern || "") + "";
if (!replacedPattern) return false;
// 记录当前所能支持的所有元字符
var metasStr = [];
c.common.each(this.metas, function (v, key) {
metasStr.push(key);
});
// 替换pattern中年月日时分秒的字符为\d
replacedPattern = replacedPattern.replace(/\//g, "\\/");
c.common.each(metasStr, function (meta) {
replacedPattern = replacedPattern.replace(eval("(/" + meta + "/g)"), "S" === meta ? MX_PATTERN : NUMBER_PATTERN);
});
replacedPattern = replacedPattern.replace(/\\\\/g, "\\").replace(/[\/]/g, "\/");
// 使用替换后的pattern校验dateStr是否有效
var result = eval("(/^" + replacedPattern + "$/)").test(orgiDateStr);
if (result) {
var _this = this;
// 校验通过, 按顺序设置元规则开始索引和值
// > 按元规则分组
var metasGroup = metasStr.join("");
// /([yMdhms])\1*/g: 提取的元规则
var groupRegExp = eval("(/([" + metasGroup + "])\\1*/g)");
// 替换掉日期字符串分隔符字符
var onlyNumberDateStr = orgiDateStr.replace(/[^\d]+/g, "");
// 把原pattern中的年月日时分秒解为有序的正则表达式数组,
var orgiValIdx = 0;
c.common.each(tgtPattern.match(groupRegExp), function (metaGroup) {
// :> 设置每个组的 beginIndex, pLength, original
var meta = _this.metas[metaGroup[0]];
meta.beginIndex = tgtPattern.indexOf(metaGroup);
meta.pLength = metaGroup.length;
if ("S" !== metaGroup[0])
meta.original = onlyNumberDateStr.substring(orgiValIdx, (orgiValIdx + meta.pLength));
else
meta.original = onlyNumberDateStr.substring(orgiValIdx);
orgiValIdx += meta.pLength;
});
}
return result;
}
};
// 解析完成后按Date构造顺序构建目标Date对象
var success = metaPatterns.validate(dateStr, pattern);
if (success) {
metaPatterns.setValues(this);
return this;
}
return null;
},
/**
* 毫秒值转换
* @param ms {number} 毫秒值
* @return {{ms: number, s: number, m: number, h: number, d: number}}
*/
convertDay: function (ms) {
ms = Math.abs(+ms);
var data = {ms: ms % 1000, s: 0, m: 0, h: 0, d: 0};
data.ms = ms % 1000;
data.s = parseInt(Math.floor(ms / 1000 % 60) + "");
data.m = parseInt(Math.floor(ms / 1000 / 60 % 60) + "");
data.h = parseInt(Math.floor(ms / 1000 / 60 / 60 % 60) + "");
data.d = parseInt(Math.floor(ms / 1000 / 60 / 60 / 24) + "");
return data;
},
/**
* 获取当前毫秒值
* @return {number} 毫秒值
*/
get currentTime() {
return new Date().getTime();
}
};
})(window.jsu = (window.jsu || {}));
/* ************************************
* ognl 对象属性导航工具, 提供设值/取值操作
* ************************************/
(function (c) {
'use strict';
c.ognl = {
/**
* 设置属性值
* @param v {object} 值
* @param k {string} ognl索引
* @param d {object} 目标对象
*/
setValue: function (v, k, d) {
if (!(d instanceof Object)) return;
var ognl = new c.ognl.Ognl(k), tmp;
// 数组
if (ognl.isArray) {
// 第一层数组直接赋值
// 所以 ognl.floors 需要去掉一层
var old = d[ognl.key];
var arr, lastIndex, fIndex = ognl.floors.shift();
if (!c.valid.isArray(old))
arr = d[ognl.key] = [];
else {
arr = old;
var existLen = arr.length, offset = existLen - fIndex - 1;
// 目标下表超出现有数组长度
// 执行下表补位
if (0 > offset) {
offset = Math.abs(offset);
while (0 < offset--)
arr.push(undefined);
}
arr.splice(fIndex, 1, []);
}
// 第N层(N>1)
for (var i in ognl.floors) {
var index = lastIndex = ognl.floors[i];
arr.splice(index, 1, tmp = []);
arr = tmp;
}
// 设置非数组维度的层级关系
if (ognl.next) {
arr.splice(fIndex, 1, tmp = tmp || {});
this.setValue(v, ognl.nextKey, tmp);
} else {
if (undefined !== lastIndex) arr.splice(lastIndex, 1, v);
else arr[fIndex].push(v);
}
}
// 对象
else {
if (ognl.next) {
this.setValue(v, ognl.nextKey, d[ognl.key] = {});
} else {
if (c.valid.isArray(d)) {
d.push(tmp = {});
d = tmp;
}
d[ognl.key] = v;
}
}
return d;
},
/**
* 获取属性值
* @param data {Object} 数据对象
* @param ognl {String} ognl表达式
*/
getValue: function (data, ognl) {
if (c.valid.nullOrUndefined(data))
return null;
if (!c.valid.isString(ognl))
throw new Error("Invalid parameter: ognl");
var keys = ognl.split(".");
if (1 === keys.length) {
// 非数组
var regex = /\[/;
if (!regex.test(ognl)) return data ? data[$.trim(ognl)] : data;
else return c.ognl.getArrOgnlVal(data, ognl);
}
var
idx = ognl.indexOf("."),
key = ognl.substring(0, idx),
isArr = /\[\d+\]/.test(key),
d = isArr ? c.ognl.getArrOgnlVal(data, key) : data[key],
newOgnl = ognl.substring(idx + 1);
return c.ognl.getValue(d, newOgnl);
},
/**
* 获取数组对象的值
* @param data {Object} 数据对象
* @param ognl {String} ognl表达式
*/
getArrOgnlVal: function (data, ognl) {
// 获取数组对象
var sIdx = ognl.indexOf("["),
arrK = ognl.substring(0, sIdx),
arr = data[arrK],
idxStr = ognl.substring(sIdx),
idxReg = /^(\[\d+\])+$/;
if (!idxReg.test(idxStr)) throw new Error("非法下标索引:" + idxStr);
// 获取值[1], [0][2]...
var idxes = idxStr.split("][");
// 一维数组
if (1 === idxes) return arr[parseInt(idxes.replace("[", "").replace("]", ""))];
// 多维数组
var val = arr;
c.common.each(idxes, function (v) {
if (!c.valid.isArray(val)) return false;
val = val[parseInt((v + "").replace("[", "").replace("]", ""))]
});
return val;
},
/**
* ONGL表达式解析对象
* @param k {String} 表达式
* @return {Ognl} 表达式对象
* @constructor
*/
Ognl: function Ognl(k) {
if (!(this instanceof Ognl))
return new Ognl(k);
this.key = "";
this.nextKey = "";
this.isArray = false;
this.floors = [];
this.next = false;
var
objIndex = k.indexOf("."),
arrIndex = k.indexOf("["),
hasMore = (-1 !== objIndex);
if (-1 !== arrIndex)
if ((-1 === objIndex) || (arrIndex < objIndex))
this.isArray = true;
if (hasMore) {
this.key = k.substring(0, objIndex);
this.nextKey = k.substring(objIndex + 1);
this.next = new Ognl(k.substring(objIndex + 1));
} else {
this.key = k;
this.next = null;
}
if (this.isArray) {
var sp = this.key.split("[");
this.key = sp.shift();
for (var i in sp)
this.floors.push(parseInt(sp[i]));
}
}
};
})(window.jsu = (window.jsu || {}));
/* ************************************
* valid 校验工具, 支持javascript原生对象、HTML控件校验等s
* ************************************/
(function (c) {
var toString = Object.prototype.toString;
c.valid = {
// 原生对象检测
isFunction: is('[object Function]'),
isArray: is('[object Array]'),
isDate: is('[object Date]'),
isArguments: is('[object Arguments]'),
isObject: is('[object Object]'),
isString: is('[object String]'),
isNumber: is('[object Number]'),
isRegExp: is('[object RegExp]'),
isTextNode: is('[object Text]'),
nullOrUndefined: function (o) {
return (null === o) || (undefined === o);
},
isJQuery: function (o) {
return c.valid.isObject(o) && (o instanceof jQuery);
},
isCheckboxOrRadio: function (el) {
el = $(el);
return el.length && /input/i.test(el[0].tagName) && /radio|checkbox/i.test($(el).attr('type'));
}
};
function is(v1) {
return function (v2) {
return v1 === toString.call(v2);
};
}
})(window.jsu = (window.jsu || {}));
/* ************************************
* ajax 异步请求工具, 简单封装 $.ajax, 提供前置/后置拦截/loading支持
* ************************************/
(function (c) {
'use strict';
c.$ajax = {
/**
* 发送Ajax请求, 自动检测跨域访问
* @param conf {Object} 与jQuery.ajax参数相同,
* @param [conf.done] {function()} success/error处理完成后调用,
* @param [conf.loading] {boolean} 是否显示loading
* @param [conf.loadingContainer] {jQuery|Element} loading-cover覆盖的区域
*/
ajax: function (conf) {
if (!c.valid.isObject(conf))
conf = {};
var url = $.trim(conf["url"]);
if (!url) throw new Error("Missing required parameter[url][" + JSON.stringify(conf) + "]");
if (c.$ajax.appName) {
url = c.$ajax.appName + '/' + url;
conf.url = url.replace(/\\+/g, '/').replace(/\/+/g, '/');
}
if (true === conf.loading)
c.common.loading(true, conf.loadingContainer);
var
relativeUrl = (-1 === conf.url.indexOf(location.origin)),
protocol = /^(http[s]?)|(ws:):/.test(url);
if (conf.url && protocol && relativeUrl) {
conf["type"] = "GET";
conf["jsonp"] = "callback";
conf["dataType"] = "jsonp";
}
if (!c.valid.isFunction(conf["error"]))
conf["error"] = function () {
var args = c.common.argumentsAsArray(arguments);
args.unshift('error');
c.common.apply(c.$ajax.errorHandler, this, arguments);
done(conf);
};
if (false === c.common.apply(c.$ajax.beforeSend, c.$ajax, conf["data"])) {
done(conf);
return;
}
var sFn = conf["success"];
conf["success"] = function (rData) {
var args = c.common.argumentsAsArray(arguments);
try {
if (c.valid.isFunction(sFn))
sFn.apply(this, args);
} catch (e) {
args.unshift(e);
args.unshift('success');
c.$ajax.errorHandler.apply(this, args);
}
done(conf);
};
$.ajax(conf);
},
/**
* 发送Ajax请求, POST请求方式, JSON响应格式
* @param conf {Object} 与jQuery.ajax参数相同
* @param conf.url {string} 请求地址
* @param [conf.loading] {boolean] 是否启用Loading
* @param [conf.loadingContainer] [jQuery] LoadingScreen 覆盖的区域
* @param [conf.data] {Object} 请求数据
* @param [conf.success] {function(res)] 成功处理函数
* @param [conf.error] {function()} 失败处理函数
*/
jsonAjax: function (conf) {
conf = c.valid.isObject(conf) ? conf : {};
conf["dataType"] = "JSON";
conf["type"] = "POST";
c.$ajax.ajax(conf);
},
/**
* 请求发送前
* @param param {Object} 请求参数
* @returns false-阻止请求
*/
beforeSend: function (param) {
},
/**
* 每次请求并处理完成后(成功或失败)
*/
done: function () {
},
/**
* 错误处理
*/
errorHandler: function () {
var logger = c.Logger ? c.Logger('common') : null;
if (logger) {
if (arguments[1] instanceof Error)
logger.error(arguments[1]);
logger.warn.apply(logger, arguments);
}
}
};
function done(conf) {
c.common.loading(false, conf.loadingContainer);
c.common.apply(conf['done'] || c.$ajax.done, c.$ajax);
}
})(window.jsu = (window.jsu || {}));<file_sep>/*
* 该类为表单操作提供基础功能:
* - 获取表单数据对象: 将HTML表单转换为JSON对象
* - 设置(回填)表单数据: 将JSON对象数据设置到HTML表单项中
* - 数据校验: 按规则校验HTML表单数据合法性
* > 本地校验: 正则表达式、HTML数据类型
* > 远程校验: 同步校验
*/
;(function (c) {
'use strict';
c.Form = Form;
Form.logger = c.Logger ? c.Logger('Form') : null;
// K - Form Key
// V - Form Configure
Form.cache = Form.cache || {};
/**
* @constructor
* @param el {Element} 表单容器
* @param mvvn {boolean} mvvm模式
* @param dev {boolean} 调试模式
* @type {Form}
*/
function Form(el, mvvm, dev) {
if (!(this instanceof Form))
return new Form(el, mvvm, dev);
Form.logger = dev ? Form.logger : null;
Form.logger && Form.logger.info('初始化Form对象完成', this);
// 生成缓存Key
Object.defineProperty(this, 'key', {
value: new Date().getTime()
});
// 获取表单配置s
var conf = getConf(this, mvvm, el);
// 调试模式
if (dev)
Object.defineProperty(this, '[[conf]]', {
value: conf
});
// 解析表单配置
parseConf(conf, !!mvvm);
}
/**
* 设置/获取表单数据
* @param [data] {*} 需要回填的表单数据
* @return {*} 表单数据, undefined - 表单回填时
*/
Form.prototype.data = function (data) {
if (!data) {
var ret = getData(this);
Form.logger && Form.logger.info('获取表单数据:', ret);
return ret;
} else {
Form.logger && Form.logger.info('表单回填:', data);
setData(this, data);
}
};
/**
* 清空表单数据
* @return {{}} 请空前表单数据
*/
Form.prototype.clear = function () {
var
conf = getConf(this),
ret = this.data();
conf.data = {};
c.common.each(conf.items, function (item) {
item.el.val('').prop('checked', false);
});
Form.logger && Form.logger.info('表单清空完成!');
return ret;
};
/**
* 恢复初始化表单数据
* @return {{}} 恢复前表单数据
*/
Form.prototype.restore = function () {
var
conf = getConf(this),
ret = this.data();
conf.data = {};
c.common.each(conf.items, function (item) {
item.el.val(item.defaultValue);
item.el.prop('checked', item.defaultChecked);
});
// 如果开启mvvm模式, 通过强制获取数据来刷新 conf.data 的值
if (conf.mvvm) {
conf.mvvm = false;
Object.assign(conf.data = {}, getData(this));
conf.mvvm = true;
}
Form.logger && Form.logger.info('重置表单完成!');
return ret;
};
/**
* 刷新表单控件缓存
*/
Form.prototype.refresh = function () {
var conf = getConf(this);
parseConf(conf);
};
/**
* 表单验证
* <pre>
* <input name='name'
* data-regexp="/^\S{6,18}$/"
* data-regexp-error="密码长度6~18位"
*
* data-eq="[name='pwd']"
* data-eq-error="两次密码输入不一致"
*
* data-not-eq="[name='username']"
* data-not-eq-error="密码不能与用户名相同"
*
* data-remote="/user/notExist"
* data-remote-error="用户名已存在"
* />
* </pre>
* @param [es] {Object} 回调事件
* @param [es.success] {function({el, name, message, type}):boolean} 校验成功, 返回false停止校验
* @param [es.failed] {function({el, name, message, type}):boolean} 校验失败, 返回false停止校验
* @param [es.completed] {function({success:boolean, errors:[{el, name, message, type, success}...]})} 校验完成
* @return {*} true-通过验证, false-验证失败(错误详情查看: es.failed/es.completed)
*/
Form.prototype.validation = function (es) {
es = es || {};
var validRet = {
success: true,
errors: []
};
Form.logger && Form.logger.info('开始表单验证 >>>');
// 本地校验
var conf = getConf(this), skip, currentValid;
c.common.each(conf.items, function (item) {
// 排除 input: radio/checkbox
if (c.valid.isCheckboxOrRadio(item.el)) return;
currentValid = true;
// Regexp校验
var regexpRet = regexpValid(item);
if (regexpRet) {
validRet.success = validRet.success && regexpRet.success;
if (!regexpRet.success) {
currentValid = false;
validRet.errors.push(regexpRet);
skip = (false === c.common.apply(es.failed, item, regexpRet));
if (skip) return false;
}
}
// eq/notEq校验
var referRet;
if (c.valid.nullOrUndefined(regexpRet) || (regexpRet && regexpRet.success)) {
if (referRet = referValid(item)) {
validRet.success = validRet.success && referRet.success;
if (!referRet.success) {
currentValid = false;
validRet.errors.push(referRet);
skip = (false === c.common.apply(es.failed, item, referRet));
if (skip) return false;
}
}
}
// HTML校验
var htmlRet;
if (c.valid.nullOrUndefined(referRet) || (referRet && referRet.success)) {
if (htmlRet = htmlValid(item)) {
validRet.success = validRet.success && htmlRet.success;
if (!htmlRet.success) {
currentValid = false;
validRet.errors.push(htmlRet);
skip = (false === c.common.apply(es.failed, item, htmlRet));
if (skip) return false;
}
}
}
// 校验成功
if (currentValid)
c.common.apply(es.success, item, htmlRet)
});
// Remote校验
// TODO 需要通过函数执行链来实现
c.common.apply(es.completed, this, validRet);
Form.logger && Form.logger.info('表单验证结束 <<<', validRet);
return validRet;
};
/**
* HTML 5 原生支持校验
* @param item {*}
* @return {null|{el: *, name: *, val: *, success: boolean, message: null}}
*/
function htmlValid(item) {
var el = item.el[0];
if (!c.valid.isFunction(el.checkValidity)) {
Form.logger && Form.logger.warn('当前客户端不支持HTML5表单校验');
return null;
}
el.checkValidity();
var ret = {
el: item.el,
name: item.name,
val: item.el.val(),
success: el.validity.valid,
message: null
};
if (!ret.success) {
c.common.each({
pattern: {k: 'patternMismatch', e: '错误的数据'},
max: {k: 'rangeOverflow', e: '超出最大值 ' + item.el.attr('max')},
min: {k: 'rangeUnderflow', e: '超出最小值 ' + item.el.attr('min')},
step: {k: 'stepMismatch', e: '值不符合由step属性指定的规则 *' + item.el.attr('step')},
maxLength: {k: 'tooLong', e: '数据长度不能大于 ' + item.el.attr('maxLength')},
minLength: {k: 'tooShort', e: '数据长度不能小于 ' + item.el.attr('minLength')},
type: {k: 'typeMismatch', e: '元素的值不符合元素类型所要求的格式 ' + item.el.attr('type')},
required: {k: 'valueMissing', e: '该项为必填项'}
}, function (data, key) {
if (undefined === item.el.attr(key)) return;
if (el.validity[data.k]) {
ret.message = data.e;
return false;
}
});
}
return ret;
}
/**
* 引用校验
* @param item {*}
* @return {{el: *, name: *, val: *, success: boolean, message: null}}
*/
function referValid(item) {
var
executed = false,
ret = {
el: item.el,
name: item.name,
val: item.el.val(),
success: true,
message: null
};
var handlers = {
eq: function (res) {
if (c.valid.isString(res.val)) {
res.val = $.trim(res.val);
res.val = $(res.val);
res.val = c.valid.isJQuery(res.val) ? res.val : null;
}
if (c.valid.isJQuery(res.val)) {
executed = true;
ret.success = (res.val.val() === item.el.val());
ret.message = !ret.success ? res.message : null;
}
return ret.success;
},
notEq: function (res) {
if (c.valid.isString(res.val)) {
executed = true;
res.val = $.trim(res.val);
res.val = $(res.val);
res.val = c.valid.isJQuery(res.val) ? res.val : null;
}
if (c.valid.isJQuery(res.val)) {
ret.success = (res.val.val() !== item.el.val());
ret.message = !ret.success ? res.message : null;
}
return ret.success;
}
};
c.common.each(item.rules.refer, function (res, handlerKey) {
return c.common.apply(handlers[handlerKey], res, res);
});
return executed ? ret : null;
}
/**
* 正则表达式校验
* @param item {*}
* @return {{el: *, name: *, val: *, success: boolean, message: null}}
*/
function regexpValid(item) {
var
executed = false,
ret = {
el: item.el,
name: item.name,
val: item.el.val(),
success: true,
message: null
};
var handlers = {
reg: function (res) {
if (c.valid.isString(res.val)) {
var regs = $.trim(res.val).replace('/^', '').split('$/');
c.common.each(regs, function (v, i) {
regs[i] = $.trim(v);
});
res.val = new RegExp('^' + regs[0] + '$', regs[1]);
}
if (c.valid.isRegExp(res.val)) {
executed = true;
ret.success = res.val.test(item.el.val());
ret.message = !ret.success ? res.message : null;
}
return ret.success;
}
};
c.common.each(item.rules.regexp, function (res, handlerKey) {
return c.common.apply(handlers[handlerKey], res, res);
});
return executed ? ret : null;
}
/**
* 设置表单数据
* @param self {Form} 表单对象
* @param data {Object} 表单数据
*/
function setData(self, data) {
var conf = getConf(self);
conf.data = data;
parseConf(conf);
var effectiveProps = [];
c.common.each(conf.items, function (item) {
var
el = item.el,
name = el.attr('name'),
val = data[name],
tagName = el[0].tagName.toLowerCase();
effectiveProps.push(name);
switch (tagName) {
case 'input':
// input:radio, input:checkbox 特殊处理, 其他类型委托给jQuery
var type = el.attr('type') || 'text';
if (/^radio|checkbox$/i.test(type)) {
if (c.valid.isArray(val)) el.prop('checked', -1 !== val.indexOf(item.defaultValue));
else el.prop('checked', val === item.defaultValue);
break;
}
default:
el.val(val);
break;
}
});
// 删除无效属性
jsu.arrays.unique(effectiveProps);
var invalidKeys = jsu.objects.keys(data);
jsu.arrays.remove(invalidKeys, effectiveProps);
jsu.common.each(invalidKeys, function (invalidKey) {
delete conf.data[invalidKey];
});
}
/**
* 获取并缓存表单数据
* @param self {Form} 表单对象
* @return {*|{}} 表单数据
*/
function getData(self) {
var conf = getConf(self);
if (conf.mvvm)
return conf.data;
Object.assign(conf.data = {}, getDataFromHtml(self));
Form.logger && Form.logger.info('获取表单数据: ', conf.data);
return conf.data;
}
/**
* 从HTML控件获取表单数据
* @param self {Form} Form对象
*/
function getDataFromHtml(self) {
var
conf = getConf(self),
data = {};
// input: undefined/text/password/file 直接获取value
// textarea: 直接获取value
// select: multipart? 直接获取选中值
// input: radio 通过 $.is(':checked')获取单个选中值
// input: checkbox 通过 $.is(':checked')获取多个选中值
c.common.each(conf.items, function (item) {
var
el = item.el,
name = el.attr('name'),
oldVal = data[name],
val = el.val(),
tagName = el[0].tagName.toLowerCase();
switch (tagName) {
case 'input':
// input:radio, input:checkbox 特殊处理, 其他类型委托给jQuery
var type = el.attr('type') || 'text';
if (/^radio$/i.test(type)) {
if (el.is(':checked'))
data[name] = item.defaultValue;
break;
} else if (/^checkbox$/i.test(type)) {
if (el.is(':checked'))
(data[name] = oldVal || []).push(item.defaultValue);
data[name] = c.arrays.unique(data[name] || []);
break;
} else if (/file/i.test(type)) {
break;
}
case 'textarea':
case 'select':
data[name] = val;
break;
}
});
return data;
}
/**
* 获取配置缓存
* @param formObj {Form|*} 表单对象
* @param [mvvm] {boolean} true-启用mvvm模式
* @param [el] {Element|*} 表单容器
* @return {*} 配置缓存
*/
function getConf(formObj, mvvm, el) {
return Form.cache[formObj.key] = (Form.cache[formObj.key] || {
self: formObj,
$form: $(el),
mvvm: mvvm,
data: {},
items: [], // 顺序访问
itemsMap: {} // 快速索引
});
}
/**
* 解析表单配置
* @param conf {*} 配置对象
* @param [mvvm] {boolean} true-启用mvvm模式, false-关闭mvvm模式
*/
function parseConf(conf, mvvm) {
mvvm = c.valid.nullOrUndefined(mvvm) ? conf.mvvm : mvvm;
conf.items.length = 0;
conf.$form.find('[name]').each(function () {
var
$this = $(this),
name = $this.attr('name'),
itemConf = conf.itemsMap[name] = {
conf: conf,
el: $this,
mvvm: mvvm,
name: name,
defaultValue: $this.attr('value'),
defaultChecked: $this[0].defaultChecked,
rules: {
regexp: {
reg: {
val: $this.attr('data-regexp'),
message: $this.attr('data-regexp-error')
}
},
refer: {
eq: {
val: $this.attr('data-eq'),
message: $this.attr('data-eq-error')
},
notEq: {
val: $this.attr('data-not-eq'),
message: $this.attr('data-not-eq-error')
}
},
html: {
min: $this.attr('min'),
max: $this.attr('max'),
minLength: $this.attr('minLength'),
maxLength: $this.attr('maxLength'),
require: undefined !== $this.attr('require')
},
remote: $this.attr('data-remote-valid')
}
};
if (mvvm)
activeMvvm(itemConf, conf.data);
conf.items.push(itemConf);
});
}
/**
* 激活mvvm模式
* @param item {*} 表单项配置
* @param data {*} 表单数据对象
*/
function activeMvvm(item, data) {
if (!item.mvvm) return;
// View -> Model
(function (el, data) {
el.change(function eventHandler() {
var
$this = $(this),
name = $this.attr('name'),
val = $this.val(),
type = $this.attr('type');
// input:checkbox 特殊处理
if (/input/i.test(this.tagName) && /checkbox/i.test(type)) {
var old = data[name] || [];
if ($this.is(':checked')) old.push(val);
else c.arrays.remove(old, val);
data[name] = c.arrays.unique(old);
}
// 其他控件
else {
data[name] = val;
}
});
// 暂不实现
// input --> input!(radio/checkbox)
// textarea
// blur --> input!(radio/checkbox)
// textarea
})(item.el, data);
// Model -> View
(function (el, name, data) {
// 定义数据源
var origDescr = Object.getOwnPropertyDescriptor(data, '_orig');
if (!(origDescr && c.valid.isObject(origDescr.value)))
Object.defineProperty(data, '_orig', {
value: {}
});
data._orig[name] = data[name];
// 定义属性描述符
var descr = Object.getOwnPropertyDescriptor(data, name);
if (descr && c.valid.isFunction(descr.get)) return;
var descriptor = {
enumerable: true,
get: function () {
return this._orig[name];
},
set: function (val) {
this._orig[name] = val;
c.common.each(item.conf.items, function (item) {
var
el = item.el,
val = data[name],
tagName = el[0].tagName.toLowerCase();
if (el.attr('name') !== name) return;
switch (tagName) {
// input:radio, input:checkbox 特殊处理
case 'input':
var type = el.attr('type') || 'text';
if (/^radio|checkbox$/i.test(type)) {
if (c.valid.isArray(val)) el.prop('checked', -1 !== val.indexOf(item.defaultValue));
else el.prop('checked', val === item.defaultValue);
break;
} else if (/file/i.test(type)) {
Form.logger && Form.logger.warn('input:file 不允许手动设置');
break;
}
// 其他类型委托给jQuery
default:
el.val(val);
break;
}
});
// 数据校验
Object.assign(data._orig, getDataFromHtml(item.conf.self));
}
};
Object.defineProperty(data, name, descriptor);
// TODO Array.length改变, Array.push, Array.shift...
// TODO Object 添加新属性
})(item.el, item.name, data);
}
Form.logger && Form.logger.info('载入Form API', c.Form.dir = {
api: {
'[[constructor]]': 'Form(el, mvvm, dev), el-表单容器(不仅仅<Form>), mvvm-是否启用数据双向绑定, dev-调试模式打印更多日志信息',
data: 'function(data?):data?, 获取或设置表单数据',
clear: 'function():void 完全清空表单数据',
restore: 'function():void 初始化表单数据, 恢复到表单加载完成时的状态',
refresh: 'function():void 刷新表单控件, 同时刷新mvvm对象(如果启用)',
validation: 'function({success?, failed?, completed?}?):{success:boolean, errors:[{el, name, val, success, message}]} 表单校验'
},
eg: 'var form = new Form($formContainer); // 可以缺省 new 关键字'
});
})(window.jsu = (window.jsu || {}));
<file_sep>;(function (c) {
'use strict';
c.Tree = Tree;
Tree.logger = jsu.Logger ? jsu.Logger('Tree') : null;
// K - Tree Key
// V - Tree instance
Tree.cache = {};
// class样式列表
Object.defineProperties(Tree.style = {}, {
bounds: {value: 'jsu-tree-bounds'},
tree: {value: 'jsu-tree'},
root: {value: 'jsu-tree-root'},
node: {value: 'jsu-tree-node'},
title: {value: 'jsu-tree-title'},
text: {value: 'jsu-tree-text'},
children: {value: 'jsu-tree-children'},
hide: {value: 'jsu-tree-hide'},
temporary_root: {value: 'jsu-tree-temporary-root'},
expander: {value: 'jsu-tree-expander'},
selection: {value: 'jsu-tree-selection'},
selection_default: {value: 'jsu-tree-selection-default'},
selection_activate: {value: 'jsu-tree-selection-activate'},
children_loading: {value: 'jsu-tree-children-loading'},
loading: {value: 'jsu-tree-loading'},
other: {value: 'jsu-tree-other'},
other_container: {value: 'jsu-tree-other-container'},
node_selected: {value: 'jsu-tree-node-selected'},
editing: {value: 'jsu-tree-node-editing'},
editor: {value: 'jsu-tree-activate-editor'},
delete: {value: 'jsu-tree-activate-delete'},
append: {value: 'jsu-tree-activate-append'},
node_open: {value: 'jsu-tree-node-open'}
});
// 创建相关
Object.defineProperties(Tree.creator = {}, {
temporaryRoot: {
value: function (conf) {
return Tree.creator.node(conf, {}).addClass(Tree.style.temporary_root);
}
},
root: {
value: function (conf, node) {
return Tree.creator.node(conf, node).addClass(Tree.style.root);
}
},
node: {
value: function (conf, node) {
var $node = $('<div>').addClass(Tree.style.node).addClass(Tree.reader.class(node));
$node.attr(Tree.defineHtmlKey.node_key, c.objects.getKeyByValue(conf.dataSet.dataMap, node));
$node.append(Tree.creator.title(conf, node));
return $node;
}
},
title: {
value: function (conf, node) {
var $title = $('<div>').addClass(Tree.style.title);
// 展开标记
var $expander = $('<i>').addClass('fa fa-caret-right')
.addClass(Tree.style.expander);
$title.append($expander);
// 未选中标记
var $selectionDefault = $('<i>').addClass('fa fa-square-o')
.addClass(Tree.style.selection)
.addClass(Tree.style.selection_default);
$title.append($selectionDefault);
// 已选中标记
var $selectionActivate = $('<i>').addClass('fa fa-check-square-o')
.addClass(Tree.style.selection)
.addClass(Tree.style.selection_activate);
$title.append($selectionActivate);
// 加载中标记
var $loading = $('<i>').addClass('fa fa-spinner fa-pulse')
.addClass(Tree.style.loading);
$title.append($loading);
// 文本
var $text = $('<span>', {html: Tree.reader.text(node)})
.addClass(Tree.style.text);
$title.append($text);
// 右侧其他功能
$title.append(Tree.creator.other(conf));
return $title;
}
},
other: {
value: function (conf, node) {
var
$other = $('<span>').addClass(Tree.style.other),
$c = $('<div>').addClass(Tree.style.other_container).appendTo($other);
// 编辑
$c.append($('<i>').addClass('fa fa-edit').addClass(Tree.style.editor));
// 删除
$c.append($('<i>').addClass('fa fa-trash-o').addClass(Tree.style.delete));
// 插入子节点
$c.append($('<i>').addClass('fa fa-indent').addClass(Tree.style.append));
return $other;
}
},
children: {
value: function (conf, node, $node) {
var $children = $('<div>').addClass(Tree.style.children);
c.common.each(Tree.reader.children(node), function (childNode) {
Tree.creator.node(conf, childNode).appendTo($children);
});
$children.appendTo($node);
return $children;
}
}
});
// 自定义HTML属性名
Object.defineProperties(Tree.defineHtmlKey = {}, {
bounds_key: {value: 'data-tree'},
node_key: {value: 'data-tree-node'}
});
// 数据获取相关
Object.defineProperties(Tree.reader = {}, {
text: {
value: function (node) {
return c.strings.trim(node['text'] || '');
}
},
class: {
value: function (node) {
return c.strings.trim(node['class'] || '');
}
},
children: {
value: function (node) {
var rightType = node && c.valid.isArray(node.children);
return rightType ? node.children : [];
}
}
});
// 设置数据相关
Object.defineProperties(Tree.writter = {}, {
text: {
value: function (node, value) {
node['text'] = value;
}
}
});
/**
* 分页插件
* @constructor
* @param $origin {jQuery|Element} 容器
* @param autoInit {Boolean} true-自动初始化
* @param dev {Boolean} true-调试模式, 打印更多日志
* @return {Tree}
*/
function Tree($origin, autoInit, dev) {
if (!(this instanceof Tree))
return new Tree($origin, autoInit, dev);
autoInit = autoInit || false;
dev = dev || false;
// 生成缓存Key
Object.defineProperty(this, 'key', {
value: 'uk' + (Math.random() + '').substring(2)
});
// 初始化配置
var conf = getConf(this, $origin, false);
// 调试模式
if (dev) {
Object.defineProperty(this, '[[conf]]', {
value: conf
});
} else {
Tree.logger = null;
}
// 自动初始化
if (autoInit)
this.init();
Tree.logger && Tree.logger.info('初始化Form对象完成', this);
}
/**
* 初始化
*/
Tree.prototype.init = function () {
var conf = getConf(this, null, false);
if (conf.loaded) {
Tree.logger && Tree.logger.info('跳过重复初始化');
return;
}
conf.loaded = true;
conf.destroyed = false;
Tree.logger && Tree.logger.info('开始初始化 >>> ', conf);
// 创建替换模板
replaceWithTemplate(conf);
// 激活事件
activateEvents(conf);
// 首次初始化
// var updated = conf.events.updated;
// delete conf.events.updated;
// this.data([]);
// conf.events.updated = updated;
c.common.apply(conf.events.loaded, this);
Tree.logger && Tree.logger.info('初始化完成 <<< ', conf);
};
/**
* 卸载
*/
Tree.prototype.destroy = function () {
var conf = getConf(this);
conf.templates.$bounds.replaceWith(conf.$origin);
conf.loaded = false;
conf.destroyed = true;
c.common.apply(conf.events.destroyed, this);
};
/**
* 设置/获取数据
* @param data {Array} 设置数据
* @return {*} 获取数据
*/
Tree.prototype.data = function (data) {
this.init();
var conf = getConf(this);
if (c.valid.nullOrUndefined(data)) {
var ret = c.objects.clone(conf.dataSet.data);
Tree.logger && Tree.logger.log('获取数据', ret);
return ret;
}
Tree.logger && Tree.logger.log('设置数据', data);
if (!c.valid.isArray(data)) {
Tree.logger && Tree.logger.warn('树控件数据必须是Array实例: ', Object.prototype.toString.call(data));
return;
}
var backup = conf.dataSet.data;
try {
rendererTree(conf, data);
c.common.apply(conf.events.updated, this);
} catch (e) {
Tree.logger && Tree.logger.warn('更新视图异常, 正在尝试还原上一次正确数据', backup, e);
rendererTree(conf, backup);
}
};
/**
* 获取/设置展开节点数据
* @param [nodes] {Object|Array} 设置单个或多个节点展开, 注意该参数是消耗品
* @param [dataKey] {string} 节点数据唯一值的属性名
* @return {Array} 当前展开的节点
*/
Tree.prototype.expandNode = function (nodes, dataKey) {
var conf = getConf(this);
if (!c.valid.nullOrUndefined(nodes)) {
if (!c.valid.isArray(nodes))
nodes = [nodes];
var nodeKeys = [];
c.common.each(conf.dataSet.dataMap, function (node, nodeKey) {
if (c.arrays.remove(nodes, node, dataKey).length)
c.arrays.push(nodeKeys, nodeKey);
});
if (!nodeKeys.length) {
Tree.logger && Tree.logger.warn('节点数据中没有任何与参数相关的数据', nodes);
return [];
}
// 收起未展开的根节点
var openedNodeKeys = c.arrays.remove(nodeKeys, conf.dataSet.expand);
c.arrays.remove(conf.dataSet.expand, openedNodeKeys);
c.common.each(conf.dataSet.expand, function (nodeKey) {
conf.templates.$tree
.find('[' + Tree.defineHtmlKey.node_key + '="' + nodeKey + '"]')
.find('>.' + Tree.style.title)
.click();
});
c.arrays.push(conf.dataSet.expand, openedNodeKeys);
// 展开子节点
var maxCount = 10000;
while (nodeKeys.length && (0 < --maxCount)) {
c.common.each(nodeKeys, function (nodeKey) {
var
$node = conf.templates.$tree.find('[' + Tree.defineHtmlKey.node_key + '="' + nodeKey + '"]'),
$expandTrigger = $node.find('.' + Tree.style.title);
if ($expandTrigger.length) {
$expandTrigger.click();
c.arrays.remove(nodeKeys, nodeKey);
}
});
}
if (nodeKeys.length)
Tree.logger && Tree.logger.warn('执行10000次搜索后任有未找到的节点数据', nodes);
}
nodes = [];
c.common.each(conf.dataSet.expand, function (nodeKey) {
nodes.push(conf.dataSet.dataMap[nodeKey]);
});
Tree.logger && Tree.logger.log('获取展开节点', nodes);
return nodes;
};
/**
* 获取/设置选中节点数据
* @param [nodes] {Object|Array} 设置单个或多个选中的节点, 如果存在并自动展开
* @param [dataKey] {string} 节点数据唯一值属性名
*/
Tree.prototype.activateNode = function (nodes, dataKey) {
var conf = getConf(this);
if (c.valid.nullOrUndefined(nodes)) {
var activateNodes = [];
c.common.each(conf.dataSet.action, function (nodeKey) {
activateNodes.push(conf.dataSet.dataMap[nodeKey]);
});
Tree.logger && Tree.logger.log('已选中节点', activateNodes);
return activateNodes;
}
// 清空已选择节点
conf.dataSet.action.length = 0;
conf.templates.$tree.find('.' + Tree.style.node_selected).removeClass(Tree.style.node_selected);
if (!c.valid.isArray(nodes))
nodes = [nodes];
var nodeKeys = [];
c.common.each(conf.dataSet.dataMap, function (node, nodeKey) {
if (c.arrays.remove(nodes, node, dataKey).length)
c.arrays.push(nodeKeys, nodeKey);
});
if (!nodeKeys.length) {
Tree.logger && Tree.logger.warn('节点数据中没有任何与参数相关的数据', nodes);
return [];
}
// 向上展开所有父节点
c.common.each(nodeKeys, function (nodeKey) {
var parentKeys = conf.dataSet.upperLevels[nodeKey];
// 展开父节点队列
if (c.valid.isArray(parentKeys)) {
c.common.each(c.arrays.reverse(parentKeys, true, true), function (nodeKey) {
expandChildren(conf, nodeKey);
conf.templates.$tree.find('[' + Tree.defineHtmlKey.node_key + '="' + nodeKey + '"]').addClass(Tree.style.node_selected);
c.arrays.push(conf.dataSet.action, nodeKey);
});
}
// 选中当前节点
conf.templates.$tree.find('[' + Tree.defineHtmlKey.node_key + '="' + nodeKey + '"]').addClass(Tree.style.node_selected);
c.arrays.push(conf.dataSet.action, nodeKey);
});
};
/**
* 注册事件
* @param events {*} 事件对象
*/
Tree.prototype.events = function (events) {
var conf = getConf(this);
c.common.each(conf.events, function (fn, eK) {
conf.events[eK] = c.valid.isFunction(events[eK]) ? events[eK] : fn;
});
Tree.logger && Tree.logger.log('注册事件完成', conf);
return conf.events;
};
/**
* 渲染节点
* @param conf {*} 配置
* @param data {Array} 控件数据
*/
function rendererTree(conf, data) {
updateCached(conf, data);
var $tree = conf.templates.$tree.html('');
c.common.each(data, function (node) {
var $root = Tree.creator.root(conf, node);
if (false !== c.common.apply(conf.events.beforeAppend, this, $root, node, 'root')) {
$tree.append($root);
c.common.apply(conf.events.afterAppend, this, $root, node, 'root');
Tree.logger && Tree.logger.log('追加根节点', node, conf);
} else {
Tree.logger && Tree.logger.log('阻止追加根节点', node, conf);
}
});
}
/**
* 更新缓存
* @param conf {*} 配置
* @param data {Array} 数据
*/
function updateCached(conf, data) {
conf.dataSet.data = data;
conf.dataSet.dataMap = {};
conf.dataSet.upperLevel = {};
conf.dataSet.upperLevels = {};
c.common.each(data, cache);
// 更新子节点 -> 父节点列表关系
// 父节点关系: self -> [pn, ..., p, root]
c.common.each(conf.dataSet.upperLevel, function (parentNodeKey, nodeKey) {
var parentNodeKeys = conf.dataSet.upperLevels[nodeKey] = [parentNodeKey];
while (!c.valid.nullOrUndefined(parentNodeKey = conf.dataSet.upperLevel[parentNodeKey]))
c.arrays.push(parentNodeKeys, parentNodeKey);
});
function cache(node, parentNode) {
if (!node) return;
var key = c.common.uuid(false, true);
conf.dataSet.dataMap[key] = node;
// 记录关系: 子集 -> 父级
// 父级 -> 子集由children属性完成
if (c.valid.isObject(parentNode))
conf.dataSet.upperLevel[key] = c.objects.getKeyByValue(conf.dataSet.dataMap, parentNode);
var children = Tree.reader.children(node);
if (c.valid.isArray(children)) {
c.common.each(children, function (_node) {
cache(_node, node);
});
}
}
}
/**
* 激活事件
* @param conf {*} 配置
*/
function activateEvents(conf) {
c.$common.uniqueDelegate(conf.templates.$bounds, '.' + Tree.style.title, 'click', function (e) {
c.$common.stopPropagation(e);
var
$this = $(this),
$node = $this.parents('.' + Tree.style.node + ':first'),
nodeKey = $node.attr(Tree.defineHtmlKey.node_key),
node = conf.dataSet.dataMap[nodeKey];
var isAppend = (-1 === conf.dataSet.expand.indexOf(nodeKey));
Tree.logger && Tree.logger.log('点击节点 >> ', node, isAppend ? 'CLOSE' : 'EXPAND');
if (isAppend) {
expandChildren(conf, nodeKey);
} else if (false !== c.common.apply(conf.events.beforeClose, this, node, $node)) {
// removeExpandByParent(conf, nodeKey);
c.arrays.remove(conf.dataSet.expand, nodeKey);
$node.find('>.' + Tree.style.children + ':first').slideUp(200, function () {
// $(this).remove();
c.common.apply(conf.events.afterClose, this, node, $node)
});
$node.removeClass(Tree.style.node_open);
Tree.logger && Tree.logger.log('关闭子节点', node, conf.dataSet.expand);
} else {
Tree.logger && Tree.logger.log('阻止关闭子节点', node, conf.dataSet.expand);
}
});
c.$common.uniqueDelegate(conf.templates.$bounds, '.' + Tree.style.selection, 'click', function (e) {
c.$common.stopPropagation(e);
var
$node = $(this).parents('[' + Tree.defineHtmlKey.node_key + ']:first'),
nodeKey = $node.attr(Tree.defineHtmlKey.node_key),
node = conf.dataSet.dataMap[nodeKey],
toActivate = (-1 === c.arrays.toggle(conf.dataSet.action, nodeKey));
// 已存在 -> 删除
// 不存在 -> 添加
$node.toggleClass(Tree.style.node_selected);
// 更新父级选中状态
(function () {
var parentNodeKey, parentNode, $parentNode, childKey = nodeKey;
do {
if (!(parentNodeKey = conf.dataSet.upperLevel[childKey]))
break;
parentNode = conf.dataSet.dataMap[parentNodeKey];
$parentNode = conf.templates.$tree.find('[' + Tree.defineHtmlKey.node_key + '="' + parentNodeKey + '"]');
if (toActivate) {
$parentNode.addClass(Tree.style.node_selected);
c.arrays.push(conf.dataSet.action, parentNodeKey);
} else if (!$parentNode.find('.' + Tree.style.node_selected).length) {
$parentNode.removeClass(Tree.style.node_selected);
c.arrays.remove(conf.dataSet.action, parentNodeKey);
}
childKey = parentNodeKey;
} while (childKey);
})();
// 更新子集选中状态
(function () {
var
$nodes = $node.find('[' + Tree.defineHtmlKey.node_key + ']'),
nodeKeys = [];
$nodes.each(function () {
var nodeKey = $(this).attr(Tree.defineHtmlKey.node_key);
nodeKeys.push(nodeKey);
});
if (toActivate) {
$nodes.addClass(Tree.style.node_selected);
c.arrays.push(conf.dataSet.action, nodeKeys);
} else {
$nodes.removeClass(Tree.style.node_selected);
c.arrays.remove(conf.dataSet.action, nodeKeys);
}
})();
Tree.logger && Tree.logger.log(toActivate ? '选中' : '取消选中', nodeKey, node);
});
c.$common.uniqueDelegate(conf.templates.$bounds, '.' + Tree.style.editor, 'click', function (e) {
c.$common.stopPropagation(e);
var
$node = $(this).parents('[' + Tree.defineHtmlKey.node_key + ']:first'),
$text = $node.find('>.' + Tree.style.title).find('>.' + Tree.style.text),
nodeKey = $node.attr(Tree.defineHtmlKey.node_key),
node = conf.dataSet.dataMap[nodeKey];
var $editor = $('<input>', {value: Tree.reader.text(node)}).addClass(Tree.style.editing)
.click(function (e) {
c.$common.stopPropagation(e);
})
.blur(function (e) {
c.$common.stopPropagation(e);
var text = c.strings.trim(this.value);
Tree.writter.text(node, text);
$text.text(text);
$editor.replaceWith($text);
});
$text.replaceWith($editor);
c.common.timer(function () {
$editor.focus().select();
});
Tree.logger && Tree.logger.log('编辑节点', node);
});
c.$common.uniqueDelegate(conf.templates.$bounds, '.' + Tree.style.delete, 'click', function (e) {
c.$common.stopPropagation(e);
var
$node = $(this).parents('[' + Tree.defineHtmlKey.node_key + ']:first'),
nodeKey = $node.attr(Tree.defineHtmlKey.node_key),
node = conf.dataSet.dataMap[nodeKey];
Tree.logger && Tree.logger.log('删除指定节点', node, nodeKey);
$node.remove();
removeNodeData(conf, nodeKey);
});
}
/**
* 删除指定节点数据
* @param conf {*} 配置
* @param nodeKey {string} 节点key
*/
function removeNodeData(conf, nodeKey) {
var node = conf.dataSet.dataMap[nodeKey];
c.arrays.remove(conf.dataSet.data, node);
var childrenKeys = c.objects.getKeysByValue(conf.dataSet.upperLevel, nodeKey);
childrenKeys.push(nodeKey);
var
removedMap = c.objects.removeKeys(conf.dataSet.dataMap, childrenKeys),
parentKey = conf.dataSet.upperLevel[nodeKey];
if (!c.valid.nullOrUndefined(parentKey)) {
var
parent = conf.dataSet.dataMap[parentKey],
children = Tree.reader.children(parent),
nodes = c.objects.values(removedMap);
c.arrays.remove(children, nodes);
}
c.arrays.remove(conf.dataSet.expand, childrenKeys);
c.arrays.remove(conf.dataSet.action, childrenKeys);
c.objects.removeKeys(conf.dataSet.upperLevel, childrenKeys);
c.objects.removeKeys(conf.dataSet.upperLevels, childrenKeys);
}
/**
* 展开子节点
* @param conf {*} 配置
* @param nodeKey {String} 节点key
*/
function expandChildren(conf, nodeKey) {
var
node = conf.dataSet.dataMap[nodeKey],
$node = conf.templates.$tree.find('[' + Tree.defineHtmlKey.node_key + '="' + nodeKey + '"]');
if (c.arrays.contains(conf.dataSet.expand, nodeKey)) {
Tree.logger && Tree.logger.log('跳过重复展开节点');
return;
}
$node.addClass(Tree.style.children_loading);
// 是否允许展开子节点
if (false === c.common.apply(conf.events.beforeExpand, this, $node, node)) {
$node.removeClass(Tree.style.children_loading);
Tree.logger && Tree.logger.log('阻止展开子节点', node, conf.dataSet.expand);
return;
}
// 是否允许追加子节点
// 调整子节点视图
var $children = $node.find('>.' + Tree.style.children);
if (!$children || !$children.length) {
$children = Tree.creator.children(conf, node);
if (false === c.common.apply(conf.events.beforeAppend, this, $node, node, 'children')) {
$node.removeClass(Tree.style.children_loading);
Tree.logger && Tree.logger.log('阻止追加子节点', node, conf);
return;
}
}
// 追加子节点并使用动画展开
$node.addClass(Tree.style.node_open);
c.arrays.push(conf.dataSet.expand, nodeKey);
c.arrays.unique(conf.dataSet.expand);
$children.appendTo($node).hide().slideDown(200, function () {
c.common.apply(conf.events.afterExpand, this, $node, node);
});
c.common.apply(conf.events.afterAppend, this, $node, node, 'children');
// 如果父节点被选中
// 默认选中子节点
// var parentNodeKey = conf.dataSet.upperLevel[nodeKey];
if (c.arrays.contains(conf.dataSet.action, nodeKey))
$children.find('[' + Tree.defineHtmlKey.node_key + ']')
.addClass(Tree.style.node_selected)
.each(function () {
var key = $(this).attr(Tree.defineHtmlKey.node_key);
c.arrays.push(conf.dataSet.action, key);
});
c.common.timer(function () {
$node.removeClass(Tree.style.children_loading);
}, 200);
}
/**
* 移除nodeKey下所有children的expand状态
* @param conf {*} 配置
* @param nodeKey {string} 节点Key
*/
function removeExpandByParent(conf, nodeKey) {
var node = conf.dataSet.dataMap[nodeKey];
c.arrays.remove(conf.dataSet.expand, nodeKey);
c.common.each(Tree.reader.children(node), function (childNode) {
var key = c.objects.getKeyByValue(conf.dataSet.dataMap, childNode);
removeExpandByParent(conf, key);
});
}
/**
* 使用模板替换
* @param conf {*} 配置
*/
function replaceWithTemplate(conf) {
var $c = conf.templates.$bounds = $('<div>').addClass(Tree.style.bounds).attr(Tree.defineHtmlKey.bounds_key, conf._key);
conf.templates.$tree = $('<div>').addClass(Tree.style.tree).appendTo(conf.templates.$bounds);
conf.$origin.replaceWith($c);
}
/**
* 获取配置
* @param self {Tree} 表格对象
* @param [$c] {jQuery|Element} 表格容器对象
* @param [checkAlive=true] {Boolean} true-destroy校验
* @return {*}
*/
function getConf(self, $c, checkAlive) {
var conf = Tree.cache[self.key] = (Tree.cache[self.key] || {
_key: self.key,
self: self,
$origin: c.valid.isJQuery($c) ? $c : $($c),
templates: {
/** 主容器 */
$bounds: null,
/** 树控件 */
$tree: null
},
/** 数据相关 */
dataSet: {
/** 控件数据 */
data: [],
/** K-数据Key, V-节点数据 */
dataMap: {},
/** 展开的数据Key */
expand: [],
/** 选中的数据Key */
action: [],
/** K-数据Key, V-父级数据Key */
upperLevel: {},
/** K-数据Key, V-父级数据Keys数组 */
upperLevels: {}
},
events: {
/** 加载完成 */
loaded: null,
/** 卸载完成 */
destroyed: null,
/** 节点追加前 */
beforeAppend: null,
/** 节点追加后 */
afterAppend: null,
/** 更新完成, */
updated: null,
/** 子节点展开前 */
beforeExpand: null,
/** 子节点展开后 */
afterExpand: null,
/** 子节点关闭前 */
beforeClose: null,
/** 子节点关闭后 */
afterClose: null
},
class: '',
style: '',
url: '',
loaded: false,
destroyed: false
});
if ((checkAlive || c.valid.nullOrUndefined(checkAlive)) && conf.destroyed)
throw '已卸载插件, 无法继续使用';
return conf;
}
Tree.logger && Tree.logger.info('载入Logger API', Tree.dir = {
api: Tree.prototype,
'[[constructor]]': 'Tree($origin, autoInit, dev), $origin-树控件容器, autoInit-自动初始化, dev-调试模式打印更多日志',
eg: ''
});
})(window.jsu = (window.jsu || {}));<file_sep># Javascript-Util
Javascript Util是在jQuery基础上提供部分插件, 浏览器内核以Chrome Google为主
插件入口: `window.jsu`
- [Form: 表单控件](#表单控件)
- [Tree: 树控件](#树控件)
- [Pager: 分页条](#分页条)
- [Table: 表格](#表格)
## 表单控件
通过`jsu.Form`实例对象获取/设置表单数据
#### 获取实例
```javascript
var
// 不限于<form />控件, 子控件包含有效的表单控件即可(input/select/textarea...)
$form = $('.form'),
// 如果启用mvvm模式, 可以通过修改数据直接控制表单控件
mvvm = true,
// 是否打印日志
dev = true;
var form = new jsu.Form($form, mvvm, dev);
```
#### Form.data(data?)
指定参数时设置数据, 无参数时获取数据.
```javascript
// 获取数据
var formData = form.data();
// 如果开启mvvm模式该接口只需要调用一次, 后续数据获取或修改直接通过引用即可
formData.text = 'bar';
// 目前不支持复杂属性操作, formData.checkbox.push('foo'); 但可以通过手动 setter 来刷新
formData.checkbox.push('foo');
formData.checkbox = formData.checkbox;
// 回填数据
// 自动忽略表单控件不存在的属性([name])
form.data(formData);
```
#### Form.clear()
清空表单, 删除所有表单控件的值
#### Form.restore()
初始化: 表单控件的值恢复到获取`Form`对象时的状态
#### Form.validation(es)
表单校验
#### 校验事件(es):
```javascript
es = {
success: function(res){console.log('校验成功')},
failed: function(res){console.log('校验失败')},
completed: function() {console.log('校验完成')}
}
```
#### 校验配置
```html
<!--正则表达式校验-->
<input data-regexp="/^\S{6,18}$/" data-regexp-error="密码长度6~18位" >
<!--相同值校验-->
<input data-eq="[name='pwd']" data-eq-error="两次密码输入不一致" >
<!--不同值校验-->
<input data-not-eq="[name='username']" data-not-eq-error="密码不能与用户名相同" >
<!--远程校验-->
<!--暂未实现-->
<input data-remote="/user/notExist" data-remote-error="用户名已存在" >
<!--其他常规校验-->
<input type="text" required="required" >
<input type="text" minlength="3" maxlength="15" >
<input type="number" min="1" step="0.5" max="100" >
```
## 树控件
通过`jsu.Tree`展示/操作具有**树结构特性**的数据. 同时支持单根和多根数据结构.
#### 获取实例
```javascript
var
// 树容器
$tree = $('.container .tree'),
// 自动初始化
autoInit = true,
// 是否打印日志
dev = true;
var tree = new jsu.Tree($tree, autoInit, dev);
```
#### Tree.init()
初始化树控件
#### Tree.destroy()
卸载树控件
#### Tree.data(data?)
指定data参数时设置数据, 无参数时获取数据
#### Tree.expandNode(nodes?, dataKey?)
参数**nodes**有值时指定展开节点, 如果没有值则获取已展开的节点;
参数**dataKey**用于指定节点数据唯一值(Primary Key)的属性名;
#### Tree.activateNode(nodes?, dataKey?)
参数**nodes**有值时指定选中的节点, 如果没有值则获取展开的节点;
如果节点数据为子节点控件自动展开父节点; 如果**nodes**为空数组时, 清空所有选中的节点;
参数**dataKey**用于指定节点数据唯一值(Primary Key)的属性名;
#### Tree.events(es)
注册事件:
```javascript
tree.events({
loaded: function () {
logger.info('>>>>>>>>>> 加载完成', arguments);
},
destroyed: function () {
logger.info('>>>>>>>>>> 卸载完成', arguments);
},
beforeAppend: function () {
logger.info('>>>>>>>>>> 节点追加前', arguments);
// return false;
},
afterAppend: function () {
logger.info('>>>>>>>>>> 节点追加后', arguments);
},
updated: function () {
logger.info('>>>>>>>>>> 更新完成,', arguments);
},
beforeExpand: function () {
logger.info('>>>>>>>>>> 子节点展开前', arguments);
// return false;
},
afterExpand: function () {
logger.info('>>>>>>>>>> 子节点展开后', arguments);
},
beforeClose: function () {
logger.info('>>>>>>>>>> 子节点关闭前', arguments);
},
afterClose: function () {
logger.info('>>>>>>>>>> 子节点关闭后', arguments);
}
});
```
## 分页条
分页条`jsu.Pager`用于请求可分页的数据列表
#### HTML控件配置
```html
<!--data-url: 分页数据获取-->
<!--data-reload: 点击相同页码是否发起请求-->
<!--data-sizes: 页大小可选项, 默认第一项-->
<!--data-count: 页码数量, 推荐为奇数-->
<!--
data-layout: 布局组件可自由配置, 与顺序无关
total: 总页数组件
sizes: 可选页码组件
prev: 上一页组件
next: 下一页组件
jumper: 自由跳转组件
-->
<div class="pager"
data-url='Page.jsp'
data-reload='true'
data-sizes='5,10,20,50,100'
data-count='7'
data-layout="total, sizes, prev, pager, next, jumper"></div>
```
#### 获取实例
```javascript
var
// 分页条容器
$pager = $('.pager'),
// 自动初始化
autoInit = true,
// 调试日志
dev = true;
var pager = new jsu.Pager($pager, autoInit, dev);
```
#### Pager.init()
手动初始化
#### Pager.destroy()
销毁分页条控件
#### Pager.data(pagerData)
设置分页条数据
```javascript
pagerData = {
// 总条数
total: 20,
// 当前页码
index: 1
}
```
#### Pager.index(pageIndex?)
获取/设置当前页码
#### Pager.events(pagerEvents)
注册事件:
```javascript
pager.events({
loaded: function () {
logger.info('>>> 加载完成', arguments);
},
before: function (index) {
logger.info('>>> 跳转到指定页之前', arguments);
return index;
},
formatter: function (resp) {
logger.info('>>> 数据格式化', arguments);
if (true === resp['flag'])
return resp.data;
logger.warn('服务器处理失败', resp);
return {data: [], total: 0, index: 1};
},
after: function (data, conf) {
logger.info('>>> 跳转到指定页之后', arguments);
},
destroyed: function () {
logger.info('>>> 卸载之后', arguments);
}
});
```
## 表格
表格插件`jsu.Table`支持二维规整数据展示, 支持**列宽调整**、**列顺序调整**、**表头固定**、**左/右列固定**、**加载分页条**等操作
#### HTML控件配置
```html
<table class="table"
data-pagination
data-url='Page.jsp'
data-reload='true'
data-sizes='10,20,50,100'
data-count='7'
data-layout="total, sizes, prev, pager, next, jumper">
<thead>
<tr>
<th data-type="index" data-text="索引"></th>
<th data-type="expand" data-text="展开">
<!-- 展开模板置于 [data-expand] 容器内部 -->
<div data-expand>展开模板, 可嵌套任何内容</div>
</th>
<th data-type="selection" data-selection="checkbox" data-text="全选"></th>
<th data-type="text" data-prop="name">文本</th>
<th data-type="enum" data-prop="gender" data-enum='{"MALE":"男","FEMALE":"女"}'>枚举</th>
<th data-type="date" data-prop="date" data-date-format="yyyy-MM-dd hh:mm:ss:S" data-text="注册时间"></th>
<th data-type="html" data-prop="note">简介</th>
<th data-type="html" data-prop="note" data-writable>编辑简介</th>
<th data-type="date" data-prop="date" data-date-format="yyyy-MM-dd hh:mm:ss:S" data-writable>编辑注册时间</th>
<th data-type="enum" data-prop="gender" data-writable data-enum='{"MALE":"男","FEMALE":"女"}' data-text="编辑性别">
<div data-writable>
<label>
<select name>
<option value="MALE">男</option>
<option value="FEMALE">女</option>
</select>
</label>
</div>
</th>
<th data-type="template" data-text="操作">
<div data-template>
<a href="javascript:" class="row-data">Get Data</a>
<button class="update-name">Update Name</button>
</div>
</th>
</tr>
</thead>
</table>
```
- <table>属性说明
| 属性名 | 类型 | 可选值 | 说明 |
| :------ | :---- | :------ | :---- |
| data-pagination | -/- | -/- | 启用分页条配置 |
| data-url | string | any | 分页数据请求地址 |
| data-reload | boolean | true/false | 激活相同页码是否重新加载数据 |
| data-sizes | number | 正整数 | 多个页码值使用英文逗号分隔(,) |
| data-count | number | 正整数 | 页码显示数量, 推荐使用奇数(如5,7等) |
| data-layout | string | total, sizes, prev, pager, next, jumper | 页脚布局可选一个或多个 |
- <th>属性说明
| 属性名 | 类型 | 可选值 | 说明 |
| :------ | :---- | :------ | :---- |
| data-type | string | index <br>expand <br>selection <br>text <br>enum <br>date <br>html <br>template | `index`: 本页数据行数索引 <br> `expand`: 可展开行(展开的内容包裹在[data-expand]容器内部) <br>`selection`:可选择数据行 <br>**`text`**:文本内容(默认值) <br>`enum`: 枚举值 <br>`date`:日期 <br>`html`:内容中包含HTML内容 <br>`template`:模板内容(需要配合`[data-template]`使用) |
| data-text | string | any | 表头名称, 如果是简单类型`data-type`可使用标签体代替 |
| data-selection | string | radio/checkbox | 如果`data-type`指定为`selection`时, 由当前配置指定选择类型;<br>`radio`:单选数据行 <br>`checkbox`:多选数据行 |
| data-prop | string | `ognl`表达式 | 单元格数据属性名, 如: `bar`、`foo.bar` |
| data-enum | json | json-string | 如果`data-type`指定为`enum`时, 由当前配置指定可匹配范围; <br>JSON对象字符串表现形式, 参考JSON.stringify() |
| data-date-format | string | y,M,d,h,m,s,S | 如果`data-type`指定为`date`时, 由当前配置格式化日期对象(时间戳) <br>`y`:年, yyyy/yy <br>`M`:月, mm <br>`d`:日,dd <br>`h`:时, hh <br>`m`:分, mm <br>`s`:秒: ss <br>`S`:毫秒值, S |
| data-writable | -/- | -/- | 可编辑单元格标记, 可与第一个子控件`[data-writable]`配合使用 |
#### 获取实例
```javascript
var
// 表格容器
$table = $('.table'),
// 自动初始化
autoInit = true,
// 调试日志
dev = true;
var table = new jsu.Table($table, autoInit, dev);
```
#### Table.init()
手动初始化
#### Table.destroy()
销毁并还原控件
#### Table.data(data?)
获取/设置表格数据
#### Table.actionRows(rows?)
获取/设置选中的数据, 数据必须从**Table.data**()中获取.
#### Table.clearActions()
清空选中的数据行
#### Table.events(tableEvents)
注册事件
```javascript
table.events({
cellReady: function () {
logger.info('cellReady', arguments);
},
rowReady: function () {
logger.info('rowReady', arguments);
},
updated: function () {
logger.info('updated', arguments);
},
mouseEnter: function () {
logger.info('mouseEnter', arguments);
},
mouseLeave: function () {
logger.info('mouseLeave', arguments);
},
click: function () {
logger.info('click', arguments);
},
action: function () {
logger.log('table action', arguments);
},
expandOpen: function (row, $container) {
logger.info('expandOpen', arguments);
// return false;
},
expandOpened: function (row, $container) {
logger.info('expandOpened', arguments);
},
expandClose: function () {
logger.info('expandClose', arguments);
// return false;
},
expandClosed: function () {
logger.info('expandClosed', arguments);
}
});
```
#### Table.paginationEvents(pagerEs)
注册分页条事件, 需要**pagination**配置.
参考: [Pager.events](#pagereventspagerevents) | bfc08b04f60a284db20b4cda58ae615795ed5be6 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | fzcm/Javascript-Util | 0f49fa58b758d5d4cf76f0d4ad85ca55b05ad2c0 | fa1b6bee2fc20c9d5707d8b83ed4ce31c2a80a9c |
refs/heads/master | <repo_name>rohit3021994/day3<file_sep>/rohit.js
console.log(`rohi veda`);
console.log('lay bhuk lagliy');
| f357cf05d5a5a04ed9cf347bb1878a07ede99358 | [
"JavaScript"
] | 1 | JavaScript | rohit3021994/day3 | fba1ebe1c9f690c298f3baf01dad5d28933d7102 | caf82734a68c4ea94c2ecc54b2cf4d38312b04dc |
refs/heads/master | <repo_name>austinnguyen2001/AlbionAssistant<file_sep>/main.py
from pynput import keyboard
from tkWindow import TkWindow
import wmi
import cv2
gui = TkWindow()
process_manager = wmi.WMI()
open_process_watcher = process_manager.Win32_Process.watch_for("Creation")
close_process_watcher = process_manager.Win32_Process.watch_for("Deletion")
def on_release(key):
try:
if key.char == 'l': gui.toggle_visibility()
except Exception: pass
listener = keyboard.Listener(on_release=on_release)
# Only run when Albion is open
while True:
new_process = open_process_watcher()
close_process = close_process_watcher()
if new_process.Caption == "Albion-Online.exe":
with listener:
gui.start_loop()
listener.join()
if close_process.Caption == "Albion-Online.exe":
gui.destroy()
listener.stop()<file_sep>/imageProcessor.py
from PIL import Image, ImageGrab
import pytesseract
import json
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files (x86)\Tesseract-OCR\tesseract.exe'
class ImageProcessor:
def __init__(self, args):
self.args = args
with open('world.json') as f:
self.data = json.load(f)
def process_screenshot(self, args):
if args == 'location':
screenshot = ImageGrab.grab(bbox=(self.args['width'] - 260, self.args['height'] - 45, self.args['width'] - 70, self.args['height'] - 15))
text = pytesseract.image_to_string(screenshot)
matches = [loc for loc in self.data if loc['UniqueName'] in text]
if matches: bestMatch = max(matches, key=lambda loc: len(loc['UniqueName']))
else: bestMatch = ""
return bestMatch
return ""
<file_sep>/README.md
# AlbionAssistant
At the moment the project is for getting the feel of the power of image processing. In the future the project will be rewritten with packet sniffers for better performance and accuracy.
<file_sep>/tkWindow.py
from tkinter import *
from imageProcessor import ImageProcessor
import matplotlib.pyplot as plt
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
import json
import urllib
class TkWindow:
def __init__(self):
self.isActive = False
self.location = ""
self.window = Tk()
self.window.geometry(f'600x{self.window.winfo_screenheight() - 60}+{self.window.winfo_screenwidth()-600}+0')
self.window.attributes('-topmost', True)
# Used to remove the title tabs
self.window.overrideredirect(1)
self.create_widgets()
self.window.withdraw()
self.imageProcessor = ImageProcessor(self.get_dimensions())
def create_widgets(self):
self.text = Label(self.window, text = self.location)
self.text.pack()
self.fig = plt.Figure(figsize=(6, 6))
self.a = self.fig.add_subplot(111)
self.canvas = FigureCanvasTkAgg(self.fig, master=self.window)
self.canvas.get_tk_widget().pack()
def get_dimensions(self):
return {
'height': self.window.winfo_screenheight(),
'width': self.window.winfo_screenwidth()
}
def update_location(self):
self.location = self.imageProcessor.process_screenshot('location')
if len(self.location) != 0:
self.text["text"] = self.location['UniqueName']
self.window.after(400, self.update_location)
ablionMap = self.getResponse(f"https://www.albiononline2d.com/en/map/api/nodes/{self.location['Index']}")['resourceNodes']
self.a.scatter(ablionMap["origX"], ablionMap["origY"], color='red')
self.canvas.draw()
def getResponse(self, url):
request = urllib.request.urlopen(url)
if (request.getcode() == 200):
data = request.read()
return data
def start_loop(self):
self.update_location()
self.window.mainloop()
def toggle_visibility(self):
self.isActive = not self.isActive
self.window.deiconify() if self.isActive else self.window.withdraw()
def destroy(self):
self.window.destroy() | 3c41b632da0919b4bbecfd37cd7510b3f6d1df31 | [
"Markdown",
"Python"
] | 4 | Python | austinnguyen2001/AlbionAssistant | c605a45bbaba02cd050563d6d36bb01168d6e973 | cabe555d38ce8da4be22fa6a88ae1b725cfe3d0b |
refs/heads/master | <repo_name>GamezAr94/GridSystem<file_sep>/AstarPathFinding/Assets/Testing.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Gamez;
public class Testing : MonoBehaviour
{
private Grid grid;
private void Start()
{
grid = new Grid(4, 2, 10f, new Vector3(20,0));
}
private void Update()
{
if (Input.GetMouseButtonDown(0))
{
grid.SetValue(UtilsClass.GetMouseWorldPosition(), 56);
}
if (Input.GetMouseButtonDown(1))
{
Debug.LogError(grid.GetValue(UtilsClass.GetMouseWorldPosition()));
}
}
}
<file_sep>/README.md
# Grid System
This project I created a grid system where I can change a value in each grid cell just by clicking it and also get the info of the value stored in it.It is a base to create a heat map where the grid cells change color depends of how long the cursor stays in each cell or a path finding program.
# What I Learned
* Multi dimensional array.
* Use of text mesh.
* Use of Vector3.
| 6fb36dead870324f50ef2daadaa9c548c6712cf2 | [
"Markdown",
"C#"
] | 2 | C# | GamezAr94/GridSystem | f06f2eb73961a1af2bedc1ea974716a4d38f8bb1 | 81f72e6889bd39582bd9eb17f5ab1b150ccfec54 |
refs/heads/master | <file_sep>cowboy_fcgi
===========
NOTE: This repository is no longer being updated. For continued development see [unix1/cowboy_fcgi](https://github.com/unix1/cowboy_fcgi).
cowboy_fcgi is a FastCGI handler for Cowboy.
<file_sep><?php
$host = $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'];
header('Location: http://' . $host . '/ping');
echo 'Ping!', "\n";<file_sep><?php
header('Content-Type: text/plain');
?>
<?php if ($_GET['name'] == 'Shinji'):?>
Shut up!
<?php else:?>
Hello <?php echo $_GET['name']?>!
<?php endif?>
<file_sep># See LICENSE for licensing information.
DIALYZER = dialyzer
REBAR = rebar
.PHONY: all app deps clean tests eunit ct build-plt dialyze docs
all: app
app: deps
@$(REBAR) compile
deps:
@$(REBAR) get-deps
clean:
@$(REBAR) clean
rm -f test/*.beam
rm -f erl_crash.dump
tests: clean app eunit ct
eunit:
@$(REBAR) eunit skip_deps=true
ct:
@$(REBAR) ct
build-plt: .cowboy_fcgi_dialyzer.plt
.cowboy_fcgi_dialyzer.plt: deps all
@$(DIALYZER) --build_plt --output_plt $@ \
--apps kernel stdlib sasl inets crypto public_key ssl \
-pa deps/*/ebin deps/*/ebin/*.beam
dialyze:
@$(DIALYZER) --src src --plt $< \
-Wbehaviours -Werror_handling \
-Wrace_conditions -Wunmatched_returns # -Wunderspecs
docs:
@$(REBAR) doc
<file_sep><?php
if (isset($_SERVER['PATH_INFO'])) {
header('X-Path-Info: ' . $_SERVER['PATH_INFO']);
}
if (isset($_SERVER['PATH_TRANSLATED'])) {
header('X-Path-Translated: ' . $_SERVER['PATH_TRANSLATED']);
}
?>
ok
<file_sep>{incl_app, cowboy_fcgi, details}.
<file_sep><?php
if (isset($_GET['names'])) {
foreach (explode(',', $_GET['names']) as $name) {
if (isset($_COOKIE[$name])) {
echo $_COOKIE[$name];
}
echo "\n";
}
}
<file_sep><?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if (isset($_POST['god-location'], $_POST['world-state'])) {
if ($_POST['god-location'] == 'heaven' && $_POST['world-state'] == 'ok')
echo 'God\'s in his Heaven-- All\'s right with the world!';
exit;
}
}
header('Status: 500 Hell is coming on you');
<file_sep><?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
header('Content-Type: text/x-plain-and-boring');
readfile('php://input');
} else {
header('Status: 405 Method Not Allowed');
}
<file_sep><?php
if (isset($_GET['name'])) {
$param = 'HTTP_' . str_replace('-', '_', strtoupper($_GET['name']));
if (isset($_SERVER[$param])) {
echo $_SERVER[$param];
exit;
}
}
header('Status: 400 Bad Request');
| ac9955ba2f71b14ca5e66459a2125e847e4c8c66 | [
"Markdown",
"Python",
"Makefile",
"PHP"
] | 10 | Markdown | extend/cowboy_fcgi | 5d8eb03f245d975c2ad26e399f2c1d056a7a2494 | b23bdcd94319f5ca046311924a8828be7db23469 |
refs/heads/master | <file_sep>name "web-target"
description "A test web target with several vulnerabilities"
run_list(
"recipe[web-target]"
)
<file_sep>#!/bin/bash
#
# bootstrap.sh
#
# This script provides a basic environment for executing
# Chef cookbooks via the chef-solo command
# Get deps via apt
sudo apt-get update
sudo apt-get install -y build-essential curl libssl-dev libxml2 libxml2-dev libyaml-dev libxslt1-dev libreadline-dev libpq-dev git-core libzlib-ruby sqlite libsqlite3-dev libcurl3 libcurl3-gnutls libcurl4-openssl-dev
# Install Ruby
sudo mkdir -p /usr/local/src && cd /usr/local/src
sudo wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.gz
sudo tar -zxf ruby-1.9.3-p484.tar.gz
cd ruby-1.9.3-p484
sudo ./configure && sudo make && sudo make install
# Install RubyGems
cd /usr/local/src
sudo wget http://rubyforge.org/frs/download.php/76729/rubygems-1.8.25.tgz
sudo tar -xzf rubygems-1.8.25.tgz
cd rubygems-1.8.25 && sudo ruby setup.rb
# Install Chef gem
cd ~ # might as well go home at this point
sudo gem install chef --no-rdoc --no-ri --version "~> 11.4"
<file_sep>name "SSH-only"
description "For when you just want remote login and nothing else yet"
run_list(
"recipe[openssh]"
)
<file_sep>name "arachni"
description "Arachni web application security scanner framework"
run_list(
"recipe[arachni]"
)
<file_sep>name "LAMP-stack"
description "For playing w/ Apache, MySQL, PHP"
run_list(
"recipe[vim]",
"recipe[apache2]",
"recipe[mysql]",
"recipe[openssh]",
)
<file_sep>name "skipfish"
description "web application security scanner"
run_list(
"recipe[skipfish]"
)
| b89212c24ca6720b846fc0ada48ea769a1c54fd5 | [
"Ruby",
"Shell"
] | 6 | Ruby | todb-r7/Chef-Metasploit | 8894bce789f0df3c3fb74213aaff3606b32cbadd | 25cec153084e8b827fcd5b19568b9eee0ce02d0b |
refs/heads/master | <file_sep>import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ValiationsComponent } from './valiations.component';
describe('ValiationsComponent', () => {
let component: ValiationsComponent;
let fixture: ComponentFixture<ValiationsComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ValiationsComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ValiationsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
<file_sep>import { Component, OnInit } from '@angular/core';
import { Employee } from './emp';
@Component({
selector: 'hex-tbl',
templateUrl: './tbl.component.html',
styleUrls: ['./tbl.component.css']
})
export class TblComponent {
id: number;
name: string;
address: string;
gender: string;
company: string;
//emp: Employee[] = [];
employees: Employee[] = [
{
id: 1,
name: 'Ram',
address: 'Kupondole',
gender: 'Male',
company: 'XYZ Techno Sales'
},
{
id: 2,
name: 'Shyam',
address: 'Baneshwor',
gender: 'Male',
company: 'ABC Enterprises'
},
{
id: 3,
name: 'Prashansha',
address: 'Tripureshwor',
gender: 'Female',
company: 'MNO Inc'
},
{
id: 4,
name: 'Rita',
address: 'Ghatthaghar',
gender: 'Female',
company: 'Subisu'
}
];
addRow() {
//prompt("Checking the control!");
this.employees.push({
id: this.id,
name: this.name,
address: this.address,
gender: this.gender,
company: this.company
});
}
deleteEmployee(index: number) {
this.employees.splice(index, 1);
}
editEmployee(index :Employee) {
//code for editing
}
}
<file_sep>import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import { MatTableModule} from '@angular/material';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
import { TableSelectionExample } from './table-selection-example/table-selection-example.component';
import {MatCheckboxModule} from '@angular/material/checkbox';
import { NumberinputDirective } from './numberinput.directive';
import { TblComponent } from './tbl/tbl.component';
import { ValiationsComponent } from './valiations/valiations.component';
import { TabsComponent } from './tabs/tabs.component';
@NgModule({
declarations: [
AppComponent,
TableSelectionExample,
NumberinputDirective,
TblComponent,
ValiationsComponent,
TabsComponent
],
imports: [
BrowserModule,ReactiveFormsModule,BrowserAnimationsModule,NoopAnimationsModule,
MatTableModule,
MatCheckboxModule,
FormsModule,
ReactiveFormsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
| d02cb9dd7af496b7799e573e41a530a6e5554186 | [
"TypeScript"
] | 3 | TypeScript | sathyapv92/formarray | fa96180428637417169debdc1a2adde1089391b6 | 48811c23054c33bc62aa6b7ce169445ed7ac3bb9 |
refs/heads/master | <file_sep>package screens;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
Scene content = new Scene(ScreenController.getBasePane(), 900, 900);
@Override
public void start(Stage primaryStage) throws Exception{
primaryStage.setTitle("Juke Meister");
content.getStylesheets().add("screens/JukeMeister.css");
primaryStage.setScene(content);
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
<file_sep>package util;
import library.SongLibrary;
import player.SongQueue;
/**
* Class with static operations for basic Jukebox functionality.
*/
public class ApplicationSettings {
/** The queue of songs waiting to be played */
private static SongQueue queue;
/** The library of all songs in the jukebox */
private static SongLibrary library;
/**
* Get the queue that songs to be played are stored in.
*
* @return the queue that songs to be played are stored in
*/
public static SongQueue getQueueInstance(){
if(queue == null) queue = new SongQueue();
return queue;
}
/**
* Get the song library that stores all songs in the jukebox
*
* @return the library of all songs in the jukebox
*/
public static SongLibrary getLibraryInstance(){
if(library == null) library = new SongLibrary();
return library;
}
}
<file_sep>package screens;
import org.junit.Test;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Parent;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import static org.junit.Assert.*;
/**
* Created by user on 4/11/2016.
*/
public class AdminMenu extends JukeScreen{
int buttonHeight = 25;
int backPadding = 10;
double optionsMaxWidth = 250;
Label title = new Label("Admin Menu");
HBox titleBox = new HBox();
Button stats = new Button("Stats");
Button songLibary = new Button("Song Library");
Button importExport = new Button("Import/Export");
Button creditControl = new Button("Credit Control");
Button misc = new Button("Misc");
Button back = new Button("<--");
VBox backBox = new VBox();
Label blank = new Label();
VBox center = new VBox();
VBox options = new VBox(25);
public AdminMenu() {
setButtonsUp();
importExport.setPrefSize(Double.MAX_VALUE, buttonHeight);
creditControl.setPrefSize(Double.MAX_VALUE, buttonHeight);
songLibary.setPrefSize(Double.MAX_VALUE, buttonHeight);
stats.setPrefSize(Double.MAX_VALUE, buttonHeight);
misc.setPrefSize(Double.MAX_VALUE, buttonHeight);
backBox.getChildren().add(back);
backBox.setPadding(new Insets(backPadding,backPadding,backPadding,backPadding));
blank.setPrefSize(back.getWidth()+backPadding, back.getHeight()+backPadding);
titleBox.setAlignment(Pos.CENTER);
titleBox.getChildren().add(title);
options.setMaxWidth(optionsMaxWidth);
options.getChildren().addAll(stats, songLibary, importExport, creditControl, misc);
center.setAlignment(Pos.CENTER);
center.getChildren().add(options);
this.setCenter(center);
this.setLeft(backBox);
this.setRight(blank);
this.setTop(titleBox);
}
@Test(timeout = 1000)
private void setButtonsUp(){
stats.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
ScreenController.setScreen(ScreenController.Screens.ADMIN_STATS);
}
});
songLibary.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
ScreenController.setScreen(ScreenController.Screens.ADMIN_SONG_LIBARY);
}
});
misc.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
ScreenController.setScreen(ScreenController.Screens.ADMIN_OTHER_FEATURES);
}
});
creditControl.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
ScreenController.setScreen(ScreenController.Screens.ADMIN_CREDIT_CONTROL);
}
});
importExport.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
ScreenController.setScreen(ScreenController.Screens.IMPORT_AND_EXPORT);
}
});
back.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
ScreenController.backOneScreen();
}
});
}
@Override
public Parent getScreen() {
return null;
}
@Override
public void update() {
}
}
<file_sep>package screens;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Pos;
import javafx.scene.Parent;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.control.ToggleButton;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
/**
* Created by user on 4/11/2016.
*/
public class AdminCreditControl extends JukeScreen {
/**contains the title for the menu, and the HBox that centers it*/
Label title = new Label("Credit Control");
HBox titleBox = new HBox();
/**Components needed for free play mode, free play can be toggled on and off*/
Label toggleLabel = new Label("Free Play Mode: ");
ToggleButton toggleFreePlayMode = new ToggleButton();
HBox toggleFreeBox = new HBox();
/**Fields require for the admin to set the cost of each song*/
Label songCost = new Label("Cost per song: ");
TextField songCostField = new TextField();
HBox songCostBox = new HBox();
/**Allows the admin to set a free bonus song after each x amount*/
Label freeSongCost = new Label("Amount until bonus song: ");
TextField freeSongCostField = new TextField();
HBox freeSongCostBox = new HBox();
/**back button should return the admin back to the previous screen*/
Button back = new Button("<--");
/**HBoxes and VBoxes needed to center the content to the center of the screen*/
VBox options = new VBox(15);
HBox center = new HBox();
VBox centerInner = new VBox();
public AdminCreditControl(){
setTitle();
setBack();
setCenter();
}
public void setBack(){
this.setLeft(back);
back.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
ScreenController.backOneScreen();
}
});
}
/**
* ========================================
* Sets all the user input fields and
* buttons to the center of the screen.
*========================================
*/
public void setCenter(){
toggleFreeBox.getChildren().addAll(toggleLabel,toggleFreePlayMode);
songCostBox.getChildren().addAll(songCost, songCostField);
freeSongCostBox.getChildren().addAll(freeSongCost, freeSongCostField);
options.getChildren().addAll(toggleFreeBox, songCostBox, freeSongCostBox);
centerInner.getChildren().add(options);
centerInner.setAlignment(Pos.CENTER);
center.getChildren().add(centerInner);
center.setAlignment(Pos.CENTER);
this.setCenter(center);
}
public void setTitle(){
titleBox.setAlignment(Pos.CENTER);
titleBox.getChildren().add(title);
this.setTop(titleBox);
}
@Override
public Parent getScreen() {
return null;
}
@Override
public void update() {
}
}
<file_sep>package screens;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Pos;
import javafx.scene.Parent;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.ScrollPane;
import javafx.scene.control.TextField;
import javafx.scene.image.ImageView;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
/**
* Screen where an administrator can add an album to the song library.
*/
public class AdminAddAlbum extends JukeScreen{
/** Label for the menu name*/
Label title = new Label("Add Song");
/** HBox to help center the menu label*/
HBox screenTitleBox = new HBox();
/**Search for a picture to go with the album*/
Button addPic = new Button("Add Picture");
/**Search for a song to add to the database*/
Button browse = new Button("Browse for Song");
/** Displays the album art */
ImageView songArt = new ImageView("sample/images/display.png");
/** Label that prompts the administrator to enter the album title */
Label titleLabel = new Label("Title: ");
/** The field where the administrator enters the album title */
TextField titleField = new TextField();
/** The horizontal box where the title is contained */
HBox titleBox = new HBox();
/**All the components to make the user input field for the name of the band/artist*/
Label artistLabel = new Label("Artist: ");
TextField artistField = new TextField();
HBox artistBox = new HBox();
/**All the components to make the user input field for the year the song was released*/
Label yearLabel = new Label("Year of Release: ");
TextField yearField = new TextField();
HBox yearBox = new HBox();
//Sam- I don't think we actually need this. The media object should just play to completion regardless.
//so this field seems kinda redundant
/**All the components to make the user input field for how long the song plays*/
Label timeLabel = new Label("Playing Time: ");
TextField timeField = new TextField();
HBox timeBox = new HBox();
/**Button that will add the Album to the embedded database*/
Button addAlbum = new Button("Add Album");
Label songsOnAlbum = new Label("Songs on Album");
HBox songsOnAlbumCenter = new HBox();
ScrollPane listOfSongs = new ScrollPane();
VBox albumScrollContent = new VBox();
/**Should take the admin back one screen*/
Button back = new Button("<--");
HBox center = new HBox();
VBox centerInner = new VBox();
VBox content = new VBox(10);
HBox imageCenter = new HBox();
/**Default constructor for AdminAddSong*/
public AdminAddAlbum() {
setTitleBar();
setCenter();
setBackButton();
}
/**========================================
* Sets the menu name at the top center of
* the screen.
*========================================
*/
public void setTitleBar(){
screenTitleBox.setAlignment(Pos.CENTER);
screenTitleBox.getChildren().add(title);
this.setTop(screenTitleBox);
}
/**========================================
* Sets all the user input fields and
* buttons to the center of the screen.
*========================================
*/
public void setCenter(){
setAlbumCenter();
imageCenter.getChildren().add(songArt);
titleBox.getChildren().addAll(titleLabel, titleField);
artistBox.getChildren().addAll(artistLabel, artistField);
yearBox.getChildren().addAll(yearLabel, yearField);
timeBox.getChildren().addAll(timeLabel, timeField);
content.getChildren().addAll(imageCenter, addPic, browse, titleBox,
artistBox, yearBox, timeBox, albumScrollContent);
songArt.setPreserveRatio(true);
songArt.setFitWidth(250.0);
songArt.setFitHeight(250.0);
addAlbum.setMaxWidth(Double.MAX_VALUE);
addPic.setMaxWidth(Double.MAX_VALUE);
browse.setMaxWidth(Double.MAX_VALUE);
center.setMaxWidth(500.0);
centerInner.getChildren().add(content);
centerInner.setAlignment(Pos.CENTER);
center.getChildren().add(centerInner);
center.setAlignment(Pos.CENTER);
imageCenter.setAlignment(Pos.CENTER);
this.setCenter(center);
}
/**
* Places the album art image in the center of the screen.
*/
private void setAlbumCenter(){
songsOnAlbumCenter.getChildren().add(songsOnAlbum);
songsOnAlbumCenter.setAlignment(Pos.CENTER);
albumScrollContent.getChildren().addAll(songsOnAlbumCenter, listOfSongs, addAlbum);
}
/**
* Add the back button to the left side of the screen.
*/
public void setBackButton(){
this.setLeft(back);
back.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
ScreenController.backOneScreen();
}
});
}
/**
*
*/
@Override
public Parent getScreen() {
return null;
}
@Override
public void update() {
}
}
<file_sep>package screens;
import javafx.scene.Parent;
import javafx.scene.layout.BorderPane;
import org.junit.Test;
/**
* Created by user on 4/19/2016.
*/
public class JukeScreen extends BorderPane implements JukeScreenIF {
@Override
public Parent getScreen() {
return this;
}
@Override
public void update() {
System.out.println("The update methods for this has not been overriden");
}
}
<file_sep>package screens;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Pos;
import javafx.scene.Parent;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.ScrollPane;
import javafx.scene.control.TextField;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
/**
* Created by GJ on 4/20/2016.
*/
public class AdminStats extends JukeScreen {
/**contains the title for the menu, and the HBox that centers it*/
Label title = new Label("Stats");
HBox titleBox = new HBox();
/**Fields require for total funds display */
// need to have a variable that would hold the current credit
// and show it in totalFundsDisplay
double currentFunds = 0.00;
Label totalFundsLabel = new Label("Total Funds: ");
Label totalFundsDisplay = new Label(""+currentFunds);
HBox totalFundsBox = new HBox();
/**Fields for sorting buttons */
Button mostPlayedBtn = new Button("Most Played");
Button leastPlayedBtn = new Button("Least Played");
HBox sortingButtons = new HBox(10.0);
/** Back button */
Button back = new Button("<--");
/** Should display all the songs in the database */
ScrollPane sortedSongs = new ScrollPane();
VBox options = new VBox(10);
VBox centerInner = new VBox();
HBox center = new HBox();
/**
* Default constructor
*/
public AdminStats() {
setTitleBar();
setCenter();
back.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
ScreenController.backOneScreen();
}
});
}
/**========================================
* Sets the menu name at the top center of
* the screen.
*========================================
*/
public void setTitleBar(){
titleBox.setAlignment(Pos.CENTER);
titleBox.getChildren().add(title);
this.setTop(titleBox);
}
/**========================================
* Sets all the user input fields and
* buttons to the center of the screen.
*========================================
*/
public void setCenter(){
totalFundsBox.getChildren().addAll(totalFundsLabel,
totalFundsDisplay);
//importFileFrom.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE);
//exportToFile.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE);
sortingButtons.getChildren().addAll(mostPlayedBtn,
leastPlayedBtn);
options.getChildren().addAll(totalFundsBox,
sortingButtons, sortedSongs);
centerInner.getChildren().add(options);
centerInner.setAlignment(Pos.CENTER);
center.getChildren().add(centerInner);
center.setAlignment(Pos.CENTER);
this.setCenter(center);
this.setLeft(back);
}
@Override
public Parent getScreen() {
return null;
}
@Override
public void update() {
}
}
<file_sep>package screens;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Pos;
import javafx.scene.Parent;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
public class ImportExport extends JukeScreen {
/**contains the title for the menu, and the HBox that centers it*/
Label title = new Label("Import/Export");
HBox titleBox = new HBox();
/**Fields require for the admin to select the file name*/
Label fileNameLabel = new Label("Select a filename: ");
HBox fileNameLabelBox = new HBox();
TextField fileNameField = new TextField();
HBox fileNameFieldBox = new HBox();
Button importFileFrom = new Button("Import from file");
Button exportToFile = new Button("Export to file");
Button back = new Button("<--");
VBox options = new VBox(30);
VBox centerInner = new VBox();
HBox center = new HBox();
public ImportExport() {
setTitleBar();
setCenter();
back.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
ScreenController.backOneScreen();
}
});
}
/**========================================
* Sets the menu name at the top center of
* the screen.
*========================================
*/
public void setTitleBar(){
titleBox.setAlignment(Pos.CENTER);
titleBox.getChildren().add(title);
this.setTop(titleBox);
}
/**========================================
* Sets all the user input fields and
* buttons to the center of the screen.
*========================================
*/
public void setCenter(){
fileNameLabelBox.getChildren().addAll(fileNameLabel);
fileNameFieldBox.getChildren().addAll(fileNameField);
importFileFrom.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE);
exportToFile.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE);
options.getChildren().addAll(fileNameLabelBox,
fileNameFieldBox, importFileFrom, exportToFile);
centerInner.getChildren().add(options);
centerInner.setAlignment(Pos.CENTER);
center.getChildren().add(centerInner);
center.setAlignment(Pos.CENTER);
this.setCenter(center);
this.setLeft(back);
}
@Override
public Parent getScreen() {
return null;
}
@Override
public void update() {
}
}
<file_sep>package screens;
import javafx.scene.Parent;
/**
* Created by user on 4/14/2016.
*/
public interface JukeScreenIF {
Parent getScreen();
void update();
}
| 69e15445b9b1e56cc9fbc6d6e0d09dc639c44a34 | [
"Java"
] | 9 | Java | ssavins1/JukeMeister | 72f334d137e5805424f8b0b6546b7075aec71788 | be68debb07848938b39699f6c1fcf45cec55d208 |
refs/heads/main | <repo_name>PiteIbarbia/Ignacio_Tecnologia<file_sep>/README.md
# <NAME>
## Creating my personal work page
This is my personal project as an informatics technician. I work on own installng CCTV, doing networking, servers,
upgrading PC and laptops in hardware and software and I asamble and made PC customize for clients.
### Colors used
Background: Green (#4d9900)
Letter: Blue (#0000b3)
body letter: white (#ffffff)
### Text type
Titles: Impact, fantasy
Paragraphs: DejaVu Sans Mono, monospace
<file_sep>/src/Components/Utilities/Footer/Footer.jsx
import React from "react";
import './Footer.css';
export default function Home () {
return(
<div className="contact">
<h1>Contactanos</h1>
<a href="https://www.instagram.com/ignacio_tecnologia/">Instagram</a>
<a href="mailto:<EMAIL> ">Email</a>
<a href="whatsapp://send?text=Estoy interesado en&phone=+54911666551994&abid=+5491166551994">WhatsApp</a>
</div>
)
}<file_sep>/src/Components/Utilities/NavBar/NavBar.jsx
import React from "react";
import './NavBar.css';
import logo from '../../../Images/General/Logo-Ignacio-Tecnologia.png'
export default function Home () {
return(
<div className="menu">
<div className="menu_img">
<img src={logo} alt="Ignacio-Tecnología" />
</div>
<div className="menu_title">
<h1>Ignacio Tecnología</h1>
</div>
</div>
)
} | 1875ec5edd205da33bd03489cf2a1d55e4cb6023 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | PiteIbarbia/Ignacio_Tecnologia | 06aba76f9638fa5125df615464537fd5fb3fc2a2 | abe89a8ab633846b5c6c6ff62772985971c4fdf9 |
refs/heads/master | <file_sep>#include <string.h>
#include <stdlib.h>
#include "esp_log.h"
#include "lwip/err.h"
#include "lwip/sockets.h"
#include "lwip/sys.h"
#include "lwip/netdb.h"
#include "lwip/dns.h"
#include <time.h>
#include "wifi_smartconfig.h"
#include "wifi_sntp.h"
static const char *TAG = "sntp";
#define NTP_PORT 123
//1970年的NTP时间戳
#define TIME1970 2208988800
void sntp_get_task(void *pvParameters)
{
wifi_wait_connected();
ESP_LOGI(TAG, "Connected to AP, begin sntp example\r\n");
int socket_fb;
struct sockaddr_in serv_addr;
char *NTP_SERVER = "0.cn.pool.ntp.org";
uint32_t SIZE_SOCKADDR_IN = sizeof(serv_addr);
memset(&serv_addr, 0, SIZE_SOCKADDR_IN);
struct hostent *hp = NULL;
struct ip4_addr *ip4_addr = NULL;
char ip[16];
hp = gethostbyname(NTP_SERVER);
ip4_addr = (struct ip4_addr *)hp->h_addr;
strcpy(ip, inet_ntoa(*ip4_addr));
ESP_LOGE(TAG,"DNS lookup succeeded.name: %s, ip: %s", NTP_SERVER, ip);
serv_addr.sin_addr.s_addr = inet_addr(ip);
serv_addr.sin_family = AF_INET;
serv_addr.sin_port = htons(NTP_PORT);
//新建socket,UDP
socket_fb = socket(AF_INET, SOCK_DGRAM, 0);
if(socket_fb < 0) {
ESP_LOGE(TAG, "... Failed to allocate socket.\r\n");
close(socket_fb);
vTaskDelay(1000 / portTICK_PERIOD_MS);
return;
}
uint8_t data[48]={0};
int str_lent,ret;
while(1)
{
memset(data, 0, 48);
data[0] = 0x1b;
ret = sendto(socket_fb, data, 48, 0, (struct sockaddr *)&serv_addr, SIZE_SOCKADDR_IN);
do {
vTaskDelay(10 / portTICK_PERIOD_MS);
str_lent = recvfrom(socket_fb , data, 48, 0, (struct sockaddr*)&serv_addr, &SIZE_SOCKADDR_IN);
} while(str_lent != 48);
if(str_lent == 48)
{
time_t t = 0;
for(int i = 40; i <= 43; i++)
{
uint8_t c = (unsigned char)data[i];
t = (t<<8) | c;
}
t -= TIME1970; // 1970.1.1 0:0:0
t += 8 * 60 * 60; // UTC to Beijin
struct tm now_time;
localtime_r(&t, &now_time);
ESP_LOGE(TAG, "%d-%d-%d %d:%d:%d\n", now_time.tm_year + 1900, now_time.tm_mon + 1,
now_time.tm_mday, now_time.tm_hour, now_time.tm_min, now_time.tm_sec);
}
//延时一会
for(int countdown = 10; countdown >= 0; countdown--) {
ESP_LOGI(TAG, "%d...", countdown);
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
}
}
<file_sep>[ESP32 各种时钟参数值设置](https://blog.csdn.net/qinrenzhi/article/details/88601697)
[ws2812驱动总结](https://blog.csdn.net/u013062709/article/details/85217281)
## 感谢两位大佬的奉献:
https://github.com/FozzTexx/ws2812-demo
https://github.com/JSchaenzle/ESP32-NeoPixel-WS2812-RMT
## 头文件:esp-idf/components/soc/esp32/inclued/soc/soc.h
```
//Periheral Clock {{
#define APB_CLK_FREQ_ROM ( 26*1000000 )
#define CPU_CLK_FREQ_ROM APB_CLK_FREQ_ROM
#define CPU_CLK_FREQ APB_CLK_FREQ
#define APB_CLK_FREQ ( 80*1000000 ) //unit: Hz
#define REF_CLK_FREQ ( 1000000 )
#define UART_CLK_FREQ APB_CLK_FREQ
#define WDT_CLK_FREQ APB_CLK_FREQ
#define TIMER_CLK_FREQ (80000000>>4) //80MHz divided by 16
#define SPI_CLK_DIV 4
#define TICKS_PER_US_ROM 26 // CPU is 80MHz
#define GPIO_MATRIX_DELAY_NS 25
//}}
```
## 以APB_CLK_FREQ为例
### 1、时间周期(时序中最小的时间单位)
> 1 / 80MHz =1/80 us = 0.0125us =12.5 ns
![在这里插入图片描述](https://img-blog.csdnimg.cn/20190619144900368.png)
```
#define RMT_CLK_DIV 2 /*!< RMT counter clock divider */
//#define RMT_TICK_1_NS (1/(80000000/RMT_CLK_DIV)) /*!< RMT counter value for 10 us.(Source clock is APB clock) */
// APB_CLK 80MHz, clock_cycle = 1/80/RMT_CLK_DIV = 25ns
//
//#define T0H 350ns/RMT_TICK_1_NS = 14
//#define T1H 700ns/RMT_TICK_1_NS = 28
//#define T0L 800ns/RMT_TICK_1_NS = 32
//#define T1L 600ns/RMT_TICK_1_NS = 24
// These values are determined by measuring pulse timing with logic analyzer and adjusting to match datasheet.
#define T0H 14 // 0 bit high
#define T1H 28 // 1 bit high time
#define T0L 32 // low time for either bit
#define T1L 24 // low time for either bit
```
## RMT配置
```
rmt_config_t config;
config.rmt_mode = RMT_MODE_TX; //发送
config.channel = LED_RMT_TX_CHANNEL; //通道
config.gpio_num = gpio_num; //管脚
config.mem_block_num = 3; //3*8bit;rgb
config.tx_config.loop_en = false;
config.tx_config.carrier_en = false;
config.tx_config.idle_output_en = true;
config.tx_config.idle_level = 0;
config.clk_div = RMT_CLK_DIV; //时钟分频
```<file_sep>#include "ws2812_control.h"
#define BITS_PER_LED_CMD 24
#define LED_BUFFER_ITEMS ((LEDS_NUM * BITS_PER_LED_CMD))
#define RMT_CLK_DIV 2 /*!< RMT counter clock divider */
//#define RMT_TICK_1_NS (1/(80000000/RMT_CLK_DIV)) /*!< RMT counter value for 10 us.(Source clock is APB clock) */
// APB_CLK 80MHz, clock_cycle = 1/80/RMT_CLK_DIV = 25ns
//
//#define T0H 350ns/RMT_TICK_1_NS = 14
//#define T1H 700ns/RMT_TICK_1_NS = 28
//#define T0L 800ns/RMT_TICK_1_NS = 32
//#define T1L 600ns/RMT_TICK_1_NS = 24
// These values are determined by measuring pulse timing with logic analyzer and adjusting to match datasheet.
#define T0H 14 // 0 bit high
#define T1H 28 // 1 bit high time
#define T0L 32 // low time for either bit
#define T1L 24 // low time for either bit
// This is the buffer which the hw peripheral will access while pulsing the output pin
rmt_item32_t led_data_buffer[LED_BUFFER_ITEMS];
rgb_color set_LedRGB(uint8_t r, uint8_t g, uint8_t b)
{
rgb_color v;
v.r = r;
v.g = g;
v.b = b;
return v;
}
void ws2812_control_init(gpio_num_t gpio_num)
{
rmt_config_t config;
config.rmt_mode = RMT_MODE_TX; //发送
config.channel = LED_RMT_TX_CHANNEL; //通道
config.gpio_num = gpio_num; //管脚
config.mem_block_num = 3; //3*8bit;rgb
config.tx_config.loop_en = false;
config.tx_config.carrier_en = false;
config.tx_config.idle_output_en = true;
config.tx_config.idle_level = 0;
config.clk_div = RMT_CLK_DIV; //时钟分频
ESP_ERROR_CHECK(rmt_config(&config));
ESP_ERROR_CHECK(rmt_driver_install(config.channel, 0, 0));
}
void setup_rmt_data_buffer(rgb_color *led_color)
{
for (uint32_t led = 0; led < LEDS_NUM; led++) {
uint32_t bits_to_send = led_color[led].rgb;
uint32_t mask = 1 << (BITS_PER_LED_CMD - 1);
for (uint32_t bit = 0; bit < BITS_PER_LED_CMD; bit++) {
uint32_t bit_is_set = bits_to_send & mask;
led_data_buffer[led * BITS_PER_LED_CMD + bit] = bit_is_set ?
(rmt_item32_t){{{T1H, 1, T0L, 0}}} :
(rmt_item32_t){{{T0H, 1, T1L, 0}}};
mask >>= 1;
}
}
}
void ws2812_write_leds(rgb_color *led_color) {
setup_rmt_data_buffer(led_color);
ESP_ERROR_CHECK(rmt_write_items(LED_RMT_TX_CHANNEL, led_data_buffer, LED_BUFFER_ITEMS, false));
ESP_ERROR_CHECK(rmt_wait_tx_done(LED_RMT_TX_CHANNEL, portMAX_DELAY));
}
<file_sep>
#include <string.h>
#include <stdlib.h>
#include "esp_log.h"
#include "lwip/err.h"
#include "lwip/sockets.h"
#include "lwip/sys.h"
#include "lwip/netdb.h"
#include "lwip/dns.h"
#include "cJSON.h"
#include "mbedtls/platform.h"
#include "mbedtls/net_sockets.h"
#include "mbedtls/esp_debug.h"
#include "mbedtls/ssl.h"
#include "mbedtls/entropy.h"
#include "mbedtls/ctr_drbg.h"
#include "mbedtls/error.h"
#include "mbedtls/certs.h"
#include "wifi_smartconfig.h"
#include "https_weather.h"
static const char *TAG = "https";
//https://www.sojson.com/open/api/lunar/json.shtml
/* Constants that aren't configurable in menuconfig */
/*#define WEB_SERVER "www.sojson.com"
#define WEB_PORT "443"
#define WEB_URL "/open/api/lunar/json.shtml"
*/
//"https://api.seniverse.com/v3/weather/daily.json?key=<KEY>&location=beijing&language=zh-Hans&unit=c&start=0&days=5"
#define WEB_SERVER "api.seniverse.com"
#define WEB_PORT "443"
#define WEB_URL "/v3/weather/daily.json?key=<KEY>&location=beijing&language=zh-Hans&unit=c&start=0&days=5"
static const char *REQUEST = "GET " WEB_URL " HTTP/1.1\r\n"
"Host: "WEB_SERVER"\r\n"
"\r\n";
void https_get_task(void *pvParameters)
{
int ret;
char recv_buf[1024];
mbedtls_entropy_context entropy;
mbedtls_ctr_drbg_context ctr_drbg;
mbedtls_ssl_context ssl;
mbedtls_ssl_config conf;
mbedtls_net_context server_fd;
mbedtls_ssl_init(&ssl);
mbedtls_ctr_drbg_init(&ctr_drbg);
ESP_LOGI(TAG, "Seeding the random number generator");
mbedtls_ssl_config_init(&conf);
mbedtls_entropy_init(&entropy);
if((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy,
NULL, 0)) != 0)
{
ESP_LOGE(TAG, "mbedtls_ctr_drbg_seed returned %d", ret);
abort();
}
ESP_LOGI(TAG, "Setting hostname for TLS session...");
/* Hostname set here should match CN in server certificate */
if((ret = mbedtls_ssl_set_hostname(&ssl, WEB_SERVER)) != 0)
{
ESP_LOGE(TAG, "mbedtls_ssl_set_hostname returned -0x%x", -ret);
abort();
}
ESP_LOGI(TAG, "Setting up the SSL/TLS structure...");
/*
* Setup SSL/TLS相关参数
*/
if((ret = mbedtls_ssl_config_defaults(&conf,
MBEDTLS_SSL_IS_CLIENT,
MBEDTLS_SSL_TRANSPORT_STREAM,
MBEDTLS_SSL_PRESET_DEFAULT)) != 0)
{
ESP_LOGE(TAG, "mbedtls_ssl_config_defaults returned %d", ret);
goto exit;
}
/* MBEDTLS_SSL_VERIFY_OPTIONAL is bad for security, in this example it will print
a warning if CA verification fails but it will continue to connect.
You should consider using MBEDTLS_SSL_VERIFY_REQUIRED in your own code.
*/
/* 由于证书会过期,所以这些不进行证书认证 */
mbedtls_ssl_conf_authmode(&conf, MBEDTLS_SSL_VERIFY_NONE);
/* 设置随机数生成的函数及方法 */
mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg);
#ifdef CONFIG_MBEDTLS_DEBUG
/* 这里不需要设置调试函数 */
mbedtls_esp_enable_debug_log(&conf, 4);
#endif
/* 将ssl_conf的相关信息填充于ssl_ctx中去,用于进行SSL握手时使用 */
if ((ret = mbedtls_ssl_setup(&ssl, &conf)) != 0)
{
ESP_LOGE(TAG, "mbedtls_ssl_setup returned -0x%x\n\n", -ret);
goto exit;
}
wifi_wait_connected();
ESP_LOGI(TAG, "Connected to AP, begin https example");
while(1)
{
//初始化fd
mbedtls_net_init(&server_fd);
ESP_LOGI(TAG, "Connecting to %s:%s...", WEB_SERVER, WEB_PORT);
//进行TCP连接
if ((ret = mbedtls_net_connect(&server_fd, WEB_SERVER,
WEB_PORT, MBEDTLS_NET_PROTO_TCP)) != 0)
{
ESP_LOGE(TAG, "mbedtls_net_connect returned -%x", -ret);
goto exit;
}
ESP_LOGI(TAG, "Connected.");
// 设置发送以及接收的时候,调用的内部函数
mbedtls_ssl_set_bio(&ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL);
ESP_LOGI(TAG, "Performing the SSL/TLS handshake...");
//握手
while ((ret = mbedtls_ssl_handshake(&ssl)) != 0)
{
if (ret != MBEDTLS_ERR_SSL_WANT_READ && ret != MBEDTLS_ERR_SSL_WANT_WRITE)
{
ESP_LOGE(TAG, "mbedtls_ssl_handshake returned -0x%x", -ret);
goto exit;
}
}
ESP_LOGI(TAG, "Writing HTTP request...");
size_t written_bytes = 0;
do {
ret = mbedtls_ssl_write(&ssl,
(const unsigned char *)REQUEST + written_bytes,
strlen(REQUEST) - written_bytes);
if (ret >= 0) {
ESP_LOGI(TAG, "%d bytes written", ret);
written_bytes += ret;
} else if (ret != MBEDTLS_ERR_SSL_WANT_WRITE && ret != MBEDTLS_ERR_SSL_WANT_READ) {
ESP_LOGE(TAG, "mbedtls_ssl_write returned -0x%x", -ret);
goto exit;
}
} while(written_bytes < strlen(REQUEST));
ESP_LOGI(TAG, "Reading HTTP response...");
do
{
memset(recv_buf, 0, sizeof(recv_buf));
ret = mbedtls_ssl_read(&ssl, (unsigned char *)recv_buf, sizeof(recv_buf)-1);
if(ret == MBEDTLS_ERR_SSL_WANT_READ || ret == MBEDTLS_ERR_SSL_WANT_WRITE)
continue;
if(ret == MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY) {
ret = 0;
break;
}
if(ret < 0)
{
ESP_LOGE(TAG, "mbedtls_ssl_read returned -0x%x", -ret);
break;
}
if(ret == 0)
{
ESP_LOGI(TAG, "connection closed");
break;
}
ESP_LOGE(TAG,"date: %s",recv_buf);
} while(1);
mbedtls_ssl_close_notify(&ssl);
exit:
mbedtls_ssl_session_reset(&ssl);
mbedtls_net_free(&server_fd);
if(ret != 0)
{
mbedtls_strerror(ret, recv_buf, 100);
ESP_LOGE(TAG, "Last error was: -0x%x - %s", -ret, recv_buf);
}
putchar('\n'); // JSON output doesn't have a newline at end
static int request_count;
ESP_LOGI(TAG, "Completed %d requests", ++request_count);
for(int countdown = 10; countdown >= 0; countdown--) {
ESP_LOGI(TAG, "%d...", countdown);
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
ESP_LOGI(TAG, "Starting again!");
}
}
<file_sep>/* Esptouch example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include "esp_err.h"
#include "nvs_flash.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "wifi_smartconfig.h"
#include "http_weather.h"
#include "https_weather.h"
#include "wifi_sntp.h"
void app_main()
{
esp_err_t err = nvs_flash_init();
if (err == ESP_ERR_NVS_NO_FREE_PAGES || err == ESP_ERR_NVS_NEW_VERSION_FOUND) {
// NVS partition was truncated and needs to be erased
// Retry nvs_flash_init
ESP_ERROR_CHECK(nvs_flash_erase());
err = nvs_flash_init();
}
ESP_ERROR_CHECK( err );
wifi_smartconfig_init();
//xTaskCreate(http_get_task, "http_get_task", 1024*10, NULL, 3, NULL);
//xTaskCreate(https_get_task, "https_get_task", 1024*10, NULL, 3, NULL);
xTaskCreate(sntp_get_task, "sntp_get_task", 1024*3, NULL, 3, NULL);
}
<file_sep>
#ifndef _HTTPS_WEATHER_H_
#define _HTTPS_WEATHER_H_
void https_get_task(void *pvParameters);
#endif
<file_sep>set(COMPONENT_SRCS "main.c"
"wifi_smartconfig.c"
"http_weather.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
<file_sep>
#include <string.h>
#include <stdlib.h>
#include "esp_log.h"
#include "lwip/err.h"
#include "lwip/sockets.h"
#include "lwip/sys.h"
#include "lwip/netdb.h"
#include "lwip/dns.h"
#include "cJSON.h"
#include "wifi_smartconfig.h"
#include "http_weather.h"
static const char *TAG = "http";
/*
===========================
宏定义
===========================
*/
#define errno (*__errno())
//http://t.weather.sojson.com/api/weather/city/101280701
//http组包宏,获取天气的http接口参数
#define WEB_SERVER "t.weather.sojson.com"
#define WEB_PORT "80"
#define WEB_URL "/api/weather/city/101280701"
/*
===========================
全局变量定义
===========================
*/
//http请求包
static const char *REQUEST = "GET "WEB_URL" HTTP/1.1\r\n"
"Host: "WEB_SERVER"\r\n"
"\r\n";
//天气解析结构体
typedef struct
{
char cit[20];
char weather_text[20];
char weather_code[2];
char temperatur[3];
}weather_info;
weather_info weather;
/*解析json数据 只处理 解析 城市 天气 天气代码 温度 其他的自行扩展
* @param[in] text :json字符串
* @retval void :无
* @note 修改日志
* Ver0.0.1:
hx-zsj, 2018/08/10, 初始化版本\n
*/
void cjson_to_struct_info(char *text)
{
cJSON *root,*psub;
//截取有效json
char *index=strchr(text,'{');
strcpy(text,index);
root = cJSON_Parse(text);
if(root != NULL)
{
psub = cJSON_GetObjectItem(root, "time");
ESP_LOGE(TAG,"localtime: %s",psub->valuestring);
cJSON *cityInfo = cJSON_GetObjectItem(root, "cityInfo");
if(cityInfo != NULL)
{
psub = cJSON_GetObjectItem(cityInfo, "city");
ESP_LOGE(TAG,"city: %s",psub->valuestring);
psub = cJSON_GetObjectItem(cityInfo, "parent");
ESP_LOGE(TAG,"parent: %s",psub->valuestring);
psub = cJSON_GetObjectItem(cityInfo, "updateTime");
ESP_LOGE(TAG,"updateTime: %s",psub->valuestring);
}
psub = cJSON_GetObjectItem(root, "date");
ESP_LOGE(TAG,"date: %s",psub->valuestring);
cJSON *data = cJSON_GetObjectItem(root, "data");
if(data != NULL)
{
psub = cJSON_GetObjectItem(data, "shidu");
ESP_LOGE(TAG,"shidu: %s",psub->valuestring);
psub = cJSON_GetObjectItem(data, "pm25");
ESP_LOGE(TAG,"pm25: %4.2f",psub->valuedouble);
psub = cJSON_GetObjectItem(data, "pm10");
ESP_LOGE(TAG,"pm10: %4.2f",psub->valuedouble);
psub = cJSON_GetObjectItem(data, "quality");
ESP_LOGE(TAG,"quality: %s",psub->valuestring);
psub = cJSON_GetObjectItem(data, "wendu");
ESP_LOGE(TAG,"wendu: %s",psub->valuestring);
}
}
//ESP_LOGE(HTTP_TAG,"%s 222",__func__);
cJSON_Delete(root);
}
void http_get_task(void *pvParameters)
{
wifi_wait_connected();
ESP_LOGI(TAG, "Connected to AP, begin http example");
const struct addrinfo hints = {
.ai_family = AF_INET,
.ai_socktype = SOCK_STREAM,
};
struct addrinfo *res;
struct in_addr *addr;
int s, r;
char recv_buf[1024];
char mid_buf[1024*6];
//清缓存
memset(mid_buf,0,sizeof(mid_buf));
while(1) {
//DNS域名解析
int err = getaddrinfo(WEB_SERVER, WEB_PORT, &hints, &res);
if(err != 0 || res == NULL) {
ESP_LOGE(TAG, "DNS lookup failed err=%d res=%p\r\n", err, res);
vTaskDelay(1000 / portTICK_PERIOD_MS);
continue;
}
//打印获取的IP
addr = &((struct sockaddr_in *)res->ai_addr)->sin_addr;
ESP_LOGI(TAG, "DNS lookup succeeded. IP=%s\r\n", inet_ntoa(*addr));
//新建socket
s = socket(res->ai_family, res->ai_socktype, 0);
if(s < 0) {
ESP_LOGE(TAG, "... Failed to allocate socket.\r\n");
close(s);
freeaddrinfo(res);
vTaskDelay(1000 / portTICK_PERIOD_MS);
continue;
}
//连接ip
if(connect(s, res->ai_addr, res->ai_addrlen) != 0) {
ESP_LOGE(TAG, "... socket connect failed errno=%d\r\n", errno);
close(s);
freeaddrinfo(res);
vTaskDelay(4000 / portTICK_PERIOD_MS);
continue;
}
freeaddrinfo(res);
//发送http包
ESP_LOGI(TAG,"REQUEST:%s",REQUEST);
if (write(s, REQUEST, strlen(REQUEST)) < 0) {
ESP_LOGE(TAG, "... socket send failed\r\n");
close(s);
vTaskDelay(4000 / portTICK_PERIOD_MS);
continue;
}
//获取http应答包
do {
memset(recv_buf, 0, sizeof(recv_buf));
r = read(s, recv_buf, sizeof(recv_buf)-1);
strcat(mid_buf,recv_buf);
} while(r > 0);
//json解析
cjson_to_struct_info(mid_buf);
//关闭socket,http是短连接
close(s);
while(1)
//延时一会
for(int countdown = 10; countdown >= 0; countdown--) {
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
}
}
<file_sep>
#ifndef _WIFI_SNTP_H_
#define _WIFI_SNTP_H_
void sntp_get_task(void *pvParameters);
#endif
<file_sep>#ifndef WS2812_CONTROL_H
#define WS2812_CONTROL_H
#include <stdint.h>
#include "driver/rmt.h"
#include "driver/gpio.h"
#ifndef LEDS_NUM
#define LEDS_NUM 24
#endif
#define LED_RMT_TX_CHANNEL RMT_CHANNEL_0
// This structure is used for indicating what the colors of each LED should be set to.
// There is a 32bit value for each LED. Only the lower 3 bytes are used and they hold the
// Red (byte 2), Green (byte 1), and Blue (byte 0) values to be set.
typedef union {
struct __attribute__ ((packed)) {
uint8_t r, g, b;
};
uint32_t rgb;
} rgb_color;
rgb_color set_LedRGB(uint8_t r, uint8_t g, uint8_t b);
// Setup the hardware peripheral. Only call this once.
void ws2812_control_init(gpio_num_t gpio_num);
// Update the LEDs to the new state. Call as needed.
// This function will block the current task until the RMT peripheral is finished sending
// the entire sequence.
void ws2812_write_leds(rgb_color *led_color);
#endif<file_sep>
#ifndef _HTTP_WEATHER_H_
#define _HTTP_WEATHER_H_
void http_get_task(void *pvParameters);
#endif
<file_sep>/* Created 19 Nov 2016 by <NAME> <<EMAIL>>
* http://insentricity.com
*
* Demo of driving WS2812 RGB LEDs using the RMT peripheral.
*
* This code is placed in the public domain (or CC0 licensed, at your option).
*/
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <soc/rmt_struct.h>
#include <esp_system.h>
#include <nvs_flash.h>
#include <driver/gpio.h>
#include <stdio.h>
#include "ws2812_control.h"
#define delay_ms(ms) vTaskDelay((ms) / portTICK_RATE_MS)
void rainbow(void *pvParameters)
{
const uint8_t anim_step = 10;
const uint8_t anim_max = 240;
rgb_color color = set_LedRGB(anim_max, 0, 0);
uint8_t step = 0;
rgb_color color2 = set_LedRGB(anim_max, 0, 0);
uint8_t step2 = 0;
rgb_color *pixels;
pixels = malloc(sizeof(rgb_color) * LEDS_NUM);
while (1) {
color = color2;
step = step2;
for (uint8_t i = 0; i < LEDS_NUM; i++) {
pixels[i] = color;
if (i == 1) {
color2 = color;
step2 = step;
}
switch (step) {
case 0:
color.g += anim_step;
if (color.g >= anim_max)
step++;
break;
case 1:
color.r -= anim_step;
if (color.r == 0)
step++;
break;
case 2:
color.b += anim_step;
if (color.b >= anim_max)
step++;
break;
case 3:
color.g -= anim_step;
if (color.g == 0)
step++;
break;
case 4:
color.r += anim_step;
if (color.r >= anim_max)
step++;
break;
case 5:
color.b -= anim_step;
if (color.b == 0)
step = 0;
break;
}
}
ws2812_write_leds(pixels);
delay_ms(100);
}
}
void app_main()
{
nvs_flash_init();
ws2812_control_init(GPIO_NUM_18);
xTaskCreate(rainbow, "ws2812 rainbow demo", 4096, NULL, 10, NULL);
return;
}
<file_sep>#include <string.h>
#include "esp_wifi.h"
#include "esp_event_loop.h"
#include "esp_log.h"
#include "esp_system.h"
#include "freertos/event_groups.h"
#include "esp_wifi.h"
#include "esp_event_loop.h"
#include "esp_log.h"
#include "tcpip_adapter.h"
#include "esp_smartconfig.h"
#include "nvs_flash.h"
#include "nvs.h"
#include "wifi_smartconfig.h"
/* FreeRTOS event group to signal when we are connected & ready to make a request */
static EventGroupHandle_t wifi_event_group;
/* The event group allows multiple bits for each event,
but we only care about one event - are we connected
to the AP with an IP? */
static const int CONNECTED_BIT = BIT0;
static const char *TAG = "wifi_sc";
wifi_config_t *wifi_config;
static void sc_callback(smartconfig_status_t status, void *pdata);
static esp_err_t event_handler(void *ctx, system_event_t *event)
{
nvs_handle handle;
esp_err_t err;
const char *NVS_WIFI = "wifi data";
uint32_t len = sizeof(wifi_config_t);
// Open
err = nvs_open(NVS_WIFI, NVS_READWRITE, &handle);
if (err != ESP_OK) return err;
switch(event->event_id) {
case SYSTEM_EVENT_STA_START:
ESP_LOGI(TAG, "SYSTEM_EVENT_STA_START");
// Read
err = nvs_get_blob(handle, "wifi_config", wifi_config, &len);
ESP_LOGI(TAG, "err : %d",err);
if (err == ESP_ERR_NVS_NOT_FOUND)
{
ESP_ERROR_CHECK( esp_smartconfig_stop() );
ESP_ERROR_CHECK( esp_smartconfig_set_type(SC_TYPE_ESPTOUCH) );
ESP_ERROR_CHECK( esp_smartconfig_start(sc_callback) );
}
else if(err == ESP_OK)
{
ESP_ERROR_CHECK( esp_wifi_disconnect() );
ESP_ERROR_CHECK( esp_wifi_set_config(ESP_IF_WIFI_STA, wifi_config) );
ESP_ERROR_CHECK( esp_wifi_connect() );
}
break;
case SYSTEM_EVENT_STA_GOT_IP:
ESP_LOGI(TAG, "SYSTEM_EVENT_STA_GOT_IP");
xEventGroupSetBits(wifi_event_group, CONNECTED_BIT);
break;
case SYSTEM_EVENT_STA_CONNECTED:
ESP_LOGI(TAG, "SYSTEM_EVENT_STA_CONNECTED");
// Write
ESP_ERROR_CHECK( nvs_set_blob(handle, "wifi_config", wifi_config, sizeof(wifi_config_t)) );
break;
case SYSTEM_EVENT_STA_DISCONNECTED:
ESP_LOGI(TAG, "SYSTEM_EVENT_STA_DISCONNECTED");
// Read
len = 0;
err = nvs_get_blob(handle, "wifi_config", NULL, &len);
if (err == ESP_ERR_NVS_NOT_FOUND)
{
esp_wifi_disconnect();
ESP_ERROR_CHECK( esp_wifi_stop() );
ESP_ERROR_CHECK( esp_wifi_start() );
}
else if(err == ESP_OK)
{
esp_wifi_connect();
}
xEventGroupClearBits(wifi_event_group, CONNECTED_BIT);
break;
default:
break;
}
return ESP_OK;
}
void wifi_smartconfig_init(void)
{
tcpip_adapter_init();
wifi_event_group = xEventGroupCreate();
wifi_config = (wifi_config_t *)malloc(sizeof(wifi_config_t));
ESP_ERROR_CHECK( esp_event_loop_init(event_handler, NULL) );
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
ESP_ERROR_CHECK( esp_wifi_init(&cfg) );
ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) );
ESP_ERROR_CHECK( esp_wifi_start() );
}
static void sc_callback(smartconfig_status_t status, void *pdata)
{
switch (status) {
case SC_STATUS_WAIT:
ESP_LOGI(TAG, "SC_STATUS_WAIT");
break;
case SC_STATUS_FIND_CHANNEL:
ESP_LOGI(TAG, "SC_STATUS_FINDING_CHANNEL");
break;
case SC_STATUS_GETTING_SSID_PSWD:
ESP_LOGI(TAG, "SC_STATUS_GETTING_SSID_PSWD");
break;
case SC_STATUS_LINK:
ESP_LOGI(TAG, "SC_STATUS_LINK");
memset(wifi_config, 0, sizeof(wifi_config_t));
wifi_config = pdata;
ESP_LOGI(TAG, "SSID:%s", wifi_config->sta.ssid);
ESP_LOGI(TAG, "PASSWORD:%s", wifi_config->sta.password);
ESP_ERROR_CHECK( esp_wifi_disconnect() );
ESP_ERROR_CHECK( esp_wifi_set_config(ESP_IF_WIFI_STA, wifi_config) );
ESP_ERROR_CHECK( esp_wifi_connect() );
break;
case SC_STATUS_LINK_OVER:
ESP_LOGI(TAG, "SC_STATUS_LINK_OVER");
if (pdata != NULL) {
uint8_t phone_ip[4] = { 0 };
memcpy(phone_ip, (uint8_t* )pdata, 4);
ESP_LOGI(TAG, "Phone ip: %d.%d.%d.%d\n", phone_ip[0], phone_ip[1], phone_ip[2], phone_ip[3]);
}
ESP_ERROR_CHECK( esp_smartconfig_stop() );
break;
default:
break;
}
}
void wifi_wait_connected(void)
{
xEventGroupWaitBits(wifi_event_group, CONNECTED_BIT, true, true, portMAX_DELAY);
}
<file_sep># smartconfig Example
This example shows how ESP32 connects to AP with ESPTOUCH. Example does the following steps:
* Download ESPTOUCH APP from app store. [Android source code](https://github.com/EspressifApp/EsptouchForAndroid) and [iOS source code](https://github.com/EspressifApp/EsptouchForIOS) is available.
* Compile this example and upload it to an ESP32.
* Make sure your phone connect to target AP (2.4GHz).
* Open ESPTOUCH app and input password. There will be success message after few sec.
### 主要功能
1. smartconfig模式
2. nvs保存wifi信息
3. make erase_flash 清空flash信息【可选】(如果已经保存过wifi信息了,需要先进行这一步)
4. make flash monitor
5. 密码错误/连接断开,在flash没有密码的情况下会重新进入smartconfig模式;有密码则会重连
6. http读取天气信息,json解析
7. 读取sntp,获取时间
<file_sep>#ifndef _WIFI_SMARTCONFIG_H_
#define _WIFI_SMARTCONFIG_H_
void wifi_wait_connected(void);
void wifi_smartconfig_init(void);
#endif
| afb2954a2ea2f99e095e4b0ebc3ba1dbb514f93b | [
"Markdown",
"C",
"CMake"
] | 15 | C | 1035450909/esp32 | 34ef405c33bd20805b975a2c0984df41004f5efc | f1fff66273b4f9116be0315dcff0a9cfb84c4237 |
refs/heads/master | <repo_name>OnceMac/auctionata-exercise<file_sep>/app/public/js/controllers/ItemsCtrl.js
(function () {
'use strict';
// ********************************************************************************
// Items Controller
// ********************************************************************************
angular.module('AuctionataApp').controller('ItemsCtrl',
['$scope', '$location', 'ItemService',
function($scope, $location, ItemService) {
// ********************************************************************************
// Variables
// ********************************************************************************
/**
* Items of the whole scope.
* @type {Array}
*/
$scope.items = [];
// ********************************************************************************
// Scope methods
// ********************************************************************************
/**
* Initiate method loaded as the controller is.
*/
$scope.init = function() {
ItemService.getAllItems(function(err, data) {
// if an error appeared, show that error
if (err) { console.log(err); }
// else if there are no items, show an error
else if (data.items.length <= 0) { console.log('no items'); }
// otherwise fill scope with items
else { $scope.items = data.items; }
});
};
/**
* Goto item defined by id.
*/
$scope.gotoItem = function(id) {
$location.path('/' + id);
};
// ********************************************************************************
}]); }());<file_sep>/app/views/markdowns/exercise.md
# Coding exercise
We've reviewed your CV, gotten to know a part of you during our first meeting and talked to you about Auctionata, our Technology organization and the way we think about product development. Now we are very much interested in learning more about how you tackle and approach solving a real world problem.
Before we present the actual problem here are some notes up front:
- *Effort required*: Please do not spend more than 8h working on this. Rather adjust your scope to match this time frame. We have some suggestions for cutting scope later on in the exercise. But feel free to dice this up in any way you want.
- *Deliverables*: We want to be able to view your working solution and review your source code. How you allow us to do that is entirely up to you.
- *Technology*: Please feel free to pick whatever technologies you think solve the problem best. But please keep in mind that this story is part of our business critical application.
- *Solution and approach*: There are no right or wrong solutions here. Obviously different implementations will have different pros and cons. The goal of the exercise is to get in idea of how you approach problems and on which areas you like to focus.
- *Next steps*: If we like your solution and approach we'd love to have a brief pair programming session with you to implement a little piece of functionality together. Please keep this in mind when deciding how you make your deliverables available to us.
- *Think aloud*: It's really helpful for us if you could provide some context around the major decisions you made. Where and how you do this is again up to you. If you decide to add this information in the source code please mark it up somehow so that we can distinguish between regular comments in your code, i.e. those that you would normally add to your code, and those that you add just because of our request for you to think aloud.
## Domain Background
If you are unsure about how auctions work please have a look at the following video which shows a summary of one of our auctions: http://auctionata.com/assets/videos/Lot_8197-1_NR7_LOT_33_en.webm.
## Requirements
### Narrative
As a potential buyer in an online auction
I want to be able to bid on an item
So that I can participate in the auction
### Scenario 1: displaying information about the current item
Given I am in the auction room
Then I see the current item picture, description and name
And I see the current highest bid with a button to place a new bid
### Scenario 2: single user bidding on an item
Given I am in the auction room
When I place a bid on an item
And I am the only bidder
Then I am the highest bidder
### Scenario 3: multiple users bidding on an item - you are first
Given I am in the auction room
When I place a bid on an item
And I am not the only bidder
And my bid was placed first
Then I am the highest bidder
### Scenario 4: multiple users bidding on an item - you are not first
Given I am in the auction room
When I place a bid on an item
And I am not the only bidder
And my bid was not placed first
Then I am not the highest bidder
## Scoping Options
We know that might look like too much work for an interview process. Please remember that we are only asking you to spend 8h on this exercise. Please consider the following options to cut scope:
### Option A - Backend Implementation
- Focus heavily on backend implementation,
- Have a simple UI just to show what is happening behind the scenes
- Bonus points: Provide a nice API that could easily be consumed by a single page application or any other client.
### Option B - Frontend Implementation
- Make it a single page application that uses API's for most of the heavy business logic
- You can mock the API to represent the result of you working together with another team to define the interfaces
- You could make the mocks convenient for you, but not too convenient, they should be constrained by realistic assumptions.
### Option C - Your own scope
- Choose your own slice
- We want to see what you care about the most
- You could
- spend copious amounts of time making the CSS look perfect everywhere,
- focus on dealing with concurrency and build a prototype which is all about speed and scalability,
- go the classic route and do a server side MVC implementation,
- have a super slick build pipeline before anything else.
- All that that is fine! Go for it, just let us know why that was your choice.
<file_sep>/app/public/js/directives/ItemDirective.js
(function () {
'use strict';
// ********************************************************************************
// Item directive
// ********************************************************************************
angular.module('AuctionataApp').directive('item', [function() {
return {
restrict: 'E',
scope: {
item: '='
},
replace: true,
transclude: true,
template:
'<div id="item-{{itemId}}" class="item">' +
' <div class="item-image">' +
' <img alt="{{item.name}}" title="{{item.name}}" data-ng-src="/images/{{item.img}}" />' +
' </div>' +
' <div class="item-info">' +
' <h3 class="item-name">{{item.name}}</h3>' +
' <p class="item-description">{{item.description}}</p>' +
' <div class="item-opening-bid">Eröffnungsangebot: <strong>{{item.openingBid}} Euro</strong></div>' +
' <div class="item-current-bid">Aktuelles Gebot: <strong>{{item.currentBid}} Euro</strong></div>' +
' <div class="item-expected-bid">Erwartetes Gebot: <strong>{{item.expectedBid}} Euro</strong></div>' +
' </div>' +
' <div class="clear"></div>' +
'</div>'
};
}]);
// ********************************************************************************
}());<file_sep>/app/views/markdowns/explanation.md
Explanation
===========
In the following sections I explain the project, how it is implemented, why I implemented things as they are
and what could be improved if I invested more time. All-in-all I spend a bit more than 8 hours on the project.
---
Implementation
--------------
I implemented the project in Node.js and AngularJS. Since it is just a small demo project, I did not optimize
any file or tested any function so far. In the next section I will explain how I could drastically improve
performance, security and persistence - of course by investing a bit more time.
### Scenarios
#### Scenario 1
On the index page you can see all the items users can bid for. By pressing on the button "Zur Auktion" one opens
the corresponding item in a detailed view. In that view, bidding is possible.
#### Scenario 2
The first item - the Steiff Teddy Happy - corresponds to the 2nd scenario. Here the user is the only bidder in the
room. No-one has placed an order so far and by placing her/his order, the user is the first and the only bidder.
#### Scenario 3
The second item - the British Guiana stamp - corresponds to the 3rd scenario. Here the user is the first one to bid,
but is overbid by another simulated bidder (<NAME>) every 1 to 3 seconds after the user placed the bid. Even if
the user bids multiple times in a row (why ever she/he should do that), the simulated bidder only bids once to
surpass the user.
#### Scenario 4
The third item - the Maybach Exelero - corresponds to the 4th scenario. Here the user is not the first one to bid,
the current bidder - <NAME> - has placed the first bid, but by bidding for that item she/he is and stays the
bidder with the highest bid.
---
### Routing
Since I wanted to use Angular's HTML5 routing, but also wanted the URLs to be available without redirection, I enabled
routing in backend and frontend. Each request coming to the backend renders the correct page and Angular automatically
recognizes the correct URL and calls the corresponding template. On the other hand, if page is refreshed while visiting
a page, node provides the corresponding route as well and parses the correct page, which angular needs to load the
corresponding template.
#### Warning:
This implementation fails by accessing the page with IE9 or any other browser which doesn't support the HTML5 History API.
I already found two solutions for that problem, but didn't have time to implement any of them.
---
### Database
I abstained from using a database to a) make it very easy to start the project and b) not to implement unnecessary things.
Instead I simulated finished database queries in models. That should be enough.
---
### Directives
As you can see I implemented two directives including templates. But then I decided to use the templates directly
since the repetitive item element is used only in one page. Actually though, I always suggest to implement directives
for reusable parts and templates. I love directives.
---
### Documentation
In all my projects I use JSDocs to generate a Wiki or API-Documentation respectively directly out of the code. Therefor it
is necessary to always immediately comment each function, variable, object etc. after or better before writing it. As mentioned
because of the lack of time I wasn't able to implement JSDocs.
---
### Empty folders and unused node packages
The empty folders demonstrate the final folder structure. The node packages in the _package.json_ demonstrate
the packages I would use for testing, documentation and automation.
---
### Visual
In the visual design I oriented on the current implementation of Auctionata. As CSS framework I used Twitter's Bootstrap.
---
Missing implementations
-----------------------
The following modules were not implemented, but would be part of that project if I had more time:
* **Grunt** and **Bower** for automated building and task management
* **Grunt tasks** like minification, concatenation etc.
* **Karma**, **Protractor**, **Mocha**, **Sinon.js**, **Istanbul** etc. for unit and acceptance testing and for code coverage
* **JSDocs** for **API** generation
Also, usually I would set up the project with a fitting Yeoman generator (if such exists), to make it much
easier and faster and to use the common best practices. But since this project was very small, I passed on
Yeoman and implemented the whole structure myself.<file_sep>/app/public/js/controllers/ItemDetailCtrl.js
(function () {
'use strict';
// ********************************************************************************
// Items Controller
// ********************************************************************************
angular.module('AuctionataApp').controller('ItemDetailCtrl',
['$scope', '$location', '$timeout', 'ItemService', 'UserService',
function($scope, $location, $timeout, ItemService, UserService) {
// ********************************************************************************
// Variables
// ********************************************************************************
/**
* Controller reference.
* @type {Object}
*/
var controller = this;
/**
* Item to be displayed.
* @type {Obejct}
*/
$scope.item = {};
/**
* Array of all users.
* @type {Array}
*/
$scope.users = [];
/**
* Object of current user.
* @type {Object}
*/
$scope.currentUser = {};
/**
* Object to contain current highest bidder for object.
* @type {Object|null}
*/
$scope.currentHighestBidder = null;
/**
* Flag to activate simulated user.
* @type {Boolean}
*/
controller.isSimulatedBidderActive = false;
/**
* Flag to activate that simulated user has bidden.
* @type {Boolean}
*/
controller.hasSimulatedBidderBidded = false;
// ********************************************************************************
// Helpers
// ********************************************************************************
/**
* Helper method to initialize different scenarios.
*/
controller._initScenarios = function() {
// scenario 2: user is the first bidder, but will be overbidden
if ($scope.item.id === 2) {
controller.isSimulatedBidderActive = true;
}
// scenario 3: user is not the first bidder
else if ($scope.item.id === 3) {
$scope.currentHighestBidder = $scope.users[2];
}
};
controller._simulatedUser = function() {
if (!controller.hasSimulatedBidderBidded) {
// set the time to wait until the simulated user bidds to 1-3 seconds
var timeToWait = Math.floor((Math.random() * 3) + 1) * 1000;
$timeout(function() {
$scope.item.currentBid = $scope.item.currentBid + $scope.item.biddingStep;
$scope.currentHighestBidder = $scope.users[1];
controller.hasSimulatedBidderBidded = false;
}, timeToWait);
}
};
// ********************************************************************************
// Scope methods
// ********************************************************************************
/**
* Initiate method loaded as the controller is.
*/
$scope.init = function() {
ItemService.getOneItemById($location.path().replace('/', ''), function(err, data) {
// if an error appeared, show that error
if (err) { console.log(err); }
// else if there are no item, show an error
else if (data.item.length <= 0) { console.log('No item found!'); }
// otherwise fill scope with item
else {
$scope.item = data.item;
$scope.currentBid = $scope.item.currentBid;
}
UserService.getAllUsers(function(err, data) {
// if an error appeared, show that error
if (err) { console.log(err); }
// else if there are no item, show an error
else if (data.users.length <= 0) { console.log('No user found!'); }
// otherwise fill scope with item
else {
$scope.users = data.users;
$scope.currentUser = data.users[0];
}
controller._initScenarios();
});
});
};
/**
* Method to bid on an item only if the bidding amount is higher than the current bid.
*/
$scope.bidOnItem = function() {
$scope.item.currentBid = ($scope.item.currentBid ? $scope.item.currentBid : $scope.item.openingBid) + $scope.item.biddingStep;
$scope.currentHighestBidder = $scope.currentUser;
if (controller.isSimulatedBidderActive && !controller.hasSimulatedBidderBidded) {
controller._simulatedUser();
controller.hasSimulatedBidderBidded = true;
}
};
/**
* Goto all items.
*/
$scope.gotoAllItems = function(id) {
$location.path('/');
};
// ********************************************************************************
}]); }());<file_sep>/README.md
auctionata-exercise
===================
My exercise solution for the application for Auctionata in Berlin.
Usage
-----
First clone the repo locally by:
```
$ git clone https://github.com/OnceMac/auctionata-exercise.git
```
After install npm packages with:
```
$ npm install
```
Finally start the application with:
```
$ npm start
```
and visit:
```
http://localhost:3000
```<file_sep>/app/app.js
// ********************************************************************************
// Requires and definitions
// ********************************************************************************
// require stuff
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var debug = require('debug')('exercise');
// define app and router
var app = express();
var router = express.Router();
// ********************************************************************************
// Setup
// ********************************************************************************
// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
// uncomment after placing your favicon in /public
app.use(favicon(__dirname + '/public/images/favicon.ico'));
app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(require('stylus').middleware(path.join(__dirname, 'public')));
app.use(express.static(path.join(__dirname, 'public')));
// ********************************************************************************
// Routes
// ********************************************************************************
// require routes
require('./routes.js').init(app);
// catch 404 and forward to error handler
app.use(function(req, res, next) {
var err = new Error('Not Found');
err.status = 404;
next(err);
});
// ********************************************************************************
// Error handlers
// ********************************************************************************
// production error handler
// no stacktraces leaked to user
if (app.get('env') === 'production') {
app.use(function(err, req, res, next) {
res.status(err.status || 500);
res.render('error', { message: err.message, error: {} });
});
}
// development error handler
// will print stacktrace
else {
app.use(function(err, req, res, next) {
res.status(err.status || 500);
res.render('error', { message: err.message, error: err });
});
}
// ********************************************************************************
// Server and port
// ********************************************************************************
app.set('port', process.env.PORT || 3000);
var server = app.listen(app.get('port'), function() {
debug('Express server listening on port ' + server.address().port);
});
<file_sep>/app/models/modelItem.js
(function () {
'use strict';
// ********************************************************************************
// Models
// ********************************************************************************
/**
* Array of simulated items, which could actually be
* taken from a database like MongoDB.
* @type {Array}
*/
module.exports = [{
id: 1,
name: '<NAME>',
description: 'Der wertvollste Teddybär der Welt',
text: "<p>Mit dem antiquarischen Steiff Teddybär \"Happy\" aus dem Jahr 1926/27 brach die Fa. GAF den 2000 bei Christie's in London durch einen antiken Steiff Titanic-Bären aufgestellten Weltrekord. Er ist damit der weltweit teuerste antike Teddybär.</p><p>Der Name \"Happy\" wurde erst kreiert als dieser Bärentyp erstmalig öffentlich im Rahmen einer Auktion bekannt wurde. Zur Zeit seiner Fertigung lautete die Bezeichnung einfach noch \"Teddybär\". Nur in den Jahren 1926/27 wurde eine sehr kleine Stückzahl dieser Bären gefertigt. Er brach beim 6. Steiff Festival 2002 in Giengen den Weltrekord. Der 40cm große Happy (POS 1 der Tabelle) brachte sage und schreibe 156 240 Euro.</p>",
img: 'steiff-happy-alt.jpg',
openingBid: 156000.00,
currentBid: null,
expectedBid: 200000.00,
biddingStep: 1000.00,
currentHighestBidder: null,
userIds: []
}, {
id: 2,
name: '<NAME>',
description: 'Die wertvollste Briefmarkte der Welt',
text: '<p>Die jetzt für sieben Millionen Euro versteigerte Briefmarke wurde von einem Postbeamten unterschrieben. Damit sollten Fälschungen erschwert werden. Ein zwölfjähriger schottischer Junge, der in Britisch-Guayana in Südamerika lebte, hatte sie 1873 wiederentdeckt – und sie für ein paar Schilling an einen örtlichen Briefmarkensammler verkauft.</p>',
img: 'british-guiana.png',
openingBid: 7000000.00,
currentBid: null,
expectedBid: 8500000.00,
biddingStep: 10000.00,
currentHighestBidder: null,
userIds: [101]
}, {
id: 3,
name: '<NAME>',
description: 'Das wertvollste Auto der Welt',
text: '<p>Auf Platz 1 hat es ein super-exquisites Einzelmodell geschafft: Mit 8.000.000 Dollar Kaufpreis ist der Maybach Exelero das teuerste Auto der Welt. Der Exelero läuft jedoch ein wenig außer Konkurrenz, da er 2005 lediglich als Show-Auto des Reifenherstellers Fulda vorgestellt wurde. Basierend auf dem Maybach 57 haben Studenten hier ein straßentaugliches Coupé geschaffen, welches jeglichen Luxus- Ansprüchen gerecht wird. Unter der edlen Haube befindet sich ein V12 Zwillingsmotor mit 700 PS, von 0 auf 100 wird in 4,4 Sekunden beschleunigt.</p>',
img: 'maybach-exelero.png',
openingBid: 8000000.00,
currentBid: 8070000.00,
expectedBid: 12000000.00,
biddingStep: 10000.00,
currentHighestBidder: 3,
userIds: [101, 102]
}];
// ********************************************************************************
}());<file_sep>/app/routeHandlers/api.js
(function () {
'use strict';
// ********************************************************************************
// Requires and definitions
// ********************************************************************************
var items = require('../models/modelItem');
var users = require('../models/modelUser');
// ********************************************************************************
// Helpers
// ********************************************************************************
/**
* Helper method to get one user by the id.
* @param {Itenger} id the user id
* @return {Mixed} returns the user with the given id, otherwise false
*/
var _getOneUserById = function(id) {
for (var i = users.length - 1; i >= 0; i--) {
if (users[i].id === id) {
return users[i];
}
}
return false;
};
/**
* Helper method to replace user ids from item with users from "database".
* @param {Array} userIds array of user ids from item
* @return {Array} array of users by id or empty array
*/
var _replaceUserIdsWithUsers = function(userIds) {
var usersReturn = [], user;
for (var i = userIds.length - 1; i >= 0; i--) {
user = _getOneUserById(userIds[i]);
if (user) {
usersReturn.push(user);
}
}
return usersReturn;
};
// ********************************************************************************
// Routes
// ********************************************************************************
/**
* Method to get all items from database (here simulated items).
* @param {Object} req Express request object (http://expressjs.com/4x/api.html#request)
* @param {Object} res Express response object (http://expressjs.com/4x/api.html#response)
*/
var getAllItems = function(req, res) {
res.status(200).json({ items: items });
};
/**
* Method to get one item defined by its id.
* @param {Object} req Express request object (http://expressjs.com/4x/api.html#request)
* @param {Object} res Express response object (http://expressjs.com/4x/api.html#response)
*/
var getOneItemById = function(req, res) {
var item, user, finalItem;
// test all items for id
for (var i = items.length - 1; i >= 0; i--) {
if (parseInt(items[i].id) === parseInt(req.params.itemId)) {
// set the final item, to which the users
finalItem = items[i];
finalItem.users = _replaceUserIdsWithUsers(finalItem.userIds);
// return the item
return res.status(200).json({ item: finalItem });
}
}
// if no item was found, return false by default
res.status(500).json({ err: 'No items found!' });
};
/**
* Method to get all users from database (here simulated users).
* @param {Object} req Express request object (http://expressjs.com/4x/api.html#request)
* @param {Object} res Express response object (http://expressjs.com/4x/api.html#response)
*/
var getAllUsers = function(req, res) {
res.status(200).json({ users: users });
};
/**
* Method to get one user defined by its id.
* @param {Object} req Express request object (http://expressjs.com/4x/api.html#request)
* @param {Object} res Express response object (http://expressjs.com/4x/api.html#response)
*/
var getOneUserById = function(req, res) {
// test all items for id
for (var i = users.length - 1; i >= 0; i--) {
if (parseInt(users[i].id) === parseInt(req.params.userId)) {
return res.status(200).json({ user: users[i] });
}
}
// if no user was found, return false by default
res.status(500).json({ err: 'No users found!' });
};
// ********************************************************************************
// Exports
// ********************************************************************************
module.exports.getAllItems = getAllItems;
module.exports.getOneItemById = getOneItemById;
module.exports.getAllUsers = getAllUsers;
module.exports.getOneUserById = getOneUserById;
// ********************************************************************************
}());<file_sep>/app/public/js/services/ItemService.js
(function () {
'use strict';
// ********************************************************************************
// Item service
// ********************************************************************************
angular.module('AuctionataApp').factory('ItemService', ['$http', function($http) {
/**
* Object containing all request urls.
* @type {Object}
*/
var requestUrls = {
getAllItems: '/api/items',
getOneItemById: '/api/items/:itemId'
};
/**
* Item object including variables and methods.
* @type {Object}
*/
var ItemService = {};
/**
* Global default config object, which can be cloned in each rest method.
* @type {Object}
*/
var configGlobal = {
method: 'GET'
};
/**
* Helper method to perform request to backend.
* @param {Object} config config to be send to backend
*/
var _performRequest = function(config, callback) {
$http(config)
.success(function(data, status) {
callback(false, data);
})
.error(function(data, status) {
callback(status, data);
});
};
/**
* Method to get all items from backend.
* @param {Function} id callback method
*/
ItemService.getAllItems = function(callback) {
// extend the global config
var configLocal = angular.extend(configGlobal, {
url: requestUrls.getAllItems
});
_performRequest(configLocal, callback);
};
/**
* Method to get one item from backend defined by id.
* @param {Integer} id Item id of item to be received
* @param {Function} id callback method
*/
ItemService.getOneItemById = function(id, callback) {
// extend the global config
var configLocal = angular.extend(configGlobal, {
url: angular.copy(requestUrls.getOneItemById).replace(':itemId', id)
});
_performRequest(configLocal, callback);
};
// return service object as a singleton
return ItemService;
}]);
// ********************************************************************************
}());<file_sep>/app/public/js/app.js
(function () {
'use strict';
// ********************************************************************************
// Configuration
// ********************************************************************************
// create the angular app
angular.module('AuctionataApp', ['ngRoute', 'ngSanitize']);
// setup angular routing
angular.module('AuctionataApp').config(function($routeProvider, $locationProvider) {
// setup route provider
$routeProvider
.when('/', {
templateUrl: '/template/items',
controller: 'ItemsCtrl'
})
.when('/exercise', {
templateUrl: '/markdown/exercise'
})
.when('/explanation', {
templateUrl: '/markdown/explanation'
})
.when('/:itemId', {
// templateUrl: function($routeParams) { return '/template/' + $routeParams.itemId; },
templateUrl: '/template/itemDetail',
controller: 'ItemDetailCtrl'
})
.otherwise({
redirectTo: '/'
});
// configure HTML5 to get links working only if available
$locationProvider.html5Mode(window.history && window.history.pushState);
});
// ********************************************************************************
}());<file_sep>/app/public/js/services/UserService.js
(function () {
'use strict';
// ********************************************************************************
// User service
// ********************************************************************************
angular.module('AuctionataApp').factory('UserService', ['$http', function($http) {
/**
* Object containing all request urls.
* @type {Object}
*/
var requestUrls = {
getAllUsers: '/api/users',
getOneUserById: '/api/users/:userId'
};
/**
* User object including variables and methods.
* @type {Object}
*/
var UserService = {};
/**
* Global default config object, which can be cloned in each rest method.
* @type {Object}
*/
var configGlobal = {
method: 'GET'
};
/**
* Helper method to perform request to backend.
* @param {Object} config config to be send to backend
*/
var _performRequest = function(config, callback) {
$http(config)
.success(function(data, status) {
callback(false, data);
})
.error(function(data, status) {
callback(status, data);
});
};
/**
* Method to get all users from backend.
* @param {Function} id callback method
*/
UserService.getAllUsers = function(callback) {
// extend the global config
var configLocal = angular.extend(configGlobal, {
url: requestUrls.getAllUsers
});
_performRequest(configLocal, callback);
};
/**
* Method to get one user from backend defined by id.
* @param {Integer} id user id of user to be received
* @param {Function} id callback method
*/
UserService.getOneUserById = function(id, callback) {
// extend the global config
var configLocal = angular.extend(configGlobal, {
url: angular.copy(requestUrls.getOneUserById).replace(':userId', id)
});
_performRequest(configLocal, callback);
};
// return service object as a singleton
return UserService;
}]);
// ********************************************************************************
}()); | 9dc52add81b42819031c1cb56f7cd7f4f3281c75 | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | OnceMac/auctionata-exercise | 205f0eb36e716586e5571d6fd00d2fb1bd65aa0a | fc09b6c188937781ba49e230c5d6bc8d697c4dbe |
refs/heads/main | <repo_name>dylangit01/spotify_API_React<file_sep>/src/components/spotify/MusicSelection.jsx
import React from 'react';
const MusicSelection = ({ options, selectedValue, onChange, label }) => {
const genreChanged = (e) => {
onChange(e.target.value);
};
return (
<div className='col-sm-6 form-group row px-0'>
<label className='form-label col-sm-2'>{label}</label>
<select value={selectedValue} onChange={genreChanged} className='form-control form-control-sm col-sm-10'>
<option key={0}>Select...</option>
{options.map((item, idx) => (
<option key={idx + 1} value={item.id}>
{item.name}
</option>
))}
</select>
</div>
);
};
export default MusicSelection;
<file_sep>/src/components/tracklists/TrackLists.jsx
import React from 'react';
const TrackLists = ({ items, onChange }) => {
const handleClick = (e) => {
e.preventDefault();
onChange(e.target.id);
};
return (
<div className='col-sm-6 px-0'>
<div className='list-group'>
{items.map((item, idx) => (
<button
key={idx}
onClick={handleClick}
className='list-group-item list-group-item-action list-group-item-light'
id={item.track.id}
>
{item.track.name}
</button>
))}
</div>
</div>
);
};
export default TrackLists;
<file_sep>/src/components/SongDetail/SongDetails.jsx
import React from 'react';
const Detail = ({ album, artists, name }) => {
return (
<div className='offset-md-1 col-sm-4'>
<div className='row col-sm-12 px-0'>
<img className='img-fluid' src={album.images[0].url} alt={name}></img>
</div>
<div className='row col-sm-12 px-0'>
<label htmlFor={name} className='form-label col-sm-12'>
{name}
</label>
</div>
<div className='row col-sm-12 px-0'>
<label htmlFor={artists[0].name} className='form-label col-sm-12'>
{artists[0].name}
</label>
</div>
</div>
);
};
export default Detail;
<file_sep>/src/App.jsx
import React, { useState, useEffect } from 'react';
import MusicSelection from './components/Spotify/MusicSelection';
import axios from 'axios';
import TrackLists from './components/Tracklists/TrackLists';
import SongDetail from './components/SongDetail/SongDetails';
const App = () => {
const { REACT_APP_CLIENT_ID, REACT_APP_CLIENT_SECRET } = process.env;
const baseURL = 'https://accounts.spotify.com/api/token';
const genresURL = 'https://api.spotify.com/v1/browse/categories?locale=sv_US';
const [token, setToken] = useState('');
const [genres, setGenres] = useState({ selectedGenre: '', listOfGenres: [] });
const [playlist, setPlaylist] = useState({ selectedPlaylist: '', listOfPlaylist: [] });
const [tracks, setTracks] = useState({ selectedTrack: '', listOfTracks: [] });
const [trackDetail, setTrackDetail] = useState(null);
useEffect(() => {
const fetchData = async () => {
const tokenResponse = await axios(`${baseURL}`, {
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Authorization: 'Basic ' + btoa(`${REACT_APP_CLIENT_ID}:${REACT_APP_CLIENT_SECRET}`),
},
data: 'grant_type=client_credentials',
method: 'POST',
});
setToken(tokenResponse.data.access_token);
const genreResponse = await axios(`${genresURL}`, {
method: 'GET',
headers: { Authorization: `Bearer ${tokenResponse.data.access_token}` },
});
setGenres({
selectedGenre: genres.selectedGenre,
listOfGenres: genreResponse.data.categories.items,
});
};
fetchData();
}, [genres.selectedGenre, REACT_APP_CLIENT_ID, REACT_APP_CLIENT_SECRET]);
const genreChanged = async (val) => {
console.log(val);
setGenres({
selectedGenre: val,
listOfGenres: genres.listOfGenres,
});
const playlistResponse = await axios(`https://api.spotify.com/v1/browse/categories/${val}/playlists?limit=10`, {
method: 'GET',
headers: { Authorization: 'Bearer ' + token },
});
console.log(playlistResponse);
setPlaylist({
selectedPlaylist: playlist.selectedPlaylist,
listOfPlaylist: playlistResponse.data.playlists.items,
});
};
const playlistChanged = (val) => {
setPlaylist({
selectedPlaylist: val,
listOfPlaylist: playlist.listOfPlaylist,
});
};
const handleSubmit = async (e) => {
e.preventDefault();
const tracksResponse = await axios(
`https://api.spotify.com/v1/playlists/${playlist.selectedPlaylist}/tracks?limit=10`,
{
method: 'GET',
headers: { Authorization: 'Bearer ' + token },
}
);
setTracks({
selectedTrack: tracks.selectedTrack,
listOfTracks: tracksResponse.data.items,
});
};
const trackBtnClicked = (val) => {
const currentTracks = [...tracks.listOfTracks];
const trackInfo = currentTracks.filter((t) => t.track.id === val);
setTrackDetail(trackInfo[0].track);
};
return (
<div className='container mt-3'>
<form onSubmit={handleSubmit}>
<MusicSelection
label='Genre:'
options={genres.listOfGenres}
selectedValue={genres.selectedGenre}
onChange={genreChanged}
/>
<MusicSelection
label='Playlist:'
options={playlist.listOfPlaylist}
selectedValue={playlist.selectedPlaylist}
onChange={playlistChanged}
/>
<div className="col-sm-6 row form-group px-3">
<button className="btn btn-outline-primary" type="submit">Search</button>
</div>
<div className="row">
<TrackLists items={tracks.listOfTracks} onChange={trackBtnClicked} />
{console.log(trackDetail)}
{trackDetail && <SongDetail {...trackDetail} />}
</div>
</form>
</div>
);
};
export default App;
| 107ea81b4a89aa4669a2199f1251b057cbce7785 | [
"JavaScript"
] | 4 | JavaScript | dylangit01/spotify_API_React | a9fc8af696a7eaf4c59a0e3aa7ee76dcb6faa658 | 0fbe9b0232079b9b68c9049caaf2c80ba82b9fc8 |
refs/heads/master | <repo_name>Donotknowwhy/ptpm<file_sep>/components/ModalUploadimg.jsx
import { UploadOutlined } from '@ant-design/icons';
import { Modal, notification, Row, Upload } from 'antd';
import React, { useState } from 'react';
import { storage, user } from '../api/firebase-client';
import { getCurrentUser } from '../utils/use-user';
const getBase64 = (file) => new Promise((resolve, reject) => {
const reader = new FileReader();
reader.readAsDataURL(file);
reader.onload = () => resolve(reader.result);
reader.onerror = (error) => reject(error);
});
const openNotification = () => {
notification.open({
message: 'Cập nhật ảnh đại diện thành công',
});
};
export default function ModalUploadImg(props) {
const [previewVisible, setPreviewVisible] = useState(false);
const [previewImage, setPreviewImage] = useState('');
const [previewTitle, setPreviewTitle] = useState('');
const [image, setImage] = useState('');
const [lengthArr, setLengthArr] = useState('');
const [imageAsUrl, setImageAsUrl] = useState({imgUrl: ''});
const handlePreview = async (file) => {
if (!file.url && !file.preview) {
file.preview = await getBase64(file.originFileObj);
}
setPreviewImage(file.url || file.preview);
setPreviewVisible(true);
setPreviewTitle(file.name || file.url.substring(file.url.lastIndexOf('/') + 1));
};
const handleCancelPreview = () => {
setPreviewVisible(false);
};
const handleChange = ({fileList}) => {
setLengthArr(fileList);
setImage( fileList.length != 0 ? fileList[0].originFileObj : null );
};
const uploadButton = (
<div>
<UploadOutlined />
<div>Tải ảnh lên</div>
</div>
);
const [isModalVisible, setIsModalVisible] = useState(true);
const showModal = () => {
setIsModalVisible(true);
};
const handleOk = () => {
setIsModalVisible(false);
props.toggleUpdate();
getCurrentUser().then((values) => {
const uploadTask = storage().ref(`/avatar/${values.uid}/${image.name}`).put(image);
uploadTask.on('state_changed',
(snapShot) => {
// takes a snap shot of the process as it is happening
console.log(snapShot);
}, (err) => {
// catches the errors
console.log(err);
}, () => {
// gets the functions from storage refences the image storage in firebase by the children
// gets the download url then sets the image from firebase as the value for the imgUrl key:
storage().ref(`avatar/${values.uid}`).child(image.name).getDownloadURL()
.then((fireBaseUrl) => {
user().updateProfile({
photoURL: fireBaseUrl,
}).catch((error) => {
console.log('loi' + error);
}).then( () => {
openNotification();
// setAvtUrl(fireBaseUrl);
setTimeout(window.location.reload.bind(window.location), 1500);
});
});
});
});
};
const handleCancel = () => {
setIsModalVisible(false);
props.toggleUpdate();
};
return (
<>
<Modal
visible={isModalVisible}
onOk={handleOk}
onCancel={handleCancel}
width={250}
title="Cập nhật ảnh đại diện"
>
<Row justify='center'>
<Upload
id="file"
// className={image.length == 0 ? styles.upload : null}
listType="picture-card"
onPreview={handlePreview}
onChange={handleChange}
>
{lengthArr.length >= 1 ? null : uploadButton}
</Upload>
</Row>
<Modal
visible={previewVisible}
title={previewTitle}
footer={null}
onCancel={handleCancelPreview}
>
<img alt="example" style={{width: '100%'}} src={previewImage} />
</Modal>
</Modal>
</>
);
}
<file_sep>/components/Content.jsx
import React, { useState, useEffect } from "react";
import {
Card,
Image,
Row,
Col,
Avatar,
Skeleton,
Typography,
Tooltip,
} from "antd";
import { ExclamationCircleOutlined, UserOutlined } from "@ant-design/icons";
import { getListImage } from "./../api/image";
import Chatroom from "./Chatroom";
import styles from "./Content.module.scss";
const { Meta } = Card;
const { Text, Link } = Typography;
function Content() {
const [listImg, setListImg] = useState([]);
const [isFetching, setIsFetching] = useState(false);
const [page, setPage] = useState(1);
const getData = (page) => {
getListImage(page).then((res) => {
console.log(res.data.data);
setIsFetching(false);
setListImg([...listImg, ...res.data.data.photos]);
});
};
const handleScroll = () => {
if (
window.innerHeight + document.documentElement.scrollTop !==
document.documentElement.scrollHeight ||
isFetching
) {
return;
}
setIsFetching(true);
};
useEffect(() => {
getData(page);
window.addEventListener("scroll", handleScroll);
return () => window.removeEventListener("scroll", handleScroll);
}, []);
useEffect(() => {
if (!isFetching) return;
getData(page + 1);
setPage(page + 1);
}, [isFetching]);
return (
<div>
<div style={{ "margin-top": "100px" }}>
<Row justify="center">
<Col xs={24} sm={23} md={16} lg={11} xl={13} xxl={13} style={{"margin-right":"16px", "margin-left":"16px"}}>
<Row justify="end">
{listImg &&
listImg.map((items) => {
return (
<Card
hoverable
style={{
width: 614,
height: "auto",
marginBottom: "50px",
}}
cover={<Image alt="example" src={items.src.original} />}
>
<Meta
avatar={<Avatar size={40} src={items.avatar} />}
title={
<Link href={items.photographer_url} target="_blank">
{items.photographer}
</Link>
}
// description={<Text code>{'#'+items.id}</Text>}
/>
</Card>
);
})}
{isFetching || (
<Card
style={{ width: 614, height: "auto", marginBottom: "50px" }}
>
<Skeleton active />
</Card>
)}{" "}
</Row>
</Col>
<Col md={24} lg={8} xl={8} xxl={10}>
<div className="App">
<header>
<span>Trash talk 💬</span>{" "}
<ExclamationCircleOutlined
style={{
fontSize: "20px",
marginRight: "4px",
cursor: "pointer",
}}
/>
</header>
<section>
<Chatroom />
</section>
</div>
</Col>
</Row>
</div>
</div>
);
}
export default Content;
<file_sep>/pages/report/index.jsx
import React, {useState, useEffect} from 'react'
import Nav from '../../components/Navigation'
import Main from '../../components'
import {Layout, Select, Typography, Row, Col, Skeleton} from 'antd'
import styles from './index.module.scss'
const {Content} = Layout;
const { Option } = Select;
const {Title} = Typography;
function index() {
const [load, setLoad] = useState(false)
function onChange(value) {
console.log(`selected ${value}`);
}
function onBlur() {
console.log('blur');
}
function onFocus() {
console.log('focus');
}
function onSearch(val) {
console.log('search:', val);
}
return (
<div>
<Main>
<Content className={styles.siteLayout} style={{ padding: '0 50px', marginTop: 64 }}>
<Row style={{marginTop: '20px'}}>
<Col>
<Title level={5}>Xuất báo cáo theo: </Title>
</Col>
<Col>
<Select
showSearch
style={{ width: 200, marginLeft:'10px'}}
placeholder="Chọn thời gian"
optionFilterProp="children"
onChange={onChange}
onFocus={onFocus}
onBlur={onBlur}
onSearch={onSearch}
filterOption={(input, option) =>
option.children.toLowerCase().indexOf(input.toLowerCase()) >= 0
}
>
<Option value="Theo tháng">Theo tháng</Option>
<Option value="Theo quý">Theo quý</Option>
<Option value="Theo năm">Theo năm</Option>
</Select>
</Col>
</Row>
<br/>
<table className={styles.table}>
<tr className={styles.tr}>
<th className={styles.th} >Id Customer</th>
<th className={styles.th} >Card Number</th>
<th className={styles.th} >Full Name</th>
<th className={styles.th} >Date of Bird</th>
<th className={styles.th} >Email</th>
<th className={styles.th} >Action</th>
</tr>
{/* {
data.map((item) => {
const ngaySinh = new Date(item.person.ngaySinh);
const dateOfBird = ngaySinh.getDate() + ' tháng ' +
ngaySinh.getMonth() + ', ' + ngaySinh.getFullYear()
return (
<tr
key={item.id}
>
<th className={styles.th} >{item.idCustomer}</th>
<th className={styles.th} >{item.person.cardNumber}</th>
<th className={styles.th} >{item.person.fullName.ho + " " +
item.person.fullName.tenDem + " " +
item.person.fullName.ten}</th>
<th className={styles.th} > {dateOfBird} </th>
<th className={styles.th} >{item.person.email}</th>
<th className={styles.th}>
<Space>
<TableCustomer
item={item}
toggleUpdate={toggleUpdate}
/>
<Button type="primary" onClick={() => {
showPromiseConfirm(item.id)
}}>Xóa</Button>
</Space>
</th>
</tr>
)
}
)
} */}
{
load == false && <Skeleton active />
}
</table>
</Content>
</Main>
</div>
)
}
export default index
<file_sep>/components/PrivateLayout.jsx
import { Layout } from "antd";
import React from "react";
import Navigation from "./Navigation";
const { Header, Footer } = Layout;
function PrivateLayout(props) {
return (
<div>
<Layout>
<Header style={{ position: "fixed", zIndex: 1, width: "100%" , height:"80px", backgroundColor: "#fff" , borderBottom: "1px solid #ccc"}}>
<Navigation />
</Header>
<Layout>
{props.children}
</Layout>
</Layout>
</div>
);
}
export default PrivateLayout;
<file_sep>/components/Navigation.jsx
import { useState } from "react";
import { Menu, Select, Row, Col, Popover, Button, Typography } from "antd";
import {
MailOutlined,
AppstoreOutlined,
SettingOutlined,
} from "@ant-design/icons";
import styles from "./Navigation.module.scss";
import { signOut } from "../api/firebase-client";
import { useUser } from "../utils/use-user";
import {
HeartOutlined,
HomeOutlined,
SendOutlined,
LogoutOutlined,
BookOutlined,
UserOutlined,
UserSwitchOutlined,
} from "@ant-design/icons";
const { SubMenu } = Menu;
const { Text, Link } = Typography;
export default function Navigation() {
const { logout, user } = useUser();
const content = (
<Menu className={styles.userMenu}>
<Menu.Item key="0">
<a href="/profile">
<UserOutlined /> Trang cá nhân
</a>
</Menu.Item>
<Menu.Item key="0">
<a href="/">
<BookOutlined /> Đã lưu
</a>
</Menu.Item>
<Menu.Item key="0">
<a href="/">
<UserSwitchOutlined /> Chuyển tài khoản
</a>
</Menu.Item>
<Menu.Item key="1" style={{ borderTop: "1px solid #ccc" }}>
<a onClick={() => logout()}>
{" "}
<LogoutOutlined /> Đăng xuất
</a>
</Menu.Item>
</Menu>
);
return (
<div className={styles.nav}>
<div>
<Link href="/" className={styles.textLogo}>
Í_𝓷𝓽𝓪𝓰𝓻𝓪𝓶
</Link>
</div>
<div className={styles.control}>
<input type="text" placeholder="Tìm kiếm" className={styles.search} />
<div className={styles.controlItem}>
<a href="/" style={{ color: "#000" }}>
<HomeOutlined className={styles.icon} />
</a>
</div>
<div className={styles.controlItem}>
<a href="/messages" style={{ color: "#000" }}>
{" "}
<SendOutlined className={styles.icon} />{" "}
</a>
</div>
<div className={styles.controlItem}>
<HeartOutlined className={styles.icon} />
</div>
<div className={styles.controlItem}>
<Popover content={content} trigger="click">
<img className={styles.userAvt} src={user ? user.photoURL : ""} />
</Popover>
</div>
</div>
</div>
);
}
<file_sep>/pages/index.jsx
import { useEffect } from "react";
import { useRouter } from 'next/router';
import { Typography } from "antd";
import { getAccessToken } from './../utils/cookies';
import PrivateLayout from './../components/PrivateLayout';
import Content from './../components/Content';
const { Title } = Typography;
export default function Home() {
const accessToken = getAccessToken();
const router = useRouter();
useEffect(() => {
if (!accessToken) router.push('/login');
}, []);
return (
<div>
<PrivateLayout>
<Content />
</PrivateLayout>
</div>
);
}
<file_sep>/pages/login/index.jsx
import { Layout, Row, Col, Card } from "antd";
import React from "react";
import { useEffect } from "react";
import { useRouter } from "next/router";
import SocialLogin from "./../../components/SocialLogin";
import styles from "./index.module.scss";
import { getAccessToken } from "./../../utils/cookies";
const { Meta } = Card;
export default function PublicLayout() {
const router = useRouter();
const accessToken = getAccessToken();
useEffect(() => {
if (accessToken) router.push("/");
}, []);
return (
<div>
<Layout className={styles.cover}>
<Row justify="center">
<Card className={styles.card} hoverable>
<Meta title="" />
<h3 style={{textAlign: 'center'}}>Welcome to Í_𝓷𝓽𝓪𝓰𝓻𝓪𝓶</h3>
<SocialLogin />
<span>You don't have an account? <a>Register</a></span>
<p style = {{textAlign: 'center'}}>DownLoadApp.</p>
<div className={styles.downLoadApp}>
<img src="https://appradar.com/wp-content/uploads/App-Store-Google-Play-Icons.png"></img>
</div>
</Card>
</Row>
</Layout>
</div>
);
}
| 66a342e9d7420be0fcff7ec271c290367d60eb25 | [
"JavaScript"
] | 7 | JavaScript | Donotknowwhy/ptpm | 4ed8172db881a4ae38f15149c358815074c5ef09 | 59a0e98f386929a7a5a47b59a97fa7f1b7e17840 |
refs/heads/master | <repo_name>etozhedanila/E-AdditiveRecognizer<file_sep>/E-AdditiveRecognizer/AdditiveDetailViewController.swift
//
// CodeDetailViewController.swift
// TextRecognizer
//
// Created by <NAME> on 03/10/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
class AdditiveDetailViewController: UIViewController {
@IBOutlet weak var eCodeDescriptionLabel: UILabel!
@IBOutlet weak var eCodeLabel: UILabel!
@IBOutlet weak var eCodeNameLabel: UILabel!
var additive: Additive?
override func viewDidLoad() {
super.viewDidLoad()
configureInterface()
}
private func configureInterface() {
guard let additive = additive else { return }
eCodeLabel.text = additive.code
eCodeNameLabel.text = additive.name
eCodeDescriptionLabel.text = additive.description
}
}
<file_sep>/E-AdditiveRecognizer/Supporting/extensions UIKit/UIButton + preferences.swift
//
// UIButton + preferences.swift
// TextRecognizer
//
// Created by <NAME> on 13/09/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
extension UIButton {
@IBInspectable var cornerRadius: CGFloat {
set {
self.layer.cornerRadius = newValue
}
get {
return layer.cornerRadius
}
}
}
<file_sep>/E-AdditiveRecognizer/Additive.swift
//
// Additive.swift
// TextRecognizer
//
// Created by <NAME> on 30/09/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
import Foundation
class Additive {
var code: String!
var name: String!
var danger: String!
var description: String!
init?(code: String) {
self.code = code
if let additive = eCodes[code] {
if let name = additive["name"],
let danger = additive["danger"],
let description = additive["description"] {
self.name = name
self.danger = danger
self.description = description
}
else {
return nil
}
}
else {
return nil
}
}
}
<file_sep>/E-AdditiveRecognizer/AllAdditivesTableViewController.swift
//
// AdditivesTableViewController.swift
// TextRecognizer
//
// Created by <NAME> on 02/10/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
class AllAdditivesTableViewController: UITableViewController {
var codes: [String]?
override func viewDidLoad() {
super.viewDidLoad()
tableView.tableFooterView = UIView(frame: .zero)
tableView.separatorInset = .zero
codes = [String](eCodes.keys).sorted { $0.count < $1.count }
codes = codes?.sorted { $0 < $1 && $0.count == $1.count }
}
// MARK: - Table view data source
override func numberOfSections(in tableView: UITableView) -> Int {
return 1
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return eCodes.count
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "additiveCell", for: indexPath)
cell.textLabel?.text = codes?[indexPath.row]
return cell
}
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
performSegue(withIdentifier: "allAdditiveDetailSegue", sender: self)
tableView.deselectRow(at: indexPath, animated: true)
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if let vc = segue.destination as? AdditiveDetailViewController, let indexPath = tableView.indexPathForSelectedRow, let codes = codes {
vc.additive = Additive(code: codes[indexPath.row])
}
}
}
<file_sep>/E-AdditiveRecognizer/MenuVC/MenuVC + ImagePicker.swift
//
// MenuVC + ImagePicker.swift
// TextRecognizer
//
// Created by <NAME> on 02/10/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
extension MenuViewController: UIImagePickerControllerDelegate, UINavigationControllerDelegate {
func imagePickerControllerDidCancel(_ picker: UIImagePickerController) {
dismiss(animated: true, completion: nil)
}
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) {
guard let image = info[.originalImage] as? UIImage else { return }
self.pickedImage = image
dismiss(animated: true) {
self.performSegue(withIdentifier: "recognitionSegue", sender: self)
}
}
}
<file_sep>/E-AdditiveRecognizer/CameraViewController/CameraVC + photoOutput.swift
//
// CameraViewController + photoOutput.swift
// TextRecognizer
//
// Created by <NAME> on 13/09/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
import AVFoundation
extension CameraViewController: AVCapturePhotoCaptureDelegate {
func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {
guard error == nil else { return }
guard let imageData = photo.fileDataRepresentation() else { return }
self.photoImage = UIImage(data: imageData)
performSegue(withIdentifier: "effectsSegue", sender: self)
}
}
<file_sep>/E-AdditiveRecognizer/MenuVC/MenuViewController.swift
//
// MenuViewController.swift
// TextRecognizer
//
// Created by <NAME> on 02/10/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
class MenuViewController: UIViewController {
var imagePickerController: UIImagePickerController?
var pickedImage: UIImage?
@IBAction func openPhotoLibrary(_ sender: UIButton) {
guard let imagePickerController = imagePickerController else { return }
imagePickerController.modalPresentationStyle = .fullScreen
present(imagePickerController, animated: true, completion: nil)
}
override func viewDidLoad() {
super.viewDidLoad()
setupImagePickerController()
}
private func setupImagePickerController() {
if UIImagePickerController.isSourceTypeAvailable(.photoLibrary) {
self.imagePickerController = UIImagePickerController()
guard let imagePickerController = imagePickerController else { return }
imagePickerController.delegate = self
imagePickerController.sourceType = .photoLibrary
}
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if let vc = segue.destination as? RecognitionViewController {
vc.image = pickedImage
}
}
}
<file_sep>/E-AdditiveRecognizer/RecognitionViewController.swift
//
// EffectsViewController.swift
// TextRecognizer
//
// Created by <NAME> on 13/09/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
import FirebaseMLVision
class RecognitionViewController: UIViewController {
@IBOutlet weak var photoImageView: UIImageView!
@IBAction func showCodesButtonTapped(_ sender: UIButton) {
print(#function)
if additives.count > 0 {
performSegue(withIdentifier: "recognitedCodesSegue", sender: self)
}
else {
print(additives.count)
}
}
var textRecognizer: VisionTextRecognizer!
var image: UIImage?
var recognizedText: String = ""
var codes: [String] = []
var additives: [Additive] = []
override func viewDidLoad() {
super.viewDidLoad()
photoImageView.image = image
configureTextRecognizer()
startRecognition()
}
private func configureTextRecognizer() {
let vision = Vision.vision()
textRecognizer = vision.onDeviceTextRecognizer()
}
// override func viewDidAppear(_ animated: Bool) {
// startRecognition()
// }
private func startRecognition() {
guard let image = self.photoImageView.image?.resize(to: CGSize(width: 720, height: 1280)) else { return }
let visionImage = VisionImage(image: image)
textRecognizer.process(visionImage) { (visionText, error) in
self.displayText(from: visionText, error: error)
}
}
private func displayText(from text: VisionText?, error: Error?) {
guard error == nil else {
print("Error: ", error!.localizedDescription)
return
}
guard let visionText = text else {
print("Text not found.")
return
}
for block in visionText.blocks {
self.recognizedText += block.text
}
filterText()
}
private func filterText() {
print(#function)
do {
let range = NSRange(location: 0, length: self.recognizedText.count)
let regex = try NSRegularExpression(pattern: "E[ -]?[0-9]{3,4}[a-z]?")
// let result = regex.firstMatch(in: self.recognizedText, options: [], range: range)
let result = regex.matches(in: self.recognizedText, options: [], range: range)
for elem in result {
print("new iteration")
let elemRange = elem.range(at: 0)
let startIndex = self.recognizedText.index(self.recognizedText.startIndex, offsetBy: elemRange.location)
let endIndex = self.recognizedText.index(startIndex, offsetBy: elemRange.length)
let newHashtagRange = startIndex..<endIndex
var newHashTagFound = String(self.recognizedText[newHashtagRange])
newHashTagFound = newHashTagFound.replacingOccurrences(of: " ", with: "")
newHashTagFound = newHashTagFound.replacingOccurrences(of: "-", with: "")
//
print(newHashTagFound)
print(eCodes[newHashTagFound] ?? "error")
//
self.codes.append(String(newHashTagFound))
}
getInfoFromCodes()
} catch {
print("E not found ", error.localizedDescription)
}
}
private func getInfoFromCodes() {
print(#function)
if codes.count > 0 {
for code in codes {
if let additive = Additive(code: code) {
additives.append(additive)
}
}
print(additives)
}
else {
print("codes count = 0")
}
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if let vc = segue.destination as? RecognitedCodesTableViewController {
vc.recognitedAdditives = self.additives
}
}
}
<file_sep>/E-AdditiveRecognizer/RecognitedCodesTableViewController.swift
//
// RecognitedCodesTableViewController.swift
// TextRecognizer
//
// Created by <NAME> on 03/10/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
class RecognitedCodesTableViewController: UITableViewController {
var recognitedAdditives: [Additive]?
override func viewDidLoad() {
super.viewDidLoad()
}
// MARK: - Table view data source
override func numberOfSections(in tableView: UITableView) -> Int {
return 1
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
guard let recognitedAdditives = recognitedAdditives else { return 0 }
return recognitedAdditives.count
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath)
if let recognitedAdditives = recognitedAdditives {
cell.textLabel?.text = recognitedAdditives[indexPath.row].code
}
return cell
}
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
performSegue(withIdentifier: "recognitedDetailSegue", sender: self)
tableView.deselectRow(at: indexPath, animated: true)
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if let vc = segue.destination as? AdditiveDetailViewController {
if let indexPath = tableView.indexPathForSelectedRow, let recognitedAdditives = recognitedAdditives {
vc.additive = recognitedAdditives[indexPath.row]
}
}
}
}
<file_sep>/E-AdditiveRecognizer/CameraViewController/CameraViewController.swift
//
// ViewController.swift
// TextRecognizer
//
// Created by <NAME> on 03/07/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
import AVFoundation
class CameraViewController: UIViewController {
@IBOutlet weak var cameraImageView: UIImageView!
var captureSession: AVCaptureSession?
var capturePhotoOutput: AVCapturePhotoOutput?
var previewLayer: AVCaptureVideoPreviewLayer?
var photoImage: UIImage?
@IBAction func takePhotoButtonTapped(_ sender: UIButton) {
guard let capturePhotoOutput = capturePhotoOutput else { return }
let settings = AVCapturePhotoSettings()
settings.isAutoStillImageStabilizationEnabled = true
settings.isHighResolutionPhotoEnabled = true
settings.flashMode = .auto
capturePhotoOutput.capturePhoto(with: settings, delegate: self)
}
override func viewDidLoad() {
super.viewDidLoad()
setupCamera()
}
private func setupCamera() {
guard let captureDevice = AVCaptureDevice.default(for: .video) else { return }
do {
let input = try AVCaptureDeviceInput(device: captureDevice)
captureSession = AVCaptureSession()
capturePhotoOutput = AVCapturePhotoOutput()
capturePhotoOutput?.isHighResolutionCaptureEnabled = true
guard let output = capturePhotoOutput, let captureSession = captureSession else { return }
captureSession.addInput(input)
captureSession.addOutput(output)
previewLayer = AVCaptureVideoPreviewLayer(session: captureSession)
guard let previewLayer = previewLayer else { return }
previewLayer.videoGravity = AVLayerVideoGravity.resizeAspectFill
previewLayer.frame = self.view.layer.bounds
cameraImageView.layer.addSublayer(previewLayer)
captureSession.startRunning()
} catch {
print(error.localizedDescription)
}
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if let vc = segue.destination as? RecognitionViewController {
vc.image = photoImage
}
}
}
| 4d76a62ed9bc1778ad0ae7d62036d84dccfaa88a | [
"Swift"
] | 10 | Swift | etozhedanila/E-AdditiveRecognizer | cfa1588aec07a52e3408aac96af894da6de5b915 | 8e175df66569c7defd7a7c9cf7ff320d580eaa4f |
refs/heads/master | <repo_name>INVISIBLE5130/Cruises_front<file_sep>/src/components/Menu.js
import React, {Component} from 'react';
import { Typography, Link } from '@material-ui/core'
import logo from '../images/AD.png'
import '../styles/Menu.css';
class Menu extends Component{
constructor(props){
super(props)
}
render(){
return (
<div>
<Typography className="Menu">
<Link href="/">
<img src={logo} alt={"logo"} className={'logo'}/>
</Link>
<Link href="/animals" className="link">
Animals
</Link>
<Link href="/bloodBanks" className="link">
Blood Banks
</Link>
<Link href="/bloodRequests" className="link">
Blood Requests
</Link>
<Link href="/clinics" className="link">
Clinics
</Link>
<Link href="/donations" className="link">
Donations
</Link>
<Link href="/medicalChecks" className="link">
Medical Checks
</Link>
<Link href="/staff" className="link">
Staff
</Link>
<Link href="/users" className="link">
Users
</Link>
</Typography>
</div>
)
}
}
export default Menu;
<file_sep>/src/components/pages/AnimalsPage.js
import {Component} from "react";
import React from "react";
import DynamicSelect from '../DynamicSelect'
import axios from "axios";
import Menu from '../Menu';
import '../../styles/Animals.css';
import Table from "../tables/AnimalsTable";
class AnimalsPage extends Component {
constructor(props){
super(props);
this.state = {
breeds: [],
types: []
}
}
handleSelect1Change = (selectedValue) => {
this.setState({
select1Value: selectedValue
});
};
handleSelect2Change = (selectedValue) => {
this.setState({
select2Value: selectedValue
});
};
componentDidMount() {
axios.get(`http://localhost:5000/api/v1/animals/breeds`)
.then((response) => {
const breeds = [];
response.data.forEach((breed) => {
breeds.push({
id: breed,
name: breed
})
});
this.setState({
breeds: breeds
})
});
axios.get(`http://localhost:5000/api/v1/animals/types`)
.then((response) => {
const types = [];
response.data.forEach((type) => {
types.push({
id: type,
name: type
})
});
this.setState({
types: types
})
})
}
render() {
return (
<div className="AnimalsPage">
<Menu />
<h1>Animals</h1>
<h5>Вивести інформацію про тварин (Ім’я, дата народження, колір, стать), що належать до певного виду та породи.</h5>
<div className={'selects'}>
<DynamicSelect className={'select1'} arrayOfData={this.state.types} onSelectChange={this.handleSelect1Change}/>
<DynamicSelect className={'select2'} arrayOfData={this.state.breeds} onSelectChange={this.handleSelect2Change} />
</div>
<br /><br />
<div>
{/*{this.state.breeds.map( (breed, key) => {*/}
{/*return <p key={key}>{breed.name}</p>*/}
{/*})}*/}
{/*<p>breeds: {this.state.breeds}</p>*/}
Selected value: {this.state.select1Value} & {this.state.select2Value}
</div>
<Table/>
</div>
);
}
}
export default AnimalsPage;
<file_sep>/src/App.js
import React, { Component } from 'react';
import './App.css';
import HomePage from './components/pages/HomePage';
import AnimalsPage from './components/pages/AnimalsPage';
import BloodBanksPage from './components/pages/BloodBanksPage';
import BloodRequestsPage from './components/pages/BloodRequestsPage';
import ClinicsPage from './components/pages/ClinicsPage';
import DonationsPage from './components/pages/DonationsPage';
import MedicalChecksPage from './components/pages/MedicalChecksPage';
import StaffPage from './components/pages/StaffPage';
import UsersPage from './components/pages/UsersPage';
import { MoreHoriz, AddBox, Delete, Edit, Build } from '@material-ui/icons';
import {Route} from "react-router";
import {BrowserRouter} from "react-router-dom";
const color1 = '525252';
const color2 = '414141';
const color3 = '313131';
const color4 = 'ca3e47';
class App extends Component {
constructor(props){
super(props);
this.state={
selectedValue: 'Nothing selected'
}
}
handleSelectChange = (selectedValue) =>{
this.setState({
selectedValue: selectedValue
});
};
render() {
return (
<div className="App">
<BrowserRouter>
<Route exact path={"/"} component={HomePage}/>
<Route exact path={"/animals"} component={AnimalsPage}/>
<Route exact path={"/bloodBanks"} component={BloodBanksPage}/>
<Route exact path={"/bloodRequests"} component={BloodRequestsPage}/>
<Route exact path={"/clinics"} component={ClinicsPage}/>
<Route exact path={"/donations"} component={DonationsPage}/>
<Route exact path={"/medicalChecks"} component={MedicalChecksPage}/>
<Route exact path={"/staff"} component={StaffPage}/>
<Route exact path={"/users"} component={UsersPage}/>
</BrowserRouter>
</div>
);
}
}
export default App;
<file_sep>/src/components/pages/DonationsPage.js
import {Component} from "react";
import React from "react";
import DynamicSelect from '../DynamicSelect'
import Menu from '../Menu';
import Table from '../tables/AnimalsTable';
const arrayOfData1 = [
{
id: 'All',
name: 'All'
},
{
id: 'Jerry',
name: 'Jerry'
},
{
id: 'Elaine',
name: 'Elaine'
},
{
id: 'Kramer',
name: 'Kramer'
},
{
id: 'George',
name: 'George'
}
];
const arrayOfData2 = [
{
id: 'All',
name: 'All'
},
{
id: 'Jerry',
name: 'Jerry'
},
{
id: 'Elaine',
name: 'Elaine'
},
{
id: 'Kramer',
name: 'Kramer'
},
{
id: 'George',
name: 'George'
}
];
class DonationsPage extends Component {
constructor(props){
super(props);
this.state={
selectedValue: 'Nothing selected'
}
}
state = {
};
handleSelect1Change = (selectedValue) =>{
this.setState({
select1Value: selectedValue
});
};
handleSelect2Change = (selectedValue) =>{
this.setState({
select2Value: selectedValue
});
};
render() {
return (
<div className="DonationsPage">
<Menu/>
<h1>Donations</h1>
<h5>Вивести інформацію про здачі крові(дата здачі, кінцевий термін зберігання, донор, лікар) за кількістю потрібної крові та групою.</h5>
<div className={'selects'}>
<DynamicSelect className={'select1'} arrayOfData={arrayOfData1} onSelectChange={this.handleSelect1Change}/>
<DynamicSelect className={'select2'} arrayOfData={arrayOfData2} onSelectChange={this.handleSelect2Change} />
</div>
<br /><br />
<div>
Selected value: {this.state.select1Value} & {this.state.select2Value}
</div>
<Table/>
</div>
);
}
}
export default DonationsPage;
<file_sep>/src/components/pages/ClinicsPage.js
import {Component} from "react";
import React from "react";
import DynamicSelect from '../DynamicSelect'
import Menu from '../Menu';
const arrayOfData1 = [
{
id: 'All',
name: 'All'
},
{
id: 'Jerry',
name: 'Jerry'
},
{
id: 'Elaine',
name: 'Elaine'
},
{
id: 'Kramer',
name: 'Kramer'
},
{
id: 'George',
name: 'George'
}
];
const arrayOfData2 = [
{
id: 'All',
name: 'All'
},
{
id: 'Jerry',
name: 'Jerry'
},
{
id: 'Elaine',
name: 'Elaine'
},
{
id: 'Kramer',
name: 'Kramer'
},
{
id: 'George',
name: 'George'
}
];
class ClinicsPage extends Component {
constructor(props){
super(props);
this.state={
selectedValue: 'Nothing selected'
}
}
state = {
};
handleSelect1Change = (selectedValue) =>{
this.setState({
select1Value: selectedValue
});
};
handleSelect2Change = (selectedValue) =>{
this.setState({
select2Value: selectedValue
});
};
render() {
return (
<div className="ClinicsPage">
<Menu/>
<h1>Clinks</h1>
<h5>Вивести інформацію про клініки (назва, номер телефону, адреса) за певним містом та роком заснування</h5>
<div className={'selects'}>
<DynamicSelect className={'select1'} arrayOfData={arrayOfData1} onSelectChange={this.handleSelect1Change}/>
<DynamicSelect className={'select2'} arrayOfData={arrayOfData2} onSelectChange={this.handleSelect2Change} />
</div>
<br /><br />
<div>
Selected value: {this.state.select1Value} & {this.state.select2Value}
</div>
</div>
);
}
}
export default ClinicsPage;
<file_sep>/src/components/pages/UsersPage.js
import {Component} from "react";
import React from "react";
import DynamicSelect from '../DynamicSelect'
import Menu from '../Menu';
import '../../styles/Users.css';
const arrayOfData1 = [
{
id: 'All',
name: 'All'
},
{
id: 'Jerry',
name: 'Jerry'
},
{
id: 'Elaine',
name: 'Elaine'
},
{
id: 'Kramer',
name: 'Kramer'
},
{
id: 'George',
name: 'George'
}
];
const arrayOfData2 = [
{
id: 'All',
name: 'All'
},
{
id: 'Jerry',
name: 'Jerry'
},
{
id: 'Elaine',
name: 'Elaine'
},
{
id: 'Kramer',
name: 'Kramer'
},
{
id: 'George',
name: 'George'
}
];
class UsersPage extends Component {
constructor(props){
super(props);
this.state={
selectedValue: 'Nothing selected'
}
}
state = {
};
handleSelect1Change = (selectedValue) =>{
this.setState({
select1Value: selectedValue
});
};
handleSelect2Change = (selectedValue) =>{
this.setState({
select2Value: selectedValue
});
};
render() {
return (
<div className="UsersPage">
<Menu/>
<h1>Users</h1>
<h5>Вивести інформацію про користувачів (ПІБ, місто проживання, стать, дата народження, номер телефону) за певною електронною адресою та мають більше 1 тварини.</h5>
<input type="text"/>
</div>
);
}
}
export default UsersPage;
| 66e70683192aad2e13317d09b5301a1466f1daa0 | [
"JavaScript"
] | 6 | JavaScript | INVISIBLE5130/Cruises_front | 16fd9716747494e21f1e01e059f1cc7bc52c4322 | 3df7712ce74eb120c186d3790f1f1f0540f1d994 |
refs/heads/master | <repo_name>pbotros/exphose-client-android<file_sep>/src/com/example/exphose/requests/JSONRequestLogin.java
package com.example.exphose.requests;
import exphose.Globals;
public class JSONRequestLogin extends JSONRequest {
public JSONRequestLogin(String username, String password) {
addElement(username);
addElement(password);
}
protected int getCommandNo() {
return Globals.REQUEST_HANDLE_LOGIN;
}
}<file_sep>/src/com/example/exphose/CreateEventActivity.java
package com.example.exphose;
import java.text.ParseException;
import com.example.exphose.callbacks.TransportCallbackCreateEvent;
import com.example.exphose.requests.JSONRequestCreateEvent;
import android.app.Activity;
import android.content.Context;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.os.Looper;
import android.text.format.DateFormat;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
public class CreateEventActivity extends Activity {
private double latitude = 0.0;
private double longitude = 0.0;
private boolean waitingForLocation = false;
private boolean locationUpdated = false;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_create_event);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.activity_create_event, menu);
return true;
}
@Override
protected void onResume() {
super.onResume();
LocationManager manager = (LocationManager) this
.getSystemService(Context.LOCATION_SERVICE);
Criteria criteria = new Criteria();
criteria.setAccuracy(Criteria.ACCURACY_COARSE);
String provider = manager.getBestProvider(criteria, true);
manager.requestSingleUpdate(provider, new LocationListener() {
private static final String TAG = "ll";
@Override
public void onStatusChanged(String provider, int status, Bundle extras) {
Log.v(TAG, "statuschanged");
}
@Override
public void onProviderEnabled(String provider) {
Log.v(TAG, "statuschanged");
}
@Override
public void onProviderDisabled(String provider) {
Log.v(TAG, "statuschanged");
}
@Override
public void onLocationChanged(Location location) {
Log.v(TAG, location.getLatitude() + " " + location.getLongitude());
CreateEventActivity.this.updateLocation(location.getLatitude(), location.getLongitude());
}
}, Looper.myLooper());
}
private void updateLocation(double latitude, double longitude) {
CreateEventActivity.this.latitude = latitude;
CreateEventActivity.this.longitude = longitude;
locationUpdated = true;
if (waitingForLocation) {
waitingForLocation = false;
create(null);
}
}
public void create(View view) {
if (! locationUpdated) {
waitingForLocation = true;
return;
}
EditText titleET = (EditText) findViewById(R.id.textTitle);
String title = titleET.getText().toString().trim();
EditText descriptionET = (EditText) findViewById(R.id.textDescription);
String description = descriptionET.getText().toString();
EditText dateET = (EditText) findViewById(R.id.textDate);
String dateString = dateET.getText().toString();
Long date = null;
try {
date = DateFormat.getDateFormat(this).parse(dateString).getTime();
} catch (ParseException e) {
e.printStackTrace();
return;
}
JSONRequestCreateEvent jr = new JSONRequestCreateEvent(title, description, latitude, longitude, date);
jr.send(new TransportCallbackCreateEvent() {
@Override
protected void processCreateEvent(Long eventId) {
System.out.println("EVENT CRWEATED WITH : " + eventId);
}
});
}
}
<file_sep>/src/com/example/exphose/callbacks/TransportCallbackGetFutureEvents.java
package com.example.exphose.callbacks;
import java.util.ArrayList;
import java.util.List;
public abstract class TransportCallbackGetFutureEvents extends JSONTransportCallback {
@Override
protected List<Class<? extends Object>> getClasses() {
List<Class<? extends Object>> ret = new ArrayList<Class<? extends Object>>();
ret.add(long[].class);
ret.add(String[].class);
ret.add(String[].class);
return ret;
}
@Override
public void process(List<Object> objs) {
processGetFutureEvents((long[]) objs.get(0), (String[]) objs.get(1), (String[]) objs.get(2));
}
protected abstract void processGetFutureEvents(long[] eventIds, String[] titles, String[] descriptions);
}<file_sep>/src/com/example/exphose/requests/JSONRequestGetMyEvents.java
package com.example.exphose.requests;
import exphose.Globals;
public class JSONRequestGetMyEvents extends JSONAuthRequest {
public JSONRequestGetMyEvents() {
}
protected int getCommandNo() {
return Globals.REQUEST_HANDLE_GET_MY_EVENTS;
}
}<file_sep>/src/com/example/exphose/ViewPastEventsActivity.java
package com.example.exphose;
import com.example.exphose.callbacks.TransportCallbackGetPastEvents;
import com.example.exphose.requests.JSONRequestGetPastEvents;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class ViewPastEventsActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_view_past_events);
updateEvents();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.activity_view_past_events, menu);
return true;
}
private void updateEvents() {
JSONRequestGetPastEvents jr = new JSONRequestGetPastEvents();
jr.send(new TransportCallbackGetPastEvents() {
@Override
protected void processGetPastEvents(long[] eventIds,
String[] titles, String[] descriptions) {
for (int i = 0; i < eventIds.length; i++) {
System.out.println("ID : " + eventIds[i] + ", " + titles[i]
+ " " + descriptions[i]);
}
}
});
}
}
<file_sep>/src/com/example/exphose/requests/RequestBase.java
package com.example.exphose.requests;
import com.example.exphose.callbacks.TransportCallback;
public abstract class RequestBase {
public abstract void send(TransportCallback callback);
protected abstract int getCommandNo();
}
<file_sep>/src/com/example/exphose/requests/JSONRequestRegister.java
package com.example.exphose.requests;
import exphose.Globals;
public class JSONRequestRegister extends JSONRequest {
public JSONRequestRegister(String username, String password) {
addElement(username);
addElement(password);
}
protected int getCommandNo() {
return Globals.REQUEST_HANDLE_REGISTER;
}
}<file_sep>/src/com/example/exphose/requests/JSONRequestGetPastEvents.java
package com.example.exphose.requests;
import exphose.Globals;
public class JSONRequestGetPastEvents extends JSONAuthRequest {
public JSONRequestGetPastEvents() {
}
protected int getCommandNo() {
return Globals.REQUEST_HANDLE_GET_PAST_EVENTS;
}
}<file_sep>/src/com/example/exphose/requests/JSONRequestGetFutureEvents.java
package com.example.exphose.requests;
import exphose.Globals;
public class JSONRequestGetFutureEvents extends JSONAuthRequest {
public JSONRequestGetFutureEvents() {
}
protected int getCommandNo() {
return Globals.REQUEST_HANDLE_GET_FUTURE_EVENTS;
}
}<file_sep>/src/com/example/exphose/callbacks/TransportCallbackCreateEvent.java
package com.example.exphose.callbacks;
import java.util.ArrayList;
import java.util.List;
public abstract class TransportCallbackCreateEvent extends JSONTransportCallback {
@Override
protected List<Class<? extends Object>> getClasses() {
List<Class<? extends Object>> ret = new ArrayList<Class<? extends Object>>();
ret.add(Long.class);
return ret;
}
@Override
public void process(List<Object> objs) {
processCreateEvent((Long) objs.get(0));
}
protected abstract void processCreateEvent(Long eventId);
} | 2af53b46b970d294e7e80cfb482547393f7bd476 | [
"Java"
] | 10 | Java | pbotros/exphose-client-android | c6b5cc0fa032b5362bb188771e34e59334e9e740 | d632842546ba5ea9954dd509e1659eb2b5fa0496 |
refs/heads/master | <file_sep># locatePkt
A program to detect packets sent to servers in chosen XYZ location
<file_sep>from scapy.all import sniff
#NEEDED FOR WINDOWS : https://nmap.org/npcap/#download
# Number of records to be sniffed
COUNT = 50
collectIp = []
## Define our Custom Action function
def custom_action(packet):
#get destination keys
pktDest = (packet[0][1].dst)
collectIp.append(pktDest)
## Setup sniff, filtering for IP traffic
sniff(filter="ip", prn=custom_action, count = COUNT)
print(collectIp)
<file_sep>import urllib.request
import json
class Location:
def __init__(self, country, latitude, longitude):
self.country = country
self.latitude = latitude
self.longitude = longitude
#Extracts the IP address location
def extractLocation(ipAddr: str):
with urllib.request.urlopen(f"https://geolocation-db.com/json/{ipAddr}") as url:
data = json.loads(url.read().decode())
country = data.get('country_name')
latitude = data.get('latitude')
longitude = data.get('longitude')
countryData = (country, latitude, longitude)
return countryData
# The "*" unpacks the tuple into a set of arguments to be passed into the function
locationOfIp = Location(* extractLocation("1.1.1.1"))
# print(locationOfIp.country)
<file_sep>import sqlite3
from sqlite3 import Error
#global
conn = None
try:
conn = sqlite3.connect(':memory:')
print(sqlite3.version)
dbCursor = conn.cursor()
# Table creation
dbCursor.execute('''
CREATE TABLE location (
IP text NOT NULL,
country text NOT NULL,
longitude decimal NOT NULL,
latitude decimal NOT NULL
)
''')
except Error as e:
print(e)
def closeConn():
if conn:
conn.close()
# def insertInto(countryName :str, long, lat):
# dbString = f"INSERT INTO location (country,longitude,latitude) VALUES ('{countryName}', {long}, {lat})"
# print(dbString)
# dbCursor.execute(dbString)
# conn.commit()
def insertInto(locationList):
dbCursor.executemany(
'INSERT INTO location (IP,country,longitude,latitude) VALUES (?,?,?,?)', locationList
)
if __name__ == '__main__':
locationList = [('172.16.58.3', 'India', 19.075983, 72.877655),
('192.168.3.11','Indioa', 19.075783, 72.877655),
]
insertInto(locationList)
# insertInto('Indioa', 19.075783, 72.877655)
dbCursor.execute("SELECT * FROM location")
print(dbCursor.fetchall())
closeConn() | 78f10c5fd56c8b5ee3c3bd619cc54d6b2a758fb1 | [
"Markdown",
"Python"
] | 4 | Markdown | sakshatshinde/locatePkt | 3bc600e7fb38e796102e996dcd4c23499f701d1f | 1839f2b46aaf4b25dc35c49d023cf76c36ea4e08 |
refs/heads/master | <file_sep>package com.example.tpdm_u2_ejercicio2;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class BaseDatos extends SQLiteOpenHelper {
public BaseDatos(Context context,String name,SQLiteDatabase.CursorFactory factory, int version) {
super(context, name, factory, version);
}
@Override
public void onCreate(SQLiteDatabase db) {//se ejecuta primera vez
db.execSQL("CREATE TABLE ABOGADO( IDABOGADO INTEGER PRIMARY KEY AUTOINCREMENT, " +
"NOMBRE VARCHAR(200),TELEFONO VARCHAR (50),SUELDO FLOAT)");
db.execSQL("CREATE TABLE EXPEDIENTE( IDEXPEDIENTE VARCHAR(500) PRIMARY KEY NOT NULL," +
" DESCRIPCION VARCHAR(500),CLIENTE VARCHAR(500), FECHA DATE," +
"FORANEA INTEGER," +
"FOREIGN KEY (FORANEA) REFERENCES ABOGADO(IDABOGADO))");
}
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {//Cuando hay un cambio de version
}
}
<file_sep>package com.example.tpdm_u2_ejercicio2;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class Main2Activity extends AppCompatActivity {
TextView nombre, sueldo,telefono;
Button insertar,regresar;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main2);
sueldo=findViewById(R.id.sueldo);
nombre=findViewById(R.id.nombre);
telefono=findViewById(R.id.telefono);
insertar=findViewById(R.id.insertar);
regresar= findViewById(R.id.regresar);
insertar.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
insertar();
}
});
regresar.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
}
private void insertar() {
String mensaje="";
Abogado abogado=new Abogado(this);
boolean respuesta = abogado.insertar(new Abogado(-1,nombre.getText().toString(),
telefono.getText().toString(),Float.parseFloat(sueldo.getText().toString())));
if(respuesta){
mensaje= "se pudo insertar el abogado "+nombre.getText().toString();
}
else{
mensaje="Error no se pudo crear el abogado, respuesta de SQLite"+abogado.error;
}
AlertDialog.Builder alerta =new AlertDialog.Builder(this);
alerta.setTitle("ATENCION").setMessage(mensaje).setPositiveButton("ok",null).show();
}
}
<file_sep>package com.example.tpdm_u2_ejercicio2;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class Main3Activity extends AppCompatActivity {
EditText nombre,telefono,sueldo;
Button actualizar, eliminar,regresar;
int id;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main3);
nombre=findViewById(R.id.editanombre);
telefono=findViewById(R.id.editatelefono);
sueldo=findViewById(R.id.editasueldo);
actualizar=findViewById(R.id.actualizarabogado);
eliminar=findViewById(R.id.eliminarabogado);
regresar=findViewById(R.id.regresarabogado);
Bundle parametros= getIntent().getExtras();
nombre.setText(parametros.getString("nombre"));
telefono.setText(parametros.getString("telefono"));
sueldo.setText(""+parametros.getFloat("sueldo"));
id= parametros.getInt("id");
actualizar.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
actualizar();
}
});
eliminar.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
}
private void actualizar() {
Abogado a= new Abogado(this);
String mensaje;
boolean respuesta = a.actualizar(new Abogado (id,nombre.getText().toString(),
telefono.getText().toString(),Float.parseFloat(sueldo.getText().toString())
));
if(respuesta){
mensaje="se actualizo correctamente el abogado "+nombre.getText().toString();
}else{
mensaje="Error algo salio mal: "+a.error;
}
Toast.makeText(this,mensaje,Toast.LENGTH_LONG);
}
}
| f42e13cedc6e31f5de7cf3a5617ca84e659c7235 | [
"Java"
] | 3 | Java | lizethConu/TPDM_U2_PRACTICA02 | 9211e56f3d029fd5736f00bc2d1c4c7addaa2017 | 9af6c262e237a82c275ea4508aee8520148b1200 |
refs/heads/master | <file_sep>#I have created this file-ars.com.np
from django.http import HttpResponse
from django.shortcuts import render
def index(request):
#dict = {'name':'<NAME>','age':18}
#return render(request,'index.html',dict)
return render(request,'index.html')
def about(request):
return render(request,'about.html')
def analyze(request):
#get the text
text = request.POST.get('text','default')
removepunc = request.POST.get('removepunc','off')
upper = request.POST.get('upper','off')
removenewline = request.POST.get('removenewline','off')
removeextraspace = request.POST.get('removeextraspace','off')
if upper == "on" and removepunc == "on" and removenewline =="on" and removeextraspace == "on":
punctuations =''' !()-[]{};:'"\,<>./?@#$%^&*_~'''
result =""
for i in text:
if i not in punctuations:
result = result + i.upper()
result2 = ""
for i in result:
if i != "\n" and i!= "\r":
result2 = result2 + i
result3 =""
for i,char in enumerate(result2):
if not (result2[i] == " " and result2[i+1] == " "):
result3 = result3+char
dic = {'analyze':result3}
return render(request,'analyze.html',dic)
elif upper == "on" and removepunc == "on" and removenewline =="on" :
punctuations =''' !()-[]{};:'"\,<>./?@#$%^&*_~'''
result =""
for i in text:
if i not in punctuations:
result = result + i.upper()
result2 = ""
for i in result:
if i != "\n" and i!= "\r":
result2 = result2 + i
dic = {'analyze':result2}
return render(request,'analyze.html',dic)
elif upper == "on" and removepunc == "on" :
punctuations =''' !()-[]{};:'"\,<>./?@#$%^&*_~'''
result =""
for i in text:
if i not in punctuations:
result = result + i.upper()
dic = {'analyze':result}
return render(request,'analyze.html',dic)
elif removenewline == "on":
result = ""
for i in text:
if i != "\n" and i!= "\r":
result = result + i
dic = {'analyze':result}
return render(request,'analyze.html',dic)
elif removepunc == "on":
punctuations =''' !()-[]{};:'"\,<>./?@#$%^&*_~'''
result =""
for i in text:
if i not in punctuations:
result = result + i
dic = {'analyze':result}
return render(request,'analyze.html',dic)
elif upper == "on":
result = ""
for i in text:
result = result + i.upper()
dic = {'analyze':result}
return render(request,'analyze.html',dic)
elif removeextraspace =="on":
result3 =""
for i,char in enumerate(text):
if not( text[i] == " " and text[i+1] == " "):
result3 = result3+char
dic = {'analyze':result3}
return render(request,'analyze.html',dic)
else:
return render(request,'error.html')
#def removenewline(request):
#return HttpResponse(''' RemveNewLine <br><a href="/" style="text-decoration:none;background:blue;color:white;font-size:20px;">Back</a>''')
#def removespace(request):
#return HttpResponse("RemveSpace") | 7a40cb610bbc7ef5d8f789f132996b756003fbca | [
"Python"
] | 1 | Python | ananta-raj-shrestha/django-text-analyzer-project | c89a85be74fd633567dcb335e1f2493b36df0da2 | 375481f9fd75684810d25f9cda28bcda7cfd815a |
refs/heads/master | <file_sep>What is a closure?
Function wrapping another function.
function greetingCreator(name) {
return function () {
return "hey"
}
}
| 2f3a5c03576a0ca217c62cb6d0c5e73e43f50706 | [
"JavaScript"
] | 1 | JavaScript | ajohnson2205/js4-closures-prototypes | a4a2d4db2e852cdd94de8c025535bda4f431375e | bae45db856d70e2d2a754364d1d6d988d13f297d |
refs/heads/main | <file_sep>Adafruit-Blinka==6.4.1
adafruit-circuitpython-neopixel==6.0.2
adafruit-circuitpython-pypixelbuf==2.2.4
Adafruit-PlatformDetect==3.4.0
Adafruit-PureIO==1.1.8
asn1crypto==0.24.0
attrs==20.3.0
certifi==2018.8.24
chardet==3.0.4
click==7.1.2
cryptography==2.6.1
entrypoints==0.3
Flask==1.1.2
flask-expects-json==1.5.0
idna==2.6
importlib-metadata==3.7.3
itsdangerous==1.1.0
Jinja2==2.11.3
jsonschema==3.2.0
keyring==17.1.1
keyrings.alt==3.1.1
MarkupSafe==1.1.1
pycrypto==2.6.1
pyftdi==0.52.9
PyGObject==3.30.4
pyrsistent==0.17.3
pyserial==3.5
python-apt==1.8.4.3
pyusb==1.1.1
pyxdg==0.25
requests==2.21.0
rpi-ws281x==4.2.6
RPi.GPIO==0.7.0
SecretStorage==2.3.1
six==1.12.0
ssh-import-id==5.7
sysv-ipc==1.1.0
typing-extensions==3.7.4.3
urllib3==1.24.1
Werkzeug==1.0.1
zipp==3.4.1
<file_sep># Control_led_strip
- Raspberry pi zero W
- Adafruit Neopixels (30 strip, configurable but untested)
- Flask interface for controlling Neopixels on RPI
- Flask interface for LDR (sub module project, used to control LEDs based on light readings)
### Due to limitations of using Neopixels and an RPI, the flask app must be ran as ROOT
More info can be found here: https://learn.adafruit.com/neopixels-on-raspberry-pi/python-usage
### Additional note, it is stated in the above link, but please be aware of the following other RPI limiation:
----- NeoPixels must be connected to D10, D12, D18 or D21 to work (i.e board.DXX) -----
#### Example usage:
##### /set_all
allows all of the RGB LEDs to be set to a colour
###### Happy path:
input: curl -X POST -H "Content-Type: application/json" -d '{"rgb": [140, 20, 180]}' http://IP:PORT/set_all
resp: {"success":true}
###### Sadness (invalid input value provided):
input: curl -X POST -H "Content-Type: application/json" -d '{"rgb": [100, 20, 300]}' http://IP:PORT/set_all
resp: {"error":"byte must be in range(0, 256)","success":false}
# Controlling when the LED strips turn off/on with docker
## submodule: neo_ctrl_docker
- more info coming......<file_sep>"""The main flask app"""
from flask import Flask, jsonify, request
from flask_expects_json import expects_json
from neo_pixel.neo import create_neo_pixel
app = Flask(__name__, static_url_path="") # Flask app
neo = None # Neo pixel connection var
BRIGHTNESS_KEY = "brightness"
def _post_data() -> dict:
"""The json data sent via a POST
Returns:
dict: The POST data
"""
default_brightness = 0.8
post_data = request.get_json()
if BRIGHTNESS_KEY not in post_data.keys():
post_data[BRIGHTNESS_KEY] = default_brightness
return post_data
@app.route("/test", methods=["GET"])
def test_page() -> str:
"""Test page for the system"""
return "<h1>NEO PIXEL INTERFACE TEST PAGE</h1>"
@app.route("/set_px", methods=["POST"])
def set_px() -> str:
"""NOT YET IMPLEMENTED
Returns:
str: json string
"""
return jsonify({"success": False, "error": "Not implemented"})
set_all_schema = {
"properties": {
"rgb": {"type": "array"},
BRIGHTNESS_KEY: {"type": "number"}
},
"required": ["rgb"]
}
@app.route("/set_all", methods=["POST"])
@expects_json(set_all_schema)
def set_all() -> str:
"""Sets all neopixels to the RGB values provided
Returns:
str: json string
"""
return_resp = {}
try:
post_data = _post_data()
neo.brightness = post_data[BRIGHTNESS_KEY]
neo.fill(post_data["rgb"])
neo.show()
return_resp["success"] = True
except Exception as ex:
return_resp["success"] = False
return_resp["error"] = str(ex)
return jsonify(return_resp)
if __name__ == "__main__":
with create_neo_pixel() as neo:
app.run(host="0.0.0.0", port=8082, debug=False)
<file_sep>"""The neo pixel defaults/connection object"""
import board
import neopixel
# NeoPixel config
PX_PIN = board.D18
NUM_PX = 30
ORDER = neopixel.GRB
AUTO_WRITE = False
def create_neo_pixel(brightness: float = 0.0) -> object:
"""
Creates the Neo pixel object and returns it
Args:
brightness (float): 0 - 1.0
Returns:
object: The NeoPixel object
"""
return neopixel.NeoPixel(PX_PIN, NUM_PX, auto_write=AUTO_WRITE, pixel_order=ORDER, brightness=brightness)
| 6b1487362b94249b68e4223ecf3c8b5d9ad85820 | [
"Markdown",
"Python",
"Text"
] | 4 | Text | jumbobumbo/control_led_strip | 8164ab2db99d787298adeef019c63c653c62163e | 3772ef7d90d62ff8118e1ec344e4721a5c4a8289 |
refs/heads/master | <file_sep>package org.cyetstar.clover.entity;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.Type;
import org.joda.time.DateTime;
@Entity
@Table(name = "tb_comic_book")
public class ComicBook extends IdEntity {
private int bookVolume;
private String scanner;
private String cover;
private Comic comic;
private DateTime createdAt;
private DateTime updatedAt;
public int getBookVolume() {
return bookVolume;
}
public void setBookVolume(int bookVolume) {
this.bookVolume = bookVolume;
}
public String getScanner() {
return scanner;
}
public void setScanner(String scanner) {
this.scanner = scanner;
}
public String getCover() {
return cover;
}
public void setCover(String cover) {
this.cover = cover;
}
@ManyToOne
@JoinColumn(name = "comic_id")
public Comic getComic() {
return comic;
}
public void setComic(Comic comic) {
this.comic = comic;
}
@Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
public DateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(DateTime createdAt) {
this.createdAt = createdAt;
}
@Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
public DateTime getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(DateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
<file_sep>package org.cyetstar.clover.entity;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.hibernate.annotations.Type;
import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.common.collect.Lists;
@Entity
@Table(name = "tb_movie_set")
public class MovieSet extends IdEntity {
private String title;
private String summary;
private List<MovieSetItem> items = Lists.newArrayList();
private DateTime createdAt;
private DateTime updatedAt;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
@JsonIgnore
@OneToMany(mappedBy = "set", fetch = FetchType.LAZY, cascade = { CascadeType.REMOVE })
public List<MovieSetItem> getItems() {
return items;
}
public void setItems(List<MovieSetItem> items) {
this.items = items;
}
@Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
public DateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(DateTime createdAt) {
this.createdAt = createdAt;
}
@Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
public DateTime getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(DateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
<file_sep>package org.cyetstar.clover.repository;
import org.cyetstar.clover.entity.MovieCountry;
public interface MovieCountryDao extends JpaSpecRepository<MovieCountry, Long> {
}
<file_sep>package org.cyetstar.clover.repository;
import org.cyetstar.clover.entity.Movie;
import org.joda.time.DateTime;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
public interface MovieDao extends JpaSpecRepository<Movie, Long> {
Movie findByDoubanId(String doubanId);
Movie findByImdb(String imdb);
@Modifying
@Query("update Movie set rating = ?1, numRaters = ?2 , updatedAt = ?3 where id = ?4")
void updateRating(float rating, int numRaters, DateTime updatedAt, Long id);
@Modifying
@Query("update Movie set poster = ?1, updatedAt = ?2 where id = ?3")
void updatePoster(String poster, DateTime updateAt, Long id);
}
<file_sep>package org.cyetstar.clover.repository;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.cyetstar.clover.data.MovieData;
import org.cyetstar.clover.entity.Celebrity;
import org.cyetstar.clover.entity.Movie;
import org.cyetstar.clover.entity.MovieCredit;
import org.cyetstar.clover.entity.MovieGenre;
import org.cyetstar.core.domain.Clause;
import org.cyetstar.core.domain.Fetch;
import org.cyetstar.core.spring.SpecificationCreater;
import org.joda.time.DateTime;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.data.domain.Sort.Direction;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
import org.springframework.test.context.transaction.TransactionConfiguration;
import com.google.common.collect.Lists;
@ActiveProfiles("development")
@ContextConfiguration(locations = { "/applicationContext.xml" })
@TransactionConfiguration(defaultRollback = false)
public class MovieTest extends AbstractTransactionalJUnit4SpringContextTests {
@PersistenceContext
EntityManager em;
@Autowired
MovieDao dao;
@Autowired
MovieGenreDao genreDao;
@Autowired
MovieCreditDao creditDao;
@Test
public void copy() {
Movie old = dao.findByDoubanId("1291560");
}
//@Test
public void find1() {
// Clause clause1 = new Clause(ClauseItem.like("akas.title", "abc")).add(
// new ClauseItem("year", Operator.EQ, "1980")).disjunction();
Clause clause1 = Clause.instance().like("akas.title", "abc").eq("year", "1980").disjunction();
Clause clause2 = Clause.instance().eq("imdb", "tt2817211").gt("rating", 9.0).disjunction();
// new Clause(new ClauseItem("imdb", Operator.EQ, "tt2817211")).add(new ClauseItem("rating", Operator.GT, "9.0"))
// .disjunction();
List<Clause> clauses = Lists.newArrayList(clause1, clause2);
Specification<Movie> spec = SpecificationCreater.searchWith(new Fetch("directors.celebrity"), new Fetch(
"casts.celebrity"), new Fetch("akas"));
dao.findAll(spec, new PageRequest(0, 10, new Sort(Direction.ASC, "createdAt")));
}
//@Test
public void create() {
Movie movie = MovieData.newMovie("abc");
dao.save(movie);
}
//@Test
public void updateByFind() {
Movie movie = dao.findOne(1L);
movie.setTitle("ccc");
movie.setYear("1980");
movie.setSubtype("movie");
movie.setCreatedAt(DateTime.now());
dao.save(movie);
}
//@Test
public void updateBySet() {
Movie movie = new Movie(1L);
movie.setTitle("ccc");
movie.setYear("1980");
movie.setSubtype("movie");
movie.setCreatedAt(DateTime.now());
dao.save(movie);
}
//@Test
public void setGenre() {
MovieGenre genre = genreDao.findOne(1L);
Movie movie = dao.findOne(1L);
movie.getGenres().add(genre);
dao.save(movie);
}
//@Test
public void genreSave() {
MovieGenre genre = genreDao.findOne(2L);
Movie movie = dao.findOne(1L);
genre.getMovies().add(movie);
genreDao.save(genre);
}
//@Test
public void creditSave() {
MovieCredit credit = new MovieCredit();
credit.setCelebrity(new Celebrity(1L));
credit.setMovie(new Movie(1L));
credit.setRole("cast");
creditDao.save(credit);
}
}
<file_sep>package org.cyetstar.clover.entity;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.hibernate.annotations.Type;
import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
@JsonInclude(Include.NON_NULL)
@Entity
@Table(name = "tb_celebrity")
public class Celebrity extends IdEntity {
private String doubanId;
private String name;
private String nameEn;
private String summary;
private String gender;
private String avatar;
private List<MovieCredit> movies;
private DateTime createdAt;
private DateTime updatedAt;
public Celebrity() {
}
public Celebrity(Long id) {
this.id = id;
}
public String getDoubanId() {
return doubanId;
}
public void setDoubanId(String doubanId) {
this.doubanId = doubanId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getNameEn() {
return nameEn;
}
public void setNameEn(String nameEn) {
this.nameEn = nameEn;
}
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
public String getAvatar() {
return avatar;
}
public void setAvatar(String avatar) {
this.avatar = avatar;
}
@JsonIgnore
@OneToMany(mappedBy = "celebrity", fetch = FetchType.LAZY)
public List<MovieCredit> getMovies() {
return movies;
}
public void setMovies(List<MovieCredit> movies) {
this.movies = movies;
}
@JsonIgnore
@Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
public DateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(DateTime createdAt) {
this.createdAt = createdAt;
}
@JsonIgnore
@Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
public DateTime getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(DateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
<file_sep>package org.cyetstar.clover.entity;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name = "tb_movie_credit")
public class MovieCredit extends IdEntity {
public final static String DIRECTOR = "director";
public final static String WRITER = "writer";
public final static String CAST = "cast";
private Movie movie;
private String role;
private Celebrity celebrity;
public static MovieCredit newDirector() {
MovieCredit credit = new MovieCredit();
credit.setRole(DIRECTOR);
return credit;
}
public static MovieCredit newWriter() {
MovieCredit credit = new MovieCredit();
credit.setRole(WRITER);
return credit;
}
public static MovieCredit newCast() {
MovieCredit credit = new MovieCredit();
credit.setRole(CAST);
return credit;
}
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "movie_id")
public Movie getMovie() {
return movie;
}
public void setMovie(Movie movie) {
this.movie = movie;
}
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "celebrity_id")
public Celebrity getCelebrity() {
return celebrity;
}
public void setCelebrity(Celebrity celebrity) {
this.celebrity = celebrity;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((celebrity == null) ? 0 : celebrity.hashCode());
result = prime * result + ((role == null) ? 0 : role.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
MovieCredit other = (MovieCredit) obj;
if (celebrity == null) {
if (other.celebrity != null)
return false;
} else if (!celebrity.equals(other.celebrity))
return false;
if (role == null) {
if (other.role != null)
return false;
} else if (!role.equals(other.role))
return false;
return true;
}
}
<file_sep>package org.cyetstar.clover.data;
import org.cyetstar.clover.entity.Movie;
import org.cyetstar.clover.entity.MovieAka;
import org.joda.time.DateTime;
public class MovieData {
public static Movie newMovie(String t) {
Movie movie = new Movie();
movie.setTitle(t);
movie.setSubtype("movie");
movie.setYear("1980");
movie.setCreatedAt(DateTime.now());
return movie;
}
public static MovieAka newMovieAka(String t) {
MovieAka aka = new MovieAka();
aka.setTitle(t);
return aka;
}
}
<file_sep>package org.cyetstar.clover.repository;
import org.cyetstar.clover.entity.MovieGenre;
public interface MovieGenreDao extends JpaSpecRepository<MovieGenre, Long> {
}
<file_sep>insert into tb_movie(id, title, subtype, year, created_at) values (1, 'test', 'movie', '1980', '2013-01-08 20:21:00');
insert into tb_movie_aka(id, title, movie_id) values (1, 'test2', 1);
insert into tb_movie_genre(id, value) values (1, '剧情');
insert into tb_movie_genre(id, value) values (2, '喜剧');
insert into tb_celebrity(id, name, created_at) values (1, '姜文', '2013-01-08 20:21:00');
insert into tb_celebrity(id, name, created_at) values (2, '葛优', '2013-01-08 20:21:00');
insert into tb_celebrity(id, name, created_at) values (3, '周润发', '2013-01-08 20:21:00');
<file_sep>package org.cyetstar.clover.utils;
import static com.google.common.collect.Sets.*;
import java.util.HashSet;
import org.cyetstar.clover.entity.MovieAka;
import org.junit.Test;
import com.google.common.collect.Sets;
import com.google.common.collect.Sets.SetView;
public class GuavaTest {
@Test
public void set() {
HashSet<Integer> setA = newHashSet(1, 2, 3, 4, 5);
HashSet<Integer> setB = newHashSet(4, 5, 6, 7, 8);
SetView<Integer> union = Sets.union(setA, setB);
System.out.println("union:");
for (Integer integer : union)
System.out.println(integer);
SetView<Integer> difference = Sets.difference(setA, setB);
System.out.println("difference:");
for (Integer integer : difference)
System.out.println(integer);
SetView<Integer> intersection = Sets.intersection(setA, setB);
System.out.println("intersection:");
for (Integer integer : intersection)
System.out.println(integer);
HashSet<MovieAka> a = newHashSet(new MovieAka("123"), new MovieAka("abc"), new MovieAka("go"));
HashSet<MovieAka> b = newHashSet(new MovieAka("123"), new MovieAka("abc"), new MovieAka("gogo"));
for (MovieAka aka : Sets.union(a, b))
System.out.println(aka.getTitle());
System.out.println("==========");
for (MovieAka aka : Sets.difference(a, b))
System.out.println(aka.getTitle());
System.out.println("==========");
for (MovieAka aka : Sets.intersection(a, b))
System.out.println(aka.getTitle());
}
}
<file_sep>package org.cyetstar.clover.service;
import java.util.List;
import org.cyetstar.clover.entity.MovieSet;
import org.cyetstar.clover.entity.MovieSetItem;
import org.cyetstar.clover.repository.JpaSpecRepository;
import org.cyetstar.clover.repository.MovieSetDao;
import org.cyetstar.clover.repository.MovieSetItemDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
@Transactional
public class MovieSetService extends BaseService<MovieSet, Long> {
@Autowired
MovieSetDao setDao;
@Autowired
MovieSetItemDao itemDao;
@Override
protected JpaSpecRepository<MovieSet, Long> getRepository() {
return setDao;
}
public List<MovieSet> findUnAddInSets(Long movieId) {
return setDao.findUnAddInSets(movieId);
}
public List<MovieSet> findAddInSets(Long movieId) {
return setDao.findAddInSets(movieId);
}
public MovieSet saveMovieSet(MovieSet set) {
return setDao.save(set);
}
public void saveMovieSetItem(MovieSetItem item) {
itemDao.save(item);
}
}
<file_sep>package org.cyetstar.clover.rest.client;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import org.cyetstar.clover.rest.baidu.BcsRequestClient;
import org.h2.util.IOUtils;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
@ActiveProfiles("development")
@ContextConfiguration(locations = { "/applicationContext.xml" })
public class BcsRequestClientTest extends AbstractJUnit4SpringContextTests {
@Autowired
BcsRequestClient client;
// @Test
public void putObject() throws IOException {
File file = new File("D:/1.jpg");
InputStream is = new FileInputStream(file);
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.IMAGE_JPEG);
headers.setContentLength(file.length());
headers.add("x-bs-acl", "public-read");
client.putObject(is, "picasso", "/poster/origin/1.jpg", headers);
}
// @Test
public void deleteObject() {
client.deleteObject("picasso", "/poster/origin/2.jpg");
}
// @Test
public void listOjbect() {
System.out.println(client.listObject("picasso", "/"));
}
@Test
public void getOjbect() throws IOException {
InputStream is = client.getObject("picasso", "/poster/origin/3.jpg");
File file = new File("D:/777.jpg");
FileOutputStream os = new FileOutputStream(file);
IOUtils.copy(is, os);
IOUtils.closeSilently(is);
IOUtils.closeSilently(os);
}
}
<file_sep>package org.cyetstar.clover.service;
import java.io.Serializable;
import java.util.Map;
import org.cyetstar.clover.repository.JpaSpecRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
public abstract class BaseService<T, ID extends Serializable> implements Service<T, ID> {
protected abstract JpaSpecRepository<T, ID> getRepository();
@Override
public T save(T entity) {
return getRepository().save(entity);
}
@Override
public void delete(ID id) {
getRepository().delete(id);
}
@Override
public T findOne(ID id) {
return getRepository().findOne(id);
}
@Override
public Iterable<T> findAll() {
return getRepository().findAll();
}
@Override
public Page<T> findAll(Pageable pageable) {
return getRepository().findAll(pageable);
}
@Override
public Page<T> findAll(Map<String, Object> queryMap, Pageable pageable) {
return getRepository().findAll(null, pageable);
}
}
<file_sep>package org.cyetstar.clover.repository;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
import org.springframework.test.context.transaction.TransactionConfiguration;
@ActiveProfiles("test")
@ContextConfiguration(locations = { "/applicationContext.xml" })
@TransactionConfiguration(defaultRollback = false)
public class MovieSetTest extends AbstractTransactionalJUnit4SpringContextTests {
@Autowired
MovieSetDao movieSetDao;
@Test
public void find() {
movieSetDao.findAddInSets(1L);
}
}
<file_sep>user.admin=tplink340,admin
role.admin = *<file_sep>package org.cyetstar.clover.web.controller;
import org.cyetstar.clover.entity.MovieFile;
import org.cyetstar.clover.service.BaseService;
import org.cyetstar.clover.service.MovieFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.context.request.WebRequest;
@Controller
@RequestMapping("/movieFiles")
public class MovieFileController extends CurdController<MovieFile, Long> {
@Autowired
MovieFileService fileService;
@Override
protected BaseService<MovieFile, Long> getService() {
return fileService;
}
@Override
protected void beforeEntityAdd(WebRequest webRequest, Model model) {
super.beforeEntityAdd(webRequest, model);
model.addAttribute("movieId", webRequest.getParameter("movieId"));
}
}
<file_sep>package org.cyetstar.clover.service;
import org.cyetstar.clover.entity.MovieSetItem;
import org.cyetstar.clover.repository.JpaSpecRepository;
import org.cyetstar.clover.repository.MovieSetItemDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
@Transactional
public class MovieSetItemService extends BaseService<MovieSetItem, Long> {
@Autowired
MovieSetItemDao itemDao;
@Override
protected JpaSpecRepository<MovieSetItem, Long> getRepository() {
return itemDao;
}
}
<file_sep>package org.cyetstar.clover.rest.douban;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.Sets;
@JsonIgnoreProperties(ignoreUnknown = true)
public class DoubanMovie {
@JsonProperty("id")
private String doubanId;
private String title;
@JsonProperty("original_title")
private String originalTitle;
@JsonProperty("aka")
private List<String> akas;
private String rating;
@JsonProperty("ratings_count")
private String numRaters;
private String subtype;
@JsonProperty("directors")
private List<DoubanCelebrity> directorCelebrities;
@JsonProperty("casts")
private List<DoubanCelebrity> castCelebrities;
@JsonProperty("writers")
private List<DoubanCelebrity> writerCelebrities;
private String year;
private List<String> languages;
private List<String> genres;
private List<String> countries;
private String summary;
public String getDoubanId() {
return doubanId;
}
public void setDoubanId(String doubanId) {
this.doubanId = doubanId;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getOriginalTitle() {
return originalTitle;
}
public void setOriginalTitle(String originalTitle) {
this.originalTitle = originalTitle;
}
public List<String> getAkas() {
return akas;
}
public void setAkas(List<String> akas) {
this.akas = akas;
}
public String getRating() {
return rating;
}
public void setRating(String rating) {
this.rating = rating;
}
public String getNumRaters() {
return numRaters;
}
public void setNumRaters(String numRaters) {
this.numRaters = numRaters;
}
public String getSubtype() {
return subtype;
}
public void setSubtype(String subtype) {
this.subtype = subtype;
}
public List<DoubanCelebrity> getDirectorCelebrities() {
return directorCelebrities;
}
public void setDirectorCelebrities(List<DoubanCelebrity> directorCelebrities) {
this.directorCelebrities = directorCelebrities;
}
public List<DoubanCelebrity> getCastCelebrities() {
return castCelebrities;
}
public void setCastCelebrities(List<DoubanCelebrity> castCelebrities) {
this.castCelebrities = castCelebrities;
}
public List<DoubanCelebrity> getWriterCelebrities() {
return writerCelebrities;
}
public void setWriterCelebrities(List<DoubanCelebrity> writerCelebrities) {
this.writerCelebrities = writerCelebrities;
}
public String getYear() {
return year;
}
public void setYear(String year) {
this.year = year;
}
public List<String> getLanguages() {
return languages;
}
public void setLanguages(List<String> languages) {
this.languages = languages;
}
public List<String> getGenres() {
return genres;
}
public void setGenres(List<String> genres) {
this.genres = genres;
}
public List<String> getCountries() {
return countries;
}
public void setCountries(List<String> countries) {
this.countries = countries;
}
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
/**
* JSON child object property into Java object field
*
* @param ratingMap
*/
@JsonProperty("rating")
public void setRating(Map<String, Object> ratingMap) {
rating = String.valueOf(ratingMap.get("average"));
}
public Set<DoubanMovieCredit> getDirectors() {
Set<DoubanMovieCredit> set = Sets.newHashSet();
if (this.directorCelebrities != null) {
for (DoubanCelebrity celebrity : this.directorCelebrities) {
DoubanMovieCredit credit = new DoubanMovieCredit();
credit.setCelebrity(celebrity);
set.add(credit);
}
}
return set;
}
public Set<DoubanMovieCredit> getCasts() {
Set<DoubanMovieCredit> set = Sets.newHashSet();
if (this.castCelebrities != null) {
for (DoubanCelebrity celebrity : this.castCelebrities) {
DoubanMovieCredit credit = new DoubanMovieCredit();
credit.setCelebrity(celebrity);
set.add(credit);
}
}
return set;
}
public Set<DoubanMovieCredit> getWriters() {
Set<DoubanMovieCredit> set = Sets.newHashSet();
if (this.writerCelebrities != null) {
for (DoubanCelebrity celebrity : this.writerCelebrities) {
DoubanMovieCredit credit = new DoubanMovieCredit();
credit.setCelebrity(celebrity);
set.add(credit);
}
}
return set;
}
}
<file_sep>drop table if exists tb_ablum;
drop table if exists tb_ablum_relations_musician;
drop table if exists tb_book;
drop table if exists tb_book_tag;
drop table if exists tb_celebrity;
drop table if exists tb_comic;
drop table if exists tb_comic_book;
drop table if exists tb_movie;
drop table if exists tb_movie_aka;
drop table if exists tb_movie_country;
drop table if exists tb_movie_credit;
drop table if exists tb_movie_file;
drop table if exists tb_movie_genre;
drop table if exists tb_movie_language;
drop table if exists tb_movie_relations_movie_country;
drop table if exists tb_movie_relations_movie_genre;
drop table if exists tb_movie_relations_movie_language;
drop table if exists tb_movie_set;
drop table if exists tb_movie_set_item;
drop table if exists tb_musician;
drop table if exists tb_song;
create table tb_ablum
(
id bigint not null auto_increment,
douban_id varchar(10),
xiami_id varchar(20),
title varchar(100) not null,
alt_title varchar(50),
summary text,
publisher varchar(100),
pubdate varchar(20),
version varchar(10),
rating float,
num_raters int,
cover varchar(50),
created_at timestamp not null default 0,
updated_at timestamp default 0,
primary key (id)
)
type = innodb
default character set = utf8;
create table tb_ablum_relations_musician
(
ablum_id bigint not null,
musician_id bigint not null,
primary key (ablum_id, musician_id)
)
type = innodb
default character set = utf8;
create table tb_book
(
id bigint not null auto_increment,
douban_id varchar(10),
isbn10 varchar(10),
isbn13 varchar(13),
title varchar(100) not null,
original_title varchar(100),
alt_title varchar(50),
subtitle varchar(50),
author varchar(100) not null,
translator varchar(100),
publisher varchar(100),
pubdate varchar(20),
author_intro text,
summary text,
rating float,
num_raters int,
cover varchar(50),
created_at timestamp not null default 0,
updated_at timestamp default 0,
primary key (id)
)
type = innodb
default character set = utf8;
create table tb_book_tag
(
id bigint not null auto_increment,
book_id bigint not null,
name varchar(20),
primary key (id)
)
type = innodb
default character set = utf8;
create table tb_celebrity
(
id bigint not null auto_increment,
douban_id varchar(10),
name varchar(30) not null,
name_en varchar(50),
summary text,
gender varchar(1),
avatar varchar(50),
created_at timestamp not null default 0,
updated_at timestamp default 0,
primary key (id)
)
type = innodb
default character set = utf8;
create table tb_comic
(
id bigint not null auto_increment,
title varchar(100) not null,
original_title varchar(100),
alt_title varchar(50),
author varchar(100) not null,
publisher varchar(100),
author_intro text,
summary text,
end bool not null,
total_volume int,
cover varchar(50),
created_at timestamp not null default 0,
updated_at timestamp default 0,
primary key (id)
)
type = innodb
default character set = utf8;
create table tb_comic_book
(
id bigint not null auto_increment,
comic_id bigint,
book_volume int,
scanner varchar(50),
cover varchar(50),
created_at timestamp not null default 0,
updated_at timestamp default 0,
primary key (id)
)
type = innodb
default character set = utf8;
create table tb_movie
(
id bigint not null auto_increment,
douban_id varchar(10),
imdb varchar(10),
title varchar(100),
original_title varchar(100),
subtype varchar(10) not null,
year varchar(4) not null,
summary text,
duration varchar(50),
rating float,
num_raters int,
poster varchar(50),
created_at timestamp not null default 0,
updated_at timestamp default 0,
primary key (id)
)
type = innodb
default character set = utf8;
create table tb_movie_aka
(
id bigint not null auto_increment,
movie_id bigint not null,
title varchar(100) not null,
primary key (id)
)
type = innodb
default character set = utf8;
create table tb_movie_country
(
id bigint not null auto_increment,
value varchar(20) not null,
primary key (id)
)
type = innodb
default character set = utf8;
create table tb_movie_credit
(
id bigint not null auto_increment,
movie_id bigint not null,
celebrity_id bigint not null,
role varchar(10) not null,
created_at timestamp not null default 0,
updated_at timestamp default 0,
primary key (id)
)
type = innodb
default character set = utf8;
create table tb_movie_file
(
id bigint not null auto_increment,
movie_id bigint not null,
created_at timestamp not null default 0,
updated_at timestamp default 0,
filename varchar(100) not null,
primary key (id)
)
type = innodb
default character set = utf8;
create table tb_movie_genre
(
id bigint not null auto_increment,
value varchar(20) not null,
primary key (id)
)
type = innodb
default character set = utf8;
create table tb_movie_language
(
id bigint not null auto_increment,
value varchar(20) not null,
primary key (id)
)
type = innodb
default character set = utf8;
create table tb_movie_relations_movie_country
(
movie_id bigint not null,
country_id bigint not null,
primary key (movie_id, country_id)
)
type = innodb
default character set = utf8;
create table tb_movie_relations_movie_genre
(
movie_id bigint not null,
genre_id bigint not null,
primary key (movie_id, genre_id)
)
type = innodb
default character set = utf8;
create table tb_movie_relations_movie_language
(
movie_id bigint not null,
language_id bigint not null,
primary key (movie_id, language_id)
)
type = innodb
default character set = utf8;
create table tb_movie_set
(
id bigint not null auto_increment,
title varchar(100),
summary text,
created_at timestamp not null default 0,
updated_at timestamp default 0,
primary key (id)
)
type = innodb
default character set = utf8;
create table tb_movie_set_item
(
id bigint not null auto_increment,
movie_id bigint not null,
set_id bigint not null,
idx int not null,
comment varchar(500),
created_at timestamp not null default 0,
updated_at timestamp default 0,
primary key (id)
)
type = innodb
default character set = utf8;
create table tb_musician
(
id bigint not null auto_increment,
name varchar(30),
name_en varchar(50),
summary text,
avatar varchar(50),
created_at timestamp not null default 0,
updated_at timestamp default 0,
primary key (id)
)
type = innodb
default character set = utf8;
create table tb_song
(
id bigint not null auto_increment,
ablum_id bigint not null,
xiami_id varchar(20),
track_id int,
name varchar(100) not null,
created_at timestamp not null default 0,
updated_at timestamp default 0,
primary key (id)
)
type = innodb
default character set = utf8;
alter table tb_ablum_relations_musician add constraint fk_ablum_relations_musician foreign key (ablum_id)
references tb_ablum (id) on delete restrict on update restrict;
alter table tb_ablum_relations_musician add constraint fk_ablum_relations_musician2 foreign key (musician_id)
references tb_musician (id) on delete restrict on update restrict;
alter table tb_book_tag add constraint fk_book_tag_relations_book foreign key (book_id)
references tb_book (id) on delete restrict on update restrict;
alter table tb_comic_book add constraint fk_comic_book_relations_comic foreign key (comic_id)
references tb_comic (id) on delete restrict on update restrict;
alter table tb_movie_aka add constraint fk_movie_aka_relations_movie foreign key (movie_id)
references tb_movie (id) on delete restrict on update restrict;
alter table tb_movie_credit add constraint fk_movie_credit_relations_celebrity foreign key (celebrity_id)
references tb_celebrity (id) on delete restrict on update restrict;
alter table tb_movie_credit add constraint fk_movie_credit_relations_movie foreign key (movie_id)
references tb_movie (id) on delete restrict on update restrict;
alter table tb_movie_file add constraint fk_movie_file_relations_movie foreign key (movie_id)
references tb_movie (id) on delete restrict on update restrict;
alter table tb_movie_relations_movie_country add constraint fk_movie_relations_movie_count foreign key (movie_id)
references tb_movie (id) on delete restrict on update restrict;
alter table tb_movie_relations_movie_country add constraint fk_movie_relations_movie_coun2 foreign key (country_id)
references tb_movie_country (id) on delete restrict on update restrict;
alter table tb_movie_relations_movie_genre add constraint fk_movie_relations_movie_genre foreign key (movie_id)
references tb_movie (id) on delete restrict on update restrict;
alter table tb_movie_relations_movie_genre add constraint fk_movie_relations_movie_genr2 foreign key (genre_id)
references tb_movie_genre (id) on delete restrict on update restrict;
alter table tb_movie_relations_movie_language add constraint fk_movie_relations_movie_langu foreign key (movie_id)
references tb_movie (id) on delete restrict on update restrict;
alter table tb_movie_relations_movie_language add constraint fk_movie_relations_movie_lang2 foreign key (language_id)
references tb_movie_language (id) on delete restrict on update restrict;
alter table tb_movie_set_item add constraint fk_movie_set_item_relations_movie foreign key (movie_id)
references tb_movie (id) on delete restrict on update restrict;
alter table tb_movie_set_item add constraint fk_movie_set_item_relations_movie_set foreign key (set_id)
references tb_movie_set (id) on delete restrict on update restrict;
alter table tb_song add constraint fk_song_relations_ablum foreign key (ablum_id)
references tb_ablum (id) on delete restrict on update restrict;
<file_sep>package org.cyetstar.clover.service.storage;
public interface CloudStorage extends Storage {
public void setObjectPolicy(String policy);
}
<file_sep>package org.cyetstar.clover.service;
import java.io.Serializable;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
import org.cyetstar.clover.entity.Celebrity;
import org.cyetstar.clover.entity.Movie;
import org.cyetstar.clover.entity.MovieAka;
import org.cyetstar.clover.entity.MovieCredit;
import org.cyetstar.clover.repository.CelebrityDao;
import org.cyetstar.clover.repository.JpaSpecRepository;
import org.cyetstar.clover.repository.MovieAkaDao;
import org.cyetstar.clover.repository.MovieCountryDao;
import org.cyetstar.clover.repository.MovieCreditDao;
import org.cyetstar.clover.repository.MovieDao;
import org.cyetstar.clover.repository.MovieGenreDao;
import org.cyetstar.clover.repository.MovieLanguageDao;
import org.cyetstar.clover.rest.douban.DoubanRequestClient;
import org.cyetstar.core.domain.Clause;
import org.cyetstar.core.spring.DataDomainHelper;
import org.cyetstar.core.spring.SpecificationCreater;
import org.cyetstar.utils.Reflections;
import org.cyetstar.utils.Strings;
import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Sets;
@Service
@Transactional
public class MovieService {
public static final String POSTER_ORIGIN_PATH = "static/poster/origin/";
public static final String POSTER_SMALL_PATH = "static/poster/small/";
public static final String SUFFIX = ".jpg";
public static final Map<String, Integer> POSTER_SMALL_SIZE = ImmutableMap.of("width", 120, "height", 160);
@Autowired
MovieDao movieDao;
@Autowired
MovieAkaDao movieAkaDao;
@Autowired
MovieCountryDao movieCountryDao;
@Autowired
MovieGenreDao movieGenreDao;
@Autowired
MovieLanguageDao movieLanguageDao;
@Autowired
MovieCreditDao movieCreditDao;
@Autowired
CelebrityDao celebrityDao;
@Autowired
DoubanRequestClient doubanRequestClient;
@Transactional(readOnly = true)
public Page<Movie> findMovie(String keyword, int pageNum, int pageSize, String sort) {
Pageable pageable = new PageRequest(pageNum, pageSize, DataDomainHelper.parseSort(sort.split(",")));
if (!StringUtils.isEmpty(keyword)) {
Movie movie = null;
if (Strings.isInteger(keyword)) {
movie = movieDao.findByDoubanId(keyword);
} else if (keyword.startsWith(Movie.IMDB_PREFIX)) {
movie = movieDao.findByImdb(keyword);
} else {
Specification<Movie> spec = SpecificationCreater.searchByWith(Clause.instance().like("title", keyword)
.like("akas.title", keyword).disjunction());
return movieDao.findAll(spec, pageable);
}
return DataDomainHelper.PageWrapper(movie, pageable);
} else {
return movieDao.findAll(pageable);
}
}
@Transactional(readOnly = true)
public Movie findMovie(Specification<Movie> spec) {
return movieDao.findOne(spec);
}
@Transactional(readOnly = true)
public Movie findMovie(Long id) {
return movieDao.findOne(id);
}
public void saveMovie(Movie movie) {
movieDao.save(movie);
}
public void deleteMovie(Long id) {
movieDao.delete(id);
}
public Movie fetchMovie(String doubanId) {
Movie movie = doubanRequestClient.requestMovie(doubanId);
return saveOrUpdateMovie(movie);
}
public Movie updateMoviePoster(Long id, String poster) {
Movie movie = movieDao.findOne(id);
if (!poster.equals(movie.getPoster())) {
// update poster only different
movieDao.updatePoster(poster, DateTime.now(), id);
}
return movie;
}
public Movie updateMovieRating(Long id, String doubanId) {
Movie movie = doubanRequestClient.requestMovie(doubanId);
movieDao.updateRating(movie.getRating(), movie.getNumRaters(), DateTime.now(), id);
return movie;
}
public Celebrity requestCelebrity(String doubanId) {
Celebrity celebrity = doubanRequestClient.requestCelebrity(doubanId);
return mergeCelebrity(celebrity);
}
private Movie saveOrUpdateMovie(Movie movie) {
String doubanId = movie.getDoubanId();
Movie persistentMovie = movieDao.findByDoubanId(doubanId);
if (persistentMovie != null) {
// mergeMovieProperties(movie, persistentMovie);
} else {
movie = persistMovieProperties(movie);
movie.setCreatedAt(DateTime.now());
for (MovieAka aka : movie.getAkas()) {
aka.setMovie(movie);
}
}
return movieDao.save(movie);
}
private Celebrity mergeCelebrity(Celebrity celebrity) {
String doubanId = celebrity.getDoubanId();
Celebrity persistentCelebrity = celebrityDao.findByDoubanId(doubanId);
if (persistentCelebrity != null) {
celebrity.setId(persistentCelebrity.getId());
celebrity.setAvatar(persistentCelebrity.getAvatar());
celebrity.setCreatedAt(persistentCelebrity.getCreatedAt());
celebrity.setUpdatedAt(DateTime.now());
} else {
celebrity.setCreatedAt(DateTime.now());
}
return celebrityDao.save(celebrity);
}
// /////////////////////////
private Movie persistMovieProperties(Movie movie) {
persistSimpleEntityCollection(movie.getCountries(), "value", movieCountryDao);
persistSimpleEntityCollection(movie.getGenres(), "value", movieGenreDao);
persistSimpleEntityCollection(movie.getLanguages(), "value", movieLanguageDao);
persistMovieCreditCollection(movie.getDirectors(), movie, MovieCredit.DIRECTOR);
persistMovieCreditCollection(movie.getCasts(), movie, MovieCredit.CAST);
persistMovieCreditCollection(movie.getWriters(), movie, MovieCredit.WRITER);
return movie;
}
// private void mergeMovieProperties(Movie movie, Movie persistentMovie) {
// // simply property copy from persist
// movie.setId(persistentMovie.getId());
// movie.setImdb(persistentMovie.getImdb());
// movie.setImage(persistentMovie.getImage());
// movie.setCreatedAt(persistentMovie.getCreatedAt());
// movie.setUpdatedAt(DateTime.now());
//
// setDifferenceAka(movie, persistentMovie);
// saveDifferenceCountry(movie, persistentMovie);
// saveDifferenceGenre(movie, persistentMovie);
// saveDifferenceLanguage(movie, persistentMovie);
//
// saveDifferenceDirector(movie, persistentMovie);
// saveDifferenceCast(movie, persistentMovie);
// saveDifferenceWriter(movie, persistentMovie);
// }
private void setDifferenceAka(Movie movie, Movie persistentMovie) {
Set<MovieAka> difference = Sets.difference(movie.getAkas(), persistentMovie.getAkas());
movie.setAkas(persistentMovie.getAkas());
movie.addAllAka(difference);
}
// private void saveDifferenceCountry(Movie movie, Movie persistentMovie) {
// Set<MovieCountry> difference = saveDifferenceDictSet(movie.getCountries(), persistentMovie.getCountries(),
// movieCountryDao);
// movie.setCountries(persistentMovie.getCountries());
// movie.getCountries().addAll(difference);
// }
//
// private void saveDifferenceGenre(Movie movie, Movie persistentMovie) {
// Set<MovieGenre> difference = saveDifferenceDictSet(movie.getGenres(), persistentMovie.getGenres(), movieGenreDao);
// movie.setGenres(persistentMovie.getGenres());
// movie.getGenres().addAll(difference);
// }
//
// private void saveDifferenceLanguage(Movie movie, Movie persistentMovie) {
// Set<MovieLanguage> difference = saveDifferenceDictSet(movie.getLanguages(), persistentMovie.getLanguages(),
// movieLanguageDao);
// movie.setLanguages(persistentMovie.getLanguages());
// movie.getLanguages().addAll(difference);
// }
// private void saveDifferenceDirector(Movie movie, Movie persistentMovie) {
// Set<MovieCredit> directors = movie.getDirectors();
// mergeCreditSet(directors, movie);
// Set<MovieCredit> difference = Sets.difference(directors, persistentMovie.getDirectors());
// movie.setDirectors(persistentMovie.getDirectors());
// movie.getDirectors().addAll(difference);
// }
//
// private void saveDifferenceCast(Movie movie, Movie persistentMovie) {
// Set<MovieCredit> casts = movie.getCasts();
// mergeCreditSet(casts, movie);
// Set<MovieCredit> difference = Sets.difference(casts, persistentMovie.getDirectors());
// movie.setCasts(persistentMovie.getCasts());
// movie.getCasts().addAll(difference);
// }
//
// private void saveDifferenceWriter(Movie movie, Movie persistentMovie) {
// Set<MovieCredit> writers = movie.getWriters();
// mergeCreditSet(writers, movie);
// Set<MovieCredit> difference = Sets.difference(writers, persistentMovie.getDirectors());
// movie.setWriters(persistentMovie.getWriters());
// movie.getWriters().addAll(difference);
// }
private void persistMovieCreditCollection(Collection<MovieCredit> collection, Movie movie, String role) {
if (collection != null) {
for (MovieCredit credit : collection) {
credit.setMovie(movie);
credit.setRole(role);
persistMovieCredit(credit);
}
}
}
/**
* 持久化MovieCredit的Celebrity
*
* @param collection
* @param movie
*/
private void persistMovieCredit(MovieCredit credit) {
try {
String doubanId = credit.getCelebrity().getDoubanId();
Celebrity celebrity = celebrityDao.findByDoubanId(doubanId);
if (celebrity == null) {
celebrity = credit.getCelebrity();
celebrity.setCreatedAt(DateTime.now());
celebrity = celebrityDao.save(celebrity);
}
credit.setCelebrity(celebrity);
} catch (NullPointerException e) {
return;
}
}
// ////////////////
// private <T, ID extends Serializable> Set<T> saveDifferenceDictSet(Set<T> set, Set<T> persistSet,
// JpaSpecRepository<T, ID> repository) {
// Set<T> difference = Sets.difference(set, persistSet);
// difference = mergeDictSet(difference, repository);
// return difference;
// }
/**
* 遍历集合元素,根据persistKey判断是否已经持久化,如果没有则持久化。
*
* @param collection
* @param persistKey
* @param repository
*/
private <T, ID extends Serializable> void persistSimpleEntityCollection(Collection<T> collection, String persistKey,
JpaSpecRepository<T, ID> repository) {
if (collection != null) {
for (T entity : collection) {
persistSimpleEntity(entity, persistKey, repository);
}
}
}
private <T, ID extends Serializable> void persistSimpleEntity(T entity, String persistKey,
JpaSpecRepository<T, ID> repository) {
try {
String value = BeanUtils.getProperty(entity, persistKey);
Validate.notNull(value);
Specification<T> spec = SpecificationCreater.searchBy(Clause.instance().eq(persistKey, value));
T exist = repository.findOne(spec);
if (exist != null) {
BeanUtils.copyProperties(entity, exist);
} else {
entity = repository.save(entity);
}
} catch (Exception e) {
throw Reflections.convertReflectionExceptionToUnchecked(e);
}
}
}
<file_sep>package org.cyetstar.clover.repository;
import java.util.List;
import org.cyetstar.clover.entity.MovieFile;
public interface MovieFileDao extends JpaSpecRepository<MovieFile, Long> {
public List<MovieFile> findByMovieId(Long movieId);
}
<file_sep>package org.cyetstar.clover.entity;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
import org.hibernate.annotations.Type;
import org.joda.time.DateTime;
import com.google.common.collect.Lists;
@Entity
@Table(name = "tb_musician")
public class Musician extends IdEntity {
private String name;
private String nameEn;
private String summary;
private String avatar;
private List<Ablum> ablums = Lists.newArrayList();
private DateTime createdAt;
private DateTime updatedAt;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getNameEn() {
return nameEn;
}
public void setNameEn(String nameEn) {
this.nameEn = nameEn;
}
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
public String getAvatar() {
return avatar;
}
public void setAvatar(String avatar) {
this.avatar = avatar;
}
@ManyToMany
@JoinTable(name = "tb_ablum_relations_musician", joinColumns = { @JoinColumn(name = "musician_id") }, inverseJoinColumns = { @JoinColumn(name = "ablum_id") })
public List<Ablum> getAblums() {
return ablums;
}
public void setAblums(List<Ablum> ablums) {
this.ablums = ablums;
}
@Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
public DateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(DateTime createdAt) {
this.createdAt = createdAt;
}
@Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
public DateTime getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(DateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
<file_sep>package org.cyetstar.clover.repository;
import org.cyetstar.clover.entity.Movie;
import org.junit.Test;
public class BeanCopyTest {
@Test
public void copyProperties() {
Movie m1 = new Movie();
}
}
<file_sep>package org.cyetstar.clover.service;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
@ActiveProfiles("test")
@ContextConfiguration(locations = { "/applicationContext.xml" })
public class MovieServiceTest extends AbstractTransactionalJUnit4SpringContextTests {
@Autowired
MovieService movieService;
@Test
public void requestDouban() {
movieService.requestCelebrity("1054443");
}
}
<file_sep>package org.cyetstar.clover.repository;
import org.cyetstar.clover.entity.MovieSetItem;
public interface MovieSetItemDao extends JpaSpecRepository<MovieSetItem, Long> {
}
| 4fdf8a2f8c96c70febf26278de1e1658617b12f7 | [
"Java",
"SQL",
"INI"
] | 27 | Java | cyetstar/clover | dbc63de7fc260ec11bb775f33ef285cf4ba1ccc0 | 527edaeb2aaea506d6df75373267fd9d0b79a9b0 |
refs/heads/master | <repo_name>kd20958/GridLayout<file_sep>/GridLayout/src/GridLayoutPanelTest.java
public class GridLayoutPanelTest {
public static void main(String[] args) {
new GridLayoutPanel();
}
} | 1f9738b3d89fe4739de46e299733f677e40b483c | [
"Java"
] | 1 | Java | kd20958/GridLayout | cf9f05b6feb0cf9b14710e3107264ddfc20c55f0 | dc8ac072d42f1c774d5bd31317e70a57dd4ef8ba |
refs/heads/master | <repo_name>Rvkstrauss/15-Tile-Game<file_sep>/src/components/game/game.component.ts
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
@Component({
selector: 'game',
templateUrl: './game.component.html',
styleUrls: ['./game.component.css'],
encapsulation: ViewEncapsulation.None
})
export class GameComponent implements OnInit {
direction = '';
numbers = Array.apply(null, {length: 16}).map(Number.call, Number);
optimal = Array.apply(null, {length: 16}).map(Number.call, Number).splice(0, 1).push(0);
grid = [];
adjacents = [];
emptyInArray = 0;
emptyInGrid = {row: 0, col: 0};
prevEmpty = {row: 0, col: 0};
success = false;
rowLength = 4;
ngOnInit() {
this.shuffle(this.numbers);
this.setGrid();
}
shuffle(array) {
let len = array.length;
let temp;
let index;
while (len) {
index = Math.floor(Math.random() * len--);
temp = array[len];
array[len] = array[index];
array[index] = temp;
}
console.log('calc 0 in array', array, array.indexOf(0));
this.emptyInArray = array.indexOf(0);
return array;
}
setGrid(chosen?: number) {
this.grid = [];
this.adjacents = [];
const shuffled = Array.from(this.numbers);
while (shuffled.length > 0) {
this.grid.push(shuffled.splice(0, this.rowLength));
}
this.emptyInGrid = this.getEmptyTile();
// for animation
// if (chosen) {
// this.moveTile(chosen);
// }
this.adjacents = this.getAdjacentTiles( this.emptyInGrid );
}
resetGrid(chosen: number) {
const chosenIndex = this.numbers.indexOf(chosen);
this.numbers[this.emptyInArray] = chosen;
this.numbers[chosenIndex] = 0;
this.emptyInArray = chosenIndex;
this.setGrid(chosen);
this.checkResults();
}
getEmptyTile(): any {
this.prevEmpty = this.emptyInGrid;
const col = this.emptyInArray % 4;
const row = this.emptyInArray >= 4 ? Math.floor(this.emptyInArray / 4) : 0;
return { row, col };
}
moveTile(chosen: number) {
this.direction = '';
if (this.prevEmpty.row !== this.emptyInGrid.row ) {
if (this.prevEmpty.row > this.emptyInGrid.row) {
this.direction = 'down';
} else if ( this.prevEmpty.row < this.emptyInGrid.row) {
this.direction = 'up';
}
} else if (this.prevEmpty.col !== this.emptyInGrid.col) {
if (this.prevEmpty.col > this.emptyInGrid.col) {
this.direction = 'right';
} else if (this.prevEmpty.col < this.emptyInGrid.col) {
this.direction = 'left';
}
}
const tile = document.getElementById(chosen.toString());
tile.classList.add(this.direction);
setTimeout(() => {
tile.classList.value = 'adjacent';
}, 2000);
}
getAdjacentTiles({ row, col }): any[] {
let a = [];
switch (col) {
case 0:
a.push(this.grid[row][col + 1]);
break;
case 3:
a.push(this.grid[row][col - 1]);
break;
default:
a.push(...[this.grid[row][col - 1], this.grid[row][col + 1]]);
break;
}
switch (row) {
case 0:
a.push(this.grid[row + 1][col]);
break;
case 3:
a.push(this.grid[row - 1][col]);
break;
default:
a.push(...[this.grid[row - 1][col], this.grid[row + 1][col]]);
break;
}
this.emptyInGrid = { row, col };
return a;
}
checkResults() {
const results = Array.from(this.numbers);
this.success = JSON.stringify(results) === JSON.stringify(this.optimal);
}
}
| a5f9031213d7ea915ea54ba2e994e00afe4071c3 | [
"TypeScript"
] | 1 | TypeScript | Rvkstrauss/15-Tile-Game | 3443f33aafa62d1b33326acd0a623296b1328a6c | e62b32bcfbf0907ab7ed5be747b9e1e634b55030 |
refs/heads/master | <file_sep>package com.bank.controller;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;
import com.bank.model.Account;
import com.bank.model.User;
import com.bank.service.AccountService;
import com.bank.service.LoginService;
@RestController
public class UserAccountController {
@Autowired
LoginService loginService;
@Autowired
AccountService accountService;
@RequestMapping(value="/openAccountPage")
public ModelAndView openAccountForm(@ModelAttribute("accountform") Account account){
//*************code to generate random account no*******************
long randNum=Math.round(Math.random()*100000);
String str="10101"+randNum;
long num=Long.parseLong(str);
account.setAccountNumber(num);
//**********************************************************************
List<User> userList =loginService.getUsers("USER");
return new ModelAndView("createaccount","usersData",userList);
}
@RequestMapping(value="/openAccount")
public ModelAndView openAccount(@Valid @ModelAttribute("accountform") Account account,BindingResult result){
long randNum=Math.round(Math.random()*100000);
String str="10101"+randNum;
long num=Long.parseLong(str);
account.setAccountNumber(num);
List<User> userList =loginService.getUsers("USER");
if(result.hasErrors()){
return new ModelAndView("createaccount","usersData",userList);
}
accountService.saveAccount(account);
return new ModelAndView("admindashboard");
}
}
<file_sep>package com.bank.model;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.NotEmpty;
@Entity
@Table
public class User {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private int userId;
@NotEmpty
@Size(min = 5, max = 10)
@Column(unique=true,name="username")
private String username;
@NotEmpty
@Size(min = 4, max = 10)
private String password;
private String role;
@OneToMany(cascade=CascadeType.ALL)
@JoinColumn(name="userId")
private List<Account> accounts;
public int getUserId() {
return userId;
}
public void setUserId(int userId) {
this.userId = userId;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
}
| d91e61880d0696986d724235946e25e0411d61e9 | [
"Java"
] | 2 | Java | abhaysingh1711/GitBankingRepo | 437ce58c202dde0d0f2e9734feae8401c6dd884d | b412bf8de4153e7c1d9c778d2c6c22e06d2010e7 |
refs/heads/master | <file_sep>import {
bookTitleTransform,
createCustomerId,
createCusomer,
checkoutBooks,
getAllBooks,
getTitles,
getBookById,
getBookAuthorByIndex,
getBookProp,
getBookTitlesByCategory,
logBookTitles,
logFirstAvailable,
printBook,
purge,
getBookByCategory,
logCategorySearch,
getBookByCategoryPromise,
logSearchResults
} from "./functions";
import { Category } from "./enums";
import { Book, Logger, Author, Librarian, Magazine } from "./interfaces";
import {
PersonBook,
BookRequiredFields,
UpdatedBook,
CreateCustomerFunctionType
} from "./types";
import { RefBook, UniversityLibrarian, Shelf } from "./classes";
import Encyclopedia from "./classes/encyclopedia";
// showHello("greeting", "TypeScript");
// function showHello(divName: string, name: string) {
// const elt = document.getElementById(divName);
// elt.innerText = `Hello from ${name}`;
// }
// logFirstAvailable(getAllBooks());
// const titles = getBookTitlesByCategory(Category.JavaScript);
// logBookTitles(titles);
// const titleAndAutor = getBookAuthorByIndex(2);
// console.log(titleAndAutor);
// // console.log(calcTotalPages());
// titles.forEach((title: string) => console.log(title));
// console.log(getBookById(1));
// const myId: string = createCustomerId("Ann", 10);
// console.log(myId);
// let idGenerator: (name: string, id: number) => string;
// idGenerator = (name: string, id: number) => `${name}${id}`;
// idGenerator = createCustomerId;
// console.log(idGenerator("Boris", 2));
// createCusomer("Ann");
// createCusomer("Ann", 20);
// createCusomer("Ann", 20, "Kyiv");
// const titlesByCategory = getBookTitlesByCategory();
// console.log(titlesByCategory);
// logFirstAvailable();
// const myBooks: Array<string> = checkoutBooks("Ann", 1, 2, 4);
// console.log(myBooks);
// const checkedOutBooks = getTitles(false);
// console.log(checkedOutBooks);
// console.log(bookTitleTransform("10"));
// // console.log(bookTitleTransform(10));
// const myBook: Book = {
// id: 5,
// title: "Colors, Backgrounds, and Gradients",
// author: "<NAME>",
// available: true,
// category: Category.CSS,
// pages: 200,
// markDamaged: (reason: string) => console.log(`Damaged: ${reason}`)
// };
// printBook(myBook);
// myBook.markDamaged(`missing back cover`);
// const f = (damage: string) => console.log(`Damage reporter: ${damage}`);
// const logDamage: Logger = f;
// logDamage(`missing back cover`);
// const favoriteAuthor: Author = {
// name: "Anna",
// email: "<EMAIL>",
// numBooksPublished: 4
// };
// // const favoriteLibrarian: Librarian = {
// // name: "Boris",
// // email: "<EMAIL>",
// // department: "Classics",
// // assistCustomer(name: string) {
// // console.log(`Assist ${name}`);
// // }
// // };
// const offer: any = {
// book: {
// title: "Essential TypeScript"
// }
// };
// console.log(offer?.magazine);
// console.log(getBookProp(getAllBooks()[0], "title"));
// console.log(getBookProp(getAllBooks()[0], "markDamaged"));
// // const ref: ReferenceItem = new ReferenceItem("Our new title", 2020);
// // ref.printItem();
// // ref.publisher = "Random Publisher";
// // console.log(ref.publisher);
// const refBook: RefBook = new RefBook("Title", 2020, 3);
// refBook.printItem();
// refBook.printCitation();
// console.log(refBook);
// const favoriteLibrarian: Librarian = new UniversityLibrarian();
// favoriteLibrarian.name = "Anna";
// favoriteLibrarian.assistCustomer("Boris");
// const personBook: PersonBook = {
// name: "Anna",
// email: "<EMAIL>",
// title: "Introduction to Union Types",
// author: "Unknown",
// available: true,
// category: Category.TypeScript,
// id: 1
// };
// console.log(personBook);
// import("./classes").then(module => {
// const reader = new module.Reader();
// reader.name = "Ann";
// reader.take(getAllBooks()[0]);
// console.log(reader);
// });
// const inventory: Array<Book> = [
// {
// id: 10,
// title: "The C Programming Language",
// author: "K & R",
// available: true,
// category: Category.Software
// },
// {
// id: 11,
// title: "Code Complete",
// author: "<NAME>",
// available: true,
// category: Category.Software
// },
// {
// id: 12,
// title: "8-Bit Graphics with Cobol",
// author: "<NAME>.",
// available: true,
// category: Category.Software
// },
// {
// id: 13,
// title: "Cool autoexec.bat Scripts!",
// author: "<NAME>.",
// available: true,
// category: Category.Software
// }
// ];
// console.log(purge<Book>(inventory));
// console.log(
// purge<number>([1, 2, 3, 4, 5])
// );
// const bookShelf = new Shelf<Book>();
// inventory.forEach(book => bookShelf.add(book));
// const book = bookShelf.getFirst();
// console.log(book);
// const magazines: Array<Magazine> = [
// { title: "Programming Language Monthly", publisher: "Code Mags" },
// { title: "Literary Fiction Quarterly", publisher: "College Press" },
// { title: "Five Points", publisher: "GSU" }
// ];
// const magazineShelf: Shelf<Magazine> = new Shelf<Magazine>();
// magazineShelf.add(...magazines);
// const mag = magazineShelf.getFirst();
// console.log(mag);
// magazineShelf.printTitles();
// const findedRes = magazineShelf.find("Five Points");
// console.log(findedRes);
// const bookRequred: BookRequiredFields = {
// id: 1,
// title: "Book Title",
// author: "Anna",
// available: false,
// category: Category.Angular,
// pages: 250,
// markDamaged: null
// };
// const updatedBook: UpdatedBook = {
// id: 1,
// title: "Book Title"
// };
// const params: Parameters<CreateCustomerFunctionType> = ["Anna"];
// createCusomer(...params);
// const obj = new UniversityLibrarian();
// const fLibrarian = new UniversityLibrarian();
// fLibrarian.name = "Anna";
// (fLibrarian as any).printLibrarian();
// fLibrarian["printLibrarian"]();
// fLibrarian.assistFaculty = null;
// // fLibrarian.teachCommunity = null;
// const encyclopedia = new Encyclopedia("The Best Encyclopedia", 2020, 1);
// encyclopedia.printItem();
// const fLibrarianT = new UniversityLibrarian();
// fLibrarianT.name = "Anna";
// fLibrarianT.assistCustomer("Boris");
// const fLibrarianY = new UniversityLibrarian();
// fLibrarianY.name = "Anna";
// console.log(fLibrarianY.name);
// const encyclopedia2 = new Encyclopedia("The Best Encyclopedia", 2020, 1);
// encyclopedia2.copies = 10;
// console.log(encyclopedia2);
// console.log("Begin");
// getBookByCategory(Category.JavaScript, logCategorySearch);
// console.log("End");
// console.log("Begin");
// getBookByCategoryPromise(Category.JavaScript)
// .then(titles => {
// console.log(titles);
// return titles.length;
// })
// .then(num => console.log(num))
// .catch(err => console.log(err));
// console.log("End");
console.log("Begin");
logSearchResults(Category.JavaScript).catch(err => console.log(err));
console.log("End");
<file_sep>import { Book, LibMgrCallback } from "./interfaces";
import { Category } from "./enums";
import { BookOrUndefined, BookProperties } from "./types";
export function getAllBooks(): ReadonlyArray<Book> {
const books: ReadonlyArray<Book> = <const>[
{
id: 1,
title: "Refactoring JavaScript",
author: "<NAME>",
available: true,
category: Category.JavaScript
},
{
id: 2,
title: "JavaScript Testing",
author: "<NAME>",
available: false,
category: Category.JavaScript
},
{
id: 3,
title: "CSS Secrets",
author: "<NAME>",
available: true,
category: Category.CSS
},
{
id: 4,
title: "Mastering JavaScript Object-Oriented Programming",
author: "<NAME>",
available: true,
category: Category.JavaScript
}
];
return books;
}
export function getBookAuthorByIndex(index: number): [string, string] {
const books = getAllBooks();
const { title, author } = books[index];
return [title, author];
}
export function logFirstAvailable(
books: ReadonlyArray<any> = getAllBooks()
): void {
const numOfBooks: number = books.length;
let title: string = "";
for (const book of books) {
if (book.available) {
title = book.title;
break;
}
}
console.log(`Total number of books: ${numOfBooks}`);
console.log(`First avaible book: ${title}`);
}
export function getBookById(id: number): BookOrUndefined {
const books = getAllBooks();
return books.find(book => book.id === id);
}
export function getBookProp(book: Book, prop: BookProperties): any {
if (typeof book[prop] === "function") {
return (book[prop] as Function).name;
}
return book[prop];
}
export function getBookTitlesByCategory(
category: Category = Category.JavaScript
): Array<string> {
console.log(`Getting books in category ${Category[category]}`);
const books = getAllBooks();
const titles: Array<string> = [];
for (const book of books) {
if (book.category === category) {
titles.push(book.title);
}
}
return titles;
}
export function logBookTitles(titles: Array<string>): void {
for (const title of titles) {
console.log(title);
}
}
export function createCustomerId(name: string, id: number): string {
return `${name}${id}`;
}
export function createCusomer(name: string, age?: number, city?: string): void {
console.log(`Customer name: ${name}`);
if (age) {
console.log(`Customer age: ${age}`);
}
if (city) {
console.log(`Customer city: ${city}`);
}
}
export function checkoutBooks(
customer: string,
...booksIds: Array<number>
): Array<string> {
console.log(`Customer name: ${customer}`);
const titles: Array<string> = [];
for (const id of booksIds) {
const book = getBookById(id);
if (book && book.available) {
titles.push(book.title);
}
}
return titles;
}
export function getTitles(author: string): Array<string>;
export function getTitles(avaible: boolean): Array<string>;
export function getTitles(id: number, available: boolean): Array<string>;
export function getTitles(
...args: [string | boolean | number, boolean?]
): Array<string> {
const books = getAllBooks();
if (!args.length) {
return [];
} else if (args.length === 1) {
const arg = args[0];
if (typeof arg === "string") {
return books
.filter(book => book.author === arg)
.map(book => book.title);
} else if (typeof arg === "boolean") {
return books
.filter(book => book.available === arg)
.map(book => book.title);
}
} else if (args.length === 2) {
const [id, available] = args;
if (typeof id === "number" && typeof available === "boolean") {
return books
.filter(book => book.id === id && book.available === available)
.map(book => book.title);
}
}
}
export function assertStringValue(value: any): asserts value is string {
if (typeof value !== "string") {
throw new Error("value should have been string");
}
}
export function bookTitleTransform(title: any) {
assertStringValue(title);
return [...title].reverse().join("");
}
export function printBook(book: Book): void {
console.log(`${book.title} by ${book.author}`);
}
// function calcTotalPages(): bigint {
// const data = <const>[
// { lib: "libName1", books: 1_000_000_000, avgPagesPerBook: 250 },
// { lib: "libName2", books: 5_000_000_000, avgPagesPerBook: 300 },
// { lib: "libName3", books: 3_000_000_000, avgPagesPerBook: 280 }
// ];
// const result = data.reduce((acc: bigint, item: any) => {
// return acc + BigInt(item.books) * BigInt(item.avgPagesPerBook);
// }, 0n);
// return result;
// }
export function purge<T>(inventory: Array<T>): Array<T> {
return inventory.slice(2);
}
export function getBookByCategory(
category: Category,
callback: LibMgrCallback
): void {
setTimeout(() => {
try {
const titles: Array<string> = getBookTitlesByCategory(category);
if (titles.length > 0) {
callback(null, titles);
} else {
throw new Error("No books found");
}
} catch (error) {
callback(error, null);
}
}, 2000);
}
export const logCategorySearch = function(
err: Error,
titles: Array<string>
): void {
if (err) {
console.log(err.message);
} else {
console.log(titles);
}
};
export function getBookByCategoryPromise(
category: Category
): Promise<Array<string>> {
const p: Promise<Array<string>> = new Promise<Array<string>>((res, rej) => {
setTimeout(() => {
const titles: Array<string> = getBookTitlesByCategory(category);
if (titles.length > 0) {
res(titles);
} else {
rej("No books found");
}
}, 2000);
});
return p;
}
export async function logSearchResults(category: Category): Promise<any> {
const titles = await getBookByCategoryPromise(category);
console.log(titles);
}
| 168c209d0d29c4924f87d9d6621e1ed76c135183 | [
"TypeScript"
] | 2 | TypeScript | siarohin/TS-In-Depth | 23f2fdf0c291c63b645d58ba9380b50e5d90792b | 589906c701bed30ad76a0ce1a912f2c0dfc371b8 |
refs/heads/master | <file_sep>#! /usr/bin/env python
# Load a profile histo
import yoda
aos = yoda.read("./yoda/ZHvvbb.yoda")
do_h1=0
do_h2=0
do_p1=1
if do_h1:
h = aos["/RivetHbbBJets/h1_PTnm_0"]
assert type(h) is yoda.Histo1D
bins=h.bins
print bins
if do_h2:
h = aos["/RivetHbbBJets/h2_PTmt_PTnm_0"]
assert type(h) is yoda.Histo2D
bins=h.bins
print bins
if do_p1:
h = aos["/RivetHbbBJets/p1_PTmt_PTnm_0"]
assert type(h) is yoda.Profile1D
bins=h.bins
print bins
#aos = yoda.read("./yoda/ZHvvbb2.yoda")
#p = aos["/RivetHbbBJets/p1_PTm_PTnm"]
#assert type(p) is yoda.Profile1D
exit()
#aos = yoda.read("./yoda/ZHvvbb.yoda")
#h = aos["/RivetHbbBJets/h1_PTa"]
#assert type(h) is yoda.Histo1D
h = aos["/RivetHbbBJets/h2_PTmt_PTnm_0"]
assert type(h) is yoda.Histo2D
print h.integral()
print h.numEntries()
print h.sumW()
print h.xMean
<file_sep>#!/usr/bin/env python3
import math
######################################################################
#### Functions for manipulating binnings
######################################################################
# get a string to be used to rebin a histogram
# 0.0, 5.0, 0.1 - from 0.0 to 5.0 with a step of 0.1
def get_binRange(initial,end,step,debug=False):
if debug:
print("Start get_binRange: initial",initial,"end",end,"step",step)
result=str(initial)
i=initial
epsilon=0.0001
while i+step<=end+epsilon:
i+=step
if abs(i)<0.0001:
i=0
result+=","+str(i)
if debug:
print("binRange("+str(initial)+","+str(end)+","+str(step)+")="+result)
return result
# done function
def remove_duplicates_from_generic_binRange(binRange="150,200,400",debug=False):
# evaluate the desired binning
# when making the bin range from a sum of several other bin ranges
# one ends and the other starts with the same value
# in that case, skip one of them, as it gives incorrectly a bin of zero range
if debug:
print("input binRange",binRange)
binRangeOutput=""
previousEdge=""
list_repeatedEdge=[]
for i,currentEdge in enumerate(binRange.split(",")):
if False:
print("previousEdge",previousEdge,"currentEdge",currentEdge)
if currentEdge!=previousEdge:
if i!=0:
binRangeOutput+=","
binRangeOutput+=currentEdge
# done if
previousEdge=currentEdge
# done for loop over bin edges
if debug:
print("output binRange",binRangeOutput)
return binRangeOutput
# done
# if based on the sample name and the index of the event (even or odd) we should skip the event, then continue
# for the train sample we use events of index 0, 2, 4, etc (even)
# for the test sample we use events of index 1, 3, 5, etc (odd)
# for the all sample we use all events
def keepEntry(sample,i,debug):
if debug:
print("i",i,"sample",sample)
result=False
if sample=="train":
# keep only even-number entries (events or jets), as they were used in the training of the NN
if i%2==0:
result=True
elif sample=="test":
# keep only odd-number entries (events or jets), as they were used in the testinging of the NN
if i%2==1:
result=True
elif sample=="all":
# keep all the entries (events or jets)
result=True
else:
print("sample",sample,"not known, will abort. Need to choose between train, test and all")
assert(False)
# done if on sample
return result
# done function
# start functions used for Adrian in runAdi.py to create
# and plot histograms from the flat tree
# ex: list_values ['20', '30', '40']
# ex: returns [(-inf, 20.0), (20.0, 30.0), (30.0, 40.0), (40.0, inf)]
def get_list_intervals(string_values="",addUnderflow=False,addOverflow=False,addInclusive=False,debug=False):
if debug:
print("string_values",string_values)
result=[]
if string_values=="":
result.append((float("-inf"),float("inf")))
else:
list_values=string_values.split(",")
if debug:
print("list_values",list_values)
if addUnderflow:
# add underflow (from minus infinity to the first element)
result.append((float("-inf"),float(list_values[0])))
# add all regular values
for i in range(len(list_values)-1):
result.append((float(list_values[i]),float(list_values[i+1])))
if addOverflow:
# add overflow (from the last element to infinity)
result.append((float(list_values[-1]),float("inf")))
# end if
if addInclusive:
# add the bin representing all possible values
# the superset of the sets above
# for inclusive studies
result.append((float("-inf"),float("inf")))
# check result
if debug:
print("get_list_intervals",result)
# return result
return result
# done function
# list_bin: [(-inf, 20.0), (20.0, 30.0), (30.0, 40.0), (40.0, inf)]
# value_bin: 40.0840078125
# The value_bin 40.0840078125 is in the interval (40.0, inf)
def find_bin_in_list(list_bin,value_bin,debug):
for bin in list_bin:
if bin[0]<=value_bin<bin[-1]:
if debug:
print("The value_bin",value_bin,"is in the interval",bin)
return bin
# done function
def get_array_values(string_values,debug):
if debug:
print("string_values",string_values)
result=[]
list_values=string_values.split(",")
if debug:
print("list_values",list_values)
for i in range(len(list_values)):
result.append((float(list_values[i])))
# check result
if debug:
print("array_values",result)
# return result
return result
# done function
# (0.0,90,0) -> "0_90"
# (-inf, 90) -> "inf_90"
# we want to not have dots and - in the name of a histogram
# so that we can do in TBrowswer histo_name->Draw(), etc
def get_bin_string(bin,factor,debug):
if debug:
print("bin",bin)
result=""
for i,value in enumerate(bin):
if value==float("-inf") or value==float("inf"):
value_string="inf"
else:
value_string="%-.0f" % (value*factor)
if debug:
print("i",i,"value_string",value_string)
if i!=0:
result+="_"
result+=value_string
# done for loop over the two elements in the bin
if debug:
print("bin_string",result)
return result
# done function
def get_listBinSelected(listBin,binValue,debug):
result=[]
for bin in listBin:
if bin[0]<=binValue<bin[-1]:
if debug:
print("The binValue",binValue,"is in the interval",bin)
result.append(bin)
# done for loop
return result
# done function
# get all the bins that are included fully in that interval
# so can remain a subset of the bins not covered if the interval
# does not match perfectly
def get_listBinMerged(listBin,binMerged,debug):
result=[]
for bin in listBin:
if bin[0]>=binMerged[0] and bin[1]<=binMerged[1]:
if debug:
print("The bin",bin,"is in the desired merged bin",binMerged)
result.append(bin)
# done for loop
return result
# done function
def get_listStringBin(binVariable,factor,listBin,debug):
result=[]
for bin in listBin:
if debug:
print("bin",bin)
currentString=binVariable
if factor!=1:
currentString+="x%-.0f" % factor
currentString+="_"+get_bin_string(bin,factor,debug)
result.append(currentString)
# done for loop
return result
# done function
def get_listString_from_dict_binVariable_listBin(list_binVariable,dict_binVariable_listBin,dict_binVariable_factor,debug):
result=[]
for i,binVariable in enumerate(list_binVariable):
if debug:
print("binVariable",binVariable)
factor=dict_binVariable_factor[binVariable]
if debug:
print("factor",factor)
listBin=dict_binVariable_listBin[binVariable]
if debug:
print("listBin",listBin)
listStringCurrent=get_listStringBin(binVariable,factor,listBin,debug)
if debug:
print("listStringCurrent",listStringCurrent)
if i==0:
result=listStringCurrent
else:
result=concatenate_two_listString(result,listStringCurrent,debug)
if debug:
print("aftr step",i,"result is",result)
# done loop over binVariable
return result
# done function
def concatenate_two_dict_binVariable_listBin(dict1,dict2,debug):
result=[]
for binVariable1 in dict1:
for binVariable2 in dict2:
result.append(binVariable1+"_"+binVariable2)
return result
# done function
def split_listBin(list_binVariable,dict_binVariable_listBin,debug):
result=[]
return result
# done function
def get_list_dict_binVariable_bin(list_binVariable,dict_binVariable_listBin,debug):
result=[]
print("")
for binVariable in list_binVariable:
if debug:
print("binVariable",binVariable)
dict_binVariable_bin={}
listBin=dict_binVariable_listBin[binVariable]
if debug:
print("listBin",listBin)
dict_binVariable_bin[binVariable]=bin
#
if debug:
print("dict_binVariable_bin",dict_binVariable_bin)
return result
# done function
def get_list_list_dict_binVariable_bin(binVariable,dict_binVariable_listBin,debug):
print("")
result=[]
for bin in dict_binVariable_listBin[binVariable]:
result.append([{binVariable:bin}])
# done for loop
return result
# done function
def get_list_dict_binVariable_bin(binVariable,dict_binVariable_listBin,debug):
print("")
result=[]
for bin in dict_binVariable_listBin[binVariable]:
result.append({binVariable:bin})
# done for loop
return result
# done function
def concatenate_two_list_dict_binVariable_bin(list1,list2,debug):
if debug:
print("list1",list1)
print("list2",list2)
if len(list1)==0:
return list2
result=[]
for i1 in list1:
if debug:
print("i1",i1)
for i2 in list2:
if debug:
print("i2",i2)
temp1=copy.deepcopy(i1)
print(temp1.update(i2))
result.append(temp1)
# lone loop over list2
# done loop over list1
return result
# done function
def concatenate_all_list_dict_binVariable_bin(listAll,debug):
result=[]
for myNewList in listAll:
result=concatenate_two_list_dict_binVariable_bin(result,myNewList,debug)
return result
# done function
def get_string_from_dict_binVariable_bin(list_binVariable,dict_binVariable_bin,dict_binVariable_factor,debug):
result=""
for i,binVariable in enumerate(list_binVariable):
bin=dict_binVariable_bin[binVariable]
factor=dict_binVariable_factor[binVariable]
if i!=0:
result+="_"
result+=binVariable
if factor!=1:
result+="x%-.0f" % factor
result+="_"+get_bin_string(bin,factor,debug)
return result
# done function
######################################################################
#### Functions for manipulating numbers as in statistics
######################################################################
# start functions
def percentageDifference(x,y,debug=False):
if debug:
print("x",x,"y",y)
if -0.0001<y<0.0001:
result=0.0
else:
result=100*(x-y)/y
return result
# done function
def combinations(iterable, r):
# combinations('ABCD', 2) --> AB AC AD BC BD CD
# combinations(range(4), 3) --> 012 013 023 123
pool = tuple(iterable)
n = len(pool)
if r > n:
return
indices = range(r)
yield tuple(pool[i] for i in indices)
while True:
for i in reversed(range(r)):
if indices[i] != i + n - r:
break
else:
return
indices[i] += 1
for j in range(i+1, r):
indices[j] = indices[j-1] + 1
yield tuple(pool[i] for i in indices)
# done function
# http://changingminds.org/explanations/research/statistics/standard_error.htm
# https://simple.wikipedia.org/wiki/Standard_deviation#With_sample_standard_deviation
# https://simple.wikipedia.org/wiki/Standard_error
def process_sample(list_value,debug=False):
if debug:
print("list_value",list_value)
N=len(list_value)
Sum=0.0
for value in list_value:
Sum+=value
# done for loop
Mean=ratio(Sum,N)
# standard deviation (https://simple.wikipedia.org/wiki/Standard_deviation#With_sample_standard_deviation)
# https://en.wikipedia.org/wiki/Standard_deviation#Sample_standard_deviation_of_metabolic_rate_of_Northern_Fulmars
StdDev=0.0
for value in list_value:
StdDev+=(value-Mean)*(value-Mean)
# done for loop
StdDev=ratio(StdDev,N-1)
StdDev=math.sqrt(StdDev)
# standard error
StdErr=ratio(StdDev,math.sqrt(N))
if debug:
print("N=%.0f Mean=%.2f StdDev=%.2f StdErr=%.2f" % (N,Mean,StdDev,StdErr))
return N,Mean,StdDev,StdErr
# done function
def tuple_times_scalar(myTuple,myScalar,debug=False):
myTupleResult=(myTuple[0]*myScalar,myTuple[1]*myScalar)
if debug:
print("myTuple",myTuple,"myScalar",myScalar,"myTupleResult",myTupleResult)
return myTupleResult
# done function
# ratio, or s/b
def ratio(s,b,debug=False):
if debug:
print("ratio","s",s,"b",b)
if -0.00001<b<0.00001:
if True:
print("WARNING! -0.0001<b<0.0001, returning result 0! s=",str(s)," b=",str(b))
result=0
else:
result=s/b
return result
# done function
# http://ipl.physics.harvard.edu/wp-uploads/2013/03/PS3_Error_Propagation_sp13.pdf
# https://en.wikipedia.org/wiki/Propagation_of_uncertainty
# ratio or s/b
def ratioError(s,se,b,be,debug=False):
if debug:
print("ratioError","s",s,"se",se,"b",b,"be",be)
if b==0:
if True:
print("WARNING! -0.0001<b<0.0001, returning result 0 and error 0! s=",str(s)," b=",str(b))
result=0.0
error=0.0
else:
result=s/b
#error1=result*math.sqrt(math.pow(se/s,2)+math.pow(be/b,2))
dfds=1.0/b
dfdb=-1.0*s/(b*b)
error=math.sqrt(math.pow(dfds,2)*math.pow(se,2)+math.pow(dfdb,2)*math.pow(be,2))
return (result,error)
# done function
# ratio of tuple, each tuple nominal and error
def ratioTuple(tupleNumer,tupleDenom,debug=False):
return ratioError(tupleNumer[0],tupleNumer[1],tupleDenom[0],tupleDenom[1],debug=debug)
# done function
# sensitivity, or s over sqrt(b)
# slide 37 of https://www.pp.rhul.ac.uk/~cowan/stat/aachen/cowan_aachen14_4.pdf
def sensitivity(s,se,b,be,debug=False):
if debug:
print("sensitivity ","s",s,"se",se,"b",b,"be",be)
if b<0.0001:
if True:
print("WARNING! b<0.0001, returning result 0 and error 0! s=",str(s)," b=",str(b))
result=0
error=0
else:
result=s/math.sqrt(b)
#error=result*math.sqrt( math.pow(se/s,2)+math.pow(-0.5*be/b,2) )
dfds=1.0/math.sqrt(b)
if debug:
print("dfds",dfds)
dfdb=-s/(2.0*math.pow(b,3.0/2.0))
if debug:
print("dfdb",dfdb)
error=math.sqrt(math.pow(dfds,2)*math.pow(se,2)+math.pow(dfdb,2)*math.pow(be,2))
if debug:
print("sensitivity ","content +/-error","%-.5f +/- %-.5f" % (result,error))
return (result,error)
# done function
# significance, or DLLR, the longer formula which becomes s/sqrt(b) in the limit when s/b -> 0
# slides 37 and 38 of https://www.pp.rhul.ac.uk/~cowan/stat/aachen/cowan_aachen14_4.pdf
def significance(s,se,b,be,debug=False):
if debug:
print("significance","s",s,"se",se,"b",b,"be",be)
if b<0.001:
result=0
error=0
if True:
print("WARNING! b<0.001, returning result 0 and error 0! s=",str(s)," b=",str(b))
else:
# for very low numbers, the sensitivity is a very good approximation
# of the significance, but the code runs out of digits and approximates
# the log(1+s/b) with zero, which makes it have negative values
# under the square root and then it crashes
if s/b<0.000001:
if True:
print("WARNING! s/b<0.000001, returning sensitivity s=",str(s)," b=",str(b),"s/b",str(s/b))
(result,error)=sensitivity(s,se,b,be,debug) # sensitivity
else:
# slide 39 of https://www.pp.rhul.ac.uk/~cowan/stat/aachen/cowan_aachen14_4.pdf
# for s<<b, it reduced to s/sqrt(b)
result=math.sqrt(2.0*((s+b)*math.log(1.0+1.0*s/b)-s))
# error formula works only if dfds<<se and dfdb<<sb, otherwise get very large value
# so return an error of zero
error=0.0
#dfds=math.log(1.0+1.0*s/b)*math.pow((s+b)*math.log(1.0+1.0*s/b)-s,3.0/2.0)
#if debug:
# print("dfds",dfds)
#dfdb=(1.0*s/b+math.log(1.0+1.0*s/b))*math.pow((s+b)*math.log(1.0+1.0*s/b)-s,3.0/2.0)
#if debug:
# print("dfdb",dfdb)
#error=math.sqrt(math.pow(dfds,2)*math.pow(se,2)+math.pow(dfdb,2)*math.pow(be,2))
if debug:
print("significance","content +/-error","%-.5f +/- %-.5f" % (result,error))
return (result,error)
# done function
# when there is an uncertainty on the background
# sensitivity, or s over sqrt(b+be*be)
# if s<<b, but be*be is not << b
# slide 41 of https://www.pp.rhul.ac.uk/~cowan/stat/aachen/cowan_aachen14_4.pdf
# can be rewritten as slide 4 of Nicolas' https://indico.cern.ch/event/688766/contributions/2830787/attachments/1578214/2492928/ApproximateSignificance.pdf
def sensitivitySigmaB(s,se,b,be,debug=False):
if debug:
print("sensitivitySigmaB ","s",s,"se",se,"b",b,"be",be)
if b<0.0001:
if True:
print("WARNING! b<0.0001, returning result 0 and error 0! s=",str(s)," b=",str(b))
result=0
error=0
else:
result=s/math.sqrt(b+be*be)
# trial and error has shown that the signal error on the ratio is the same percentage than the signal error
# the two formulas below are equivalent
#error=ratio(se,math.sqrt(b+be*be),debug=False)
error=result*ratio(se,s,debug=False)
if debug:
print("sensitivity ","content +/-error","%-.5f +/- %-.5f" % (result,error))
return (result,error)
# done function
# the most generic formula as a figure of merit
# if s/b << 1 it becomes SensitivitySigmaB
# if be*be<<b it becomes Significance
# if be*be<<b, SensitivitySigmaB becomes Sensitivity
# if s/b <<1, Significance becomes Sensitivity
# significance the longer formula which becomes s/sqrt(b+be*be) in the limit when s/b -> 0 and when be*be/b -> 0
# slide 45 of https://www.pp.rhul.ac.uk/~cowan/stat/aachen/cowan_aachen14_4.pdf
# is this the same as slide 5 and 6 of Nicolas' https://indico.cern.ch/event/688766/contributions/2830787/attachments/1578214/2492928/ApproximateSignificance.pdf
# in Nicolas's slides: delta is relative uncertainty, so be/b. A 10% error gives delta of 0.10.
# theta0 is the nuisance parameter that maximizes L for mu=0, it has formula on slide 5
# Nicolas uses Gaussian prior, Cowan uses Poisson, so probably the results are very similar
def significanceSigmaB(s,se,b,be,debug=False):
if debug:
print("significanceSigmaB","s",s,"se",se,"b",b,"be",be)
if b<0.0000001:
result=0
error=0
if True:
print("WARNING! b<0.001, returning result 0 and error 0! s=",str(s)," b=",str(b))
else:
if debug:
print("significanceSigmaB","s",s,"se",se,"b",b,"be",be,"s/b",s/b,"be*be/b",be*be/b)
# for very low numbers, the sensitivity is a very good approximation
# of the significance, but the code runs out of digits and approximates
# the log(1+s/b) with zero, which makes it have negative values
# under the square root and then it crashes
if s/b<0.0000001:
if True:
print("WARNING! s/b<0.000001, returning sensitivitySigmaB s=",str(s)," b=",str(b),"s/b",str(s/b))
(result,error)=sensitivitySigmaB(s,se,b,be,debug) # sensitivity
else:
# slide 45 of https://www.pp.rhul.ac.uk/~cowan/stat/aachen/cowan_aachen14_4.pdf
# for s<<b and be*be<<b, it reduced to s/sqrt(b+be*be)
#result2=math.sqrt(2.0*((s+b)*math.log(((s+b)*(b+be*be))/(b*b+(s+b)*(be*be)))-((b*b)/(be*be))*math.log(1.0+(be*be*s)/(b*(b+be*be)))))
#if debug:
# print("result2",result2)
# result 2 has the same shape as below, where the terms are separate
x=s/b
y=be*be/b
if debug:
print("x",x,"y",y)
alpha=(1.0+x)*math.log((1.0+x)*(1.0+y)/(1.0+(1.0+x)*y))
if debug:
print("alpha",alpha)
beta=(1.0/y)*math.log(1.0+x*y/(1.0+y))
if debug:
print("beta",beta)
result=math.sqrt(2.0*b*(alpha-beta))
if debug:
print("result",result)
# trial and error has shown that the signal error on the ratio is the same percentage than the signal error
error=result*ratio(se,s)
if debug:
print("significance","content +/-error","%-.5f +/- %-.5f" % (result,error))
return (result,error)
# done function
def get_figure_of_merit(s,se,b,be,figureOfMerit="SignificanceSigmaB",debug=False):
result=0.0
if figureOfMerit=="SignalOverBackground":
result=ratioError(s,se,b,be,debug)
elif figureOfMerit=="Sensitivity":
result=sensitivity(s,se,b,be,debug=debug)
elif figureOfMerit=="Significance":
result=significance(s,se,b,be,debug=debug)
elif figureOfMerit=="SensitivitySigmaB":
result=sensitivitySigmaB(s,se,b,be,debug=debug)
elif figureOfMerit=="SignificanceSigmaB":
result=significanceSigmaB(s,se,b,be,debug=debug)
else:
print("figureOfMerit",figureOfMerit,"not know in get_figure_of_merit(). Will ABORT!!!")
assert(False)
if debug:
print("figureOfMerit",figureOfMerit)
return result
# done function
# max(a,b) is already defined by Python
# ex (1.0,0.1,2.0,0.2)
def max_error(a,sa,b,sb):
result=(a,sa)
if b>result[0]:
result=(b,sb)
return result
# done function
# 1.0, 2.0, 3.0
def max_list(list_value):
result=list_value[0]
for value in list_value:
if value>result:
result=value
return result
# done function
# ex [(1.0,0.1),(2.0,0.2),(3.0,0.3)]
def max_error_list(list_tuple):
result=list_tuple[0]
for tuple in list_tuple:
if tuple[0]>result[0]:
result=tuple
return result
# done function
# abs(a) is already defined by Python
def abs_error(a,sa):
return (abs(a),sa)
# done function
def sum(a,b):
return a+b
# done function
def sum_error(a,sa,b,sb):
result=a+b
error=math.sqrt(sa*sa+sb*sb)
return (result,error)
# done function
def sum_error_three(a,b,c):
return a+b+c
# done function
def sum_error_three(a,sa,b,sb,c,sc):
result=a+b+c
error=math.sqrt(sa*sa+sb*sb+sc*sc)
return (result,error)
# done function
def sum_list(list_value):
result=0.0
for value in list_value:
result+=value
return result
# done function
def sum_error_list(list_tuple,debug=False):
sum=0.0
sumErrorSquared=0.0
for tuple in list_tuple:
value=tuple[0]
error=tuple[1]
sum+=value
sumErrorSquared+=error*error # for sum errors are added in quadrature (like at histo bins)
# done loop over entries
sumError=math.sqrt(sumErrorSquared)
result=(sum,sumError)
if debug:
print("result",result,"input",list_tuple)
return result
# done function
def average(a,b):
return 0.5*(a+b)
# done function
def average_error(a,sa,b,sb):
result=0.5*(a+b)
error=0.5*math.sqrt(sa*sa+sb*sb)
return (result,error)
# done function
def average_error_three(a,b,c):
return (1.0/3)*(a+b+c)
# done function
def average_error_three(a,sa,b,sb,c,sc):
result=(1.0/3)*(a+b+c)
error=(1.0/3)*math.sqrt(sa*sa+sb*sb+sc*sc)
return (result,error)
# done function
def average_list(list_value):
result=0.0
for value in list_value:
result+=value
result/=len(list_value)
return result
# done function
def average_error_list(list_tuple,debug=False):
sum=0.0
sumErrorSquared=0.0
for tuple in list_tuple:
value=tuple[0]
error=tuple[1]
sum+=value
sumErrorSquared+=error*error # for sum errors are added in quadrature (like at histo bins)
# done loop over entries
N=len(list_tuple)
average=sum/N
averageError=math.sqrt(sumErrorSquared)/N
result=(average,averageError)
if debug:
print("average",result,"input",list_tuple)
return result
# done function
def variance_list(list_value,average):
result=0.0
for value in list_value:
diff=value-average
result+=diff*diff
result/=len(list_value)
return result
# done function
# add in quadrature, taking the error from error propagation formula
# https://en.wikipedia.org/wiki/Propagation_of_uncertainty
def add_in_quadrature(a,b):
return math.sqrt(a*a+b*b)
# done function
def add_in_quadrature_error(a,sa,b,sb):
result=math.sqrt(a*a+b*b)
if result==0:
error=0.0
else:
# from error propagation formula
# in other writing: (f*sf)^2=(a*sa)^2+(b*sb)^2
error=math.sqrt(a*a*sa*sa+b*b*sb*sb)/result
return result,error
# done function
def add_in_quadrature_three(a,b,c):
return math.sqrt(a*a+b*b+c*c)
# done function
def add_in_quadrature_error_three(a,sa,b,sb,c,sc):
result=math.sqrt(a*a+b*b+c*c)
if result==0:
error=0.0
else:
# from error propagation formula
# in other writing: (f*sf)^2=(a*sa)^2+(b*sb)^2+(c*sc)^2
error=math.sqrt(a*a*sa*sa+b*b*sb*sb+c*c*sc*sc)/result
return result,error
# done function
def add_in_quadrature_list(list_value,debug=False):
result=0.0
for value in list_value:
result+=value*value
# done loop over entries
result=math.sqrt(result)
if debug:
print("add_in_quadrature",result,"from input",list_value)
return result
# done function
def add_in_quadrature_error_list(list_tuple,debug=False):
result=0.0
resultError=0.0
for tuple in list_tuple:
value=tuple[0]
valueError=tuple[1]
result+=value*value
resultError+=(value*valueError)*(value*valueError)
# done loop over entries
result=math.sqrt(result)
if result==0:
resultError=0.0
else:
resultError=math.sqrt(resultError)/result
if debug:
print("add_in_quadrature",(result,resultError),"from input",list_tuple)
return (result,resultError)
# done function
def print_figures_of_merit(s,b):
print("s",s,"b",b,"sensitivity",sensitivity(s,b),"significance",significance(s,b))
# done function
# very much used in statistics and measurement in science
# average two or more measurements given their uncertainty
# https://physics.stackexchange.com/questions/15197/how-do-you-find-the-uncertainty-of-a-weighted-average
# http://ipl.physics.harvard.edu/wp-uploads/2013/03/PS3_Error_Propagation_sp13.pdf
# for example for two measurements
# x1+/-e1; x2+/-e2
# w1=1.0/(e1*e1); w2=1.0/(e2*e2)
# mu=x1w1+x2w2/(w1+w2)
# e=1.0/sqrt(w1+w2)
# if at least one weight is zero, return normal average
def get_average_weighted_by_uncertainties(list_tuple,debug=False):
if debug:
print("Calculated average weighted by their uncertainties for", list_tuple)
weightedsum=0.0
sumofweights=0.0
# check all weights are at least zero or positive
for value,error in list_tuple:
if debug:
print("new value",value,"error",error)
if error<0:
print("error",error,"should be zero or positive. Will ABORT!!!")
assert(False)
areAllWeightsPositive=True
# check if all weights are True
for value,error in list_tuple:
if debug:
print("new value",value,"error",error)
if error==0:
areAllWeightsPositive=False
# start if
if areAllWeightsPositive==False:
# if not all weights are positive, return regular average
valueSum=0.0
valueErrorSquared=0.0
for value,error in list_tuple:
if debug:
print("new value",value,"error",error)
valueSum+=valueSum
valueErrorSquared+=error*error
# done for loop
NrElements=len(list_tuple)
average=valueSum/NrElements
average=math.sqrt(valueErrorSquared)/NrElements
else:
# if all weights are positive return weighted average
for value,error in list_tuple:
if debug:
print("new value",value,"error",error)
weight=1.0/(error*error)
if debug:
print("weight",weight)
weightedsum+=weight*value
sumofweights+=weight
if debug:
print("weightedsum",weightedsum)
print("sumofweights",sumofweights)
# done loop
average=weightedsum/sumofweights
error=1.0/math.sqrt(sumofweights)
# done if normal average (if at least one weight of zero) or weighted average (if all weights are larger than zero)
if debug:
print("average",average,"error",error)
return average,error
# done function
######################################################################
#### Classes that define functions
######################################################################
class XPlus1OverX:
def __call__( self, x, par ):
return par[0]+x[0]*par[1]+(1.0/x[0])*par[2]
# done function
# done class
class Sigmoid:
def __call__( self, x, par ):
return 1.0/(1.0+par[0]*math.exp(par[1]*(x[0])))
# done function
# done class
class Linear:
def __call__( self, x, par ):
return par[0]+x[0]*par[1]
# done function
# done class
class PieceWiseLinear:
def __call__( self, x, par ):
if x[0]<par[2]:
result=par[1]+((par[3]-par[1])/(par[2]-par[0]))*(x[0]-par[0])
else:
result=par[3]+((par[5]-par[3])/(par[4]-par[2]))*(x[0]-par[2])
return result
# done function
# done class
class Parabolic:
def __call__( self, x, par ):
return par[0]+par[1]*x[0]+par[2]*math.pow(x[0],2)
# done function
# done class
class Parabolic2:
def __call__( self, x, par ):
if x[0]<par[3]:
result=par[4]
else:
result=par[0]+par[1]*x[0]+par[2]*math.pow(x[0],2)
return result
# done function
# done class
class Polynomial3:
def __call__( self, x, par ):
result=0.0
for i in xrange(4):
result+=par[i]*math.pow(x[0],i)
return result
# done function
# done class
class Polynomial4:
def __call__( self, x, par ):
result=0.0
for i in xrange(5):
result+=par[i]*math.pow(x[0],i)
return result
# done function
# done class
class Polynomial5:
def __call__( self, x, par ):
result=0.0
for i in xrange(6):
result+=par[i]*math.pow(x[0],i)
return result
# done function
# done class
class Polynomial6:
def __call__( self, x, par ):
result=0.0
for i in xrange(7):
result+=par[i]*math.pow(x[0],i)
return result
# done function
# done class
class Gauss:
def __call__( self, x, par ):
if par[2]!=0:
result=par[0]*math.exp(-0.5*math.pow((x[0]-par[1])/par[2],2))
else:
result=0.0
return result
# done function
# done class
class Bukin:
def __call__( self, x, par ):
debug=False
if debug:
print("******")
# inputs
xx =x[0]
norm = par[0] # overall normalization
x0 = par[1] # position of the peak
sigma = par[2] # width of the core
xi = par[3] # asymmetry
rhoL = par[4] # size of the lower tail
rhoR = par[5] # size of the higher tail
if debug:
print("xx",xx)
print("norm",norm)
print("x0",x0)
print("sigma",sigma)
print("xi",xi)
print("rhoL",rhoL)
print("rhoR",rhoR)
# initializations
r1=0.0
r2=0.0
r3=0.0
r4=0.0
r5=0.0
hp=0.0
x1=0.0
x2=0.0
fit_result=0.0
# set them other values
consts=2*math.sqrt(2*math.log(2.0))
hp=sigma*consts
r3=math.log(2.0)
r4=math.sqrt(math.pow(xi,2)+1.0)
r1=xi/r4
if debug:
print("consts",consts)
print("hp",hp)
print("r3",r3)
print("r4",r4)
print("r1",r1)
print("x1",x1)
print("x2",x2)
print("x0",x0)
print("xx",xx)
print("xi",xi)
print("math.exp(-6.)",math.exp(-6.))
if abs(xi)>math.exp(-6.):
r5=xi/math.log(r4+xi)
else:
r5=1.0
if debug:
print("r5",r5)
x1=x0+(hp/2)*(r1-1)
x2=x0+(hp/2)*(r1+1)
if debug:
print("x1",x1)
print("x2",x2)
print("x0",x0)
print("xx",xx)
if xx<x1:
# Left Side
r2=rhoL*math.pow((xx-x1)/(x0-x1),2)-r3+4*r3*(xx-x1)/hp*r5*r4/math.pow((r4-xi),2)
elif xx < x2:
# Centre
if abs(xi)>math.exp(-6.):
r2=math.log(1+4*xi*r4*(xx-x0)/hp)/math.log(1+2*xi*(xi-r4))
r2=-r3*math.pow(r2,2)
else:
r2=-4*r3*math.pow(((xx-x0)/hp),2)
# ended if
else:
# Right Side
r2=rhoR*math.pow((xx-x2)/(x0-x2),2)-r3-4*r3*(xx-x2)/hp*r5*r4/math.pow((r4+xi),2)
# ended if on what side
if abs(r2)>100:
fit_result=0
else:
# Normalize the result
fit_result=math.exp(r2)
# compute result
result=norm*fit_result
# return result
return result
# done function
# done class
######################################################################
#### Further functions
######################################################################
<file_sep># !/usr/bin/python
# <NAME> (<EMAIL>)
# 20 May 2013, Python functions to manipulate and draw histograms
# functions that help ROOT in general
from HelperPyRoot import *
# ROOT imports specific for the neural network
from ROOT import TMultiLayerPerceptron,TNeuron,TMLPAnalyzer
#########################################################################################
#### create the elements of the list of NNs to train style ####
#########################################################################################
def get_list_NN(initial_number,random_number_variations,neuron_activation_functions,learning_methods,
input_layers,output_layers,hidden_layers,dict_tree_epoch, use_defaults_if_wrong_values,fileName,debug):
if debug:
print "input_layers",input_layers
print "output_layers",output_layers
print "hidden_layers",hidden_layers
# option can contain:
# - "text" (simple text output)
# - "graph" (evoluting graphical training curves)
# - "update=X" (step for the text/graph output update)
# - "+" will skip the randomisation and start from the previous values.
# - "current" (draw in the current canvas)
# - "minErrorTrain" (stop when NN error on the training sample gets below minE
# - "minErrorTest" (stop when NN error on the test sample gets below minE
# All combinations are available.
option="text, graph, current, update=1 +"
# initialize a list to empty values
list_NN=[]
# now add to the list all the NN combinations we want
# loop over how many random numbers you want
if debug:
print "random_number_variations",random_number_variations
counter_NN=initial_number-1
if True:
# loop over activation functions
for neuron_activation_function in neuron_activation_functions:
# loop over learning methods
for learning_method in learning_methods:
# loop over input layers
for input_layer in input_layers:
# loop over output layers
for output_layer in output_layers:
# loop over all the random numbers for this configuration
for i in xrange(random_number_variations):
counter_NN+=1
dict_tree_NN={}
# loop over all the trees to train on
for training_tree in dict_tree_epoch:
if debug:
print "training_tree",training_tree
# append the current NN to the list
NN=["NN","n"+str(counter_NN),fileName,training_tree,
neuron_activation_function,learning_method,dict_tree_epoch[training_tree],option,
updateListVariables("",input_layer,""),hidden_layers,output_layer,
use_defaults_if_wrong_values,debug]
if debug:
print NN
dict_tree_NN[training_tree]=NN
# ended loop over training_trees
list_NN.append(dict_tree_NN)
# ended looping over random numbers
# ended looping over output layers
# ended looping over input layers
# ended looping over learning methods
# ended looping over neuron activation functions
# ended if True
# if desired, print the list
if debug:
print_list_NN(list_NN)
# done
return list_NN
#return get_list_NN_partial(list_NN,1,debug)
# done definition function
#########################################################################################
#### get the sublist with only these elemens that you want to keep ####
#########################################################################################
def get_sublist_NN_to_keep(list_NN,list_names):
result=[]
for NNdict in list_NN:
NNname=NNdict[NNdict.keys()[0]][1]
if False:
print "NNname",NNname
if NNname in list_names:
result.append(NNdict)
# done
return result
# done definition function
#########################################################################################
#### get the sublist by throwing away these elements ####
#########################################################################################
def get_sublist_NN_to_reject(list_NN,list_names):
result=[]
for NNdict in list_NN:
NNname=NNdict[NNdict.keys()[0]][1]
if False:
print "NNname",NNname
if NNname not in list_names:
result.append(NNdict)
# done
return result
# done definition function
#########################################################################################
#### get the first elements of the NN list ####
#########################################################################################
def get_list_NN_partial(list_NN,number,debug):
result=[]
for i,dict_tree_NN in enumerate(list_NN):
if i>number-1:
continue
result.append(dict_tree_NN)
if debug:
print_list_NN(list_NN)
# done
return result
# done definition function
#########################################################################################
#### get the NN dictionary for a certain type ####
#########################################################################################
def get_NNdict(list_NN,type,debug):
for NNdict in list_NN:
NNname=NNdict[NNdict.keys()[0]][1]
if debug:
print "desired type",type,"current NNname",NNname
if NNname==type:
if debug:
print "Match found, we will return this element and exit function"
return NNdict
# done definition function
#########################################################################################
#### print the the NNs in a list ####
#########################################################################################
def print_list_NN(list_NN):
for i,dict_tree_NN in enumerate(list_NN):
for tree in dict_tree_NN:
NN=dict_tree_NN[tree]
print stringNN(NN,"b")
return None
# done definition function
#########################################################################################
#### sum two list_NNs ####
#########################################################################################
def add_list_NN(list_NN):
for i,dict_tree_NN in enumerate(list_NN):
for tree in dict_tree_NN:
NN=dict_tree_NN[tree]
print stringNN(NN,"b")
return None
# done definition function
#########################################################################################
#### get a string of the elements of a NN ####
#########################################################################################
def stringNN(NN,option):
if option=="a":
result="NN_folder "+NN[0]+" NN_name="+NN[1]+" fileName="+NN[2]+" treeName="+NN[3]+" NN_neuron_activation_function="+NN[4]+" NN_learning_method="+NN[5]+" NN_epochs="+str(NN[6])+" NN_train_option="+NN[7]+" NN_input_layer="+NN[8]+" NN_hidden_layers="+NN[9]+" NN_output_layer="+NN[10]+" use_defaults_if_wrong_values="+str(NN[11])+" debug="+str(NN[12])
elif option=="b":
result="%-4s %-25s %-7s %-7s %-4s %-10s %-3s %-6s %-90s" % (NN[1], NN[3],NN[4],NN[5],str(NN[6]),NN[10],NN[9],str(NN[11]),NN[8])
elif option=="c":
result="%-7s %-7s %-4s %-100s %-10s %-10s" % (NN[4],NN[5],str(NN[6]),NN[8],NN[10],str(NN[11]))
elif option=="d":
result="%-7s %-7s %-4s %-75s" % (NN[4],NN[5],str(NN[6]),NN[8])
else:
print "option",option,"not known. WILL ABORT!!!"
return None
# now ready to return
return result
# done function
#########################################################################################
#### import a NN from its module based on its name ######
#########################################################################################
def studyFileErrors(fileName,debug):
if debug:
"Studying file",fileName
bestNrEpoch=9999
bestTestError=9999.0
#lines = [line.strip() for line in open(fileName)]
#for line in lines:
with open(fileName) as file_:
for line in file_:
if "Epoch" not in line:
continue
if debug:
print line
elements=line.split(" ")
if debug:
print elements
nrEpoch=elements[1]
train=elements[2]
test=elements[3]
trainError=float(train.split("=")[1])
testError=float(test.split("=")[1])
if debug:
print nrEpoch,trainError,testError
if testError<bestTestError:
bestTestError=testError
bestNrEpoch=nrEpoch
# ended loop over all the lines
if debug:
print "Best testError is",bestTestError,"for nrEpoch",bestNrEpoch
# add one as we started counting from zero
bestNrEpoch=int(bestNrEpoch)+1
bestTestError=float(bestTestError)
return bestNrEpoch,bestTestError
# function definition ended
#########################################################################################
#### train a NN, see examples in test.py, either on a per-jet or a per-event basis ####
#########################################################################################
def trainNN(file_training_name,doRandomize,NN,suffix,debug):
print "############## Start trainNN(...) ###############"
print "NN=",NN,"suffix",suffix
# fill the information from NN
folder=NN[0]
name=NN[1]
fileName=NN[2]
treeName=NN[3]
neuron_activation_function=NN[4]
learning_method=NN[5]
epochs=NN[6]
option=NN[7]
input_layer=NN[8]
hidden_layers=NN[9]
output_layer=NN[10]
use_defaults_if_wrong_values=NN[11]
debug=NN[12]
print "debug",debug
# hard code values for trainining parameters (in the future to put as inputs)
default=False
if default:
eta=0.1
etadecay=1.0
delta=0.0
reset=50
else:
eta=0.000001
etadecay=0.9999
delta=0.0
reset=50
# open TFile
file=TFile(fileName)
if not not file:
print "TFile",fileName,"opened sucessfully."
else:
print "TFile",fileName,"could not be opened."
# get TTree from TFile
tree=file.Get(treeName)
if not not tree:
print "TTree",treeName,"opened sucessfully."
else:
print "TTree",treeName,"could not be opened."
print type(tree)
# get number of entries in the tree
nentries=tree.GetEntries()
print "TTree",treeName,"has",nentries,"entries. We will use them for training."
# create the structure of NN
input_layer=listVariables(input_layer,"@") # add the normalization of variables by default
if hidden_layers=="":
if use_defaults_if_wrong_values:
hidden_layers=':'+str(len(input_layer.split(',')))+':'
else:
print "Your desired hidden_layers is empty, it should be : followed by a number followed by : followed by another number followed by :, for as many hidden layers that you want. Will ABORT!!!"
assert(False)
# done if
structure = input_layer+hidden_layers+output_layer
# check the user asked for a known neuron activation function
list_possible_neuron_activation_functions=["Linear","Sigmoid","Tanh","Gauss"]
if neuron_activation_function not in list_possible_neuron_activation_functions:
if use_defaults_if_wrong_values:
neuron_activation_function="Sigmoid"
else:
print "Your desired neuron_activation_function",neuron_activation_function,"not known. Need to choose from",list_possible_neuron_activation_functions,". Will ABORT!!!"
assert(False)
# done if
# check the user asked for a known learning method
list_possible_learning_methods=["Stochastic","Batch","SteepestDescent","RibierePolak","FletcherReeves","BFGS"]
if learning_method not in list_possible_learning_methods:
if use_defaults_if_wrong_values:
learning_method="BFGS"
else:
print "Your desired learning_method",learning_method,"not known. Need to choose from",list_possible_learning_methods,". Will ABORT!!!"
assert(False)
# done if
# add the NN_counter to the name, to distinguish them
name_weights=name+"_"+treeName
name=name+suffix+"_"+treeName
# print values if debug
if debug:
print "folder",folder
print "name",name
print "file used in training",fileName
print "tree from file used in training",treeName
print "input_layer",input_layer
print "hidden_layers",hidden_layers # notice plural!
print "output_layer",output_layer
print "structure",structure
print "epochs",epochs
print "option",option
print "neuron_activation_function",neuron_activation_function
print "learning_method",learning_method
print "doRandomize",doRandomize
print "eta",eta
print "etadecay",etadecay
print "delta",delta
print "reset",reset
#exit()
# create the NN object of the type MultiLayerPerceptron
mlp=TMultiLayerPerceptron(structure, tree,"Train==1","Train==0",getattr(TNeuron,"k"+neuron_activation_function))
#mlp=TMultiLayerPerceptron(structure, tree,"(Entry$%2)==0","(Entry$%2)!=0",getattr(TNeuron,"k"+neuron_activation_function))
#mlp=TMultiLayerPerceptron(structure, tree,"Entry$%2","(Entry$+1)%2",getattr(TNeuron,"k"+neuron_activation_function))
SetOwnership(mlp,0)
# set the training dataset
#mlp.SetTrainingDataSet(listTrain)
# set the testing dataset
#mlp.SetTestDataSet(listTest)
# now set the learning method
mlp.SetLearningMethod(getattr(TMultiLayerPerceptron,"k"+learning_method))
# now set eta,etadecay,delta and reset
mlp.SetEta(eta)
mlp.SetEtaDecay(etadecay)
mlp.SetDelta(delta)
mlp.SetReset(reset)
if debug:
print "before training"
print "Eta",mlp.GetEta()
print "EtaDecay",mlp.GetEtaDecay()
print "Delta",mlp.GetDelta()
print "Reset",mlp.GetReset()
# we need to create a canvas first so that the plots produced by default will
# be saved to a .pdf file, otherwise we lose them
# for example, NN error vs number epochs
# Create a canvas with a left and right side
c=TCanvas(name,name,200,10,800,500)
# divide the canvas into 4, as we will plot 4 plots
c.Divide(2,2)
# go o the first one (top left corner)
c.cd(1)
# now we train the NN with the desired number of epochs,
# while also getting a canvas with the NN error vs the number of epochs
# and a text with these values
#
# now open the files when saving the cout from NN training to file
# but first save the number of epochs to a file
# so that we can manipulate that info to get the best number of epochs
# for which the test error is minimum
save=os.dup(sys.stdout.fileno())
fileErrors="./errors/"+name+".txt"
newout=open(fileErrors,"w")
os.dup2(newout.fileno(),sys.stdout.fileno())
#
# but we want to measure how long it takes to train
# so get the current time (in seconds since 1970 ...)
sec_start=int(round(time.time()))
# now we can train
# mlp.Train(100,"text graph update=10") # for example
# the plot NN error vs number epochs is created here if
# option contains the string "graph current"
# now ready to train NN
# randomize the NN numbers only if we say so, and the option should have by default + it so that
# the randomization is not updated if we do not want to
# this is crucial for finding the best number of epochs and then running again on the same NN
# i.e. with the same random number as before, i.e. without randomization
fileWeights="./weights/"+name_weights+"_weights.txt"
if doRandomize:
mlp.Randomize()
mlp.DumpWeights(fileWeights)
else:
mlp.LoadWeights(fileWeights)
if os.path.exists(fileWeights):
os.remove(fileWeights)
# now ready to train
mlp.Train(epochs,option)
# finished NN training
# finished training, so now get the current time (in seconds since 1970 ...)
sec_finish = int(round(time.time()))
NN_run_time=sec_finish-sec_start
if debug:
print "Run time:",NN_run_time, "seconds"
# now close the files when saving the cout from NN training to file
os.dup2(save,sys.stdout.fileno())
newout.close()
os.close(save)
# now we can find the best number of epochs
nrEpoch,testError=studyFileErrors(fileErrors,False)
# go to the second one (top right corner)
c.cd(2)
# draws the mlp already trained with the structure and thicker lines
# for the most important synapses (connection between the neurons)
mlp.Draw()
# go to the third one (bottom left corner)
c.cd(3)
# define ana an object that analyses the mlp already trained
ana=TMLPAnalyzer(mlp)
# now fill ana with the information it has to analyse
ana.GatherInformations()
# draws the inputs derivatives (the smaller the value,
# the less sensitive is the NN output on the variable change in the input)
ana.DrawDInputs()
# go to the fourth one (bottom right corner)
c.cd(4)
# draws truth deviations
ana.DrawTruthDeviations("")
#ana.DrawDInput(1)
# now the canvas is ready, we can save it to a file
c.Print("./plot/"+name+".pdf")
# c.Print("./plot/"+name+".eps")
# c.Print("./plot/"+name+".gif")
if debug:
print "after training"
print "Eta",mlp.GetEta()
print "EtaDecay",mlp.GetEtaDecay()
print "Delta",mlp.GetDelta()
print "Reset",mlp.GetReset()
# then save the NN function in Python format
mlp.Export(name, "Python")
call(["mv",name+".py",folder])
# if we want, we can also save it in C++ format (.cxx and .h)
mlp.Export(name, "C++")
# now move the NN files to the NN folder
call(["mv",name+".cxx",folder])
call(["mv",name+".h",folder])
# save info about NN
file_training=open(file_training_name,"a")
file_training.write(name+" trained for "+str(NN_run_time)+" seconds, best nrEpoch "+str(nrEpoch)+" best testError "+str(testError)+" : "+stringNN(NN,"b")+"\n")
file_training.close()
# now we are done
print "############## End trainNN(...) #################"
# return the name of the NN
return nrEpoch,testError
# function definition ended
#########################################################################################
#### import a NN from its module based on its name ######
#########################################################################################
def get_info_NN(nnName,treeName,debug):
if debug:
print "Retrieveing the info about the NN of name",nnName,"and tree",treeName
list_NN_all=get_list_NN_all()
if debug:
print "list_NN_all",list_NN_all
print " "
list_names_to_keep=[nnName]
if debug:
print "list_names_to_keep",list_names_to_keep
list_NN=get_sublist_NN_to_keep(list_NN_all,list_names_to_keep)
# now the list has only one NN name with our choice, but there is in fact
# a dictionary of name to NNs for all jets, per jet1 and per jet 2.
dict_NN=list_NN[0]
# from the dictionary get the NN of the type we want (per jet1, for example)
info_NN=dict_NN[treeName]
if debug:
print "info_NN",info_NN
print " "
return info_NN
# function definition ended
#########################################################################################
#### import a NN from its module based on its name ######
#########################################################################################
def importNN(name,debug):
if debug:
print "Importing Python module for NN named",name
NN_module=__import__(name)
NN_class=getattr(NN_module, name)
NN_instance=NN_class() # the instance of the class is our NN
return NN_instance
# function definition ended
<file_sep>#!/usr/bin/env python3
import os
from glob import glob
def example_format_string():
list_values=[
["bla", 1, 0.0, 30.0, 0.0, 0.0],
["bla22",5, 170.0, 190.0, 559.06, 30.65],
["bla333",16, 500.0, 1300.0, 7.22, 2.38],
]
for text,i,binLowEdge,binHighEdge,binContent,binError in list_values:
line="%8s bin %4.0f range [%4.0f,%4.0f] value %8.2f error %8.2f" % (text,i,binLowEdge,binHighEdge,binContent,binError)
print(line)
# bla bin 1 range [ 0, 30] value 0.00 error 0.00
# bla22 bin 5 range [ 170, 190] value 559.06 error 30.65
# bla333 bin 16 range [ 500,1300] value 7.22 error 2.38
for text,i,binLowEdge,binHighEdge,binContent,binError in list_values:
line="%-8s bin %-4.0f range [%-4.0f,%4.0f] value %-8.2f error %-8.2f" % (text,i,binLowEdge,binHighEdge,binContent,binError)
print(line)
# bla bin 1 range [0 , 30] value 0.00 error 0.00
# bla22 bin 5 range [170 , 190] value 559.06 error 30.65
# bla333 bin 16 range [500 ,1300] value 7.22 error 2.38
# Notice how - arranges to the left and lack of - arranges to the righ!
# done function
def getFileNameStem(fileName,debug=False):
if debug:
print("fileName",fileName)
fileNameSplitBySlash=fileName.split("/")
# now pick the last element, which means with path removed
# find out how many elements are in the list
nrElements=len(fileNameSplitBySlash)
fileNameWithoutPath=fileNameSplitBySlash[nrElements-1]
if debug:
print("fileNameWithoutPath",fileNameWithoutPath)
fileNameStem=fileNameWithoutPath.split(".")[0]
if debug:
print("fileNameStem",fileNameStem)
# a bit hard coded, but we know the name of the root files start with
# train_tree_ and we want to remove that, it has 11 characters
fileNameStem=fileNameStem[12:]
if debug:
print("fileNameStem",fileNameStem)
return fileNameStem
# done function
def get_fileNameStemOld(fileName,debug=False):
if debug:
print("fileName",fileName)
fileNameSplitBySlash=fileName.split("/")
# now pick the last element, which means with path removed
# find out how many elements are in the list
nrElements=len(fileNameSplitBySlash)
fileNameWithoutPath=fileNameSplitBySlash[nrElements-1]
if debug:
print("fileNameWithoutPath",fileNameWithoutPath)
fileNameStem=fileNameWithoutPath.split(".")[0]
if debug:
print("fileNameStem",fileNameStem)
return fileNameStem
# done function
def get_fileNameStem(fileName,debug=False):
if debug:
print("fileName",fileName)
fileNameStem=os.path.splitext(os.path.basename(fileName))[0]
if debug:
print("fileNameStem",fileNameStem)
return fileNameStem
# done function
def get_list_fileFromFolder(inputFolderName,fileSearch="*.root",debug=False):
result=glob(inputFolderName+"/"+fileSearch)
# since the results are returned in arbitrary order, let's sort the list to be in alphabetical order
result=sorted(result)
if False:
# old code below deprecated by this glob command
result=[]
proc = subprocess.Popen(["ls -1 "+inputFolderName+"/"+fileSearch], stdout=subprocess.PIPE, shell=True)
(out, err) = proc.communicate()
if debug:
print(type(out),out)
for file in out.split():
if debug:
print("file",file)
result.append(file.strip('\n'))
# the file name contains full path
# done if
if debug:
print("list_file:")
for file in result:
print(file)
return result
# done function
# optionOpenFile="w" # create from scratch, "a", append to an already existing file
# in which case be sure to name the list differently
def get_python_list_filesFromFolder(inputFolderName,fileSearch="*.root",
outputFileName="list.py",optionOpenFile="w",
listName="list_outputFile",
debug=False):
outputFile=open(outputFileName,optionOpenFile)
if optionOpenFile=="w":
line="#!/usr/bin/python\n"
outputFile.write(line)
elif optionOpenFile=="a":
# will append
None
else:
print("optionOpenFile",optionOpenFile,"not known. Choose w (rewrite), a (append). Will ABORT!!!")
assert(False)
# end if
line=" \n"
outputFile.write(line)
line=listName+"=[\n"
outputFile.write(line)
list_fileName=get_list_fileFromFolder(inputFolderName,fileSearch,debug)
for fileName in list_fileName:
print("fileName",fileName)
line=" \""+fileName+"\",\n"
outputFile.write(line)
# done loop over files
line="]\n"
outputFile.write(line)
outputFile.close()
if True:
print("File ",outputFileName,"has been created.")
# done function
def get_list_from_file(fileName,debug=False):
# it assumes there is one element per line
list_line=[]
for line in open(fileName, 'r'):
line=line.rstrip()
if debug:
print("line",line)
list_line.append(line)
# done for loop over lines
if debug:
print("list_line",list_line)
return list_line
# done function
# read a value from a file that has only one number inside
def get_value_from_file(fileName,debug):
# we assume there is only one line, and on that line only one value
with open(fileName) as f:
value=float(f.readline().rstrip())
if debug:
print("value from fileName",fileName,"is value",value)
return value
# done function
def get_stringFormat(list_varInfo,option,debug=False):
varName,varType,stringLength,side,nrDigitsAfterDot=list_varInfo
# overwrite the float to s for the first line of header of the file
if option=="s":
varType="s"
elif option=="f":
pass
else:
print("option",option,"not known. Must be s or f. String or Float. Will ABORT!!!")
assert(False)
# done if
if debug:
print("option",option,"varType",varType)
# start build the stringFormat
stringFormat="%"
# add if arranged to the left of to the right
# usually pure strings want to be arranged to the left
# and numbers arranged to the right
if side=="l":
stringFormat+="-" # %-25s
elif side=="r":
pass # %25s
else:
print("side",side,"not known. Choose l or r. Left or Right. Will ABORT!!!")
assert(False)
# done if
# add the length of the string
stringFormat+=str(stringLength)
# add the fact that it is a string or a float
if varType=="s":
stringFormat+="s"
elif varType=="f":
stringFormat+="."+str(nrDigitsAfterDot)+"f" # %15.4f or %-15.4f
else:
print("varType",varType,"not known. Choose s or f. String or Float. Will ABORT!!!")
assert(False)
# done if
return stringFormat
# done function
def get_performanceText_names(list_list_varInfo,debug):
if debug:
print("Start get_performanceText_names()")
performanceText=""
for list_varInfo in list_list_varInfo:
stringFormat=get_stringFormat(list_varInfo,"s")
varName=list_varInfo[0]
if debug:
print("stringFormat",stringFormat,"varName",varName)
performanceText+=stringFormat % varName
# done for loop
if debug:
print("performanceText",performanceText)
return performanceText
# done function
def get_performanceText_values(list_list_varInfo,dict_varName_value,debug):
if debug:
print("Start get_performanceText_values()")
performanceText=""
for list_varInfo in list_list_varInfo:
if debug:
print("list_varInfo",list_varInfo)
stringFormat=get_stringFormat(list_varInfo,"f")
if debug:
print("stringFormat",stringFormat)
varName=list_varInfo[0]
if debug:
print("stringFormat",stringFormat,"varName",varName)
performanceText+=stringFormat % dict_varName_value[varName]
# done for loop
if debug:
print("performanceText",performanceText)
return performanceText
# done function
def append_performance_to_file(performanceFileName,list_list_varInfo,dict_varName_value,debug=False,verbose=False):
exists=os.path.isfile(performanceFileName)
if exists==False:
with open(performanceFileName, "w") as myFile:
performanceText=get_performanceText_names(list_list_varInfo,debug)
myFile.write(performanceText+"\n")
myFile.close()
# done if
with open(performanceFileName, "a") as myFile:
performanceText=get_performanceText_values(list_list_varInfo,dict_varName_value,debug)
myFile.write(performanceText+"\n")
myFile.close()
# done function
def reduce_file_by_skipping_lines_starting_with_element_from_list(inputFileName,outputFileName,list_firstElement,debug):
f=open(inputFileName,"r")
o=open(outputFileName,"w")
for line in f:
# skip line if the first element of the line is in the list of elements to ignore
if line.split()[0] not in list_firstElement:
continue
# if here the line is good, so write it to the new file
o.write(line)
# done loop over lines
o.close()
f.close()
# done function
#################################################################
################### Finished ####################################
#################################################################
<file_sep>#!/usr/bin/env python3
#from HelperStatistics import *
#from plyfile import PlyData, PlyElement
#import pandas as pd
#from sklearn.neighbors import NearestNeighbors
#from timeit import default_timer as timer
def get_plyData_from_ply_ascii_file(inputFileName,debug=False):
if debug:
print("Reading plyData from ply ascii file",inputFileName)
plyData=PlyData.read(inputFileName)
return plyData
# done function
# get a point cloud of N points, each with M properties (x,y,z, etc)
# as a list of points (with N elements)
# where each point is a numpy array of dimension M
def get_list_point(plyData,expected_M=0,debug=False,verbose=False):
list_pointTuple=plyData.elements[0].data
print(end-start,"seconds to read nparray from ascii .ply")
N=len(list_pointTuple)
M=len(list_pointTuple[0])
if verbose or debug:
print("N",N,"M",M)
if debug:
print("plyData",type(plyData),plyData)
print("plyData.elements[0]",type(plyData.elements[0]),plyData.elements[0])
print("plyData.elements[0].data",type(list_pointTuple),list_pointTuple.shape,list_pointTuple.dtype)
print(list_pointTuple)
print(len(list_pointTuple))
print(list_pointTuple[0])
# done if
# convert point from tuple to numpy array, () -> []
list_point=[]
for i,pointTuple in enumerate(list_pointTuple):
if debug:
print("i",i,"pointTuple",type(pointTuple),pointTuple)
if i==0:
M=len(pointTuple)
if expected_M!=0:
if M!=expected_M:
print("For this first pointTuple",pointTuple,"its dimension M",M,"is different than the expected_M",expected_M,"so we will ABORT!!!!")
assert(False)
# done if
# done if
else:
if len(pointTuple)!=M:
print("This pointTuple",pointTuple,"does not have dimension M",M,"as the previous. So we will ABORT!!!")
assert(False)
# done if
# done if
point=np.asarray([value for value in pointTuple])
list_point.append(point)
# done for loop over points in list
return list_point
# done function
def get_list_point_from_ply_ascii_file(inputFileName,expected_M=0,debug=False,verbose=False):
if debug:
print("Reading numpy from ply ascii file",inputFileName)
return get_list_point(PlyData.read(inputFileName),expected_M=0,debug=debug,verbose=verbose)
# done function
# get a point cloud of N points, each with M properties (x,y,z, etc)
# as a numpy array of shape N*M
# each row is a new point of dimension M; so there are M columns
# there are N points, so N rows
def get_nparray(plyData,expected_M=0,debug=False,verbose=False):
# start=timer()
list_pointTuple=plyData.elements[0].data
# end=timer()
# print(end-start,"seconds list_pointTuple")
N=len(list_pointTuple)
M=len(list_pointTuple[0])
if debug:
print("N",N,"M",M)
if debug:
print("plyData",type(plyData),plyData)
print("plyData.elements[0]",type(plyData.elements[0]),plyData.elements[0])
print("plyData.elements[0].data",type(list_pointTuple),list_pointTuple.shape,list_pointTuple.dtype)
print(list_pointTuple)
print(len(list_pointTuple))
print(list_pointTuple[0])
# done if
# convert point from tuple to numpy array, () -> []
# start=timer()
nparray_shape=(N,M)
nparray=np.zeros(nparray_shape,dtype=np.float32)
# end=timer()
# print(end-start,"seconds nparray with zero velues")
if debug:
print("nparray")
print(nparray)
# start=timer()
for i in xrange(0,N):
nparray[i,:]=np.array([value for value in list_pointTuple[i]])
# end=timer()
# print(end-start,"seconds fill the values of the nparray")
if debug:
print("nparray after filling")
print(nparray)
# calculate the min and max for each dimension
if debug:
print("Calculate min and max on each axis:")
# start=timer()
for i in xrange(M):
nparrayD=nparray[:,i]
minValue=np.min(nparrayD)
maxValue=np.max(nparrayD)
if debug:
print("axis %i: (min,max)=(%.3f, %.3f);" % (i,minValue,maxValue))
# end=timer()
# print(end-start,"seconds to get nparrayD and get max and min"
if debug:
print("")
# done
return nparray
# done function
def get_nparray_from_ply_ascii_file(inputFileName,expected_M=0,debug=False,verbose=False):
if debug:
print("Reading numpy from ply ascii file",inputFileName)
return get_nparray(PlyData.read(inputFileName),expected_M=0,debug=debug,verbose=verbose)
# done function
def get_nparray_from_ply_ascii_file2(inputFileName,expected_M=0,debug=False,verbose=False):
if debug:
print("Reading numpy from ply ascii file 2 (directly, not passing from PlyData library)",inputFileName)
# the typical way of reading line by line and filling the array
# curious to time to see if we get better than with the method above
# it turns out it is very slow and not worth it
print("inputFileName",inputFileName)
f=open(inputFileName,"r")
after_header=False
i=0
M=0
for line in f:
line=line.rstrip()
list_line=line.split()
if False:
print(list_line)
if after_header==False:
if list_line[0]=="element" and list_line[1]=="vertex":
N=int(list_line[2])
elif list_line[0]=="property" and list_line[1]=="float":
print(list_line)
M+=1
elif line=="end_header":
after_header=True
continue
# done if
nparray_shape=(N,M)
# print("nparray_shape",nparray_shape)
nparray=np.zeros(nparray_shape,dtype=np.float32)
assert(len(list_line)==M)
if i>=N:
continue
for j in range(M):
nparray[i,j]=float(list_line[j])
if i%1000==0:
print("list_line")
print("i",nparray[i,:])
i+=1
# done for loop over lines
# done function
def get_nparray_from_ply_ascii_file_via_pandas(inputFileName,expected_M=0,debug=False,verbose=False):
if debug:
print("Reading numpy from ply ascii file3 (using pandas)",inputFileName)
# NrLinesHeader is the number of lines that are represented by the header
NrLinesHeader=0
with open(inputFileName,"r") as f:
for line in f:
NrLinesHeader+=1
list_line=line.rstrip().split(" ")
if debug:
print(list_line)
if list_line[0]=="element":
N=int(list_line[2]) # number of points
if list_line[0]=="end_header":
break
# done loop over lines
# done with the file
#
# read the file in a panda data frame, saying to skip some lines (NrLinesHeader)
# and to read a certain number of lines (N, nr of points)
# this ensures that it also does not read the last line as a footer that exists in some files
# there is an option to skip the footer in this command too, but it makes it very slow
# so we do not use the number of lines in footer directly
#start2=timer()
if debug:
print("NrLinesHeader",NrLinesHeader,"N",N)
names=[]
for m in range(expected_M):
names.append("axis-"+str(m))
# done for loop creating names
pandasDataFrame=pd.read_csv(inputFileName,skiprows=NrLinesHeader,sep=" ",nrows=N,names=names)
#pandasDataFrame.columns = ["X","Y","Z"]
#end2=timer()
#print(end2-start2,"seconds to read in style 3 panda frame from ascii .ply")
if debug:
print("pandasDataFrame")
print(pandasDataFrame)
# convert pandas data frame to a numpy array
# nparray=pandasDataFrame.to_numpy() # needs python3
nparray=pandasDataFrame.values # needs python3
if debug:
print("nparray",nparray,nparray.shape,nparray.dtype)
# done all
return nparray
# done function
def get_nparray_from_binary_file(inputFileName,expected_M=0,debug=False,verbose=False):
if debug:
print("Reading numpy from ply ascii file4 (np.fromfile()",inputFileName)
#start2=timer()
nparray=np.fromfile(inputFileName,dtype=np.float32)
if debug:
print("nparray",nparray,nparray.shape,nparray.dtype)
# reshape
NrValues=nparray.shape[0]
M=expected_M # nr of dimensions of the point
if debug:
print("M",M,type(M))
assert(NrValues%M==0)
N=NrValues/M # nr of points
nparray=nparray.reshape(N,M)
#end2=timer()
#print(end2-start2,"seconds to read in style 4 frame from buffer .ply")
if debug:
print("nparray",nparray,nparray.shape,nparray.dtype)
# done all
return nparray
# done function
# write a point cloud represented as a nparray to an ASCII .ply file
# so that we can visualize in CloudCompare smaller point clouds we create
# based on cleaning of our own, and selecting only subsets
def write_point_cloud_to_ascii_ply(nparray, outputFileName,debug=False,verbose=False):
if debug:
print("Start write_point_cloud_to_ascii_ply")
print("nparray")
print(nparray)
N=nparray.shape[0]
M=nparray.shape[1]
if debug:
print("N",N,"M",M)
if M!=3:
print("WARNING!!! The header for M",M,"may not be right. Check the header writes all the variables you want!!!")
if debug:
for i in xrange(N):
print(i,nparray[i])
# write the file
f=open(outputFileName,"w+")
# write the ascii ply header
f.write("ply\n")
f.write("format ascii 1.0\n")
f.write("comment PCL generated\n")
f.write("element vertex %i\n" % N)
f.write("property float x\n")
f.write("property float y\n")
f.write("property float z\n")
f.write("property float intensity\n")
f.write("element camera 1\n")
f.write("property float view_px\n")
f.write("property float view_py\n")
f.write("property float view_pz\n")
f.write("property float x_axisx\n")
f.write("property float x_axisy\n")
f.write("property float x_axisz\n")
f.write("property float y_axisx\n")
f.write("property float y_axisy\n")
f.write("property float y_axisz\n")
f.write("property float z_axisx\n")
f.write("property float z_axisy\n")
f.write("property float z_axisz\n")
f.write("property float focal\n")
f.write("property float scalex\n")
f.write("property float scaley\n")
f.write("property float centerx\n")
f.write("property float centery\n")
f.write("property int viewportx\n")
f.write("property int viewporty\n")
f.write("property float k1\n")
f.write("property float k2\n")
f.write("end_header\n")
# write the values of the point cloud, in our new coordinate system
for i in xrange(N):
text=""
for dimensionIndex in xrange(0,M):
if dimensionIndex==0:
pad=""
else:
pad=" "
value=nparray[i,dimensionIndex]
text+=pad+str(value)
# done loop over all dimensions
f.write(text+"\n")
# done loop over all points
# write the ascii ply last line, that is: 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 121130 1 0 0
f.write(" 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 %i 1 0 0\n" % N)
# done function
def test_one_point_cloud(inputFileName,debug=False,verbose=False):
plyData=get_plyData_from_ply_ascii_file(inputFileName,debug)
if debug or verbose:
print("list_point:")
list_point=get_list_point(plyData,expected_M=0,debug=debug,verbose=verbose)
N=len(list_point)
if debug or verbose:
print("N",N,"[0]",type(list_point[0]),list_point[0])
print("numpy NxM:")
nparray=get_nparray(plyData,expected_M=0,debug=debug,verbose=verbose)
testFileName=inputFileName.replace(".ply","_rewrite.ply")
write_point_cloud_to_ascii_ply(nparray,testFileName,debug=debug,verbose=verbose)
# to add: function that re-orders the axis to be in a particular order to be plotted easily:
# left to right; bottom to up; backwards to forwards; the attributes remain as they are
# create histograms for all the axes
# done function
def distance(nparray1,nparray2,debug=False):
M1=len(nparray1)
M2=len(nparray2)
if debug:
print("M1",M1,"M2",M2)
assert(M1==M2)
M=M2
distance_squared=0
for i in xrange(M):
distance_squared+=(nparray1[i]-nparray2[i])**2
distance=math.sqrt(distance_squared)
if debug:
print("distance",distance)
return distance
# done function
def reorder_one_point_cloud_to_match_a_reference(pc_reference,pc_current,debug=False,verbose=False):
# use all coordinates in the point cloud (this is just an approximation)
if debug or verbose:
print("Start reorder_one_point_cloud_to_match_a_reference()")
print("Built NearestNeigbourghs object for the pc_current")
nn_current=NearestNeighbors(n_neighbors=1,algorithm='auto',metric='euclidean').fit(pc_current)
if debug:
print("Match the pc_reference to the pc_current")
distances_current_to_reference,indices_current_to_reference=nn_current.kneighbors(pc_reference)
if debug:
print("distances_current_to_reference",type(distances_current_to_reference),len(distances_current_to_reference),distances_current_to_reference)
print("indices_current_to_reference",type(indices_current_to_reference),len(indices_current_to_reference),indices_current_to_reference)
if False:
for i in xrange(len(distances_current_to_reference)):
print("i",i,"reference",pc_reference[i],"current_ordered",pc_current[indices_current_to_reference[i]][0],"current_original",pc_current[i])
print(pc_reference[i].shape)
print(pc_current[indices_current_to_reference[i]][0].shape)
if debug:
print("indices_current_to_reference",indices_current_to_reference.shape)
print("Reshape the distances and indices to be from (N,1) to (N,)")
indices_current_to_reference_reshaped=indices_current_to_reference.T[0]
distances_current_to_reference_reshaped=distances_current_to_reference.T[0]
if debug:
print("indices_current_to_reference_reshaped",indices_current_to_reference_reshaped)
if debug:
print("Reorder the pc_current to match the order in pc_reference")
pc_current_reordered=pc_current[indices_current_to_reference_reshaped]
if debug:
print("pc_current",pc_current.shape,pc_current[0])
print(pc_current)
print("pc_reference",pc_reference.shape,pc_reference[0])
print(pc_reference)
print("pc_current_reordered",pc_current_reordered.shape,pc_current_reordered[0])
print(pc_current_reordered)
print("distances_current_to_reference_reshaped")
print(distances_current_to_reference_reshaped)
print("")
N=pc_current.shape[0]
if debug:
for i in xrange(N):
if i>10:
continue
dist_us=distance(pc_reference[i],pc_current_reordered[i],debug)
dist_them_1=distances_current_to_reference_reshaped[i]
print(i,"cur",pc_current[i],"ref",pc_reference[i],"cur_ordered",pc_current_reordered[i],"dist_us",dist_us,"dist_them",dist_them_1)
# done
return pc_current_reordered,distances_current_to_reference_reshaped
# done function
# applicable for the particular case of S=1, M=2 with a spatial value and an attribute which is an id as integer
# we compress with a tolerance on the integer < 0.49 so the id remains the same in the compression
# so we sort by simply matching the id
def reorder_one_point_cloud_to_match_a_reference_with_last_element_an_id(pc_reference,pc_current,S,M,debug=False,verbose=False):
if debug or verbose:
print("")
print("Start reorder_one_point_cloud_to_match_a_reference_with_last_element_an_id()")
pc_current_reordered=np.copy(pc_current)
if debug:
print("pc_current",pc_current,type(pc_current))
print("pc_current[:,1]",pc_current[:,1],type(pc_current[:,1]))
print("[np.round(pc_current[:,1]).astype(np.uint32)",np.round(pc_current[:,1]).astype(np.uint32),type(np.round(pc_current[:,1]).astype(np.uint32)))
pc_current_reordered[np.round(pc_current[:,-1]).astype(np.uint32),:]=1*pc_current
if debug:
print("pc_current_reordered",pc_current_reordered,type(pc_current_reordered))
# calculate distance for the spatial dimensions S
distances_current_to_reference_reshaped=np.sqrt(np.sum(np.square(pc_current_reordered-pc_reference)[:,:S],axis=-1))
if debug:
pc_diff=(pc_current_reordered-pc_reference)**2
print("pc_diff",pc_diff,type(pc_diff),pc_diff.shape)
pc_a=pc_diff[:,:S]
print("pc_a",pc_a,type(pc_a),pc_a.shape)
pc_s2=np.sum(pc_a,axis=-1)
print("pc_s2",pc_s2,type(pc_s2),pc_s2.shape)
pc_s=np.sqrt(pc_s2)
print("pc_s",pc_s,type(pc_s),pc_s.shape)
# done all
return pc_current_reordered,distances_current_to_reference_reshaped
# done function
<file_sep>#!/usr/bin/python
from HelperPython import *
import xml.etree.ElementTree as ET
import numpy as np
# re-implement on 19 June 2019 the example from https://github.com/tsoding/kdtree-in-python/blob/master/main.py
# then added three things:
# 1. attributes, in addition to the coordinates
# 2. tolerances for each of the coordinates and attributes - can be none and then come back to standard case
# 3. any number of dimensions for both coordinates and attributes
total = len(sys.argv)
# number of arguments plus 1
if total!=1:
print "You need some arguments, will ABORT!"
print "Ex: ",sys.argv[0]," "
assert(False)
# done if
#################################################################
################### Configurations ##############################
#################################################################
debug=False
verbose=True
list_option="A".split(",")
svg_file_name="./points.svg"
#svg_file_name="./points2.svg"
#svg_file_name="./pointsTutorial.svg"
TAG_NAME_CIRCLE='{http://www.w3.org/2000/svg}circle'
TAG_NAME_GROUP='{http://www.w3.org/2000/svg}g'
list_tolerance=[50.0,50.0,0.20]
#list_tolerance=[10.0,10.0]
#list_tolerance=None
infinity=float("inf")
dimensionCoordinates=2
dimensionAttributes=1
dimensionPoint=dimensionCoordinates+dimensionAttributes
if dimensionAttributes==1 and "/points2Tutorial.svg" in svg_file_name:
print "You are running on svg file",svg_file_name,"that does not have any attributes besides coordinates. Will ABORT!!!"
assert(False)
#
# assume a point is an ntuple with its positions
#################################################################
################### Functions ###################################
#################################################################
#### read the list of points from the svg file ###
def get_point_from_circle(circle):
if dimensionCoordinates==2:
if dimensionAttributes==0:
point=(float(circle.attrib['cx']),float(circle.attrib['cy']))
elif dimensionAttributes==1:
point=(float(circle.attrib['cx']),float(circle.attrib['cy']),float(circle.attrib['i']))
else:
print "dimensionCoordinates",dimensionCoordinates,"dimensionAttributes",dimensionAttributes,"not known. Will ABORT!!!"
assert(False)
# done if
else:
print "dimensionCoordinates",dimensionCoordinates,"dimensionAttributes",dimensionAttributes,"not known. Will ABORT!!!"
assert(False)
# done if
if debug:
print "point",point
return point
# done function
def get_tree(svg_file_name):
return ET.parse(svg_file_name)
# done function
def get_list_point(tree):
# using list comprehension to be more concise
list_point=[
get_point_from_circle(circle)
for circle in tree.iter(TAG_NAME_CIRCLE)
]
if debug:
print "list_point",list_point
return list_point
# done function
def get_list_point_with_the_same_point_id(tree, point_id):
# using list comprehension to be more concise
list_point=[
get_point_from_circle(circle)
for circle in tree.iter(TAG_NAME_CIRCLE)
if 'id' in circle.attrib
if circle.attrib['id']==point_id
]
if debug:
print "list_point with same point_id",list_point
return list_point
# done function
def get_list_point_with_the_same_group_id(tree, group_id):
# using list comprehension to be more concise
list_point=[
point
for group in tree.iter(TAG_NAME_GROUP)
if 'id' in group.attrib
if group.attrib['id']==group_id
for point in get_list_point(group)
]
if debug:
print "list_point with same group_id",list_point
return list_point
# done function
### find the closest point with the brute force method ###
def get_distance_squared(pointA,pointB,list_tolerance=None,metric="euclidean"):
# if any of points is none, return an infinite distance
if pointA==None or pointB==None:
return infinity
text_error="does not have the dimension of "+str(dimensionPoint)+", made of "+str(dimensionCoordinates)+" coordinates plus "+str(dimensionAttributes)+" attributes. Will ABORT!!!"
# these steps are called destructurize the ntuples in X,Y,I
if len(pointA)!=dimensionPoint:
print "pointA",pointA,text_error
assert(False)
# done if
if len(pointB)!=dimensionPoint:
print "pointB",pointB,text_error
assert(False)
# done if
# convert to numpy arrays so that we can make the differences one by one
nparray_A=np.asarray(pointA) # A
nparray_B=np.asarray(pointB) # B
nparray_adAB=np.absolute(nparray_A-nparray_B) # element-wise absolute difference of A-B
# the squared distance in the space of N dimensions, find out what N is as a function of the metric
if metric=="euclidean":
N=dimensionCoordinates # N=1,2,3, ignore the attributes
elif metric=="all":
N=dimensionPoint # N uses also the attributes, may be tried out in the future
else:
print "metric",metric,"not known. Choose euclidean, all. Will ABORT!!!"
assert(False)
# done if
# compare the differences between the two points with the given tolerances
nparray_adAB_coordinates=nparray_adAB[0:N] # keep only the N first elements
nparray_adAB_coordinates_squared=np.power(nparray_adAB_coordinates,2) # square the array
distance_squared=np.sum(nparray_adAB_coordinates_squared) # sum the array
if debug:
print "distance_squared",distance_squared
# if not list of tolerance given, return the distance squared
if list_tolerance==None:
return distance_squared
# if here it means the tolerance checked was asked for, so check the list of tolerance has the right number of dimensions
if len(list_tolerance)!=dimensionPoint:
print "list_tolerance",list_tolerance,text_error
assert(False)
# if here it means that the tolerance has the same number of dimensions as points A and B and same as to what was asked for
nparray_T=np.asarray(list_tolerance) # element-wise expected tolerance
nparray_adAB_minus_T=nparray_adAB-nparray_T # element wise expected absolut differences minus the tolerances
failed_tolerance=(nparray_adAB_minus_T>0).any() # if any of these elements is larger than zero, we have broken the tolerance
if failed_tolerance:
if debug:
print "Tolerance failed A",nparray_A,"B",nparray_B,"adAB_minus_T",nparray_adAB_minus_T,"adAB",nparray_adAB,"T",nparray_T
return infinity
else:
return distance_squared
# done if
# done function
def get_closest_point(pivot,list_point,list_tolerance=None):
closest_index=None
closest_point=None
closest_distance_squared=infinity
for current_index,current_point in enumerate(list_point):
if debug:
print "current_index",current_index,"current_point",current_point
current_distance_squared=get_distance_squared(pivot,current_point,list_tolerance)
if debug:
print "current_distance_squared",current_distance_squared
if current_distance_squared<closest_distance_squared:
closest_index=current_index
closest_point=current_point
closest_distance_squared=current_distance_squared
if debug:
print "closest_index",closest_index,"closest_point",closest_point,"closest_distance_squared",closest_distance_squared
# done if
# done for loop
if debug or verbose:
print "Studied in the euclidian space in "+str(dimensionPoint)+" total dimenensions, made of "+str(dimensionCoordinates)+" coordinates plus "+str(dimensionAttributes)+" attributes. Searched the closest point for the",pivot," with list_tolerances",list_tolerance," The result is the point",closest_point,"with the closest_index",closest_index,"got closest_distance_squared",closest_distance_squared
return closest_index,closest_point,closest_distance_squared
# done function
### putting it all together to prepare to run ###
def doItOne(option):
if debug:
print "doItOne() with option",option
print ""
tree=get_tree(svg_file_name)
list_point=get_list_point_with_the_same_group_id(tree,"points")
if verbose:
print "list_point",list_point
[pivot]=get_list_point_with_the_same_point_id(tree,"pivot")
if verbose:
print "pivot",pivot
if verbose:
print ""
print "with list_tolerance",None
closest_index,closest_point,closest_distance_squared=get_closest_point(pivot,list_point)
if verbose:
print ""
print "with list_tolerance",list_tolerance
closest_index,closest_point,closest_distance_squared=get_closest_point(pivot,list_point,list_tolerance)
# done function
def doItAll():
for option in list_option:
if debug:
print "option",option
doItOne(option)
None
# done function
#################################################################
################### Run #########################################
#################################################################
doItAll()
#################################################################
################### Finished ####################################
#################################################################
print ""
print ""
print "Finished all in",sys.argv[0]
<file_sep>#!/usr/bin/python
import sys
from decorators import *
from itertools import permutations
from collections import Counter
total = len(sys.argv)
# number of arguments plus 1
if total!=1:
print "You need some arguments, will ABORT!"
print "Ex: ",sys.argv[0]," "
assert(False)
# done if
#################################################################
################### Question ####################################
#################################################################
#You are given two strings. Write a Python function which would check
#if one of them can be obtained from the other simply by permutation of
#characters. The function should return True if this is possible and False
#if it is not possible. Example: for the pair (qwerty, wqeyrt) it should
#return True and for the pair (aab, bba) it should return False.
#################################################################
################### Configurations ##############################
#################################################################
debug=False
verbose=False
list_pair=[
("aab","bba"),
("qwerty","wqeyrt"),
("abgtyqwerty","tywqeyrtagb"),
("abgtaabgaja","aabgajbatag"),
("abgtaabgaja","tywqeyrtagb"),
# ("abgtaabgajaiuyty","aabgajbatagtyyui"),
]
list_algo=[
"2", # recommended
"1", # 12 characters is already at maximum time of 15 minutes, !n, so 13 characters are 15 min times 13, so about 3 hours, so un-scalable
]
#################################################################
################### Regular Functions ###########################
#################################################################
@timing
# @debugging
def checkPermutationsAlgo1(left,right):
# the simplest solution, brute force, the most inneficient, would be to
# start with left and compute all the permutations possible
# for each computed permutation check if equal with the right
# if matched, return true, else continue to the next permutation
#
# we trust the permutation algorithm from Python
# that the permutations are computed in the most efficient way
# in terms of memory and CPU
iterator_permutations_left=permutations(left)
for iterator in iterator_permutations_left:
if debug:
print "iterator",iterator
permutation_left=''.join(iterator)
if debug:
print "permutation_left",permutation_left
if permutation_left==right:
if verbose or debug:
print "Found matching permutation, so return True."
return True
# done if
# done for loop over permutations
if verbose or debug:
print "End of loop over permutations."
print "if reached here, then no match was found, so return False."
return False
# done function
@timing
# @debugging
def checkPermutationsAlgo2(left,right):
# Algo1 has the disadvantage that one needs to calculate all the permutations first
# which grows with factorial of N, the number of letters in the words
# Algo1 can not end until the exact match is found
# In Algo2 we change the approach: the run can end as soon as we know a permutation is not possible
# We use the fact that a permutation can happen if each letter from left is present to the right
# and (very importantly!) with the same number of counts
# then we check each letter from the left word and if it is not present, or is present but has another count
# in the word to the right, it means there is no permutation, so return false
# we can code our own functions, but we can use Python's tools that are optmised in terms of memory and CPU
#
counter_left=Counter(left)
counter_right=Counter(right)
if debug:
print "counter_left",counter_left
print "counter_right",counter_right
# done if
# loop over the unique elements of each counter, and check if the element exists in the other counter
# if not, return False
# if yes, then compare the count numbers; if not the same, return False
# if yes, continue
# if reached outside the loop, it means it is all identical counts, so return true
for letter in counter_left:
count_left=counter_left[letter]
count_right=counter_right[letter]
if debug:
print "letter",letter,"count_left",count_left,"count_right",count_right
if count_left != count_right:
return False
# done loop over all letters
# if still here, we got all the letters matched to the same count
# we can return True
return True
# done function
def checkPermutationsPair(pair):
if verbose:
print "Start checkPermutations with pair",pair
(left,right)=pair
# if the two strings do not have the same name, they can not be one permutation of the other
# so return False
if len(left)!=len(right):
if verbose or debug:
print "The two strings have different lengths,",len(left),len(right),"so they can not be permutations of the other. Return False."
return False
else:
if verbose or debug:
print "The two strings have the same length, so we can proceed."
length=len(left)
# done if
for algo in list_algo:
if algo=="1":
existPermutation=checkPermutationsAlgo1(left,right)
elif algo=="2":
existPermutation=checkPermutationsAlgo2(left,right)
else:
print "algo",algo,"not found. Choose 1 or 2. Will ABORT!!!"
assert(False)
# done if
# done loop over algo
# done function
#################################################################
################### Run #########################################
#################################################################
for pair in list_pair:
checkPermutationsPair(pair)
# done loop over pair
#################################################################
################### Finished ####################################
#################################################################
print ""
print ""
print "Finished all in",sys.argv[0]
<file_sep>#!/usr/bin/env python3
import math
import inspect
from array import array
# this allows you to call console (bash) commands into your script
from subprocess import call
import subprocess
# help us see if a file exists
import os.path
# import operator needed to sort dictionaries in a list
import operator
# to catch the stdout from ROOT in a text file
import os,sys
from glob import glob
# shell utitiles, e.g. rmtree remove recursively in the folder
import shutil as sh
# for checking the itme stamps on the files
import datetime
# time measurement
from time import time
from timeit import default_timer as timer
# deep copy for dictionaries
from copy import deepcopy
import copy
# named tuple
from collections import namedtuple
# to get line number
from inspect import currentframe
# regular expressions
import re
# import itertools to concatenate lists
import itertools
#https://www.ics.uci.edu/~alspaugh/cls/shr/regularExpression.html
def match_regularExpression_in_string(regex, text):
pattern = re.compile(regex, text)
return pattern.search(text) is not None
# done function
def get_lineNumber():
cf = currentframe()
return cf.f_back.f_lineno
# done function
def listVariables(name,prefix):
return prefix+name.replace(',',','+prefix)
# done function
def updateListVariables(prefix,name,suffix):
return prefix+name.replace(',',suffix+','+prefix)+suffix
# done function
def getProcessName(fileNameStem,debug=False):
if debug:
print("fileNameStem",fileNameStem)
fileNameStemSplitByUnderscore=fileNameStem.split("_")
# now pick the last before last element, which means the process
# as the last means _merged or _0
processName=fileNameStemSplitByUnderscore[-2]
if debug:
print("processStem",processName)
return processName
# done function
def doesFileExist(filename, debug):
if os.path.isfile(filename):
if debug:
print("DEBUG: File: %s Exisits" % (filename))
return True
else:
return False
# done function
def OpenFile(filename, debug):
try:
file = open(filename,"r")
if debug:
print("DEBUG: Opening File: %s" % (filename))
return file
except IOError (erno, sterror):
print("IOError error(%s): %s" % (errno, strerror))
except:
print("Unexpected error:", system.exc_info()[0])
raise
# done function
def dictMaker(dictObjects, debug):
dict = {}
for name in dictObjects.split(","):
title = name.rstrip()
key = ""
value = ""
dict[name.split(":")[0]] = name.split(":")[1]
if debug :
print("DEBUG: Dict: %s" % (dict))
return dict
# done function
def tupleMaker(filename, debug):
arg_list = OpenFile(filename, debug)
tuple = []
for histo_info in arg_list:
if not histo_info.startswith("#"):
parsed_arg = [x.strip() for x in histo_info.split(',')]
tuple.append(parsed_arg)
if debug:
print("\nDEBUG: TUPLE OF FILE: %s\n %s\n" % (filename, tuple))
return tuple
# done function
# used to run over files in step, for example a root file has 310000 events
# and we want to run on 7 files, each having 50000 events and the last one
# having 10000
# we run on all events with a step of 50000
def getListSteps(nrEntries,event_step,debug):
if debug:
print(type(nrEntries))
print(type(event_step))
print("event_step",event_step)
result=[]
remainder=nrEntries%event_step
nrSteps=(nrEntries-remainder)/event_step
if debug:
print("nrEntries",nrEntries,"event_step",event_step,"nrSteps",nrSteps,"plus remainder",remainder)
for i in xrange(nrSteps):
result.append((1+i*event_step,(i+1)*event_step))
result.append((1+nrSteps*event_step,nrEntries))
if debug:
print("getListSteps",result)
return result
#done function
def getModTime(file,debug):
if debug:
print("file name",file)
if os.path.exists(file):
t = os.path.getmtime(file)
result=datetime.datetime.fromtimestamp(t)
else:
result=0
# done if
if debug:
print("result=",result)
return result
# done function
def find_if_we_run_given_timestamps_input_output_files(fileInputName,fileOutputName,debug):
TimeFileInput = getModTime(fileInputName,debug)
TimeFileOutput = getModTime(fileOutputName,debug)
file_input_exists = TimeFileInput != 0
file_output_exists = TimeFileOutput != 0
file_input_newer_than_file_output = False
if file_input_exists and file_output_exists:
file_input_newer_than_file_output = TimeFileInput > TimeFileOutput
# run only if the input file exists and either the output file does not exist or it is older than the input file
shall_we_run=file_input_exists and (not file_output_exists or file_input_newer_than_file_output)
if debug:
print("file_input_exists", file_input_exists)
print("file_output_exists", file_output_exists)
print("file_input_newer_than_file_output", file_input_newer_than_file_output)
print("shall_we_run",shall_we_run)
# ready to return
return shall_we_run
# done function
def testTrainRankCalc(t_train, t_test):
t_rank = []
for i in xrange(len(t_train)):
rank = abs((t_train[i][1] - t_test[i][1])/t_train[i][1])
l_rank = [t_train[i][0], rank]
t_rank.append(l_rank)
d_rank = {}
for i in xrange(len(t_rank)):
d_rank[t_rank[i][0]] = t_rank[i][1]
return d_rank
# done function
#########################################################
############### Automatic binning #######################
#########################################################
def get_string_from_listString(listString,debug=False):
result=""
for i,name in enumerate(listString):
if i!=0:
result+="_"
result+=name
# done for
return result
# done function
def concatenate_two_listString(list1,list2,debug):
result=[]
for i in list1:
for j in list2:
result.append(i+"_"+j)
return result
# done function
def concatenate_two_list_bk1(list1,list2,debug):
if debug:
print("list1",list1)
print("list2",list2)
result=[]
for i1 in list1:
temp1=[]
temp1.append(i1)
for i2 in list2:
temp2=temp1[:]
temp2.append(i2)
result.append(temp2)
# done loop over list2
# done loop over list1
return result
# done function
def concatenate_two_list(list1,list2,debug):
if debug:
print("list1",list1)
print("list2",list2)
result=[]
for i2 in list2:
temp2=list1[:]
temp2.append(i2)
result.append(temp2)
# done loop over list2
return result
# done function
def concatenate_all_list(listBig,debug):
result=[]
for big in listBig:
if debug:
print("big",big)
print("result before",result)
result=concatenate_two_list(result,big,debug)
if debug:
print("result after",result)
# done loop over listBig
return result
# done function
def concatenate_2_list(list1,list2,debug):
if debug:
print("list1",list1)
print("list2",list2)
result=[]
for i1 in list1:
for i2 in list2:
result.append([i1,i2])
# lone loop over list2
# done loop over list1
return result
# done function
def concatenate_3_list(list1,list2,list3,debug):
if debug:
print("list1",list1)
print("list2",list2)
print("list3",list3)
result=[]
for i1 in list1:
for i2 in list2:
for i3 in list3:
result.append([i1,i2,i3])
# lone loop over list3
# lone loop over list2
# done loop over list1
return result
# done function
def concatenate_21_list(listList,list3,debug):
if debug:
print("listList",listList)
print("list3",list3)
result=[]
for myList in listList:
if debug:
print("myList",myList)
for i3 in list3:
if debug:
print("i3",i3)
currentMyList=myList[:]
currentMyList.append(i3)
result.append(currentMyList)
# lone loop over list2
# done loop over list1
return result
# done function
def concatenate_list_to_list_of_list(myListOfList,myNewList,debug):
if debug:
print("myListOfList",myListOfList)
print("myNewList",myNewList)
result=[]
for myList in myListOfList:
if debug:
print("myList",myList)
for element in myNewList:
if debug:
print("element",element)
currentMyList=myList[:]
currentMyList.append(element)
result.append(currentMyList)
# lone loop over list2
# done loop over list1
return result
# done function
def concatenate_all(listAll,debug):
result=[[]]
for myNewList in listAll:
result=concatenate_list_to_list_of_list(result,myNewList,debug)
return result
# done function
def get_string_value(axis_name,variable_name,variable_value):
result="%-2s %-30s %-.2f" % (axis_name,variable_name,variable_value)
return result
# done function
def get_string_scale_resolution(fit_name,scale_value,resolution_value):
result="%-7s %-.2f %-.2f" % (fit_name,scale_value,resolution_value)
return result
# done function
# dict_A: dictionary A -> a list of B
# dict_B; dictionary B -> a list of C
# one C can appear in several of lists of C
# here we want a combined list of A where each element of A appears only once
# here we want a combined list of B where each element of B appears only once
# here we want a combined list of C where each element of C appears only once
def get_lists_with_unique_elements_from_two_nested_dictionaries(dict_A,dict_B,debug=False,verbose=False):
list_A=dict_A.keys()
list_B=[]
list_C=[]
for A in list_A:
current_list_B=dict_A[A]
for B in current_list_B:
if B in list_B:
continue
list_B.append(B)
current_list_C=dict_B[B]
for C in current_list_C:
if C in list_C:
continue
list_C.append(C)
# done loop over current_list_C
# done for loop over current_list_B
# done for loop over dict_A
# sort the lists alphabetically
list_A=sorted(list_A)
list_B=sorted(list_B)
list_C=sorted(list_C)
if debug:
print("list_A:")
for A in list_A:
print(A)
print("list_B:")
for B in list_B:
print(B)
print("list_C:")
for C in list_C:
print(C)
# done if
# all done, so return
return list_A,list_B,list_C
# done function
def get_duration_of_run(time_start,time_previous,option,debug):
if option=="start":
time_first=time_start
elif option=="current":
time_first=time_previous
else:
print("Option",option,"not known in get_duration_of_run(...). Choose start or current. Will ABORT!!!")
assert(False)
# done if
time_current=time()
if debug:
print("current",time_current,"first",time_first,"previous",time_previous)
seconds=time_current-time_first
minutes=seconds/60.0
hours=minutes/60.0
result="%-.0f s. %-.1f min. %-.3f h." % (seconds,minutes,hours)
time_previous=deepcopy(time_current)
if debug:
print("result",result)
return time_previous,result
# done function
def get_use_from_bool(option,debug=False):
if option==True:
result="1"
else:
result="0"
if debug:
print("option",option,"result",result)
return result
# done function
def get_today_as_string(debug=False):
today=datetime.date.today()
string_today=today.strftime("%d %b %Y") # e.g. 04 Aug 2019
if debug:
print("string_today",string_today)
return string_today
# done function
def a():
print("")
print("")
print("ABORT voluntarity so that we run the code only up to this point for debugging.")
assert(False)
# done function
# user gives "101001"; this convers to int that is interpreted as bool
# to decide what steps to run on on what steps not to run on
def get_list_steps(doStage,debug=False):
if debug:
print("Start get_list_steps(doStage): len(doStage)",len(doStage),"doStage",doStage)
if len(doStage)==5:
list_steps=[]
for c in doStage:
if debug:
print("c",c)
if not (c=="0" or c=="1"):
print("character c",c,"not 0 or 1 as part of doStage",doStage,". Will ABORT!!!!")
assert(False)
# done if
list_steps.append(int(c))
# done loop over characters
if debug:
print("for 5 characters, list_steps",list_steps)
# done if doStage has 5 arguments
else:
print("doStage",doStage,"does not have 5 elements. Will ABORT!!!")
assert(False)
# done if
return list_steps
# done function
#########################################################
############### End all ###################
#########################################################
<file_sep>#!/usr/bin/python
import sys
from decorators import *
import numpy as np
total = len(sys.argv)
# number of arguments plus 1
if total!=1:
print "You need some arguments, will ABORT!"
print "Ex: ",sys.argv[0]," "
assert(False)
# done if
#################################################################
################### Question ####################################
#################################################################
# On a chessboard 8x8 some of the squares are marked as available and some
# as unavailable. This information is given to you in a form of a numpy array
# which contains 1 in unavailable cells and 0 everywhere else. Both upper
# left corner and bottom right corner are available. You need to find the
# length of the shortest path from one corner to another which only passes
# through available cells or return -1 if such path does not exist. Explain
# the idea of the algorithm or write the code in your favourite language.
# Diagonal moves are not allowed:
# from the current cell one can move to one of the cells above, below, to the right, or the left, i.e.
# (x, y) -> (x+1, y)
# (x, y) -> (x-1, y)
# (x, y) -> (x, y+1)
# (x, y) -> (x, y-1)
# The length of the path is defined simply as the total number of moves.
#################################################################
################### My additions ################################
#################################################################
# My additions:
# Fill with with 2 the good (shortest) path.
# Fill with 9 the squares from the path explored to not be good.
# The solutions are equivalent if we go from one corner to the other or vice versa
# So let's choose a convention from top left (0,0) -> bottom right (7,7)
# When board given, first check it obbeys the rules of the program
#################################################################
################### My strategy #################################
#################################################################
# Brute force would be to calculate all the possible paths
# and if any compare them by length and pick the shortest
# But we want to find the result in the shortest amount of operations
# so we should not use brute force, but find a smarter shortcut
# We use a recursive function with a backtracking option.
# From every square, explore the four possible moves in a pre-defined order
# check for each if it is allowed (not forbidden, not out of the box,
# and not one where we were there already and it was not good)
# if it is good, keep going and explore in the same order the possiblities
# hence recursiveness
# if road gets blocked, backtrack once, if all options blocked, backtrack again
#################################################################
################### Configurations ##############################
#################################################################
debug=False
verbose=False
N=8
NN=N*N
list_boardName=[
"boardA",
"boardB",
"boardC",
"boardD",
"boardE",
]
dict_boardName_board={
"boardA":np.array([
[0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0],
]),
"boardB":np.array([
[0,1,0,0,0,0,0,0],
[0,0,0,1,0,0,0,0],
[0,0,0,0,1,0,0,0],
[0,0,0,0,0,1,1,1],
[0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0],
]),
"boardC":np.array([
[0,0,1,0,1,0,0,0],
[0,0,1,0,1,0,0,0],
[0,0,0,0,1,0,0,0],
[1,1,1,0,1,0,0,0],
[0,0,0,0,1,0,0,0],
[1,0,1,1,1,0,0,0],
[0,0,0,0,1,0,0,0],
[0,0,1,0,0,0,0,0],
]),
"boardD":np.array([
[0,0,1,0,0,0,1,0],
[0,0,0,0,1,0,0,0],
[0,0,0,0,1,0,0,1],
[1,1,1,1,1,0,0,0],
[0,0,0,0,0,0,0,1],
[0,0,0,0,0,0,0,0],
[0,0,0,0,0,1,1,1],
[0,0,0,0,0,0,0,0],
]),
"boardE":np.array([
[0,0,1,0,0,0,1,0],
[0,0,0,0,1,0,0,0],
[0,0,0,0,1,0,0,1],
[1,1,1,1,1,0,0,0],
[0,0,0,0,0,0,0,1],
[0,0,0,0,0,0,0,0],
[0,0,0,0,0,1,1,1],
[0,0,0,0,0,1,0,0],
]),
}
#################################################################
################### Regular Functions ###########################
#################################################################
# @debugging
def getBoardImage(board):
result=""
for i in xrange(N):
for j in xrange(N):
if j!=0:
result+=" "
result+=str(board[i][j])
if i!=N-1:
result+="\n"
return result
# done function
def drawBoard(title,board):
print title
print getBoardImage(board)
# done function
# @debugging
def checkCorrectnessBoard(board):
'''Check that:
o top left corner and bottom right corners are available (0)
o all other squares are either available (0) or unvailable (1)
'''
if board[(0,0)]!=0:
print "The starting point corner of top left (0,0), should be available with a value of 0. So board not correct."
return False
if board[(N-1,N-1)]!=0:
print "The destination corner of bottom right (N-1,N-1), should be available with a value of 0. So board not correct."
return False
# done if
for i in xrange(N):
for j in xrange(N):
position=(i,j)
state=board[position]
if debug:
print "position","state",position,state
if not (state==0 or state==1):
if debug:
print "i={} j={} state={} not good, as it must be 0, or 1. So board not correct.".format(position[0],position[1],state)
return False
# done if
# done loop over j
# done loop over i
return True
# done function
# @debugging
def isSquareAllowed(board,i,j):
# skip the potential new position if
# - it is not on the board
# - it is in a forbidden square
if i<0 or i>N-1:
# the horizontal (i) coordinate is outside of the board
return False
if j<0 or j>N-1:
# the vertical (j) coordinate is outside of the board
return False
if board[i][j]==1:
# it is a position not allowed on the board
return False
if board[i][j]>=2:
# we already went here enough times, so avoid it, as you go in a loop
return False
# if here, the square is allowed
return True
# done function
# @debugging
def solveRecursive(board,i,j,):
if debug:
drawBoard("Temp",board)
if i==N-1 and j==N-1:
# we reached the destination
board[i][j]=2
return True
# done if
if isSquareAllowed(board,i,j)==True:
# go to that square
board[i][j]=2
# then try to go to neibourghs in all four directions
# since in most situations a path towards right/down
# is the most probable, with returns to left and up
# needed only if those paths are closed
# we choose the order: right, down, up, left
# if one finds the right path, then continues
# from that square also with the same order of trials
# hence a recursive function
# check right
if solveRecursive(board,i,j+1)==True:
return True
# check down
if solveRecursive(board,i+1,j)==True:
return True
# check left
if solveRecursive(board,i,j-1)==True:
return True
# check up
if solveRecursive(board,i-1,j)==True:
return True
# if none of these (but one should work, so we should choose three that are not from the direction we come from)
# then we need to come back, to back track, so it is a backtracking algorithm
# so consider we did not come here
board[i][j]=9
return False
# done if square is allowed
return False
# done if square is allowed
# done function
# @debugging
def solve(boardName):
board=dict_boardName_board[boardName]
correct=checkCorrectnessBoard(board)
if correct==False:
print "boardName",boardName,"is not correct, please amend it by reading the rules at the top of this file. Skipping this board."
return None
# done if
print ""
print "boardName="+boardName
drawBoard("Initial board, with 1 for forbidden and 0 where we never went.",board)
if solveRecursive(board,0,0)==False:
# path does not exist, return False, or -1 as we are asked
print "No solution exists, so return -1."
return -1
# print solution
drawBoard("Solution board with path shown in 2, and 9 where we went and was not good.",board)
# it worked fine return 0
return 0
# done function
#################################################################
################### Run #########################################
#################################################################
for boardName in list_boardName:
solve(boardName)
# done loop over boardName
#################################################################
################### Finished ####################################
#################################################################
print ""
print ""
print "Finished all in",sys.argv[0]
<file_sep>#!/usr/bin/env python
from HelperPython import *
total = len(sys.argv)
# number of arguments plus 1
if total!=1:
print("You need some arguments, will ABORT!")
print("Ex: ",sys.argv[0]," ")
assert(False)
# done if
#################################################################
################### Configurations ##############################
#################################################################
debug=True
list_option="A,B,C".split(",")
#################################################################
################### Functions ###################################
#################################################################
def doItOne(option):
if debug:
print("doItOne() with option",option)
None
# done function
def doItAll():
for option in list_option:
if debug:
print("option",option)
doItOne(option)
None
# done function
#################################################################
################### Run #########################################
#################################################################
doItAll()
#################################################################
################### Finished ####################################
#################################################################
print("")
print("")
print("Finished all in",sys.argv[0])
<file_sep>#!/usr/bin/python
from HelperPython import *
import xml.etree.ElementTree as ET
# re-implement on 19 June 2019 the example from https://github.com/tsoding/kdtree-in-python/blob/master/main.py
total = len(sys.argv)
# number of arguments plus 1
if total!=1:
print "You need some arguments, will ABORT!"
print "Ex: ",sys.argv[0]," "
assert(False)
# done if
#################################################################
################### Configurations ##############################
#################################################################
debug=False
verbose=True
list_option="A".split(",")
#svg_file_name="./points.svg"
#svg_file_name="./points2.svg"
svg_file_name="./pointsTutorial.svg"
TAG_NAME_CIRCLE='{http://www.w3.org/2000/svg}circle'
TAG_NAME_GROUP='{http://www.w3.org/2000/svg}g'
# assume a point is an ntuple with its positions
#################################################################
################### Functions ###################################
#################################################################
#### read the list of points from the svg file ###
def get_point_from_circle(circle):
point=(float(circle.attrib['cx']),float(circle.attrib['cy']))
if debug:
print "point",point
return point
# done function
def get_tree(svg_file_name):
return ET.parse(svg_file_name)
# done function
def get_list_point(tree):
# using list comprehension to be more concise
list_point=[
get_point_from_circle(circle)
for circle in tree.iter(TAG_NAME_CIRCLE)
]
if debug:
print "list_point",list_point
return list_point
# done function
def get_list_point_with_the_same_point_id(tree, point_id):
# using list comprehension to be more concise
list_point=[
get_point_from_circle(circle)
for circle in tree.iter(TAG_NAME_CIRCLE)
if 'id' in circle.attrib
if circle.attrib['id']==point_id
]
if debug:
print "list_point with same point_id",list_point
return list_point
# done function
def get_list_point_with_the_same_group_id(tree, group_id):
# using list comprehension to be more concise
list_point=[
point
for group in tree.iter(TAG_NAME_GROUP)
if 'id' in group.attrib
if group.attrib['id']==group_id
for point in get_list_point(group)
]
if debug:
print "list_point with same group_id",list_point
return list_point
# done function
### find the closest point with the brute force method ###
def get_distance_squared(point1,point2):
# these steps are called destructurize the ntuples
x1,y1=point1
x2,y2=point2
dx=x2-x1
dy=y2-y1
distance_squared=dx*dx+dy*dy
if debug:
print "x1",x1,"y1",y1,"x2",x2,"y2",y2,"distance_squared",distance_squared
return distance_squared
# done function
def get_closest_point(list_point, pivot):
closest_distance_squared=None
closest_point=None
for current_point in list_point:
if debug:
print "current_point",current_point
current_distance_squared=get_distance_squared(pivot,current_point)
if closest_distance_squared==None or current_distance_squared<closest_distance_squared:
closest_distance_squared=current_distance_squared
closest_point=current_point
if debug:
print "closest_point",closest_point,"closest_distance_squared",closest_distance_squared
# done if
# done for loop
if debug or verbose:
print "Closest point to the pivot",pivot,"is the point",closest_point
return closest_point, closest_distance_squared
# done function
### putting it all together to prepare to run ###
def doItOne(option):
if debug:
print "doItOne() with option",option
tree=get_tree(svg_file_name)
[pivot]=get_list_point_with_the_same_point_id(tree, "pivot")
print "pivot",pivot
list_point=get_list_point_with_the_same_group_id(tree, "points")
print "list_point",list_point
closest_point,closest_distance_squared=get_closest_point(list_point,pivot)
None
# done function
def doItAll():
for option in list_option:
if debug:
print "option",option
doItOne(option)
None
# done function
#################################################################
################### Run #########################################
#################################################################
doItAll()
#################################################################
################### Finished ####################################
#################################################################
print ""
print ""
print "Finished all in",sys.argv[0]
<file_sep># !/usr/bin/env python
# <NAME> (<EMAIL>)
# 03 Feb 2017, Python classes to summarise most common steps
# when doing a data analysis, like looping about categories, variables,
# summing up the singals and the backgrounds and data
# to stacked plots
# do sensitivies and yiels, in each category and combined
# to easily to optimisation studies
# comparison of a given process from different DSID, etc
from HelperPyRoot import *
import subprocess
from sets import Set
#######################################################
#### Class Analysis ###
#######################################################
class Analysis:
"""Analysis class, to add the mostly common function"""
"""To not have to write them any time we do a new analysis"""
### init
def __init__(self,name):
self.name=name
self.list_category=[] # empty list to store the categories
# done function
### setters
def set_stem(self,stem):
self.stem=stem
# e.g. 0L_31-15_a_MVA_TD
(self.channel,self.vtag,self.period,self.analysis,self.btag)=stem.split("_")
if True:
print "stem",stem,"(channel,vtag,period,analysis,btag)",(self.channel,self.vtag,self.period,self.analysis,self.btag)
def set_debug(self,debug):
self.debug=debug
def set_verbose(self,verbose):
self.verbose=verbose
def set_folderInput(self,folderInput):
self.folderInput=folderInput
def set_folderOutput(self,folderOutput):
self.folderOutput=folderOutput
os.system("mkdir -p "+ self.folderOutput)
def set_doFirst(self,doFirst):
self.doFirst=doFirst
def set_do_evaluate_list_processInitial(self,do_evaluate_list_processInitial):
self.do_evaluate_list_processInitial=do_evaluate_list_processInitial
def set_do_hadd_all_processInitial_to_produce_fit_inputs(self,do_hadd_all_processInitial_to_produce_fit_inputs):
self.do_hadd_all_processInitial_to_produce_fit_inputs=do_hadd_all_processInitial_to_produce_fit_inputs
def set_list_processInitial(self,list_processInitial):
self.list_processInitial=list_processInitial
def set_do_hadd_processInitial(self,do_hadd_processInitial):
self.do_hadd_processInitial=do_hadd_processInitial
def add_category(self,category):
self.list_category.append(category)
def set_list_category(self,list_category):
self.list_category=list_category
def set_list_variable(self,list_variable):
self.list_variable=list_variable
def set_list_process(self,list_process):
self.list_process=list_process
def set_do_evaluate_content_of_all_processInitial(self,do_evaluate_content_of_all_processInitial):
self.do_evaluate_content_of_all_processInitial=do_evaluate_content_of_all_processInitial
def set_do_overlay_histosRaw_by_processInitial(self,do_overlay_histosRaw_by_processInitial):
self.do_overlay_histosRaw_by_processInitial=do_overlay_histosRaw_by_processInitial
def set_do_later(self,do_later):
self.do_later=do_later
def set_do_create_histosRaw(self,do_create_histosRaw):
self.do_create_histosRaw=do_create_histosRaw
def set_do_create_histosProcess(self,do_create_histosProcess):
self.do_create_histosProcess=do_create_histosProcess
def set_do_create_histosProcessMerged(self,do_create_histosProcessMerged):
self.do_create_histosProcessMerged=do_create_histosProcessMerged
def set_do_create_results(self,do_create_results):
self.do_create_results=do_create_results
def set_do_create_latex_table(self,do_create_latex_table):
self.do_create_latex_table=do_create_latex_table
def set_do_create_stacked_plots(self,do_create_stacked_plots):
self.do_create_stacked_plots=do_create_stacked_plots
### actions
def create_folderProcessInitial(self):
self.folderProcessInitial=self.folderOutput+"/processInitial"
command="mkdir -p "+self.folderProcessInitial
if self.debug:
print "command="+command
os.system(command)
# done function
def do_hadd_all(self):
self.create_folderProcessInitial()
former_folderProcessInitial=self.folderProcessInitial
self.folderOutput=self.folderOutput.replace("_1","_2")
self.create_folderProcessInitial()
command="hadd -f "+self.folderProcessInitial+"/all.root "+former_folderProcessInitial+"/*.root"
if self.debug:
print "command="+command
os.system(command)
# done function
def create_folderFitInput(self):
self.folderFitInput=self.folderOutput+"/fitInput"
command="mkdir -p "+self.folderFitInput
if self.debug:
print "command="+command
os.system(command)
# done function
def evaluate_list_processInitial(self,option="ReaderBatch"):
if self.debug:
print "Start evaluate_list_processInitial()"
if option=="ReaderBatch":
inputFolder=self.folderInput
elif option=="processInitial":
inputFolder=self.folderProcessInitial
else:
print "Option",option,"not known. Will ABORTT!!"
assert(False)
# done if
if self.debug:
print "inputFolder",inputFolder
p = subprocess.Popen(
['ls', inputFolder],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
stdin=subprocess.PIPE
)
result=p.communicate()
output=result[0]
error=result[1]
if self.debug:
print "result",result
#
set_processInitial=Set()
for fileName in output.split():
if self.debug:
print "fileName",fileName
if ".root" not in fileName:
print "skipping non *.root file fileName",fileName
continue
# condor on lxplus produces driver.root in the fetch folder
if fileName=="driver.root":
continue
if option=="ReaderBatch":
# e.g. hist-data17-3.root
list_fileNameElement=fileName.split("-")
processInitial=list_fileNameElement[1]
elif option=="processInitial":
# e.g. data17.root
list_fileNameElement=fileName.split(".")
processInitial=list_fileNameElement[0]
else:
print "Option",option,"not known. Will ABORTT!!"
assert(False)
# done if
if self.debug:
print "processInitial",processInitial
set_processInitial.add(processInitial)
# done for loop
# sort alphabetically the set, it returns a list
list_processInitial=sorted(set_processInitial)
if self.debug:
print "list_processInitial",list_processInitial
for processInitial in list_processInitial:
print "processInitial",processInitial
# create the python file with the lists
outputFile=open(self.folderProcessInitial+"/list_processInitial.txt","w")
for processInitial in list_processInitial:
outputFile.write(processInitial+"\n")
# done function
def set_list_processInitial(self,list_processInitial):
self.list_processInitial=list_processInitial
if self.debug:
print "list_processInitial",self.list_processInitial
for processInitial in self.list_processInitial:
print "processInitial",processInitial
# done function
def set_evaluated_list_processInitial(self):
fileName=self.folderProcessInitial+"/list_processInitial.txt"
self.list_processInitial=get_list_from_file(fileName,self.debug)
# done function
def hadd_each_processInitial(self):
for processInitial in self.list_processInitial:
output=self.folderProcessInitial+"/"+processInitial+".root"
inputs=self.folderInput+"/hist-"+processInitial+"-*.root"
command="hadd -f "+output+" "+inputs
if self.debug:
print "command",command
os.system(command)
# done function
def hadd_tagFinal(self):
for processInitial in self.list_processInitial:
output=self.folderProcessInitial+"/"+processInitial+".root"
inputs=self.folderInput+"/hist-"+processInitial+"-*.root"
command="hadd -f "+output+" "+inputs
if self.debug:
print "command",command
os.system(command)
# done function
def evaluate_content_of_one_processInitial(self,processInitial,debug):
if self.debug:
print "Start evaluate_content_of_one_processInitial()"
fileName=self.folderProcessInitial+"/"+processInitial+".root"
directoryPath=""
searchClass="TH1F"
list_searchName=["",""]
doOption="C"
doShowIntegral=False
outputFileName=self.folderProcessInitial+"/"+processInitial+"_content.txt"
list_objectName=listObjects(fileName,directoryPath,searchClass,list_searchName,doOption,doShowIntegral,outputFileName,debug=debug)
if debug:
for objectName in list_objectName:
print "objectName",objectName
return list_objectName
# done function
def evaluate_content_of_all_processInitial(self):
if self.debug:
print "Start evaluate_content_of_all_processInitial()"
set_processInitial=Set()
set_process=Set()
set_category=Set()
set_variable=Set()
set_all=Set()
for processInitial in self.list_processInitial:
if True:
print "processInitial",processInitial
list_histoName=self.evaluate_content_of_one_processInitial(processInitial,False)
for histoName in list_histoName:
if self.debug:
print "histoName",histoName
# e.g. ttbar_3ptag5pjet_150ptv_SR_yBB
list_histoNameElement=histoName.split("_")
if self.debug:
print "list_histoNameElement",list_histoNameElement
#if "ttbar_dilep" in histoName or "stopWt_dilep" in histoName or "ggH125_bb" in histoName or "ggH125_inc" in histoName or "VBFH125_inc" in histoName or "ttbar_spin" in histoName:
# process=list_histoNameElement[0]+"_"+list_histoNameElement[1] # e.g. "ttbar_dilep or stopWt_dilep
# category=list_histoNameElement[2]+"_"+list_histoNameElement[3]+"_"+list_histoNameElement[4] # next three elements, eg. 3ptag5pjet_150ptv_SR
#else:
# only one word to define the process, e.g. ttbar or ttbarDilep
process=list_histoNameElement[0] # first element e.g. ttbar
index=None
for i,s in enumerate(list_histoNameElement):
if self.debug:
print "i,s",i,s
if "ptv" in s:
index=i
if self.debug:
print "index of element that contains ptv",index
if index==None:
print "list_histoNameElement",list_histoNameElement
if "jet" in list_histoNameElement[index-1]:
category=list_histoNameElement[1]+"_"+list_histoNameElement[2]+"_"+list_histoNameElement[3] # next three elements, eg. 3ptag5pjet_150ptv_SR or 3ptag5pjet_200ptv_SR
else:
category=list_histoNameElement[1]+"_"+list_histoNameElement[2]+"_"+list_histoNameElement[3]+"_"+list_histoNameElement[4] # next three elements, eg. 3ptag5pjet_150_200ptv_SR
# done if
variable=histoName.replace(process+"_"+category+"_","") # the rest, tricky as sometimes the name has an _ in it
if self.debug:
print "histoName",histoName,"list_histoNameElement",list_histoNameElement,"process",process,"category",category,"variable",variable
set_processInitial.add(processInitial)
set_process.add(process)
set_category.add(category)
set_variable.add(variable)
set_all.add(variable+","+category+","+process+","+processInitial)
# done for loop over histoName
# done for loop over processInitial
list_processInitial=sorted(set_processInitial)
list_process=sorted(set_process)
list_category=sorted(set_category)
list_variable=sorted(set_variable)
list_all=sorted(set_all)
if self.debug:
print "list_process",list_process
for processInitial in list_processInitial:
print "processInitial",processInitial
print "list_process",list_process
for process in list_process:
print "process",process
print "list_category",list_category
for category in list_category:
print "category",category
print "list_variable",list_variable
for variable in list_variable:
print "variable",variable
print "list_all",list_all
for all in list_all:
print "all",all
# create the python file with the lists
# list_processInitial
outputFileName=self.folderProcessInitial+"/list_processInitial.txt"
os.system("rm -f "+outputFileName)
outputFile=open(outputFileName,"w")
for processInitial in list_processInitial:
outputFile.write(processInitial+"\n")
outputFile.close()
# list_process
outputFileName=self.folderProcessInitial+"/list_process.txt"
os.system("rm -f "+outputFileName)
outputFile=open(outputFileName,"w")
for process in list_process:
if "QQ2H" in process or "GG2H" in process or process=="UNKNOWN":
continue
outputFile.write(process+"\n")
outputFile.close()
# list_category
outputFileName=self.folderProcessInitial+"/list_category.txt"
os.system("rm -f "+outputFileName)
outputFile=open(outputFileName,"w")
for category in list_category:
outputFile.write(category+"\n")
outputFile.close()
# list_variable
outputFileName=self.folderProcessInitial+"/list_variable.txt"
os.system("rm -f "+outputFileName)
outputFile=open(outputFileName,"w")
for variable in list_variable:
outputFile.write(variable+"\n")
outputFile.close()
# list_all
outputFileName=self.folderProcessInitial+"/list_all.txt"
os.system("rm -f "+outputFileName)
outputFile=open(outputFileName,"w")
for all in list_all:
outputFile.write(all+"\n")
outputFile.close()
# done function
def hadd_all_processInitial_to_produce_fit_inputs(self):
output=self.folderFitInput+"/LimitHistograms.VH.vvbb.13TeV.mc16a.AcademiaSinica.v02.root"
inputs=""
for processInitial in self.list_processInitial:
inputs+=" "+self.folderProcessInitial+"/hist-"+processInitial+"-*.root"
# done if
command="hadd -f "+output+" "+inputs
if self.debug:
print "command",command
# os.system(command)
# done function
def set_evaluated_list_process(self):
if self.debug:
print "Start set_evaluated_list_process()"
fileName=self.folderProcessInitial+"/list_process.txt"
self.list_process=get_list_from_file(fileName,self.debug)
# done function
def set_evaluated_list_category(self):
fileName=self.folderProcessInitial+"/list_category.txt"
self.list_category=get_list_from_file(fileName,self.debug)
# done function
def set_evaluated_list_variable(self):
fileName=self.folderProcessInitial+"/list_variable.txt"
self.list_variable=get_list_from_file(fileName,self.debug)
# done function
def set_evaluated_list_all(self):
fileName=self.folderProcessInitial+"/list_all.txt"
self.list_all=get_list_from_file(fileName,self.debug)
# done function
def create_folderHistos(self):
self.folderHistos=self.folderOutput+"/histos"
os.system("mkdir -p "+self.folderHistos)
# done function
def get_histoNameInitial(self,process,category,variable):
histoNameInitial=process+"_"+category+"_"+variable
if self.debug:
print "histoNameInitial",histoNameInitial
return histoNameInitial
# done function
def get_histoNameProcess(self,variable,category,process):
histoNameInitial=variable+"_"+category+"_"+process
if self.debug:
print "histoNameInitial",histoNameInitial
return histoNameInitial
# done function
def get_histoNameProcess_new(self,variable,category,process):
histoNameInitial=process+"_"+category+"_"+variable
if self.debug:
print "histoNameInitial_new",histoNameInitial
return histoNameInitial
# done function
def get_histoNameRaw(self,process,category,variable,processInitial):
if self.debug:
print "Start get_histoNameRaw()"
histoNameRaw=variable+"_"+category+"_"+process+"_"+processInitial
if self.debug:
print "histoNameRaw",histoNameRaw
return histoNameRaw
# done function
def set_fileNameHistosInput(self):
self.fileNameHistosInput=self.folderHistos+"/histosInput.root"
# done function
def set_fileNameHistosRaw(self):
# suffix=""
suffix="_"+self.list_category[0]+"_"+self.list_variable[0]
self.fileNameHistosRaw=self.folderHistos+"/histosRaw"+suffix+".root"
# done function
def create_histosRaw(self,option):
if self.debug or self.verbose:
print "Start create_histosRaw()"
# stores those histograms that exist, and puts them in the same folder
outputFile=TFile(self.fileNameHistosRaw,"RECREATE")
outputFile.Close()
for infoall in self.list_all:
list_infoall=infoall.split(",")
variable=list_infoall[0]
category=list_infoall[1]
process=list_infoall[2]
processInitial=list_infoall[3]
if option=="reduced":
if variable not in self.list_variable or category not in self.list_category or process not in self.list_process:
continue
if self.debug:
print "%-10s %-10s %-10s %-10s" % (variable,category,process,processInitial)
inputFileName=self.folderProcessInitial+"/"+processInitial+".root"
histoNameInitial=self.get_histoNameInitial(process,category,variable)
histoNameRaw =self.get_histoNameRaw (process,category,variable,processInitial)
histo=retrieveHistogram(fileName=inputFileName,histoPath="",histoName=histoNameInitial,name=histoNameRaw,returnDummyIfNotFound=True,debug=self.debug)
if histo=="dummy":
continue
outputFile=TFile(self.fileNameHistosRaw,"UPDATE")
histo.SetDirectory(outputFile)
histo.Write()
outputFile.Close()
# done for loop over all
# done function
def set_folderPlotsHistosRawByProcessInitial(self):
self.folderPlotsHistosRawByProcessInitial=self.folderOutput+"/plots_histosRaw_by_processInital"
os.system("mkdir -p "+self.folderPlotsHistosRawByProcessInitial)
# done function
def set_dict_variable_info(self):
if self.debug:
print "Start set_dict_variable_info()"
debug_binRange=False
# mBB
binRange_mBB=get_binRange(0,30,30,debug_binRange)+","+get_binRange(30,160,10,debug_binRange)+","+get_binRange(160,300,20,debug_binRange)+","+get_binRange(300,500,40,debug_binRange)
# mva EPS 2017 https://twiki.cern.ch/twiki/bin/viewauth/AtlasProtected/SMVHbbPublication2017BkgModelling#BDT_Binning
self.binRange_mva2J="-1,-0.91,-0.77,-0.542,-0.268,-0.05,0.094,0.194,0.278,0.358,0.424,0.48,0.53,0.584,0.656,1.0"
self.binRange_mva3J="-1,-0.848,-0.676,-0.492,-0.3,-0.126,0.03,0.158,0.272,0.362,0.44,0.51,0.576,0.644,0.722,1.0"
self.binRange_mBB=binRange_mBB
# self.binRange_pTB1=[get_binRange(0,300,10,debug_binRange)+","+get_binRange(300,400,20,debug_binRange)+","+get_binRange(400,500,50,debug_binRange)
self.dict_variable_info={
"EtaB1":[get_binRange(-2.5,2.5,0.2,debug_binRange)],
"EtaB2":[get_binRange(-2.5,2.5,0.2,debug_binRange)],
"EtaJ3":[get_binRange(-4.5,-2.5,0.5,debug_binRange)+","+get_binRange(-2.5,2.5,0.2,debug_binRange)+","+get_binRange(2.5,4.5,0.5,debug_binRange)],
"PhiB1":[get_binRange(-3.15,3.15,0.0315*10,debug_binRange)],
"PhiB2":[get_binRange(-3.15,3.15,0.0315*10,debug_binRange)],
"PhiJ3":[get_binRange(-3.15,3.15,0.0315*10,debug_binRange)],
"EtaFwdJets":[get_binRange(-4.5,4.5,0.1,debug_binRange)],
"EtaSigJets":[get_binRange(-2.5,2.5,0.1,debug_binRange)],
# "MET":[get_binRange(150,400,10,debug_binRange)+","+get_binRange(400,700,100,debug_binRange)],
"MET":[get_binRange(0,400,10,debug_binRange)],
"pTV":[get_binRange(150,400,10,debug_binRange)+","+get_binRange(400,600,50,debug_binRange)],
#"MET":[get_binRange(150,400,10,debug_binRange)],
"MET_Track":[get_binRange(0,300,10,debug_binRange)+","+get_binRange(300,400,100,debug_binRange)],
"MEff":[get_binRange(280,500,10,debug_binRange)+","+get_binRange(500,1000,20,debug_binRange)],
"MEff3":[get_binRange(280,500,10,debug_binRange)+","+get_binRange(500,1000,20,debug_binRange)],
"METDirectional":[""],
"MV2c10_B":[get_binRange(0.8,1,0.02,debug_binRange)],
"MV2c10_C":[get_binRange(0.8,1,0.02,debug_binRange)],
"MV2c10_L":[get_binRange(0.8,1,0.02,debug_binRange)],
"MV2c10_Data":[get_binRange(0.8,1,0.02,debug_binRange)],
"MV2cB1":[get_binRange(0.8,1,0.02,debug_binRange)],
"MV2cB2":[get_binRange(0.8,1,0.02,debug_binRange)],
"MV2c10_B":[get_binRange(0.8,1,0.02,debug_binRange)],
"btag_weight_B":[get_binRange(0.0,1,0.05,debug_binRange)],
"btag_weight_C":[get_binRange(0.0,1,0.05,debug_binRange)],
"btag_weight_L":[get_binRange(0.0,1,0.05,debug_binRange)],
"btag_weight_Data":[get_binRange(0.0,1,0.05,debug_binRange)],
"eff_B":[get_binRange(0.0,1,0.05,debug_binRange)],
"eff_C":[get_binRange(0.0,1,0.05,debug_binRange)],
"eff_L":[get_binRange(0.0,1,0.05,debug_binRange)],
"eff_Data":[get_binRange(0.0,1,0.05,debug_binRange)],
"MindPhiMETJet":[get_binRange(0.0315*0,3.15,0.0315*2,debug_binRange)],
"NTags":[""],
"Njets":[get_binRange(2,10,1,debug_binRange)],
"njets":[get_binRange(2,10,1,debug_binRange)],
"NFwdJets":[get_binRange(2,10,1,debug_binRange)],
"NSigJets":[get_binRange(2,10,1,debug_binRange)],
"SumPtJet":[get_binRange(120,400,10,debug_binRange)+","+get_binRange(400,600,50,debug_binRange)],
"HT":[get_binRange(240,560,20,debug_binRange)+","+get_binRange(560,600,20,debug_binRange)+","+get_binRange(600,1000,50,debug_binRange)],
"costheta":[get_binRange(0,1,0.05,debug_binRange)],
"dEtaBB":[get_binRange(0,1.5,0.1,debug_binRange)+","+get_binRange(1.5,2.5,0.2,debug_binRange)+","+get_binRange(2.5,4.5,1,debug_binRange)],
"dPhiBB":[get_binRange(0,3.2,5*0.032,debug_binRange)],
"dPhiMETMPT":[get_binRange(0,3.15-0.0315*48,0.0315,debug_binRange)],
"dPhiVBB":[get_binRange(3.2-35*0.032,3.2-20*0.032,5*0.032,debug_binRange)+","+get_binRange(3.2-20*0.032,3.2-10*0.032,2*0.032,debug_binRange)+","+get_binRange(3.2-10*0.032,3.2-0*0.032,1*0.032,debug_binRange)],
"dRB1J3":[get_binRange(0.4,3.4,0.1,debug_binRange)+","+get_binRange(3.4,5,0.2,debug_binRange)],
"dRB2J3":[get_binRange(0.4,3.4,0.1,debug_binRange)+","+get_binRange(3.4,5,0.2,debug_binRange)],
"dRBB":[get_binRange(0.4,0.7,0.1,debug_binRange)+","+get_binRange(0.7,1.0,0.1,debug_binRange)+","+get_binRange(1.0,3.0,0.2,debug_binRange)+","+get_binRange(3.0,4.0,0.5,debug_binRange)+","+get_binRange(4.0,5.0,1.0,debug_binRange)],
"mBB":[binRange_mBB],
"mBBMVA":[binRange_mBB],
"mBBNominal":[binRange_mBB],
"mBBOneMu":[binRange_mBB],
"mBBOneMu4GeV":[binRange_mBB],
"mBBOneMu5GeV":[binRange_mBB],
"mBBOneMu6GeV":[binRange_mBB],
"mBBOneMu7GeV":[binRange_mBB],
"mBBOneMu10GeV":[binRange_mBB],
"mBBOneMu12GeV":[binRange_mBB],
"mBBOneMu15GeV":[binRange_mBB],
"mBBOneMu20GeV":[binRange_mBB],
"mBBAllMu":[binRange_mBB],
"mBBOneMu2":[binRange_mBB],
"mBBAllMu2":[binRange_mBB],
"mBBAllMu2MuR":[binRange_mBB],
"mBBAllMu2MuRElR":[binRange_mBB],
"mBBPtReco":[binRange_mBB],
"nrMuonInJetB1":[get_binRange(0,3,1,debug_binRange)],
"nrMuonInJetB2":[get_binRange(0,3,1,debug_binRange)],
"nrMuonInJetJ3":[get_binRange(0,3,1,debug_binRange)],
"nrElectronInJetB1":[get_binRange(0,3,1,debug_binRange)],
"nrElectronInJetB2":[get_binRange(0,3,1,debug_binRange)],
"nrElectronInJetJ3":[get_binRange(0,3,1,debug_binRange)],
#"ptMuonInJetB1":["0,2,4,5,6,7,10,12,15,20,30,50,100"],
#"ptMuonInJetB2":["0,2,4,5,6,7,10,12,15,20,30,50,100"],
#"ptMuonInJetJ3":["0,2,4,5,6,7,10,12,15,20,30,50,100"],
"ptOneMuInJetB1":["1,2,3,4,7,10,12,15,20,30"],
"ptOneMuInJetB2":["1,2,3,4,7,10,12,15,20,30"],
"ptOneMuInJetJ3":["1,2,3,4,7,10,12,15,20,30"],
"dRMuonInJetB1":[get_binRange(0,0.1,0.01,debug_binRange)+","+get_binRange(0.1,0.4,0.05,debug_binRange)],
"dRMuonInJetB2":[get_binRange(0,0.1,0.01,debug_binRange)+","+get_binRange(0.1,0.4,0.05,debug_binRange)],
"dRMuonInJetJ3":[get_binRange(0,0.1,0.01,debug_binRange)+","+get_binRange(0.1,0.4,0.05,debug_binRange)],
"PtRatioOneElectronInJetB1":[get_binRange(0.0,0.1,0.01,debug_binRange)],
"PtRatioOneElectronInJetB2":[get_binRange(0.0,0.1,0.01,debug_binRange)],
"PtRatioOneElectronInJetJ3":[get_binRange(0.0,0.1,0.01,debug_binRange)],
"PtRatioOneMuonInJetB1":[get_binRange(0.0,0.1,0.01,debug_binRange)+","+get_binRange(0.1,0.2,0.02,debug_binRange)+","+get_binRange(0.2,1.0,0.05,debug_binRange)],
"PtRatioOneMuonInJetB2":[get_binRange(0.0,0.1,0.01,debug_binRange)+","+get_binRange(0.1,0.2,0.02,debug_binRange)+","+get_binRange(0.2,1.0,0.05,debug_binRange)],
"PtRatioOneMuonInJetJ3":[get_binRange(0.0,0.1,0.01,debug_binRange)+","+get_binRange(0.1,0.2,0.02,debug_binRange)+","+get_binRange(0.2,1.0,0.05,debug_binRange)],
"mBBJ":[get_binRange(40,80,20,debug_binRange)+","+get_binRange(80,160,10,debug_binRange)+","+get_binRange(160,300,20,debug_binRange)+","+get_binRange(300,500,40,debug_binRange)+","+get_binRange(500,700,50,debug_binRange)+","+get_binRange(700,1000,100,debug_binRange)],
"maxdRBJ3":[get_binRange(0.4,3.4,0.1,debug_binRange)+","+get_binRange(3.4,5,0.2,debug_binRange)],
"mindRBJ3":[get_binRange(0.4,3.4,0.1,debug_binRange)+","+get_binRange(3.4,5,0.2,debug_binRange)],
"AverageMu":[get_binRange(0,100,2,debug_binRange)],
"AverageMuScaled":[get_binRange(0,100,2,debug_binRange)],
"ActualMu":[get_binRange(0,100,2,debug_binRange)],
"ActualMuScaled":[get_binRange(0,100,2,debug_binRange)],
"PileupReweight":[""],
"RandomRunNumber":[""],
# "mva":[get_binRange(-1,1,0.05,debug_binRange)],
"mva":[self.binRange_mva2J],
"mvadiboson":[get_binRange(-1,1,0.05,debug_binRange)],
"nTaus":[get_binRange(0,3,1,debug_binRange)],
"pTB1":[get_binRange(0,240,10,debug_binRange)+","+get_binRange(240,300,20,debug_binRange)+","+get_binRange(300,400,50,debug_binRange)],
"pTB2":[get_binRange(0,140,10,debug_binRange)+","+get_binRange(140,160,20,debug_binRange)],
"PtFwdJets":[get_binRange(0,300,10,debug_binRange)+","+get_binRange(300,400,20,debug_binRange)+","+get_binRange(400,500,50,debug_binRange)],
"PtSigJets":[get_binRange(0,300,10,debug_binRange)+","+get_binRange(300,400,20,debug_binRange)+","+get_binRange(400,500,50,debug_binRange)],
"pTBB":[get_binRange(40,80,20,debug_binRange)+","+get_binRange(80,300,10,debug_binRange)+","+get_binRange(300,400,50,debug_binRange)],
"pTBBMETAsym":[get_binRange(-0.6,-0.2,0.1,debug_binRange)+","+get_binRange(-0.2,-0.1,0.05,debug_binRange)+","+get_binRange(-0.1,0.1,0.02,debug_binRange)+","+get_binRange(0.1,0.2,0.05,debug_binRange)],
"pTBBoverMET":[get_binRange(0.0,0.7,0.1,debug_binRange)+","+get_binRange(0.7,0.8,0.05,debug_binRange)+","+get_binRange(0.8,1.2,0.02,debug_binRange)+","+get_binRange(1.2,1.3,0.05,debug_binRange)+","+get_binRange(1.3,1.7,0.1,debug_binRange)],
"METOverSqrtHT":[get_binRange(0.2,0.7,0.1,debug_binRange)+","+get_binRange(0.7,1.2,0.02,debug_binRange)+","+get_binRange(1.2,1.6,0.1,debug_binRange)],
"METOverSqrtSumET":[get_binRange(0.2,0.7,0.1,debug_binRange)+","+get_binRange(0.7,1.2,0.02,debug_binRange)+","+get_binRange(1.2,1.6,0.1,debug_binRange)],
"METRho":[""],
"METSig":[""],
"METSig_hard":[""],
"METSig_soft":[""],
"METVarL":[""],
"METVarL_hard":[""],
"METVarL_soft":[""],
"METVarT":[""],
"pTJ3":[get_binRange(0,120,10,debug_binRange)+","+get_binRange(120,200,40,debug_binRange)],
"yBB":[get_binRange(0,2.5,0.1,debug_binRange)],
}
# done function
def get_dict_variable_info(self):
return self.dict_variable_info
# done function
def overlay_histosRaw_by_processInitial(self):
if self.debug:
print "Start overlay_histosRaw_by_processInitial()"
for variable in self.list_variable:
info=self.dict_variable_info[variable]
binRange=info[0]
for category in self.list_category:
for process in self.list_process:
list_tuple_h1D=[]
for i,processInitial in enumerate(self.list_processInitial):
if self.debug:
print "%-10s %-10s %-10s %-10s" % (variable,category,process,processInitial)
inputFileName=self.fileNameHistosRaw
histoNameRaw=self.get_histoNameRaw(process,category,variable,processInitial)
histo=retrieveHistogram(fileName=inputFileName,histoPath="",histoName=histoNameRaw,name="",returnDummyIfNotFound=True,debug=self.debug)
if histo=="dummy":
continue
histo=get_histo_generic_binRange(histo,binRange=binRange,option="average",debug=False)
histo.SetLineColor(list_color[i])
# normalise to unit area
histo=get_histo_normalised(histo)
list_tuple_h1D.append((histo,processInitial))
# done for loop over processInitial
if self.debug:
print "len(list_tuple_h1D)",len(list_tuple_h1D)
if len(list_tuple_h1D)==0:
continue
outputFileName=self.folderPlotsHistosRawByProcessInitial+"/overlay_"+variable+"_"+category+"_"+process
overlayHistograms(list_tuple_h1D,fileName=outputFileName,extensions="pdf",option="histo",doValidationPlot=False,canvasname="canvasname",addHistogramInterpolate=False,addfitinfo=False,addMedianInFitInfo=False,significantDigits=("3","3","3","3"),min_value=-1,max_value=-1,YTitleOffset=0.45,doRatioPad=True,min_value_ratio=0.8,max_value_ratio=1.2,statTitle="MC. stat uncertainty",statColor=6,ratioTitle="Ratio to one on top",plot_option="HIST E",plot_option_ratio="HIST",text_option=("#bf{#it{#bf{ATLAS} Simulation Internal}}?#bf{#sqrt{s}=13 TeV; VHbb 0L MVA selection}?#bf{Var "+variable+" Cat "+category+"}?#bf{Process "+process+"}",0.04,13,0.15,0.88,0.05),legend_info=[0.55,0.70,0.88,0.88,72,0.037,0],line_option=([0,0.5,0,0.5],2),debug=False)
# done for loop over process
# done for loop over category
# done for loop over variable
# done function
def set_fileNameHistosProcess(self):
# suffix=""
suffix="_"+self.list_category[0]+"_"+self.list_variable[0]
self.fileNameHistosProcess=self.folderHistos+"/histosProcess"+suffix+".root"
# done function
def create_histosProcess(self):
if self.debug or self.verbose:
print "Start create_histosProcess()"
# now we want to sum over processInitial for a given process
outputFile=TFile(self.fileNameHistosProcess,"RECREATE")
outputFile.Close()
for variable in self.list_variable:
counter_variable=0
for category in self.list_category:
for processRenamed in self.list_process:
if self.debug:
print "processRenamed",processRenamed
counter=0
if self.debug:
print " %-10s %-10s %-10s" % (variable,category,processRenamed)
list_processInfo=self.dict_process_info[processRenamed]
if self.debug:
print "list_processInfo",list_processInfo
list_processInfoToAdd=list_processInfo[0]
dict_jet_SF=list_processInfo[1]
for processInfo in list_processInfoToAdd:
process=processInfo[0]
processInitial=processInfo[1]
if self.debug:
print "%-10s %-10s %-10s %-10s" % (variable,category,process,processInitial)
inputFileName=self.fileNameHistosRaw
histoNameRaw =self.get_histoNameRaw (process,category,variable,processInitial)
histoNameProcess=self.get_histoNameProcess(variable,category,processRenamed)
histo=retrieveHistogram(fileName=inputFileName,histoPath="",histoName=histoNameRaw,name=histoNameProcess,returnDummyIfNotFound=True,debug=self.debug)
if histo=="dummy":
continue
if counter_variable==0:
if self.debug:
print "counter_variable=0"
print "type(histo)",type(histo)
histoReset=histo.Clone()
if self.debug:
print "type(histoReset)",type(histoReset)
histoReset.Reset()
counter_variable+=1
if counter==0:
histoProcess=histo
else:
histoProcess.Add(histo)
counter+=1
# done for loop over processInitial
if self.debug:
print "counter final",counter
if counter==0:
histoNameRaw =self.get_histoNameRaw ("ttbar",category,variable,"ttbar_nonallhad_PwPy8")
histoReset=retrieveHistogram(fileName=inputFileName,histoPath="",histoName=histoNameRaw,name=histoNameProcess,returnDummyIfNotFound=True,debug=self.debug)
histoReset.Reset()
histoProcess=histoReset
histoNameProcess=self.get_histoNameProcess(variable,category,processRenamed)
histoProcess.SetName(histoNameProcess)
histoProcess.SetTitle(histoNameProcess)
if self.debug:
print "counter",counter,"for process",process,"which was not found for category",category,"in list of processInitial",self.list_processInitial
outputFile=TFile(self.fileNameHistosProcess,"UPDATE")
histoProcess.SetDirectory(outputFile)
histoProcess.Write()
outputFile.Close()
# done for loop over process
# done for loop over category
# done for loop over variable
# done function
def set_list_process_info(self):
self.list_process=[
"qqZvvHbb",
"qqWlvHbb",
"ggZvvHbb",
"qqZllHbb",
"ggZllHbb",
"qqZvvHcc",
"qqWlvHcc",
"ggZvvHcc",
"qqZllHcc",
"ggZllHcc",
"qqZincH4l",
"qqWincH4l",
"ggH",
"ggHbb",
"bbH",
"VBF",
"ttH",
"WW",
"WZ",
"ZZ",
"ggZZ",
"ggWW",
"ZllZbb",
"ZvvZbb",
"WlvZbb",
"ZllZvv",
"Wbb",
"Wbc",
"Wbl",
"Wcc",
"Wcl",
"Wl",
"Zbb",
"Zbc",
"Zbl",
"Zcc",
"Zcl",
"Zl",
"ttbar",
"ttbarOld",
"ttbarDilep",
"ttbarDilepOld",
"ttbarSpin",
"stops",
"stopt",
"stopWt",
"stoptZq",
"ttV",
"ttVV",
"ttt",
"tttt",
"data",
#"dataB",
#"dijet",
# "",
]
dict_one_SF={"2":1.00,"3":1.00,"4":1.0,"5p":1.0}
# EPS 2017 with systematics fit
dict_Whf_SF={"2":1.27,"3":1.27,"4":1.0,"5p":1.0}
dict_Zhf_SF={"2":1.42,"3":1.31,"4":1.0,"5p":1.0}
dict_ttbar_SF={"2":0.97,"3":1.00,"4":1.0,"5p":1.0}
self.dict_process_info={
# example
# "processMine":[[["process","processInitial"],["process2","processInitial2"]],{"2":SF2jet,"3":SF3jet,"4":SF4jet,"5p":SF5pjet}],
# VHbb
"qqZvvHbb":[[["qqZvvH125","qqZvvHbbJ_PwPy8MINLO"]],dict_one_SF,],
"qqWlvHbb":[[["qqWlvH125","qqWlvHbbJ_PwPy8MINLO"]],dict_one_SF,],
"ggZvvHbb":[[["ggZvvH125","ggZvvHbb_PwPy8"]],dict_one_SF,],
"qqZllHbb":[[["qqZllH125","qqZllHbbJ_PwPy8MINLO"]],dict_one_SF,],
"ggZllHbb":[[["ggZllH125","ggZllHbb_PwPy8"]],dict_one_SF,],
# VHcc
"qqZvvHcc":[[["qqZvvH125cc","qqZvvHccJ_PwPy8MINLO"]],dict_one_SF,],
"qqWlvHcc":[[["qqWlvH125cc","qqWlvHccJ_PwPy8MINLO"]],dict_one_SF,],
"ggZvvHcc":[[["ggZvvH125cc","ggZvvHcc_PwPy8"]],dict_one_SF,],
"qqZllHcc":[[["qqZllH125cc","qqZllHccJ_PwPy8MINLO"]],dict_one_SF,],
"ggZllHcc":[[["ggZllH125cc","ggZllHcc_PwPy8"]],dict_one_SF,],
# other ZH
"qqZincH4l":[[["qqZincH4l","ZincHJZZ4l_PwPy8MINLO"]],dict_one_SF,],
"qqWincH4l":[[["qqWmincH4l","WincHJZZ4l_PwPy8MINLO"],["qqWpincH4l","WincHJZZ4l_PwPy8MINLO"]],dict_one_SF,],
# non ZH signals
"VBF":[[["VBFH125Inc","VBFHinc_PwPy8"]],dict_one_SF,],
"ggHbb":[[["ggH125bb","ggHbb_PwPy8NNLOPS"]],dict_one_SF,],
"ggH":[[["ggH125Inc","ggHinc_PwPy8"]],dict_one_SF,],
"bbH":[[["bbH125","bbHinc_aMCatNLOPy8"]],dict_one_SF,],
"ttH":[[["ttH","ttHinc_aMCatNLOPy8"]],dict_one_SF,],
# dijet
"dijet":[[["dijetJZW","MJ_Py8"]],dict_one_SF,],
# dibosons
"WW":[[["WW","WqqWlv_Sh221"]],dict_one_SF,],
"ggWW":[[["ggWW","ggWqqWlv_Sh222"]],dict_one_SF,],
"WZ":[[["WZ","WqqZvv_Sh221"],["WZ","WqqZll_Sh221"],["WZ","WlvZqq_Sh221"]],dict_one_SF,],
"ZZ":[[["ZZ","ZqqZvv_Sh221"],["ZZ","ZqqZll_Sh221"]],dict_one_SF,],
"ggZZ":[[["ggZZ","ggZqqZvv_Sh222"],["ggZZ","ggZqqZll_Sh222"]],dict_one_SF,],
"ZllZbb":[[["ZllZbb","ZZ_bb_Sh221"]],dict_one_SF,],
"ZvvZbb":[[["ZvvZbb","ZZ_bb_Sh221"]],dict_one_SF,],
"WlvZbb":[[["WlvZbb","WZ_bb_Sh221"]],dict_one_SF,],
"ZllZvv":[[["llvv","VV_fulllep_Sh222"]],dict_one_SF,],
# W+jets
"Wbb":[
[
["Wbb","WenuB_Sh221"],
["Wbb","WenuC_Sh221"],
["Wbb","WenuL_Sh221"],
["Wbb","Wenu_Sh221"],
["Wbb","WmunuB_Sh221"],
["Wbb","WmunuC_Sh221"],
["Wbb","WmunuL_Sh221"],
["Wbb","Wmunu_Sh221"],
["Wbb","WtaunuB_Sh221"],
["Wbb","WtaunuC_Sh221"],
["Wbb","WtaunuL_Sh221"],
["Wbb","Wtaunu_Sh221"],
],
dict_Whf_SF,
],
"Wbc":[
[
["Wbc","WenuB_Sh221"],
["Wbc","WenuC_Sh221"],
["Wbc","WenuL_Sh221"],
["Wbc","Wenu_Sh221"],
["Wbc","WmunuB_Sh221"],
["Wbc","WmunuC_Sh221"],
["Wbc","WmunuL_Sh221"],
["Wbc","Wmunu_Sh221"],
["Wbc","WtaunuB_Sh221"],
["Wbc","WtaunuC_Sh221"],
["Wbc","WtaunuL_Sh221"],
["Wbc","Wtaunu_Sh221"],
],
dict_Whf_SF,
],
"Wbl":[
[
["Wbl","WenuB_Sh221"],
["Wbl","WenuC_Sh221"],
["Wbl","WenuL_Sh221"],
["Wbl","Wenu_Sh221"],
["Wbl","WmunuB_Sh221"],
["Wbl","WmunuC_Sh221"],
["Wbl","WmunuL_Sh221"],
["Wbl","Wmunu_Sh221"],
["Wbl","WtaunuB_Sh221"],
["Wbl","WtaunuC_Sh221"],
["Wbl","WtaunuL_Sh221"],
["Wbl","Wtaunu_Sh221"],
],
dict_Whf_SF,
],
"Wcc":[
[
["Wcc","WenuB_Sh221"],
["Wcc","WenuC_Sh221"],
["Wcc","WenuL_Sh221"],
["Wcc","Wenu_Sh221"],
["Wcc","WmunuB_Sh221"],
["Wcc","WmunuC_Sh221"],
["Wcc","WmunuL_Sh221"],
["Wcc","Wmunu_Sh221"],
["Wcc","WtaunuB_Sh221"],
["Wcc","WtaunuC_Sh221"],
["Wcc","WtaunuL_Sh221"],
["Wcc","Wtaunu_Sh221"],
],
dict_Whf_SF,
],
"Wcl":[
[
["Wcl","WenuB_Sh221"],
["Wcl","WenuC_Sh221"],
["Wcl","WenuL_Sh221"],
["Wcl","Wenu_Sh221"],
["Wcl","WmunuB_Sh221"],
["Wcl","WmunuC_Sh221"],
["Wcl","WmunuL_Sh221"],
["Wcl","Wmunu_Sh221"],
["Wcl","WtaunuB_Sh221"],
["Wcl","WtaunuC_Sh221"],
["Wcl","WtaunuL_Sh221"],
["Wcl","Wtaunu_Sh221"],
],
dict_one_SF,
],
"Wl": [
[
["Wl" ,"WenuB_Sh221"],
["Wl" ,"WenuC_Sh221"],
["Wl" ,"WenuL_Sh221"],
["Wl" ,"Wenu_Sh221"],
["Wl" ,"WmunuB_Sh221"],
["Wl" ,"WmunuC_Sh221"],
["Wl" ,"WmunuL_Sh221"],
["Wl" ,"Wmunu_Sh221",],
["Wl" ,"WtaunuB_Sh221"],
["Wl" ,"WtaunuC_Sh221"],
["Wl" ,"WtaunuL_Sh221"],
["Wl" ,"Wtaunu_Sh221"],
],
dict_one_SF,
],
"Zbb":[
[
["Zbb","ZnunuB_Sh221"],
["Zbb","ZnunuC_Sh221"],
["Zbb","ZnunuL_Sh221"],
["Zbb","Znunu_Sh221"],
["Zbb","ZeeB_Sh221"],
["Zbb","ZeeC_Sh221"],
["Zbb","ZeeL_Sh221"],
["Zbb","Zee_Sh221"],
["Zbb","ZmumuB_Sh221"],
["Zbb","ZmumuC_Sh221"],
["Zbb","ZmumuL_Sh221"],
["Zbb","Zmumu_Sh221"],
["Zbb","ZtautauB_Sh221"],
["Zbb","ZtautauC_Sh221"],
["Zbb","ZtautauL_Sh221"],
["Zbb","Ztautau_Sh221"],
],
dict_Zhf_SF
],
"Zbc":[
[
["Zbc","ZnunuB_Sh221"],
["Zbc","ZnunuC_Sh221"],
["Zbc","ZnunuL_Sh221"],
["Zbc","Znunu_Sh221"],
["Zbc","ZeeB_Sh221"],
["Zbc","ZeeC_Sh221"],
["Zbc","ZeeL_Sh221"],
["Zbc","Zee_Sh221"],
["Zbc","ZmumuB_Sh221"],
["Zbc","ZmumuC_Sh221"],
["Zbc","ZmumuL_Sh221"],
["Zbc","Zmumu_Sh221"],
["Zbc","ZtautauB_Sh221"],
["Zbc","ZtautauC_Sh221"],
["Zbc","ZtautauL_Sh221"],
["Zbc","Ztautau_Sh221"],
],
dict_Zhf_SF,
],
"Zbl":[
[
["Zbl","ZnunuB_Sh221"],
["Zbl","ZnunuC_Sh221"],
["Zbl","ZnunuL_Sh221"],
["Zbl","Znunu_Sh221"],
["Zbl","ZeeB_Sh221"],
["Zbl","ZeeC_Sh221"],
["Zbl","ZeeL_Sh221"],
["Zbl","Zee_Sh221"],
["Zbl","ZmumuB_Sh221"],
["Zbl","ZmumuC_Sh221"],
["Zbl","ZmumuL_Sh221"],
["Zbl","Zmumu_Sh221"],
["Zbl","ZtautauB_Sh221"],
["Zbl","ZtautauC_Sh221"],
["Zbl","ZtautauL_Sh221"],
["Zbl","Ztautau_Sh221"],
],
dict_Zhf_SF,
],
"Zcc":[
[
["Zcc","ZnunuB_Sh221"],
["Zcc","ZnunuC_Sh221"],
["Zcc","ZnunuL_Sh221"],
["Zcc","Znunu_Sh221"],
["Zcc","ZeeB_Sh221"],
["Zcc","ZeeC_Sh221"],
["Zcc","ZeeL_Sh221"],
["Zcc","Zee_Sh221"],
["Zcc","ZmumuB_Sh221"],
["Zcc","ZmumuC_Sh221"],
["Zcc","ZmumuL_Sh221"],
["Zcc","Zmumu_Sh221"],
["Zcc","ZtautauB_Sh221"],
["Zcc","ZtautauC_Sh221"],
["Zcc","ZtautauL_Sh221"],
["Zcc","Ztautau_Sh221"],
],
dict_Zhf_SF,
],
"Zcl":[
[
["Zcl","ZnunuB_Sh221"],
["Zcl","ZnunuC_Sh221"],
["Zcl","ZnunuL_Sh221"],
["Zcl","Znunu_Sh221"],
["Zcl","ZeeB_Sh221"],
["Zcl","ZeeC_Sh221"],
["Zcl","ZeeL_Sh221"],
["Zcl","Zee_Sh221"],
["Zcl","ZmumuB_Sh221"],
["Zcl","ZmumuC_Sh221"],
["Zcl","ZmumuL_Sh221"],
["Zcl","Zmumu_Sh221"],
["Zcl","ZtautauB_Sh221"],
["Zcl","ZtautauC_Sh221"],
["Zcl","ZtautauL_Sh221"],
["Zcl","Ztautau_Sh221"],
],
dict_one_SF,
],
"Zl" :[
[
["Zl" ,"ZnunuB_Sh221"],
["Zl" ,"ZnunuC_Sh221"],
["Zl" ,"ZnunuL_Sh221"],
["Zl" ,"Znunu_Sh221"],
["Zl" ,"ZeeB_Sh221"],
["Zl" ,"ZeeC_Sh221"],
["Zl" ,"ZeeL_Sh221"],
["Zl" ,"Zee_Sh221"],
["Zl" ,"ZmumuB_Sh221"],
["Zl" ,"ZmumuC_Sh221"],
["Zl" ,"ZmumuL_Sh221"],
["Zl" ,"Zmumu_Sh221"],
["Zl" ,"ZtautauB_Sh221"],
["Zl" ,"ZtautauC_Sh221"],
["Zl" ,"ZtautauL_Sh221"],
["Zl" ,"Ztautau_Sh221"],
],
dict_one_SF,
],
"ttbar" :[[["ttbar","ttbar_nonallhad_PwPy8"]],dict_ttbar_SF,],
"ttbarOld" :[[["ttbar","ttbar_nonallhad_PwPy8_old"]],dict_one_SF],
"ttbarDilep" :[[["ttbar","ttbar_dil_PwPy8"]],dict_one_SF],
"ttbarDilepOld" :[[["ttbarDilep","ttbar_dil_PwPy8_old"]],dict_one_SF],
"ttbarSpin" :[[["ttbarSpin","ttbar_PwPy8_MadSpin"]],dict_one_SF],
"stops" :[[["stops","stops_PwPy8"]],dict_one_SF],
"stopt" :[[["stopt","stopt_PwPy8"]],dict_one_SF],
"stopWt":[[["stopWt","stopWt_PwPy8"]],dict_one_SF],
"stopWtMETFilt":[[["stopWt","stopWt_PwPy_METfilt"]],dict_one_SF],
"stoptZq":[[["tZq","stoptZ_MGPy8"]],dict_one_SF],
"ttV" :[[["ttV","ttV_aMCatNLOPy8"]],dict_one_SF],
"ttVV" :[[["ttbarWW","ttVV_MGPy8"]],dict_one_SF],
"ttt" :[[["ttt","ttt_MGPy8"]],dict_one_SF],
"tttt" :[[["4topSM","tttt_MGPy8"]],dict_one_SF],
"data" :[
[
["data","data15"],
["data","data16"],
["data","data17"],
],
dict_one_SF,
],
"dataB" :[
[
["data","data15B"],
["data","data16B"],
["data","data17"],
],
dict_one_SF,
],
}
# Done
# done function
def set_dict_processMerged_stackInfo(self):
# stackInfo: processType (S,B,D), color, SF, if overlay what is the scale (0 means no overlay),
self.dict_processMerged_stackInfo={
"Zl" :["B",ROOT.kAzure-9,1.0,0],
"Zcl" :["B",ROOT.kAzure-8,1.0,0],
"Zhf" :["B",ROOT.kAzure+2,1.0,0],
"Wl" :["B",ROOT.kGreen-9,1.0,0],
"Wcl" :["B",ROOT.kGreen-6,1.0,0],
"Whf" :["B",ROOT.kGreen+3,1.0,0],
"stop" :["B",ROOT.kOrange-1,1.0,0],
"ttX" :["B",ROOT.kOrange-7,1.0,0],
"ttbar" :["B",ROOT.kOrange,1.0,0],
"otherHiggs":["B",ROOT.kGray+1,1.0,0],
"diboson" :["B",ROOT.kGray,1.0,3],
"VHbb" :["S",ROOT.kRed,1.0,3],
"data" :["D",ROOT.kBlack,1.0,1],
}
#
self.list_processStack=["Zl","Zcl","Zhf","Wl","Wcl","Whf","stop","ttX","ttbar","diboson","otherHiggs","VHbb","data"]
# done function
def set_list_processMerged(self):
if self.debug:
print "Start set_list_processMerged()"
# those stored in .root
self.list_processMerged=self.list_process+[
"VHbb",
# "VHcc",
"otherHiggs",
"diboson",
"Whf",
"Zhf",
"stop",
"ttX",
"S",
"B",
"D",
# "BplusS",
]
self.dict_processMerged_info={
"VHbb" :[["qqZvvHbb","qqWlvHbb","ggZvvHbb","qqZllHbb","ggZllHbb"]],
"VHcc" :[["qqZvvHcc","qqWlvHcc","ggZvvHcc","qqZllHcc","ggZllHcc"]],
"otherHiggs" :[["qqZvvHcc","qqWlvHcc","ggZvvHcc","qqZllHcc","ggZllHcc","qqWincH4l","qqZincH4l","ggH","bbH","VBF","ttH"]],
"diboson" :[["WW","WZ","ZZ","ggWW","ggZZ"]],
"Whf" :[["Wbb","Wbc","Wbl","Wcc"]],
"Zhf" :[["Zbb","Zbc","Zbl","Zcc"]],
"stop" :[["stops","stopt","stopWt","stoptZq"]],
"ttX" :[["ttV","ttVV","ttt","tttt"]],
"S" :[["qqZvvHbb","qqZllHbb","ggZvvHbb","ggZllHbb","qqWlvHbb"]],
"B" :[["Wbb","Wbc","Wbl","Wcc","Wcl","Wl","Zbb","Zbc","Zbl","Zcc","Zcl","Zl","ttbar","ttV","ttVV","ttt","tttt","stops","stopt","stopWt","stoptZq","WW","WZ","ZZ","ggWW","ggZZ","qqZvvHcc","qqZllHcc","ggZvvHcc","ggZllHcc","qqWlvHcc","qqWincH4l","qqZincH4l","ggH","bbH","VBF","ttH"]],
"BplusS" :[["Wbb","Wbc","Wbl","Wcc","Wcl","Wl","Zbb","Zbc","Zbl","Zcc","Zcl","Zl","ttbar","ttV","ttVV","ttt","tttt","stops","stopt","stopWt","stoptZq","WW","WZ","ZZ","ggWW","ggZZ","qqZvvHcc","qqZllHcc","ggZvvHcc","ggZllHcc","qqWlvHcc","qqWincH4l","qqZincH4l","ggH","bbH","VBF","ttH","qqZvvHbb","qqZllHbb","ggZvvHbb","ggZllHbb","qqWlvHbb"]],
"D" :[["data"]],
}
def set_list_processMerged_new(self):
if self.debug:
print "Start set_list_processMerged()"
if 'W' in self.list_process:
self.list_process.remove('W')
if 'Z' in self.list_process:
self.list_process.remove('Z')
# those stored in .root
self.list_processMerged=self.list_process+[
"VHbb",
# "VHcc",
"otherHiggs",
"diboson",
"Whf",
"Zhf",
"stop",
"ttX",
"S",
"B",
"D",
# "BplusS",
]
self.dict_processMerged_info={
"VHbb" :[["qqZvvH125","qqWlvH125","ggZvvH125","qqZllH125","ggZllH125"]],
"VHcc" :[["qqZvvH125cc","qqWlvH125cc","ggZvvH125cc","qqZllH125cc","ggZllH125cc"]],
"otherHiggs" :[["qqZvvH125cc","qqWlvH125cc","ggZvvH125cc","qqZllH125cc","ggZllH125cc","qqWincH4l","qqZincH4l","ggH125Inc","VBFH125Inc","bbH125","ttH"]],
"diboson" :[["WW","WZ","ZZ","ggWW","ggZZ"]],
"Whf" :[["Wbb","Wbc","Wbl","Wcc"]],
"Zhf" :[["Zbb","Zbc","Zbl","Zcc"]],
"stop" :[["stops","stopt","stopWt","stoptZq"]],
"ttX" :[["ttV","ttbarWW","ttt","4topSM"]],
"S" :[["qqZvvH125","qqWlvH125","ggZvvH125","qqZllH125","ggZllH125"]],
"B" :[["Wbb","Wbc","Wbl","Wcc","Wcl","Wl","Zbb","Zbc","Zbl","Zcc","Zcl","Zl","ttbar","ttV","ttbarWW","ttt","4topSM","stops","stopt","stopWt","stoptZq","WW","WZ","ZZ","ggWW","ggZZ","qqZvvH125cc","qqWlvH125cc","ggZvvH125cc","qqZllH125cc","ggZllH125cc","qqWincH4l","qqZincH4l","ggH125Inc","VBFH125Inc","bbH125","ttH"]],
"BplusS" :[["Wbb","Wbc","Wbl","Wcc","Wcl","Wl","Zbb","Zbc","Zbl","Zcc","Zcl","Zl","ttbar","ttV","ttbarWW","ttt","4topSM","stops","stopt","stopWt","stoptZq","WW","WZ","ZZ","ggWW","ggZZ","qqZvvH125cc","qqWlvH125cc","ggZvvH125cc","qqZllH125cc","ggZllH125cc","qqWincH4l","qqZincH4l","ggH125Inc","VBFH125Inc","bbH125","ttH","qqZvvH125","qqWlvH125","ggZvvH125","qqZllH125","ggZllH125"]],
"D" :[["data"]],
}
def set_fileNameHistosProcessMerged(self):
# suffix=""
suffix="_"+self.list_category[0]+"_"+self.list_variable[0]
self.fileNameHistosProcessMerged=self.folderHistos+"/histosProcessMerged"+suffix+".root"
# done function
def create_histosProcessMerged(self,doSF=True):
if self.debug or self.verbose:
print "Start create_histosProcessMerged()"
# now we want to sum over process for a given processMerged
outputFile=TFile(self.fileNameHistosProcessMerged,"RECREATE")
outputFile.Close()
for variable in self.list_variable:
for category in self.list_category:
if self.verbose:
print "variable",variable,"category",category
if "2jet" in category:
cat="2"
elif "3jet" in category:
cat="3"
elif "4jet" in category:
cat="4"
elif "5pjet" in category:
cat="5p"
else:
cat="none"
if self.debug:
print "cat",cat
for processMerged in self.list_processMerged:
counter=0
if self.debug:
print " %-10s %-10s %-10s" % (variable,category,processMerged)
if processMerged not in self.dict_processMerged_info.keys():
if self.debug:
print "processMerged",processMerged,"is not in self.dict_processMerged_info"
list_process=[processMerged]
else:
if self.debug:
print "processMerged",processMerged,"is not in self.dict_processMerged_info"
list_process=self.dict_processMerged_info[processMerged][0]
if self.debug:
print "processMerged",processMerged,"list_process",list_process
for process in list_process:
if self.debug:
print "%-10s %-10s %-10s %-10s" % (variable,category,processMerged,process)
inputFileName=self.fileNameHistosProcess
histoNameProcess =self.get_histoNameProcess(variable,category,process)
histoNameProcessMerged=self.get_histoNameProcess(variable,category,processMerged)
histo=retrieveHistogram(fileName=inputFileName,histoPath="",histoName=histoNameProcess,name=histoNameProcessMerged,returnDummyIfNotFound=False,debug=self.debug)
if doSF:
if self.debug:
print "process",self.dict_process_info[process][1]
print "cat",cat
SF=self.dict_process_info[process][1][cat]
else:
SF=1.0
if self.debug:
print "Scale histo with SF",SF,"type(SF)",type(SF)
histo.Scale(SF)
if histo=="dummy":
continue
if counter==0:
histoProcessMerged=histo
else:
histoProcessMerged.Add(histo)
counter+=1
# done for loop over process that need to be summed to get processMerged
if self.debug:
print "counter",counter
# store the histogram
outputFile=TFile(self.fileNameHistosProcessMerged,"UPDATE")
histoProcessMerged.SetDirectory(outputFile)
histoProcessMerged.Write()
outputFile.Close()
# done for loop over process
# done for loop over category
# done for loop over variable
# done function
def create_histosProcessMerged_new(self,doSF=True):
if self.debug or self.verbose:
print "Start create_histosProcessMerged()"
# now we want to sum over process for a given processMerged
outputFile=TFile(self.fileNameHistosProcessMerged,"RECREATE")
outputFile.Close()
for variable in self.list_variable:
for category in self.list_category:
if self.verbose:
print "variable",variable,"category",category
if "2jet" in category:
cat="2"
elif "3jet" in category:
cat="3"
elif "4jet" in category:
cat="4"
elif "5pjet" in category:
cat="5p"
else:
cat="none"
if self.debug:
print "cat",cat
for processMerged in self.list_processMerged:
counter=0
if self.debug:
print " %-10s %-10s %-10s" % (variable,category,processMerged)
if processMerged not in self.dict_processMerged_info.keys():
if self.debug:
print "processMerged",processMerged,"is not in self.dict_processMerged_info"
list_process=[processMerged]
else:
if self.debug:
print "processMerged",processMerged,"is not in self.dict_processMerged_info"
list_process=self.dict_processMerged_info[processMerged][0]
if self.debug:
print "processMerged",processMerged,"list_process",list_process
# from ICHEP2018 we get the SF as ratio of post-fit to pre-fit
# and in fit enters directly the processMerged
# i.e. Zhf, not Zbb, Zbc, Zbl, Zcc
# i.e. Whf, not Wbb, Wbc, Wbl, Wcc
# i.e. stop, not stops, stopt, stopWt
if doSF:
categorySF=self.dict_analysis_channel_category_categorySF[self.analysis+"_"+self.channel+"_"+category]
if self.debug:
print "categorySF",categorySF
if categorySF+"_"+processMerged in self.dict_categorySF_processMerged_SF:
SF_Tuple=self.dict_categorySF_processMerged_SF[categorySF+"_"+processMerged]
else:
SF_Tuple=(1.0,0.0)
# done if
else:
print "ADRIAN no SF"
SF_Tuple=(1.0,0.0)
# done if
SF=SF_Tuple[0]
if self.debug:
print "Scale histo processMerged",processMerged,"with SF",SF,"type(SF)",type(SF)
# now we have the SF for this processMerged
# now we multiply this SF to each process that forms processMerged
# so that after the SF if you add the corresponding process you get the corresponding processMerged
# that gives you the freedom to use the individual process, or the total processMerged
# in plots, sensitivities, etc
for process in list_process:
if self.debug:
print "%-10s %-10s %-10s %-10s" % (variable,category,processMerged,process)
#inputFileName=self.fileNameHistosProcess
inputFileName=self.folderProcessInitial+"/all.root"
histoNameProcess =self.get_histoNameProcess_new(variable,category,process)
histoNameProcessMerged=self.get_histoNameProcess(variable,category,processMerged)
histo=retrieveHistogram(fileName=inputFileName,histoPath="",histoName=histoNameProcess,name=histoNameProcessMerged,returnDummyIfNotFound=True,debug=self.debug)
if histo=="dummy":
continue
counter+=1
if doSF:
histo.Scale(SF)
# done if doSFAtProcessLevelOldWay
if counter==1:
histoProcessMerged=histo
else:
histoProcessMerged.Add(histo)
# done for loop over process that need to be summed to get processMerged
if self.debug:
print "counter",counter
if counter==0:
if self.debug:
print "No histogram in this category, so set a dummy histogram, taken from the first process in the list that exists, and then reset"
if self.debug:
print "self.list_process", self.list_process
process=self.list_process[1]
histoNameProcess =self.get_histoNameProcess_new(variable,category,process)
histo=retrieveHistogram(fileName=inputFileName,histoPath="",histoName=histoNameProcess,name=histoNameProcessMerged,returnDummyIfNotFound=False,debug=self.debug)
histoProcessMerged=histo
histoProcessMerged.Reset()
# done if
# now we have the histogram histoProcesMerged done
# store the histogram
outputFile=TFile(self.fileNameHistosProcessMerged,"UPDATE")
histoProcessMerged.SetDirectory(outputFile)
histoProcessMerged.Write()
outputFile.Close()
# done for loop over process
# done for loop over category
# done for loop over variable
# done function
def create_folderYields(self):
self.folderYields=self.folderOutput+"/yields"
command="mkdir -p "+self.folderYields
if self.debug:
print "command="+command
os.system(command)
# done function
def create_folderResults(self):
self.folderResults=self.folderOutput+"/results"
command="mkdir -p "+self.folderResults
if self.debug:
print "command="+command
os.system(command)
# done function
def create_folderPlots(self):
self.folderPlots=self.folderOutput+"/plots"
command="mkdir -p "+self.folderPlots
if self.debug:
print "command="+command
os.system(command)
# done function
def set_list_processAnalysis(self):
self.list_processAnalysis=[
"qqZvvHbb",
"qqWlvHbb",
"ggZvvHbb",
"qqZllHbb",
"ggZllHbb",
"qqZvvHcc",
"qqWlvHcc",
"ggZvvHcc",
"qqZllHcc",
"ggZllHcc",
"qqZincH4l",
"ggH",
#"ggHbb",
"bbH",
"VBF",
"ttH",
"WW",
"WZ",
"ZZ",
"ggZZ",
"ggWW",
#"ZllZbb",
#"ZvvZbb",
#"WlvZbb",
#"ZllZvv",
"Wbb",
"Wbc",
"Wbl",
"Wcc",
"Wcl",
"Wl",
"Zbb",
"Zbc",
"Zbl",
"Zcc",
"Zcl",
"Zl",
"ttbar",
#"ttbarOld",
#"ttbarDilep",
#"ttbarDilepOld",
#"ttbarSpin",
"stops",
"stopt",
"stopWt",
"stoptZq",
"ttV",
"ttVV",
"ttt",
"tttt",
#"dijet",
"S",
"B",
"data",
"dataB",
]
# done functions
def get_yieldTuple(self, histo):
yieldTuple=get_histo_integral_error(histo,myRange=-1,option="",debug=False) # -1 to include the under/over-flow bins
if self.debug:
print "yieldTuple= %15.6f +/- %15.6f", yieldTuple
return yieldTuple
# done function
def create_results(self):
if self.debug or self.verbose:
print "Start create_results()"
# suffix=""
suffix="_"+self.list_category[0]+"_"+self.list_variable[0]
fileName=self.folderResults+"/results"+suffix+".txt"
# create a new file
f = open(fileName,'w')
if self.debug:
print "Results:"
for variable in self.list_variable:
if self.debug:
print "variable",variable
for category in self.list_category:
if self.debug:
print "category",category
dict_processMerged_histo={}
for processMerged in self.list_processMerged:
if self.debug:
print "processMerged",processMerged
inputFileName=self.fileNameHistosProcessMerged
histoNameProcessMerged=self.get_histoNameProcess(variable,category,processMerged)
histo=retrieveHistogram(fileName=inputFileName,histoPath="",histoName=histoNameProcessMerged,name="",returnDummyIfNotFound=False,debug=self.debug)
#integralValueError=get_histo_integral_error(histo,myRange=-1,option="",debug=False) # -1 to include the under/over-flow bins
#text="%20s %25s %10s %15.8f %15.8f" % (variable, category, processMerged, integralValueError[0], integralValueError[1])
dict_processMerged_histo[processMerged]=histo
#if self.verbose:
# print text
#f.write(text+'\n')
# done loop over processMerged
# have access to the histograms
for processResult in self.list_processResult:
if self.verbose:
print "processResult",processResult
if "/" in processResult:
# ratio of yields
processResultNumer=processResult.split("/")[0]
processResultDenom=processResult.split("/")[1]
yieldTupleNumer=self.get_yieldTuple(dict_processMerged_histo[processResultNumer])
yieldTupleDenom=self.get_yieldTuple(dict_processMerged_histo[processResultDenom])
tupleResult=ratioError(yieldTupleNumer[0],yieldTupleNumer[1],yieldTupleDenom[0],yieldTupleDenom[1])
elif "SigY_" in processResult:
# significance sigma B from yields
processResultNumer=processResult.split("_")[1]
processResultDenom=processResult.split("_")[2]
yieldTupleNumer=self.get_yieldTuple(dict_processMerged_histo[processResultNumer])
yieldTupleDenom=self.get_yieldTuple(dict_processMerged_histo[processResultDenom])
tupleResult=significanceSigmaB(yieldTupleNumer[0],yieldTupleNumer[1],yieldTupleDenom[0],yieldTupleDenom[1])
elif "SigH_" in processResult:
# significance sigma B from histogram bins (using shape too)
processResultNumer=processResult.split("_")[1]
processResultDenom=processResult.split("_")[2]
sig_h=dict_processMerged_histo[processResultNumer].Clone()
bkg_h=dict_processMerged_histo[processResultDenom].Clone()
if self.debug:
getBinValues(sig_h)
getBinValues(bkg_h)
figureOfMerit="SignificanceSigmaB"
a=get_dict_figureOfMerit_histo(sig_h,bkg_h,list_figureOfMerit=[figureOfMerit],debug=self.debug)
h=a[figureOfMerit]
tupleResult=add_in_quadrature_bins_of_one_histo(h,IncludeUnderflowOverflowBins=False,debug=False)
else:
# yield of one process already in processMerged
tupleResult=self.get_yieldTuple(dict_processMerged_histo[processResult])
# done if
text="%20s %25s %10s %15.8f %15.8f" % (variable, category, processResult, tupleResult[0], tupleResult[1])
if self.verbose:
print text
f.write(text+'\n')
# done loop over category
# done loop over variable
f.close()
# done function
def read_results(self):
if self.debug or self.verbose:
print "Start read_results()"
self.dict_variable_category_processResult_tupleResult={}
suffix="_"+self.list_category[0]+"_"+self.list_variable[0]
fileName=self.folderResults+"/results"+suffix+".txt"
for line in open(fileName, 'r'):
line=line.rstrip()
if self.debug:
print "line",line
list_line=line.split()
variable=list_line[0]
category=list_line[1]
processResult=list_line[2]
tupleResult=(float(list_line[3]),float(list_line[4]))
text="%20s %25s %10s %15.8f %15.8f" % (variable, category, processResult, tupleResult[0], tupleResult[1])
if self.verbose:
print text
self.dict_variable_category_processResult_tupleResult[variable+"_"+category+"_"+processResult]=tupleResult
# done loop over lines in file
# the dictionary is filled
# no need to result, as it is private variable of class
# done function
def create_yield_latex_table(self,doDocument=True):
if self.debug or self.verbose:
print "Start create_yield_latex_table()"
for variable in self.list_variable:
if self.debug:
print "variable",variable
# we create the latex table
fileName=self.folderYields+"/table_"+variable+".tex"
# create a new file
f = open(fileName,'w')
if doDocument:
f.write('\\documentclass{beamer}\n')
f.write('\\usepackage{tabularx}\n')
f.write('\\usepackage{adjustbox}\n')
f.write('\\usepackage{pdflscape}\n')
f.write('\\begin{document}\n')
# done if
f.write('\\begin{frame}{\\texttt{\\detokenize{'+ self.name+' '+variable+'}}}\n')
# f.write('\\begin{center}\n')
f.write('\\begin{landscape} \n')
f.write('\\adjustbox{max height=\\dimexpr\\textheight-9.0cm\\relax,max width=\\textwidth}\n')
f.write('{\n')
text="\\begin{tabular}{|l"
for category in self.list_category:
text+="|l"
text+="|}\n"
f.write(text)
f.write('\\hline \n')
f.write('\\hline \n')
text="Process vs Category"
for category in self.list_category:
text+=" & \\texttt{\\detokenize{"+category+"}}"
text+=" \\\\ \n"
f.write(text)
f.write('\\hline \n')
# add one processResult one at a time
for processResult in self.list_processResult:
# info=self.dict_processMerged_info[processMergedType]
# doAddLineAfter=bool(info[1])
if processResult=="qqZincH4l" or processResult=="dijet" or processResult=="stop" or processResult=="data" or processResult=="VHbb":
doAddLineAfter=True
else:
doAddLineAfter=False
#if self.debug:
# print processMergedType,info[1],type(info[1]),doAddLineAfter,type(doAddLineAfter)
if "@" in processResult:
list_processResult=processResult.split("@")
processResult=list_processResult[0]
currentVariable=list_processResult[1]
text="\\texttt{\\detokenize{"+processResult+" "+currentVariable+"}}"
else:
# regular processResult
currentVariable=variable
text="\\texttt{\\detokenize{"+processResult+"}}"
nrDigits="2"
# done if
for category in self.list_category:
tupleResult=self.dict_variable_category_processResult_tupleResult[currentVariable+"_"+category+"_"+processResult]
if tupleResult[0]>0.01:
if "@" in processResult:
text+=" & {\\color{orange}%.2f$\pm$%.2f}" % tupleResult
else:
text+=" & {\\color{orange}%.3f$\pm$%.3f}" % tupleResult
else:
text+=" & {\\color{orange}%.4f$\pm$%.4f}" % tupleResult
# done loop over category
text+=" \\\\ \n"
f.write(text)
if doAddLineAfter:
f.write('\\hline \n')
# done for loop over processResult
f.write('\\hline \n')
f.write('\\end{tabular}\n')
f.write('}\n')
f.write('\\end{landscape} \n')
# f.write('\\end{center}\n')
f.write('\\end{frame}\n')
if doDocument:
f.write('\\end{document}\n')
f.close()
# done loop over variable
# done function
def create_yield_latex_table2(self):
if self.debug or self.verbose:
print "Start create_yield_latex_table()"
for variable in self.list_variable:
if self.debug:
print "variable",variable
# we create the latex table
fileName=self.folderYields+"/table_"+variable+".tex"
# create a new file
f = open(fileName,'w')
f.write('\\documentclass{beamer}\n')
f.write('\\usepackage{tabularx}\n')
f.write('\\usepackage{adjustbox}\n')
f.write('\\usepackage{pdflscape}\n')
f.write('\\begin{document}\n')
f.write('\\begin{frame}{\\texttt{\\detokenize{'+ self.name+' '+variable+'}}}\n')
# f.write('\\begin{center}\n')
f.write('\\begin{landscape} \n')
f.write('\\adjustbox{max height=\\dimexpr\\textheight-7.0cm\\relax,max width=\\textwidth}\n')
f.write('{\n')
text="\\begin{tabular}{|l"
for category in self.list_category:
text+="|l"
text+="|}\n"
f.write(text)
f.write('\\hline \n')
f.write('\\hline \n')
text="Process vs Category"
for category in self.list_category:
text+=" & \\texttt{\\detokenize{"+category+"}}"
text+=" \\\\ \n"
f.write(text)
f.write('\\hline \n')
# add one processResult one at a time
print "ADRIAN ",self.list_processResult
for processResult in self.list_processResult:
# info=self.dict_processMerged_info[processMergedType]
# doAddLineAfter=bool(info[1])
if processResult=="qqZincH4l" or processResult=="dijet" or processResult=="stop" or processResult=="data" or processResult=="otherHiggs":
doAddLineAfter=True
else:
doAddLineAfter=False
#if self.debug:
# print processMergedType,info[1],type(info[1]),doAddLineAfter,type(doAddLineAfter)
text="\\texttt{\\detokenize{"+processResult+"}}"
for category in self.list_category:
tupleResult=self.dict_variable_category_processResult_tupleResult[variable+"_"+category+"_"+processResult]
if tupleResult[0]>0.01:
text+=" & {\\color{orange}%.2f$\pm$%.2f}" % tupleResult
else:
text+=" & {\\color{orange}%.4f$\pm$%.4f}" % tupleResult
# done loop over category
text+=" \\\\ \n"
f.write(text)
if doAddLineAfter:
f.write('\\hline \n')
# done for loop over processResult
f.write('\\hline \n')
f.write('\\end{tabular}\n')
f.write('}\n')
f.write('\\end{landscape} \n')
# f.write('\\end{center}\n')
f.write('\\end{frame}\n')
f.write('\\end{document}\n')
f.close()
# done loop over variable
# done function
def create_yield_latex_table_compare(self,ref,doDocument=True,debug=False):
if debug:
print "Start create_yield_latex_table_compare()"
# the ratios will be made to the first element on the left
list_stem=[ref.stem,self.stem]
if debug:
print "list_stem",list_stem
dict_stem_analysis={
ref.stem:ref,
self.stem:self,
}
for variable in self.list_variable:
if debug:
print "variable",variable
for category in self.list_category:
if debug:
print "category",category
# we create the latex table
fileName=self.folderYields+"/table_comparison_"+variable+"_"+category+".tex"
# create a new file
f = open(fileName,'w')
print "doDocument",doDocument
if doDocument:
f.write('\\documentclass{beamer}\n')
f.write('\\usepackage{tabularx}\n')
f.write('\\usepackage{adjustbox}\n')
f.write('\\usepackage{pdflscape}\n')
f.write('\\begin{document}\n')
# done if
text='\\begin{frame}{Cat: \\texttt{\\detokenize{'+category+'}}; Var: \\texttt{\\detokenize{'+variable+'}};'
#text+=' \\\\ Comp: \\texttt{\\detokenize{'+comparison+'}}; Stem:'
#for i,stem in enumerate(list_stem):
# if i>0:
# text+=' vs'
# text+=' {\\color{black}\\texttt{\\detokenize{'+dict_stem_analysis[stem].stem+'}}}'
text+='.}'
f.write(text+'\n')
# continue
# f.write('\\begin{center}\n')
f.write('\\begin{landscape} \n')
text='\\adjustbox{max height=\\dimexpr\\textheight-'
if doDocument:
text+='7.0'
else:
text+='8.5'
text+='cm\\relax,max width=\\textwidth}'
f.write(text+'\n')
f.write('{\n')
text="\\begin{tabular}{|l"
for stem in list_stem:
text+="|l"
text+="|l|l|}"
f.write(text+'\n')
f.write('\\hline \n')
f.write('\\hline \n')
text="Process vs Stem"
for stem in list_stem:
text+=" & \\texttt{\\detokenize{"+stem+"}}"
for i,stem in enumerate(list_stem):
if i==0:
continue
#text+=" & \\texttt{\\detokenize{Ratio "+stem.split("_")[-1]+" to "+list_stem[0].split("_")[-1]+"}}"
text+=" & Ratio right to left"
#text+=" & Ratio of relative error"
text+=" \\\\"
f.write(text+'\n')
f.write('\\hline \n')
# add one processResult one at a time
for processResult in self.list_processResult:
# info=self.dict_processMerged_info[processMergedType]
# doAddLineAfter=bool(info[1])
if processResult=="qqZincH4l" or processResult=="dijet" or processResult=="data" or processResult=="VHbb":
doAddLineAfter=True
else:
doAddLineAfter=False
#if self.debug:
# print processMergedType,info[1],type(info[1]),doAddLineAfter,type(doAddLineAfter)
if "@" in processResult:
list_processResult=processResult.split("@")
processResult=list_processResult[0]
currentVariable=list_processResult[1]
text="\\texttt{\\detokenize{"+processResult+" "+currentVariable+"}}"
else:
# regular processResult
currentVariable=variable
text="\\texttt{\\detokenize{"+processResult+"}}"
nrDigits="2"
# done if
tupleResultDenom=ref.dict_variable_category_processResult_tupleResult[currentVariable+"_"+category+"_"+processResult]
# a is the first one, so the reference
# done loop over stem
for stem in list_stem:
if False:
print "stem",stem
ana=dict_stem_analysis[stem]
tupleResult=ana.dict_variable_category_processResult_tupleResult[currentVariable+"_"+category+"_"+processResult]
if tupleResult[0]>0.01:
if "@" in processResult:
text+=" & {\\color{orange}%.2f$\pm$%.2f}" % tupleResult
else:
text+=" & {\\color{orange}%.3f$\pm$%.3f}" % tupleResult
else:
text+=" & {\\color{orange}%.4f$\pm$%.4f}" % tupleResult
# done loop over stem
# add the ratio
for i,stem in enumerate(list_stem):
if i==0:
continue
ana=dict_stem_analysis[stem]
tupleResultNumer=ana.dict_variable_category_processResult_tupleResult[currentVariable+"_"+category+"_"+processResult]
# tupleResultNumer=tupleResult # from ana, the last one, which is also the second one
tupleResultRatio=ratioTuple(tupleResultNumer,tupleResultDenom,debug=False) # a is the first one, ana is the last one
text+=" & {\\color{orange}%.3f$\pm$%.3f}" % tupleResultRatio
# done if
# add the ratio of relative errors
#relativeErrorDenom=ratio(tupleResultDenom[1],tupleResultDenom[0])
#relativeErrorNumer=ratio(tupleResultNumer[1],tupleResultNumer[0])
#relativeErrorRatio=ratio(relativeErrorNumer,relativeErrorDenom)
#text+=" & {\\color{orange}%.3f}" % relativeErrorRatio
#
text+=" \\\\ \n"
f.write(text)
if doAddLineAfter:
f.write('\\hline \n')
# done for loop over processResult
f.write('\\hline \n')
f.write('\\end{tabular}\n')
f.write('}\n')
f.write('\\end{landscape} \n')
# f.write('\\end{center}\n')
f.write('\\end{frame}\n')
if doDocument:
f.write('\\end{document}\n')
f.close()
# compile to make pdf
# os.system("pdflatex "+fileName)
# done loop over category
# done loop over variable
# done function
def create_overlaid_variable(self):
if self.debug or self.verbose:
print "Start create_overlaid_variable()"
inputFileName=self.fileNameHistosProcessMerged
#self.list_processMerged=["qqZvvHbb","qqWlvHbb","ggZvvHbb","WZ","ZZ","ggZZ","ttbar","stop","Whf","Zhf"]
self.list_processMerged=["qqZvvHbb","qqWlvHbb","ggZvvHbb","WZ","ZZ","ggZZ"]
self.debug=False
for processMerged in self.list_processMerged:
if self.debug:
print "processMerged",processMerged
for category in self.list_category:
if self.debug:
print "category",category
list_tuple_h1D=[]
self.list_color=[1,4,2,8,ROOT.kOrange,ROOT.kMagenta,6,7,8,9,10]
# list_variable=["mBBNominal","mBBOneMu20GeV","mBBOneMu10GeV","mBBOneMu4GeV","mBBAllMu","mBBPtReco"]
# list_variable=["mBBNominal","mBBOneMu10GeV","mBBOneMu4GeV","mBBPtReco"]
list_variable=self.list_variable
for i,variable in enumerate(list_variable):
if self.debug:
print "variable",variable
if processMerged=="WZ" or processMerged=="WW" or processMerged=="ZZ" or processMerged=="ggWW" or processMerged=="ggZZ":
legend_info=[0.56,0.35,0.88,0.70,72,0.037,0]
text_option=("#bf{#it{#bf{ATLAS} Simulation Internal}}?#bf{#sqrt{s}=13 TeV; "+self.name+"}?#bf{"+category+"; "+processMerged+"}",0.04,13,0.50,0.88,0.05)
else:
legend_info=[0.12,0.35,0.40,0.70,72,0.037,0]
text_option=("#bf{#it{#bf{ATLAS} Simulation Internal}}?#bf{#sqrt{s}=13 TeV; "+self.name+"}?#bf{"+category+"; "+processMerged+"}",0.04,13,0.15,0.88,0.05)
info=self.dict_variable_info[variable]
# binRange=info[0]
debug_binRange=False
debug=False
# binRange=get_binRange(5,60,10,debug_binRange)+","+get_binRange(60,140,5,debug_binRange)+","+get_binRange(140,180,10,debug_binRange)
binRange=get_binRange(50,160,5,debug_binRange)
histoNameProcessMerged=self.get_histoNameProcess(variable,category,processMerged)
histo=retrieveHistogram(fileName=inputFileName,histoPath="",histoName=histoNameProcessMerged,name="",returnDummyIfNotFound=False,debug=self.debug)
# rebin, collect overflows, do average
getBinValues(histo,significantDigits=2,doRescaleMeVtoGeV=False,doUnderflow=True,doOverflow=True,debug=debug)
histo=get_histo_generic_binRange(histo,binRange=binRange,option="sum",debug=debug)
if "ptOneMuInJet" in variable or "dRMuonInJet" in variable or "PtRatioOneMuonInJet" in variable or "PtRatioOneElectronInJet" in variable:
histo=get_histo_underflows_in_edge_bins(histo,addUnderflow=False,addOverflow=True,debug=False)
else:
histo=get_histo_underflows_in_edge_bins(histo,addUnderflow=True, addOverflow=True,debug=False)
histo=get_histo_averaged_per_bin_width(histo,debug=debug)
getBinValues(histo,significantDigits=2,doRescaleMeVtoGeV=False,doUnderflow=True,doOverflow=True,debug=debug)
#
legend=processMerged
#histo=get_histo_generic_binRange(histo,binRange=binRange,option="average2",debug=self.debug)
#histo=histo.Clone()
#getBinValues(histo,doRescaleMeVtoGeV=False,significantDigits=2,debug=self.debug)
histo.SetLineColor(self.list_color[i])
# histo.SetXTitle(variable)
histo.SetXTitle("mBB [ GeV ]")
histo.SetYTitle("Event density per bin width")
bJetCorr=variable.replace("mBB","")
list_tuple_h1D.append((histo,bJetCorr))
# done loop over process
outputFileName=self.folderPlots+"/overlay_variable_"+category+"_"+processMerged
overlayHistograms(list_tuple_h1D,fileName=outputFileName,extensions="eps,pdf,png",option="histo",doValidationPlot=False,canvasname="canvasname",addHistogramInterpolate=False,addfitinfo=True,addMedianInFitInfo=False,significantDigits=("3","3","3","3"),min_value=-1,max_value=-1,min_multiply=0.9,max_multiply=1.1,YTitleOffset=0.45,doRatioPad=False,min_value_ratio=0.5,max_value_ratio=1.5,statTitle="MC. stat uncertainty",statColor=6,ratioTitle="Ratio to data",plot_option="",plot_option_ratio="HIST",text_option=text_option,legend_info=legend_info,line_option=([0,0.5,0,0.5],2),debug=self.debug)
# done loop over category
# done loop over variable
# done function
def create_overlaid_plots(self):
if self.debug or self.verbose:
print "Start create_overlaid_plots()"
inputFileName=self.fileNameHistosProcessMerged
# default
list_color=[8,4,2,1] # B,S,BplusS,D
list_color=[8,4,1] # B,S,D
min_value_ratio=0.2
max_value_ratio=1.7
# for BadBatman small differences expected, smaller ratio plots
#list_color=[2,1]
#min_value_ratio=0.9
#max_value_ratio=1.1
for variable in self.list_variable:
if self.debug:
print "variable",variable
if "mBB" in variable or "mva" in variable:
# blinded, do not show data at all
# list_processMerged="B,S,BplusS,D".split(",")
list_processMerged="B,S,D".split(",")
else:
# not blinded, include data
# list_processMerged="B,S,BplusS,D".split(",")
list_processMerged="B,S,D".split(",")
# done if
if variable in self.dict_variable_info.keys():
info=self.dict_variable_info[variable]
binRange=info[0]
else:
binRange=""
# done if
for category in self.list_category:
if self.debug:
print "category",category
if variable=="mva":
if "2jet" in category:
binRange=self.binRange_mva2J
elif "3jet" in category:
binRange=self.binRange_mva3J
else:
binRange=self.binRange_mva3J
# done if
# done if
list_tuple_h1D=[]
for i,processMerged in enumerate(list_processMerged):
if self.debug:
print "processMerged",processMerged
histoNameProcessMerged=self.get_histoNameProcess(variable,category,processMerged)
histo=retrieveHistogram(fileName=inputFileName,histoPath="",histoName=histoNameProcessMerged,name="",returnDummyIfNotFound=False,debug=self.debug)
legend=processMerged
# scale the signal
#signalScale=5
#if processMerged=="S":
# histo.Scale(signalScale)
# legend+=" x "+str(signalScale)
# done if
# blind the data
if processMerged=="D" or processMerged=="data":
if "mBB" in variable:
histo=get_histo_blinded_from_binRange(histo,binRange=[80,140],debug=False)
elif "mva" in variable:
histo=get_histo_blinded_from_binRange(histo,binRange=[0.3,1.0],debug=False)
else:
None
# done if
# done if
# rebin, collect overflows, do average
debug=False
getBinValues(histo,significantDigits=2,doRescaleMeVtoGeV=False,doUnderflow=True,doOverflow=True,debug=debug)
histo=get_histo_generic_binRange(histo,binRange=binRange,option="sum",debug=debug)
if "ptOneMuInJet" in variable or "dRMuonInJet" in variable or "PtRatioOneMuonInJet" in variable or "PtRatioOneElectronInJet" in variable:
histo=get_histo_underflows_in_edge_bins(histo,addUnderflow=False,addOverflow=True,debug=False)
else:
histo=get_histo_underflows_in_edge_bins(histo,addUnderflow=True, addOverflow=True,debug=False)
histo=get_histo_averaged_per_bin_width(histo,debug=debug)
getBinValues(histo,significantDigits=2,doRescaleMeVtoGeV=False,doUnderflow=True,doOverflow=True,debug=debug)
# prepare histograms
histo.SetLineColor(list_color[i])
histo.SetXTitle(variable)
histo.SetYTitle("Event density per bin width")
list_tuple_h1D.append((histo,legend))
# done loop over process
outputFileName=self.folderPlots+"/overlay_BDS_"+variable+"_"+category
overlayHistograms(list_tuple_h1D,fileName=outputFileName,extensions="pdf",option="histo",doValidationPlot=False,canvasname="canvasname",addHistogramInterpolate=False,addfitinfo=False,addMedianInFitInfo=False,significantDigits=("3","3","3","3"),min_value=0,max_value=-1,YTitleOffset=0.45,doRatioPad=True,min_value_ratio=min_value_ratio,max_value_ratio=max_value_ratio,statTitle="MC. stat uncertainty",statColor=6,ratioTitle="Ratio to bkg",plot_option="HIST E",plot_option_ratio="E",text_option=("#bf{#it{#bf{ATLAS} Simulation Internal}}?#bf{#sqrt{s}=13 TeV; "+self.name+"}?#bf{"+variable+"}?#bf{"+category+"}",0.04,13,0.15,0.88,0.05),legend_info=[0.70,0.70,0.88,0.88,72,0.037,0],line_option=([0,0.5,0,0.5],2),debug=False)
# done loop over category
# done loop over variable
#command="$All/BuzatuBash/make_html.sh "+self.folderPlots
#os.system(command)
# done function
def create_stacked_plots(self):
if self.verbose:
print "Start create_stacked_plots()"
inputFileName=self.fileNameHistosProcessMerged
self.set_dict_processMerged_stackInfo()
for variable in self.list_variable:
if self.debug:
print "variable",variable
if variable in self.dict_variable_info.keys():
info=self.dict_variable_info[variable]
binRange=info[0]
elif "mBBJ" in variable:
binRange=self.dict_variable_info["mBBJ"][0]
print "ADRIAN mBBJ"
print "ADRIAN binRange",binRange
elif "mBB" in variable:
binRange=self.dict_variable_info["mBB"][0]
print "ADRIAN mBB"
print "ADRIAN binRange",binRange
elif "pTB1" in variable:
binRange=self.dict_variable_info["pTB1"][0]
elif "pTB2" in variable:
binRange=self.dict_variable_info["pTB2"][0]
elif "SumPtJet" in variable:
binRange=self.dict_variable_info["SumPtJet"][0]
elif "HT" in variable:
binRange=self.dict_variable_info["HT"][0]
elif "dRBB" in variable:
binRange=self.dict_variable_info["dRBB"][0]
elif "dEtaBB" in variable:
binRange=self.dict_variable_info["dEtaBB"][0]
elif "dPhiBB" in variable:
binRange=self.dict_variable_info["dPhiBB"][0]
elif "dPhiVBB" in variable:
binRange=self.dict_variable_info["dPhiVBB"][0]
elif "pTJ3" in variable:
binRange=self.dict_variable_info["pTJ3"][0]
elif "EtaB1" in variable:
binRange=self.dict_variable_info["EtaB1"][0]
elif "EtaB2" in variable:
binRange=self.dict_variable_info["EtaB2"][0]
elif "EtaJ3" in variable:
binRange=self.dict_variable_info["EtaJ3"][0]
elif "PhiB1" in variable:
binRange=self.dict_variable_info["PhiB1"][0]
elif "PhiB2" in variable:
binRange=self.dict_variable_info["PhiB2"][0]
elif "PhiJ3" in variable:
binRange=self.dict_variable_info["PhiJ3"][0]
elif "yBB" in variable:
binRange=self.dict_variable_info["yBB"][0]
elif "pTBBoverMET" in variable:
binRange=self.dict_variable_info["pTBBoverMET"][0]
elif "pTBBMETAsym" in variable:
binRange=self.dict_variable_info["pTBBMETAsym"][0]
elif "pTBB" in variable:
binRange=self.dict_variable_info["pTBB"][0]
else:
binRange=""
# done if
for category in self.list_category:
if True or self.debug:
print "category",category,"stem",self.stem,"channel",self.channel
if variable=="mva":
if "2jet" in category:
binRange=self.binRange_mva2J
elif "3jet" in category:
binRange=self.binRange_mva3J
else:
binRange=self.binRange_mva3J
# done if
# done if
list_tuple_h1D=[]
for i,processMerged in enumerate(self.list_processStack):
if self.debug:
print "processMerged",processMerged
histoNameProcessMerged=self.get_histoNameProcess(variable,category,processMerged)
histo=retrieveHistogram(fileName=inputFileName,histoPath="",histoName=histoNameProcessMerged,name="",returnDummyIfNotFound=False,debug=self.debug)
blinding=["threshold",0.05] # default blinding if S/B > 0.05 in any bin
if "2tag2jet" in category:
if "mBB" in variable and variable!="mBBJ":
if self.period=="a" or self.period=="d" or self.period=="ad":
blinding=["range",[100,140]] # unblind the diboson peak
else:
blinding=["range",[80,140]] # keep also the diboson peak blinded
# done if
elif variable=="mva" or variable=="mvadiboson":
blinding=["range",[0.3,1.0]]
# done if
# done if
# blind the data
#if processMerged=="data" or processMerged=="D":
#if "mBB" in variable:
# histo=get_histo_blinded_from_binRange(histo,binRange=[80,140],debug=False)
#elif "mva" in variable:
# histo=get_histo_blinded_from_binRange(histo,binRange=[0.3,1.0],debug=False)
#else:
# None
# done if
# done if
# rebin, collect overflows, do average
debug=False
getBinValues(histo,significantDigits=2,doRescaleMeVtoGeV=False,doUnderflow=True,doOverflow=True,debug=debug)
histo=get_histo_generic_binRange(histo,binRange=binRange,option="sum",debug=debug)
if "ptOneMuInJet" in variable or "dRMuonInJet" in variable or "PtRatioOneMuonInJet" in variable or "PtRatioOneElectronInJet" in variable:
histo=get_histo_underflows_in_edge_bins(histo,addUnderflow=False,addOverflow=True,debug=False)
else:
histo=get_histo_underflows_in_edge_bins(histo,addUnderflow=True, addOverflow=True,debug=False)
#histo=get_histo_averaged_per_bin_width(histo,debug=debug)
getBinValues(histo,significantDigits=2,doRescaleMeVtoGeV=False,doUnderflow=True,doOverflow=True,debug=debug)
if "TruthWZ" in variable and processMerged=="data":
histo.Reset()
# prepare histograms
list_info=self.dict_processMerged_stackInfo[processMerged]
#histo.SetLineColor(color)
#histo.SetFillColor(color)
#histo.SetXTitle(variable)
#histo.SetYTitle("Event density per bin width")
#if self.debug:
# print "histo",histo,"processMerged",processMerged,"processType",processType,"SF",SF
list_tuple_h1D.append((histo,processMerged,list_info))
# done loop over processMerged
outputFileName=self.folderPlots+"/stack_"+variable.replace("_","")+"_"+category
# stackHistograms(list_tuple_h1D,stackName="stackName",outputFileName=outputFileName,extensions="pdf",text_option=("#bf{#it{#bf{ATLAS} Simulation Internal}}?#bf{#sqrt{s}=13 TeV; "+self.name+"}?#bf{"+variable+"}?#bf{"+category+"}",0.04,13,0.15,0.88,0.05),legend_info=[0.72,0.25,0.88,0.88,72,0.037,0],debug=self.debug)
stackHistograms(list_tuple_h1D,stackName="stackName",outputFileName=outputFileName,extensions="png,pdf",blinding=blinding,doAveragePerBinWidth=True,text_option=("#bf{#it{#bf{ATLAS} Simulation Internal}}?#bf{#sqrt{s}=13 TeV}?#bf{"+self.name+"}?#bf{"+category+"}",0.04,13,0.15,0.92,0.05),xAxisTitle=variable,debug=False)
print "outside stackHistograms"
# done loop over category
# done loop over variable
# done function
### print
def print_list_category(self):
print "list_category",self.list_category
def print_lists(self):
print "\n Print our lists:"
print "\n list_variable",self.list_variable
print "\n list_category",self.list_category
print "\n list_process",self.list_process
print "\n list_processInitial",self.list_processInitial
# print "\n list_all",self.list_all
def print_all(self):
print ""
print "Printing all for Analysis",self.name,":"
self.print_list_category()
print "debug",self.debug
print "folderInput",self.folderInput
print "folderOutput",self.folderOutput
print "list_processInitial",self.list_processInitial
### summary
def do_evaluate_contents(self):
# then evaluate the content of these files
self.create_folderProcessInitial()
if self.do_evaluate_list_processInitial:
self.evaluate_list_processInitial(option="processInitial")
self.set_evaluated_list_processInitial()
if self.do_evaluate_content_of_all_processInitial:
self.evaluate_content_of_all_processInitial()
self.set_evaluated_list_process()
self.set_evaluated_list_category()
self.set_evaluated_list_variable()
self.set_evaluated_list_all()
# done function
def do_hadd_first(self):
if self.debug:
print "Start do_hadd_first()"
self.create_folderProcessInitial()
if self.do_evaluate_list_processInitial:
self.evaluate_list_processInitial(option="ReaderBatch")
self.set_evaluated_list_processInitial()
if self.do_hadd_processInitial:
self.hadd_each_processInitial()
# self.create_folderFitInput()
# dict_stem_analysis[stem].set_do_hadd_all_processInitial_to_produce_fit_inputs(True)
# re-evaluate from the folder output if you put by hand new folders, like data16B
self.do_evaluate_contents()
# done function
def do_cp_second(self):
if self.debug:
print "Start do_cp_second()"
self.create_folderProcessInitial()
command="cp -r"
if self.name.endswith("_D"):
folder1=self.folderOutput.replace("_D","_D1")
folder2=self.folderOutput.replace("_D","_D2")
print "Copying D1 and D2 into D."
elif self.name.endswith("_T"):
folder1=self.folderOutput.replace("_T","_T1")
folder2=self.folderOutput.replace("_T","_T2")
print "Copying T1 and T2 into T."
elif self.name.endswith("_TD"):
folder1=self.folderOutput.replace("_TD","_D1")
folder2=self.folderOutput.replace("_TD","_T2")
print "Copying D1 and T2 into TD."
else:
print "name",self.name,"does not end in _D or _T, or TD. Will ABORT!!!"
assert(False)
# done if
command+=" "+folder1+"/processInitial/*.root"
command+=" "+folder2+"/processInitial/*.root"
command+=" "+self.folderProcessInitial+"/."
if self.debug or self.verbose:
print "command="+command
os.system(command)
if self.debug or self.verbose:
print "Done copied the .root file in the new processInitial"
# then evaluate the content of these files
self.do_evaluate_contents()
# done function
def do_hadd_second(self):
if self.debug:
print "Start do_hadd_second()"
self.create_folderHistos()
self.set_fileNameHistosInput()
command="hadd -f"
command+=" "+self.folderHistos+"/input.root"
if self.name.endswith("_D"):
folder1=self.folderOutput.replace("_D","_D1")
folder2=self.folderOutput.replace("_D","_D2")
elif self.name.endswith("_T"):
folder1=self.folderOutput.replace("_T","_D1")
folder2=self.folderOutput.replace("_T","_T2")
else:
print "name",self.name,"does not end in _D or _T. Will ABORT!!!"
assert(False)
# done if
command+=" "+folder1+"/processInitial/*.root"
command+=" "+folder2+"/processInitial/*.root"
if self.debug or self.verbose:
print "command="+command
os.system(command)
# done function
def do_all_begining_deprecated(self):
if self.debug:
print "Start do_all()"
self.create_folderProcessInitial()
if self.do_evaluate_list_processInitial:
self.evaluate_list_processInitial(option="ReaderBatch")
self.set_evaluated_list_processInitial()
if self.do_hadd_processInitial:
self.hadd_each_processInitial()
# self.create_folderFitInput()
# dict_stem_analysis[stem].set_do_hadd_all_processInitial_to_produce_fit_inputs(True)
# re-evaluate from the folder output if you put by hand new folders, like data16B
if self.do_evaluate_list_processInitial:
self.evaluate_list_processInitial(option="processInitial")
if self.do_evaluate_content_of_all_processInitial:
self.evaluate_content_of_all_processInitial()
self.set_evaluated_list_process()
self.set_evaluated_list_category()
self.set_evaluated_list_variable()
self.set_evaluated_list_all()
#if self.hadd_all_processInitial_to_produce_fit_inputs:
# self.hadd_all_processInitial_to_produce_fit_inputs()
def do_all(self):
self.create_folderHistos()
self.set_fileNameHistosRaw()
self.set_fileNameHistosProcess()
self.set_fileNameHistosProcessMerged()
self.create_folderYields()
self.create_folderResults()
self.create_folderPlots()
self.set_dict_variable_info()
self.list_color=[1,4,2,8,ROOT.kOrange]
# self.debug=False
#if self.doFirst:
# return
#return
#if True:
# self.create_histosRaw()
doTTbarStudy=False
if doTTbarStudy:
if self.debug:
self.print_lists()
#self.set_list_category(["0tag2jet_150ptv_SR","0tag3jet_150ptv_SR","1tag2jet_150ptv_SR","1tag3jet_150ptv_SR","2tag2jet_150ptv_SR","2tag3jet_150ptv_SR"])
self.set_list_category(["2tag2jet_150ptv_SR"])
self.set_list_process(["ttbar"])
self.set_list_processInitial(["ttbar_nonallhad_PwPy8","ttbar_allhad_PwPy8"])
#self.set_list_process(["ttbar"])
#self.set_list_processInitial(["ttbar_nonallhad_PwPy8","ttbar_allhad_PwPy8"])
#ZvvZbb, ZllZbb -> ZZ_bb_Sh221
#ZZ -> ZZ_Sh221
if self.debug:
self.print_lists()
self.create_histosRaw()
self.set_folderPlotsHistosRawByProcessInitial()
if self.do_overlay_histosRaw_by_processInitial:
self.overlay_histosRaw_by_processInitial()
# done if doTTbarStudy
doYields=True
if doYields:
# remove ttbar_nonallhad from our processInitial
list_processInitial=[]
for processInitial in self.list_processInitial:
#if processInitial!="ttbar_nonallhad":
# continue
list_processInitial.append(processInitial)
# done for loop
self.list_processInitial=list_processInitial
if self.debug:
print "self.list_processInitial",self.list_processInitial
# remove W and Z from process
list_process=[]
if self.debug:
print "list_process",self.list_process
for process in self.list_process:
#if process=="W" or process=="Z" or "MadZee" in process or "MadZmumu" in process or process=="ggWW":
if process=="W" or process=="Z" or "MadZee" in process or "MadZmumu" in process:
print "WARNING!!! finding process",process,"will skip them!"
continue
list_process.append(process)
# done for loop
#self.list_process=list_process
#self.list_process=["ttbar"]
#self.list_process=["data"]
# reduce category
# if self.do_later or True:
if self.do_later and False:
if "MVA" in self.stem:
# self.set_list_category(["2tag2jet_150ptv_SR","2tag3jet_150ptv_SR","2tag4jet_150ptv_SR","2tag5pjet_150ptv_SR"])
self.set_list_category(["2tag2jet_150ptv_SR","2tag3jet_150ptv_SR"])
# self.set_list_category(["2tag2jet_150ptv_SR"])
None
elif "CUT" in self.stem:
self.set_list_category(["2tag2jet_150_200ptv_SR","2tag2jet_200ptv_SR","2tag3jet_150_200ptv_SR","2tag3jet_200ptv_SR"])
# self.set_list_category(["2tag2jet_150_200ptv_SR"])
None
else:
print "Neither MVA, nor CUT are not found in stem",self.stem,". Will ABORT!!!"
assert(False)
# done if
# done if
# self.set_list_category(["2tag2jet_150ptv_SR","2tag3jet_150ptv_SR"])
# self.set_list_category(["2tag2jet_150ptv_SR"])
# self.set_list_category(["2tag3jet_150ptv_SR"])
# self.set_list_category(["2tag5pjet_150ptv_SR"])
# self.set_list_category(["0ptag3jet_150ptv_SR"])
# self.set_list_category(["0ptag0pjet_150ptv_SR"])
# self.set_list_category(["2tag2jet_0ptv_SR","2tag3jet_0ptv_SR"]) # with do merge ptv bins get this name convention
# self.set_list_variable(["pTB1"])
# self.set_list_variable(["mBB"])
# self.set_list_variable(["mBB"])
# self.set_list_variable(["mBB","mva"])
# self.set_list_variable(["mBB","mva","MET","SumPtJet","EtaB2"])
# self.set_list_variable(["EtaB1","EtaB2","EtaJ3","dEtaBB","costheta","AverageMuScaled","nTaus","MET","SumPtJet","pTB1","pTB2","pTJ3"])
# self.set_list_variable(["EtaB2"])
# self.set_list_variable(["pTB1","pTB2","pTJ3","EtaB1","EtaB2","EtaJ3","mBB","mva"])
# self.list_variable=["mBBNominal","mBBOneMu","mBBPtReco"]
# self.list_variable=["mBBNominal","mBBOneMu","mBBPtReco","SumPtJet"]
# self.list_variable=["mva"]
# self.list_variable=["mva","mBB"]
# self.list_variable=["mBB","MET","pTB1"]
# self.list_variable=["mBBRegression"]
# self.list_variable=["MET","pTB1","mBB","pTB2","EtaB1"]
# self.list_variable=["MET","SumPtJet","mBB"]
# self.set_list_variable(["mBBNominal","mBBOneMu","mBBOneMu4GeV","mBBOneMu5GeV","mBBOneMu6GeV","mBBOneMu7GeV","mBBOneMu10GeV","mBBOneMu12GeV","mBBOneMu15GeV","mBBOneMu20GeV","mBBPtReco","mBB"])
# self.set_list_variable(["njets","MV2c10_Data","btag_weight_Data","PtSigJets","EtaSigJets","NSigJets","PtFwdJets","EtaFwdJets","NFwdJets",])
# if self.do_later or True:
if self.do_later and False:
# only included at the pretag inclusive: on 0ptag2pjet or so
string_variable_ignore="EtaFwdJets,EtaSigJets,PtFwdJets,PtSigJets,NFwdJets,NSigJets,MV2c10_B,MV2c10_C,MV2c10_Data,MV2c10_L,btag_weight_B,btag_weight_C,btag_weight_Data,btag_weight_L,eff_B,eff_C,eff_L,njets"
string_variable_ignore+=",METSig_hard,RandomRunNumber,PileupReweight,PhiJ3,NTags,NJets,METVarT,METVarL_soft,METVarL_hard,METVarL,METSig_soft,METSig,METRho,METDirectional,METOverSqrtHT,METOverSqrtSumET,AverageMu,ActualMu,AverageMuScaled"
list_variable_ignore=string_variable_ignore.split(",")
list_variable=[]
for variable in self.list_variable:
if variable in list_variable_ignore:
continue
#if not ("TruthWZ" in variable):
# continue
# if not ("mBB" in variable or "mBBJ" in variable or "pTB1" in variable or "pTB2" in variable or "dPhiVBB" in variable or "HT" in variable):
# continue
# if not ("OneMuVR0GeV_PtRecoR21InclusiveADNone" in variable or "OneMuVR0GeV_PtRecoR21SplitADNone" in variable or "OneMuVR0GeV_PtRecoR21InclusiveAorDNone" in variable or "OneMuVR0GeV_PtRecoR21SplitAorDNone" in variable):
# if not ("OneMuVR0GeV_PtRecoR21SplitADNone" in variable or "OneMuVR4GeV_PtRecoR21SplitADNone" in variable or "OneMuVR7GeV_PtRecoR21SplitADNone" in variable or "OneMuVR10GeV_PtRecoR21SplitADNone" in variable):
# if not ("OneMuVR0GeV_PtRecoR21SplitADBukin" in variable or "OneMuVR0GeV_PtRecoR21SplitADBukinMedian" in variable or "OneMuVR4GeV_PtRecoR21SplitADBukin" in variable or "OneMuVR4GeV_PtRecoR21SplitADBukinMedian" in variable or "OneMuVR7GeV_PtRecoR21SplitADBukin" in variable or "OneMuVR7GeV_PtRecoR21SplitADBukinMedian" in variable or "OneMuVR10GeV_PtRecoR21SplitADBukin" in variable or "OneMuVR10GeV_PtRecoR21SplitADBukinMedian" in variable or "Regression" in variable):
#if not ("mBB" in variable and "mBBJ" not in variable):
# continue
if not (variable=="mBB"):
continue
# if not (variable.endswith("Nominal") or variable.endswith("OneMu") or variable.endswith("PtReco") or variable.endswith("OneMuVR0GeV") or variable.endswith("OneMuVR4GeV") or variable.endswith("OneMuVR7GeV") or variable.endswith("OneMuVR10GeV") or "OneMuInJet" in variable or "MuonInJet" in variable or "ElectronInJet" in variable):
#if not (variable.endswith("Nominal")):
# if not ("OneMuInJet" in variable or "MuonInJet" in variable or "ElectronInJet" in variable):
#continue
# if not "Nominal" in variable:
# continue
# if "mBB" in variable: # temp
# continue
list_variable.append(variable)
# done for loop
self.set_list_variable(list_variable)
# done if
# self.set_list_variable(["njets","MV2c10_Data",])
# self.set_list_variable(["mBBNominal","mBBOneMu","mBBPtReco"])
# self.set_list_variable(["mBBNominal","mBBOneMu4GeV","mBBOneMu10GeV","mBBPtReco"])
# self.set_list_variable(["AverageMuScaled","MET","SumPtJet","EtaB1","EtaB2","EtaB3","pTB1","pTB2","pTJ3","nrMuonInJetB1","nrMuonInJetB2","nrMuonInJetB2","dRBB","])
# self.set_list_variable(["AverageMuScaled","MET","SumPtJet","EtaB1","EtaB2","EtaJ3","pTB1","pTB2","pTJ3","dRBB","mBB","mva"])
# if self.debug:
if self.verbose:
self.print_lists()
if self.do_later or self.do_create_histosRaw:
self.create_histosRaw(option="reduced")
# return
# now we want to sum over processInitial for a given process
self.set_list_process_info()
if self.do_later or self.do_create_histosProcess:
self.create_histosProcess()
# return
self.set_list_processMerged()
if self.do_later or self.do_create_histosProcessMerged:
self.create_histosProcessMerged(doSF=True)
# return
self.set_list_processAnalysis()
if False and (self.do_later or self.do_create_results):
self.list_processResult=["VHbb","otherHiggs","diboson","Whf","Wcl","Wl","Zhf","Zcl","Zl","ttbar","ttX","stop","S","B","data"]
self.list_processResult=self.list_processResult+["S/B","SigY_S_B","SigH_S_B"]
if True:
self.create_results()
if False and (self.do_later or self.do_create_latex_table):
self.read_results()
self.list_processResult=["VHbb","otherHiggs","diboson","Whf","Wcl","Wl","Zhf","Zcl","Zl","ttbar","ttX","stop","S","B","data"]
self.list_processResult=self.list_processResult+["S/B","SigY_S_B"]
# for bJetCorr in "Nominal,OneMu20GeV,OneMu15GeV,OneMu12GeV,OneMu10GeV,OneMu7GeV,OneMu6GeV,OneMu5GeV,OneMu4GeV,PtReco".split(","):
# for bJetCorr in "Nominal,OneMu,PtReco".split(","):
# for var in "mBB,mva,MET".split(","):
# for var in "mBBNominal".split(","):
# for var in list_variable:
for var in []:
self.list_processResult=self.list_processResult+["SigH_S_B@"+var]
self.create_yield_latex_table(doDocument=False)
# self.create_overlaid_variable()
# done if
# return
if self.do_later or self.do_create_stacked_plots:
# self.set_list_variable(["pTB1","pTB2","pTJ3","EtaB1","EtaB2","EtaJ3"]) # don't look yet, as not blinded
# self.set_list_variable(["MET"])
# self.set_list_variable(["pTB1","pTB2","pTJ3","EtaB1","EtaB2","EtaJ3","mBB","mva"])
# self.set_list_category(["2tag2jet_150ptv_SR","2tag3jet_150ptv_SR","2tag4jet_150ptv_SR","2tag5pjet_150ptv_SR"])
# self.set_list_variable(["SumPtJet"])
# do overlay plots of D,B,BplusS,S (S is times some value)
# self.create_overlaid_plots()
# do stack plots of signal, background, data (S is times some value)
self.create_stacked_plots()
print "outside create_stacked_plots()"
# done if doYields
# self.set_list_processInitial(["WHlv125J_MINLO"])
# self.set_list_processInitial(["ZeeL_v221"])
# self.evaluate_content_of_one_processInitial("WHlv125J_MINLO","False")
# self.print_all()
# done function
def set_dict_categorySF_processMerged_SF(self):
inputFileName="./info/ICHEP2018/"+self.analysis+".txt"
if True or self.debug:
print "inputFileName",inputFileName
self.dict_categorySF_processMerged_SF={}
with open(inputFileName,'r') as f:
for line in f:
line=line.rstrip()
if line=="":
continue
if "-lepton" in line:
continue
if "b-tag" in line:
continue
if "S/B" in line:
continue
if "S/sqrt(S+B)" in line:
continue
if "blih" in line:
continue
if self.debug:
print "line",line
if "Region" in line:
assert(len(line.split())==1)
categorySF=line
continue
if self.debug:
print "categorySF",categorySF,"line",line
list_lineElement=line.split()
processMerged=list_lineElement[0]
if processMerged=="data":
SF=(1.0,0.0)
else:
SF=(float(list_lineElement[1]),float(list_lineElement[2]))
if self.debug:
print "categorySF",categorySF,"processMerged",processMerged,"SF",SF
self.dict_categorySF_processMerged_SF[categorySF+"_"+processMerged]=SF
# done loop over lines
# close file
if self.debug:
for categorySF_processMerged in sorted(self.dict_categorySF_processMerged_SF.keys()):
print "categorySF_processMerged",categorySF_processMerged,self.dict_categorySF_processMerged_SF[categorySF_processMerged]
# done if
# nothing to return as already set
# done function
def set_dict_analysis_channel_category_categorySF(self):
self.dict_analysis_channel_category_categorySF={
# #############
# ### MVA #####
# #############
# 0L 150-inf SR
"MVA_0L_2tag2jet_150ptv_SR":"Region_BMin150_Y4033_DSR_T2_L0_distmva_J2",
"MVA_0L_2tag3jet_150ptv_SR":"Region_BMin150_Y4033_DSR_T2_L0_distmva_J3",
# 1L 150-info SR
"MVA_1L_2tag2jet_150ptv_WhfSR":"Region_BMin150_Y4033_DWhfSR_T2_L1_distmva_J2",
"MVA_1L_2tag3jet_150ptv_WhfSR":"Region_BMin150_Y4033_DWhfSR_T2_L1_distmva_J3",
# 1L 150-inf CR
"MVA_1L_2tag2jet_150ptv_WhfCR":"Region_BMin150_Y4033_DWhfCR_T2_L1_distmva_J2",
"MVA_1L_2tag3jet_150ptv_WhfCR":"Region_BMin150_Y4033_DWhfCR_T2_L1_distmva_J3",
# 2L 150-inf SR
"MVA_2L_2tag2jet_150ptv_SR":"Region_BMin150_Y4033_DSR_T2_L2_distmva_J2",
"MVA_2L_2tag3pjet_150ptv_SR":"Region_BMin150_incJet1_Y4033_DSR_T2_L2_distmva_J3",
"MVA_2L_2tag2jet_150_250ptv_SR":"Region_BMin150_Y4033_DSR_T2_L2_distmva_J2",
"MVA_2L_2tag3pjet_150_150ptv_SR":"Region_BMin150_incJet1_Y4033_DSR_T2_L2_distmva_J3",
"MVA_2L_2tag2jet_250ptv_SR":"Region_BMin150_Y4033_DSR_T2_L2_distmva_J2",
"MVA_2L_2tag3pjet_250ptv_SR":"Region_BMin150_incJet1_Y4033_DSR_T2_L2_distmva_J3",
# 2L 150-inf CR (topemucr)
"MVA_2L_2tag2jet_150ptv_topemucr":"Region_BMin150_Y4033_Dtopemucr_T2_L2_distmBBMVA_J2",
"MVA_2L_2tag3pjet_150ptv_topemucr":"Region_BMin150_incJet1_Y4033_Dtopemucr_T2_L2_distmBBMVA_J3",
# 2L 75-150 SR
"MVA_2L_2tag2jet_75_150ptv_SR":"Region_BMax150_BMin75_Y4033_DSR_T2_L2_distmva_J2",
"MVA_2L_2tag3pjet_75_150ptv_SR":"Region_BMax150_BMin75_incJet1_Y4033_DSR_T2_L2_distmva_J3",
# 2L 75-150 CR (topemucr)
"MVA_2L_2tag2jet_75_150ptv_topemucr":"Region_BMax150_BMin75_Y4033_Dtopemucr_T2_L2_distmBBMVA_J2",
"MVA_2L_2tag3pjet_75_150ptv_topemucr":"Region_BMax150_BMin75_incJet1_Y4033_Dtopemucr_T2_L2_distmBBMVA_J3",
# #############
# ### CUT #####
# #############
# 0L 200-inf SR
"CUT_0L_2tag2jet_200ptv_SR":"Region_BMin200_Y4033_DSR_T2_L0_distmBB_J2",
"CUT_0L_2tag3jet_200ptv_SR":"Region_BMin200_Y4033_DSR_T2_L0_distmBB_J3",
# 0L 150-200 SR
"CUT_0L_2tag2jet_150_200ptv_SR":"Region_BMax200_BMin150_Y4033_DSR_T2_L0_distmBB_J2",
"CUT_0L_2tag3jet_150_200ptv_SR":"Region_BMax200_BMin150_Y4033_DSR_T2_L0_distmBB_J3",
# 1L
# in 1L CUT SR and CR are merged into SR at SplitInputs
# but our inputs produced from Reader give SR and CR
# so point both to the SR from the txt file
# 1L 200-inf SR
"CUT_1L_2tag2jet_200ptv_WhfSR":"Region_BMin200_Y4033_DWhfSR_T2_L1_distmBB_J2",
"CUT_1L_2tag3jet_200ptv_WhfSR":"Region_BMin200_Y4033_DWhfSR_T2_L1_distmBB_J3",
# 1L 200-inf CR
"CUT_1L_2tag2jet_200ptv_WhfCR":"Region_BMin200_Y4033_DWhfSR_T2_L1_distmBB_J2", # note CR <- SR
"CUT_1L_2tag3jet_200ptv_WhfCR":"Region_BMin200_Y4033_DWhfSR_T2_L1_distmBB_J3", # note CR <- SR
# 1L 150-200 SR
"CUT_1L_2tag2jet_150_200ptv_WhfSR":"Region_BMax200_BMin150_Y4033_DWhfSR_T2_L1_distmBB_J2",
"CUT_1L_2tag3pjet_150_200ptv_WhfSR":"Region_BMax200_BMin150_Y4033_DWhfSR_T2_L1_distmBB_J3",
# 1L 150-200 CR
"CUT_1L_2tag2jet_150_200ptv_WhfCR":"Region_BMax200_BMin150_Y4033_DWhfSR_T2_L1_distmBB_J2", # note CR <- SR
"CUT_1L_2tag3jet_150_200ptv_WhfCR":"Region_BMax200_BMin150_Y4033_DWhfSR_T2_L1_distmBB_J3", # note CR <- SR
# 2L
# in 2L CUT the topemu CR 150_200ptv and 200ptv is merged into 150ptv at SplitInputs
# 2L 200-inf SR
"CUT_2L_2tag2jet_200ptv_SR":"Region_BMin200_Y4033_DSR_T2_L2_distmBB_J2",
"CUT_2L_2tag3pjet_200ptv_SR":"Region_BMin200_incJet1_Y4033_DSR_T2_L2_distmBB_J3",
# 2L 200-inf CR (topemucr)
"CUT_2L_2tag2jet_200ptv_topemucr":"Region_BMin150_Y4033_Dtopemucr_T2_L2_distmBB_J2", # 200 <- 150
"CUT_2L_2tag3pjet_200ptv_topemucr":"Region_BMin150_incJet1_Y4033_Dtopemucr_T2_L2_distmBB_J3", # 200 <- 150
# 2L 150-200 SR
"CUT_2L_2tag2jet_150_200ptv_SR":"Region_BMax200_BMin150_Y4033_DSR_T2_L2_distmBB_J2",
"CUT_2L_2tag3pjet_150_200ptv_SR":"Region_BMax200_BMin150_incJet1_Y4033_DSR_T2_L2_distmBB_J3",
# 2L 150-200 CR (topemucr)
"CUT_2L_2tag2jet_150_200ptv_topemucr":"Region_BMin150_Y4033_Dtopemucr_T2_L2_distmBB_J2", # 150_200 <- 150
"CUT_2L_2tag3pjet_150_200ptv_topemucr":"Region_BMin150_incJet1_Y4033_Dtopemucr_T2_L2_distmBB_J3", # 150_200 <- 150
# 2L 075-150 SR
"CUT_2L_2tag2jet_75_150ptv_SR":"Region_BMax150_BMin75_Y4033_DSR_T2_L2_distmBB_J2",
"CUT_2L_2tag3pjet_75_150ptv_SR":"Region_BMax150_BMin75_incJet1_Y4033_DSR_T2_L2_distmBB_J3",
# 2L 075-150 CR (topemucr)
"CUT_2L_2tag2jet_75_150ptv_topemucr":"Region_BMax150_BMin75_Y4033_Dtopemucr_T2_L2_distmBB_J2",
"CUT_2L_2tag3pjet_75_150ptv_topemucr":"Region_BMax150_BMin75_incJet1_Y4033_Dtopemucr_T2_L2_distmBB_J3",
}
# done function
def do_all_new(self):
self.create_folderProcessInitial()
self.set_dict_variable_info()
self.set_list_processMerged_new()
self.create_folderHistos()
self.set_fileNameHistosProcessMerged()
print self.fileNameHistosProcessMerged
if True:
self.set_dict_analysis_channel_category_categorySF()
self.set_dict_categorySF_processMerged_SF()
if True:
self.create_histosProcessMerged_new(doSF=True)
if True:
self.create_folderPlots()
self.list_color=[1,4,2,8,ROOT.kOrange]
self.create_stacked_plots()
self.create_folderResults()
# self.list_processResult=["WZ","ZZ","ggZZ"]
# self.list_processMerged=["WZ","ZZ","ggZZ"]
self.list_processResult=["VHbb","otherHiggs","diboson","Whf","Wcl","Wl","Zhf","Zcl","Zl","ttbar","ttX","stop","S","B","data"]
self.list_processResult=self.list_processResult+["S/B","SigY_S_B","SigH_S_B"]
if True:
self.create_results()
if True:
self.create_folderYields()
self.read_results()
# self.create_yield_latex_table(doDocument=True)
self.create_yield_latex_table2()
if False:
if self.debug:
print self.vtag
# vtag_ref="32-07"
vtag_ref="32_07"
if self.debug:
print "ADRIAN self",self.stem,self.folderResults
ref=copy.copy(self)
ref.stem=ref.stem.replace(self.vtag,vtag_ref)
ref.folderResults=ref.folderResults.replace(self.vtag,vtag_ref)
if self.debug:
print "ADRIAN self",self.stem,self.folderResults
print "ADRIAN","ref",ref.stem,ref.folderResults
ref.read_results()
self.create_yield_latex_table_compare(ref,doDocument=False,debug=True)
# done function
### done methods
# done class
<file_sep>from utils import *
INPUT_FOLDER_NAME = "./input"
OUTPUT_FOLDER_NAME = "./output"
# logging level: NOTSET, DEBUG, INFO, WARNING, ERROR, CRITICAL
logger = logging.getLogger()
logger.setLevel(logging.INFO)
if __name__ == "__main__":
help_str = """
This is the main function.
"""
logging.info("Hello world!")
<file_sep>#!/usr/bin/env python3
import numpy as np
import math
from HelperNumpy import print_numpy
from HelperMatplotlib import *
def get_nparray_from_structured_array_from_binary_file(inputFileName,expected_M=0,debug=False,verbose=False):
if debug:
print("Reading numpy from structured array from a binary file",inputFileName)
# start2=timer()
# read structured array
structured_array=np.load(inputFileName)
if debug:
print("structured_array:")
print("type",type(structured_array),"size",structured_array.size,"shape",structured_array.shape)
print(structured_array)
# [('x', '<f4'), ('y', '<f4'), ('z', '<f4'), ('red', 'u1'), ('green', 'u1'), ('blue', 'u1'), ('index', '<f4')]
print("type",structured_array.dtype,"its type",type(structured_array.dtype))
print("descr",structured_array.dtype.descr,type(structured_array.dtype.descr))
print("names",structured_array.dtype.names,type(structured_array.dtype.names))
# done if
temp_data = []
for i,axisName in enumerate(structured_array.dtype.names):
if debug:
print("i",i,"axisName",axisName)
print(axisName,structured_array[axisName],type(structured_array[axisName]),structured_array[axisName].dtype)
print(axisName,structured_array[axisName].astype('f8'),type(structured_array[axisName].astype('f8')),structured_array[axisName].astype('f8').dtype)
# done if
temp_data.append(structured_array[axisName].astype('f8')) # need f8 to allow for indices large, as for number of points per cloud large as 130M or nore
# done for loop
if debug:
print("temp_data")
print(temp_data,type(temp_data))
nparray_vstack=np.vstack(temp_data)
if debug:
print("nparray_vstack",nparray_vstack.dtype,nparray_vstack.shape)
print(nparray_vstack)
nparray=nparray_vstack.T
if debug:
print("nparray",nparray.dtype,nparray.shape)
print(nparray)
# check that it has the same number of axes (M) as expected
if expected_M!=nparray.shape[1]:
print("ERROR!!! Expected number of axes=M_expecte=",expected_M,"but obtained",nparray.shape[1],". Will ABORT!!!")
assert(False)
# done all
# end2=timer()
# print(end2-start2,"seconds to Reading numpy from structured array from a binary file",inputFileName)
# note, all of the file could be done in these two lines, but no gain in speed is observed
# structured_array=np.load(inputFileName)
# return np.vstack([structured_array[axisName].astype('f4') for i,axisName in enumerate(structured_array.dtype.names)]).T
return nparray
# done function
# applicable for the particular case of S=1, M=2 with a spatial value and an attribute which is an id as integer
# we compress with a tolerance on the integer < 0.49 so the id remains the same in the compression
# so we sort by simply matching the id
def reorder_one_point_cloud_to_match_a_reference_with_last_element_an_id_new_way(pc_reference,pc_current,S,M,debug=False,verbose=False):
if debug or verbose:
print("")
print("Start reorder_one_point_cloud_to_match_a_reference_with_last_element_an_id()")
pc_current_reordered=np.copy(pc_current)
if debug:
print("pc_current",type(pc_current))
print(pc_current)
a=pc_current[:,-1]
print("type",a.dtype,type(a))
print_nparray("a",a)
print("pc_current[:,-1]",type(pc_current[:,-1]))
print(pc_current[:,-1])
b=np.round(pc_current[:,-1]).astype(np.uint32)
print("[np.round(pc_current[:,-1]).astype(np.uint32)","len",len(b),"type",type(b),"min",np.min(b),"max",np.max(b))
print(b)
unique, counts = np.unique(b, return_counts=True)
d=dict(zip(unique, counts))
print("d")
for e in d:
if d[e]==0:
print("e",e,"d[e]",d[e])
b=np.where(a==35255288)
print("index of 35255288",b)
# done if
# do the reordering
pc_current_reordered[np.round(pc_current[:,-1]).astype(np.uint32),:]=1*pc_current
if debug:
print("before reshape pc_current_reordered")
print(pc_current_reordered,type(pc_current_reordered))
# create a new array without the last column
pc_current_reordered=pc_current_reordered[:,:M] # to skip the last element the index
if debug:
print("after reshape pc_current_reordered")
print(pc_current_reordered,type(pc_current_reordered))
# calculate distance for the spatial dimensions S
distances_current_to_reference_reshaped=np.sqrt(np.sum(np.square(pc_current_reordered-pc_reference)[:,:S],axis=-1))
if debug:
pc_diff=(pc_current_reordered-pc_reference)**2
print("pc_diff",pc_diff,type(pc_diff),pc_diff.shape)
pc_a=pc_diff[:,:S]
print("pc_a",pc_a,type(pc_a),pc_a.shape)
pc_s2=np.sum(pc_a,axis=-1)
print("pc_s2",pc_s2,type(pc_s2),pc_s2.shape)
pc_s=np.sqrt(pc_s2)
print("pc_s",pc_s,type(pc_s),pc_s.shape)
# done all
return pc_current_reordered,distances_current_to_reference_reshaped
# done function
def compare_two_point_clouds_with_same_order(pc_current,pc_reference,debug=False,verbose=False):
if True:
print("pc_current")
print(pc_current)
print("pc_reference")
print(pc_reference)
# calculate the max and avg deviation for each axis
pc_current_deviation=np.absolute(pc_current-pc_reference)
if debug:
print("pc_current_deviation")
print(pc_current_deviation)
N,M=pc_current.shape
if debug:
print("N",N,"M",M)
# get numpy arrays of dimension M with the maximum and averages values of each column
columns_max=np.max(pc_current_deviation,0)
columns_avg=np.mean(pc_current_deviation,0)
if True or debug:
print("columns_max",columns_max)
print("columns_avg",columns_avg)
# assert(False)
# and here have access at the values of each column
# such as to store in a histogram and then plot them
if False:
for i in range(M):
if debug:
print("axis i",i)
# the column along the i-th axis
# 1 is the second dimension, hence the one with axis
# then from the axes we take the one with number i
nparray_column=np.take(pc_current_deviation,i,1)
column_max=np.max(nparray_column)
column_avg=np.mean(nparray_column)
if True or debug:
print("max",column_max,"avg",column_avg)
# create a histogram from the full distribution of the column
# and save it in a plot
# done loop over dimensions
# done if
return pc_current_deviation,columns_max,columns_avg
# done function
def calculate_euclidean_distance_deviation_from_point_clouds_with_same_order(pc_current,pc_reference,S,coordinateSystemType,debug=False,verbose=False):
N,M=pc_current.shape
pc_current=pc_current.astype(np.float64)
pc_reference=pc_reference.astype(np.float64)
if True or debug:
print("N",N,"M",M,"S",S)
print("pc_current","dtype",pc_current.dtype)
print(pc_current)
print("pc_reference","dtype",pc_reference.dtype)
print(pc_reference)
columns_max=np.max(pc_current,0)
print("columns_max pc_current")
print(columns_max)
columns_max=np.max(pc_reference,0)
print("columns_max pc_reference")
print(columns_max)
#assert(False)
list_deviation=[]
# loop over all points and for each calculate the euclidean distance
# support both cartesian and spherical, and S=0, 1, or 2.
list_d_cartesian=[]
list_d_spherical=[]
list_r2=[]
list_t2=[]
list_p2=[]
list_r1=[]
list_t1=[]
list_p1=[]
for i in range(N):
#if i>10:
# continue
point_current=pc_current[i]
point_reference=pc_reference[i]
if debug:
print("i",i,"point_current",point_current,"dtype",point_current.dtype,"point_reference",point_reference,"dtype",point_reference.dtype)
if coordinateSystemType=="Cartesian":
if S==1:
# read variables from point_current, assume order x
x2=point_current[0]
# read variables from point_reference, assume order x
x1=point_reference[0]
# calculate deviation
x2_x1=x2-x1
deviation=math.sqrt(x2_x1*x2_x1)
elif S==2:
# read variables from point_current, assume order x, y
x2=point_current[0]
y2=point_current[1]
# read variables from point_reference, assume order x, y
x1=point_reference[0]
y1=point_reference[1]
# calculate deviation
x2_x1=x2-x1
y2_y1=y2-y1
deviation=math.sqrt(x2_x1*x2_x1+y2_y1*y2_y1)
elif S==3:
# read variables from point_current, assume order x, y, z
x2=point_current[0]
y2=point_current[1]
z2=point_current[2]
# read variables from point_reference, assume order x, y, z
x1=point_reference[0]
y1=point_reference[1]
z1=point_reference[2]
# calculate deviation
x2_x1=x2-x1
y2_y1=y2-y1
z2_z1=z2-z1
deviation=math.sqrt(x2_x1*x2_x1+y2_y1*y2_y1+z2_z1*z2_z1)
else:
print("S",S,"not known. Choose 1, 2, 3. Will ABORT!!!")
# done if
elif coordinateSystemType=="Spherical":
if S==1:
pass
elif S==2:
pass
elif S==3:
# read variables from point_current, assume order radius, theta, phi
r2=point_current[0]
t2=point_current[1]
p2=point_current[2]
#t2=0
#p2=0
# read variables from point_reference, assume order radius, theta, phi
r1=point_reference[0]
t1=point_reference[1]
p1=point_reference[2]
#t1=0
#p1=0
if r2==0 or r1==0:
continue
# calculate euclidean distance
cos_t2_t1=np.cos(t2-t1)
cos_p2_p1=np.cos(p2-p1)
sin_t2=np.sin(t2)
sin_t1=np.sin(t1)
cos_t2=np.cos(t2)
cos_t1=np.cos(t1)
if debug:
print("r2",r2,"type",r2.dtype)
print("r1",r1,"type",r1.dtype)
print("t2",t2)
print("t1",t1)
print("t2_t1",t2-t1)
print("cos_t2",cos_t2)
print("cos_t1",cos_t1)
print("cos_t2_t1",cos_t2_t1)
print("sin_t2",sin_t2,"type",type(sin_t2),math.sin(t2),type(math.sin(t2)))
print("sin_t1",sin_t1)
print("p2",p2,"p1",p1)
print("r2*r2",r2*r2)
print("r1*r1",r1*r1)
# d*d=r2*r2+r1*r2-2*r2*r1*[cos(t2-t1)*cos(p2-p1)+sin(t1)*sin(t2)*[1-cos(p2-p1]]
Parantheses_max_allowed=(r2*r2+r1*r1)/(2*r2*r1)
if debug:
print("Parantheses_max_allowed",Parantheses_max_allowed)
Parantheses_1=(cos_t2_t1*cos_p2_p1+sin_t2*sin_t1*(1.0-cos_p2_p1))
if debug:
print("Parantheses_1",Parantheses_1)
d2_spherical=r2*r2+r1*r1-2*r2*r1*Parantheses_1
d_spherical=np.sqrt(d2_spherical)
if debug:
print("d2_spherical",d2_spherical,"d_spherical",d_spherical)
# calculate also cartesian coordinates and then the euclidean distance to validate the spherical coordinates formula
#
x2=r2*cos_t2*cos_t2
y2=r2*cos_t2*sin_t2
z2=r2*sin_t2
#
x1=r1*cos_t1*cos_t1
y1=r1*cos_t1*sin_t1
z1=r1*sin_t1
#
x2_x1=x2-x1
y2_y1=y2-y1
z2_z1=z2-z1
#
d2_cartesian=x2_x1*x2_x1+y2_y1*y2_y1+z2_z1*z2_z1
d_cartesian=np.sqrt(d2_cartesian)
if debug:
print("d2_cartesian",d2_cartesian,"d_cartesian",d_cartesian)
#Peak=2
#if (d_cartesian>Peak-0.1 and d_cartesian<Peak+0.1)==False:
# continue
#
list_d_cartesian.append(d_cartesian)
list_d_spherical.append(d_spherical)
list_r1.append(r1)
list_t1.append(t1)
list_p1.append(p1)
list_r2.append(r2)
list_t2.append(t2)
list_p2.append(p2)
#
deviation=d_spherical
else:
print("S",S,"not known. Choose 1, 2, 3. Will ABORT!!!")
# done if
else:
print("coordinateSystemType",coordinateSystemType,"not known. Choose Cartesian or Spherical. Will ABORT!!!")
assert(False)
# done if
# add deviation to list
list_deviation.append(deviation)
# done loop over all points
#
numpy_deviation=np.array(list_deviation)
# do some more plots for spherical coordinates in 3D
if S==3 and coordinateSystemType=="Spherical":
numpy_d_cartesian=np.array(list_d_cartesian)
numpy_d_spherical=np.array(list_d_spherical)
numpy_r1=np.array(list_r1)*0.01
numpy_t1=np.array(list_t1)#*180/np.pi
numpy_p1=np.array(list_p1)#*180/np.pi
numpy_r2=np.array(list_r2)*0.01
numpy_t2=np.array(list_t2)#*180/np.pi
numpy_p2=np.array(list_p2)#*180/np.pi
if debug:
print_numpy("numpy_d_cartesian",numpy_d_cartesian)
print_numpy("numpy_d_spherical",numpy_d_spherical)
print_numpy("numpy_r1",numpy_r1)
print_numpy("numpy_t1",numpy_t1)
print_numpy("numpy_p1",numpy_p1)
print_numpy("numpy_r2",numpy_r2)
print_numpy("numpy_t2",numpy_t2)
print_numpy("numpy_p2",numpy_p2)
# make plots
# binning_deviation=Peak-0.05+np.array(range(0,20))*(0.1/20.0)
binning_deviation=0.0+15.0*np.array(range(0,100))/100.0
draw_histogram_2d(numpy_d_cartesian,numpy_d_spherical,outputFileName="./output_histo_2D",extensions="png,pdf",nrBins=binning_deviation,info_x=["cartesian"],info_y=["spherical"],title="Title",plotColorBar=True,debug=False,verbose=False)
draw_histogram_2d(numpy_d_cartesian,numpy_r1,outputFileName="./output_histo_2D_cartesian_radius",extensions="png,pdf",nrBins=[binning_deviation,100],info_x=["cartesian"],info_y=["radius"],title="Title",plotColorBar=True,debug=False,verbose=False)
draw_histogram_2d(numpy_d_cartesian,numpy_t1,outputFileName="./output_histo_2D_cartesian_theta",extensions="png,pdf",nrBins=[binning_deviation,100],info_x=["cartesian"],info_y=["theta"],title="Title",plotColorBar=True,debug=False,verbose=False)
draw_histogram_2d(numpy_d_cartesian,numpy_p1,outputFileName="./output_histo_2D_cartesian_phi",extensions="png,pdf",nrBins=[binning_deviation,100],info_x=["cartesian"],info_y=["phi"],title="Title",plotColorBar=True,debug=False,verbose=False)
draw_histogram_2d(numpy_d_cartesian,np.cos(numpy_t1-numpy_t2),outputFileName="./output_histo_2D_cartesian_cos_theta",extensions="png,pdf",nrBins=[binning_deviation,100],info_x=["cartesian"],info_y=["cos theta"],title="Title",plotColorBar=True,debug=False,verbose=False)
draw_histogram_2d(numpy_d_cartesian,np.cos(numpy_p1-numpy_p2),outputFileName="./output_histo_2D_cartesian_cos_phi",extensions="png,pdf",nrBins=[binning_deviation,100],info_x=["cartesian"],info_y=["cos phi"],title="Title",plotColorBar=True,debug=False,verbose=False)
draw_histogram_2d(numpy_r1,numpy_r2,outputFileName="./output_histo_2D_r",extensions="png,pdf",nrBins=100,info_x=["r1"],info_y=["r2"],title="Title",plotColorBar=True,debug=False,verbose=False)
draw_histogram_2d(numpy_t1,numpy_t2,outputFileName="./output_histo_2D_t",extensions="png,pdf",nrBins=100,info_x=["t1"],info_y=["t2"],title="Title",plotColorBar=True,debug=False,verbose=False)
draw_histogram_2d(numpy_p1,numpy_p2,outputFileName="./output_histo_2D_p",extensions="png,pdf",nrBins=100,info_x=["p1"],info_y=["p2"],title="Title",plotColorBar=True,debug=False,verbose=False)
#
list_tupleArray=[]
list_tupleArray.append((numpy_d_cartesian,"Carthesian"))
list_tupleArray.append((numpy_d_spherical,"Spherical"))
overlay_histogram_from_nparray_with_ratio(list_tupleArray,outputFileName="./output_histo_from_nparray",extensions="png,pdf",nrBins=binning_deviation,histtype="step",info_x=["deviation"],info_y=["Number of points"],title="Title",text=None,info_legend=["best"],list_color="r,g,b,k,y".split(","),doAddRatioPad=False,debug=False,verbose=False)
# done if
# done if coordinateSystemType
# ready to return
return numpy_deviation
# done function
<file_sep>#!/usr/bin/python
from HelperPython import *
# to parse xml files
import xml.etree.ElementTree as ET
# to arrange visually better the output of nested dictionaries
import pprint
# time
import time
# re-implement on 19 June 2019 the example from https://github.com/tsoding/kdtree-in-python/blob/master/main.py
total = len(sys.argv)
# number of arguments plus 1
if total!=1:
print "You need some arguments, will ABORT!"
print "Ex: ",sys.argv[0]," "
assert(False)
# done if
#################################################################
################### Configurations ##############################
#################################################################
debug=False
verbose=True
list_option="brute_force,kdtree_naive,kdtree_advanced".split(",")
#list_option="kdtree_advanced".split(",")
svg_file_name="./pointsTutorial.svg"
TAG_NAME_CIRCLE='{http://www.w3.org/2000/svg}circle'
TAG_NAME_GROUP='{http://www.w3.org/2000/svg}g'
# assume a point is an ntuple with its positions, and we have 2 positions x,y, so
k=2 # the number of dimension of our data, here only x,y
# to visualise better nested dictionaries
# https://docs.python.org/2/library/pprint.html
pp=pprint.PrettyPrinter(indent=0)
#################################################################
################### Functions ###################################
#################################################################
#### read the list of points from the svg file ###
def get_point_from_circle(circle):
point=(float(circle.attrib['cx']),float(circle.attrib['cy']))
if debug:
print "point",point
return point
# done function
def get_tree(svg_file_name):
return ET.parse(svg_file_name)
# done function
def get_list_point(tree):
# using list comprehension to be more concise
list_point=[
get_point_from_circle(circle)
for circle in tree.iter(TAG_NAME_CIRCLE)
]
if debug:
print "list_point",list_point
return list_point
# done function
def get_list_point_with_the_same_point_id(tree, point_id):
# using list comprehension to be more concise
list_point=[
get_point_from_circle(circle)
for circle in tree.iter(TAG_NAME_CIRCLE)
if 'id' in circle.attrib
if circle.attrib['id']==point_id
]
if debug:
print "list_point with same point_id",list_point
return list_point
# done function
def get_list_point_with_the_same_group_id(tree, group_id):
# using list comprehension to be more concise
list_point=[
point
for group in tree.iter(TAG_NAME_GROUP)
if 'id' in group.attrib
if group.attrib['id']==group_id
for point in get_list_point(group)
]
if debug:
print "list_point with same group_id",list_point
return list_point
# done function
### find the distance between two points without tolerances ###
def get_distance_squared(point1,point2):
# these steps are called destructurize the ntuples
x1,y1=point1
x2,y2=point2
dx=x2-x1
dy=y2-y1
distance_squared=dx*dx+dy*dy
if debug:
print "x1",x1,"y1",y1,"x2",x2,"y2",y2,"distance_squared",distance_squared
return distance_squared
# done function
### find the closest point with the brute force method ###
def get_closest_point_brute_force(pivot,list_point):
closest_distance_squared=None
closest_point=None
for current_point in list_point:
if debug:
print "current_point",current_point
current_distance_squared=get_distance_squared(pivot,current_point)
if closest_distance_squared==None or current_distance_squared<closest_distance_squared:
closest_distance_squared=current_distance_squared
closest_point=current_point
if debug:
print "closest_point",closest_point,"closest_distance_squared",closest_distance_squared
# done if
# done for loop
if debug:
print "brute_force: Closest point to the pivot",pivot,"is the point",closest_point
return closest_point, closest_distance_squared
# done function
### find the closest point via a k-d tree (common to the naive and avanced methods) ###
# recursive function that builds the k-d tree a the list of points
# when it splits, it wil have as input a list which is a subset of the previous list
# and a depth increased by one
# depths starts with the default value of zero, for when we first invoke the function
def get_kdtree(list_point,depth):
N=len(list_point)
# if no points, we can not build any kdtree, so return None
if N<=0:
return None
# we will alternate the axis to use indices x,y -> indices 0,1; k=2 dimensions (x,y)
# axis: 0,1,0,1,0,1
# depth: 0,1,2,4,5,5
# so we can write the value of the axis as the value of the depth modulo value of k
axis=depth%k
# list_point is a list of tuples, each tuple with two floats for x,y or t0,t1
# as per the k-d tree algorithm, we sort this list only by the chosen axes
# if axis=1 (x), then we ignore the y values and the x values must be in increasing ordder
# if axis=2 (y), then we ignore the x values and the y values must be in increasign order
list_point_sorted=sorted(list_point,key=lambda point: point[axis])
if debug:
print "list_point_sorted",list_point_sorted
for point in list_point_sorted:
print "point",point
# done if
# now that the list is ordered, we will choose the point in the middle
# if N=5, choose the third value, n=2
# if N=4, there is no real middle, so choose the first of the second value, also n=2
# so the general formula for the position of the median is n=N/2, where n and N are integers
# and remember in integer algebra 5/2=2
# this chosen median point will become a node in the tree
# we will create two sub-lists of points to its left and right
# and then we will call recursively the same function to split them again
# but changing the axis, so we would increase the depth by one k+=1
# which will define the new alternating axis by the value axis=depth%k
# so no need to store the axis value, as it is calculated from depth inside the function
# and we will return the k-d tree. So how does the k-d tree looks like?
# The k-d tree has the three elements:
# 1. one point (the node): the chosen median point in our list
# 2. a new tree made from a new list of points, the sub-list found to the left of our median point
# 3. a new tree made from a new list of points, the sub-list found to the right of our median point
# What data structure is best to represent such tree?
# A dictionary! With keys "point", "left", "right".
return {
# the median point, from the list at position N/2
'point':list_point_sorted[N/2],
# new tree from sub-list left of N/2 and increased depth by one
'left':get_kdtree(list_point_sorted[0:N/2],depth+1),
# new tree from sub-list right of N/2 and increased depth by one
'right':get_kdtree(list_point_sorted[N/2+1:],depth+1),
}
# done function
### find the closest point with the k-d tree naive ###
# the kdtree is the root tree, the big tree of the kdtree
# need to keep track of the depth starting with the default of 0
# need to keep track of the closest point, starting with the default of None
# this is a recursive function too
def get_closest_point_kdtree_naive(pivot,kdtree,depth,closest_point):
# deal with edge (corner) cases first
if kdtree is None:
# we reached the leaf of the kdtree and we must return the best result and stop the recursion
# the recursion stops as we do not ask to return the result of the same function, but the point
if debug:
print "kdtree_naive: Closest point to the pivot",pivot,"is the point",closest_point
return closest_point
# done if
axis=depth%k
# does the current comparison find a closest point?
next_closest_point=None
# on what branch show we go next? Left or Right?
next_kdtree=None
# to answer the first question, we need to compare two distances squared (squared to be faster)
# 1) get_distance_squared(pivot,current_closest_point)
# 2) get_distance_squared(pivot,current_point)
# But what is the current_point? None other the splitting point of the current node of the kdtree
# 2) get_distance_squared(pivot,kdtree['point'])
# but remember that the current_closest_point can be None at first, and in that case we just
# want to assign the first value
if closest_point is None or get_distance_squared(pivot,kdtree['point']) < get_distance_squared(pivot,closest_point):
next_closest_point=kdtree['point']
else:
next_closest_point=closest_point
# done if
# to answer the second question, we see on which side of the current splitting point lies our pivot
if pivot[axis]<kdtree['point'][axis]:
next__kdtree=kdtree['left']
else:
next_kdtree=kdtree['right']
# done if
# with this two information we can go to the next iteration of the recursive process
return get_closest_point_kdtree_naive(pivot,next_kdtree,depth+1,next_closest_point)
# done function
# get the closest of two points to the pivot
# the pivot can not be None, but the two points can
# the distance between None and the pivot is infinite
# None is the most distance point
# if both points are None, then return None, meaning no closest point
def get_closest_of_two_points(pivot,point1,point2):
if point1 is None:
return point2
if point2 is None:
return point1
# these two if guarantee that if both are None, then it returns None
# once here, both of them are not none, and as pivot is not None
# we can measure the distances
if get_distance_squared(pivot,point1)<get_distance_squared(pivot,point2):
return point1
else:
return point2
# done function
### find the closest point with the k-d tree advanced ###
# iterative function, we maintain depth, but not closest_point
# default value of depth=0
def get_closest_point_kdtree_advanced(pivot,kdtree,depth):
if debug:
print "depth",depth,"splitting point",kdtree['point']
# if the kdtree is none (the leaf of the tree), then it has no point inside so we return none
if kdtree is None:
return None
axis=depth%k
next_kdtree=None
opposite_kdtree=None
if pivot[axis]<kdtree['point'][axis]:
next_kdtree=kdtree['left']
opposite_kdtree=kdtree['right']
else:
next_kdtree=kdtree['right']
opposite_kdtree=kdtree['left']
# done if
# now read to invoke the recursive call
closest_point=get_closest_of_two_points(
pivot,
kdtree['point'],
get_closest_point_kdtree_advanced(pivot,next_kdtree,depth+1)
)
# but maybe there is something better on the other side
# a good indicator of this is if the distance on that axis between pivot and point
# is smaller than the euclidean distance between the pivot and the closest_point found above
d_axis_pivot_point=pivot[axis]-kdtree['point'][axis]
if d_axis_pivot_point*d_axis_pivot_point<get_distance_squared(pivot,closest_point):
# same call but for the opposite branch of the tree
# and instead of the splitting point, use the previous best
closest_point=get_closest_of_two_points(
pivot,
closest_point,
get_closest_point_kdtree_advanced(pivot,opposite_kdtree,depth+1)
)
# done if
return closest_point
# done function
### putting it all together to prepare to run ###
def doItOne(pivot,list_point,option):
if debug:
print "doItOne() with option",option
if option=="brute_force":
# step 1: does not exist, we do not need to build something, as we will use all events
None
# step 2: traverse all the points, and at every step maintain the closest point
closest_point,closest_distance_squared=get_closest_point_brute_force(pivot,list_point)
elif option=="kdtree_naive":
# step 1: build the k-d tree
kdtree=get_kdtree(list_point,depth=0)
if debug:
pp.pprint(kdtree)
# step 2 in naive approach approach:
# use the k-d tree, and at every step maintain the closest point
# advantage in speed vs brute force is that we do not need to traverse all the tree branches
# but rather discard those that can not meet our criteria, and thus gain time
# one recursion inside the main function
closest_point=get_closest_point_kdtree_naive(pivot,kdtree,depth=0,closest_point=None)
elif option=="kdtree_advanced":
# step 1: build the k-d tree
kdtree=get_kdtree(list_point,depth=0)
if debug:
pp.pprint(kdtree)
# step 2 the advanced approach
# two recursions inside the main function, but second only inside an if, so not always
# to check if in the opposite branch there is no closer point
closest_point=get_closest_point_kdtree_advanced(pivot,kdtree,depth=0)
else:
print "option",option,"not known. Choose brute_force, kdtree_naive, kdtree_advanced. Will ABORT!!!"
assert(False)
# done if
return closest_point
# done function
def doItAll():
tree=get_tree(svg_file_name)
[pivot]=get_list_point_with_the_same_point_id(tree, "pivot")
if debug or verbose:
print "pivot",pivot
list_point=get_list_point_with_the_same_group_id(tree, "points")
if debug or verbose:
print "list_point",list_point
for option in list_option:
if debug:
print "option",option
start = time.time()
closest_point=doItOne(pivot,list_point,option)
end = time.time()
if debug or verbose:
print "Option","%-15s" % option,", timing",end-start,"seconds, closest_point",closest_point
# done if
# done function
#################################################################
################### Run #########################################
#################################################################
doItAll()
#################################################################
################### Finished ####################################
#################################################################
print ""
print ""
print "Finished all in",sys.argv[0]
<file_sep>#!/usr/bin/env python3
import numpy as np
def print_numpy(name,array):
print("numpy_array: "+name)
print(array)
print("type",type(array),"len",len(array),"dtype",array.dtype,"shape",array.shape,"min",np.min(array),"max",np.max(array),"avg",np.mean(array))
# done function
def print_nparray(name,nparray):
print("Start nparray: "+name)
print(nparray)
print("type",type(nparray),"len",len(nparray),"dtype",nparray.dtype,"shape",nparray.shape,"min",np.min(nparray),"max",np.max(nparray),"avg",np.mean(nparray))
print("End nparray: "+name)
# done function
def getValues(event,listVariables,debug=False):
if debug:
print("listVariables",listVariables)
return numpy.array([getattr(event,variableName) for variableName in listVariables.split(',')])
# done function
def get_numpyarray_from_listString(listString,debug=False):
if debug:
print("listString",listString)
listFloat=[]
for string in listString:
listFloat.append(float(string))
# done for loop
numpyarray=numpy.array(listFloat)
if debug:
print("numpyarray",numpyarray)
return numpyarray
# done function
def read_file_with_values_in_numpy_array(fileName,debug):
# the first line gives the name of the variables, so we take it from there
# that way we can have only one function that can read any number of data files
# both the daily and the monthly for example
counter=0
f=open(fileName,"r")
for line in f:
line=line.rstrip()
if debug:
print("line",line)
if line.startswith("#"):
if debug or verbose:
print("Skipping line",line)
continue
list_line=line.split()
if debug:
print("list_line",list_line)
counter+=1
if counter==1:
list_name=list_line
break
# done loop over the file first
if debug:
print("list_name",list_name)
if debug:
print("")
print("Start loop again over the files")
# to plot we need numpyarrays, to create them we need lists
dict_name_list_value={}
for name in list_name:
dict_name_list_value[name]=[]
f=open(fileName,"r")
counter=0
for line in f:
line=line.rstrip()
if debug:
print("line",line)
if line.startswith("#"):
print("Skipping line",line)
continue
counter+=1
if counter==1:
continue
# now we are from the first line with values
list_line=line.split()
if debug:
print("list_line",list_line)
dict_name_value={}
# loop over names and fill the dictionary of values in the correct format (date and floats)
for i,name in enumerate(list_name):
dict_name_value[name]=list_line[i]
if i==0:
# the first element is the product we compare, keep it as a string, so do nothing
None
else:
# convert from string to float
dict_name_value[name]=float(dict_name_value[name])
# done if
if debug:
print("counter",counter,"i",i,"name",name,"value",dict_name_value[name],"type",type(dict_name_value[name]))
# for each name, append to its list
for name in list_name:
if debug:
print("name",name,"value",dict_name_value[name])
dict_name_list_value[name].append(dict_name_value[name])
# done for loop over all the lines
# from lists create numpy arrays
dict_name_nparray_value={}
for name in list_name:
if debug:
print("name",name,"list_value",dict_name_list_value[name])
if name=="Date":
dict_name_nparray_value[name]=np.array(dict_name_list_value[name],dtype='datetime64[D]')
dict_name_nparray_value[name]=dict_name_nparray_value[name].astype('O')
else:
dict_name_nparray_value[name]=np.array(dict_name_list_value[name])
if debug and name=="Date":
print("name",name,"np.array",dict_name_nparray_value[name])
# done loop over names
# finished reading the file
# print the output
for name in list_name:
if debug or True:
# if name=="Date":
if debug:
print("name",name,"nparray_value",dict_name_nparray_value[name])
# ready to return
return list_name,dict_name_nparray_value
# done function
# return a structured numpy array from a dictionary between keys and lists of values
# example:
# debug=False
# dict_key_list_value={
# "a":[1.4,1.2,1.15,1.1,1.0,0.8,0.6,0.5],
# "b":[10.2,10.0,9.8,8.55,6.44,6.20,5.44,3.22],
# "c":[6,5,4.9,4.8,4.6,6.5,6.8,7.2],
# }
# numpy_structured_array=get_structured_numpy_array_from_dictionary_key_list_value(dict_key_list_value,'f8',debug)
# np.save("a.npy",numpy_structured_array)
# numpy_structured_array_2=np.load("a.npy")
# print("numpy_structured_array_2","type",type(numpy_structured_array_2),"shape",numpy_structured_array_2.shape,":")
# print(numpy_structured_array_2)
def get_structured_numpy_array_from_dictionary_key_list_value(dict_key_list_value,format="f8",debug=False):
# first check that all the lists have the same number of elements, else crash
# then create the list of names and formats and append each key to that
list_name=[]
list_format=[]
for i,key in enumerate(sorted(dict_key_list_value.keys())):
list_value=dict_key_list_value[key]
len_list_value=len(list_value)
if i==0:
reference_key=key
reference_len_list_value=len_list_value
else:
# check if the current number of elements equals that of the list
if len_list_value != reference_len_list_value:
print("ERROR! In dictionary key(",key,") has",len_list_value,"elements, different from first key in alphabetical order (", reference_key, "), which has ",reference_len_list_value," elements. We will ABORT!!!")
assert(False)
# done if
# done if
list_name.append(key)
list_format.append(format)
# done for all elements in the dictionary
if debug:
print("list_name","type",type(list_name),"len",len(list_name),":")
print(list_name)
print("list_format","type",type(list_format),"len",len(list_format),":")
print(list_format)
#
# create the dtype of the dictionary
dtype=list(zip(list_name, list_format))
if debug:
print("dtype","type",type(dtype),"len",len(dtype),":")
print(dtype)
# create the data inside, as a list of tuples, where one tuples is one row
# meaning one value for each vertical axis, so for each name
# use a list comprehension that inside uses a list comprehension
list_tuple_value=[tuple([dict_key_list_value[name][i] for name in list_name]) for i in range(reference_len_list_value)]
if debug:
print("list_tuple_value","type",type(list_tuple_value),"len",len(list_tuple_value),":")
print(list_tuple_value)
nparray_structured_array=np.array(list_tuple_value,dtype=dtype)
if debug:
print("nparray_structured_array","type",type(nparray_structured_array),"shape",nparray_structured_array.shape,":")
print(nparray_structured_array)
# all done, ready to return
return nparray_structured_array
# done function
<file_sep>#!/usr/bin/python
import functools
import time
#################################################################
################### Decorator Functions #########################
#################################################################
def timing(f):
"""Print the timing for the function"""
# create a decorator as a wrapper so that before the function call we get the time
# after the function call we get the new time, so compute the elapsed time, and print it
# also print out the result if the permutation is possible or not and the two words
@functools.wraps(f) # preserves information about the original function
def wrapper(*args,**kwargs):
start=time.time()
result=f(*args,**kwargs)
end=time.time()
print "Permutation possible {} for function {} in elapsed time {} for {} vs {}".format(
int(result),f.__name__, end-start,args[0],args[1])
return result
# done inner function
return wrapper
# done function
def debugging(f):
"""Print the function signature and return value"""
# create a decorator as a wrapper so that befor teh function call prints the arguments
# and after the function call the returned value
@functools.wraps(f)
def wrapper_debug(*args, **kwargs):
args_repr=[repr(a) for a in args]
kwargs_repr=["{k}={v!r}" for k, v in kwargs.items()]
signature=",".join(args_repr + kwargs_repr)
print "Start function {}({}).".format(f.__name__,signature)
result=f(*args, **kwargs)
print "End function {}({}). Returned {}.".format(f.__name__,signature,result)
return result
# done inner function
return wrapper_debug
# done function
<file_sep># General
Created by <NAME> on 03 Dec 2020, as a skeleton of a python ML project, to be used as a template and save time when setting up new projects.
# Set up the Python environment the first time
Install `virtualenv`, if you do not have it already.
```
pip3 install virtualenv
```
Create a virtual environment
```
virtualenv env_skeleton_project
```
Activate the environment
```
source env_skeleton_project/bin/activate
```
Install the basic packages python packages needed for this project
```
pip install -r requirements.txt
```
When a new package is not here, install it with
```
pip install jupyter
pip install numpy
pip install pandas
pip install matplotlib
pip install seaborn
pip install sklearn
```
After you finished installing all the new packages, save the current environment status to a `requirements.txt` file with
```
pip freeze > requirements.txt
```
# How to set up after the first time
For all the other times, simply go to the folder and activate the python environment
```
cd env_skeleton_project
source env_skeleton_project/bin/activate
```
# Structure
There are three types of files:
* `.py` util files (helper files) with the common functions to be used in .py and .ipynb
* `.py` files that use the helper functions from the utils
* `.ipynb` files Jupyter Notebook files that also use the helper functions from the utils
There are several folders:
* input folder, empty, to add later data
* output folder, empty, to add later plots, result files
# Run the files
Run the regular `.py` with
```
python skeleton.py
```
Run the Jupyter Notebook
```
jupyter skeleton.ipynb
Kernel -> Restart & Clear Output
Kernel -> Restart & Run All
```
<file_sep>This repo was created by <NAME> (<EMAIL>).
This repo contains helper functions, skeleton of projects, instructions to set up python environments from the beginning on a new Mac. The goal is to set up a new Mac laptop to be able to do machine learning studies in Python. Also it serve as a Python tutorial and speed up development of new projects by re-using general code across several projects. For example: statistical calculations, manipulating of numpy arrays, pandas data frames, plots in matplotlib and seaborn, particle physics data analyses, time series, geo-spatial data analyses, predictions for classification or regression.
Below instuctions to set up a Python environment, from the beginning of having a new MacOS laptop up to doing a Machine Learning analysis.
It is a good practice to be able to have several Python versions installed, to choose for each project potentially another version of Python.
# Install the general MacOS enviroment
## Shell
Change the shell from `zsh` to `bash`.
```
echo $SHELL
chsh -s /bin/bash
echo $SHELL
```
Warning, this does not work on a new Mac. Maybe [here](https://itnext.io/upgrading-bash-on-macos-7138bd1066ba) solution.
## Brew
Install `brea` following the steps from [here](https://osxdaily.com/2018/03/07/how-install-homebrew-mac-os/) me on `MacOS` they look like this. First install [brew](https://brew.sh/)
```
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```
This will tell you to add `/opt/homebrew/bin` to your `PATH`, otherwise you will get
```
brew
-bash: brew: command not found
```
So add this to your `~/.profile`
```
export PATH=/opt/homebrew/bin:$PATH
```
But to add to the file, you need emacs, so let's install that first.
## Emacs
I did not find [these instructions](https://wikemacs.org/wiki/Installing_Emacs_on_OS_X) on the latest OS, like `El Sur`, but [these instructions](https://medium.com/really-learn-programming/configuring-emacs-on-macos-a6c5a0a8b9fa) worked. Run
```
brew tap d12frosted/emacs-plus
brew install emacs-plus@28 --with-modern-papirus-icon --with-cocoa
```
The option `--with-cocoa` will allow `Emacs` to open in pop up window, not only in the terminal. If this does not work, install also [XQuartz for MacOS](https://www.xquartz.org/) to have an `X11` system to pop up windows. The option `@28` means it is `Emacs` version `2.8`. You will get the text that `Emacs.app` was installed at `/opt/homebrew/opt/emacs-plus@28`. Now link the this to the main `/Applications` folder.
```
ln -s /opt/homebrew/opt/emacs-plus@28/Emacs.app /Applications
```
Run in the terminal
```
alias emacs=/Applications/Emacs.app/Contents/MacOS/Emacs
```
Next you can finally modify the `~/.profile` file using
```
emacs -nw ~/.profile
```
and write
```
export PATH=/opt/homebrew/bin:$PATH
alias emacs=/Applications/Emacs.app/Contents/MacOS/Emacs
```
## Other aliases
I find useful to also configure the Mac environment with a few more aliases
```
alias rm='rm -i'
alias ls='ls -C -G -h'
alias grep='grep --color=auto'
alias j="jupyter notebook"
```
Now this will be run every time you open a new terminal.
# Python Environment
There are instructions [here](https://www.chrisjmendez.com/2017/08/03/installing-multiple-versions-of-python-on-your-mac-using-homebrew/) for older ones. For me on `MacOS` they look like this. First install [brew](https://brew.sh/)
```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```
If you have it installed, update it to the latest
```
brew update
Install emacs
```
brew install emacs
```
```
Install `pyenv`
```
brew install pyenv
```
Install also these dependencies
```
brew install zlib
brew install sqlite
brew install bzip2
brew install libiconv
brew install libzip
```
Configure your Mac environment so that it uses `pyenv` to manage your packages and uses the packages from above from the new installed location. So in your `~/.profile` or `~/.bashrc` or equivalent add at the end these lines. It contains also some commented out lines that may be needed in the future.
```
# Configure the Python environments with PyEnv
#export PATH="$HOME/.pyenv/bin:$PATH"
export PATH="/usr/local/bin:$PATH"
# Configure your Mac environment so that it uses `pyenv` to manage your packages.
eval "$(pyenv init -)" #
#eval "$(pyenv virtualenv-init -)"
#
export CPPFLAGS="${CPPFLAGS} -I$(xcrun --show-sdk-path)/usr/include"
export LDFLAGS="${LDFLAGS} -L$(xcrun --show-sdk-path)/usr/lib"
#
export LDFLAGS="${LDFLAGS} -L/usr/local/opt/bzip2/lib"
export CPPFLAGS="${CPPFLAGS} -I/usr/local/opt/bzip2/include"
#
#export LDFLAGS="${LDFLAGS} -L/usr/local/opt/sqlite/lib"
#export CPPFLAGS="${CPPFLAGS} -I/usr/local/opt/sqlite/include"
#
#export PKG_CONFIG_PATH="${PKG_CONFIG_PATH} /usr/local/opt/zlib/lib/pkgconfig"
#export PKG_CONFIG_PATH="${PKG_CONFIG_PATH} /usr/local/opt/sqlite/lib/pkgconfig
```
Start a new terminal. By default it is still the Python 2.7, or you may get no python at all on MacBook M1 Pro.
```
python --version
```
Let's choose a version of Python `3.x.x` to install. To see all the versions of Python `3.x.x` that exist:
```
pyenv install -l | grep -ow 3.[0-9].[0-9] | sort
```
Let's choose and install the latest, currenty Python `3.9.9`. We can also install others.
```
pyenv install 3.9.9
pyenv install 3.8.6
pyenv install 3.7.9
```
Check the python versions installed
```
pyenv versions
```
You can set up one version as global for all cases. Python 2.x is no longer supported, so we can set as global `3.9.9`.
```
pyenv global 3.9.9
python --version
python
```
You can also set one other version in a particular folder (project, package). Just cd there and set for example `3.9.0`.
```
mkdir test
cd test
pyenv local 3.9.9
python --version
python
```
In either of these, you can later install the packages of Python libraries you need, for example
```
pip install numpy
pip install pandas
pip install matplotlib
```
In the future you only need to go out of the folder and you return to the global Python, or come back to the folder and automatically you are in the Python of that folder.
```
cd ..
python --version
cd test
python --version
```
Now you want to send this project to a friend to run it too, or to put it in production in a containarized environment. You store the list of installed packages in `requirements.txt`, and send this file, along with the Python version.
```
pip freeze > requiements.txt
```
Now in a fresh folder, you set up the same enviroment and libraries with
```
mkdir test2
cd test2
pyenv local 3.9.9
pip install -r requirements.txt
python --version
```
Now you can run the same code as initially.
<file_sep>#! /usr/bin/env python
# Load a profile histo
import yoda
aos = yoda.read("./yoda/fit.yoda")
h = aos["/RivetHbbBJets/h2_PTmt_PTnm_0"]
assert type(h) is yoda.Histo2D
print "integral",h.integral()
print "numEntries",h.numEntries()
print "sumW",h.sumW()
#print "xMean",h.xMean()
bins=h.bins()
exit()
for b in h.bins():
print b
<file_sep>#!/usr/bin/python
from HelperPython import *
# to parse xml files
import xml.etree.ElementTree as ET
# to arrange visually better the output of nested dictionaries
import pprint
# time
import time
# numpy
import numpy as np
# re-implement on 19 June 2019 the example from https://github.com/tsoding/kdtree-in-python/blob/master/main.py
# to add here the aspects of the brute force with tolerances, as this file compares brute force with KDTree
# later to update the KDTree method to also take into account the tolerances
# first on x,y, then on x,y,i, and after that also build the kdtree from x,y,i
# then added three things:
# 1. attributes, in addition to the coordinates
# 2. tolerances for each of the coordinates and attributes - can be none and then come back to standard case
# 3. any number of dimensions for both coordinates and attributes
total = len(sys.argv)
# number of arguments plus 1
if total!=1:
print "You need some arguments, will ABORT!"
print "Ex: ",sys.argv[0]," "
assert(False)
# done if
#################################################################
################### Configurations ##############################
#################################################################
debug=False
verbose=True
list_option="brute_force,kdtree_naive,kdtree_advanced".split(",")
#list_option="kdtree_advanced".split(",")
svg_file_name="./points.svg"
#svg_file_name="./points2.svg"
#svg_file_name="./pointsTutorial.svg"
TAG_NAME_CIRCLE='{http://www.w3.org/2000/svg}circle'
TAG_NAME_GROUP='{http://www.w3.org/2000/svg}g'
list_list_tolerance=[
None,
# [50.0,50.0],
[50.0,50.0,0.20],
]
infinity=float("inf")
dimensionCoordinates=2
dimensionAttributes=1
dimensionPoint=dimensionCoordinates+dimensionAttributes
k=dimensionPoint # the number of demensions for the k-d tree
if dimensionAttributes==1 and "/points2Tutorial.svg" in svg_file_name:
print "You are running on svg file",svg_file_name,"that does not have any attributes besides coordinates. Will ABORT!!!"
assert(False)
#
# to visualise better nested dictionaries
# https://docs.python.org/2/library/pprint.html
pp=pprint.PrettyPrinter(indent=0)
#################################################################
################### Functions ###################################
#################################################################
#### read the list of points from the svg file ###
def get_point_from_circle(circle):
if dimensionCoordinates==2:
if dimensionAttributes==0:
point=(float(circle.attrib['cx']),float(circle.attrib['cy']))
elif dimensionAttributes==1:
point=(float(circle.attrib['cx']),float(circle.attrib['cy']),float(circle.attrib['i']))
else:
print "dimensionCoordinates",dimensionCoordinates,"dimensionAttributes",dimensionAttributes,"not known. Will ABORT!!!"
assert(False)
# done if
else:
print "dimensionCoordinates",dimensionCoordinates,"dimensionAttributes",dimensionAttributes,"not known. Will ABORT!!!"
assert(False)
# done if
if debug:
print "point",point
return point
# done function
def get_tree(svg_file_name):
return ET.parse(svg_file_name)
# done function
def get_list_point(tree):
# using list comprehension to be more concise
list_point=[
get_point_from_circle(circle)
for circle in tree.iter(TAG_NAME_CIRCLE)
]
if debug:
print "list_point",list_point
return list_point
# done function
def get_list_point_with_the_same_point_id(tree, point_id):
# using list comprehension to be more concise
list_point=[
get_point_from_circle(circle)
for circle in tree.iter(TAG_NAME_CIRCLE)
if 'id' in circle.attrib
if circle.attrib['id']==point_id
]
if debug:
print "list_point with same point_id",list_point
return list_point
# done function
def get_list_point_with_the_same_group_id(tree, group_id):
# using list comprehension to be more concise
list_point=[
point
for group in tree.iter(TAG_NAME_GROUP)
if 'id' in group.attrib
if group.attrib['id']==group_id
for point in get_list_point(group)
]
if debug:
print "list_point with same group_id",list_point
return list_point
# done function
### find the distance between two points with tolerances ###
def get_distance_squared(pointA,pointB,list_tolerance=None,metric="euclidean"):
# if any of points is none, return an infinite distance
if pointA==None or pointB==None:
return infinity
text_error="does not have the dimension of "+str(dimensionPoint)+", made of "+str(dimensionCoordinates)+" coordinates plus "+str(dimensionAttributes)+" attributes. Will ABORT!!!"
# these steps are called destructurize the ntuples in X,Y,I
if len(pointA)!=dimensionPoint:
print "pointA",pointA,text_error
assert(False)
# done if
if len(pointB)!=dimensionPoint:
print "pointB",pointB,text_error
assert(False)
# done if
# convert to numpy arrays so that we can make the differences one by one
nparray_A=np.asarray([value for value in pointA]) # A
nparray_B=np.asarray([value for value in pointB]) # B
if debug:
print "nparray_A",nparray_A,type(nparray_A)
print "nparray_B",nparray_B,type(nparray_B)
nparray_AB=nparray_A-nparray_B
if debug:
print "nparray_AB",nparray_AB
nparray_adAB=np.absolute(nparray_A-nparray_B) # element-wise absolute difference of A-B
if debug:
print "nparray_adAB",nparray_adAB
# the squared distance in the space of N dimensions, find out what N is as a function of the metric
if metric=="euclidean":
N=dimensionCoordinates # N=1,2,3, ignore the attributes
elif metric=="all":
N=dimensionPoint # N uses also the attributes, may be tried out in the future
else:
print "metric",metric,"not known. Choose euclidean, all. Will ABORT!!!"
assert(False)
# done if
# compare the differences between the two points with the given tolerances
nparray_adAB_coordinates=nparray_adAB[0:N] # keep only the N first elements
nparray_adAB_coordinates_squared=np.power(nparray_adAB_coordinates,2) # square the array
distance_squared=np.sum(nparray_adAB_coordinates_squared) # sum the array
if debug:
print "distance_squared",distance_squared
# if not list of tolerance given, return the distance squared
if list_tolerance==None:
return distance_squared
# if here it means the tolerance checked was asked for, so check the list of tolerance has the right number of dimensions
if len(list_tolerance)!=dimensionPoint:
print "list_tolerance",list_tolerance,text_error
assert(False)
# if here it means that the tolerance has the same number of dimensions as points A and B and same as to what was asked for
nparray_T=np.asarray(list_tolerance) # element-wise expected tolerance
nparray_adAB_minus_T=nparray_adAB-nparray_T # element wise expected absolut differences minus the tolerances
failed_tolerance=(nparray_adAB_minus_T>0).any() # if any of these elements is larger than zero, we have broken the tolerance
if failed_tolerance:
if debug:
print "Tolerance failed A",nparray_A,"B",nparray_B,"adAB_minus_T",nparray_adAB_minus_T,"adAB",nparray_adAB,"T",nparray_T
return infinity
else:
return distance_squared
# done if
# done function
### find the closest point with the brute force method ###
def get_closest_point_brute_force(pivot,list_point,list_tolerance):
closest_index=None
closest_point=None
closest_distance_squared=infinity
for current_index,current_point in enumerate(list_point):
if debug:
print "current_index",current_index,"current_point",current_point
current_distance_squared=get_distance_squared(pivot,current_point,list_tolerance)
if debug:
print "current_distance_squared",current_distance_squared
if current_distance_squared<closest_distance_squared:
closest_index=current_index
closest_point=current_point
closest_distance_squared=current_distance_squared
if debug:
print "closest_index",closest_index,"closest_point",closest_point,"closest_distance_squared",closest_distance_squared
# done if
# done for loop
if debug:
print "Studied in the euclidian space in "+str(dimensionPoint)+" total dimenensions, made of "+str(dimensionCoordinates)+" coordinates plus "+str(dimensionAttributes)+" attributes. Searched the closest point for the",pivot," with list_tolerances",list_tolerance," The result is the point",closest_point,"with the closest_index",closest_index,"got closest_distance_squared",closest_distance_squared
return closest_index,closest_point,closest_distance_squared
# done function
### find the closest point via a k-d tree (common to the naive and avanced methods) ###
# recursive function that builds the k-d tree a the list of points
# when it splits, it wil have as input a list which is a subset of the previous list
# and a depth increased by one
# depths starts with the default value of zero, for when we first invoke the function
def get_kdtree(list_point,depth=0):
N=len(list_point)
# if no points, we can not build any kdtree, so return None
if N<=0:
return None
# we will alternate the axis to use indices x,y -> indices 0,1; k=2 dimensions (x,y)
# axis: 0,1,0,1,0,1
# depth: 0,1,2,4,5,5
# so we can write the value of the axis as the value of the depth modulo value of k
axis=depth%k
# list_point is a list of tuples, each tuple with two floats for x,y or t0,t1
# as per the k-d tree algorithm, we sort this list only by the chosen axes
# if axis=1 (x), then we ignore the y values and the x values must be in increasing ordder
# if axis=2 (y), then we ignore the x values and the y values must be in increasign order
list_point_sorted=sorted(list_point,key=lambda point: point[axis])
if debug:
print "list_point_sorted",list_point_sorted
for point in list_point_sorted:
print "point",point
# done if
# now that the list is ordered, we will choose the point in the middle
# if N=5, choose the third value, n=2
# if N=4, there is no real middle, so choose the first of the second value, also n=2
# so the general formula for the position of the median is n=N/2, where n and N are integers
# and remember in integer algebra 5/2=2
# this chosen median point will become a node in the tree
# we will create two sub-lists of points to its left and right
# and then we will call recursively the same function to split them again
# but changing the axis, so we would increase the depth by one k+=1
# which will define the new alternating axis by the value axis=depth%k
# so no need to store the axis value, as it is calculated from depth inside the function
# and we will return the k-d tree. So how does the k-d tree looks like?
# The k-d tree has the three elements:
# 1. one point (the node): the chosen median point in our list
# 2. a new tree made from a new list of points, the sub-list found to the left of our median point
# 3. a new tree made from a new list of points, the sub-list found to the right of our median point
# What data structure is best to represent such tree?
# A dictionary! With keys "point", "left", "right".
return {
# the median point, from the list at position N/2
'point':list_point_sorted[N/2],
# new tree from sub-list left of N/2 and increased depth by one
'left':get_kdtree(list_point_sorted[0:N/2],depth+1),
# new tree from sub-list right of N/2 and increased depth by one
'right':get_kdtree(list_point_sorted[N/2+1:],depth+1),
}
# done function
### find the closest point with the k-d tree naive ###
# the kdtree is the root tree, the big tree of the kdtree
# need to keep track of the depth starting with the default of 0
# need to keep track of the closest point, starting with the default of None
# this is a recursive function too
def get_closest_point_kdtree_naive(pivot,kdtree,list_tolerance,depth,closest_point):
# deal with edge (corner) cases first
if kdtree is None:
# we reached the leaf of the kdtree and we must return the best result and stop the recursion
# the recursion stops as we do not ask to return the result of the same function, but the point
if debug:
print "kdtree_naive: Closest point to the pivot",pivot,"is the point",closest_point
return closest_point
# done if
axis=depth%k
# does the current comparison find a closest point?
next_closest_point=None
# on what branch show we go next? Left or Right?
next_kdtree=None
# to answer the first question, we need to compare two distances squared (squared to be faster)
# 1) get_distance_squared(pivot,current_closest_point,list_tolerance)
# 2) get_distance_squared(pivot,current_point_list_tolerance)
# But what is the current_point? None other the splitting point of the current node of the kdtree
# 2) get_distance_squared(pivot,kdtree['point'],list_tolerance)
# but remember that the current_closest_point can be None at first, and in that case we just
# want to assign the first value
if closest_point is None or get_distance_squared(pivot,kdtree['point'],list_tolerance) < get_distance_squared(pivot,closest_point,list_tolerance):
next_closest_point=kdtree['point']
else:
next_closest_point=closest_point
# done if
# to answer the second question, we see on which side of the current splitting point lies our pivot
if pivot[axis]<kdtree['point'][axis]:
next__kdtree=kdtree['left']
else:
next_kdtree=kdtree['right']
# done if
# with this two information we can go to the next iteration of the recursive process
return get_closest_point_kdtree_naive(pivot,next_kdtree,list_tolerance,depth+1,next_closest_point)
# done function
### find the closest point with the k-d tree advanced ###
# get the closest of two points to the pivot
# the pivot can not be None, but the two points can
# the distance between None and the pivot is infinite
# None is the most distance point
# if both points are None, then return None, meaning no closest point
def get_closest_of_two_points(pivot,point1,point2,list_tolerance):
if point1 is None:
return point2
if point2 is None:
return point1
# these two if guarantee that if both are None, then it returns None
# once here, both of them are not none, and as pivot is not None
# we can measure the distances
if get_distance_squared(pivot,point1,list_tolerance)<get_distance_squared(pivot,point2,list_tolerance):
return point1
else:
return point2
# done function
# iterative function, we maintain depth, but not closest_point
# default value of depth=0
def get_closest_point_kdtree_advanced(pivot,kdtree,list_tolerance,depth):
if debug:
print "depth",depth,"splitting point",kdtree['point']
# if the kdtree is none (the leaf of the tree), then it has no point inside so we return none
if kdtree is None:
return None
axis=depth%k
next_kdtree=None
opposite_kdtree=None
if pivot[axis]<kdtree['point'][axis]:
next_kdtree=kdtree['left']
opposite_kdtree=kdtree['right']
else:
next_kdtree=kdtree['right']
opposite_kdtree=kdtree['left']
# done if
# now read to invoke the recursive call
closest_point=get_closest_of_two_points(
pivot,
kdtree['point'],
get_closest_point_kdtree_advanced(pivot,next_kdtree,list_tolerance,depth+1),
list_tolerance
)
# but maybe there is something better on the other side
# a good indicator of this is if the distance on that axis between pivot and point
# is smaller than the euclidean distance between the pivot and the closest_point found above
d_axis_pivot_point=pivot[axis]-kdtree['point'][axis]
if d_axis_pivot_point*d_axis_pivot_point<get_distance_squared(pivot,closest_point,list_tolerance):
# same call but for the opposite branch of the tree
# and instead of the splitting point, use the previous best
closest_point=get_closest_of_two_points(
pivot,
closest_point,
get_closest_point_kdtree_advanced(pivot,opposite_kdtree,list_tolerance,depth+1),
list_tolerance
)
# done if
return closest_point
# done function
### putting it all together to prepare to run ###
def get_closest_point(pivot,list_point,option,list_tolerance):
if debug:
print "get_closest_point with option",option,"list_tolerance",list_tolerance
if option=="brute_force":
# step 1: does not exist, we do not need to build something, as we will use all events
None
# step 2: traverse all the points, and at every step maintain the closest point
closest_index,closest_point,closest_distance_squared=get_closest_point_brute_force(pivot,list_point,list_tolerance)
elif option=="kdtree_naive":
# step 1: build the k-d tree
kdtree=get_kdtree(list_point,depth=0)
if debug:
pp.pprint(kdtree)
# step 2 in naive approach approach:
# use the k-d tree, and at every step maintain the closest point
# advantage in speed vs brute force is that we do not need to traverse all the tree branches
# but rather discard those that can not meet our criteria, and thus gain time
# one recursion inside the main function
closest_point=get_closest_point_kdtree_naive(pivot,kdtree,list_tolerance,depth=0,closest_point=None)
elif option=="kdtree_advanced":
# step 1: build the k-d tree
kdtree=get_kdtree(list_point,depth=0)
if debug:
pp.pprint(kdtree)
# step 2 the advanced approach
# two recursions inside the main function, but second only inside an if, so not always
# to check if in the opposite branch there is no closer point
closest_point=get_closest_point_kdtree_advanced(pivot,kdtree,list_tolerance,depth=0)
else:
print "option",option,"not known. Choose brute_force, kdtree_naive, kdtree_advanced. Will ABORT!!!"
assert(False)
# done if
return closest_point
# done function
def doItAll():
tree=get_tree(svg_file_name)
[pivot]=get_list_point_with_the_same_point_id(tree, "pivot")
if debug or verbose:
print "pivot",pivot
list_point=get_list_point_with_the_same_group_id(tree, "points")
if debug or verbose:
print "list_point",list_point
for option in list_option:
for list_tolerance in list_list_tolerance:
if debug or verbose:
print "option",option,"list_tolerance",list_tolerance
start = time.time()
closest_point=doItOne(pivot,list_point,option,list_tolerance)
end = time.time()
if debug or verbose:
print "Option","%-15s" % option,", timing",end-start,"seconds, closest_point",closest_point
# done if
# done for over list_tolerance
# done for over option
# done function
#################################################################
################### Run #########################################
#################################################################
doItAll()
#################################################################
################### Finished ####################################
#################################################################
print ""
print ""
print "Finished all in",sys.argv[0]
<file_sep>import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sb
import logging
<file_sep>#!/usr/bin/python
# time series analysis step by step example by <NAME> (<EMAIL>)
# started on 10 March 2019
# not using directly pandas, but starting with simple Python to read data files
# but using numpy and matplotlib
# later pandas, DataFrame and Jupyter notebook
#################################################################
################### Includes ##############################
#################################################################
# import basic python
import sys
# import for data analysis and plotting
import matplotlib.dates as mdates
import matplotlib.pyplot as plt
import numpy as np
#################################################################
################### Command line arguemnts ######################
#################################################################
total = len(sys.argv)
# number of arguments plus 1
if total!=1:
print "You need some arguments, will ABORT!"
print "Ex: ",sys.argv[0]," "
assert(False)
# done if
#################################################################
################### Configurations ##############################
#################################################################
debug=False
verbose=True
fileNameDaily="./input/study_case_daily.txt"
fileNameMonthly="./input/study_case_monthly.txt"
# 0 plot their absolute values; 1 scale to first entry to compare relative performance
# list_option="0,1".split(",")
list_option="1".split(",")
list_plot=[
"A",
"B",
"C",
"D",
]
dict_plot_list_name={
"A":["Soybean","Corn","CrudeOil","DXY","S&P500"],
"B":["Soybean","Corn"],
"C":["Soybean"],
"D":["Soybean","Corn","CrudeOil","DXY","S&P500","StockToUse"],
}
#################################################################
################### Functions ###################################
#################################################################
def ratio(a,b):
result=0.0
if b==0:
print "WARNING, division by zero, will return 0.0!"
result=0.0
else:
result=a/b
return result
# done function
def readFile(fileName):
# the first line gives the name of the variables, so we take it from there
# that way we can have only one function that can read any number of data files
# both the daily and the monthly for example
counter=0
f=open(fileName,"r")
for line in f:
line=line.rstrip()
if debug:
print "line",line
list_line=line.split()
if debug:
print "list_line",list_line
counter+=1
if counter==1:
list_name=list_line
break
# done loop over the file first
if debug:
print "list_name",list_name
if debug:
print ""
print "Start loop again over the files"
# to plot we need numpyarrays, to create them we need lists
dict_name_list_value={}
for name in list_name:
dict_name_list_value[name]=[]
f=open(fileName,"r")
counter=0
for line in f:
line=line.rstrip()
if debug:
print "line",line
counter+=1
if counter==1:
continue
# now we are from the first line with values
list_line=line.split()
if debug:
print "list_line",list_line
dict_name_value={}
# loop over names and fill the dictionary of values in the correct format (date and floats)
for i,name in enumerate(list_name):
dict_name_value[name]=list_line[i]
if name=="Date":
# convert from 31/02/17 to 2017-02-31 and overwrite
list_dateElement=dict_name_value[name].split("/")
if debug:
print "list_dateElement",list_dateElement
dict_name_value[name]="20"+list_dateElement[2]+"-"+list_dateElement[1]+"-"+list_dateElement[0]
else:
# convert from string to float
dict_name_value[name]=float(dict_name_value[name])
# done if
if debug:
print "counter",counter,"i",i,"name",name,"value",dict_name_value[name],"type",type(dict_name_value[name])
# for each name, append to its list
for name in list_name:
if debug:
print "name",name,"value",dict_name_value[name]
dict_name_list_value[name].append(dict_name_value[name])
# done for loop over all the lines
# from lists create numpy arrays
dict_name_nparray_value={}
for name in list_name:
if debug:
print "name",name,"list_value",dict_name_list_value[name]
if name=="Date":
dict_name_nparray_value[name]=np.array(dict_name_list_value[name],dtype='datetime64[D]')
dict_name_nparray_value[name]=dict_name_nparray_value[name].astype('O')
else:
dict_name_nparray_value[name]=np.array(dict_name_list_value[name])
if debug and name=="Date":
print "name",name,"np.array",dict_name_nparray_value[name]
# done loop over names
for name in list_name:
if debug:
# if name=="Date":
if True:
print "name",name,"nparray_value",dict_name_nparray_value[name]
# ready to return
return list_name,dict_name_nparray_value
# done function
def testPlot():
fig = plt.figure() # an empty figure with no axes
x = np.linspace(0, 2, 100)
plt.plot(x,x,label="linear")
plt.plot(x,x**2,label="quadratic")
plt.plot(x,x**3,label="cubic")
plt.xlabel("x label")
plt.ylabel("y label")
plt.title("Simple plot")
plt.legend()
plt.show()
# done function
def scaleNPArray(nparray,option="0"):
first=nparray[0]
if option=="0":
# do nothing
scaled_nparray=nparray
elif option=="1":
# scale all values relative to the first entry, so that the first entry is one
scaled_nparray=nparray*ratio(1.0,first)
else:
print "In scaleNPArray(), option",option,"not known. Choose 0 or 1. Will ABORT!!!"
assert(False)
# done if
if debug:
print "scaled_nparray",scaled_nparray
return scaled_nparray
# done function
def doPlot(dict_name_nparray_value_daily,list_name_daily,dict_name_nparray_value_monthly,list_name_monthly,option):
if debug or verbose:
print "Start doPlot"
#
# Soybean has two big dips. Looking quickly through the values does not spot them.
# So let's use the computer to plot when the change with respect to the previous value is more than 10%, then we will tune the value
previous_value=1.0
for i,value in enumerate(scaleNPArray(dict_name_nparray_value_daily["Soybean"],option)):
if debug:
print "value",value
if abs(value/previous_value-1)>0.30:
print i,"previous_value",previous_value,"current_value",value
# with this I found the two values that were 10 times lower, it seems like a typo when introducing the values
# this gives
# 154 previous_value 1.0 current_value 0.0976628091672
# 905 previous_value 1.0 current_value 0.093215339233
# then we open the input file with emacs -nw and we go to that line with M-x goto-line: 154
# 28/07/14 107.6 428.25 88.52 81.029999 1978.910034
# so we modify by hand 107.6 to 1076.0
# also
# 20/07/17 102.7 404.75 47.34 94.269997 2473.449951
# so we modify 102.7 to 1027.0
#
# and for stock to use, fill the missing data of Oct 2013 due to government showdown with the average of the periods before and after
# and also a factor of 10 on this line 10/01/14 0.453995157, replacing with 10/01/14 0.045399516
xAxisName="Date"
for plot in list_plot:
list_name=dict_plot_list_name[plot]
if debug or verbose:
print "list_name",list_name
fig=plt.figure()
for name in list_name:
if name=="Date":
continue
if name=="StockToUse":
# from the monthly
plt.plot(dict_name_nparray_value_monthly[xAxisName],scaleNPArray(dict_name_nparray_value_monthly[name],option),label=name)
else:
# from the daily
plt.plot(dict_name_nparray_value_daily[xAxisName],scaleNPArray(dict_name_nparray_value_daily[name],option),label=name)
# done loop over name
plt.xlabel(xAxisName)
plt.ylabel("Value at that particular day")
# rotate and align the tick labels so they look better
fig.autofmt_xdate()
plt.fmt_xdata = mdates.DateFormatter('%Y-%m-%d')
plt.title("Time series of values as a function of day")
if plot=="D":
plt.legend(loc="upper right")
else:
plt.legend(loc="lower left")
# plt.show() # shows in GUI, but for script we want to store in file
plt.savefig("./output/overlay_daily_"+plot+"_"+option+".png",bbox_inches='tight')
plt.close()
# done loop over plot
# done function
def doItAll():
if debug:
print "doItOne() with option",option
list_name_daily,dict_name_nparray_value_daily=readFile(fileNameDaily)
list_name_monthly,dict_name_nparray_value_monthly=readFile(fileNameMonthly)
if False:
testPlot()
for option in list_option:
if debug:
print "option",option
doPlot(dict_name_nparray_value_daily,list_name_daily,dict_name_nparray_value_monthly,list_name_monthly,option)
None
# done function
#################################################################
################### Run #########################################
#################################################################
doItAll()
#################################################################
################### Finished ####################################
#################################################################
print ""
print ""
print "Finished all in",sys.argv[0]
<file_sep>#!/usr/bin/env python3
# import for data analysis and plotting
import matplotlib.pylab as pylab
#import matplotlib.dates as mdates
import matplotlib.pyplot as plt
import numpy as np
#import matplotlib.axes as ax
# from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
# from matplotlib.figure import Figure
# import matplotlib.gridspec as gridspec
import copy
# a general function to print the values and other properties of a numpy array
# use to see the values of the numpy arrays in our code for debugging and understanding the code flow
def print_nparray(name,nparray):
print("")
print(name)
print(nparray)
print("type",type(nparray),"shape",nparray.shape,"min_value=%.3f"%np.min(nparray),"min_position=%.0f"%np.argmin(nparray),"max_value=%.3f"%np.max(nparray),"max_position=%.0f"%np.argmax(nparray))
# done function
# overlay two or more numpy arrays as graphs
# info_legend="best", "uppler right", "lowerleft", etc
# info_y: info_y=["Figure of merit of performance",[0.0,100000.0,-1]
# info_y: info_y=["Figure of merit of performance",[-1,-1,1.5]
def overlayGraphsValues(list_tupleArray,outputFileName="overlay",extensions="pdf,png",info_x=["Procent of data reduced",[0.0,1.0],"linear"],info_y=["Figure of merit of performance",[0.0,100000.0,-1],"log"],info_legend=["best",6],title="Compared performance of 3D point cloud compression",doShow=False,debug=False):
if debug:
print("Start overlayGraphsValues")
print("outputFileName",outputFileName)
print("extensions",extensions)
print("info_x",info_x)
print("info_y",info_y)
print("info_legend",info_legend)
print("title",title)
# x axis
x_label=info_x[0]
x_lim=info_x[1]
x_lim_min=x_lim[0]
x_lim_max=x_lim[1]
if x_lim_min==-1 and x_lim_max==-1:
x_set_lim=False
else:
x_set_lim=True
x_scale=info_x[2]
if debug:
print("x_label",x_label,type(x_label))
print("x_lim_min",x_lim_min,type(x_lim_min))
print("x_lim_max",x_lim_max,type(x_lim_max))
print("x_set_lim",x_set_lim,type(x_set_lim))
print("x_scale",x_scale,type(x_scale))
# y axis
y_label=info_y[0]
y_lim=info_y[1]
y_lim_min=y_lim[0]
y_lim_max=y_lim[1]
y_lim_scale_min=y_lim[2]
y_lim_scale_max=y_lim[3]
if y_lim_min==-1 and y_lim_max==-1:
y_set_lim=False
else:
y_set_lim=True
y_scale=info_y[2]
if debug:
print("y_label",y_label,type(y_label))
print("y_lim_min",y_lim_min,type(y_lim_min))
print("y_lim_max",y_lim_max,type(y_lim_max))
print("y_lim_scale_min",y_lim_scale_min,type(y_lim_scale_min))
print("y_lim_scale_max",y_lim_scale_max,type(y_lim_scale_max))
print("y_set_lim",y_set_lim,type(y_set_lim))
print("y_scale",y_scale,type(y_scale))
# find the maximum y value
max_y=np.NINF
min_y=np.inf
for i,tupleArray in enumerate(list_tupleArray):
if debug:
print("i",i,"len",len(tupleArray))
temp_max=np.max(tupleArray[1])
if temp_max>max_y:
max_y=temp_max
temp_min=np.min(tupleArray[1])
if temp_min<min_y:
min_y=temp_min
# done for loop
if debug:
print("max_y",max_y)
# create empty figure
plt.figure(1)
# set x-axis
plt.xlabel(x_label)
if x_set_lim==True:
plt.xlim(x_lim_min,x_lim_max)
plt.xscale(x_scale)
# set y-axis
plt.ylabel(y_label)
if y_set_lim==True:
plt.ylim(y_lim_min,y_lim_max)
else:
if max_y>0 and min_y>0:
# multiply by y_lim_scale upwards to give enough space for the legend and by 0.9 downwards
plt.ylim(min_y*y_lim_scale_min,max_y*y_lim_scale_max)
# done if
# done if
plt.yscale(y_scale)
# set title
plt.title(title)
# fill content of plot
for i,tupleArray in enumerate(list_tupleArray):
if debug:
print("i",i,"len",len(tupleArray))
x=tupleArray[0]
y=tupleArray[1]
color=tupleArray[2]
marker=tupleArray[3]
l=tupleArray[4]
# print("c",c)
# plt.plot(x,y,c,label=l)
# https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.plot.html
plt.plot(x,y,color=color,marker=marker,label=l)
# done loop over each element to plot
# set legend
if True:
plt.legend(loc=info_legend[0],prop={'size':info_legend[1]})
if doShow:
plt.show()
# for each extension create a plot
for extension in extensions.split(","):
fileNameFull=outputFileName+"."+extension
print("Saving plot at",fileNameFull)
plt.savefig(fileNameFull)
# close the figure
plt.close()
# done function
def draw_histogram_from_nparray(nparray,outputFileName="./output_histo_from_nparray",extensions="png,pdf",nrBins=100,info_x=["x-axis","linear"],info_y=["Number of points","linear"],title="Title",text=None,debug=False,verbose=False):
if debug:
print("Start draw_histogram_from_nparray()")
print("outputFileName",outputFileName)
print("extensions",extensions)
print("info_x",info_x)
print("info_y",info_y)
print("title",title)
#
fig=pylab.figure()
#fig=matplotlib.pylab.figure()
ax = fig.add_subplot(111)
n,b,patches=ax.hist(nparray,bins=nrBins)
if debug:
print("n",n)
print("b",b)
print("patches",patches)
print("max",n.max())
# axes
x_label,x_scale=info_x
y_label,y_scale=info_y
plt.xlabel(x_label)
plt.ylabel(y_label)
plt.yscale(x_scale)
plt.yscale(y_scale)
plt.ylim(0,n.max()*1.2)
# title
plt.title(title)
# text
if text is not None:
plt.text(0.2,0.9,text,bbox=dict(facecolor='red', alpha=0.5),horizontalalignment="left",fontstyle="oblique",transform=ax.transAxes)
# for each extension create a plot
for extension in extensions.split(","):
fileNameFull=outputFileName+"."+extension
print("Saving plot at",fileNameFull)
plt.savefig(fileNameFull)
# close the figure
plt.close()
# done function
# histtype: bar, barstacked, step, stepfilled
# nrBins: 100 or list of bins edges
# option A: https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.axes.Axes.hist.html
# only option A works if we want to add a text in the plot whose size is relative to the plot and not to the values plotted
# option B: https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.hist.html
# to color different bins in different colors, like a rainbow gradient https://stackoverflow.com/questions/23061657/plot-histogram-with-colors-taken-from-colormap
# obtain the max value: # https://stackoverflow.com/questions/15558136/obtain-the-max-y-value-of-a-histogram
# plotting two histograms in one plt.hist did not work for me easily, but I loop over list of arrays anyway, as I need to give them different labels and colors etc
def overlay_histogram_from_nparray(list_tupleArray,outputFileName="./output_histo_from_nparray",extensions="png,pdf",nrBins=100,histtype="step",info_x=["x-axis"],info_y=["Number of points"],title="Title",text=None,info_legend=["best"],debug=False,verbose=False):
if debug:
print("Start draw_histogram_from_nparray()")
print("outputFileName",outputFileName)
print("extensions",extensions)
print("info_x",info_x)
print("info_y",info_y)
print("title",title)
#
style="A"
if style=="A":
fig=pylab.figure()
for i,(nparray,legendText) in enumerate(list_tupleArray):
ax = fig.add_subplot(111)
n,b,patches=ax.hist(nparray,bins=nrBins,alpha=1.0,color=list_color[i],histtype=histtype,label=legendText)
max_y=n.max()
if debug:
print("n",n)
print("b",b)
print("patches",patches)
print("max_y",max_y)
if style=="B":
for i,tupleArray in enumerate(list_tupleArray):
print("tupleArray",tupleArray)
nparray,legendText=tupleArray
print("nparray",nparray)
print("legendText",legendText)
print("i",i)
y,x,a=plt.hist(nparray,bins=nrBins,alpha=1,color=list_color[i],histtype=histtype,label=legendText)
# note y (vertical) is returned before x (horizontal)
print("x",type(x),x)
print("y",type(y),y)
#print(type(x),x,len(x),x.shape,np.min(x),np.max(x),np.sum(x))
#print(type(y),y,len(y),y.shape,np.min(y),np.max(y),np.sum(y))
#print(type(a),a)
max_y=np.max(y)
#print_nparray("x",legendText,"x",x)
#print_nparray("x",legendText,"y",y)
#print_nparray("x",legendText,"a",a)
# axes
x_label,x_scale=info_x
y_label,y_scale=info_y
plt.xlabel(x_label)
plt.ylabel(y_label)
plt.ylim(0,max_y*1.2)
# title
plt.title(title)
# text
if text is not None:
plt.text(0.2,0.9,text,bbox=dict(facecolor='red', alpha=0.5),horizontalalignment="left",fontstyle="oblique",transform=ax.transAxes)
# legend
# set legend
plt.legend(loc=info_legend[0])
# for each extension create a plot
for extension in extensions.split(","):
fileNameFull=outputFileName+"."+extension
print("Saving plot at",fileNameFull)
plt.savefig(fileNameFull)
# close the figure
plt.close()
# done function
# histtype: bar, barstacked, step, stepfilled
# nrBins: 100 or list of bins edges
# option A: https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.axes.Axes.hist.html
# only option A works if we want to add a text in the plot whose size is relative to the plot and not to the values plotted
# option B: https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.hist.html
# to color different bins in different colors, like a rainbow gradient https://stackoverflow.com/questions/23061657/plot-histogram-with-colors-taken-from-colormap
# obtain the max value: # https://stackoverflow.com/questions/15558136/obtain-the-max-y-value-of-a-histogram
# plotting two histograms in one plt.hist did not work for me easily, but I loop over list of arrays anyway, as I need to give them different labels and colors etc
def overlay_histogram_from_nparray_with_ratio(list_tupleArray,outputFileName="./output_histo_from_nparray",extensions="png,pdf",nrBins=100,histtype="step",info_x=["x-axis"],info_y=["Number of points"],title="Title",text=None,info_legend=["best"],list_color="r,g,b,k,y".split(","),doAddRatioPad=False,debug=False,verbose=False):
if debug:
print("Start draw_histogram_from_nparray()")
print("outputFileName",outputFileName)
print("extensions",extensions)
print("info_x",info_x)
print("info_y",info_y)
print("title",title)
#
max_y=np.NINF # negative infinity
fig=pylab.figure()
n_reference=0
for i,(nparray,legendText) in enumerate(list_tupleArray):
if debug:
print("i",i,legendText,nparray)
if doAddRatioPad:
ax=fig.add_subplot(211)
else:
ax=fig.add_subplot(111)
n,b,patches=ax.hist(nparray,bins=nrBins,alpha=1.0,color=list_color[i],histtype=histtype,label=legendText)
if n.max()>max_y:
max_y=n.max()
if debug:
print_nparray("n",n)
print_nparray("b",b)
print("patches",patches)
print("max_y",max_y)
if doAddRatioPad:
if i==0:
n_reference=copy.deepcopy(n)
# calculate ratio of number of bins
n_ratio=n/n_reference
if debug:
print_nparray("n_reference",n_reference)
print_nparray("n_ratio",n_ratio)
# add the ratio as numpy arrays
ax2=fig.add_subplot(212)
ax2.plot(b[1:],n_ratio,c=list_color[i],label=legendText)
# done if doAddRatioPad
# done loop over histograms
# axes
x_label=info_x[0]
y_label=info_y[0]
# ax.set_xlabel(x_label)
ax.set_ylabel(y_label)
ax.set_ylim(0,max_y*1.2)
# title
ax.set_title(title)
# text
if text is not None:
ax.text(0.2,0.9,text,bbox=dict(facecolor='red', alpha=0.5),horizontalalignment="left",fontstyle="oblique",transform=ax.transAxes)
# legend
# set legend
ax.legend(loc=info_legend[0])
if doAddRatioPad:
ax2.legend(loc=info_legend[0])
ax2.set_ylabel("Ratio to "+list_tupleArray[0][1])
ax2.set_xlabel(x_label)
else:
ax.set_xlabel(x_label)
# for each extension create a plot
for extension in extensions.split(","):
fileNameFull=outputFileName+"."+extension
print("Saving plot at",fileNameFull)
plt.savefig(fileNameFull)
# close the figure
plt.close()
# done function
# x=horizontal, y=vertical; nrBins=100, or nrBins=[0,1,2,3,4]
def draw_histogram_2d(x,y,outputFileName="./output_histo_2D",extensions="png,pdf",nrBins=100,info_x=["x-axis"],info_y=["y-axis"],title="Title",plotColorBar=True,debug=False,verbose=False):
plt.hist2d(x,y,bins=nrBins,cmin=1)
if plotColorBar:
plt.colorbar()
# axes
x_label=info_x[0]
y_label=info_y[0]
plt.xlabel(x_label)
plt.ylabel(y_label)
# title
plt.title(title)
# save plots
for extension in extensions.split(","):
plt.savefig(outputFileName+"."+extension)
# done loop over extension
plt.close()
# done function
<file_sep># !/usr/bin/env python
# <NAME> (<EMAIL>)
# 20 May 2013, Python functions to manipulate and draw histograms
from HelperPython import *#import math
import ROOT
from ROOT import TLatex,TPad,TList,TH1,TH1F,TH2F,TH1D,TH2D,TFile,TTree,TChain,TCanvas,TLegend,SetOwnership,gDirectory,TObject,gStyle,gROOT,TLorentzVector,TGraph,TMultiGraph,TColor,TAttMarker,TLine,TDatime,TGaxis,TF1,THStack,TAxis,TStyle,TPaveText,TAttFill,TCutG,TMath,TNamed
list_color=[1,2,4,3,6,ROOT.kOrange,7,8,9,14,29,38,10,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
#list_color=[7,1,4,2,3,12,9,14,29,38,10,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
# checks if an object exists, useful for checking of a file or tree or histogram is found in a TFile
# Warning, actually it only checks if the object exists, and not if the file exists or th tree exists
# actually this always returns true
def exists(object,name,debug=False):
if not not object:
if debug:
print "object of name",name,"does exist, will return True"
return True
else:
if debug:
print "object of name",name,"does not exist, will return False"
return False
# ended function
# list all the objects of one type from the ROOT file, ex TH1F, TTree
# ex: getListObjectFromFile("file.root","TH1F",False)
# ex: getListObjectFromFile("file.root","TTree",False)
def getListObjectFromFile(filename,name,debug=False):
file=TFile(filename,"READ")
result=""
for i,key in enumerate(file.GetListKeys()):
if i==0:
prefix=""
else:
prefix=","
if key.GetClassName()==name:
result+=prefix+key.GetName()
# done for
return result
# ended function
# create/recreate (by removing the old file) a new TFile
# ex createFile("test1.root")
def recreateFile(fileName,debug=False):
file=TFile(fileName,"RECREATE")
return True
# ended function
# create TTree in TFile hard coded
# ex createTree("test1.root","tree1",False)
def exCreateTree(fileName,treeName,debug):
file=TFile(fileName,"RECREATE")
tree=TTree(treeName,treeName)
# will create two variables of type double (hence 'd' below)
# in ROOT/C++ you have to give pointer (address of the variable rPt)
# as in Python we do not have pointers, but only objects
# where we need pointers we create an object of type array of type desired
# double in our case of only one entry (hence "[0]") and pass that
rPt=array('d', [0])
rE=array('d', [0])
# set the branches to the tree to these two variables
tree.Branch('rPt',rPt,"rPt/D")
tree.Branch('rE',rE,"rE/D")
# loop from 0 to 9
for i in xrange(10):
# fill the first entry in the arrays with dummy values
rPt[0]=12.2
rE[0]=14.7
# now fill the tree with these values
tree.Fill()
# Done, so exit the for loop
# now write the contents of the file to the file (thus the tree as well)
file.Write()
# close the file
file.Close()
# we are done, so we can return anything so let's just return True
return True
# ended function
def getNrEntriesTree(fileName,treeName,debug=False):
# open file
file=TFile(fileName,"READ")
if not file.IsOpen():
print "File",fileName,"does not exist, so will abort"
assert(False)
# open tree
tree=file.Get(treeName)
if tree==None:
print "tree",treeName,"doesn't exist in file",fileName
assert(False)
# use tree
nrEntries=tree.GetEntries()
return nrEntries
# done function
# read a Tree with a style like in ROOT
# ex: exReadTreeStyle1("file1.root","tree1.root","rPt",False)
def exReadTreeStyle1(fileName,treeName,variableName,debug=False):
# open file
file=TFile(fileName,"READ")
if not file.IsOpen():
print "File",fileName,"does not exist, so will abort"
assert(False)
# open tree
tree=file.Get(treeName)
if tree==None:
print "tree",treeName,"doesn't exist in file",fileName
assert(False)
# before the event loop, need to set the branch address
# for the variable we want to read
value = array('d', [0])
tree.SetBranchAddress(variableName, value)
# now we are ready for the event loop from 0 to the number of entries minus 1
for i in range(0, tree.GetEntries()):
# this command fills for the current event the values of all branches we set above
tree.GetEntry(i)
# now we can use the values, in this simple example simply print them
print "current value is",value[0]
return True
# ended function
# read a Tree with a style specific to Python
# ex: exReadTreeStyle2("file1.root","tree1.root","rPt",False)
def exReadTreeStyle2(fileName,treeName,variableName,debug=False):
# open file
file=TFile(fileName,"READ")
if not file.IsOpen():
print "File",fileName,"does not exist, so will abort"
assert(False)
# open tree
tree=file.Get(treeName)
if tree==None:
print "tree",treeName,"doesn't exist in file",fileName
assert(False)
# notice the much easier to loop over the events and retrieve the variables
# without needing the number of entries, without setting the branch addresses first,
# without needing the type of the variable and without needing the command of GetEntry
for event in tree:
value=getattr(event,variableName)
# now we can use the values, in this simple example simply print them
print "current value is",value
return True
# ended function
# where you to not need to use the string of a variable name
# as in passing that as an argument to a function, but simply
# know the name to hard code inside the function
# ex: exReadTreeStyle2("file1.root","tree1.root",False)
def exReadTreeStyle3(fileName,treeName,debug=False):
# open file
file=TFile(fileName,"READ")
if not file.IsOpen():
print "File",fileName,"does not exist, so will abort"
assert(False)
# open tree
tree=file.Get(treeName)
if tree==None:
print "tree",treeName,"doesn't exist in file",fileName
assert(False)
# notice the much easier to loop over the events and retrieve the variables
# without needing the number of entries, without setting the branch addresses first,
# without needing the type of the variable and without needing the command of GetEntry
for event in tree:
value=event.rPt # to use "rPt" as a string do: value=getattr(tree,variableName)
# now we can use the values, in this simple example simply print them
print "current value is",value
return True
# ended function
# read a Tree with a style specific to Python
# and get the number of the event in the list at the same time
# allowing you to run only on the odd number (train sample)
# or even number (test sample)
# ex: exReadTreeStyle4("file1.root","tree1.root","rPt",False)
def exReadTreeStyle4(fileName,treeName,variableName,debug=False):
# open file
file=TFile(fileName,"READ")
if not file.IsOpen():
print "File",fileName,"does not exist, so will abort"
assert(False)
# open tree
tree=file.Get(treeName)
if tree==None:
print "tree",treeName,"doesn't exist in file",fileName
assert(False)
# notice the much easier to loop over the events and retrieve the variables
# without needing the number of entries, without setting the branch addresses first,
# without needing the type of the variable and without needing the command of GetEntry
# and you also get the number of the entry for free
# for this you need to use "enumerate(tree)" instead of "tree"
# this returns a tuple, i.e. a comma separated list of elements of type (number of order,event)
# this is why we can say "for i,event in " and have both filled at the same time
for i,event in enumerate(tree):
value=getattr(tree,variableName)
# now we can use the values, in this simple example simply print them
if i%2==0:
print "current value for i (even) is",value
else:
print "current value for i (odd) is",value
return True
# ended function
# read a Tree with a style specific to Python and read several variables in an easy way
# ex: exReadTreeStyle5("WH125.root","per_jet",3,"rPt,rSumPtTrk,rWidth","2",False)
def exReadTreeStyle5(fileName,treeName,numEvents,variableNames,option,debug=False):
# open file
file=TFile(fileName,"READ")
if not file.IsOpen():
print "File",fileName,"does not exist, so will abort"
assert(False)
# open tree
tree=file.Get(treeName)
if tree==None:
print "tree",treeName,"doesn't exist in file",fileName
assert(False)
# print the variables that we want to retrieve
print "variableNames",variableNames
for variableName in variableNames.split(','):
print "variableName",variableName
# decide the number of events we run on
nrEntries=tree.GetEntries()
if numEvents<0 or numEvents>nrEntries:
numEvents=nrEntries
for i, event in enumerate(tree):
if i>=numEvents:
continue
if debug:
print "******* new event **********"
if option=="1":
# this is the old way, as in exReadTreeStyle2
values_list=[]
for variableName in variableNames.split(','):
print "variableName",variableName,"value",getattr(tree,variableName)
values_list.append(getattr(tree,variableName))
elif option=="2":
# this is the new way, put all values in a list and print them together
values_list=[getattr(event,variableName) for variableName in variableNames.split(',')]
print values_list
# we can make an array of type double ('d') values of type double out of these variables
values_array=array('d',values_list)
print values_array
# if a function needs the values of these variables for this event in this order
# we use * to get an ntuple with the values, such as a neural network object nn
# ex: nn.value(0,*values_list)
# ex: nn.value(0,*values_array) instead of
# ex: nn.value(0,event.rPt,event.rSumPtTrk,event.rWidth) or instead of
# ex: nn.value(0,getattr(event,"rPt"),getattr(event,"rSumPtTrk"),getattr(event,"rWidth"))
return True
# ended function
# read a Tree with a style specific to Python and then thin it
# this means keeping all the branches of the tree but only for some events
# we can select the events by asking a cut, or by throwing a random number
# either way, for each event keep all the branches without the code needing to know
# what all those branches are. it means the code can be short even for trees
# with many many branches
# ex: exThinTree("file1.root","tree1","rPt",10.0,18.0,"thinned_file1.root",False)
def exThinTree(fileName,treeName,variableName,cut_low,cut_high,outfileName,debug=False):
# open file
file=TFile(fileName,"READ")
if not file.IsOpen():
print "File",fileName,"does not exist, so will abort"
assert(False)
# open tree
tree=file.Get(treeName)
if tree==None:
print "tree",treeName,"doesn't exist in file",fileName
assert(False)
# create the output file
outfile=TFile(outfileName,"RECREATE")
# create the output tree as a clone of the initial tree
# as we create it after the outfile is created
# it will be owned by outfile and it will be saved to outfile when outfile will be closed
outtree=tree.CloneTree(0)
# notice the much easier to loop over the events and retrieve the variables
# without needing the number of entries, without setting the branch addresses first,
# without needing the type of the variable and without needing the command of GetEntry
for event in tree:
value=getattr(tree,variableName)
# now we can use the value to apply a cut on event based on this value
if cut_low <= value <= cut_high:
outtree.Fill()
if debug:
# in this simple example simply print them
print "current value is",value,"cut_low",cut_low,"cut_high",cut_high
# after the event loop, save the outtree (it will be saved to the outfile)
outtree.AutoSave()
return True
# ended function
# read a Tree with a style specific to Python and then thin it
# based on the invariant mass of the two jets
# ex: exThinTree("file1.root","tree1",10.0,18.0,"thinned_file1.root",False)
def exThinTreeHiggsMass(fileName,treeName,cut_low,cut_high,outfileName,debug=False):
# open file
file=TFile(fileName,"READ")
if not file.IsOpen():
print "File",fileName,"does not exist, so will abort"
assert(False)
# open tree
tree=file.Get(treeName)
if tree==None:
print "tree",treeName,"doesn't exist in file",fileName
assert(False)
# create the output file
outfile=TFile(outfileName,"RECREATE")
# create the output tree as a clone of the initial tree
# as we create it after the outfile is created
# it will be owned by outfile and it will be saved to outfile when outfile will be closed
outtree=tree.CloneTree(0)
# notice the much easier to loop over the events and retrieve the variables
# without needing the number of entries, without setting the branch addresses first,
# without needing the type of the variable and without needing the command of GetEntry
#
string_4vecs="Pt,Eta,Phi,E"
type="r"
# start loop over events
for event in tree:
tlv1=TLorentzVector()
tlv1.SetPtEtaPhiE(*getValues(event,updateListVariables("j1"+type,string_4vecs,"")))
tlv2=TLorentzVector()
tlv2.SetPtEtaPhiE(*getValues(event,updateListVariables("j2"+type,string_4vecs,"")))
tlv12=tlv1+tlv2
value=tlv12.M()
# now we can use the value to apply a cut on event based on this value
if cut_low <= value <= cut_high:
outtree.Fill()
if debug:
# in this simple example simply print them
print "current value is",value,"cut_low",cut_low,"cut_high",cut_high
# after the event loop, save the outtree (it will be saved to the outfile)
outtree.AutoSave()
return True
# ended function
# create TTree in TFile flexible what to create inside
# list_variables=[]
# list_variables.append(['d','rPt','D',12.2])
# list_variables.append(['d','rE','D',14.7])
# ex addTree("test3.root","RECREATE","tree3",list_variables,True) if you want to add the tree to a new file
# ex addTree("test3.root","UPDATE","tree3",list_variables,True) if you want to add a tree to an existing file
def addTree(fileName,fileOpen,treeName,list_variables,debug):
file=TFile(fileName,fileOpen)
if not file.IsOpen():
print "File",fileName,"does not exist, so will abort"
assert(False)
tree=TTree(treeName,treeName)
# study the list_of_lists
nr_variables=len(list_variables)
if debug:
print "nr_variables",nr_variables
for i in xrange(nr_variables):
print list_variables[i]
# loop over variables for each variable:
list_values=[]
for i in xrange(nr_variables):
# create an array of desired type with one entry and append it to a list of values
# ex: rPt=array('d', [0])
list_values.append(array(list_variables[i][0], [0]))
# add the branch to the tree with the desired name and type and passing the value from above
# ex: tree.Branch('rPt',rPt,"rPt/D")
tree.Branch(list_variables[i][1],list_values[i],list_variables[i][1]+"/"+list_variables[i][2])
# done loop over variables
# loop from 0 to 9 events
for j in xrange(10):
# loop over all variables for each event and fill the dummy values the user has requested
for i in xrange(nr_variables):
# ex: rPt[0]=12.2
list_values[i][0]=list_variables[i][3]
# now fill the tree with these values
tree.Fill()
# Done, so exit the for loop
# now write the contents of the file to the file (thus the tree as well)
# if we write both the tree and the file, then the tree appears twice (2 cycles)
# tree.Write()
file.Write()
# close the file
file.Close()
# we are done, so we can return anything so let's just return True
return True
# ended function
# list object from file
# ex: ListObjects(fileName,False)
# ex of class: TH1F, TH1D, TF1, TDirectoryFile
# option A:
# option B:
# option C: just the object name
# this assumes all the histograms are at the same path
# for a more generic code, see the function below, where the histograms do not have to be at the same path
def listObjects(inputFileName,directoryPath="",searchClass="",list_searchName=["",""],doOption="A",doShowIntegral=False,outputFileName="a.log",debug=False):
if debug:
print "Start .ls of root inputFile ",inputFileName
if outputFileName!="":
outputFile=open(outputFileName,"w")
inputFile=TFile(inputFileName,"READ")
if not inputFile.IsOpen():
print "inputFile",inputFileName,"does not exist, so will abort"
assert(False)
gDirectory.cd(directoryPath)
list_key=gDirectory.GetListOfKeys()
list_key.sort() # sort it in alphabetical order
list_text=[]
for key in list_key:
if not (searchClass=="" or key.GetClassName()==searchClass):
continue
if not all(x in key.GetName() for x in list_searchName):
continue
if doOption=="A":
text=key.GetClassName()+" "+key.GetName()
if doShowIntegral and "TH" in searchClass:
text+=" integral="+str(gDirectory.Get(key.GetName()).Integral())
elif doOption=="B":
assert(len(list_searchName)==1)
searchName=list_searchName[0]
text=key.GetName().replace("_"+searchName,"")
#text="\""+key.GetName().replace("_"+searchName,"")+"\","
elif doOption=="C":
text=key.GetName()
else:
print "doOption",doOption,"not known. Choose A, B or C. Will ABORT!!!"
assert(False)
# done if
if outputFileName=="":
print text
else:
outputFile.write(text+"\n")
list_text.append(text)
if False:
gDirectory.ls()
if outputFileName!="":
outputFile.close()
print "Output written to file",outputFile
inputFile.Close()
if debug:
print "End .ls of root inputFile ",inputFileName
return list_text
# ended function
# function number 1 needed to find recursively and with back tracking all the histograms and profile in a ROOT folder structure of directories
def isObjectAllowed(inputFileName,thisFile,path,debug=False):
# object is allowed if it has a non zero list of sub-folders inside
if debug:
print "path",path
gDirectory.cd(path)
keyList = gDirectory.GetListOfKeys()
list_folder=[]
list_hist=[]
for key in keyList:
newPath = path + "/" +key.GetName()
if debug:
print "newPath",newPath, "trying to get object at this path"
obj = thisFile.Get(newPath)
if obj:
if obj.IsFolder()==True:
list_folder.append(newPath)
if obj and obj.InheritsFrom("TH1") or obj.InheritsFrom("TH2") or obj.InheritsFrom("TProfile") or obj.InheritsFrom("TProfile2D"):
if True:
print "tosave","file",inputFileName+",","path",newPath+",","type",type(obj)
# done check if is folder
else:
if debug:
print "obj does not exist at path",newPath
# done if check if object exists
# done loop over all the keys inside
allowed=len(list_folder)>0
return allowed,list_folder
# done
# example how to use the two functions above
# to find recursively and with back tracking all the histograms and profile in a ROOT folder structure of directories
# thisFile = TFile(inputFileName,"READ")
# solveRecursive(inputFileName,thisFile,initPath)
# thisFile.Close()
# function number 2 needed to find recursively and with back tracking all the histograms and profile in a ROOT folder structure of directories
def solveRecursive(inputFileName,thisFile,path,debug=False):
if debug:
print "Start solveRecursive","inputFileName",inputFileName,"thisFile",thisFile,"path",path
allowed,list_folder=isObjectAllowed(inputFileName,thisFile,path)
if allowed==True:
for folder in list_folder:
if solveRecursive(inputFileName,thisFile,folder)==True:
return True
# if here we need to back track
return False
else:
if debug:
print "path not allowed",path
return False
# done function
# remove object from file
# ex: removeObject("root1.root","tree1",";*",False)
# by adding ";*" you remove all the cycles (useful if they are more than 1)
def removeObject(fileName,objectName,objectCycle,debug=False):
if debug:
print "Start remove objectName",objectName,"with cycle",objectCycle,"from fileName",fileName
# open the file in UPDATE mode
file=TFile(fileName,"UPDATE")
if not file.IsOpen():
print "File",fileName,"does not exist, so will abort"
assert(False)
if debug:
print "Start .ls in the file before object removal"
file.ls()
print "End .ls in the file before object removal"
if objectCycle=="":
objectCycle=";*"
file.Delete(objectName+objectCycle)
if debug:
print "Start .ls in the file after object removal"
file.ls()
print "End .ls in the file after object removal"
file.Close()
return True
if debug:
print "End remove objectName",objectName,"with cycle",objectCycle,"from fileName",fileName
return True
# ended function
# remove object from file
# ex: removeObjects("root1.root",["tree1","tree2"],";*",False)
# the difference is a list of names of objects and removes all of them
# by adding ";*" you remove all the cycles (useful if they are more than 1)
def removeObjects(fileName,objectNames,objectCycle,debug=False):
if debug:
print "Start remove objects named",objectNames,", for each using cycle",objectCycle,"from fileName",fileName
# open the file in UPDATE mode
file=TFile(fileName,"UPDATE")
if not file.IsOpen():
print "File",fileName,"does not exist, so will abort"
assert(False)
if debug:
print "Start .ls in the file before object removal"
file.ls()
print "End .ls in the file before object removal"
for objectName in objectNames:
# only if it exists, remove the object
# the code would not crash if we try to remove an object that does not exist
# but it would be redundant
if exists(file.Get(objectName),objectName,True):
file.Delete(objectName+objectCycle)
if debug:
print "Start .ls in the file after object removal"
file.ls()
print "End .ls in the file after object removal"
file.Close()
return True
if debug:
print "Start remove objects named",objectNames,", for each using cycle",objectCycle,"from fileName",fileName
return True
# ended function
# ex: getNrEntries("file1.root","tree1",True)
# ex: getNrEntries("WH125.root","per_jet",True)
def getNrEntries(fileName,treeName,debug=False):
file=TFile(fileName,"READ")
if not file.IsOpen():
print "File",fileName,"does not exist, so will abort"
assert(False)
tree=file.Get(treeName)
if tree==None:
print "ERROR tree",treeName,"doesn't exist in file",fileName
#assert(False)
return -1
# end if
nrEntries=tree.GetEntries()
if debug:
print "Number of entries in file",fileName,"in tree",treeName,"is",nrEntries
return nrEntries
# ended function
# ex: showTreeEntries("file1.root","tree1",-1,-2,True)
def showTreeEntries(fileName,treeName,min_entry,max_entry,debug=False):
file=TFile(fileName,"READ")
if not file.IsOpen():
print "File",fileName,"does not exist, so will abort"
assert(False)
tree=file.Get(treeName)
if tree==None:
print "tree",treeName,"doesn't exist in file",fileName
assert(False)
nrEntries=tree.GetEntries()
if debug:
print "Asked: nrEntries",nrEntries,"min_entry",min_entry,"max_entry",max_entry
if min_entry<0 or min_entry>nrEntries:
min_entry=0
if max_entry<0 or max_entry>nrEntries:
max_entry=nrEntries-1
if debug:
print "Used : nrEntries",nrEntries,"min_entry",min_entry,"max_entry",max_entry
for i in xrange(min_entry,max_entry+1):
tree.Show(i)
return True
# ended function
# ex: SumP=getSumValue("WH125.root","per_jet","rPt",True)
def getSumValue(fileName,treeName,variableName,debug=False):
file=TFile(fileName,"READ")
if not file.IsOpen():
print "File",fileName,"does not exist, so will abort"
assert(False)
tree=file.Get(treeName)
if tree==None:
print "tree",treeName,"doesn't exist in file",fileName
assert(False)
sumValue=0.0
for event in tree:
sumValue+=getattr(event,variableName)
if debug:
nrEntries=tree.GetEntries()
print "Sum of the values for variable",variableName," of all",nrEntries,"entries in file",fileName,"in tree",treeName,"is",sumValue
return sumValue
# ended function
# ex: print getSumAverageValue("WH125.root","per_jet","rPt",True)
def getSumAverageValue(fileName,treeName,variableName,debug=False):
file=TFile(fileName,"READ")
if not file.IsOpen():
print "File",fileName,"does not exist, so will abort"
return(False)
tree=file.Get(treeName)
if tree==None:
print "tree",treeName,"doesn't exist in file",fileName
assert(False)
sumValue=0.0
for event in tree:
sumValue+=getattr(event,variableName)
nrEntries=tree.GetEntries()
if nrEntries!=0:
averageValue=sumValue/nrEntries
else:
averageValue=0.0
if debug:
print "Sum of the values for variable",variableName," of all",nrEntries,"entries in file",fileName,"in tree",treeName,"is",sumValue,",with the average value being",averageValue
return nrEntries,sumValue,averageValue
# ended function
# func like a Bukin fit, dx is the step
def medianOfFunction(func,dx):
min=func.GetXmin()
max=func.GetXmax()
x=min
integral=0
total=func.Integral(min,max)
# Integrates across the function until half the total area is reached.
while x<=max and ratio(integral,total)<0.5:
integral=func.Integral(min,x)
x+=dx
return x
# ended function
def retrieveObject(fileName="",objectType="histo",objectPath="",objectName="",name="",returnDummyIfNotFound=False,debug=False):
if debug:
print "fileName",fileName
print "objectPath",objectPath
print "objectName",objectName
print "name",name
file=TFile(fileName,"READ")
if debug:
print "file",file,"type(file)",type(file)
if not file.IsOpen():
print "File",fileName,"does not exist, so will abort"
assert(False)
if False:
file.ls()
if False:
# the old way, slow when reading from a path inside the file
gDirectory.cd(objectPath)
if False:
print "objectPath",objectPath
print "gDirectory.ls()"
gDirectory.ls()
print "objectName",objectName
object=gDirectory.Get(objectName)
else:
# the new way, faster when reading from a path inside the file
if objectPath=="":
object=gDirectory.Get(objectName)
else:
object=gDirectory.Get(objectPath+"/"+objectName)
if debug:
print "object",object,"type(object)",type(object)
if object==None:
if returnDummyIfNotFound==True:
print "WARNING!!!! object",objectName,"doesn't exist in file",fileName,"at path",objectPath,". We will return a string called dummy!!!"
return "dummy" # return a dummy string
else:
print "object",objectName,"doesn't exist in file",fileName,"at path",objectPath,". We will ABORT!!!!"
assert(False)
if name!="":
object.SetName(name)
object.SetTitle(name)
if objectType=="histo":
# needed so that the object is able to return a histogram
# otherwise it will return <type 'PyROOT_NoneType'>
object.SetDirectory(0)
elif objectType=="function":
None
else:
print "objectType",objectType,"not known. Choose histo or function. Will ABORT!!"
assert(False)
return object
# ended function
# retrieve histogram from file
# ex: histo=retrieveHistogram(fileName=inputFileName,histoPath=histoPath,histoName=histoName,name="",returnDummyIfNotFound=False,debug=debug)
def retrieveHistogram(fileName="",histoPath="",histoName="",name="",returnDummyIfNotFound=False,debug=False):
histo=retrieveObject(fileName=fileName,objectType="histo",objectPath=histoPath,objectName=histoName,name=name,returnDummyIfNotFound=returnDummyIfNotFound,debug=debug)
return histo
# ended function
# add histogram to existing file
def writeHistogram(fileName,histo,histoPath,histoName="",histoTitle="",debug=False):
c=inspect.currentframe();
if debug:
print c.f_lineno
file=TFile(fileName,"UPDATE")
if not file.IsOpen():
print "File",fileName,"does not exist, so will abort"
assert(False)
path="/"
for folder in histoPath:
#print folder
path+=folder+"/"
if debug:
print path
if debug:
print gDirectory.pwd()
print gDirectory.ls()
# if the next desired folder does not exist, then create it
if not gDirectory.Get(folder):
gDirectory.mkdir(folder)
if debug:
print gDirectory.pwd()
print gDirectory.ls()
# either it already existed, or it was created now, cd there
gDirectory.cd(folder)
if debug:
print gDirectory.pwd()
print gDirectory.ls()
file.cd(path)
h=histo.Clone()
if histoName!="":
h.SetName(histoName)
if histoTitle!="":
h.SetTitle(histoTitle)
h.Write("",TObject.kOverwrite)
#file.Write()
file.Close()
return True
# ended function
# add histogram to existing file
# ex: createDirectory("file1.root",["ADI","TrigJetRec","U","Good"],False)
def createDirectory(fileName,folders,debug=False):
c=inspect.currentframe();
if debug:
print c.f_lineno
file=TFile(fileName,"UPDATE")
path="/"
for folder in folders:
#print folder
path+=folder+"/"
if debug:
print path
if debug:
print gDirectory.pwd()
print gDirectory.ls()
# if the next desired folder does not exist, then create it
if not gDirectory.Get(folder):
gDirectory.mkdir(folder)
if debug:
print gDirectory.pwd()
print gDirectory.ls()
# either it already existed, or it was created now, cd there
gDirectory.cd(folder)
if debug:
print gDirectory.pwd()
print gDirectory.ls()
file.cd(path)
file.Close()
return True
# ended function
# plot just one histogram, either 1D or 2D
def plotHistogram(h,plot_option="",filePath="./",fileName="plot",extensions="pdf"):
# plot one histogram, either 1D or 2D
#h.SetLineColor(1)
c=TCanvas()
h.Draw(plot_option)
# if path does not have / as the last character, add one
if filePath=="":
filePath="./"
elif filePath[-1]!="/":
filePath+="/"
# compute the name
if fileName=="":
fileName=filePath+h.GetName()
else:
fileName=filePath+fileName
# save the canvas in files with what extensions we want
for extension in extensions.split(","):
c.Print(fileName+"."+extension)
# ended for over extensions
return None
# ended function
# plot two histograms (numerator and denominator) and at the bottom their ratio, which is fitted
def plotHistograms(hnumer0,hdenom0,hratio0,plot_option="",filePath="./",fileName="plot",extensions="pdf",debug=False):
hdenom=hdenom0.Clone()
hnumer=hnumer0.Clone()
hratio=hratio0.Clone()
# plot one histogram, either 1D or 2D
gStyle.SetOptStat(0)
c=TCanvas("c","c",600,600)
p_main=TPad("p_main","p_main",0,0.33,1,1)
p_ratio=TPad("p_ratio","p_ratio",0,0,1,0.33)
p_main.Draw()
p_ratio.Draw()
# main pad
p_main.cd()
hdenom.SetLineColor(4)
hnumer.SetLineColor(2)
hdenom.SetMinimum(0)
myMax=max(hdenom.GetMaximum(),hnumer.GetMaximum())
hnumer.SetMaximum(myMax*1.30)
hnumer.Draw(plot_option)
hdenom.Draw(plot_option+"SAME")
legend_info=[0.65,0.70,0.88,0.82,72,0.037,0]
legend=get_legend(legend_info,debug)
legend.AddEntry(hnumer,"Num: Alternative","f")
legend.AddEntry(hdenom,"Den: Default","f")
legend.SetBorderSize(0)
legend.Draw("same")
p_main.Update()
# ratio pad
p_ratio.cd()
hratio.Draw(plot_option)
# canvas
c.Update()
# if path does not have / as the last character, add one
if filePath=="":
filePath="./"
elif filePath[-1]!="/":
filePath+="/"
# compute the name
if fileName=="":
fileName=filePath+h.GetName()
else:
fileName=filePath+fileName
# save the canvas in files with what extensions we want
for extension in extensions.split(","):
c.Print(fileName+"."+extension)
# ended for over extensions
return None
# ended function
def get_string_distribution(prefix,name,height,mean,rms):
if mean==0:
rms_mean=0.0
else:
rms_mean=rms/mean
result="%-10s %-25s %-5.1f %-4.1f %-4.1f %-5.0f" % (prefix,name,mean*100,rms*100,rms_mean*100,height)
return result
# done function
def get_median_histogram(h,debug):
# from here: https://root.cern.ch/phpBB3/viewtopic.php?t=7802
numBins = h.GetXaxis().GetNbins()
#Double_t *x = new Double_t[numBins];
x=array("d",[])
#Double_t* y = new Double_t[numBins];
y=array("d",[])
#for (int i = 0; i < numBins; i++) {
# x[i] = histo1->GetBinCenter(i);
# y[i] = histo1->GetBinContent(i);
#double MedianOfHisto = TMath::Median(numBins, &x[], &y[])
#
for i in xrange(numBins):
x.append(h.GetBinCenter(i))
y.append(h.GetBinContent(i))
#
median=TMath.Median(numBins,x,y)
if debug:
print "median",median
return median
# done histogram
# ex: fit_hist(h,"None",False,"","canvasname",false)
def fit_hist(h=TH1F(),fitRange=[-1,-1],defaultFunction=TF1(),fit="None",addMedianInFitInfo=False,plot_option="",doValidationPlot=True,canvasname="canvasname",debug=False):
if debug:
print "Start fit_hist"
print "h",type(h),h
print "fitRange",fitRange
print "fit",fit
print "plot_option",plot_option
if fitRange==0 or (fitRange[0]==-1 and fitRange[1]==-1) or fitRange[1]<fitRange[0]:
fitRangeDefault=True
nonZeroRange,nrNonZeroBins=getHistoNonZeroRange(h,debug=debug)
xmin=nonZeroRange[0]
xmax=nonZeroRange[1]
#xmin=h.GetBinLowEdge(0)
#NrBins=h.GetNbinsX()
#xmax=h.GetBinLowEdge(NrBins)+h.GetBinWidth(NrBins)
else:
fitRangeDefault=False
xmin=fitRange[0]
xmax=fitRange[1]
#
if debug:
print "fit range xmin",xmin,"xmax",xmax
if doValidationPlot:
ROOT.gStyle.SetOptFit(1011)
c=TCanvas("c","c",800,600)
h.Draw("HIST")
#SetOwnership(h,0)
if debug:
print "****************** Start getBinvalues in fit ************"
print "GetEntries",h.GetEntries()
getBinValues(h,doRescaleMeVtoGeV=False,debug=debug)
print "****************** End getBinvalues in fit ************"
entries=h.GetEntries()
height=h.GetMaximum()
mean=h.GetMean()
rms=h.GetRMS()
#median=mean # todo: to update to median of histogram as per https://root.cern.ch/phpBB3/viewtopic.php?t=7802
median=get_median_histogram(h,debug)
if addMedianInFitInfo==True:
result=((median,0.0),(height,0.0),(mean,0.0),(rms,0.0))
else:
result=((0.0,0.0),(height,0.0),(mean,0.0),(rms,0.0),(0.0,0.0),(0.0,0.0),(0.0,0.0))
f=defaultFunction
if debug:
print "initially as dummy values"
print "entries",entries
print "result",result
print "f",type(f),f
print "fit",fit
cutnentries=19
color=h.GetLineColor()
if fit=="None":
None
elif fit=="XPlus1OverX":
None
elif fit=="Sigmoid":
if rms>0.02:
function=TF1("sigmoid",Sigmoid(),xmin,xmax,2)
h.Fit("sigmoid","RQ",plot_option+"same",xmin,xmax)
f=h.GetFunction("sigmoid")
if addMedianInFitInfo==True:
result=((medianOfFunction(f,0.01),0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(0.0,0.0))
else:
result=((0.0,0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(0.0,0.0))
f.SetLineColor(color)
f.Draw("SAME")
else:
None
elif fit=="Linear":
#if entries>cutnentries and rms>0.02:
if rms>0.02:
if debug:
print "we do the fit, as entries>cutnentries and rms>0.02"
function=TF1("linear",Linear(),xmin,xmax,2)
function.SetParName(0,"p0")
function.SetParName(1,"p1")
h.Fit("linear","RQ",plot_option+"same",xmin,xmax)
f=h.GetFunction("linear")
if addMedianInFitInfo==True:
result=((medianOfFunction(f,0.01),0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(0.0,0.0))
else:
result=((0.0,0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(0.0,0.0))
f.SetLineColor(color)
f.Draw("SAME")
else:
print "WARNING! No fit done, as entries=",entries,"rms=",rms
None
elif fit=="PieceWiseLinear":
#if entries>cutnentries and rms>0.02:
if rms>0.02:
if debug:
print "we do the fit, as entries>cutnentries and rms>0.02"
if debug:
print "xmin",xmin,"xmax",xmax
function=TF1("piecewiselinear",PieceWiseLinear(),xmin,xmax,6)
if debug:
print "Done define function of type TF1"
# y=y1+(x-x1)*(y2-y1)/(x2-x1)
# y=y2+(x-x2)*(y3-y2)/(x3-x2)
# set parameter name
# notation of parameters from Eliot,
# may be renamed later so that the parameters come in the more natural order x1,y1,x2,y2,x3,y3
function.SetParName(0,"p0") # x1
function.SetParName(1,"p1") # y1
function.SetParName(2,"p2") # x2
function.SetParName(3,"p3") # y2
function.SetParName(4,"p4") # x3
function.SetParName(5,"p5") # y3
if debug:
print "Done function SetParName"
# set parameter values to default values of two straight lines, both at 1
# y1 = y2 = y3 = 1.0
# for mcc: x1 = 30; x3 = 230; x2 = 30+(230-30)/2 = 130 (at middle)
# for BDT: x1 = -1; x3 = +1; x2 = -1+(1-(-1))/2 = 0 (at middle)
function.SetParameter(0,xmin)
function.SetParameter(1,1.0)
function.SetParameter(2,xmin+0.5*(xmax-xmin))
function.SetParameter(3,1.0)
function.SetParameter(4,xmax)
function.SetParameter(5,1.0)
if debug:
print "Done function SetParameter"
h.Fit("piecewiselinear","RQ",plot_option+"same",xmin,xmax)
if debug:
print "Done do the fit"
f=h.GetFunction("piecewiselinear")
if debug:
print "Done get the function"
if addMedianInFitInfo==True:
result=((medianOfFunction(f,0.01),0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParError(2),f.GetParameter(2)),(f.GetParError(3),f.GetParError(3)),(f.GetParameter(4),f.GetParError(4)),(f.GetParameter(5),f.GetParError(5)))
else:
result=((0.0,0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParError(2),f.GetParameter(2)),(f.GetParError(3),f.GetParError(3)),(f.GetParameter(4),f.GetParError(4)),(f.GetParameter(5),f.GetParError(5)))
if debug:
print "Done create result by getting parameters"
f.SetLineColor(color)
f.Draw("SAME")
if debug:
print "Done set color and draw the function with SAME"
else:
print "WARNING! No fit done, as entries=",entries,"rms=",rms
None
elif fit=="Parabolic":
if h.GetEntries()<20:
None
else:
function=TF1("parabolic",Parabolic(),xmin,xmax,3)
function.SetParName(0,"p0")
function.SetParName(1,"p1")
function.SetParName(2,"p2")
h.Fit("parabolic","RQ",plot_option+"same",xmin,xmax)
f=h.GetFunction("parabolic")
if addMedianInFitInfo==True:
result=((medianOfFunction(f,0.01),0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)))
else:
result=((0.0,0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)))
f.SetLineColor(color)
f.Draw("SAME")
elif fit=="Parabolic2":
if True:
function=TF1("parabolic2",Parabolic2(),xmin,xmax,5)
function.SetParName(0,"p0")
function.SetParName(1,"p1")
function.SetParName(2,"p2")
function.SetParName(3,"p3")
function.SetParName(4,"p4")
# set parameter values
function.SetParameter(0,1.0)
function.SetParameter(0,1.0)
function.SetParameter(0,1.0)
function.SetParameter(0,-1.0)
function.SetParameter(0,1.0)
h.Fit("parabolic2","RQ",plot_option+"same",xmin,xmax)
f=h.GetFunction("parabolic2")
if addMedianInFitInfo==True:
result=((medianOfFunction(f,0.01),0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)))
else:
result=((0.0,0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)))
f.SetLineColor(color)
f.Draw("SAME")
else:
None
elif "pol" in fit:
if True:
h.Fit(fit,"Q",plot_option+"same",xmin,xmax)
f=h.GetFunction(fit)
if addMedianInFitInfo==True:
result=((medianOfFunction(f,0.01),0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)))
else:
result=((0.0,0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)))
f.SetLineColor(color)
f.Draw("SAME")
else:
None
elif fit=="Polynomial3":
if True:
function=TF1("polynomial3",Polynomial3(),xmin,xmax,4)
function.SetParName(0,"p0")
function.SetParName(1,"p1")
function.SetParName(2,"p2")
function.SetParName(3,"p3")
#
function.SetParameter(0,1.0)
function.SetParameter(1,1.0)
function.SetParameter(2,1.0)
function.SetParameter(3,1.0)
h.Fit("polynomial3","RQ",plot_option+"same",xmin,xmax)
f=h.GetFunction("polynomial3")
if addMedianInFitInfo==True:
result=((medianOfFunction(f,0.01),0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)),(f.GetParameter(3),f.GetParError(3)))
else:
result=((0.0,0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)),(f.GetParameter(3),f.GetParError(3)))
f.SetLineColor(color)
f.Draw("SAME")
else:
None
elif fit=="Polynomial4":
if True:
function=TF1("polynomial4",Polynomial4(),xmin,xmax,5)
function.SetParName(0,"p0")
function.SetParName(1,"p1")
function.SetParName(2,"p2")
function.SetParName(3,"p3")
function.SetParName(4,"p4")
h.Fit("polynomial4","RQ",plot_option+"same",xmin,xmax)
f=h.GetFunction("polynomial4")
if addMedianInFitInfo==True:
result=((medianOfFunction(f,0.01),0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)),(f.GetParameter(3),f.GetParError(3)),(f.GetParameter(4),f.GetParError(4)))
else:
result=((0.0,0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)),(f.GetParameter(3),f.GetParError(3)),(f.GetParameter(4),f.GetParError(4)))
f.SetLineColor(color)
f.Draw("SAME")
else:
None
elif fit=="Polynomial5":
if True:
function=TF1("polynomial5",Polynomial5(),xmin,xmax,6)
function.SetParName(0,"p0")
function.SetParName(1,"p1")
function.SetParName(2,"p2")
function.SetParName(3,"p3")
function.SetParName(4,"p4")
function.SetParName(5,"p5")
h.Fit("polynomial5","RQ",plot_option+"same",xmin,xmax)
f=h.GetFunction("polynomial5")
if addMedianInFitInfo==True:
result=((medianOfFunction(f,0.01),0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)),(f.GetParameter(3),f.GetParError(3)),(f.GetParameter(4),f.GetParError(4)),(f.GetParameter(5),f.GetParError(5)))
else:
result=((0.0,0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)),(f.GetParameter(3),f.GetParError(3)),(f.GetParameter(4),f.GetParError(4)),(f.GetParameter(5),f.GetParError(5)))
f.SetLineColor(color)
f.Draw("SAME")
else:
None
elif fit=="Polynomial6":
if True:
function=TF1("polynomial6",Polynomial6(),xmin,xmax,7)
function.SetParName(0,"p0")
function.SetParName(1,"p1")
function.SetParName(2,"p2")
function.SetParName(3,"p3")
function.SetParName(4,"p4")
function.SetParName(5,"p5")
function.SetParName(6,"p6")
h.Fit("polynomial6","RQ",plot_option+"same",xmin,xmax)
f=h.GetFunction("polynomial6")
if addMedianInFitInfo==True:
result=((medianOfFunction(f,0.01),0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)),(f.GetParameter(3),f.GetParError(3)),(f.GetParameter(4),f.GetParError(4)),(f.GetParameter(5),f.GetParError(5)),(f.GetParameter(6),f.GetParError(6)))
else:
result=((0.0,0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)),(f.GetParameter(3),f.GetParError(3)),(f.GetParameter(4),f.GetParError(4)),(f.GetParameter(5),f.GetParError(5)),(f.GetParameter(6),f.GetParError(6)))
f.SetLineColor(color)
f.Draw("SAME")
else:
None
elif fit=="Gauss":
if entries>cutnentries and rms>0.02:
if fitRangeDefault==True:
xmin=mean-2*rms
xmax=mean+2*rms
function=TF1("gauss",Gauss(),xmin,xmax,3)
function.SetParName(0,"height")
function.SetParName(1,"mean")
function.SetParName(2,"width")
function.SetParameter(0,height)
function.SetParameter(1,mean)
function.SetParameter(2,rms)
h.Fit("gauss","RQ",plot_option+"same",xmin,xmax)
f=h.GetFunction("gauss")
if addMedianInFitInfo==True:
result=((medianOfFunction(f,0.01),0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)))
else:
result=((0.0,0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)))
f.SetLineColor(color)
f.Draw("SAME")
else:
None
elif fit=="Bukin":
if debug:
print "We are starting the Bukin fit"
if h.Integral()>0 and entries>cutnentries and rms>0.02:
if debug:
print "we do the fit, as integral > 0 (not made from dummy histogram with zero entries as histogarm was missing) and in addition entries>cutnentries and rms>0.02"
if fitRangeDefault==True:
xmin=mean-3*rms
xmax=mean+3*rms
# hack for Mbb mass fit like Manuel between 20 and 200
#xmin=70.0
#xmax=145.0
function=TF1("bukin",Bukin(),xmin,xmax,6)
function.SetParName(0,"height")
function.SetParName(1,"peak") # actually the peak, as it may be asymmetric
function.SetParName(2,"width")
function.SetParName(3,"asymmetry")
function.SetParName(4,"size of lower tail")
function.SetParName(5,"size of higher tail")
function.SetParameter(0,height)
#function.SetParameter(0,100)
function.SetParameter(1,mean)
function.SetParameter(2,rms)
#function.SetParameter(3,-0.4)
#function.SetParameter(4,0.01)
#function.SetParameter(5,0.005)
if debug:
print "we just set the function used for the fit"
if debug:
print "h.Integral()",h.Integral()
h.Fit("bukin","RQ",plot_option+"same",xmin,xmax)
if debug:
print "we just performed the fit"
f=h.GetFunction("bukin")
if debug:
print "we just retrieved f"
if addMedianInFitInfo==True:
result=((medianOfFunction(f,0.01),0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)),(f.GetParameter(3),f.GetParError(3)),(f.GetParameter(4),f.GetParError(4)),(f.GetParameter(5),f.GetParError(5)))
else:
result=((0.0,0.0),(f.GetParameter(0),f.GetParError(0)),(f.GetParameter(1),f.GetParError(1)),(f.GetParameter(2),f.GetParError(2)),(f.GetParameter(3),f.GetParError(3)),(f.GetParameter(4),f.GetParError(4)),(f.GetParameter(5),f.GetParError(5)))
if debug:
print "result of the fit",result
# these will plot just the function
#SetOwnership(f,0)
f.SetLineColor(color)
#f.Draw("SAME")
else:
if debug:
print "we don't do the fit, as it fails entries>cutnentries and rms>0.02"
None
if debug:
print "We just ended the Bukin fit"
else:
None
print "fit",fit,"is unknown. Choose None, Gauss, Bukin. Will return an empty function."
# end loop over fit
if debug:
print "done the fit that we wanted",fit
print "f",f,"type(f)",type(f)
print "result",result
if doValidationPlot:
c.Print(canvasname+"_"+fit+".pdf")
if debug:
print "we now exit fit_hist(...) function"
#SetOwnership(f,1)
#not able to return the function
return f,result
# done function
def debug_fit_function(f,debug=False):
if debug==False:
return
print "NDF",f.GetNDF()
print "Ndim",f.GetNdim()
print "Npar",f.GetNpar()
print "Npx",f.GetNpx()
print "Number",f.GetNumber()
print "NumberFitPoints",f.GetNumberFitPoints()
print "NumberFreeParameters",f.GetNumberFreeParameters()
# done function
def get_value_error_from_result_fit(fitVar,result_fit,debug):
if debug:
print "result_fit (median,(height,height_error),(mean,mean_error),(sigma,sigma_error))",result_fit
if fitVar=="Par1":
value=result_fit[2][0] # mean or peak
error=result_fit[2][1]
elif fitVar=="Par2":
value=result_fit[3][0] # mean or peak
error=result_fit[3][1]
elif fitVar=="Ratio":
value=ratio(result_fit[3][0],result_fit[2][0]) # sigma/mean
error=0.0 # https://en.wikipedia.org/wiki/Propagation_of_uncertainty
else:
print "fitVar",fitVar,"not known. Will ABORT!!!"
assert(False)
# done if
return (value,error)
# done function
# ex:
def update_h1D_characteristics(h,rebin,plotting,xaxis,yaxis,debug):
if debug:
print "rebin",rebin
print "color for line for fill for marker",plotting[0]
print "marker style",plotting[1]
print "fill style",plotting[2]
print "marker size and line width",plotting[3]
print "xaxis title",xaxis[0]
print "xaxis title size",xaxis[1]
print "xaxis title offset",xaxis[2]
h.Rebin(rebin)
h.SetLineColor(plotting[0])
h.SetFillColor(plotting[0])
h.SetMarkerStyle(plotting[1])
h.SetMarkerColor(plotting[0])
h.SetMarkerSize(plotting[3])
h.SetFillStyle(plotting[2])
h.SetLineWidth(plotting[3])
h.GetXaxis().SetTitle(xaxis[0])
h.GetXaxis().SetTitleSize(xaxis[1])
h.GetXaxis().SetTitleOffset(xaxis[2])
h.GetYaxis().SetTitle(yaxis[0])
h.GetYaxis().SetTitleSize(yaxis[1])
h.GetYaxis().SetTitleOffset(yaxis[2])
# done function
def update_h1D_characteristics_from_another_one(new,old,debug):
new.SetLineColor(old.GetLineColor())
new.SetFillColor(old.GetLineColor())
new.SetMarkerStyle(old.GetLineColor())
new.SetMarkerColor(old.GetLineColor())
new.SetMarkerSize(old.GetMarkerSize())
new.SetFillStyle(old.GetFillStyle())
new.SetLineWidth(old.GetLineWidth())
new.GetXaxis().SetTitle(old.GetXaxis().GetTitle())
new.GetXaxis().SetTitleSize(old.GetXaxis().GetTitleSize())
new.GetXaxis().SetTitleOffset(old.GetXaxis().GetTitleOffset())
new.GetYaxis().SetTitle(old.GetYaxis().GetTitle())
new.GetYaxis().SetTitleSize(old.GetYaxis().GetTitleSize())
new.GetYaxis().SetTitleOffset(old.GetYaxis().GetTitleOffset())
# done function
def setErrorsToZero(h,debug):
N=h.GetNbinsX()
for i in xrange(N+1):
h.SetBinError(i,0.0);
# done function
def get_legend(info,debug):
if debug:
print "x_min",info[0]
print "y_min",info[1]
print "x_max",info[2]
print "y_max",info[3]
print "text_font",info[4]
print "text_size",info[5]
print "fill_color",info[6]
legend=TLegend(info[0],info[1],info[2],info[3])
legend.SetTextFont(info[4])
legend.SetTextSize(info[5])
legend.SetFillColor(info[6])
return legend
# done function
def set_min_max_title_list_tuple_h1D(list_tuple_h1D,max_value,min_value,ignorezero,max_value_factor,min_value_factor,debug):
if debug:
print "max_value",max_value
print "min_value",min_value
print "max_value_factor",max_value_factor
print "min_value_factor",min_value_factor
# number of histograms we are overlaying
num=len(list_tuple_h1D)
if debug:
print "len(list_tuple_h1D)=",len(list_tuple_h1D)
if num>0:
for i in range(num):
print "type("+str(i)+")=",type(list_tuple_h1D[i][0])
# find the minimum value of all the histograms. Pick an initial value that
# should be biggest than all
if min_value==-1:
min_value=999999
for i in range(num):
if debug:
print "i",i,"min_value to start with",min_value
if ignorezero:
current_min=list_tuple_h1D[i][0].GetMinimum(0.8)
if debug:
print "we are in ignore zero, i", i, current_min
else:
current_min=list_tuple_h1D[i][0].GetMinimum()
if debug:
print "we do not ignore zero, current_min",current_min
if current_min <= min_value:
min_value=current_min
# decrease a bit to be able to see better the highest value
min_value*=min_value_factor #0.9
if debug:
print "min",min_value
# else of course it remains with the value set by the user
# find the maximum value of all the histograms
if max_value==-1:
max_value=0.0
for i in range(num):
if list_tuple_h1D[i][0].GetMaximum() >= max_value:
max_value=list_tuple_h1D[i][0].GetMaximum()
# increase by a bit to be able to see better the highest value
max_value*=max_value_factor #1.30
if debug:
print "max",max_value
# else of course it remains with the value set by the user
# as the first histogram gives the template to the entire canvas
# tell the first histogram to use this maximum size
list_tuple_h1D[0][0].SetMaximum(max_value)
# tell the first histogram to use this minimum size
list_tuple_h1D[0][0].SetMinimum(min_value)
# For the first histogram and thus for the canvas
# Remove title and statistics box if there is more than one histogram
if num>1:
list_tuple_h1D[0][0].SetTitle("")
# done function
def get_histo_normalised(h,debug=False):
h_new=h.Clone(h.GetName()+"_normalised")
# get integral including underflow and overflow
integral,error=get_histo_integral_error(h,myRange=-1,debug=debug)
h_new.Scale(ratio(1.0,integral))
return h_new
# done function
def get_histo_values(h,i,debug=False):
low=h.GetBinLowEdge(i)
high=low+h.GetBinWidth(i)
value=h.GetBinContent(i)
error=h.GetBinError(i)
return (low,high,value,error)
# done function
# actually coded by Root in h.Rebin(nbins,"new name",numpyArrayOfbins)
# https://root.cern.ch/doc/master/classTH1.html#aff6520fdae026334bf34fa1800946790
# so can get rid of this
# ex h=get_histo_subRange(h,[260,340],debug)
def get_histo_subRange(h,subRange,debug=False):
xmin=subRange[0]
xmax=subRange[1]
counter=0
if debug:
print "Looping the first time over initial histogram in get_histo_subRange()"
for i in xrange(h.GetNbinsX()+1):
low=h.GetBinLowEdge(i)
high=low+h.GetBinWidth(i)
value=h.GetBinContent(i)
error=h.GetBinError(i)
if high<=xmin:
continue
if low>=xmax:
continue
counter+=1
if debug:
print i, low,high,value,error
# done for loop
# make string from xrange
stringSubRange=str(xmin)+"_"+str(xmax)
h_subRange=TH1F(h.GetName()+"_"+stringSubRange,h.GetTitle()+"_"+stringSubRange,counter,xmin,xmax)
#
counter=0
if debug:
print "Looping the second time over initial histogram in get_histo_subRange()"
for i in xrange(h.GetNbinsX()+1):
low,high,value,error=get_histo_values(h,i,debug)
if high<=xmin:
continue
if low>=xmax:
continue
counter+=1
if debug:
print counter,low,high,value,error
h_subRange.SetBinContent(counter,value)
h_subRange.SetBinError(counter,error)
if debug:
print counter,get_histo_values(h_subRange,counter,debug)
# done loop
if debug:
print "Looping over produced histogram in get_histo_subRange()"
print h_subRange.GetNbinsX()
for i in xrange(h_subRange.GetNbinsX()+1):
print i,get_histo_values(h_subRange,i,debug)
# done loop
#h_subRange.SetDirectory(0)
#SetOwnership(h_subRange,0)
return h_subRange
# done
def remove_duplicates_from_generic_binRange(binRange="150,200,400",debug=False):
# evaluate the desired binning
# when making the bin range from a sum of several other bin ranges
# one ends and the other starts with the same value
# in that case, skip one of them, as it gives incorrectly a bin of zero range
if debug:
print "input binRange",binRange
if binRange=="":
return ""
binRangeOutput=""
previousEdge=""
list_repeatedEdge=[]
for i,currentEdge in enumerate(binRange.split(",")):
if False:
print "previousEdge",previousEdge,"currentEdge",currentEdge
if currentEdge!=previousEdge:
if i!=0:
binRangeOutput+=","
binRangeOutput+=currentEdge
# done if
previousEdge=currentEdge
# done for loop over bin edges
if debug:
print "output binRange",binRangeOutput
return binRangeOutput
# done
# give any bin range, symmetric or asymmetric
# you can test it with the function defined below this one
# test_get_histo_generic_binRange(debug=True)
# actually coded by Root in h.Rebin(nbins,"new name",numpyArrayOfbins)
# https://root.cern.ch/doc/master/classTH1.html#aff6520fdae026334bf34fa1800946790
# so can get rid of this
# the option "average" is deprecated, now rebin with sum, then move overflows to edge bins, and then average out
def get_histo_generic_binRange(histo,binRange="150,200,400",option="sum",debug=False):
if debug:
print "Start get_histo_generic_binRange()"
if option!="sum" and option!="average2":
print "option",option,"not known. Choose sum, average2. Will ABORT!!!"
assert(False)
h=histo.Clone(histo.GetName()+"_rebin")
if binRange=="":
# then do nothing, return as it was
# it makes easier to use the same generic function and for some histograms to not actually rebin
return h
elif binRange[0:5]=="Rebin":
rebin=binRange.remove("Rebin")
return h.Rebin(rebin)
else:
None
# do the actual generic (usually asymmetric) bins below
# actually start
if debug:
print "before removing duplicates:"
print "binRange",binRange,"option",option
# remove duplicates from the binRange, needed when making sum of bin ranges
binRange=remove_duplicates_from_generic_binRange(binRange=binRange,debug=debug)
if debug:
print "after removing duplicates:"
print "binRange",binRange,"option",option
# create numpy arrange of range from the string representing range
nparray_binRange=get_numpyarray_from_listString(binRange.split(","),debug)
if debug:
print "nparray_binRange",nparray_binRange
histoName=h.GetName()
histoTitle=h.GetTitle()
histoNrBins=len(nparray_binRange)-1
if debug:
print "histoName",histoName,"histoTitle",histoTitle,"histoNrBins",histoNrBins
# create a histogram with this binning
result=TH1F(histoName+"_rebin",histoTitle+"_rebin",histoNrBins, nparray_binRange)
result.SetXTitle(h.GetXaxis().GetTitle())
result.SetYTitle(h.GetYaxis().GetTitle())
# loop over each bin of the new histogram
if debug:
print "Start loop over bins of the new (rebinned) histogram, including underflow and overflow"
for i in xrange(0,result.GetNbinsX()+2):
if i==0:
# underflow
low=float("-inf")
# width=result.GetBinWidth(i)
high=result.GetBinLowEdge(1)
elif i==result.GetNbinsX()+1:
# overflow
low=result.GetBinLowEdge(i)
# width=result.GetBinWidth(i)
high=float("inf")
elif i<0:
# bin below underflow
print "Bin number can not be negative, will ABORT!!!"
assert(False)
elif i>result.GetNbinsX()+1:
# bin above overflow
print "Bin number can not be larger than the overflow bine, will ABORT!!!"
assert(False)
else:
# regular bin
low=result.GetBinLowEdge(i)
width=result.GetBinWidth(i)
high=low+width
# done if
if debug:
print "bin", i,"low",low,"high",high
# find all the bins of the initial histogram that are between low and high
# and then sum them together and calculate their combined statistical error
# and set them here
value=0.0
error_squared=0.0
if debug:
print "Start loop over bins of the initial histogram, including its underflow and overflow"
for j in xrange(0,h.GetNbinsX()+2):
current_low=h.GetBinLowEdge(j)
current_width=h.GetBinWidth(j)
current_high=current_low+current_width
if False:
print "bin", i,"low","%.10f"%low,"high","%.10f"%high,"bin initial histogram",j,"current_low","%.10f"%current_low,"current_high","%.10f"%current_high,",current_high<=low",current_high<=low,",current_low>=high", current_low>=high,",OR",current_high<=low or current_low>=high
print "bin", i,"current_high","%.10f"%current_high,"low","%.10f"%low,"current_high<=low",current_high<=low,"current_low","%.10f"%current_low,"high","%.10f"%high,"current_low>=high", current_low>=high,",OR",current_high<=low or current_low>=high
# skip the bins that not in our range
epsilon=0.00001 # use epsilon I got errors before to with >= or <= since = comparison did not always work fine for non integers
if current_high<low+epsilon:
continue # add to the underflow bin of the new histogram
if current_low>high-epsilon:
continue # add to the overflow bin of the new histogram
current_value=h.GetBinContent(j)
current_error=h.GetBinError(j)
value+=current_value
# error propagation: error of on bin is the sqrt of sum of weights
# https://root.cern.ch/doc/master/classTH1.html Associated errors Sumw2
error_squared+=current_error*current_error
if debug:
print "bin", i,"low",low,"high",high,"bin initial histogram", j,"current_low",current_low,"current_high",current_high,"current_value",current_value,"current_error",current_error,"value",value,"error_squared",error_squared
# done loop over the bins of the initial histogram
# we need the average value, so divide by the bin width
error=math.sqrt(error_squared)
if option=="average":
print "the option \"average\" is deprecated, now rebin with sum, then move overflows to edge bins, and then average out. Will ABORT!!! Once you average you can not move the overflows to the edge bins. If you really are sure you do not care about overflow values and you still want the average directly from the rebin, use option average2."
assert(False)
elif option=="average2":
value/=width
error/=width
elif option=="sum":
None
# set the value and error of our histogram
result.SetBinContent(i,value)
result.SetBinError(i,error)
# all done
getBinValues(result,significantDigits=2,doRescaleMeVtoGeV=False,doUnderflow=True,doOverflow=True,debug=debug)
return result
# done function
# test the function from above
def test_get_histo_generic_binRange(debug=True):
h=TH1F("h","h",6,0,6)
h.SetBinContent(0,2.0) # underflow
h.SetBinContent(1,3.0)
h.SetBinContent(2,4.0)
h.SetBinContent(3,2.0)
h.SetBinContent(4,1.0)
h.SetBinContent(5,5.0)
h.SetBinContent(6,8.0)
h.SetBinContent(7,10.0) # overflow
binRange="1,3,5"
plotHistogram(h,plot_option="HIST E",filePath=self.folderPlots,fileName="test",extensions="pdf")
getBinValues(h,significantDigits=2,doRescaleMeVtoGeV=False,doUnderflow=True,doOverflow=True,debug=debug)
h=get_histo_generic_binRange(h,binRange=binRange,option="sum",debug=debug)
getBinValues(h,significantDigits=2,doRescaleMeVtoGeV=False,doUnderflow=True,doOverflow=True,debug=debug)
plotHistogram(h,plot_option="HIST E",filePath=self.folderPlots,fileName="test2",extensions="pdf")
# done function
# group the bins so that they have same stats
def get_automatic_binRange(h,NrBins=20,threshold=0.02,debug=True):
# move under/overflows in edge bins
h=get_histo_underflows_in_edge_bins(h,addUnderflow=True,addOverflow=True,debug=False)
Integral=h.Integral()
IntegralPerBin=ratio(Integral,NrBins)
if debug:
print "Integral",Integral,"IntegralPerBin",IntegralPerBin
# loop over the bins, but not the underflow and overflow
# find the first non zero bin
if debug:
print "Evaluate first non zero:"
for i in xrange(1,h.GetNbinsX()+1):
if debug:
print "i",i,"low",h.GetBinLowEdge(i),"high",h.GetBinLowEdge(i)+h.GetBinWidth(i),"content",h.GetBinContent(i),"error",h.GetBinError(i)
i_firstNonZero=i
if h.GetBinContent(i)!=0:
break
# done for loop
if debug:
print "i_firstNonZero",i_firstNonZero
# find last non zero bin
if debug:
print "Evaluate the last non zero:"
for i in reversed(xrange(1,h.GetNbinsX()+1)):
if debug:
print "i",i,"low",h.GetBinLowEdge(i),"high",h.GetBinLowEdge(i)+h.GetBinWidth(i),"content",h.GetBinContent(i),"error",h.GetBinError(i)
i_lastNonZero=i
if h.GetBinContent(i)!=0:
break
# done for loop
if debug:
print "i_lastNonZero",i_lastNonZero
# loop over the bins from first to last non zero bins
temp_sumIntegral=0.0
list_binInfo=[]
list_binEdges=[]
list_binEdges.append(h.GetBinLowEdge(i_firstNonZero))
string_binEdges=str(h.GetBinLowEdge(i_firstNonZero))
binEdgeLow=h.GetBinLowEdge(i_firstNonZero)
max_density=0.0
for i in xrange(i_firstNonZero,i_lastNonZero+1):
if debug:
print "i",i,"low",h.GetBinLowEdge(i),"high",h.GetBinLowEdge(i)+h.GetBinWidth(i),"content",h.GetBinContent(i),"error",h.GetBinError(i)
temp_sumIntegral+=h.GetBinContent(i)
if temp_sumIntegral+h.GetBinContent(i+1)>IntegralPerBin:
binEdgeHigh=h.GetBinLowEdge(i)+h.GetBinWidth(i)
list_binEdges.append(binEdgeHigh)
string_binEdges+=","+str(binEdgeHigh)
if debug:
print "last bin in this grouping i",i,"binEdgeHigh",binEdgeHigh
width=binEdgeHigh-binEdgeLow
density=ratio(temp_sumIntegral,width)
list_binInfo.append([binEdgeLow,binEdgeHigh,temp_sumIntegral,width,density])
if density>max_density:
max_density=density
# reset values
temp_sumIntegral=0.0
binEdgeLow=binEdgeHigh
# done if
# done loop over bins
# add the last values we have
binEdgeHigh=h.GetBinLowEdge(i)+h.GetBinWidth(i)
list_binEdges.append(binEdgeHigh)
width=binEdgeHigh-binEdgeLow
density=ratio(temp_sumIntegral,width)
list_binInfo.append([binEdgeLow,binEdgeHigh,temp_sumIntegral,width,density])
if debug:
print "list_binEdges",list_binEdges
print "max_density",max_density
max_density_to_use=threshold*max_density
if debug:
print "max_density_to_use",max_density_to_use
if debug:
print "list_binInfo:"
for binInfo in list_binInfo:
print "binInfo",binInfo
# remove the edge bins with values very small to the other bins
list_binInfo_D=[]
if debug:
print "direct:","max_density_to_use",max_density_to_use
counter=0
for (binEdgeLow,binEdgeHigh,temp_sumIntegral,width,density) in list_binInfo:
if debug:
print "binEdgeLow",binEdgeLow,"binEdgeHigh",binEdgeHigh,"temp_sumIntegral",temp_sumIntegral,"width",width,"density",density
if density<max_density_to_use:
continue
last_good_binEdgeHigh=binEdgeHigh
counter+=1
if counter==1:
string_binEdge=str(binEdgeLow)
else:
string_binEdge+=","+str(binEdgeLow)
# done loop over loop
string_binEdge+=","+str(last_good_binEdgeHigh)
if debug:
print "string_binEdge",string_binEdge
return string_binEdge
# done function
#
def get_histo_underflows_in_edge_bins(histo,addUnderflow=True,addOverflow=True,debug=False):
h=histo.Clone()
if addUnderflow:
# add underflow in first bin and set underflow to zero
list_tuple=[]
list_tuple.append((h.GetBinContent(0),h.GetBinError(0))) # underflow
list_tuple.append((h.GetBinContent(1),h.GetBinError(1))) # first bin
tupleResult=add_in_quadrature_error_list(list_tuple,debug=False)
h.SetBinContent(0,0.0)
h.SetBinError(0,0.0)
h.SetBinContent(1,tupleResult[0])
h.SetBinError(1,tupleResult[1])
if addOverflow:
# add overflow in last bin and set overflow to zero
list_tuple=[]
list_tuple.append((h.GetBinContent(h.GetNbinsX()),h.GetBinError(h.GetNbinsX())))
list_tuple.append((h.GetBinContent(h.GetNbinsX()+1),h.GetBinError(h.GetNbinsX()+1)))
tupleResult=add_in_quadrature_error_list(list_tuple,debug=False)
h.SetBinContent(h.GetNbinsX(),tupleResult[0])
h.SetBinError(h.GetNbinsX(),tupleResult[1])
h.SetBinContent(h.GetNbinsX()+1,0.0)
h.SetBinError(h.GetNbinsX()+1,0.0)
# done if
getBinValues(h,significantDigits=2,doRescaleMeVtoGeV=False,doUnderflow=True,doOverflow=True,debug=debug)
return h
# done function
def get_histo_averaged_per_bin_width(histo,debug=False):
# only the regular bins, without the underflow and overflow
# as the width would be infinite
# we recommend first to move the underflow to the first bin
# and the overflow to the last bin
# and then average here
# and then plot (overlay) the histograms
h=histo.Clone(histo.GetName()+"_AvgBins")
for i in xrange(1,h.GetNbinsX()+1):
value=h.GetBinContent(i)
error=h.GetBinError(i)
width=h.GetBinWidth(i)
if debug:
print "Bin",i,"before value",value,"error",error,"width",width
value/=width
error/=width
if debug:
print "Bin",i,"after value",value,"error",error,"width",width
h.SetBinContent(i,value)
h.SetBinError(i,error)
# done loop over bins
getBinValues(h,significantDigits=2,doRescaleMeVtoGeV=False,doUnderflow=True,doOverflow=True,debug=debug)
return h
# done function
def get_list_of_blinded_bins_from_signal_and_background_histograms(histoS,histoB,threshold=0.05,debug=False):
result=[]
for i in xrange(0,histoS.GetNbinsX()+2):
s=histoS.GetBinContent(i)
b=histoB.GetBinContent(i)
if ratio(s,b)>threshold:
result.append(i)
if debug:
print "blinded bin i",i,"low",histoS.GetBinLowEdge(i),"high",histoS.GetBinLowEdge(i)+histoS.GetBinWidth(i)
# done for loop over bins
if debug:
print "blinded bins list",result
return result
# done function
# blind within an interval, i.e. the most common case of blinding
def get_histo_blinded_from_binRange(histo,binRange=[40,170],debug=False):
h=histo.Clone()
low_blind=binRange[0]
high_blind=binRange[1]
for i in xrange(0,h.GetNbinsX()+2):
low=h.GetBinLowEdge(i)
width=h.GetBinWidth(i)
high=low+width
epsilon=0.0001
if debug:
print "Bin",i,"before low",low,"high",high,"width",width
if low_blind<low+epsilon and high-epsilon<high_blind:
h.SetBinContent(i,0.0)
h.SetBinError(i,0.0)
# done loop over bins
getBinValues(h,significantDigits=2,doRescaleMeVtoGeV=False,doUnderflow=True,doOverflow=True,debug=debug)
return h
# done function
# blind from the list of bins, i.e. from the bins where S/B>threshold (typically 0.05)
def get_histo_blinded_from_binList(histo,binList=[4,5,6],debug=False):
h=histo.Clone()
MaxEdgePlusOne=h.GetNbinsX()+2
for i in binList:
assert(0<=i<MaxEdgePlusOne)
h.SetBinContent(i,0.0)
h.SetBinError(i,0.0)
# done for loop over bins
getBinValues(h,significantDigits=2,doRescaleMeVtoGeV=False,doUnderflow=True,doOverflow=True,debug=debug)
return h
# done function
def get_histo_smoothed(h,debug):
#for i in xrange(h.GetNbinsX()+1):
result=h.Clone()
#result.Rebin(2)
result.Reset()
for i in xrange(h.GetNbinsX()+1):
value=average(h.GetBinContent(i-1),h.GetBinContent(i),h.GetBinContent(i+1))
error=add_in_quadrature_three(h.GetBinError(i-1),h.GetBinError(i),h.GetBinContent(i+1))
result.SetBinContent(i,value)
result.SetBinError(i,error)
# done loop over bins
getBinValues(result,significantDigits=2,doRescaleMeVtoGeV=False,doUnderflow=True,doOverflow=True,debug=debug)
return result
# done
def get_histo_increased_stat_error_with_equivalent_of_systematic_error(h,extraErrorFraction=0.10,debug=False):
# adding a flat fraction of error say 10% on top of the statistical error
new_h=h.Clone(h.GetName()+"_new_error")
for i in xrange(new_h.GetNbinsX()+2):
content=new_h.GetBinContent(i)
error=new_h.GetBinError(i)
errorExtra=content*extraErrorFraction
new_error=add_in_quadrature(error,errorExtra)
#new_error=0.0
new_h.SetBinError(i,new_error)
# done loop over bins
if debug:
getBinValues(h,doRescaleMeVtoGeV=False,debug=True)
if debug:
getBinValues(new_h,doRescaleMeVtoGeV=False,debug=True)
# done
return new_h
# done function
def getHistoNonZeroRange(histo,debug=False):
if debug:
print "Getting non-zero range for histogram of name",histo.GetName(),":"
getBinValues(histo,significantDigits=2,doRescaleMeVtoGeV=False,debug=debug)
minBinLowEdge=999999999
maxHighBinEdge=-1
nrNonZeroBins=0
# loop over bins skipping underflow and overflow
for i in xrange(1,histo.GetNbinsX()+1):
if debug:
print "bin i",
binContent=histo.GetBinContent(i)
if binContent<=0.0:
continue
nrNonZeroBins+=1
binLowEdge=histo.GetBinLowEdge(i)
binWidth=histo.GetBinWidth(i)
binHighEdge=binLowEdge+binWidth
if binLowEdge<minBinLowEdge:
minBinLowEdge=binLowEdge
if binHighEdge>maxHighBinEdge:
maxHighBinEdge=binHighEdge
nonZeroRange=[minBinLowEdge,maxHighBinEdge]
if debug:
print "result non-zero bin range",nonZeroRange,"with nrNonZeroBins",nrNonZeroBins
return nonZeroRange,nrNonZeroBins
# done function
def getBinValues(histo,significantDigits=0,doRescaleMeVtoGeV=False,doUnderflow=False,doOverflow=False,debug=True):
if debug:
print "Printing bin values for histogram of name",histo.GetName(),":"
list_value=[]
list_error=[]
list_line=[]
list_binInfo=[]
# loop over each bin and for each bin write the cross section on a different line
for i in xrange(histo.GetNbinsX()+2):
if doUnderflow==False and i==0:
continue
if doOverflow==False and i==histo.GetNbinsX()+1:
continue
binContent=histo.GetBinContent(i)
binLowEdge=histo.GetBinLowEdge(i)
if doRescaleMeVtoGeV:
binLowEdge*=0.001 # MeV to GeV
binWidth=histo.GetBinWidth(i)
if doRescaleMeVtoGeV:
binWidth*=0.001 # MeV to GeV
binHighEdge=binLowEdge+binWidth
binIntegral=binContent#*binWidth
binError=histo.GetBinError(i)
if binContent<=0:
binRatio=0
else:
binRatio=ratio(binError,binContent)*100
if significantDigits==0:
line="bin %4.0f range [%6.0f,%6.0f] value %8.4f error %8.2f (%4.2f%%)" % (i,binLowEdge,binHighEdge,binContent,binError,binRatio)
elif significantDigits==1:
line="bin %4.0f range [%6.1f,%6.1f] value %8.2f error %8.2f (%4.2f%%)" % (i,binLowEdge,binHighEdge,binContent,binError,binRatio)
elif significantDigits==2:
line="bin %4.0f range [%6.2f,%6.2f] value %8.2f error %8.2f (%4.2f%%)" % (i,binLowEdge,binHighEdge,binContent,binError,binRatio)
elif significantDigits==3:
line="bin %4.0f range [%6.3f,%6.3f] value %8.3f error %8.2f (%4.2f%%)" % (i,binLowEdge,binHighEdge,binContent,binError,binRatio)
elif significantDigits==4:
line="bin %4.0f range [%6.2f,%6.2f] value %8.4f error %8.4f (%4.2f%%)" % (i,binLowEdge,binHighEdge,binContent,binError,binRatio)
elif significantDigits==5:
line="bin %4.0f range [%6.2f,%6.2f] value %10.8f error %10.8f (%4.2f%%)" % (i,binLowEdge,binHighEdge,binContent,binError,binRatio)
else:
print "number of significant digits is not known. Will ABORT!"
assert(False)
# done if
if debug:
print line
list_line.append(line)
binInfo=(binLowEdge,binHighEdge),(binContent,binError)
list_binInfo.append(binInfo)
#outputfile.write(line)
#outputfile.write("\n")
list_value.append(binIntegral)
list_error.append(binError)
# done loop over bins
nparray_value=numpy.array(list_value)
nparray_error=numpy.array(list_error)
if debug:
print "nparray_value",nparray_value
print "nparray_error",nparray_error
return (nparray_value,list_line,list_binInfo,nparray_error)
# done function
def getBinInfo(histo,doRescaleMeVtoGeV=False,debug=False):
list_bin=[]
list_content=[]
# loop over each bin and for each bin write the cross section on a different line
for i in xrange(histo.GetNbinsX()+2):
binContent=histo.GetBinContent(i)
binLowEdge=histo.GetBinLowEdge(i)
if doRescaleMeVtoGeV:
binLowEdge*=0.001 # MeV to GeV
binWidth=histo.GetBinWidth(i)
if doRescaleMeVtoGeV:
binWidth*=0.001 # MeV to GeV
binHighEdge=binLowEdge+binWidth
binIntegral=binContent#*binWidth
binError=histo.GetBinError(i)
list_bin.append((binLowEdge,binHighEdge))
list_content.append((binContent,binError))
# done loop over bins
return list_bin,list_content
# done function
def rescaleHistogramFromContentToDensity(histo,doRescaleMeVtoGeV=False,debug=False):
# loop over each bin and divide bin content and error by the width of each bin
# except underflow and overflow, for which there is an infinity to divide with
for i in xrange(1,histo.GetNbinsX()+1):
if debug:
print "bin",i
binContent=histo.GetBinContent(i)
binError=histo.GetBinError(i)
binWidth=histo.GetBinWidth(i)
if doRescaleMeVtoGeV:
binWidth*=0.001 # MeV to GeV
if debug:
print "binWidth",binWidth,"binContent",binContent,"binWidth",binWidth,"ratio(binContent,binWidth)",ratio(binContent,binWidth)
binContentNew=ratio(binContent,binWidth)
binErrorNew=ratio(binError,binWidth)
histo.SetBinContent(i,binContentNew)
histo.SetBinError(i,binErrorNew)
# done for loop
#return histo
# done function
# replace function with its value varied by the statistical variation
def get_histogram_with_its_statistical_variation(ho,factor,debug):
h=ho.Clone()
h.Reset()
# now we have a histogram with the same properties, binning especially,
# but all bin contents and errors set to zero
# loop over all the bins
# including underflow (0) and overflow (h.GetNbinsX()+1)
for i in xrange(0,h.GetNbinsX()+2):
binValue=ho.GetBinContent(i)
binError=ho.GetBinError(i)
binValueNew=binValue+factor*binError
binErrorNew=0 # would be strange error on the error variation, right?
if debug:
print "i",i,"v",binValue,"e",binError,"v new",binValueNew,"e new",binErrorNew
h.SetBinContent(i,binValueNew)
h.SetBinError(i,binErrorNew)
# done loop over all the bins
return h
# done function
def get_interpolated_graph_for_histo(h,debug):
if debug:
print "Start get_interpolated_graph_for_histo(h,debug)"
xMin=20.0
stepWidth=1.0
nrSteps=650
xList=[]
yList=[]
for i in xrange(nrSteps+1):
#print i
x=xMin+i*stepWidth
y=h.Interpolate(x)
if debug:
print i, x, y
xList.append(x)
yList.append(y)
# done loop over steps
if False:
print "xList",xList
print "yList",yList
xNumpyArray=numpy.array(xList)
yNumpyArray=numpy.array(yList)
result=TGraph(nrSteps,xNumpyArray,yNumpyArray)
result.SetLineColor(h.GetLineColor())
if debug:
print "End get_interpolated_graph_for_histo(h,debug)"
return result
# done function
# useful for cut flow comparison bin by bin
# often differences are so small, example of output below
# that only plotting the ratio with many digits shows a difference
# bin i label content 31-01 content 31-10 ratio 31-10
# bin 0 underflow 0.00 0.00 0.0000000
# bin 1 Preselection initial 3525398.00 3525398.00 1.0000000
# bin 2 Preselection GRL 3513744.00 3513744.00 1.0000000
# bin 3 Preselection hasPV 3513744.00 3513744.00 1.0000000
# bin 4 Preselection isCleanEvent 3503329.00 3503329.00 1.0000000
# bin 5 Preselection jet cleaning 3445409.00 3445409.00 1.0000000
# bin 6 Preselection lepton 3324129.00 3324130.00 1.0000003
# bin 7 Preselection jet 2269819.00 2269839.00 1.0000088
# bin 8 Preselection fatjet 887356.00 887357.00 1.0000011
# bin 9 Preselection jet OR fat-jet 2287089.00 2287108.00 1.0000083
# bin 10 MET > 100 GeV 83053.00 82561.00 0.9940761
# bin 11 120GeV < MET < 160GeV 36198.00 35971.00 0.9937289
# bin 12 160GeV < MET < 200GeV 28031.00 27860.00 0.9938996
# bin 13 MET > 200GeV 18824.00 18730.00 0.9950064
# bin 14 overflow 0.00 0.00 0.0000000
#
def compareHistogramsWithLabelsBinByBin(list_tuple_h1D,fileName="file.txt",debug=True):
f=open(fileName,"w")
histoRef=list_tuple_h1D[0][0]
NBins=histoRef.GetNbinsX()
text="bin %4s %30s" % ("i", "label")
for i,(histo,vtag) in enumerate(list_tuple_h1D):
text+="%15s" % ("content "+vtag)
if i>0:
text+="%15s" % ("ratio "+vtag)
f.write(text+"\n")
for j in xrange(0,NBins+2):
# including under/over-flow bins
if j==0:
label="underflow"
elif j==NBins+1:
label="overflow"
else:
label=histo.GetXaxis().GetBinLabel(j)
text="bin %4.0f %30s" % (j, label)
# loop over the histograms to compare
list_content=[]
for i,(histo,vtag) in enumerate(list_tuple_h1D):
if debug:
print i,"vtag",vtag,"histo",histo
content=histo.GetBinContent(j)
error=histo.GetBinError(j)
list_content.append(content)
text+="%15.2f" % (content)
if i>0:
text+="%15.7f" % (ratio(content,list_content[0]))
# done loop over histograms
f.write(text+"\n")
# done loop over bins
f.close()
# done function
# for statistical error band
# code example: https://www.desy.de/~stanescu/my-tmp/plotUpDownSys.C
# its plot:https://www.desy.de/~stanescu/my-tmp/AFII/Nom-Up-Down-A500-tb050/jes1_h_ttbar_chi2_m_inc_res_mu.png
def overlayHistograms(list_tuple_h1D,fileName="overlay",extensions="pdf",option="histo",doValidationPlot=False,canvasname="canvasname",addHistogramInterpolate=False,addfitinfo=False,addMedianInFitInfo=False,isHistoAveragedPerBinWidth=True,addintegralinfo=False,significantDigits=("3","3","3","3"),min_value=-1,max_value=-1,min_multiply=0.9,max_multiply=1.4,YTitleOffset=0.45,doRatioPad=True,min_value_ratio=0,max_value_ratio=3,statTitle="MC. stat uncertainty",statColor=6,ratioTitle="Ratio to first",plot_option="HIST E",plot_option_ratio="E",text_option=("#bf{#it{#bf{ATLAS} Simulation Internal}}?#bf{#sqrt{s}=13 TeV; Hinv analysis}?#bf{"+"category"+"}?#bf{"+"systematicStem"+"}",0.04,13,0.15,0.88,0.05),legend_info=[0.70,0.70,0.88,0.88,72,0.037,0],line_option=([0,0.5,0,0.5],2),debug=False):
if debug:
print "Start overlayHistograms(...)"
print "option",option
print "plot_option",plot_option
# number of histograms we are overlaying
num=len(list_tuple_h1D)
ignorezero=False
if debug:
print "Start set_min_max_title_list_tuple_h1D()"
for tuple_h1D in list_tuple_h1D:
print "legend",tuple_h1D[1],"min",tuple_h1D[0].GetMinimum(),"max",tuple_h1D[0].GetMaximum()
set_min_max_title_list_tuple_h1D(list_tuple_h1D,max_value,min_value,ignorezero,max_multiply,min_multiply,debug)
if debug:
print "End set_min_max_title_list_tuple_h1D()"
for tuple_h1D in list_tuple_h1D:
print "legend",tuple_h1D[1],"min",tuple_h1D[0].GetMinimum(),"max",tuple_h1D[0].GetMaximum()
#
gStyle.SetOptStat(0)
c_overlay=TCanvas("c","c",600,600)
if doRatioPad:
c_overlay=TCanvas("c","c",600,600)
p_main=TPad("p_main","p_main",0,0.33,1,1)
p_ratio=TPad("p_ratio","p_ratio",0,0,1,0.33)
else:
c_overlay=TCanvas("c","c",600,400)
p_main=TPad("p_main","p_main",0,0.0,1,1)
p_ratio=TPad("p_ratio","p_ratio",0,0,0,0.0)
# done if
p_main.Draw()
p_ratio.Draw()
p_main.cd()
#
if debug:
print "Start Draw legend"
# Draw the legend
legend=get_legend(legend_info,debug)
list_tuple_h1D[0][0].GetYaxis().SetTitleSize(0.05)
list_tuple_h1D[0][0].GetYaxis().SetTitleOffset(1.01)
h_canvas=list_tuple_h1D[0][0].Clone()
if debug:
print "after h_canvas"
h_canvas.Reset()
if debug:
print "after reset"
h_canvas.Draw(plot_option)
if debug:
print "after draw canvas"
if addfitinfo:
if option=="histo":
if addMedianInFitInfo==True:
titleLegend="histo: median/mean/RMS/ratio"
else:
titleLegend="histo: mean/RMS/ratio"
elif "Gauss" in option:
if addMedianInFitInfo==True:
titleLegend="Gauss: median/mean/sigma/ratio"
else:
titleLegend="Gauss: mean/sigma/ratio"
elif "Bukin" in option:
if addMedianInFitInfo==True:
titleLegend="Bukin: median/peak/width/ratio"
else:
titleLegend="Bukin: peak/width/ratio"
elif "Linear" in option:
if addMedianInFitInfo==True:
print "For Linear fit, you should not ask for Median?! Will ABORT!!!"
assert(False)
else:
titleLegend="Linear fit (a0+a1*x):"
elif "Parabolic" in option:
if addMedianInFitInfo==True:
print "For Linear fit, you should not ask for Median?! Will ABORT!!!"
assert(False)
else:
titleLegend="Parabolic fit (a0+a1*x+a2*x*x): a0/a1/a2"
else:
print "option",option,"not known in setting LegendTitle of addfitinfo is True. Will ABORT!!"
assert(False)
# done if option
#legend.AddEntry(None,"#bf{"+titleLegend+"}","")
legend.SetHeader("#bf{"+titleLegend+"}")
# done if addfitinfo
if addintegralinfo:
titleLegend2="histo: integral"
legend.SetHeader("#bf{"+titleLegend2+"}")
if debug:
print "Done legend title, starting loop over list_tuple_h1D"
if debug:
print "A type(p_main)",type(p_main)
list_g=[]
if debug:
print "B type(p_main)",type(p_main)
# loop over list_tuple_h1D
for i in range(num):
if debug:
print "i",i,list_tuple_h1D[i][0].GetName(),list_tuple_h1D[i][1]
if debug:
print "C","i",i,"type(p_main)",type(p_main)
tuple_h1D=list_tuple_h1D[i]
h1D=tuple_h1D[0]
shortname=tuple_h1D[1]
# set Y axis title offset
#h1D.GetYaxis().SetTitleOffset(YTitleOffset)
#h1D.SetTitleOffset(YTitleOffset,"Y");
#h1D.SetTitleOffset(10.0,"Y");
##h1D.GetYaxis().SetLabelSize(0.001)
#h1D.GetYaxis().SetTitleSize(0.80)
#h1D.GetYaxis().SetTitleOffset(1.20)
#h1D.GetYaxis().SetLabelOffset(1000)
#h1D.GetXaxis().SetLabelSize(0.00)
#h1D.GetYaxis().SetLabelSize(0.00)
if debug:
print "D","i",i,"type(p_main)",type(p_main)
if option.find("histo")!=-1:
if debug:
print "B1 we want at the least the histo and maybe a fit too"
if option=="histo":
if debug:
print "B2 we want only the histo"
h1D.Draw(plot_option+"SAME")
result_fit=((h1D.GetMean(),0.0),(h1D.GetMaximum(),0.0),(h1D.GetMean(),0.0),(h1D.GetRMS(),0.0),(0.0,0.0),(0.0,0.0),(0.0,0.0))
else:
if debug:
print "B3 we want both the histogram and the fit"
temp=option.split("+")
if debug:
print "temp",temp
if len(temp)!=2:
print "ERROR, option",option,"should be histo+fit. As a side note, fit is known so far only for Gauss and Bukin. Will ABORT!"
assert(False)
else:
# it means
if debug:
print "B4 we want both the histogram"
print "plot_option",plot_option
h1D.Draw(plot_option+"SAME")
fit=temp[-1]
if debug:
print "fit",fit
#f,result_fit=fit_hist(h1D,fit,plot_option+"O",debug)
f,result_fit=fit_hist(h=h1D,fitRange=[-1,-1],fit=fit,addMedianInFitInfo=addMedianInFitInfo,plot_option=plot_option+"O",doValidationPlot=doValidationPlot,canvasname=canvasname+"_"+h1D.GetName(),debug=debug)
f.SetLineWidth(h1D.GetLineWidth())
f.Draw("SAME")
else:
if debug:
print "B5 we want the fit without the histo"
if debug:
print "B5 start","i",i,"type(p_main)",type(p_main)
# we have just a fit alone
fit=option
if debug:
print "fit",fit
#f,result_fit=fit_hist(h1D,fit,"",debug)
plot_option="R"
#f,result_fit=fit_hist(h1D,fit,plot_option+"O",debug)
f,result_fit=fit_hist(h=h1D,fitRange=[-1,-1],fit=fit,addMedianInFitInfo=addMedianInFitInfo,plot_option=plot_option+"O",doValidationPlot=doValidationPlot,canvasname=canvasname+"_"+h1D.GetName(),debug=debug)
if debug:
print "B5 start","i",i,"type(p_main)",type(p_main)
#f.Draw("SAME")
#h1D.Draw(plot_option+"SAME")
#result_fit=(0.0,0.0,0.0,0.0,0.0,0.0)
#
if debug:
print "E","i",i,"type(p_main)",type(p_main)
# add the histogram interpolate if asked for
if addHistogramInterpolate:
print "i",i,"at add the histogram interpolate if asked for"
list_g.append(get_interpolated_graph_for_histo(h1D,debug).Clone())
list_g[i].Draw("same")
if debug:
print "F","i",i,"type(p_main)",type(p_main)
#
legend_name="#bf{"+shortname+"}"
if option!="histo" and fit=="Linear":
tempString="#bf{a1=%."+significantDigits[2]+"f +/- %."+significantDigits[2]+"f; a0=%."+significantDigits[1]+"f +/- %."+significantDigits[1]+"f}"
if debug:
print "tempString",tempString
legend_text=tempString % (result_fit[2][0],result_fit[2][1],result_fit[1][0],result_fit[1][1])
else:
# legend text median, peak, width, width/peak
if addMedianInFitInfo==True:
# legend_text="#bf{%-.1f/%-.1f/%-.1f/%-.3f}" % (result_fit[0][0],result_fit[2][0],result_fit[3][0],ratio(result_fit[3][0],result_fit[2][0]))
# significantDigits=("3","3","3","3")
tempString="#bf{%-."+significantDigits[0]+"f/%-."+significantDigits[1]+"f/%-."+significantDigits[2]+"f/%-."+significantDigits[3]+"f}"
if debug:
print "tempString",tempString
legend_text= tempString % (result_fit[0][0],result_fit[2][0],result_fit[3][0],ratio(result_fit[3][0],result_fit[2][0]))
else:
tempString="#bf{%-."+significantDigits[1]+"f/%-."+significantDigits[2]+"f/%-."+significantDigits[3]+"f}"
if debug:
print "tempString",tempString
legend_text=tempString % (result_fit[2][0],result_fit[3][0],ratio(result_fit[3][0],result_fit[2][0]))
# done if addMedianInFitInfo
# done if fit is Linear or not
# legend text is done, now plot it
legend.AddEntry(h1D,legend_name,"f")
if addfitinfo:
legend.AddEntry(None,legend_text,"")
# done if
if addintegralinfo:
if debug:
print "just integral",h1D.Integral()
if isHistoAveragedPerBinWidth==True:
integraloption="width"
else:
integraloption=""
(integral,error)=get_histo_integral_error(h1D,myRange=0,option=integraloption,debug=debug)
tempString="#bf{%."+significantDigits[1]+"f +/- %."+significantDigits[1]+"f}"
if debug:
print "tempString",tempString
legend_text2=tempString % (integral,error)
if debug:
print "integral,error",(integral,error)
legend.AddEntry(None,legend_text2,"")
# done if
legend.SetBorderSize(0)
# add ATLAS
# ex: setupTextOnPlot("#bf{#it{#bf{ATLAS } Simulation Internal}}",0.05,13,0.17,0.85,0.09)
setupTextOnPlot(*text_option)
# done loop over list_tuple_h1D
if debug:
print "type(p_main)",type(p_main)
# add to the legend the statistical error on the first histogram
# used as reference in the ratio
# we will plot that only in the ratio plot
hStat=list_tuple_h1D[0][0].Clone("hStat")
hStat.SetFillColor(statColor)
hStat.SetLineColor(statColor)
hStat.SetFillStyle(1001)
hStat.SetLineWidth(0)
#legend.AddEntry(hStat,statTitle,"F")
# legend is ready, we can draw it
legend.Draw("SAME")
if debug:
print "type(p_main)",type(p_main)
p_main.Update()
# line
line_position=line_option[0]
if debug:
print "line_position",line_position
line_color=line_option[1]
if debug:
print "line_color",line_color
line=TLine(*line_position)
line.SetLineColor(line_color)
line.Draw("SAME")
if debug:
print "Ended plotting the upper pad with the main overlay"
print "Start plotting the down pad with the ratio overlay"
#c.Update()
# going to the bottom pad with the ratio
p_ratio.cd()
#legend.Draw("SAME")
#h_canvas=list_tuple_h1D[0][0].Clone()
#h_canvas.Reset()
#h_canvas.Draw(plot_option)
list_tuple_ratio_h1D=[]
reference_h1D=list_tuple_h1D[0][0].Clone()
if debug:
print "num",num
# loop over list_tuple_h1D
for i in range(num):
if debug:
print "i",i,list_tuple_h1D[i][0].GetName(),list_tuple_h1D[i][1]
#two lines below are standard ROOT, but statistical error is counted twice
ratio_h1D=list_tuple_h1D[i][0].Clone()
ratio_h1D.Divide(reference_h1D)
getBinValues(ratio_h1D,debug=debug)
# add ratio_h1D to list of histograms to overlay
list_tuple_ratio_h1D.append([ratio_h1D,list_tuple_h1D[i][1]])
# done loop over histograms
#min_value_ratio=0.9
#max_value_ratio=4.0
ignorezero=True
set_min_max_title_list_tuple_h1D(list_tuple_ratio_h1D,max_value_ratio,min_value_ratio,ignorezero,1.01,0.9,debug)
if debug:
print "min_value_ratio",min_value_ratio
print "max_value_ratio",max_value_ratio
# loop over the ratio histograms
for i in range(num):
ratio_h1D=list_tuple_ratio_h1D[i][0]
if debug:
print "i",i,"type(ratio_h1D)",type(ratio_h1D)
#(my_nparray_value,my_list_line)=getBinValues(ratio_h1D,debug)
if debug:
print "plot_option",plot_option
if i==0:
#ratio_h1D.SetMinimum(0.95)
#ratio_h1D.SetMaximum(1.05)
ratio_h1D.GetYaxis().SetTitle(ratioTitle)
ratio_h1D.GetYaxis().SetLabelSize(0.08)
ratio_h1D.GetYaxis().SetTitleSize(0.08)
ratio_h1D.GetYaxis().SetTitleOffset(0.55)
# no need of an x axis label, as the same as from the pad above
ratio_h1D.GetXaxis().SetTitle("")
ratio_h1D.GetXaxis().SetLabelSize(0.08)
# give the same color, style, etc as what we put in the legend
#ratio_h1D.SetFillColor(statColor)
#ratio_h1D.SetFillStyle(1001)
ratio_h1D.SetLineWidth(2)
ratio_h1D.SetMarkerStyle(0)
#ratio_h1D.Draw(plot_option_ratio+" E4")
#ratio_h1D.Draw(plot_option_ratio+" HIST")
#ratio_h1D.Draw(plot_option_ratio)
ratio_h1D.Draw("HIST")
else:
#if i==1:
# ratio_h1D.SetFillColor(statColor)
#elif i==2:
# ratio_h1D.SetFillColor(0)
#ratio_h1D.SetFillStyle(1001)
ratio_h1D.SetLineWidth(2)
#ratio_h1D.SetFillColor(ratio_h1D.GetLineColor())
#ratio_h1D.SetLineColor(0)
ratio_h1D.SetMarkerStyle(8)
ratio_h1D.SetMarkerSize(0.7)
ratio_h1D.SetMarkerColor(ratio_h1D.GetLineColor())
#ratio_h1D.Draw("E6 SAME") # stat errors on the ratios of systematics as curved shape
#ratio_h1D.Draw("E1 SAME") # stat errors on the ratios of systematics as crosses
ratio_h1D.Draw("HIST SAME") # no errors but it draws the line also horizontally when the bins have zero value at start and vertically for the first non zero bin
ratio_h1D.Draw(plot_option_ratio+" SAME")
#ratio_h1D.Draw("E1 SAME")
None
# done loop over ratio histogram
c_overlay.Update()
# now ready to save the canvas
# if path does not have / as the last character, add one
for extension in extensions.split(","):
c_overlay.Print(fileName+"_"+option+"."+extension)
if debug:
print "End overlayHistograms(...)"
# done function
# plot just one histogram
def plotGraph(g,plot_option,filePath,fileName,extensions):
# plot one graph, y function of x for N entries
c=TCanvas("canvas","canvas",400,300)
g.Draw(plot_option) # AP
# if path does not have / as the last character, add one
if filePath[len(filePath):]!="/":
filePath+="/"
# compute the name
if fileName=="":
fileName=filePath+h.GetName()
else:
fileName=filePath+fileName
# save the canvas in files with what extensions we want
for extension in extensions.split(","):
c.Print(fileName+"."+extension)
# ended for over extensions
return None
# ended function
# plot just one histogram
def plotMultiGraph(list_graphs,canvas_size,legend_position,factor_maximum,plot_option,
xaxis,
filePath,fileName,extensions):
# plot one graph, y function of x for N entries
# ROOT
gStyle.SetTitle("")
# canvas
c=TCanvas("canvas","canvas",canvas_size[0],canvas_size[1])
c.SetFillColor(0)
c.SetBorderMode(0)
c.SetBorderSize(1)
c.SetFrameBorderMode(0)
c.SetFrameBorderMode(0)
c.SetTitle("")
c.SetGrid()
#
multigraph=TMultiGraph()
# compute minimum and maximum values
min=+999999.0
max=-999999.0
# loop over the lists of graphs
# the first element of the list is the graph
# the second element of the list is its legend name
for graph in list_graphs:
multigraph.Add(graph[0])
if graph[0].GetMaximum()>max:
max=graph[0].GetMaximum()
if graph[0].GetMinimum()<min:
min=graph[0].GetMinimum()
# set these values to the multigraph
# print "min=",min,"max=",max
# set it to zero for now, can se to min in the future
multigraph.SetMinimum(0)
# multiply with something to leave space for legend
multigraph.SetMaximum(max*factor_maximum)
# options to draw the multigraph
# A - axis
# P - use current marker
# * - use * as marker
# L - draws a line between points
# C - draws a smooth line (curve) between points
# B - draws a bar chart
# X+ - draws the x axis on the top (instead of down)
# Y+ - draws the y axis on the right (instead of left)
# 1 - starts from the correct value (instead of from zero) for bar chart
#
# plot the graph
multigraph.Draw(plot_option) # APC
# set the title of x axis
multigraph.GetXaxis().SetTitle(xaxis[0])
# remove the numbers for the days from the x axis
multigraph.GetXaxis().SetLabelSize(xaxis[1])
multigraph.GetXaxis().SetTimeDisplay(xaxis[2])
multigraph.GetXaxis().SetNdivisions(xaxis[3])
multigraph.GetXaxis().SetTimeFormat(xaxis[4]) # ("%Y-%m-%d %H:%M")
multigraph.GetXaxis().SetTimeOffset(0,"gmt")
multigraph.GetXaxis().LabelsOption(">")
c.Update()
# create the legend
legend=TLegend(*legend_position)
# add the text for each graph
for graph in list_graphs:
legend.AddEntry(graph[0],graph[1])
# set the color of the legend
legend.SetFillColor(TColor.kWhite)
# draw the legend
legend.Draw()
# try to draw a vertical line for each month since the reference date
lines=[]
for i in xrange(13):
lines.append(TLine(0*i,0,0*i,max))
for line in lines:
line.Draw()
# if path does not have / as the last character, add one
if filePath[len(filePath):]!="/":
filePath+="/"
# compute the name
if fileName=="":
fileName=filePath+h.GetName()
else:
fileName=filePath+fileName
# save the canvas in files with what extensions we want
for extension in extensions.split(","):
c.Print(fileName+"."+extension)
# ended for over extensions
return None
# done function
# Kolmogorov-Smirnov test of two histograms
def get_KS_of_two_histograms(h1,h2,debug=False):
KS=h1.KolmogorovTest(h2)
if debug:
print "h1",h1.GetName(),"h2",h2.GetName(),"KS",KS
return KS
# done function
def get_Chi2_of_two_histograms(h1,h2,debug=False):
chi2=0.0
ndf=0.0
for i in xrange(0,h1.GetNbinsX()+2):
content1=h1.GetBinContent(i)
error1 =h1.GetBinError(i)
content2=h2.GetBinContent(i)
error2 =h2.GetBinError(i)
diff_square=(content1-content2)*(content1-content2)
error_square=error1*error1+error2*error2
if content1>0 and error1>0 and content2>0 and error2>0:
chi2+=ratio(diff_square,error_square)
ndf+=1
# done loop over bins
chi2_over_ndf=ratio(chi2,ndf-1)
if debug:
print "h1",h1.GetName(),"h2",h2.GetName(),"chi2",chi2,"ndf",ndf,"chi2/(ndf-1)",chi2_over_ndf
return chi2,ndf,chi2_over_ndf
# done function
def get_Chi2_from_ROOT_of_two_histograms(h1,h2,debug=False):
chi2=array('d', [0])
ndf=array('i', [0])
igood=array('i', [0])
res=array('d', [0])
pvalue=h1.Chi2TestX(h2,chi2,ndf,igood,"WW",res)
if debug:
print "pvalue",pvalue,"chi2",chi2,"ndf",ndf,"igood",igood,"res",res
return pvalue,chi2,ndf
# done function
# make stacked plots
# give list of tuple of histograms
# besides info needed for overlayHistograms (histogram and legend) we need more info
# if it is S, B or D, and if we want to scale it by some number (default 1)
# then we hard code the way we want this plot to look like
def stackHistograms(list_tuple_h1D,stackName="stackName",outputFileName="stack",extensions="pdf",blinding=["threshold",0.05],doAutomaticBinning=False,doAveragePerBinWidth=True,text_option=("#bf{#it{#bf{ATLAS} Simulation Internal}}?#bf{#sqrt{s}=13 TeV}",0.04,13,0.15,0.88,0.05),xAxisTitle="MET [GeV]",debug=False):
if debug:
print "Start stackHistograms"
assert(blinding[0]=="range" or blinding[0]=="threshold")
print list_tuple_h1D[0][0].GetName()
# create canvas
c=TCanvas("c","c",950,700)
p1=TPad("p2","p2",0.00,0.30,0.75,1.00) # top left (stacked plots)
p2=TPad("p1","p1",0.00,0.00,0.75,0.30) # bottom left (ratio pad)
p3=TPad("p3","p3",0.75,0.00,1.00,1.00) # right (legends) p3
p1.Draw()
p2.Draw()
p3.Draw()
p1.SetTopMargin(0.05)
p1.SetBottomMargin(0.02)
p1.SetRightMargin(0.08)
p2.SetBottomMargin(0.3)
p2.SetTopMargin(0.05)
p2.SetRightMargin(0.08)
p3.SetTopMargin(0)
p3.SetLeftMargin(0)
p3.SetBottomMargin(0)
p3.SetRightMargin(0)
# p1 - top left (stacked plots)
p1.cd()
if doAutomaticBinning:
# first sum all of S, B, D
dict_processType_histoSum={}
for (histo,process,(processType,color,SF,scale)) in list_tuple_h1D:
if debug:
print "histo",histo,"process",process,"processType",processType,"color",color,"SF",SF,"scale",scale
histoSF=histo.Clone(histo.GetName()+"_SF")
histoSF.Scale(SF)
if debug:
print "process",process,"integral",histo.Integral(),"SF",SF,"integral SF",histoSF.Integral()
# add to sum
if processType in dict_processType_histoSum.keys():
dict_processType_histoSum[processType].Add(histoSF)
else:
dict_processType_histoSum[processType]=histoSF
# done if
# done for loop over histograms
if debug:
for processType in dict_processType_histoSum.keys():
print "processType",processType,"integral",dict_processType_histoSum[processType].Integral()
# get the bin range from the background distribution
binRange=get_automatic_binRange(dict_processType_histoSum["B"],NrBins=16,threshold=0.02,debug=debug)
if debug:
print "binRange",binRange
# rebin all the histograms with this new binning
list_tuple_h1D_rebinned=[]
for (histo,process,(processType,color,SF,scale)) in list_tuple_h1D:
if debug:
print "histo",histo,"process",process,"processType",processType,"color",color,"SF",SF,"scale",scale
# rebin
histo=get_histo_generic_binRange(histo,binRange=binRange,option="sum",debug=debug)
histo=get_histo_underflows_in_edge_bins(histo,addUnderflow=True, addOverflow=True,debug=False)
list_tuple_h1D_rebinned.append((histo,process,(processType,color,SF,scale)))
# done for loop over histograms
# rewrite the inital list of tuple with the new one
list_tuple_h1D=list_tuple_h1D_rebinned
# done if doAutomaticBinning
# recompute the sum of S, B, D
dict_processType_histoSum={}
for (histo,process,(processType,color,SF,scale)) in list_tuple_h1D:
if debug:
print "histo",histo,"process",process,"processType",processType,"color",color,"SF",SF,"scale",scale
histoSF=histo.Clone(histo.GetName()+"_SF")
histoSF.Scale(SF)
if debug:
print "process",process,"integral",histo.Integral(),"SF",SF,"integral SF",histoSF.Integral()
# add to sum
if processType in dict_processType_histoSum.keys():
dict_processType_histoSum[processType].Add(histoSF)
else:
dict_processType_histoSum[processType]=histoSF
# done if
# done for loop over histograms
if debug:
for processType in dict_processType_histoSum.keys():
print "processType",processType,"integral",dict_processType_histoSum[processType].Integral()
# evaluate the list of bins that need to be blinded for data
# from S and B histograms find the bins that are to be blinded
if blinding[0]=="threshold":
list_binsBlinded=get_list_of_blinded_bins_from_signal_and_background_histograms(dict_processType_histoSum["S"],
dict_processType_histoSum["B"],
threshold=blinding[1],debug=debug)
# done if blinding is of type threshold
# use this list to blind not only the data, but also the S and B
# when we evaluate the chi2 between B and D, we should use the same bin range
dict_processType_histoSumBlinded={}
for processType in dict_processType_histoSum.keys():
if blinding[0]=="threshold":
dict_processType_histoSumBlinded[processType]=get_histo_blinded_from_binList(dict_processType_histoSum[processType],
binList=list_binsBlinded,
debug=debug)
elif blinding[0]=="range":
dict_processType_histoSumBlinded[processType]=get_histo_blinded_from_binRange(dict_processType_histoSum[processType],
binRange=blinding[1],
debug=debug)
else:
print "blinding[0]",blinding[0],"should be either threshold or range. Will ABORT!!!"
assert(False)
# done if
# done for loop over processType
maximum=0.0
# first create and plot the stack (background and signal)
stack=THStack(stackName,"")
dict_process_histoStack={}
list_process_histoStack=[]
for (histo,process,(processType,color,SF,scale)) in list_tuple_h1D:
if debug:
print "histo",histo,"process",process,"processType",processType,"color",color,"SF",SF,"scale",scale
if processType=="B" or processType=="S":
list_process_histoStack.append(process)
dict_process_histoStack[process]=histo.Clone(histo.GetName()+"_stack")
dict_process_histoStack[process].Scale(SF)
dict_process_histoStack[process].SetLineWidth(2)
dict_process_histoStack[process].SetLineColor(color)
dict_process_histoStack[process].SetFillColor(color)
if doAveragePerBinWidth:
dict_process_histoStack[process]=get_histo_averaged_per_bin_width(dict_process_histoStack[process],debug=debug)
if dict_process_histoStack[process].GetMaximum()>maximum:
maximum=dict_process_histoStack[process].GetMaximum()
stack.Add(dict_process_histoStack[process])
# done if
# done for loop over histograms
# draw stack
stack.Draw("hist")
maximum=stack.GetMaximum()
if doAveragePerBinWidth:
titleY="Event yield density per bin width"
else:
titleY="Event yield"
# done if
stack.GetYaxis().SetTitle(titleY)
stack.GetYaxis().SetTitleSize(0.05)
stack.GetYaxis().SetTitleOffset(1.00)
stack.GetYaxis().SetLabelSize(0.04)
stack.GetXaxis().SetLabelSize(0.00)
# then draw overlaid all the MC processes we want (either signal or MC), and with their chosen scale
# if scale==0, it means we do not want them overlaid
dict_process_histoOverlayMC={}
dict_process_scaleOverlayMC={}
list_process_histoOverlayMC=[]
for (histo,process,(processType,color,SF,scale)) in list_tuple_h1D:
if debug:
print "histo",histo,"process",process,"processType",processType,"color",color,"SF",SF,"scale",scale
if (processType=="B" or processType=="S") and (scale>0):
dict_process_scaleOverlayMC[process]=scale
list_process_histoOverlayMC.append(process)
dict_process_histoOverlayMC[process]=histo.Clone(histo.GetName()+"_overlay")
dict_process_histoOverlayMC[process].Scale(SF)
dict_process_histoOverlayMC[process].Scale(scale)
dict_process_histoOverlayMC[process].SetLineWidth(2)
# dict_process_histoOverlayMC[process].SetLineStyle(2) # to make the line dotted
dict_process_histoOverlayMC[process].SetFillStyle(0)
dict_process_histoOverlayMC[process].SetLineColor(color)
if doAveragePerBinWidth:
dict_process_histoOverlayMC[process]=get_histo_averaged_per_bin_width(dict_process_histoOverlayMC[process],debug=debug)
if dict_process_histoOverlayMC[process].GetMaximum()>maximum:
maximum=dict_process_histoOverlayMC[process].GetMaximum()
dict_process_histoOverlayMC[process].Draw("hist same")
# done if
# done for loop over histograms
# if scale==0, it means we do not want them overlaid
dict_process_histoOverlayData={}
list_process_histoOverlayData=[]
for (histo,process,(processType,color,SF,scale)) in list_tuple_h1D:
if debug:
print "histo",histo,"process",process,"processType",processType,"color",color,"SF",SF,"scale",scale
if processType=="D":
list_process_histoOverlayData.append(process)
dict_process_histoOverlayData[process]=histo.Clone(histo.GetName()+"_overlay")
dict_process_histoOverlayData[process].Scale(SF)
if blinding[0]=="threshold":
dict_process_histoOverlayData[process]=get_histo_blinded_from_binList(dict_process_histoOverlayData[process],
binList=list_binsBlinded,
debug=debug)
elif blinding[0]=="range":
dict_process_histoOverlayData[process]=get_histo_blinded_from_binRange( dict_process_histoOverlayData[process],
binRange=blinding[1],
debug=debug)
else:
print "blinding[0]",blinding[0],"should be either threshold or range. Will ABORT!!!"
assert(False)
# done if
dict_process_histoOverlayData[process].SetMarkerStyle(20)
dict_process_histoOverlayData[process].SetLineWidth(2)
dict_process_histoOverlayData[process].SetLineColor(color)
if doAveragePerBinWidth:
dict_process_histoOverlayData[process]=get_histo_averaged_per_bin_width(dict_process_histoOverlayData[process],debug=debug)
if dict_process_histoOverlayData[process].GetMaximum()>maximum:
maximum=dict_process_histoOverlayData[process].GetMaximum()
dict_process_histoOverlayData[process].Draw("ep same")
# done if
# done for loop over histograms
# create space at the top for text
maximumUse = maximum*1.45
minimumUse = 0.00001
stack.SetMaximum(maximumUse)
stack.SetMinimum(minimumUse)
# add text at the top
setupTextOnPlot(*text_option)
# compute chi2 and KS using blinded histograms in both background and data; when we do not want blinding these histograms are not blinded in fact
chi2,ndf,chi2_over_ndf=get_Chi2_of_two_histograms(dict_processType_histoSumBlinded["D"],dict_processType_histoSumBlinded["B"],debug=debug)
KS=get_KS_of_two_histograms(dict_processType_histoSumBlinded["D"],dict_processType_histoSumBlinded["B"],debug=debug)
# compute significance from S and B using unblinded histograms, to add to the legend
sig_h=dict_processType_histoSum["S"].Clone()
bkg_h=dict_processType_histoSum["B"].Clone()
if debug:
getBinValues(sig_h)
getBinValues(bkg_h)
figureOfMerit="SignificanceSigmaB"
a=get_dict_figureOfMerit_histo(sig_h,bkg_h,list_figureOfMerit=[figureOfMerit],debug=debug)
h=a[figureOfMerit]
tupleResult=add_in_quadrature_bins_of_one_histo(h,IncludeUnderflowOverflowBins=False,debug=False)
# create and draw the legend with the info
legendChi2=TLegend(0.51,0.65,0.88,0.94)
legendChi2.SetBorderSize(0)
legendChi2.SetFillStyle(0)
legendChi2.SetTextSize(0.05)
legendChi2.SetNColumns(3)
legendChi2.AddEntry("","#chi^{2}","")
legendChi2.AddEntry("","ndf","")
legendChi2.AddEntry("","#chi^{2}/(ndf-1)","")
legendChi2.AddEntry("","%.1f" % chi2,"")
legendChi2.AddEntry("","%.0f" % ndf,"")
legendChi2.AddEntry("","%.2f" % chi2_over_ndf,"")
legendChi2.AddEntry("","KS Test: ","")
legendChi2.AddEntry("","%.4f" % KS,"")
legendChi2.AddEntry(""," ","")
legendChi2.AddEntry("","Sig:","")
legendChi2.AddEntry("","%.3f" % tupleResult[0],"")
legendChi2.AddEntry("","+/- %.3f" % tupleResult[1],"")
legendChi2.Draw("same")
# p2 - ratio
p2.cd()
dat=dict_processType_histoSumBlinded["D"].Clone()
bkg=dict_processType_histoSumBlinded["B"].Clone()
num=dat-bkg
den=bkg
num.Divide(den)
num.SetTitle("")
num.SetMinimum(-0.5)
num.SetMaximum(+0.5)
num.SetStats(False)
num.SetMarkerStyle(20)
num.SetLineWidth(2)
num.SetLineColor(1)
num.SetYTitle("(Data-Bkg)/Bkg")
num.SetXTitle(xAxisTitle)
num.GetXaxis().SetTitleSize(0.13)
num.GetYaxis().SetTitleSize(0.10)
num.GetYaxis().SetTitleOffset(0.4)
num.GetXaxis().SetLabelSize(0.09)
num.GetYaxis().SetLabelSize(0.09)
num.Draw("ep same")
nrBins=num.GetNbinsX()
xmin=num.GetBinLowEdge(1)
xmax=num.GetBinLowEdge(nrBins)+num.GetBinWidth(nrBins)
line=TLine(xmin,0,xmax,0)
line.SetLineColor(ROOT.kPink)
line.Draw("SAME")
# p3 - legends
p3.cd()
legendTop=TLegend(0.01,0.317,0.965,0.965);
legendTop.SetFillColor(0)
legendTop.SetBorderSize(1)
legendTop.SetTextSize(0.08)
for process in list_process_histoOverlayData:
legendTop.AddEntry(dict_process_histoOverlayData[process],process,"lp")
for process in reversed(list_process_histoStack):
legendTop.AddEntry(dict_process_histoStack[process],process,"f")
for process in list_process_histoOverlayMC:
legendTop.AddEntry(dict_process_histoOverlayMC[process],process+" x %.0f" % (dict_process_scaleOverlayMC[process]),"l")
legendTop.Draw("same")
# save the canvas in files with what extensions we want
for extension in extensions.split(","):
c.Print(outputFileName+"."+extension)
# ended for over extensions
p1.Close()
p2.Close()
p3.Close()
return None
# done function
# make stacked plots
# give list of tuple of histograms
# besides info needed for overlayHistograms (histogram and legend) we need more info
# if it is S, B or D, and if we want to scale it by some number (default 1)
# then we hard code the way we want this plot to look like
def stackHistograms3(list_tuple_h1D,stackName="stackName",outputFileName="stack",extensions="pdf",text_option=("#bf{#it{#bf{ATLAS} Simulation Internal}}?#bf{#sqrt{s}=13 TeV}",0.04,13,0.15,0.88,0.05),legend_info=[0.72,0.17,0.88,0.88,72,0.037,0],debug=False):
if debug:
print "Start stackHistograms"
# create canvas
c=TCanvas("c","c",950,700)
c.cd()
p1=TPad("p1","p1",0.00,0.00,0.75,0.30) # bottom left (ratio pad)
p2=TPad("p2","p2",0.00,0.30,0.75,1.00) # top left (stacked plots)
p3=TPad("p3","p3",0.75,0.00,1.00,1.00) # right (legends)
p1.Draw()
p2.Draw()
p3.Draw()
p1.SetBottomMargin(0.3)
p1.SetTopMargin(0)
p1.SetRightMargin(0.08)
p2.SetTopMargin(0.05)
p2.SetBottomMargin(0.02)
p2.SetRightMargin(0.08)
p3.SetTopMargin(0)
p3.SetLeftMargin(0)
p3.SetBottomMargin(0)
p3.SetRightMargin(0)
# top left (stacked plots)
p2.cd()
# first create and plot the stack (background and signal)
stack=THStack(stackName,stackName)
for (histo,process,processType,SF) in list_tuple_h1D:
if debug:
print "histo",histo,"process",process,"processType",processType,"SF",SF
if processType=="B" or processType=="S":
stack.Add(histo)
# done for loop over histograms
#dict_processType_histo={}
#for (histo,process,processType,SF) in list_tuple_h1D:
# if debug:
# print "histo",histo,"process",process,"processType",processType,"SF",SF
# if processType=="B" or processType=="S":
# stack.Add(histo)
# if processType=="S":
# dict_processType_histo[processType]=histo.Clone("S_overlay")
# if processType=="D":
# dict_processType_histo[processType]=histo.Clone("D_overlay")
# done loop over the initial histograms
# then overlay the signal
S_scale=5
# then overlay the data
# then the text at the top
# then the chi2 info
dict_processType_histo={}
S_scale=5
for tuple_h1D in list_tuple_h1D:
histo=tuple_h1D[0]
process=tuple_h1D[1]
processType=tuple_h1D[2]
SF=tuple_h1D[3]
if debug:
print "histo",histo,"process",process,"processType",processType,"SF",SF
if processType=="B" or processType=="S":
stack.Add(histo)
if processType=="S":
dict_processType_histo[processType]=histo.Clone("S_overlay")
dict_processType_histo[processType].SetFillStyle(0)
dict_processType_histo[processType].SetLineWidth(2)
dict_processType_histo[processType].Scale(S_scale)
# done if
elif processType=="D":
dict_processType_histo[processType]=histo
dict_processType_histo[processType].SetFillStyle(0)
dict_processType_histo[processType].SetMarkerStyle(ROOT.kFullCircle)
#legend.AddEntry(histo,process,"lp")
else:
print "processType",processType,"not known. Choose S, B or D. Will ABORT!!!"
assert(False)
# end if processType
# done loop over tuple_h1D
# plot the stack
stack.Draw("hist")
stack.GetXaxis().SetTitle(histo.GetXaxis().GetTitle())
stack.GetYaxis().SetTitle(histo.GetYaxis().GetTitle())
currentMaximum=stack.GetMaximum()
# overlay the signal
if "S" in dict_processType_histo.keys():
dict_processType_histo["S"].Draw("hist same")
if dict_processType_histo["S"].GetMaximum()>currentMaximum:
currentMaximum=dict_processType_histo["S"].GetMaximum()
# overlay the data
if "D" in dict_processType_histo.keys():
dict_processType_histo["D"].Draw("p same")
if dict_processType_histo["D"].GetMaximum()>currentMaximum:
currentMaximum=dict_processType_histo["D"].GetMaximum()
# add text at the top
setupTextOnPlot(*text_option)
# create space at the top for text
maximum = currentMaximum*1.40
minimum = 0.00001
stack.SetMaximum(maximum)
stack.SetMinimum(minimum)
p3.cd()
# add the legend
legend=get_legend(legend_info,debug)
legend.SetBorderSize(1)
if "D" in dict_processType_histo.keys():
legend.AddEntry(dict_processType_histo["D"],process,"lp")
# for tuple_h1D in list_tuple_h1D:
S_name=""
for (histo,process,processType,SF) in reversed(list_tuple_h1D):
if process=="data":
continue
#histo=tuple_h1D[0]
##process=tuple_h1D[1]
#processType=tuple_h1D[2]
#SF=tuple_h1D[3]
if debug:
print "histo",histo,"process",process,"processType",processType,"SF",SF
legend.AddEntry(histo,process,"f")
if processType=="S":
S_name=process
if "S" in dict_processType_histo.keys():
legendName=S_name+" x %.0f" % (S_scale)
legend.AddEntry(dict_processType_histo["S"],legendName,"l")
legend.Draw("same")
# legend.AddEntry(histo,process,"lp")
# save the canvas in files with what extensions we want
for extension in extensions.split(","):
c.Print(outputFileName+"."+extension)
# ended for over extensions
return None
# done function
# make stacked plots
# give list of tuple of histograms
# besides info needed for overlayHistograms (histogram and legend) we need more info
# if it is S, B or D, and if we want to scale it by some number (default 1)
# then we hard code the way we want this plot to look like
def stackHistograms2(list_tuple_h1D,stackName="stackName",outputFileName="stack",extensions="pdf",text_option=("#bf{#it{#bf{ATLAS} Simulation Internal}}?#bf{#sqrt{s}=13 TeV}",0.04,13,0.15,0.88,0.05),legend_info=[0.72,0.17,0.88,0.88,72,0.037,0],debug=False):
if debug:
print "Start stackHistograms"
stack=THStack(stackName,"")
legend=get_legend(legend_info,debug)
legend.SetBorderSize(0)
dict_processType_histo={}
for tuple_h1D in list_tuple_h1D:
histo=tuple_h1D[0]
process=tuple_h1D[1]
processType=tuple_h1D[2]
SF=tuple_h1D[3]
if debug:
print "histo",histo,"process",process,"processType",processType,"SF",SF
if processType=="B" or processType=="S":
stack.Add(histo)
legend.AddEntry(histo,process,"f")
if processType=="S":
dict_processType_histo[processType]=histo.Clone("S_overlay")
dict_processType_histo[processType].SetFillStyle(0)
dict_processType_histo[processType].SetLineWidth(3)
S_scale=5
dict_processType_histo[processType].Scale(S_scale)
legendName=process+" x %.0f" % (S_scale)
legend.AddEntry(histo,legendName,"l")
# done if
elif processType=="D":
dict_processType_histo[processType]=histo
dict_processType_histo[processType].SetFillStyle(0)
dict_processType_histo[processType].SetMarkerStyle(ROOT.kFullCircle)
legend.AddEntry(histo,process,"p")
else:
print "processType",processType,"not known. Choose S, B or D. Will ABORT!!!"
assert(False)
# end if processType
# done loop over tuple_h1D
c=TCanvas("c","c",600,400)
# plot the stack
stack.Draw("hist")
stack.GetXaxis().SetTitle(histo.GetXaxis().GetTitle())
stack.GetYaxis().SetTitle(histo.GetYaxis().GetTitle())
currentMaximum=stack.GetMaximum()
# overlay the signal
if "S" in dict_processType_histo.keys():
dict_processType_histo["S"].Draw("hist same")
if dict_processType_histo["S"].GetMaximum()>currentMaximum:
currentMaximum=dict_processType_histo["S"].GetMaximum()
# overlay the data
if "D" in dict_processType_histo.keys():
dict_processType_histo["D"].Draw("p same")
if dict_processType_histo["D"].GetMaximum()>currentMaximum:
currentMaximum=dict_processType_histo["D"].GetMaximum()
# add the legend
legend.Draw("same")
# add text at the top
setupTextOnPlot(*text_option)
# create space at the top for text
maximum = currentMaximum*1.40
minimum = 0.00001
stack.SetMaximum(maximum)
stack.SetMinimum(minimum)
# save the canvas in files with what extensions we want
for extension in extensions.split(","):
c.Print(outputFileName+"."+extension)
# ended for over extensions
return None
# done function
def overlapHistograms(hist_1, hist_2, do_print):
# get the standard deviation and mean of the 1st histogram
hist_1_rms=hist_1.GetRMS()
hist_1_mean=hist_1.GetMean()
# get the range of 2 sigma around the mean of the 1st histogram
range_i=hist_1_mean-hist_1_rms*2
range_f=hist_1_mean+hist_1_rms*2
# find the bins that correspond to the 2sigma range
bin_i=hist_1.FindBin(range_i)
bin_f=hist_1.FindBin(range_f)
# calculate the overlap of Histogram 2 with Histogram 1 as a percentage
overlap=hist_2.Integral(bin_i,bin_f)/hist_2.Integral()
if do_print==True:
overlap_percentage=overlap*100
print "The overlap of Histrogram 2 with Histrogram 1 is:", overlap_percentage,"%."
return None
# ended function
def overlayDiffVars(histoList, legend_position, filePath, fileName, bin_width, Extensions, XLabel, YLabel, plot_text, hist_range, doFit, fit, debug):
'''
This function will overlay the different variables with or without a fit
'''
num = len(histoList)
gROOT.SetBatch(1)
c = TCanvas('c','c', 800, 600)
gStyle.SetOptStat(0)
c.SetTickx(1)
c.SetTicky(1)
c.Update()
for i in xrange(num):
sigColour = histoList[i][1]
histogram = rebin(histoList[i][0], float(bin_width))
histogram.GetXaxis().SetRangeUser(float(hist_range[0]), float(hist_range[1]))
histogram.SetLineWidth(1)
histogram.SetLineColor(int(sigColour))
if i == 0:
histogram.Draw()
histogram.SetTitle("")
histogram.GetXaxis().SetTitle(XLabel)
histogram.GetXaxis().SetTitleSize(0.045)
histogram.GetXaxis().SetTitleOffset(0.9)
histogram.GetYaxis().SetTitle(YLabel)
histogram.GetYaxis().SetTitleSize(0.045)
histogram.GetYaxis().SetTitleOffset(0.9)
yMax = histogram.GetMaximum() * 1.25
histogram.SetMaximum(yMax)
histogram.SetMinimum(0.01)
else:
histogram.Draw("histsame")
#if doFit and fit == "BUKIN" and 'Gen' not in histoList[i][2]:
if doFit and fit == "BUKIN":
plotMean = histogram.GetMean()
plotRMS = histogram.GetRMS()
plotRes = float(plotRMS)/float(plotMean)
plotHeight = histogram.GetMaximum()
function = TF1("bukin", Bukin(), 80, 160, 6)
function.SetParName(0, "height")
function.SetParName(1, "mean")
function.SetParName(2,"width")
function.SetParName(3,"asymmetry")
function.SetParName(4,"size of lower tail")
function.SetParName(5,"size of higher tail")
function.SetParameter(0, float(plotHeight))
function.SetParameter(1, float(plotMean))
function.SetParameter(2, float(plotRMS))
function.SetParameter(3, -0.2 )
function.SetParameter(4, 0.2)
function.SetParameter(5, 0.001)
histogram.Fit("bukin", "Q", "histsame")
fittedHist = histogram.GetFunction("bukin")
fittedHist.SetLineColor(int(sigColour))
fittedHist.Draw("histsame")
text_length = len(plot_text)
t = TLatex()
t.SetNDC()
t.SetTextSize(0.035)
t.SetTextAlign(13)
y_value = 0.86
for item in xrange(text_length):
t.DrawLatex(0.15, y_value, plot_text[item])
y_value -= 0.06
l = TLegend(*legend_position)
SetOwnership(l,0)
l.SetFillColor(0)
l.SetBorderSize(0)
l.SetTextSize(0.035)
for i in xrange(num):
l.AddEntry(histoList[i][0], histoList[i][1], 'l')
l.Draw()
for type in Extensions.split(","):
c.Print(filePath+fileName+"."+type)
def overlaySigBkg(histoList, legend_position, filePath, fileName, bin_width, Extensions, XLabel, YLabel, bkgColour, plot_text, hist_range, debug):
'''
This function will overlay the total signal and total background on top of one another.
This is useful for shape comparisons
'''
num = len(histoList)
signalList = TList()
bkgList = TList()
for i in xrange(num):
sigColour = histoList[i][1]
histogram = rebin(histoList[i][0], float(bin_width))
histogram.GetXaxis().SetRangeUser(float(hist_range[0]), float(hist_range[1]))
if histoList[i][4] == "SIGNAL":
signalList.Add(histogram)
elif histoList[i][4] == "BACKGROUND":
bkgList.Add(histogram)
mergeSignalHist = TH1F(histogram.Clone("mergeSignalList"))
mergeSignalHist.Merge(signalList)
mergeSignalHist.SetLineWidth(1)
mergeSignalHist.SetLineColor(int(sigColour))
mergeBkgHist = TH1F(histogram.Clone("mergeBkgList"))
mergeBkgHist.Merge(bkgList)
mergeBkgHist.SetLineWidth(1)
mergeBkgHist.SetLineColor(int(bkgColour))
gROOT.SetBatch(1)
c = TCanvas('c','c', 800, 600)
gStyle.SetOptStat(0)
mergeBkgHist.SetTitle("")
c.SetTicky(1)
c.SetTickx(1)
c.Update()
yMax_sig = mergeSignalHist.GetMaximum()
yMax_bkg = mergeBkgHist.GetMaximum()
mergeSignalHist.Scale(1/yMax_sig)
mergeBkgHist.Scale(1/yMax_bkg)
mergeBkgHist.Draw()
mergeSignalHist.Draw("histsame")
mergeBkgHist.GetXaxis().SetTitle(XLabel)
mergeBkgHist.GetXaxis().SetTitleSize(0.045)
mergeBkgHist.GetXaxis().SetTitleOffset(0.9)
mergeBkgHist.GetYaxis().SetTitle(YLabel)
mergeBkgHist.GetYaxis().SetTitleSize(0.045)
mergeBkgHist.GetYaxis().SetTitleOffset(0.9)
yMax = mergeBkgHist.GetMaximum() * 1.25
mergeBkgHist.SetMaximum(yMax)
mergeBkgHist.SetMinimum(0.01)
l = TLegend(*legend_position)
SetOwnership(l,0)
l.SetFillColor(0)
l.SetBorderSize(0)
l.SetTextSize(0.04)
l.AddEntry(mergeSignalHist, "WH125 Signal", "l")
l.AddEntry(mergeBkgHist, "ttbar Background", "l")
l.Draw()
text_length = len(plot_text)
t = TLatex()
t.SetNDC()
t.SetTextSize(0.030)
t.SetTextAlign(13)
y_value = 0.83
for item in xrange(text_length):
t.DrawLatex(0.15, y_value, plot_text[item])
y_value -= 0.06
for type in Extensions.split(","):
c.Print(filePath+fileName+"."+type)
def StackHistograms(histoList,legend_position,filePath,fileName,Extensions,XLabel,YLabel,plot_text,bin_width,hist_range,title,save_string,doBlinding,blindingTuple,ratioPlotVars,debug):
'''PURPOSE: Function to stack any number of histograms and save
under the extension given
'''
if debug:
print "Starting Stacking..."
# Check the number of histograms stacking
num = len(histoList)
overlay_list = []
data_list = []
Stack = THStack(fileName, "")
#Stack = THStack(fileName, title)
for i in xrange(num):
fullPath = histoList[i][5]
histogram = rebin(histoList[i][0], int(bin_width))
histogram.Scale(float(histoList[i][3]))
histogram.SetLineWidth(1)
histogram.SetLineColor(1)
if histoList[i][1] == "Data" and doBlinding and blindingTuple[0] in histoList[i][5]:
histogram = blinding(histogram, blindingTuple[1], blindingTuple[2])
if histoList[i][4] == "STACK":
histogram.SetFillColor(int(histoList[i][1]))
Stack.Add(histogram)
elif histoList[i][4] == "OVERLAY" and histoList[i][2] != "Data":
histogram.SetLineColor(int(histoList[i][1]))
overlay_list.append(histogram)
elif histoList[i][4] == "OVERLAY" and histoList[i][2] == "Data":
histogram.SetMarkerStyle(8)
histogram.SetMarkerColor(1)
data_list.append(histogram)
else:
print "\n%s Option not available\n" % (histoList[i][4])
sys.exit(1)
# Run Root in batch mode with no canvas displayed
gROOT.SetBatch(1)
c = TCanvas('c','c', 800, 600)
if ratioPlotVars is not None:
mainPad = TPad("mainPad","mainPad", 0,0.30,1,1)
ratioPad = TPad("ratioPad","ratioPad",0,0,1,0.30)
mainPad.Draw()
ratioPad.Draw()
mainPad.SetTopMargin(0.05)
mainPad.SetBottomMargin(0.02)
ratioPad.SetTopMargin(0)
ratioPad.SetBottomMargin(0.3)
mainPad.cd()
mainPad.SetTicks(1)
mainPad.Update()
Stack.Draw()
over_hist = len(overlay_list)
for i in xrange(over_hist):
overlay_list[i].Draw("histsame")
data_size = len(data_list)
for i in xrange(data_size):
data_list[i].Draw("epsame")
# Setting the axis ranges, we want to have space at the top of the canvas for
# text and legends. Also we want the axis labels to not overlap the values on
# the axis
print hist_range
Stack.GetXaxis().SetRangeUser(int(hist_range[0]), int(hist_range[1]))
if ratioPlotVars is not None:
Stack.GetXaxis().SetTitle("")
Stack.GetXaxis().SetTitleOffset(0)
Stack.GetXaxis().SetLabelOffset(999)
Stack.GetXaxis().SetLabelSize(0)
else:
Stack.GetXaxis().SetTitle(XLabel)
Stack.GetXaxis().SetTitleOffset(1.2)
Stack.GetYaxis().SetTitle(YLabel)
Stack.GetYaxis().SetTitleOffset(1.4)
Stack.SetTitle("")
yMax = Stack.GetMaximum()*1.25
Stack.SetMaximum(yMax)
Stack.SetMinimum(0.01)
# Some ATLAS Style, setting ticks all round the plot
c.SetTicky(1)
c.SetTickx(1)
c.Update()
# Setting legend positions and adding the correct values
l = TLegend(*legend_position)
SetOwnership( l, 0 )
l.SetFillColor(0)
l.SetBorderSize(0)
l.SetTextSize(0.03)
for i in reversed(xrange(num)):
if histoList[i][2] == "Data":
l.AddEntry(histoList[i][0],histoList[i][2],"p")
else:
l.AddEntry(histoList[i][0],histoList[i][2],"f")
l.Draw()
# Add some text to the plot
if plot_text:
if debug:
print "DEBUG: Adding text: %s to plot" % (plot_text)
text_length = len(plot_text)
t = TLatex()
t.SetNDC()
t.SetTextSize(0.044)
t.SetTextAlign(13)
y_value = 0.91
for item in xrange(text_length):
t.DrawLatex(0.15, float(y_value), plot_text[item])
y_value = y_value - 0.06
if ratioPlotVars is not None:
ratioPad.cd()
ratioPad.SetTicks(1)
ratioPad.Update()
sigList = TList()
bkgList = TList()
mcList = TList()
dataList = TList()
for i in xrange(num):
histogramList = rebin(histoList[i][0], int(bin_width))
histogramList.GetXaxis().SetRangeUser(int(hist_range[0]), int(hist_range[1]))
if histoList[i][6] == "SIGNAL":
sigList.Add(histogramList)
mcList.Add(histogramList)
elif histoList[i][6] == "BACKGROUND":
bkgList.Add(histogramList)
mcList.Add(histogramList)
elif histoList[i][6] == "DATA":
dataList.Add(histogramList)
elif histoList[i][6] == "OVERLAY":
pass
else:
sys.exit(1)
mergeSigHist = TH1F(histogramList.Clone("mergeSigHist"))
mergeSigHist.Merge(sigList)
mergeBkgHist = TH1F(histogramList.Clone("mergeBkgHist"))
mergeBkgHist.Merge(bkgList)
mergeMCHist = TH1F(histogramList.Clone("mergeMCHist"))
mergeMCHist.Merge(mcList)
mergeDataHist = TH1F(histogramList.Clone("mergeDataHist"))
mergeDataHist.Merge(dataList)
if ratioPlotVars == "SIGNAL/BACKGROUND":
histoSigBkg = getRatio(mergeMCHist, mergeBkgHist, doBlinding, blindingTuple, fullPath)
histoSigBkg.Draw('ep')
histoSigBkg.GetXaxis().SetTitle(XLabel)
histoSigBkg.GetXaxis().SetTitleSize(0.08)
histoSigBkg.GetXaxis().SetTitleOffset(1)
histoSigBkg.GetXaxis().SetLabelSize(0.08)
histoSigBkg.GetYaxis().SetTitle("Sig+Bkg/Bkg")
histoSigBkg.GetYaxis().SetTitleSize(0.08)
histoSigBkg.GetYaxis().SetLabelSize(0.08)
histoSigBkg.GetYaxis().SetTitleOffset(0.45)
ATLASStyle(histoSigBkg)
elif ratioPlotVars == "DATA/MC":
histoDataMC = getRatio(mergeDataHist, mergeBkgHist, doBlinding, blindingTuple, fullPath)
histoDataMC.Draw('ep')
histoDataMC.GetXaxis().SetTitle(XLabel)
histoDataMC.GetXaxis().SetTitleSize(0.08)
histoDataMC.GetXaxis().SetTitleOffset(1)
histoDataMC.GetXaxis().SetLabelSize(0.08)
histoDataMC.GetYaxis().SetTitle("Data/MC")
histoDataMC.GetYaxis().SetTitleSize(0.08)
histoDataMC.GetYaxis().SetLabelSize(0.08)
histoDataMC.GetYaxis().SetTitleOffset(0.45)
ATLASStyle(histoDataMC)
# Save the plots in a range of formats
Name = save_string + fileName
if debug:
print "DEBUG:The Name of the File: %s" % (Name)
for type in Extensions.split(","):
c.Print(filePath+"/"+Name+"."+type)
# ended function
def rebin(histogram, bin_width):
'''PURPOSE: Function which takes in a histogram and scales it by a factor '''
xmax = histogram.GetXaxis().GetXmax()
xmin = histogram.GetXaxis().GetXmin()
nbins = histogram.GetXaxis().GetNbins()
width = math.fabs(xmax - xmin) / (nbins)
factor = 0
if width:
factor = float(bin_width) / width
if factor >= 1 or not bin_width:
return histogram.Rebin(int(factor))
else:
return histogram
# ended function
def sensitivityCalc(HistoInfo,title,bin_width,debug):
# Have to set Global values since we are altering them outside a function.
# Python requires we do this
sigNum = 0
sigErr = 0
bkgNum = 0
bkgErr = 0
totBkgErr = 0
totSigErr = 0
totSen = 0
totSig = 0
totBkg = 0
totErr = 0
num = len(HistoInfo)
for i in xrange(num):
histogram = HistoInfo[i][0]
process = HistoInfo[i][1]
Entries = histogram.GetXaxis().GetNbins()
for bin in xrange(1,Entries,1):
# Resetting all the values to zero at the start of the loop
sigNum = 0
sigErr = 0
bkgNum = 0
bkgErr = 0
totSig = 0
totBkg = 0
totErr = 0
for j in xrange(num):
if HistoInfo[j][2] == "SIGNAL":
histogram = rebin(HistoInfo[j][0],bin_width)
sigNum = histogram.GetBinContent(bin)
sigErr = histogram.GetBinError(bin)
if debug:
print"DEBUG: sigNum: %s \n SigErr: %s\n" % (sigNum, sigErr)
elif HistoInfo[j][2] == "BACKGROUND":
histogram = rebin(HistoInfo[j][0],bin_width)
bkgNum += histogram.GetBinContent(bin)
bkgErr += histogram.GetBinError(bin)
if debug:
print "DEBUG: bkgNum: %s \n bkgErr: %s \n" % (bkgNum, bkgErr)
elif HistoInfo[j][2] == "OVERLAY":
pass
else:
print "No Signal/Background info given\n %s not a correct value" % (HistoInfo[j][2])
totBkgErr += bkgErr * bkgErr
totSigErr += sigErr * sigErr
if debug:
print "DEBUG: totBkgErr: %s \n totSigErr: %s \n" % (totBkgErr, totSigErr)
if bkgNum > 0:
sen = sigNum/(math.sqrt(bkgNum))
sen_sqrd = sen * sen
totSen += sen_sqrd
if debug:
print "DEBUG: sen: %s \n sen_sqrd: %s \n totSen: %s \n" % (sen, sen_sqrd, totSen)
if bkgNum > 0 and sigNum > 0:
senErr = sen * sen * math.sqrt(((2 * sigErr/sigNum)*(2*sigErr/sigNum)) + ((bkgErr/bkgNum)*(bkgErr/bkgNum)))
totErr += senErr * senErr
sensitivity = math.sqrt(totSen)
if debug:
print "DEBUG: SENSITIVITY: %s\n" % (sensitivity)
return sensitivity
# ended function
def basicSensCalc(HistoInfo, title):
global totSig
totSig = 0
global totBkg
totBkg = 0
num = len(HistoInfo)
for i in xrange(num):
Xmin = HistoInfo[i][0].GetXaxis().GetXmin()
Xmax = HistoInfo[i][0].GetXaxis().GetXmax()
if HistoInfo[i][2] == "SIGNAL":
totSig += HistoInfo[i][0].Integral(int(Xmin),int(Xmax))
elif HistoInfo[i][2] == "BACKGROUND":
totBkg += HistoInfo[i][0].Integral(int(Xmin),int(Xmax))
else:
print "No Signal/Background info given\n %s not a correct value" % (HistoInfo[j][2])
basicSen = totSig/math.sqrt(totBkg)
return basicSen
# ended function
def getStackStats(HistoInfo, title, BinWidth, Fit, stat, histoLocation, Range, debug):
num = len(HistoInfo)
List = TList()
for i in xrange(num):
if "crea" in histoLocation:
integral = HistoInfo[i][0].Integral()
entries = HistoInfo[i][0].GetEntries()
return integral/entries
histogram = rebin(HistoInfo[i][0], float(BinWidth))
histogram.GetXaxis().SetRangeUser(float(Range[0]), float(Range[1]))
if HistoInfo[i][1] == "STACK" and HistoInfo[i][2] == "SIGNAL":
List.Add(histogram)
else:
pass
mergeHist = TH1F(histogram.Clone("mergeHist"))
mergeHist.Merge(List)
gROOT.SetBatch(1)
c = TCanvas('c','c', 696, 472)
mergeHist.Draw()
if Fit == "NONE":
if stat == "mean":
mean = mergeHist.GetMean()
return mean
elif stat == "rms":
rms = mergeHist.GetRMS()
return rms
elif stat == "resolution":
mean = mergeHist.GetMean()
rms = mergeHist.GetRMS()
resolution = rms/mean
return resolution
else:
print "\n Unknown stat variable..."
exit()
elif Fit == "GAUSS":
mergeHist.Fit("gaus","Q","")
fittedHist = mergeHist.GetFunction("gaus")
fittedHist.Draw("SAME")
if debug:
c.Print("resolution/plots/"+title+"_GAUS.pdf")
if stat == "mean":
mean = fittedHist.GetParameter(1)
return mean
elif stat == "rms":
rms = fittedHist.GetParameter(2)
return rms
elif stat == "resolution":
mean = fittedHist.GetParameter(1)
rms = fittedHist.GetParameter(2)
resolution = rms/mean
return resolution
else:
print "\nUnknown stat variable..."
exit()
elif Fit == "BUKIN":
plot_mean = mergeHist.GetMean()
plot_height = mergeHist.GetMaximum()
plot_RMS = mergeHist.GetRMS()
plot_width = float(plot_mean)/float(plot_RMS)
function = TF1("bukin", Bukin(), 80, 160, 6)
function.SetParName(0, "height")
function.SetParName(1, "mean")
function.SetParName(2,"width")
function.SetParName(3,"asymmetry")
function.SetParName(4,"size of lower tail")
function.SetParName(5,"size of higher tail")
function.SetParameter(0, float(plot_height))
function.SetParameter(1, float(plot_mean))
function.SetParameter(2, float(plot_RMS))
function.SetParameter(3, -0.2 )
function.SetParameter(4, 0.2)
function.SetParameter(5, 0.001)
mergeHist.Fit("bukin", "Q", "")
fittedHist = mergeHist.GetFunction("bukin")
fittedHist.Draw("SAME")
if debug:
c.Print("resolution/plots/"+title+"_BUKIN.pdf")
if stat == "mean":
mean = fittedHist.GetParameter(1)
return mean
elif stat == "rms":
rms = fittedHist.GetParameter(2)
return rms
elif stat == "resolution":
mean = fittedHist.GetParameter(1)
rms = fittedHist.GetParameter(2)
resolution = rms/mean
return resolution
else:
print "\nUnknown fit: %s" % (Fit)
exit()
# ended function
def blinding(hist, lowRange, highRange):
Entries = hist.GetNbinsX() + 2
for i in xrange(0, Entries, 1):
if hist.GetBinLowEdge(i) >= int(lowRange) and hist.GetBinLowEdge(i) <= int(highRange):
hist.SetBinContent(i,0)
hist.SetBinContent(i,0)
return hist
# ended function
def getRatio(histNum, histDenom, doBlinding, blindingVar, fullPath):
histRatio = TH1F(histNum.Clone("histRatio"))
histRatio.Reset()
bins = histRatio.GetNbinsX()
for bin in xrange(1, bins, 1):
nNum = histNum.GetBinContent(bin)
eNum = histNum.GetBinError(bin)
nDenom = histDenom.GetBinContent(bin)
if nNum > 1e-6 and eNum > 1e-6 and nDenom > 1e-6:
nRatio = (nNum - nDenom)/nDenom
eRatio = eNum/nDenom
if histRatio.GetBinLowEdge(bin) >= int(blindingVar[1]) and histRatio.GetBinLowEdge(bin) <= int(blindingVar[2]) and doBlinding == 1 and blindingVar[0] in fullPath:
histRatio.SetBinContent(bin, 0)
histRatio.SetBinError(bin, 0)
else:
histRatio.SetBinContent(bin, nRatio)
histRatio.SetBinError(bin, eRatio)
histRatio.SetLineColor(1)
histRatio.SetMarkerStyle(8)
return histRatio
# ended function
def ATLASStyle(histo):
gStyle.SetOptStat(0)
histo.SetTitle("")
# ended function
def createMeanRMS2DPlot(t_PlotInfo, l_plotDimensions, axisLabels, legend_position, t_plotText, s_Save, l_fileType):
len_PlotInfo = len(t_PlotInfo)
x1 = float(l_plotDimensions[0])
x2 = float(l_plotDimensions[1])
y1 = float(l_plotDimensions[2])
y2 = float(l_plotDimensions[3])
DHist_EM = TH2D("DHist_EM", "",1000,x1,x2,1000,y1,y2)
DHist_JES = TH2D("DHist_JES", "",1000,x1,x2,1000,y1,y2)
DHist_GSC = TH2D("DHist_GSC", "",1000,x1,x2,1000,y1,y2)
DHist_Mu = TH2D("DHist_Mu", "",1000,x1,x2,1000,y1,y2)
DHist_Pt = TH2D("DHist_Pt", "",1000,x1,x2,1000,y1,y2)
DHistNN = TH2D("DHistNN", "",1000,x1,x2,1000,y1,y2)
DHistTruth = TH2D("DHistTruth","",1000,x1,x2,1000,y1,y2)
for i in xrange(len_PlotInfo):
if str(t_PlotInfo[i][0]) == 'EM':
DHist_EM.Fill(float(t_PlotInfo[i][1]),float(t_PlotInfo[i][2]))
DHist_EM.SetMarkerStyle(8)
DHist_EM.SetMarkerColor(632)
elif str(t_PlotInfo[i][0]) == 'EM+JES':
DHist_JES.Fill(float(t_PlotInfo[i][1]),float(t_PlotInfo[i][2]))
DHist_JES.SetMarkerStyle(8)
DHist_JES.SetMarkerColor(883)
elif str(t_PlotInfo[i][0]) == 'EM+JES+GSC':
DHist_GSC.Fill(float(t_PlotInfo[i][1]),float(t_PlotInfo[i][2]))
DHist_GSC.SetMarkerStyle(8)
DHist_GSC.SetMarkerColor(801)
elif str(t_PlotInfo[i][0]) == 'EM+JES+GSC+Mu':
DHist_Mu.Fill(float(t_PlotInfo[i][1]),float(t_PlotInfo[i][2]))
DHist_Mu.SetMarkerStyle(8)
DHist_Mu.SetMarkerColor(868)
elif str(t_PlotInfo[i][0]) == 'EM+JES+GSC+Mu+pT' or str(t_PlotInfo[i][0]) == 'reco':
DHist_Pt.Fill(float(t_PlotInfo[i][1]),float(t_PlotInfo[i][2]))
DHist_Pt.SetMarkerStyle(8)
DHist_Pt.SetMarkerColor(824)
elif str(t_PlotInfo[i][0]).isdigit():
print "here"
DHistNN.Fill(float(t_PlotInfo[i][1]),float(t_PlotInfo[i][2]))
DHistNN.SetMarkerStyle(8)
DHistNN.SetMarkerColor(862)
elif 'truth' in str(t_PlotInfo[i][0]) or 'Truth' in str(t_PlotInfo):
DHistTruth.Fill(float(t_PlotInfo[i][1]),float(t_PlotInfo[i][2]))
DHistTruth.SetMarkerStyle(29)
DHistTruth.SetMarkerColor(616)
DHistTruth.SetMarkerSize(2.5)
gROOT.SetBatch(1)
c = TCanvas('c','c',800,600)
c.SetGridx()
c.SetGridy()
c.SetTickx()
c.SetTicky()
gStyle.SetOptStat(0)
DHist_EM.GetXaxis().SetTitle(axisLabels[0])
DHist_EM.GetXaxis().SetTitleSize(0.035)
DHist_EM.GetXaxis().SetTitleOffset(1)
DHist_EM.GetXaxis().SetLabelSize(0.035)
DHist_EM.GetYaxis().SetTitle(axisLabels[1])
DHist_EM.GetYaxis().SetTitleSize(0.035)
DHist_EM.GetYaxis().SetTitleOffset(1)
DHist_EM.GetYaxis().SetLabelSize(0.035)
DHist_EM.Draw('p')
DHist_JES.Draw('same p')
DHist_GSC.Draw('same p')
DHist_Mu.Draw('same p')
DHist_Pt.Draw('same p')
DHistNN.Draw('same p')
DHistTruth.Draw('same p')
ATLASStyle(DHist_EM)
l = TLegend(float(legend_position[0]),float(legend_position[1]),float(legend_position[2]),float(legend_position[3]))
SetOwnership(l,0)
l.SetFillColor(0)
l.SetBorderSize(0)
l.SetTextSize(0.035)
l.AddEntry(DHist_EM, "EM", 'p')
l.AddEntry(DHist_JES, "EM+JES", 'p')
l.AddEntry(DHist_GSC, "EM+JES+GSC", 'p')
l.AddEntry(DHist_Mu, "EM+JES+GSC+Mu", 'p')
#l.AddEntry(DHist_Pt, "Reconstructed Level", 'p')
l.AddEntry(DHist_Pt, "EM+JES+GSC+Mu+Pt", 'p')
l.AddEntry(DHistNN, "Neural Networks", "p")
l.AddEntry(DHistTruth, "Generator Level", "p")
l.Draw()
len_plotText = len(t_plotText)
t = TLatex()
t.SetNDC()
t.SetTextSize(0.035)
t.SetTextAlign(13)
y_value = 0.40
for item in xrange(len_plotText):
t.DrawLatex(0.13, float(y_value), t_plotText[item])
y_value -= 0.06
c.Update()
saveName = 'resolution/plots/2D/' + s_Save
for type in l_fileType.split(','):
c.Print(saveName + '.' + type)
def create2DProfile(l_histoInfo):
##
## 1. Loop over the histoList
## 2. Save the 't' to gen level list
## 3. Save the rest to non 't' list
## 4. Loop over the contents of non 't' list
## 5. For each item in non 't' do the calculation needed
## 6. Create a 2D Plot with correct dimensons
## 7. Fill the 2D plot with the calculatd value and the 't' value
## 8. Add the plot aesthetics
## 9. Save the file as required!
##
len_HistoInfo = len(l_histoInfo)
l_nonTruth = []
for i in range(len_HistoInfo):
if l_histoInfo[i][4] == "t":
h_truth = l_histoInfo[i][0]
else:
l_nonTruth.append(l_histoInfo[i][0])
len_nonTruth = len(l_nonTruth)
truthXMax = h_truth.GetXaxis().GetXmax()
truthXMin = h_truth.GetXaxis().GetXmin()
gROOT.SetBatch(1)
c = TCanvas('c','c',800,600)
c.SetGridx()
c.SetGridy()
c.SetTickx()
c.SetTicky()
gStyle.SetOptStat(0)
for i in range(len_nonTruth):
print i
#ex: setupTextOnPlot("#it{#bf{ATLAS} Simulation Internal}",0.05, 13,0.13,0.91,0.09)
def setupTextOnPlot(plotText, t_textSize, t_alignment, t_x, t_start, t_gap):
l_plotText = plotText.split("?")
t = TLatex()
t.SetNDC()
t.SetTextSize(float(t_textSize))
t.SetTextAlign(int(t_alignment))
for item in l_plotText:
t.DrawLatex(float(t_x), float(t_start), item)
t_start = float(t_start) - float(t_gap)
# done function
# ex: h2=resize_h1D(h,100,150,5.0,debug)
def resize_h1D(old,new_xmin,new_xmax,new_bin_width,debug):
if debug:
print "old",type(old),old.GetEntries(),old.Integral()
old_Nbins=old.GetNbinsX()
if debug:
print "old_Nbins",old_Nbins
old_bin_underflow=0
old_bin_first=1
old_bin_last=old_Nbins
old_bin_overflow=old_Nbins+1
if debug:
print "old_bin_underflow",old_bin_underflow
print "old_bin_first",old_bin_first
print "old_bin_last",old_bin_last
print "old_bin_overflow",old_bin_overflow
old_bin_width=old.GetBinWidth(old_bin_first)
old_xmin=old.GetBinLowEdge(old_bin_first)
old_xmax=old.GetBinLowEdge(old_bin_last)+old.GetBinWidth(old_bin_last)
if debug:
print "old_bin_width",old_bin_width
print "old_xmin",old_xmin
print "old_xmax",old_xmax
assert(new_xmin>=old_xmin)
assert(new_xmax<=old_xmax)
# skip bins lower than this one
new_bin_first=int(math.ceil((new_xmin-old_xmin)/old_bin_width))+1
if debug:
print "new_bin_first",new_bin_first
# skip bins higer than this one
new_bin_last=int(math.floor((new_xmax-old_xmin)/old_bin_width))
if debug:
print "new_bin_last",new_bin_last
# if the first one is higher than the second one it means all bins are skipped
assert(new_bin_first<=new_bin_last)
new_title=old.GetTitle()
new_name=old.GetName()
new_Nbins=new_bin_last-new_bin_first+1
new_xmin_updated=old.GetBinLowEdge(new_bin_first)
new_xmax_updated=old.GetBinLowEdge(new_bin_last)+old.GetBinWidth(new_bin_last)
if debug:
print new_title,new_name,new_Nbins,new_xmin,new_xmax
new=TH1F(new_title,new_name,new_Nbins,new_xmin,new_xmax)
# +1 is the overflow, than +1 to include the overflow
# that's Python works xrange [a,b)
temp_content=0.0
for i in xrange (0,old_Nbins+1+1):
if i<new_bin_first:
temp_content+=old.GetBinContent(i)
elif i==new_bin_first:
if debug:
print i,"is new_bin_first"
# set the underflow as the sum of all the bins before the first bin
new.SetBinContent(0,temp_content)
temp_content=0.0
new.SetBinContent(i-new_bin_first+1,old.GetBinContent(i))
elif i<new_bin_last:
if debug:
print i,"regular bin to fill one by one"
new.SetBinContent(i-new_bin_first+1,old.GetBinContent(i))
elif i==new_bin_last:
if debug:
print i,"is new_bin_last"
new.SetBinContent(i-new_bin_first+1,old.GetBinContent(i))
elif i>new_bin_last:
temp_content+=old.GetBinContent(i)
else:
None
# done if
# done for
# now we can add the remaining of the bins into the overflow of the new histogram
new.SetBinContent(new_Nbins+1,temp_content)
temp_content=0.0
# rebin
if new_bin_width<=old_bin_width:
rebin=1
else:
rebin=int(math.floor(new_bin_width/old_bin_width))
if debug:
print "rebin",rebin
new.Rebin(rebin)
# change the characteristics to those of h
update_h1D_characteristics_from_another_one(new,old,debug)
# ready to return
return new
# done function
def do_error_myRange(myRange):
print "Range",myRange,"not in a good format to calculate integral with errors. Will ABORT!!!"
assert(False)
# done function
# myRange=-1 with underflow and overflow bins
# myRange=0 without underflow and overflow bins
# option="" just add the bin contentss
# option="width" add the bin contents multiplied by the respective bin width (key for asymmetric bins)
def get_histo_integral_error(histo,myRange=0,option="",debug=True):
if False:
getBinValues(histo,significantDigits=3,doRescaleMeVtoGeV=False,doUnderflow=True,doOverflow=True,debug=True)
if myRange==-1:
myRange=[0,histo.GetNbinsX()+1] # with overflow bins
elif myRange==-2:
myRange=[0,histo.GetNbinsX()] # with underflow, no overflow
elif myRange==-3:
myRange=[1,histo.GetNbinsX()+1] # no underflow, with overflow
elif myRange==0:
myRange=[1,histo.GetNbinsX()] # without overflow bins
else:
# check if it is in a good format
if isinstance(myRange, list)==False:
do_error_myRange(myRange)
# if here, it means we have a list
if len(myRange)!=2:
do_error_myRange(myRange)
# if here, it means lists has two elements
if isinstance(myRange[0], int)==False:
do_error_myRange(myRange)
if isinstance(myRange[1], int)==False:
do_error_myRange(myRange)
# if here both elements behave like an int
if myRange[0]<0 or myRange[1]>histo.GetNbinsX()+2 or myRange[0]>myRange[1]:
do_error_myRange(myRange)
# if here both elements are within the allowed range 0 through N+2
# and the first is smaller or equal to the second
# so we are good to go
None
# range is good and defined, we can move on
array_error=array("d",[0])
if debug:
print "array_error",array_error
print "myRange[0]",myRange[0]
print "myRange[1]",myRange[1]
print "option",option
# option "" or "width"
integral=histo.IntegralAndError(myRange[0],myRange[1],array_error,option)
error=array_error[0]
if debug:
print "integral",integral
print "array_error",array_error
if debug:
print "integral +- error: %-.3f +- %-.3f" % (integral,error)
return (integral,error)
# done function
def isHistoConsistentWithOne(histo,debug=False):
result=False
counterNonZeroBins=0
counterNonZeroBinsConsistentWithOne=0
# if consider consider underflow and overflow
# for i in xrange(histo.GetNbinsX()+2):
# do not consider underflow and overflow
for i in xrange(1,histo.GetNbinsX()+1):
if debug:
print "bin ",i
content=histo.GetBinContent(i)
error=histo.GetBinError(i)
if debug:
print "bin",i,"content +/- error",content,"+/-",error
if content<=0:
continue
counterNonZeroBins+=1
if content-error<=1.0<=content+error:
#bin consistent with one
counterNonZeroBinsConsistentWithOne+=1
# done loop over bins
fractionOfBinsConsistentWithOne=ratio(float(counterNonZeroBinsConsistentWithOne),float(counterNonZeroBins))
if fractionOfBinsConsistentWithOne>0.6666:
result=True
if debug:
print "statisticallyConsistentWithOne",result,"fractionOfBinsConsistentWithOne",fractionOfBinsConsistentWithOne,"counterNonZeroBinsConsistentWithOne",counterNonZeroBinsConsistentWithOne,"counterNonZeroBins",counterNonZeroBins
return result
# done function
def add_in_quadrature_bin_by_bin_list_of_histo(list_histo,histoNameTotal="total",debug=False):
if debug:
print "add_in_quadrature_bin_by_bin_list_of_hist()"
for histo in list_histo:
print "histoName",histo.GetName()
histoTotal=list_histo[0].Clone()
histoTotal.Reset()
histoTotal.SetName(histoNameTotal)
histoTotal.SetTitle(histoNameTotal)
# loop over bins
NbinsX=histoTotal.GetNbinsX()
myrange=[1,NbinsX+1] # includes underflow and overflow
if debug:
print "myrange",myrange
for i in xrange(myrange[0],myrange[-1]):
if debug:
print "Starting new bin"
list_ContentError=[]
# for this bin loop over histograms
for histo in list_histo:
currentContent=histo.GetBinContent(i)
currentError =histo.GetBinError(i)
if debug:
print "i",i,"B +- errB","%-.5f +- %-5f" % (currentContent,currentError)
list_ContentError.append((currentContent,currentError))
# done loop over histograms
total,error=add_in_quadrature_error_list(list_ContentError,debug=debug)
if debug:
print "total+/-error = %.2f+/-%.2f" % (total,error)
# set the value and error to this bin
histoTotal.SetBinContent(i,total)
histoTotal.SetBinError(i,error)
# done loop over bins
if debug:
getBinValues(histoTotal,significantDigits=3,doRescaleMeVtoGeV=False,doUnderflow=True,doOverflow=True,debug=debug)
return histoTotal
# done function
def add_in_quadrature_bins_of_one_histo(h,IncludeUnderflowOverflowBins=False,debug=False):
if debug:
print "add_in_quadrature_bins_of_histo() with IncludeUnderflowOverflowBins",IncludeUnderflowOverflowBins
NbinsX=h.GetNbinsX()
# what is my range of bins I run on?
if IncludeUnderflowOverflowBins:
myrange=[0,NbinsX+1+1]
else:
# we want to run excluding the underflow (bin 0)
# and overflow bin NbinsX+1
myrange=[1,NbinsX+1]
if debug:
print "myrange",myrange
list_ContentError=[]
# loop over bins
for i in xrange(myrange[0],myrange[-1]):
if debug:
print "Starting new bin"
currentContent=h.GetBinContent(i)
currentError =h.GetBinError(i)
if debug:
print "i",i,"B +- errB","%-.5f +- %-5f" % (currentContent,currentError)
list_ContentError.append((currentContent,currentError))
# done loop over all the bins in the histogram
total,error=add_in_quadrature_error_list(list_ContentError,debug=debug)
if debug:
print "IncludeUnderflowOverflowBins",IncludeUnderflowOverflowBins,"total+/-error = %.2f+/-%.2f" % (total,error)
return total,error
# done function
def computeSB(h_S,h_B,IncludeUnderflowOverflowBins=False,AddInQuadrature=True,WhatToCompute="sensitivity",output=True,debug=False):
if debug:
print "Start computeSB() with IncludeUnderflowOverflowBins",IncludeUnderflowOverflowBins,"AddInQuadrature",AddInQuadrature,"WhatToCompute",WhatToCompute,"output",output
print "h_S",type(h_S), h_S
print "h_B",type(h_B), h_B
NbinsX=h_S.GetNbinsX()
# what is my range of bins I run on?
if IncludeUnderflowOverflowBins:
myrange=[0,NbinsX+1+1]
else:
# we want to run excluding the underflow (bin 0)
# and overflow bin NbinsX+1
myrange=[1,NbinsX+1]
if debug:
print "myrange",myrange
print "AddInQuadrature",AddInQuadrature
if AddInQuadrature:
if debug:
"We will AddInQuadrature"
totalContent_squared=0.0
totalError_squared=0.0
# need to loop over the bins first
# done if about my range of bins
for i in xrange(myrange[0],myrange[-1]):
if debug:
print "Starting new bin"
#S=h_S.Integral(i,i)
#B=h_B.Integral(i,i)
S=h_S.GetBinContent(i)
errS=h_S.GetBinError(i)
B=h_B.GetBinContent(i)
errB=h_B.GetBinError(i)
if debug:
print "i",i,"S +- errS","%-.5f +- %-5f" % (S,errS),"B +- errB","%-.5f +- %-.5f" % (B,errB)
if WhatToCompute=="SignalOverBackground":
currentContent,currentError=ratioError(S,errS,B,errB,debug=debug)
elif WhatToCompute=="Sensitivity":
currentContent,currentError=sensitivity(S,errS,B,errB,debug=debug)
elif WhatToCompute=="SensitivitySigmaB":
currentContent,currentError=sensitivitySigmaB(S,errS,B,errB,debug=debug)
elif WhatToCompute=="Significance":
currentContent,currentError=significance(S,errS,B,errB,debug=debug)
elif WhatToCompute=="SignificanceSigmaB":
currentContent,currentError=significanceSigmaB(S,errS,B,errB,debug=debug)
else:
print "WhatToCompute",WhatToCompute,"not known! Choose between SignalOverBackground, Sensitivity, SensitivitySigmaB, Significance, SignificanceSigmaB. Will ABORT!!!"
assert(False)
if debug:
print "currentContent +/- currentError", "%-.5f +- %-.5f" % (currentContent,currentError)
# done if on WhatToCompute
# add in quadrature
totalContent_squared+=currentContent*currentContent
totalError_squared+=currentError*currentError
# done loop over all the bins in the histogram
if debug:
print "totalContent_squared",totalContent_squared
print "totalError_squared",totalError_squared
total=math.sqrt(totalContent_squared)
error=math.sqrt(totalError_squared)
if debug:
print "total",total
else:
# not add in quadrature
if debug:
print "We will not add AddInQuadrature, so add bins one by one"
S=h_S.Integral(*myrange)
B=h_B.Integral(*myrange)
S,errS=get_histo_integral_error(h_S,myRange=-1,debug=debug)
B,errB=get_histo_integral_error(h_B,myRange=-1,debug=debug)
if WhatToCompute=="SignalOverBackground":
total,error=ratioError(S,errS,B,errB,debug=debug)
elif WhatToCompute=="Sensitivity":
total,error=sensitivity(S,errS,B,errB,debug=debug)
elif WhatToCompute=="SensitivitySigmaB":
total,error=sensitivitySigmaB(S,errS,B,errB,debug=debug)
elif WhatToCompute=="Significance":
total,error=significance(S,errS,B,errB,debug=debug)
elif WhatToCompute=="SignificanceSigmaB":
total,error=significanceSigmaB(S,errS,B,errB,debug=debug)
else:
print "WhatToCompute",WhatToCompute,"not known! Choose between SignalOverBackground, Sensitivity, SensitivitySigmaB, Significance, SignificanceSigmaB. Will ABORT!!!"
assert(False)
# done if on WhatToCompute
# done if AddInQuadrature, so let's write the total
# which was able to be computed in two ways
if output:
print "IncludeUnderflowOverflowBins",IncludeUnderflowOverflowBins,"AddInQuadrature",AddInQuadrature,"WhatToCompute",WhatToCompute,"%-.4f +- %-.4f" % (total,error)
return total,error
# done function
class Poisson:
def __call__( self, x, par ):
n=x[0] # data
e=par[0] # expected, can be b, or s+b, or mu*s+b
if e<10000:
result=TMath.Poisson(n,e)
else:
# better to return a Gauss; so this is where the error is taken into account
result=TMath.Gaus(n,e,math.sqrt(e),ROOT.kTrue)
return result
# done function
# done class
class LogLikelihood:
def __init__(self,histo_s,histo_b,histo_d, debug=False):
self.poisson=Poisson()
self.histo_s=histo_s
self.histo_b=histo_b
self.histo_d=histo_d
self.debug=debug
def __call__( self, x):
if self.debug:
print ""
mu=x[0] # signal parameter strength
result=0.0
# log of product of likelihood for each bin =
# sum of log of likelihood in each bin
# prefer log as we can have very small numbers
# log is natural logarithm
# loop over the bins
for i in xrange(1,self.histo_s.GetNbinsX()+1):
s=self.histo_s.GetBinContent(i)
b=self.histo_b.GetBinContent(i)
d=self.histo_d.GetBinContent(i)
n=d # data
e=mu*s+b # expected
if b<0:
continue
if e<0:
continue
if d<0:
continue
#p=Poisson()
#result+=p.__call__([n],[e])
#result+=Poisson().__call__([n],[e])
#likelihood=self.poisson.__call__([n],[e])
likelihood=TMath.Poisson(n,e)
if self.debug:
print "n,e,l",n,e,likelihood
result+=TMath.Log(likelihood)
# done loop over bins
return result
# done function
# done class
class F_qmu_given_muprime:
def __call__( self, x, par ):
qmu=x[0]
mu=par[0]
muprime=par[1]
sigma=par[2]
arg=math.sqrt(qmu)-(mu-muprime)/sigma
result=0
if qmu>0:
# slide 23 of https://www.pp.rhul.ac.uk/~cowan/stat/weizmann15/cowan_weizmann15_3.pdf
result=0.5*(1.0/math.sqrt(2.0*math.pi))*(1.0/math.sqrt(qmu))*math.exp(-0.5*arg*arg)
else:
# where does this come from?
result=ROOT.Math.normal_cdf((muprime-mu)/sigma,1.0,0.0)
return result
# done function
# done class
class F_qmu_given_mu:
def __call__( self, x):
qmu=x[0]
result=0
if qmu>0:
# slide 23 of https://www.pp.rhul.ac.uk/~cowan/stat/weizmann15/cowan_weizmann15_3.pdf
result=0.5*(1.0/math.sqrt(2.0*math.pi))*(1.0/math.sqrt(qmu))*math.exp(-0.5*qmu)
else:
# where does this come from?
result=0.5
return result
# done function
# done class
# function that takes a histogram, fits it, gets the value of the fit in the middle of the bins
# and fits a new histogram with that
# useful for systematics when the statistical errors are too large to trust the histogram as is
def get_histo_after_fit(histo,fitType="Linear",outputFolder="./",debug=False):
if debug:
print "Start get_histo_after_fit for histoName="+histo.GetName()
histo.SetMinimum(0.4)
histo.SetMaximum(1.6)
result=histo.Clone(histo.GetName()+"_Fit_"+fitType)
if debug:
print "result histo name",result.GetName(),"title",result.GetTitle()
# reset all values to add later the ones after the fit
result.Reset()
# fit original function
canvasname=outputFolder+"/"+histo.GetName()+"_fit_"+fitType
f,fitValues=fit_hist(h=histo,fitRange=[-1,-1],defaultFunction=TF1(),fit=fitType,addMedianInFitInfo=False,plot_option="",doValidationPlot=True,canvasname=canvasname,debug=debug)
debug_fit_function(f,debug=debug)
# the error treatment below assumes the fitType is Linear
assert(fitType=="Linear")
#
par0=f.GetParameter(0)
par1=f.GetParameter(1)
par0Error=f.GetParError(0)
par1Error=f.GetParError(1)
if debug:
print "par0",par0,"par0Error",par0Error,"par1",par1,"par1Error",par1Error
list_sign0=[-1,0,1]
list_sign1=[-1,0,1]
# now set the bins to result
for i in xrange(1,result.GetNbinsX()+1):
binLowEdge=result.GetBinLowEdge(i)
binWidth=result.GetBinWidth(i)
binHighEdge=binLowEdge+binWidth
binCenter=result.GetBinCenter(i)
binCenter2=binLowEdge+0.5*binWidth
assert(binCenter==binCenter2)
if debug:
print "i",i,"edges",binLowEdge,"-",binHighEdge,"enter",binCenter
# evaluate value and error for this bin
error=0.0
f.SetParameters(par0,par1)
value=f.Eval(binCenter)
if debug:
print "value",value
for sign0 in list_sign0:
for sign1 in list_sign1:
f.SetParameters(par0+sign0*par0Error,par1+sign1*par1Error)
valueTemp=f.Eval(binCenter)
diffTemp=abs(valueTemp-value)
if diffTemp>error:
error=diffTemp
# done for loops, we have error
if debug:
print "value",value,"error",error
result.SetBinContent(i,value)
result.SetBinError(i,error)
# done fit over bins
return result
# done function
# https://twiki.cern.ch/twiki/bin/viewauth/AtlasProtected/PdfRecommendations#PDF_uncertainty_prescriptions
# Hessian asymmetric Up, Down, eg. PDF uncertainty prescriptions, Asymmetric Hessian: eg. MSTW/MRST, CT10 MSTW/MRST, CT10
# standard deviation Symmetric, e.g. NNNPDF
def get_systematic_error_from_list_histo_ratio_alt_to_nom(list_input_histo,histoNameSyst="histoSyst",suffixName="Main",debug=False):
nrHistos=len(list_input_histo)
if debug:
print "get_systematic_error_from_list_histo_ratio_alt_to_nom()",nrHistos,"elements"
print "We return Up and down from Hessian asymmetric, like for CT10 PDF"
print "We also return StandardDeviation from symmetric, like for NNNPDF"
assert(len(list_input_histo)>0)
if debug:
print "histoNameSyst",histoNameSyst
# clone the first one and reset it to have the same binings, but zero values
histoSyst=list_input_histo[0].Clone(histoNameSyst)
histoSyst.Reset()
histoSystNrBins=histoSyst.GetNbinsX()
if debug:
print "histoSystNrBins",histoSystNrBins
# list_myType="Hessian_Up,Hessian_Down,AddQuadr_Up,AddQuadr_Down,StdDev_Up,StdDev_Down".split(",")
# list_myType="Max_Up,Max_Down".split(",")
list_myType="Hessian_Up,Hessian_Down,AddQuadr_Up,AddQuadr_Down,StdDev_Up,StdDev_Down,Max_Up,Max_Down".split(",")
dict_myType_histo={}
for myType in list_myType:
histoName=histoNameSyst+"_"+myType+"_"+suffixName
dict_myType_histo[myType]=histoSyst.Clone(histoName)
dict_myType_histo[myType].SetTitle(histoName)
if debug:
print myType,"name",dict_myType_histo[myType].GetName(),"title",dict_myType_histo[myType].GetTitle()
# done loop over type
dict_myType_binSyst={}
# loop over the bins
for i in xrange(1,1+histoSystNrBins):
if debug:
print "i bin",i
maxBinSystSquared=0.0
# for each bin, loop over all the histograms
# (re)set the dictionary of binSyst to zero
for myType in list_myType:
dict_myType_binSyst[myType]=0.0
for j in xrange(0,nrHistos):
if debug:
print "j histo",j
binValue=list_input_histo[j].GetBinContent(i)
# the bins are made of dividing histograms of alternative and nominal
# but if alternative has no bin content in some bin, the ratio is also zero
# and so binSyst becomes -1.0 and adding in quadrature it reaches large values
# so we set binValue to that of the earlier bin
# initially I thought to have it 1.0, meaning zero syst, but that is unphysical
# and use while to go back as many bins as necessary to find a non zero bin
# as maybe more than one bin at the end are empty
my_i=i
while binValue==0:
my_i=my_i-1
binValue=list_input_histo[j].GetBinContent(my_i)
binSyst=binValue-1.0
if debug:
print "binValue",binValue,"binSyst",binSyst
# for Hessian_Up, Hessian_Down
if binSyst>=0:
myTypeHessian="Hessian_Up"
else:
myTypeHessian="Hessian_Down"
binSystSquared=binSyst*binSyst
dict_myType_binSyst[myTypeHessian]+=binSystSquared # add in quadrature to either up or down
# find max value for the Max_Up, Max_Down
if binSystSquared>maxBinSystSquared:
maxBinSystSquared=binSystSquared
# now add in quadrature for the others for both up and down
for myType in list_myType:
if "Hessian" in myType:
None
elif "Max" in myType:
dict_myType_binSyst[myType]=maxBinSystSquared
elif "AddQuadr" in myType or "StdDev" in myType:
dict_myType_binSyst[myType]+=binSystSquared
else:
print "myType",myType,"not known. Choose Hessian_Up,Hessian_Down,AddQuadr_Up,AddQuadr_Down,StdDev_Up,StdDev_Down,Max_Up,Max_Down. Will ABORTT!!!"
assert(False)
# done if
# done loop over histograms
# for this bin take the square root part of adding in quadrature
for myType in list_myType:
if debug:
print "C",myType,dict_myType_binSyst[myType],"after first fill"
if "StdDev" in myType: # for both up and down divide by the number of systematics
dict_myType_binSyst[myType]/=nrHistos
if debug:
print "D",myType,dict_myType_binSyst[myType],"after /nrHistos by StdDev",nrHistos
# for all take the square root
dict_myType_binSyst[myType]=math.sqrt(dict_myType_binSyst[myType])
if debug:
print "E",myType,dict_myType_binSyst[myType],"after sqrt()"
if debug:
print "myType",myType,"total syst",dict_myType_binSyst[myType]
# for *_Up, add to 1, for *_Down subtract from 1
for myType in list_myType:
if "Up" in myType:
dict_myType_binSyst[myType]=1.0+dict_myType_binSyst[myType]
elif "Down" in myType:
dict_myType_binSyst[myType]=1.0-dict_myType_binSyst[myType]
else:
print "In myType",myType,"Up or Down is not found. Will ABORT!!!"
assert(false)
# done if
# done for loop over myType
if debug:
for myType in list_myType:
print "myType",myType,"total syst near 1",dict_myType_binSyst[myType]
# now set these as bin content with no errror in the final histograms
for myType in list_myType:
if debug:
print "myType",myType
dict_myType_histo[myType].SetBinContent(i,dict_myType_binSyst[myType])
dict_myType_histo[myType].SetMinimum(0.4)
dict_myType_histo[myType].SetMaximum(1.6)
# done loop over bins
# now the histograms are ready
if debug:
for myType in list_myType:
print "myType",myType
getBinValues(dict_myType_histo[myType])
return dict_myType_histo
# done function
# example
#sig_h=dict_processType_histo["S"]
#bkg_h=dict_processType_histo["B"]
#if debug:
# getBinValues(sig_h)
# getBinValues(bkg_h)
# list_figureOfMerit=["SignalOverBackground","Sensitivity","Significance","SensitivitySigmaB","SignificanceSigmaB"]
#list_figureOfMerit=["SignificanceSigmaB"]
#a=get_dict_figureOfMerit_histo(sig_h,bkg_h,list_figureOfMerit=list_figureOfMerit,debug=debug)
#h=a["SignificanceSigmaB"]
# histoNameF=h.GetName().replace("S","SignificanceSigmaB")
#plotHistogram(h,plot_option="HIST E",filePath=outputFileFolderSignificance,fileName=fileName,extensions="pdf")
#total,error=add_in_quadrature_bins_of_one_histo(h,IncludeUnderflowOverflowBins=False,debug=False)
#if True:
# print "Value_SignificanceSigmaB %-20s %-20s %.2f +/- %.2f" % (cat,string_processTypeSignal,total,error)
#
def get_dict_figureOfMerit_histo(sig_h,bkg_h,list_figureOfMerit=["SignalOverBackground","Sensitivity","Significance","SensitivitySigmaB","SignificanceSigmaB"],debug=False):
if debug:
print "Calculate histograms for the list of figure of merit",list_figureOfMerit
dict_figureOfMerit_histo={}
for figureOfMerit in list_figureOfMerit:
dict_figureOfMerit_histo[figureOfMerit]=sig_h.Clone(figureOfMerit)
dict_figureOfMerit_histo[figureOfMerit].Reset()
histoName=sig_h.GetName().replace("_S_","_"+figureOfMerit+"_")
dict_figureOfMerit_histo[figureOfMerit].SetName(histoName)
dict_figureOfMerit_histo[figureOfMerit].SetTitle(histoName)
# loop over all the bins of the histograms, including the underflow and overflow
for i in xrange(0,sig_h.GetNbinsX()+2):
s=sig_h.GetBinContent(i)
se=sig_h.GetBinError(i)
b=bkg_h.GetBinContent(i)
be=bkg_h.GetBinError(i)
low=sig_h.GetBinLowEdge(i)
high=sig_h.GetBinLowEdge(i)+sig_h.GetBinWidth(i)
# calculate for this bin the different figures of merit
for figureOfMerit in list_figureOfMerit:
result,error=get_figure_of_merit(s,se,b,be,figureOfMerit=figureOfMerit,debug=debug)
if debug:
print "Bin:",i,"[%.2f-%.2f]" % (low,high), "%-25s" % figureOfMerit,"%-.4f +/- %-.4f" % (result,error),"rel error %","%-.2f" % (ratio(error,result)*100)
dict_figureOfMerit_histo[figureOfMerit].SetBinContent(i,result)
dict_figureOfMerit_histo[figureOfMerit].SetBinError(i,error)
# done loop over all figures of merit
# done loop over bins
if debug:
for figureOfMerit in list_figureOfMerit:
histo=dict_figureOfMerit_histo[figureOfMerit]
getBinValues(histo,debug=debug)
#
return dict_figureOfMerit_histo
# done function
def deltaPhi(phi1,phi2,debug=False):
absDPhi=abs(phi1-phi2)
if absDPhi<math.pi:
deltaPhi=absDPhi
else:
deltaPhi=2*math.pi-absDPhi
if debug:
print "phi1",phi1,"phi2",phi2,"absDPhi",absDPhi,"deltaPhi",deltaPhi
return deltaPhi
# done function
def deltaEta(eta1,eta2,debug=False):
deltaEta=abs(eta1-eta2)
if debug:
print "eta1",eta1,"eta2",eta2,"deltaEta",deltaEta
return deltaEta
# done function
def deltaR(deltaEta,deltaPhi,debug=False):
deltaR=math.sqrt(deltaEta*deltaEta+deltaPhi*deltaPhi)
if debug:
print "deltaEta",deltaEta,"deltaPhi",deltaPhi,"deltaR",deltaR
return deltaR
# done function
| bd10e090470a0aa879c9da02dd25319d5b9d9202 | [
"Markdown",
"Python"
] | 25 | Python | abuzatu/BuzatuPython | 4619a2d540a12a961ae7ce0ffe67de2c8de934e3 | 2ca7eff77e5bca336a092dc3cf652416a6ad34a7 |
refs/heads/master | <repo_name>atd-schubert/talk-electron-meetup<file_sep>/md/pre-requirements.md
### Pre-Requirements
* [Node.js](https://nodejs.org/en/)
### Pre-Requirements Ubuntu and Debian
```bash
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs
```
<file_sep>/md/applications-with-js-in-general.md
## Application development with JavaScript
**An Overview**
### Classic
#### Browser and server
* Browser runs JavaScript
* Server just have to communicate over HTTP protocol
* Communication over HTTP requests
It is "Just a browser". Share a window with other sites. Window is not fully configurable<!-- .element: class="fragment fade-up" -->
Note: Controls only the content of the window, but not the window itself
### Mobile devices
#### Cordova
* WebView runs JavaScript
* Excerpts Plugins!
* Plugins are platform specific
* Every platform needs a different language
* Communication over an IPC or HTTP requests to external servers
### Desktop
#### Electron
* Main-Thread is running on Node.JS
* Renderer-Thread in a Chromium-like WebView
* Both run with JavaScript
* Communication over an IPC or HTTP requests to servers
### Desktop
#### Electron
* [GitHub](https://github.com/electron/electron/)
* [Documentation](https://electronjs.org/docs)
<file_sep>/md/summary.md
## Summary
### Pros
* Build for every desktop OS
* ... only with Node.js
* Common-JS ready in both threads (`require(...);`)
## Summary
**Study the architecture of IPC pattern!**
<file_sep>/md/build.md
## Build your application
### Install packager
```bash
npm install --save-dev electron-packager
```
### Synopsis of the packager
```
npx electron-packager
<location of project>
<name of project>
<platform>
<architecture>
<electron version>
<optional options>
```
### Enhance script tasks in package.json
*just the important parts for this step*
```json
{
"scripts": {
"build": "rm -Rf dist && mkdir -p dist && cd dist && electron-packager ../ --all"
}
}
```
### Build the app
```bash
npm run build
```
<file_sep>/md/styled-app.md
## Let's style the local application
### Initialize Project
Initialize the project according the previous local-app
### Install your Web-UI of choice
Example for bootstrap
```bash
npm install --save bootstrap popper.js jquery-slim
```
### Enhance HTML index
Load additional dependencies
`www/index.html`
```html
<head>
<!-- ... -->
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.min.css">
<script src="../node_modules/jquery-slim/dist/jquery.slim.js"></script>
<script src="../node_modules/popper.js/dist/popper.min.js"></script>
<script src="../node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
</head>
```
### Enhance HTML index
Rewrite the body
`www/index.html`
```html
<body>
<div class="container">
<h1>Styled example Application</h1>
<p>You can put every content on this website like you prefer, including scripts, styles and media.</p>
<div class="alert alert-secondary">
<p>This app is created with
<a href="https://github.com/electron/electron/">Electron</a>.
</p>
</div>
</div>
</body>
```
### Start the app
```bash
npm start
```
<file_sep>/README.md
# Streams in JavaScript
#### Talk at WebTech Meetup Bonn
These are the slides from my presentation. You will find the slides as [PDF export](slides.pdf) and the content as
markdown in the [md folder](./md).
### Presentation Framework
The presentation was made with [Reveal.js](http://lab.hakim.se/reveal-js/).
<file_sep>/apps/ipc-app/www/templates.js
function breadCrumb(path) {
return path.split("/").map((dirname, index, arr) => {
if (index === 0) {
dirname = "/";
}
return `<li class="breadcrumb-item"><a href="#" data-path="${ arr.slice(0, index + 1).join("/") || "/" }">${ dirname }</a></li>`;
});
}
function list(entries, type) {
if (type) {
entires = entries.filter((entry) => { return type === entry.type; });
}
return entires.map((fileEntry) => {
return `<li class="list-group-item"><a href="#" data-path="${ fileEntry.dir }/${ fileEntry.base }">${ fileEntry.name }</a></li>`;
});
}
module.exports.breadCrumb = breadCrumb;
module.exports.list = list;
<file_sep>/md/ipc-app.md
## Use IPC Channels
**Idea**: A file browser for images
### Initialize Project
Initialize the project according the previous styled-app
### Directory information service
Promised based module to get a summary for a directory
**TL;DR**
`electron/directory-info.js`
### Directory information service
Interface of `electron/directory-info.js` response
```typescript
interface IDirectoryInfo {
root: string;
dir: string;
base: string;
ext: string;
name: string;
type: "file" | "image" | "directory";
}
```
### Directory information service
Example respone of `electron/directory-info.js`
```json
[{
"root": "/",
"dir": "/path/to/dir",
"base": "package.json",
"ext": ".json",
"name": "package",
"type": "file"
}]
```
### Implement IPC on main thread
Add ipc-listner
`electron/index.js`
```js
const ipcMain = require("electron").ipcMain;
const directoryInfo = require("./directory-info").directoryInfo;
ipcMain.on("list-directory", (context, { path }) => {
path = path || process.cwd();
directoryInfo(path).then((entries) => {
context.sender.send("list-directory-response", { path, entries });
}).catch((err) => {
context.sender.send("list-directory-error", err);
});
});
```
### Enhance HTML
Restructure body of HTML
`www/index.html`
```html
<nav aria-label="breadcrumb">
<ol class="breadcrumb" id="breadcrumb"></ol>
</nav>
<div class="container">
<h3>Sub folders</h3>
<ul class="list-group" id="subfolders"></ul>
<h3>Images</h3>
<ul class="list-group" id="images"></ul>
</div>
```
### Create a simple templating engine for the renderer
Breadcrumb menu
`www/templates.js`
```js
function breadCrumb(path) {
return path.split("/").map((dirname, index, arr) => {
if (index === 0) {
dirname = "/";
}
return `<li class="breadcrumb-item"><a href="#" data-path="${ arr.slice(0, index + 1).join("/") || "/" }">${ dirname }</a></li>`;
});
}
```
### Create a simple templating engine for the renderer
Generic list
`www/templates.js`
```js
function list(entries, type) {
if (type) {
entires = entries.filter((entry) => { return type === entry.type; });
}
return entires.map((fileEntry) => {
return `<li class="list-group-item"><a href="#" data-path="${ fileEntry.dir }/${ fileEntry.base }">${ fileEntry.name }</a></li>`;
});
}
```
### Write IPC listeners on renderer
Load dependencies
`www/ipc-listner.js`
```js
const ipcRenderer = require("electron").ipcRenderer;
const breadCrumbTemplate = require("./templates").breadCrumb;
const listTemplate = require("./templates").list;
```
### Write IPC listeners on renderer
Register listeners and send initial request
`www/ipc-listner.js`
```js
ipcRenderer.on("list-directory-response", (context, response) => {
document.getElementById("breadcrumb")
.innerHTML = breadCrumbTemplate(response.path).join("");
document.getElementById("subfolders")
.innerHTML = listTemplate(response.entries, "directory").join("") || "<p>None</p>";
document.getElementById("images")
.innerHTML = listTemplate(response.entries, "image").join("") || "<p>None</p>";
});
ipcRenderer.send("list-directory", {});
```
### Write DOM listeners on renderer
Register listeners and send initial request
`www/event-listner.js`
```js
const $ = require("jquery-slim");
const ipcRenderer = require("electron").ipcRenderer;
$(document).on("click", "#breadcrumb a, #subfolders a", (event) => {
ipcRenderer.send("list-directory", { path: event.target.getAttribute("data-path") });
});
$(document).on("click", "#images a", (event) => {
ipcRenderer.send("show-file", { path: event.target.getAttribute("data-path") });
});
```
### Create JavaScript index for renderer
Load additional dependencies
`www/index.js`
```js
require("./ipc-listener");
require("./event-listener");
```
### Enhance HTML index
Load renderer application
`www/index.html`
```html
<head>
<!-- ... -->
<script src="index.js"></script>
</head>
```
### Add an image preview
Open another window from main thread
`electron/index.js`
```js
function createFilePreviewWindow (srcPath) {
win = new BrowserWindow({width: 400, height: 300});
win.loadURL(url.format({
pathname: srcPath,
protocol: 'file:',
slashes: true
}));
win.setAlwaysOnTop(true, "modal-panel");
win.on('closed', () => {
win = null;
});
}
```
### Add an image preview
Register on IPC channel
`electron/index.js`
```js
ipcMain.on("show-file", (context, { path }) => {
createFilePreviewWindow(path);
});
```
### Start the app
```bash
npm start
```
<file_sep>/md/simple-web-app.md
## First steps - a simple Web-App
### Initialize Project
```bash
mkdir mapbender-desktop
cd mapbender-desktop
npm init # Answer the CLI. Use "electron/index.js" as entry point...
npm install --save-dev electron # add electron also as peer dependency!
```
### Edit package.json
*Just the important lines*
`package.json`
```json
{
"main": "electron/index.js",
"scripts": {
"start": "electron ./"
},
"devDependencies": {
"electron": "^1.7.11"
},
"peerDependencies": {
"electron": "^1.7.11"
}
}
```
### Write JavaScript file
Import dependencies
`electron/index.js`
```javascript
const app = require("electron").app;
const BrowserWindow = require("electron").BrowserWindow;
```
### Write JavaScript file
Create a reference for your window
`electron/index.js`
```javascript
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let win;
```
### Write JavaScript file
Write `createWindow` function
`electron/index.js`
```javascript
function createWindow () {
// Create the browser window.
win = new BrowserWindow({width: 1000, height: 800});
// and load the index.html of the app.
win.loadURL("https://demo.mapbender3.org/");
// Open the DevTools.
// win.webContents.openDevTools();
// Emitted when the window is closed.
win.on('closed', () => {
// Dereference the window object, usually you would store windows
// in an array if your app supports multi windows, this is the time
// when you should delete the corresponding element.
win = null;
});
}
```
### Write JavaScript file
Register default `EventListener`s
`electron/index.js`
```javascript
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
app.on('ready', createWindow);
// Quit when all windows are closed.
app.on('window-all-closed', () => {
app.quit();
});
```
### Write JavaScript file
Enhance `EventListener`s for usage on macs
`electron/index.js`
```javascript
// Quit when all windows are closed.
app.on('window-all-closed', () => { // Notice: Rewrite!!!
// On macOS it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q
if (process.platform !== 'darwin') {
app.quit();
}
});
app.on('activate', () => {
// On macOS it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (win === null) {
createWindow();
}
});
```
### Start the app
```bash
npm start
```
<file_sep>/md/simple-local-app.md
## A local application
### Initialize Project
Initialize the project according the previous web-app
### Base directory for the renderer
```bash
mkdir www
```
### Write HTML index
`www/index.html`
```html
<html>
<head><title>Local App with Electron</title></head>
<body><p>
This app is created with
<a href="https://github.com/electron/electron/">Electron</a>.
</p></body>
</html>
```
### Write JavaScript file
Enhance dependencies
`electron/index.js`
```javascript
const path = require("path");
const url = require("url");
```
### Write JavaScript file
Load created HTML file in WebView
`electron/index.js`
```javascript
function createWindow () {
// ...
win.loadURL(url.format({
pathname: path.join(__dirname, '../www/index.html'),
protocol: 'file:',
slashes: true
}));
// ...
}
```
### Start the app
```bash
npm start
```
<file_sep>/md/about.md
### WhereGroup
**Thanks to Olaf and Peter to host this meetup!**
### WhereGroup
* OpenSource
* WebGIS<!-- .element: class="fragment fade-up" -->
### WhereGroup
* Products
* Consulting
* Development
* Support
### WhereGroup
##### Customers
* Deutsche Bahn
* Vattenfall
* Administration
### WhereGroup
#### Products
* Mapbender
* Metador<!-- .element: class="fragment fade-up" -->
* Mops<!-- .element: class="fragment fade-up" -->
### WhereGroup
#### Involvement
* FOSSGIS
* FOSS4G<!-- .element: class="fragment fade-up" -->
* OSGeo<!-- .element: class="fragment fade-up" -->
* OGC<!-- .element: class="fragment fade-up" -->
### WhereGroup
##### Locations
* Bonn
* Berlin
* Freiburg
### WhereGroup
##### By the way
*We are hiring*
[www.wheregroup.com/de/jobs_karriere](https://www.wheregroup.com/de/jobs_karriere)
### Speaker
<NAME>
* Head of development [WhereGroup](https://www.wheregroup.com/)
* Local-Team [FOSSGIS Conference 2018 Bonn](https://www.fossgis-konferenz.de/)
* [OSGeo](https://www.osgeo.org/) Charter Member
* Maintainer of the [Node.JS showcase application](https://foundation.nodejs.org/resources/app-showcase) [YAGA](https://yagajs.org/)
### Topic
#### Electron
Build Desktop Applications with Node.JS
| 951eb4d974569686b4d4f42bf7c1ff223fae75ba | [
"Markdown",
"JavaScript"
] | 11 | Markdown | atd-schubert/talk-electron-meetup | 8401cdddd577ed4cc75c963a1d1bf056e89fc346 | 984fb76e5716dfd1d237c3eb71a10692a83589bf |
refs/heads/master | <file_sep>const FOOD_AMOUNT = 100;
let canvas = document.getElementById('game');
let ctx = canvas.getContext('2d');
fitToScreen(canvas);
window.addEventListener('resize', function () {
fitToScreen(canvas);
});
let food = [];
for (let i = 0; i < FOOD_AMOUNT; i++) {
food.push(new Food(ctx, getRandom(10, canvas.width), getRandom(10, canvas.height), 10, 'green'));
}
let p = new Player(ctx, 20, 20, 35, 'shibainu.png');
function render() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
for (let i = 0; i < food.length; i++) {
if (circleCollision(p, food[i])) {
food.splice(i, 1);
i--;
} else {
food[i].draw();
}
}
p.update();
p.draw();
requestAnimationFrame(render);
}
render();
canvas.addEventListener('mousemove', function (e) {
p.targetX = e.clientX;
p.targetY = e.clientY;
});<file_sep>class Circle {
constructor (ctx, x, y, r) {
this.ctx = ctx;
this.x = x;
this.y = y;
this.r = r;
}
draw () {
this.ctx.beginPath();
this.ctx.arc(this.x, this.y, this.r, 0, Math.PI * 2);
this.ctx.fill();
}
};
class Food extends Circle {
constructor (ctx, x, y, r, color) {
super(ctx, x, y, r);
this.color = color;
}
draw () {
this.ctx.fillStyle = this.color;
super.draw();
}
};
class Player extends Circle {
constructor (ctx, x, y, r, imgSrc, speed = 5) {
super(ctx, x, y, r);
this.img = document.createElement('img');
this.img.src = imgSrc;
this.speed = speed;
this.targetX = 0;
this.targetY = 0;
}
update () {
if (Math.abs(this.targetX - this.x) > this.speed || Math.abs(this.targetY - this.y) > this.speed) {
let a = Math.atan2(this.targetY - this.y, this.targetX - this.x) / Math.PI * 180;
this.x = this.x + this.speed * Math.cos(a * (Math.PI / 180));
this.y = this.y + this.speed * Math.sin(a * (Math.PI / 180));
}
}
draw () {
this.ctx.drawImage(this.img, this.x - this.r, this.y - this.r, this.r * 2, this.r * 2);
}
};<file_sep># Canvas Game
### ES6 is required
## Задачи
1. Рандомный цвет еды (ф-я getRandomColor())
2. Поедание еды (коллизия)
3. Рост игрока с набором счёта.
4. NEW: Замедление игрока с набором счёта.
5. Отображение счёта.
6. Отображение времени.
7. Опасные колючки (красные).
8. Появление новой пищи.
9. Красиво отображать окончание игры.
10. Кнопка начать новую игру
11. Подписывать ник игрока на персонаже.
12. Показывать FPS
13. Использовать для отображения данных DOM вместо canvas.
14. Добавить колючкам возможность преследовать игрока.
| a77d633d16d5c628183d06af93f800062fb39f97 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | KoroLion/CanvasGame | 8c4fc5d09089c1fd157e6b31bd870cb16ad1d1b9 | 576868995fb85450a9fb144089791740296702b5 |
refs/heads/main | <repo_name>RionaKawahara/coronavirus_nintendo<file_sep>/定数項ダミーと係数ダミーによる構造変化の検定.R
data1 <- read.table("(10)1keisu.csv",header = TRUE, sep =",")
data1
plot(data1$X, data1$Y,xlab="X",ylab="Y",main="係数ダミー(+定数項ダミー)")
fm0 <- lm(Y ~ X, data = data1)
abline(fm0)
summary(fm0)
fm1 <- lm(Y ~ X + D + DX, data = data1)
summary(fm1) | 3ce00925479ea31e4deb92ab8ff4f66f76e7fdd3 | [
"R"
] | 1 | R | RionaKawahara/coronavirus_nintendo | 70cbfab66a01171f247f96ec79b0463afe079fb4 | 46c396ca3dcf3aa5ffb3a2ac731b0177f5a12c46 |
refs/heads/master | <file_sep>Lucene App
==========
<file_sep>import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import mypackage.main.prototype.Site;
public class JsonSerializeTest {
public static void main(String[] args) {
Site site = new Site();
site.title = "test title!";
site.content = "sample content!";
ObjectMapper mapper = new ObjectMapper();
try {
String json = mapper.writeValueAsString(site);
System.out.println(json);
} catch (JsonProcessingException e) {
System.out.println(e.getClass() + " : " + e.getMessage());
}
}
}
<file_sep>package mypackage.main;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import mypackage.main.prototype.Site;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.document.TextField;
import java.io.IOException;
import java.util.ArrayList;
public class DataExtractor {
public static ArrayList<Document> extractSites(String restDocument) throws IOException {
ObjectMapper mapper = new ObjectMapper();
ArrayList<Site> sites = mapper.readValue(restDocument, new TypeReference<ArrayList<Site>>(){});
ArrayList<Document> docs = new ArrayList<Document>();
for (Site site : sites) {
Document doc = new Document();
doc.add(new TextField("title", site.title, Field.Store.YES));
doc.add(new TextField("content", site.content, Field.Store.YES));
docs.add(doc);
}
return docs;
}
public static String toResponseString(ArrayList<Document> documents) throws JsonProcessingException {
ObjectMapper mapper = new ObjectMapper();
ArrayList<Site> sites = new ArrayList<Site>();
System.out.println(documents.size());
ArrayNode arrayNode = mapper.createArrayNode();
for (Document doc : documents) {
Site site = new Site();
site.title = doc.getField("title").stringValue();
site.content = doc.getField("content").stringValue();
arrayNode.add(mapper.valueToTree(site));
}
return arrayNode.toString();
}
public static String toResponseSuggestions(ArrayList<String> suggestions) throws JsonProcessingException {
ObjectMapper mapper = new ObjectMapper();
ArrayNode arrayNode = mapper.createArrayNode();
for (String suggestion : suggestions) {
arrayNode.add(suggestion);
}
return arrayNode.toString();
}
}
| 889c2cc2d851b2559dacf4ca0daf596d21016f8c | [
"Markdown",
"Java"
] | 3 | Markdown | clitetailor/lucene-search-app | d6edca2dc1437db1dc99b2739947490ecd4b4c7c | 92c42296f915063cdb0eabc8a40af34a4b59d6d4 |
refs/heads/master | <file_sep>delta-papeleria
===============
sistema de compra y venta simple para una papeleria
<file_sep>/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package accesoDato;
import java.util.List;
import org.hibernate.HibernateException;
import org.hibernate.Transaction;
import org.hibernate.classic.Session;
/**
*
* @author vehimar
*/
public class DataAccesObject {
private HibernateUtil hibernate;
public DataAccesObject() {
hibernate = new HibernateUtil();
}
public void insertarObject(Object objeto) {
Transaction transaction = null;
try {
Session session = (Session) hibernate.currentSession();
transaction = session.beginTransaction();
transaction.begin();
session.persist(objeto);
transaction.commit();
hibernate.closeSession();
} catch (HibernateException e) {
transaction.rollback();
}
}
public Object getObject(String sql) {
Transaction transaction = null;
List lista = null;
try {
Session session = (Session) hibernate.currentSession();
transaction = session.beginTransaction();
transaction.begin();
lista = session.find(sql);
transaction.commit();
hibernate.closeSession();
} catch (Exception e) {
transaction.rollback();
}
if (lista.isEmpty()) {
return null;
} else {
return lista.get(0);
}
}
public List<Object> listaObject(String sql) {
Transaction transaction = null;
List lista = null;
try {
Session session = (Session) hibernate.currentSession();
transaction = session.beginTransaction();
transaction.begin();
lista = session.find(sql);
transaction.commit();
hibernate.closeSession();
} catch (Exception e) {
transaction.rollback();
return null;
}
return lista;
}
public void modificarObject(Object object) {
Transaction transaction = null;
try {
Session session = (Session) hibernate.currentSession();
session = (Session) hibernate.currentSession();
transaction = session.beginTransaction();
transaction.begin();
session.update(object);
transaction.commit();
hibernate.closeSession();
} catch (HibernateException e) {
transaction.rollback();
}
}
public void eliminarObject(Object object) {
Transaction transaction = null;
try {
Session session = (Session) hibernate.currentSession();
session = (Session) hibernate.currentSession();
transaction = session.beginTransaction();
transaction.begin();
session.delete(object);
transaction.commit();
hibernate.closeSession();
} catch (HibernateException e) {
transaction.rollback();
}
}
public List<Object> listarObject(String Tabla) {
Transaction transaction = null;
List result = null;
String sentencia = "from " + Tabla;
try {
Session session = (Session) hibernate.currentSession();
session = (Session) hibernate.currentSession();
transaction = session.beginTransaction();
result = session.find(sentencia);
transaction.commit();
hibernate.closeSession();
} catch (HibernateException e) {
transaction.rollback();
return null;
}
return result;
}
}
<file_sep>/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package negocio;
import accesoDato.Cliente;
import accesoDato.DataAccesObject;
import java.util.LinkedList;
import java.util.List;
/**
*
* @author vehimar
*/
public class NCliente {
private DataAccesObject DAO;
private Cliente cliente;
private static int ERROR_NOMBRE = 0;
private static int ERROR_ID = 1;
/**
* Inicializa la clase NCliente
*/
public NCliente() {
this.DAO = new DataAccesObject();
this.cliente = new Cliente();
}
/**
* agrea un nuevo cliente al catalago de cliente
*
* @param nombre
*/
public void agregar(String nombre) {
if (!nombre.isEmpty()) {
cliente.setId(null);
cliente.setNombre(nombre);
DAO.insertarObject(cliente);
} else {
}
}
/**
* retorna un cliente,buscandolo por el nombre
*
* @param nombre
* @return
*/
public Cliente obtener(String nombre) {
String sql = "from Cliente where nombre like '%" + nombre + "%'";
return (Cliente) DAO.getObject(sql);
}
/**
* retorna un cliente, buscando por el id
*
* @param id
* @return
*/
public Cliente obtener(Integer id) {
String sql = "from Cliente where id = " + id;
return (Cliente) DAO.getObject(sql);
}
/**
* retorna una LinkdedList de todos los clientes
*
* @return
*/
public LinkedList<Cliente> listar() {
LinkedList<Cliente> result = new LinkedList<>();
List<Object> lista = DAO.listarObject("Cliente");
for (int i = 0; i < lista.size(); i++) {
Cliente auxLugar = (Cliente) lista.get(i);
result.add(auxLugar);
}
return result;
}
/**
* modifica, un cliente
*
* @param id
* @param nombre
*/
public void modificar(Integer id, String nombre) {
cliente.setId(id);
cliente.setNombre(nombre);
DAO.modificarObject(cliente);
}
public static void main(String[] args) {
NCliente ncliente = new NCliente();
LinkedList<Cliente> lista = ncliente.listar();
System.out.println(lista.size());
}
}
<file_sep>package accesoDato;
// Generated 20-jun-2014 23:45:39 by Hibernate Tools 3.2.1.GA
import java.util.HashSet;
import java.util.Set;
/**
* Producto generated by hbm2java
*/
public class Producto implements java.io.Serializable {
private Integer id;
private String nombre;
private int stock;
private Set<Detalleventa> detalleventas = new HashSet<Detalleventa>(0);
private Set<Detallecompra> detallecompras = new HashSet<Detallecompra>(0);
public Producto() {
}
public Producto(String nombre, int stock) {
this.nombre = nombre;
this.stock = stock;
}
public Producto(String nombre, int stock, Set<Detalleventa> detalleventas, Set<Detallecompra> detallecompras) {
this.nombre = nombre;
this.stock = stock;
this.detalleventas = detalleventas;
this.detallecompras = detallecompras;
}
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public String getNombre() {
return this.nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public int getStock() {
return this.stock;
}
public void setStock(int stock) {
this.stock = stock;
}
public Set<Detalleventa> getDetalleventas() {
return this.detalleventas;
}
public void setDetalleventas(Set<Detalleventa> detalleventas) {
this.detalleventas = detalleventas;
}
public Set<Detallecompra> getDetallecompras() {
return this.detallecompras;
}
public void setDetallecompras(Set<Detallecompra> detallecompras) {
this.detallecompras = detallecompras;
}
}
<file_sep>package accesoDato;
// Generated 20-jun-2014 23:45:39 by Hibernate Tools 3.2.1.GA
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* Compra generated by hbm2java
*/
public class Compra implements java.io.Serializable {
private Integer id;
private Date fecha;
private String nombreProveedor;
private Set<Detallecompra> detallecompras = new HashSet<Detallecompra>(0);
public Compra() {
}
public Compra(Date fecha) {
this.fecha = fecha;
}
public Compra(Date fecha, String nombreProveedor, Set<Detallecompra> detallecompras) {
this.fecha = fecha;
this.nombreProveedor = nombreProveedor;
this.detallecompras = detallecompras;
}
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public Date getFecha() {
return this.fecha;
}
public void setFecha(Date fecha) {
this.fecha = fecha;
}
public String getNombreProveedor() {
return this.nombreProveedor;
}
public void setNombreProveedor(String nombreProveedor) {
this.nombreProveedor = nombreProveedor;
}
public Set<Detallecompra> getDetallecompras() {
return this.detallecompras;
}
public void setDetallecompras(Set<Detallecompra> detallecompras) {
this.detallecompras = detallecompras;
}
}
<file_sep>package accesoDato;
// Generated 20-jun-2014 23:45:39 by Hibernate Tools 3.2.1.GA
/**
* Detalleventa generated by hbm2java
*/
public class Detalleventa implements java.io.Serializable {
private int id;
private Venta venta;
private Producto producto;
private int preciounidad;
private int cantidad;
public Detalleventa() {
}
public Detalleventa(int id, Venta venta, Producto producto, int preciounidad, int cantidad) {
this.id = id;
this.venta = venta;
this.producto = producto;
this.preciounidad = preciounidad;
this.cantidad = cantidad;
}
public int getId() {
return this.id;
}
public void setId(int id) {
this.id = id;
}
public Venta getVenta() {
return this.venta;
}
public void setVenta(Venta venta) {
this.venta = venta;
}
public Producto getProducto() {
return this.producto;
}
public void setProducto(Producto producto) {
this.producto = producto;
}
public int getPreciounidad() {
return this.preciounidad;
}
public void setPreciounidad(int preciounidad) {
this.preciounidad = preciounidad;
}
public int getCantidad() {
return this.cantidad;
}
public void setCantidad(int cantidad) {
this.cantidad = cantidad;
}
}
| 962b997ec45ac0c1368afbfe5e657213b52b9117 | [
"Markdown",
"Java"
] | 6 | Markdown | Ikaru1/delta-papeleria | 701436feeb4a670a79c873345f6ae53a63847540 | 7c352aba954a5d931d1716455aaf9f3c1120fb8a |
refs/heads/master | <repo_name>GauravDhawale/PortFolio<file_sep>/Script/script.js
var AllP=document.getElementById("All");
var MobileP=document.getElementById("Mobile");
var WebP=document.getElementById("Web");
var DesktopP=document.getElementById("Desktop");
var Fashion=document.getElementById("Fashion");
var Food=document.getElementById("FoodB");
var Travel=document.getElementById("Travel");
var FApp=document.getElementById("FashionA");
var AB=document.getElementById("AB");
var FHR=document.getElementById("FHR");
var Hl=document.getElementById("Hlink");
var Al=document.getElementById("Alink");
var Rl=document.getElementById("Rlink");
var Sl=document.getElementById("Slink");
var Pl=document.getElementById("Plink");
var Cl=document.getElementById("Clink");
var Hml=document.getElementById("Hmlink");
var Aml=document.getElementById("Amlink");
var Rml=document.getElementById("Rmlink");
var Sml=document.getElementById("Smlink");
var Pml=document.getElementById("Pmlink");
var Cml=document.getElementById("Cmlink");
var Home=document.getElementById("Home");
var About=document.getElementById("about");
var Resume=document.getElementById("Resume");
var Service=document.getElementById("Service");
var Portfolio=document.getElementById("Portfolio");
var Contact=document.getElementById("Contact");
var opennav=document.getElementById("open-n");
var closenav=document.getElementById("close-n");
var nav=document.getElementById("deskdiv");
opennav.addEventListener("click",()=>{
nav.style.transform="translateX(0)";
closenav.style.display="block";
opennav.style.display="none";
});
closenav.addEventListener("click",()=>{
nav.style.transform="translateX(-13rem)";
opennav.style.display="block";
closenav.style.display="none";
});
WebP.addEventListener("click",()=>{
// Fashion.style.display="flex";
// Food.style.display="flex";
// Travel.style.display="flex";
// FApp.style.display="none";
// AB.style.display="none";
Fashion.classList.add("d-flex");
Fashion.classList.remove("d-none");
Food.classList.add("d-flex");
Food.classList.remove("d-none");
Travel.classList.add("d-flex");
Travel.classList.remove("d-none");
FApp.classList.add("d-none");
FApp.classList.remove("d-flex");
AB.classList.add("d-none");
AB.classList.remove("d-flex");
FHR.classList.add("d-flex");
FHR.classList.remove("d-none");
WebP.classList="active";
MobileP.classList-="active";
AllP.classList-="active";
DesktopP.classList-="active";
})
AllP.addEventListener("click",()=>{
Fashion.classList.add("d-flex");
Fashion.classList.remove("d-none");
Food.classList.add("d-flex");
Food.classList.remove("d-none");
Travel.classList.add("d-flex");
Travel.classList.remove("d-none");
FApp.classList.add("d-flex");
FApp.classList.remove("d-none");
AB.classList.add("d-flex");
AB.classList.remove("d-none");
FHR.classList.add("d-flex");
FHR.classList.remove("d-none");
WebP.classList-="active";
MobileP.classList-="active";
AllP.classList="active";
DesktopP.classList-="active";
})
MobileP.addEventListener("click",()=>{
Fashion.classList.add("d-none");
Fashion.classList.remove("d-flex");
Food.classList.add("d-none");
Food.classList.remove("d-flex");
Travel.classList.add("d-none");
Travel.classList.remove("d-flex");
FApp.classList.add("d-flex");
FApp.classList.remove("d-none");
AB.classList.add("d-none");
AB.classList.remove("d-flex");
FHR.classList.add("d-none");
FHR.classList.remove("d-flex");
WebP.classList-="active";
MobileP.classList="active";
AllP.classList-="active";
DesktopP.classList-="active";
})
DesktopP.addEventListener("click",()=>{
Fashion.classList.add("d-none");
Fashion.classList.remove("d-flex");
Food.classList.add("d-none");
Food.classList.remove("d-flex");
Travel.classList.add("d-none");
Travel.classList.remove("d-flex");
FApp.classList.add("d-none");
FApp.classList.remove("d-flex");
AB.classList.add("d-flex");
AB.classList.remove("d-none");
FHR.classList.add("d-none");
FHR.classList.remove("d-flex");
WebP.classList-="active";
MobileP.classList-="active";
AllP.classList-="active";
DesktopP.classList="active";
})
Hl.addEventListener("click",()=>{
Home.style.opacity="1";
Home.style.zIndex="1";
Contact.style.opacity="0";
Contact.style.zIndex="0";
About.style.opacity="0";
About.style.zIndex="0";
Resume.style.opacity="0";
Resume.style.zIndex="0";
Service.style.opacity="0";
Service.style.zIndex="0";
Portfolio.style.opacity="0";
Portfolio.style.zIndex="0";
Hl.getElementsByTagName("p")[0].style.textShadow="0 0 2px rgb(231, 184, 96)";
Hl.getElementsByTagName("i")[0].style.fontWeight="600";
Hl.getElementsByTagName("p")[0].style.fontWeight="600";
Al.getElementsByTagName("p")[0].style.textShadow="none";
Al.getElementsByTagName("i")[0].style.fontWeight="100";
Al.getElementsByTagName("p")[0].style.fontWeight="100";
Sl.getElementsByTagName("p")[0].style.textShadow="none";
Sl.getElementsByTagName("i")[0].style.fontWeight="100";
Sl.getElementsByTagName("p")[0].style.fontWeight="100";
Rl.getElementsByTagName("p")[0].style.textShadow="none";
Rl.getElementsByTagName("i")[0].style.fontWeight="100";
Rl.getElementsByTagName("p")[0].style.fontWeight="100";
Pl.getElementsByTagName("p")[0].style.textShadow="none";
Pl.getElementsByTagName("i")[0].style.fontWeight="100";
Pl.getElementsByTagName("p")[0].style.fontWeight="100";
Cl.getElementsByTagName("p")[0].style.textShadow="none";
Cl.getElementsByTagName("i")[0].style.fontWeight="100";
Cl.getElementsByTagName("p")[0].style.fontWeight="100";
Hl.getElementsByTagName("p")[0].style.color="rgb(231, 184, 96)";
Al.getElementsByTagName("p")[0].style.color="white";
Sl.getElementsByTagName("p")[0].style.color="white";
Pl.getElementsByTagName("p")[0].style.color="white";
Rl.getElementsByTagName("p")[0].style.color="white";
Cl.getElementsByTagName("p")[0].style.color="white";
Hl.getElementsByTagName("i")[0].style.color="rgb(231, 184, 96)";
Al.getElementsByTagName("i")[0].style.color="white";
Sl.getElementsByTagName("i")[0].style.color="white";
Pl.getElementsByTagName("i")[0].style.color="white";
Rl.getElementsByTagName("i")[0].style.color="white";
Cl.getElementsByTagName("i")[0].style.color="white";
Hl.getElementsByTagName("p")[0].style.fontSize="1rem";
Al.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Rl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Sl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Pl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Cl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Hl.getElementsByTagName("i")[0].style.fontSize="1rem";
Al.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Rl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Sl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Pl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Cl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
nav.style.transform="translateX(-13rem)";
closenav.style.display="none";
opennav.style.display="block";
})
Al.addEventListener("click",()=>{
Home.style.opacity="0";
Home.style.zIndex="0";
Contact.style.opacity="0";
Contact.style.zIndex="0";
About.style.opacity="1";
About.style.zIndex="1";
Resume.style.opacity="0";
Resume.style.zIndex="0";
Service.style.opacity="0";
Service.style.zIndex="0";
Portfolio.style.opacity="0";
Portfolio.style.zIndex="0";
Hl.getElementsByTagName("p")[0].style.textShadow="none";
Hl.getElementsByTagName("i")[0].style.fontWeight="100";
Hl.getElementsByTagName("p")[0].style.fontWeight="100";
Al.getElementsByTagName("p")[0].style.textShadow="0 0 2px rgb(231, 184, 96)";
Al.getElementsByTagName("i")[0].style.fontWeight="600";
Al.getElementsByTagName("p")[0].style.fontWeight="600";
Sl.getElementsByTagName("p")[0].style.textShadow="none";
Sl.getElementsByTagName("i")[0].style.fontWeight="100";
Sl.getElementsByTagName("p")[0].style.fontWeight="100";
Rl.getElementsByTagName("p")[0].style.textShadow="none";
Rl.getElementsByTagName("i")[0].style.fontWeight="100";
Rl.getElementsByTagName("p")[0].style.fontWeight="100";
Pl.getElementsByTagName("p")[0].style.textShadow="none";
Pl.getElementsByTagName("i")[0].style.fontWeight="100";
Pl.getElementsByTagName("p")[0].style.fontWeight="100";
Cl.getElementsByTagName("p")[0].style.textShadow="none";
Cl.getElementsByTagName("i")[0].style.fontWeight="100";
Cl.getElementsByTagName("p")[0].style.fontWeight="100";
Hl.getElementsByTagName("p")[0].style.color="white";
Al.getElementsByTagName("p")[0].style.color="rgb(231, 184, 96)";
Sl.getElementsByTagName("p")[0].style.color="white";
Pl.getElementsByTagName("p")[0].style.color="white";
Rl.getElementsByTagName("p")[0].style.color="white";
Cl.getElementsByTagName("p")[0].style.color="white";
Hl.getElementsByTagName("i")[0].style.color="white";
Al.getElementsByTagName("i")[0].style.color="rgb(231, 184, 96)";
Sl.getElementsByTagName("i")[0].style.color="white";
Pl.getElementsByTagName("i")[0].style.color="white";
Rl.getElementsByTagName("i")[0].style.color="white";
Cl.getElementsByTagName("i")[0].style.color="white";
Hl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Al.getElementsByTagName("p")[0].style.fontSize="1rem";
Rl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Sl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Pl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Cl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Hl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Al.getElementsByTagName("i")[0].style.fontSize="1rem";
Rl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Sl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Pl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Cl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
nav.style.transform="translateX(-13rem)";
closenav.style.display="none";
opennav.style.display="block";
})
Rl.addEventListener("click",()=>{
Home.style.opacity="0";
Home.style.zIndex="0";
Contact.style.opacity="0";
Contact.style.zIndex="0";
About.style.opacity="0";
About.style.zIndex="0";
Resume.style.opacity="1";
Resume.style.zIndex="1";
Service.style.opacity="0";
Service.style.zIndex="0";
Portfolio.style.opacity="0";
Portfolio.style.zIndex="0";
Hl.getElementsByTagName("p")[0].style.textShadow="none";
Hl.getElementsByTagName("i")[0].style.fontWeight="100";
Hl.getElementsByTagName("p")[0].style.fontWeight="100";
Al.getElementsByTagName("p")[0].style.textShadow="none";
Al.getElementsByTagName("i")[0].style.fontWeight="100";
Al.getElementsByTagName("p")[0].style.fontWeight="100";
Sl.getElementsByTagName("p")[0].style.textShadow="none";
Sl.getElementsByTagName("i")[0].style.fontWeight="100";
Sl.getElementsByTagName("p")[0].style.fontWeight="100";
Rl.getElementsByTagName("p")[0].style.textShadow="0 0 2px rgb(231, 184, 96)";
Rl.getElementsByTagName("i")[0].style.fontWeight="600";
Rl.getElementsByTagName("p")[0].style.fontWeight="600";
Pl.getElementsByTagName("p")[0].style.textShadow="none";
Pl.getElementsByTagName("i")[0].style.fontWeight="100";
Pl.getElementsByTagName("p")[0].style.fontWeight="100";
Cl.getElementsByTagName("p")[0].style.textShadow="none";
Cl.getElementsByTagName("i")[0].style.fontWeight="100";
Cl.getElementsByTagName("p")[0].style.fontWeight="100";
Hl.getElementsByTagName("p")[0].style.color="white";
Al.getElementsByTagName("p")[0].style.color="white";
Sl.getElementsByTagName("p")[0].style.color="white";
Pl.getElementsByTagName("p")[0].style.color="white";
Rl.getElementsByTagName("p")[0].style.color="rgb(231, 184, 96)";
Cl.getElementsByTagName("p")[0].style.color="white";
Hl.getElementsByTagName("i")[0].style.color="white";
Al.getElementsByTagName("i")[0].style.color="white";
Sl.getElementsByTagName("i")[0].style.color="white";
Pl.getElementsByTagName("i")[0].style.color="white";
Rl.getElementsByTagName("i")[0].style.color="rgb(231, 184, 96)";
Cl.getElementsByTagName("i")[0].style.color="white";
Hl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Al.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Rl.getElementsByTagName("p")[0].style.fontSize="1rem";
Sl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Pl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Cl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Hl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Al.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Rl.getElementsByTagName("i")[0].style.fontSize="1rem";
Sl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Pl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Cl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
nav.style.transform="translateX(-13rem)";
closenav.style.display="none";
opennav.style.display="block";
})
Sl.addEventListener("click",()=>{
Home.style.opacity="0";
Home.style.zIndex="0";
Contact.style.opacity="0";
Contact.style.zIndex="0";
About.style.opacity="0";
About.style.zIndex="0";
Resume.style.opacity="0";
Resume.style.zIndex="0";
Service.style.opacity="1";
Service.style.zIndex="1";
Portfolio.style.opacity="0";
Portfolio.style.zIndex="0";
Hl.getElementsByTagName("p")[0].style.textShadow="none";
Hl.getElementsByTagName("i")[0].style.fontWeight="100";
Hl.getElementsByTagName("p")[0].style.fontWeight="100";
Al.getElementsByTagName("p")[0].style.textShadow="none";
Al.getElementsByTagName("i")[0].style.fontWeight="100";
Al.getElementsByTagName("p")[0].style.fontWeight="100";
Sl.getElementsByTagName("p")[0].style.textShadow="0 0 2px rgb(231, 184, 96)";
Sl.getElementsByTagName("i")[0].style.fontWeight="600";
Sl.getElementsByTagName("p")[0].style.fontWeight="600";
Rl.getElementsByTagName("p")[0].style.textShadow="none";
Rl.getElementsByTagName("i")[0].style.fontWeight="100";
Rl.getElementsByTagName("p")[0].style.fontWeight="100";
Pl.getElementsByTagName("p")[0].style.textShadow="none";
Pl.getElementsByTagName("i")[0].style.fontWeight="100";
Pl.getElementsByTagName("p")[0].style.fontWeight="100";
Cl.getElementsByTagName("p")[0].style.textShadow="none";
Cl.getElementsByTagName("i")[0].style.fontWeight="100";
Cl.getElementsByTagName("p")[0].style.fontWeight="100";
Hl.getElementsByTagName("p")[0].style.color="white";
Al.getElementsByTagName("p")[0].style.color="white";
Sl.getElementsByTagName("p")[0].style.color="rgb(231, 184, 96)";
Pl.getElementsByTagName("p")[0].style.color="white";
Rl.getElementsByTagName("p")[0].style.color="white";
Cl.getElementsByTagName("p")[0].style.color="white";
Hl.getElementsByTagName("i")[0].style.color="white";
Al.getElementsByTagName("i")[0].style.color="white";
Sl.getElementsByTagName("i")[0].style.color="rgb(231, 184, 96)";
Pl.getElementsByTagName("i")[0].style.color="white";
Rl.getElementsByTagName("i")[0].style.color="white";
Cl.getElementsByTagName("i")[0].style.color="white";
Hl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Al.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Rl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Sl.getElementsByTagName("p")[0].style.fontSize="1rem";
Pl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Cl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Hl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Al.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Rl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Sl.getElementsByTagName("i")[0].style.fontSize="1rem";
Pl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Cl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
nav.style.transform="translateX(-13rem)";
closenav.style.display="none";
opennav.style.display="block";
})
Pl.addEventListener("click",()=>{
Home.style.opacity="0";
Home.style.zIndex="0";
Contact.style.opacity="0";
Contact.style.zIndex="0";
About.style.opacity="0";
About.style.zIndex="0";
Resume.style.opacity="0";
Resume.style.zIndex="0";
Service.style.opacity="0";
Service.style.zIndex="0";
Portfolio.style.opacity="1";
Portfolio.style.zIndex="1041";
Hl.getElementsByTagName("p")[0].style.textShadow="none";
Hl.getElementsByTagName("i")[0].style.fontWeight="100";
Hl.getElementsByTagName("p")[0].style.fontWeight="100";
Al.getElementsByTagName("p")[0].style.textShadow="none";
Al.getElementsByTagName("i")[0].style.fontWeight="100";
Al.getElementsByTagName("p")[0].style.fontWeight="100";
Sl.getElementsByTagName("p")[0].style.textShadow="none";
Sl.getElementsByTagName("i")[0].style.fontWeight="100";
Sl.getElementsByTagName("p")[0].style.fontWeight="100";
Rl.getElementsByTagName("p")[0].style.textShadow="none";
Rl.getElementsByTagName("i")[0].style.fontWeight="100";
Rl.getElementsByTagName("p")[0].style.fontWeight="100";
Pl.getElementsByTagName("p")[0].style.textShadow="0 0 2px rgb(231, 184, 96)";
Pl.getElementsByTagName("i")[0].style.fontWeight="600";
Pl.getElementsByTagName("p")[0].style.fontWeight="600";
Cl.getElementsByTagName("p")[0].style.textShadow="none";
Cl.getElementsByTagName("i")[0].style.fontWeight="100";
Cl.getElementsByTagName("p")[0].style.fontWeight="100";
Hl.getElementsByTagName("p")[0].style.color="white";
Al.getElementsByTagName("p")[0].style.color="white";
Sl.getElementsByTagName("p")[0].style.color="white";
Pl.getElementsByTagName("p")[0].style.color="rgb(231, 184, 96)";
Rl.getElementsByTagName("p")[0].style.color="white";
Cl.getElementsByTagName("p")[0].style.color="white";
Hl.getElementsByTagName("i")[0].style.color="white";
Al.getElementsByTagName("i")[0].style.color="white";
Sl.getElementsByTagName("i")[0].style.color="white";
Pl.getElementsByTagName("i")[0].style.color="rgb(231, 184, 96)";
Rl.getElementsByTagName("i")[0].style.color="white";
Cl.getElementsByTagName("i")[0].style.color="white";
Hl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Al.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Rl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Sl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Pl.getElementsByTagName("p")[0].style.fontSize="1rem";
Cl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Hl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Al.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Rl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Sl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Pl.getElementsByTagName("i")[0].style.fontSize="1rem";
Cl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
nav.style.transform="translateX(-13rem)";
closenav.style.display="none";
opennav.style.display="block";
})
Cl.addEventListener("click",()=>{
Home.style.opacity="0";
Home.style.zIndex="0";
Contact.style.opacity="1";
Contact.style.zIndex="1";
About.style.opacity="0";
About.style.zIndex="0";
Resume.style.opacity="0";
Resume.style.zIndex="0";
Service.style.opacity="0";
Service.style.zIndex="0";
Portfolio.style.opacity="0";
Portfolio.style.zIndex="0";
Hl.getElementsByTagName("p")[0].style.textShadow="none";
Hl.getElementsByTagName("i")[0].style.fontWeight="100";
Hl.getElementsByTagName("p")[0].style.fontWeight="100";
Al.getElementsByTagName("p")[0].style.textShadow="none";
Al.getElementsByTagName("i")[0].style.fontWeight="100";
Al.getElementsByTagName("p")[0].style.fontWeight="100";
Sl.getElementsByTagName("p")[0].style.textShadow="none";
Sl.getElementsByTagName("i")[0].style.fontWeight="100";
Sl.getElementsByTagName("p")[0].style.fontWeight="100";
Rl.getElementsByTagName("p")[0].style.textShadow="none";
Rl.getElementsByTagName("i")[0].style.fontWeight="100";
Rl.getElementsByTagName("p")[0].style.fontWeight="100";
Pl.getElementsByTagName("p")[0].style.textShadow="none";
Pl.getElementsByTagName("i")[0].style.fontWeight="100";
Pl.getElementsByTagName("p")[0].style.fontWeight="100";
Cl.getElementsByTagName("p")[0].style.textShadow="0 0 2px rgb(231, 184, 96)";
Cl.getElementsByTagName("i")[0].style.fontWeight="600";
Cl.getElementsByTagName("p")[0].style.fontWeight="600";
Hl.getElementsByTagName("p")[0].style.color="white";
Al.getElementsByTagName("p")[0].style.color="white";
Sl.getElementsByTagName("p")[0].style.color="white";
Pl.getElementsByTagName("p")[0].style.color="white";
Rl.getElementsByTagName("p")[0].style.color="white";
Cl.getElementsByTagName("p")[0].style.color="rgb(231, 184, 96)";
Hl.getElementsByTagName("i")[0].style.color="white";
Al.getElementsByTagName("i")[0].style.color="white";
Sl.getElementsByTagName("i")[0].style.color="white";
Pl.getElementsByTagName("i")[0].style.color="white";
Rl.getElementsByTagName("i")[0].style.color="white";
Cl.getElementsByTagName("i")[0].style.color="rgb(231, 184, 96)";
Hl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Al.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Rl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Sl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Pl.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Cl.getElementsByTagName("p")[0].style.fontSize="1rem";
Hl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Al.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Rl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Sl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Pl.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Cl.getElementsByTagName("i")[0].style.fontSize="1rem";
nav.style.transform="translateX(-13rem)";
closenav.style.display="none";
opennav.style.display="block";
})
Hml.addEventListener("click",()=>{
Home.style.opacity="1";
Home.style.zIndex="1";
Contact.style.opacity="0";
Contact.style.zIndex="0";
About.style.opacity="0";
About.style.zIndex="0";
Resume.style.opacity="0";
Resume.style.zIndex="0";
Service.style.opacity="0";
Service.style.zIndex="0";
Portfolio.style.opacity="0";
Portfolio.style.zIndex="0";
Hml.getElementsByTagName("p")[0].style.textShadow="0 0 2px rgb(231, 184, 96)";
Hml.getElementsByTagName("i")[0].style.fontWeight="600";
Hml.getElementsByTagName("p")[0].style.fontWeight="600";
Aml.getElementsByTagName("p")[0].style.textShadow="none";
Aml.getElementsByTagName("i")[0].style.fontWeight="100";
Aml.getElementsByTagName("p")[0].style.fontWeight="100";
Sml.getElementsByTagName("p")[0].style.textShadow="none";
Sml.getElementsByTagName("i")[0].style.fontWeight="100";
Sml.getElementsByTagName("p")[0].style.fontWeight="100";
Rml.getElementsByTagName("p")[0].style.textShadow="none";
Rml.getElementsByTagName("i")[0].style.fontWeight="100";
Rml.getElementsByTagName("p")[0].style.fontWeight="100";
Pml.getElementsByTagName("p")[0].style.textShadow="none";
Pml.getElementsByTagName("i")[0].style.fontWeight="100";
Pml.getElementsByTagName("p")[0].style.fontWeight="100";
Cml.getElementsByTagName("p")[0].style.textShadow="none";
Cml.getElementsByTagName("i")[0].style.fontWeight="100";
Cml.getElementsByTagName("p")[0].style.fontWeight="100";
Hml.getElementsByTagName("p")[0].style.color="rgb(231, 184, 96)";
Aml.getElementsByTagName("p")[0].style.color="white";
Sml.getElementsByTagName("p")[0].style.color="white";
Pml.getElementsByTagName("p")[0].style.color="white";
Rml.getElementsByTagName("p")[0].style.color="white";
Cml.getElementsByTagName("p")[0].style.color="white";
Hml.getElementsByTagName("i")[0].style.color="rgb(231, 184, 96)";
Aml.getElementsByTagName("i")[0].style.color="white";
Sml.getElementsByTagName("i")[0].style.color="white";
Pml.getElementsByTagName("i")[0].style.color="white";
Rml.getElementsByTagName("i")[0].style.color="white";
Cml.getElementsByTagName("i")[0].style.color="white";
Hml.getElementsByTagName("p")[0].style.fontSize="1rem";
Aml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Rml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Sml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Pml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Cml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Hml.getElementsByTagName("i")[0].style.fontSize="1rem";
Aml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Rml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Sml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Pml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Cml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
nav.style.transform="translateX(-15rem)";
closenav.style.display="none";
opennav.style.display="block";
})
Aml.addEventListener("click",()=>{
Home.style.opacity="0";
Home.style.zIndex="0";
Contact.style.opacity="0";
Contact.style.zIndex="0";
About.style.opacity="1";
About.style.zIndex="1";
Resume.style.opacity="0";
Resume.style.zIndex="0";
Service.style.opacity="0";
Service.style.zIndex="0";
Portfolio.style.opacity="0";
Portfolio.style.zIndex="0";
Hml.getElementsByTagName("p")[0].style.textShadow="none";
Hml.getElementsByTagName("i")[0].style.fontWeight="100";
Hml.getElementsByTagName("p")[0].style.fontWeight="100";
Aml.getElementsByTagName("p")[0].style.textShadow="0 0 2px rgb(231, 184, 96)";
Aml.getElementsByTagName("i")[0].style.fontWeight="600";
Aml.getElementsByTagName("p")[0].style.fontWeight="600";
Sml.getElementsByTagName("p")[0].style.textShadow="none";
Sml.getElementsByTagName("i")[0].style.fontWeight="100";
Sml.getElementsByTagName("p")[0].style.fontWeight="100";
Rml.getElementsByTagName("p")[0].style.textShadow="none";
Rml.getElementsByTagName("i")[0].style.fontWeight="100";
Rml.getElementsByTagName("p")[0].style.fontWeight="100";
Pml.getElementsByTagName("p")[0].style.textShadow="none";
Pml.getElementsByTagName("i")[0].style.fontWeight="100";
Pml.getElementsByTagName("p")[0].style.fontWeight="100";
Cml.getElementsByTagName("p")[0].style.textShadow="none";
Cml.getElementsByTagName("i")[0].style.fontWeight="100";
Cml.getElementsByTagName("p")[0].style.fontWeight="100";
Hml.getElementsByTagName("p")[0].style.color="white";
Aml.getElementsByTagName("p")[0].style.color="rgb(231, 184, 96)";
Sml.getElementsByTagName("p")[0].style.color="white";
Pml.getElementsByTagName("p")[0].style.color="white";
Rml.getElementsByTagName("p")[0].style.color="white";
Cml.getElementsByTagName("p")[0].style.color="white";
Hml.getElementsByTagName("i")[0].style.color="white";
Aml.getElementsByTagName("i")[0].style.color="rgb(231, 184, 96)";
Sml.getElementsByTagName("i")[0].style.color="white";
Pml.getElementsByTagName("i")[0].style.color="white";
Rml.getElementsByTagName("i")[0].style.color="white";
Cml.getElementsByTagName("i")[0].style.color="white";
Hml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Aml.getElementsByTagName("p")[0].style.fontSize="1rem";
Rml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Sml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Pml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Cml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Hml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Aml.getElementsByTagName("i")[0].style.fontSize="1rem";
Rml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Sml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Pml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Cml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
nav.style.transform="translateX(-15rem)";
closenav.style.display="none";
opennav.style.display="block";
})
Rml.addEventListener("click",()=>{
Home.style.opacity="0";
Home.style.zIndex="0";
Contact.style.opacity="0";
Contact.style.zIndex="0";
About.style.opacity="0";
About.style.zIndex="0";
Resume.style.opacity="1";
Resume.style.zIndex="1";
Service.style.opacity="0";
Service.style.zIndex="0";
Portfolio.style.opacity="0";
Portfolio.style.zIndex="0";
Hml.getElementsByTagName("p")[0].style.textShadow="none";
Hml.getElementsByTagName("i")[0].style.fontWeight="100";
Hml.getElementsByTagName("p")[0].style.fontWeight="100";
Aml.getElementsByTagName("p")[0].style.textShadow="none";
Aml.getElementsByTagName("i")[0].style.fontWeight="100";
Aml.getElementsByTagName("p")[0].style.fontWeight="100";
Sml.getElementsByTagName("p")[0].style.textShadow="none";
Sml.getElementsByTagName("i")[0].style.fontWeight="100";
Sml.getElementsByTagName("p")[0].style.fontWeight="100";
Rml.getElementsByTagName("p")[0].style.textShadow="0 0 2px rgb(231, 184, 96)";
Rml.getElementsByTagName("i")[0].style.fontWeight="600";
Rml.getElementsByTagName("p")[0].style.fontWeight="600";
Pml.getElementsByTagName("p")[0].style.textShadow="none";
Pml.getElementsByTagName("i")[0].style.fontWeight="100";
Pml.getElementsByTagName("p")[0].style.fontWeight="100";
Cml.getElementsByTagName("p")[0].style.textShadow="none";
Cml.getElementsByTagName("i")[0].style.fontWeight="100";
Cml.getElementsByTagName("p")[0].style.fontWeight="100";
Hml.getElementsByTagName("p")[0].style.color="white";
Aml.getElementsByTagName("p")[0].style.color="white";
Sml.getElementsByTagName("p")[0].style.color="white";
Pml.getElementsByTagName("p")[0].style.color="white";
Rml.getElementsByTagName("p")[0].style.color="rgb(231, 184, 96)";
Cml.getElementsByTagName("p")[0].style.color="white";
Hml.getElementsByTagName("i")[0].style.color="white";
Aml.getElementsByTagName("i")[0].style.color="white";
Sml.getElementsByTagName("i")[0].style.color="white";
Pml.getElementsByTagName("i")[0].style.color="white";
Rml.getElementsByTagName("i")[0].style.color="rgb(231, 184, 96)";
Cml.getElementsByTagName("i")[0].style.color="white";
Hml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Aml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Rml.getElementsByTagName("p")[0].style.fontSize="1rem";
Sml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Pml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Cml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Hml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Aml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Rml.getElementsByTagName("i")[0].style.fontSize="1rem";
Sml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Pml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Cml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
nav.style.transform="translateX(-15rem)";
closenav.style.display="none";
opennav.style.display="block";
})
Sml.addEventListener("click",()=>{
Home.style.opacity="0";
Home.style.zIndex="0";
Contact.style.opacity="0";
Contact.style.zIndex="0";
About.style.opacity="0";
About.style.zIndex="0";
Resume.style.opacity="0";
Resume.style.zIndex="0";
Service.style.opacity="1";
Service.style.zIndex="1";
Portfolio.style.opacity="0";
Portfolio.style.zIndex="0";
Hml.getElementsByTagName("p")[0].style.textShadow="none";
Hml.getElementsByTagName("i")[0].style.fontWeight="100";
Hml.getElementsByTagName("p")[0].style.fontWeight="100";
Aml.getElementsByTagName("p")[0].style.textShadow="none";
Aml.getElementsByTagName("i")[0].style.fontWeight="100";
Aml.getElementsByTagName("p")[0].style.fontWeight="100";
Sml.getElementsByTagName("p")[0].style.textShadow="0 0 2px rgb(231, 184, 96)";
Sml.getElementsByTagName("i")[0].style.fontWeight="600";
Sml.getElementsByTagName("p")[0].style.fontWeight="600";
Rml.getElementsByTagName("p")[0].style.textShadow="none";
Rml.getElementsByTagName("i")[0].style.fontWeight="100";
Rml.getElementsByTagName("p")[0].style.fontWeight="100";
Pml.getElementsByTagName("p")[0].style.textShadow="none";
Pml.getElementsByTagName("i")[0].style.fontWeight="100";
Pml.getElementsByTagName("p")[0].style.fontWeight="100";
Cml.getElementsByTagName("p")[0].style.textShadow="none";
Cml.getElementsByTagName("i")[0].style.fontWeight="100";
Cml.getElementsByTagName("p")[0].style.fontWeight="100";
Hml.getElementsByTagName("p")[0].style.color="white";
Aml.getElementsByTagName("p")[0].style.color="white";
Sml.getElementsByTagName("p")[0].style.color="rgb(231, 184, 96)";
Pml.getElementsByTagName("p")[0].style.color="white";
Rml.getElementsByTagName("p")[0].style.color="white";
Cml.getElementsByTagName("p")[0].style.color="white";
Hml.getElementsByTagName("i")[0].style.color="white";
Aml.getElementsByTagName("i")[0].style.color="white";
Sml.getElementsByTagName("i")[0].style.color="rgb(231, 184, 96)";
Pml.getElementsByTagName("i")[0].style.color="white";
Rml.getElementsByTagName("i")[0].style.color="white";
Cml.getElementsByTagName("i")[0].style.color="white";
Hml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Aml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Rml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Sml.getElementsByTagName("p")[0].style.fontSize="1rem";
Pml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Cml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Hml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Aml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Rml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Sml.getElementsByTagName("i")[0].style.fontSize="1rem";
Pml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Cml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
nav.style.transform="translateX(-15rem)";
closenav.style.display="none";
opennav.style.display="block";
})
Pml.addEventListener("click",()=>{
Home.style.opacity="0";
Home.style.zIndex="0";
Contact.style.opacity="0";
Contact.style.zIndex="0";
About.style.opacity="0";
About.style.zIndex="0";
Resume.style.opacity="0";
Resume.style.zIndex="0";
Service.style.opacity="0";
Service.style.zIndex="0";
Portfolio.style.opacity="1";
Portfolio.style.zIndex="1";
Hml.getElementsByTagName("p")[0].style.textShadow="none";
Hml.getElementsByTagName("i")[0].style.fontWeight="100";
Hml.getElementsByTagName("p")[0].style.fontWeight="100";
Aml.getElementsByTagName("p")[0].style.textShadow="none";
Aml.getElementsByTagName("i")[0].style.fontWeight="100";
Aml.getElementsByTagName("p")[0].style.fontWeight="100";
Sml.getElementsByTagName("p")[0].style.textShadow="none";
Sml.getElementsByTagName("i")[0].style.fontWeight="100";
Sml.getElementsByTagName("p")[0].style.fontWeight="100";
Rml.getElementsByTagName("p")[0].style.textShadow="none";
Rml.getElementsByTagName("i")[0].style.fontWeight="100";
Rml.getElementsByTagName("p")[0].style.fontWeight="100";
Pml.getElementsByTagName("p")[0].style.textShadow="0 0 2px rgb(231, 184, 96)";
Pml.getElementsByTagName("i")[0].style.fontWeight="600";
Pml.getElementsByTagName("p")[0].style.fontWeight="600";
Cml.getElementsByTagName("p")[0].style.textShadow="none";
Cml.getElementsByTagName("i")[0].style.fontWeight="100";
Cml.getElementsByTagName("p")[0].style.fontWeight="100";
Hml.getElementsByTagName("p")[0].style.color="white";
Aml.getElementsByTagName("p")[0].style.color="white";
Sml.getElementsByTagName("p")[0].style.color="white";
Pml.getElementsByTagName("p")[0].style.color="rgb(231, 184, 96)";
Rml.getElementsByTagName("p")[0].style.color="white";
Cml.getElementsByTagName("p")[0].style.color="white";
Hml.getElementsByTagName("i")[0].style.color="white";
Aml.getElementsByTagName("i")[0].style.color="white";
Sml.getElementsByTagName("i")[0].style.color="white";
Pml.getElementsByTagName("i")[0].style.color="rgb(231, 184, 96)";
Rml.getElementsByTagName("i")[0].style.color="white";
Cml.getElementsByTagName("i")[0].style.color="white";
Hml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Aml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Rml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Sml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Pml.getElementsByTagName("p")[0].style.fontSize="1rem";
Cml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Hml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Aml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Rml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Sml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Pml.getElementsByTagName("i")[0].style.fontSize="1rem";
Cml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
nav.style.transform="translateX(-15rem)";
closenav.style.display="none";
opennav.style.display="block";
})
Cml.addEventListener("click",()=>{
Home.style.opacity="0";
Home.style.zIndex="0";
Contact.style.opacity="1";
Contact.style.zIndex="1";
About.style.opacity="0";
About.style.zIndex="0";
Resume.style.opacity="0";
Resume.style.zIndex="0";
Service.style.opacity="0";
Service.style.zIndex="0";
Portfolio.style.opacity="0";
Portfolio.style.zIndex="0";
Hml.getElementsByTagName("p")[0].style.textShadow="none";
Hml.getElementsByTagName("i")[0].style.fontWeight="100";
Hml.getElementsByTagName("p")[0].style.fontWeight="100";
Aml.getElementsByTagName("p")[0].style.textShadow="none";
Aml.getElementsByTagName("i")[0].style.fontWeight="100";
Aml.getElementsByTagName("p")[0].style.fontWeight="100";
Sml.getElementsByTagName("p")[0].style.textShadow="none";
Sml.getElementsByTagName("i")[0].style.fontWeight="100";
Sml.getElementsByTagName("p")[0].style.fontWeight="100";
Rml.getElementsByTagName("p")[0].style.textShadow="none";
Rml.getElementsByTagName("i")[0].style.fontWeight="100";
Rml.getElementsByTagName("p")[0].style.fontWeight="100";
Pml.getElementsByTagName("p")[0].style.textShadow="none";
Pml.getElementsByTagName("i")[0].style.fontWeight="100";
Pml.getElementsByTagName("p")[0].style.fontWeight="100";
Cml.getElementsByTagName("p")[0].style.textShadow="0 0 2px rgb(231, 184, 96)";
Cml.getElementsByTagName("i")[0].style.fontWeight="600";
Cml.getElementsByTagName("p")[0].style.fontWeight="600";
Hml.getElementsByTagName("p")[0].style.color="white";
Aml.getElementsByTagName("p")[0].style.color="white";
Sml.getElementsByTagName("p")[0].style.color="white";
Pml.getElementsByTagName("p")[0].style.color="white";
Rml.getElementsByTagName("p")[0].style.color="white";
Cml.getElementsByTagName("p")[0].style.color="rgb(231, 184, 96)";
Hml.getElementsByTagName("i")[0].style.color="white";
Aml.getElementsByTagName("i")[0].style.color="white";
Sml.getElementsByTagName("i")[0].style.color="white";
Pml.getElementsByTagName("i")[0].style.color="white";
Rml.getElementsByTagName("i")[0].style.color="white";
Cml.getElementsByTagName("i")[0].style.color="rgb(231, 184, 96)";
Hml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Aml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Rml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Sml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Pml.getElementsByTagName("p")[0].style.fontSize="0.8rem";
Cml.getElementsByTagName("p")[0].style.fontSize="1rem";
Hml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Aml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Rml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Sml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Pml.getElementsByTagName("i")[0].style.fontSize="0.8rem";
Cml.getElementsByTagName("i")[0].style.fontSize="1rem";
nav.style.transform="translateX(-15rem)";
closenav.style.display="none";
opennav.style.display="block";
})
| c4a6415623f0cfff0a3f8f619086c3721afbfd3a | [
"JavaScript"
] | 1 | JavaScript | GauravDhawale/PortFolio | 849d8643ee787e5f7a7c183b56f002f5f49de085 | 1d92b08da966161361f96785b4e281e4f48669b3 |